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.ListCoreDevices

Description

Retrieves a paginated list of Greengrass core devices.

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 ListCoreDevices Source #

See: newListCoreDevices smart constructor.

Constructors

ListCoreDevices' 

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.

  • status :: Maybe CoreDeviceStatus

    The core device status by which to filter. If you specify this parameter, the list includes only core devices that have this status. Choose one of the following options:

    • HEALTHY – The IoT Greengrass Core software and all components run on the core device without issue.
    • UNHEALTHY – The IoT Greengrass Core software or a component is in a failed state on the core device.
  • thingGroupArn :: Maybe Text

    The ARN of the IoT thing group by which to filter. If you specify this parameter, the list includes only core devices that have successfully deployed a deployment that targets the thing group. When you remove a core device from a thing group, the list continues to include that core device.

Instances

Instances details
ToHeaders ListCoreDevices Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListCoreDevices

ToPath ListCoreDevices Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListCoreDevices

ToQuery ListCoreDevices Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListCoreDevices

AWSPager ListCoreDevices Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListCoreDevices

AWSRequest ListCoreDevices Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListCoreDevices

Associated Types

type AWSResponse ListCoreDevices #

Generic ListCoreDevices Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListCoreDevices

Associated Types

type Rep ListCoreDevices :: Type -> Type #

Read ListCoreDevices Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListCoreDevices

Show ListCoreDevices Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListCoreDevices

NFData ListCoreDevices Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListCoreDevices

Methods

rnf :: ListCoreDevices -> () #

Eq ListCoreDevices Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListCoreDevices

Hashable ListCoreDevices Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListCoreDevices

type AWSResponse ListCoreDevices Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListCoreDevices

type Rep ListCoreDevices Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListCoreDevices

type Rep ListCoreDevices = D1 ('MetaData "ListCoreDevices" "Amazonka.GreengrassV2.ListCoreDevices" "amazonka-greengrassv2-2.0-CXiJQl197i43YI1Cz5IpiZ" 'False) (C1 ('MetaCons "ListCoreDevices'" '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 "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CoreDeviceStatus)) :*: S1 ('MetaSel ('Just "thingGroupArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newListCoreDevices :: ListCoreDevices Source #

Create a value of ListCoreDevices 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:ListCoreDevices', listCoreDevices_maxResults - The maximum number of results to be returned per paginated request.

ListCoreDevices, listCoreDevices_nextToken - The token to be used for the next set of paginated results.

ListCoreDevices, listCoreDevices_status - The core device status by which to filter. If you specify this parameter, the list includes only core devices that have this status. Choose one of the following options:

  • HEALTHY – The IoT Greengrass Core software and all components run on the core device without issue.
  • UNHEALTHY – The IoT Greengrass Core software or a component is in a failed state on the core device.

$sel:thingGroupArn:ListCoreDevices', listCoreDevices_thingGroupArn - The ARN of the IoT thing group by which to filter. If you specify this parameter, the list includes only core devices that have successfully deployed a deployment that targets the thing group. When you remove a core device from a thing group, the list continues to include that core device.

Request Lenses

listCoreDevices_maxResults :: Lens' ListCoreDevices (Maybe Natural) Source #

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

listCoreDevices_nextToken :: Lens' ListCoreDevices (Maybe Text) Source #

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

listCoreDevices_status :: Lens' ListCoreDevices (Maybe CoreDeviceStatus) Source #

The core device status by which to filter. If you specify this parameter, the list includes only core devices that have this status. Choose one of the following options:

  • HEALTHY – The IoT Greengrass Core software and all components run on the core device without issue.
  • UNHEALTHY – The IoT Greengrass Core software or a component is in a failed state on the core device.

listCoreDevices_thingGroupArn :: Lens' ListCoreDevices (Maybe Text) Source #

The ARN of the IoT thing group by which to filter. If you specify this parameter, the list includes only core devices that have successfully deployed a deployment that targets the thing group. When you remove a core device from a thing group, the list continues to include that core device.

Destructuring the Response

data ListCoreDevicesResponse Source #

See: newListCoreDevicesResponse smart constructor.

Constructors

ListCoreDevicesResponse' 

Fields

Instances

Instances details
Generic ListCoreDevicesResponse Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListCoreDevices

Associated Types

type Rep ListCoreDevicesResponse :: Type -> Type #

Read ListCoreDevicesResponse Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListCoreDevices

Show ListCoreDevicesResponse Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListCoreDevices

NFData ListCoreDevicesResponse Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListCoreDevices

Methods

rnf :: ListCoreDevicesResponse -> () #

Eq ListCoreDevicesResponse Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListCoreDevices

type Rep ListCoreDevicesResponse Source # 
Instance details

Defined in Amazonka.GreengrassV2.ListCoreDevices

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

newListCoreDevicesResponse Source #

Create a value of ListCoreDevicesResponse 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:coreDevices:ListCoreDevicesResponse', listCoreDevicesResponse_coreDevices - A list that summarizes each core device.

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

$sel:httpStatus:ListCoreDevicesResponse', listCoreDevicesResponse_httpStatus - The response's http status code.

Response Lenses

listCoreDevicesResponse_nextToken :: Lens' ListCoreDevicesResponse (Maybe Text) Source #

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