amazonka-greengrassv2-2.0: Amazon IoT Greengrass V2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.GreengrassV2.ListInstalledComponents

Description

Retrieves a paginated list of the components that a Greengrass core device runs. By default, this list doesn't include components that are deployed as dependencies of other components. To include dependencies in the response, set the topologyFilter parameter to ALL.

IoT Greengrass relies on individual devices to send status updates to the Amazon Web Services Cloud. If the IoT Greengrass Core software isn't running on the device, or if device isn't connected to the Amazon Web Services Cloud, then the reported status of that device might not reflect its current status. The status timestamp indicates when the device status was last updated.

Core devices send status updates at the following times:

  • When the IoT Greengrass Core software starts
  • When the core device receives a deployment from the Amazon Web Services Cloud
  • When the status of any component on the core device becomes BROKEN
  • At a regular interval that you can configure, which defaults to 24 hours
  • For IoT Greengrass Core v2.7.0, the core device sends status updates upon local deployment and cloud deployment

This operation returns paginated results.

Synopsis

Creating a Request

data ListInstalledComponents Source #

See: newListInstalledComponents smart constructor.

Constructors

ListInstalledComponents' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of results to be returned per paginated request.

  • nextToken :: Maybe Text

    The token to be used for the next set of paginated results.

  • topologyFilter :: Maybe InstalledComponentTopologyFilter

    The filter for the list of components. Choose from the following options:

    • ALL – The list includes all components installed on the core device.
    • ROOT – The list includes only root components, which are components that you specify in a deployment. When you choose this option, the list doesn't include components that the core device installs as dependencies of other components.

    Default: ROOT

  • coreDeviceThingName :: Text

    The name of the core device. This is also the name of the IoT thing.

Instances

Instances details
ToHeaders ListInstalledComponents Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListInstalledComponents

ToPath ListInstalledComponents Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListInstalledComponents

ToQuery ListInstalledComponents Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListInstalledComponents

AWSPager ListInstalledComponents Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListInstalledComponents

AWSRequest ListInstalledComponents Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListInstalledComponents

Generic ListInstalledComponents Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListInstalledComponents

Associated Types

type Rep ListInstalledComponents :: Type -> Type #

Read ListInstalledComponents Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListInstalledComponents

Show ListInstalledComponents Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListInstalledComponents

NFData ListInstalledComponents Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListInstalledComponents

Methods

rnf :: ListInstalledComponents -> () #

Eq ListInstalledComponents Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListInstalledComponents

Hashable ListInstalledComponents Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListInstalledComponents

type AWSResponse ListInstalledComponents Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListInstalledComponents

type Rep ListInstalledComponents Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListInstalledComponents

type Rep ListInstalledComponents = D1 ('MetaData "ListInstalledComponents" "Amazonka.GreengrassV2.ListInstalledComponents" "amazonka-greengrassv2-2.0-CXiJQl197i43YI1Cz5IpiZ" 'False) (C1 ('MetaCons "ListInstalledComponents'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "topologyFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstalledComponentTopologyFilter)) :*: S1 ('MetaSel ('Just "coreDeviceThingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newListInstalledComponents Source #

Create a value of ListInstalledComponents with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:maxResults:ListInstalledComponents', listInstalledComponents_maxResults - The maximum number of results to be returned per paginated request.

ListInstalledComponents, listInstalledComponents_nextToken - The token to be used for the next set of paginated results.

$sel:topologyFilter:ListInstalledComponents', listInstalledComponents_topologyFilter - The filter for the list of components. Choose from the following options:

  • ALL – The list includes all components installed on the core device.
  • ROOT – The list includes only root components, which are components that you specify in a deployment. When you choose this option, the list doesn't include components that the core device installs as dependencies of other components.

Default: ROOT

ListInstalledComponents, listInstalledComponents_coreDeviceThingName - The name of the core device. This is also the name of the IoT thing.

Request Lenses

listInstalledComponents_maxResults :: Lens' ListInstalledComponents (Maybe Natural) Source #

The maximum number of results to be returned per paginated request.

listInstalledComponents_nextToken :: Lens' ListInstalledComponents (Maybe Text) Source #

The token to be used for the next set of paginated results.

listInstalledComponents_topologyFilter :: Lens' ListInstalledComponents (Maybe InstalledComponentTopologyFilter) Source #

The filter for the list of components. Choose from the following options:

  • ALL – The list includes all components installed on the core device.
  • ROOT – The list includes only root components, which are components that you specify in a deployment. When you choose this option, the list doesn't include components that the core device installs as dependencies of other components.

Default: ROOT

listInstalledComponents_coreDeviceThingName :: Lens' ListInstalledComponents Text Source #

The name of the core device. This is also the name of the IoT thing.

Destructuring the Response

data ListInstalledComponentsResponse Source #

See: newListInstalledComponentsResponse smart constructor.

Constructors

ListInstalledComponentsResponse' 

Fields

  • installedComponents :: Maybe [InstalledComponent]

    A list that summarizes each component on the core device.

    Greengrass nucleus v2.7.0 or later is required to get an accurate lastStatusChangeTimestamp response. This response can be inaccurate in earlier Greengrass nucleus versions.

    Greengrass nucleus v2.8.0 or later is required to get an accurate lastInstallationSource and lastReportedTimestamp response. This response can be inaccurate or null in earlier Greengrass nucleus versions.

  • nextToken :: Maybe Text

    The token for the next set of results, or null if there are no additional results.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListInstalledComponentsResponse Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListInstalledComponents

Associated Types

type Rep ListInstalledComponentsResponse :: Type -> Type #

Read ListInstalledComponentsResponse Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListInstalledComponents

Show ListInstalledComponentsResponse Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListInstalledComponents

NFData ListInstalledComponentsResponse Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListInstalledComponents

Eq ListInstalledComponentsResponse Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListInstalledComponents

type Rep ListInstalledComponentsResponse Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListInstalledComponents

type Rep ListInstalledComponentsResponse = D1 ('MetaData "ListInstalledComponentsResponse" "Amazonka.GreengrassV2.ListInstalledComponents" "amazonka-greengrassv2-2.0-CXiJQl197i43YI1Cz5IpiZ" 'False) (C1 ('MetaCons "ListInstalledComponentsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "installedComponents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [InstalledComponent])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListInstalledComponentsResponse Source #

Create a value of ListInstalledComponentsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:installedComponents:ListInstalledComponentsResponse', listInstalledComponentsResponse_installedComponents - A list that summarizes each component on the core device.

Greengrass nucleus v2.7.0 or later is required to get an accurate lastStatusChangeTimestamp response. This response can be inaccurate in earlier Greengrass nucleus versions.

Greengrass nucleus v2.8.0 or later is required to get an accurate lastInstallationSource and lastReportedTimestamp response. This response can be inaccurate or null in earlier Greengrass nucleus versions.

ListInstalledComponents, listInstalledComponentsResponse_nextToken - The token for the next set of results, or null if there are no additional results.

$sel:httpStatus:ListInstalledComponentsResponse', listInstalledComponentsResponse_httpStatus - The response's http status code.

Response Lenses

listInstalledComponentsResponse_installedComponents :: Lens' ListInstalledComponentsResponse (Maybe [InstalledComponent]) Source #

A list that summarizes each component on the core device.

Greengrass nucleus v2.7.0 or later is required to get an accurate lastStatusChangeTimestamp response. This response can be inaccurate in earlier Greengrass nucleus versions.

Greengrass nucleus v2.8.0 or later is required to get an accurate lastInstallationSource and lastReportedTimestamp response. This response can be inaccurate or null in earlier Greengrass nucleus versions.

listInstalledComponentsResponse_nextToken :: Lens' ListInstalledComponentsResponse (Maybe Text) Source #

The token for the next set of results, or null if there are no additional results.