amazonka-ssm-2.0: Amazon Simple Systems Manager (SSM) 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.SSM.ListComplianceItems

Description

For a specified resource ID, this API operation returns a list of compliance statuses for different resource types. Currently, you can only specify one resource ID per call. List results depend on the criteria specified in the filter.

This operation returns paginated results.

Synopsis

Creating a Request

data ListComplianceItems Source #

See: newListComplianceItems smart constructor.

Constructors

ListComplianceItems' 

Fields

  • filters :: Maybe [ComplianceStringFilter]

    One or more compliance filters. Use a filter to return a more specific list of results.

  • maxResults :: Maybe Natural

    The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

  • nextToken :: Maybe Text

    A token to start the list. Use this token to get the next set of results.

  • resourceIds :: Maybe (NonEmpty Text)

    The ID for the resources from which to get compliance information. Currently, you can only specify one resource ID.

  • resourceTypes :: Maybe (NonEmpty Text)

    The type of resource from which to get compliance information. Currently, the only supported resource type is ManagedInstance.

Instances

Instances details
ToJSON ListComplianceItems Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

ToHeaders ListComplianceItems Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

ToPath ListComplianceItems Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

ToQuery ListComplianceItems Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

AWSPager ListComplianceItems Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

AWSRequest ListComplianceItems Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

Associated Types

type AWSResponse ListComplianceItems #

Generic ListComplianceItems Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

Associated Types

type Rep ListComplianceItems :: Type -> Type #

Read ListComplianceItems Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

Show ListComplianceItems Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

NFData ListComplianceItems Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

Methods

rnf :: ListComplianceItems -> () #

Eq ListComplianceItems Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

Hashable ListComplianceItems Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

type AWSResponse ListComplianceItems Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

type Rep ListComplianceItems Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

type Rep ListComplianceItems = D1 ('MetaData "ListComplianceItems" "Amazonka.SSM.ListComplianceItems" "amazonka-ssm-2.0-Ak65QSGRhJDC5x7UvsCpi8" 'False) (C1 ('MetaCons "ListComplianceItems'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ComplianceStringFilter])) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "resourceIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "resourceTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text)))))))

newListComplianceItems :: ListComplianceItems Source #

Create a value of ListComplianceItems 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:

ListComplianceItems, listComplianceItems_filters - One or more compliance filters. Use a filter to return a more specific list of results.

$sel:maxResults:ListComplianceItems', listComplianceItems_maxResults - The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

ListComplianceItems, listComplianceItems_nextToken - A token to start the list. Use this token to get the next set of results.

$sel:resourceIds:ListComplianceItems', listComplianceItems_resourceIds - The ID for the resources from which to get compliance information. Currently, you can only specify one resource ID.

$sel:resourceTypes:ListComplianceItems', listComplianceItems_resourceTypes - The type of resource from which to get compliance information. Currently, the only supported resource type is ManagedInstance.

Request Lenses

listComplianceItems_filters :: Lens' ListComplianceItems (Maybe [ComplianceStringFilter]) Source #

One or more compliance filters. Use a filter to return a more specific list of results.

listComplianceItems_maxResults :: Lens' ListComplianceItems (Maybe Natural) Source #

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

listComplianceItems_nextToken :: Lens' ListComplianceItems (Maybe Text) Source #

A token to start the list. Use this token to get the next set of results.

listComplianceItems_resourceIds :: Lens' ListComplianceItems (Maybe (NonEmpty Text)) Source #

The ID for the resources from which to get compliance information. Currently, you can only specify one resource ID.

listComplianceItems_resourceTypes :: Lens' ListComplianceItems (Maybe (NonEmpty Text)) Source #

The type of resource from which to get compliance information. Currently, the only supported resource type is ManagedInstance.

Destructuring the Response

data ListComplianceItemsResponse Source #

See: newListComplianceItemsResponse smart constructor.

Constructors

ListComplianceItemsResponse' 

Fields

Instances

Instances details
Generic ListComplianceItemsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

Associated Types

type Rep ListComplianceItemsResponse :: Type -> Type #

Read ListComplianceItemsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

Show ListComplianceItemsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

NFData ListComplianceItemsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

Eq ListComplianceItemsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

type Rep ListComplianceItemsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

type Rep ListComplianceItemsResponse = D1 ('MetaData "ListComplianceItemsResponse" "Amazonka.SSM.ListComplianceItems" "amazonka-ssm-2.0-Ak65QSGRhJDC5x7UvsCpi8" 'False) (C1 ('MetaCons "ListComplianceItemsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "complianceItems") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ComplianceItem])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListComplianceItemsResponse Source #

Create a value of ListComplianceItemsResponse 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:complianceItems:ListComplianceItemsResponse', listComplianceItemsResponse_complianceItems - A list of compliance information for the specified resource ID.

ListComplianceItems, listComplianceItemsResponse_nextToken - The token for the next set of items to return. Use this token to get the next set of results.

$sel:httpStatus:ListComplianceItemsResponse', listComplianceItemsResponse_httpStatus - The response's http status code.

Response Lenses

listComplianceItemsResponse_complianceItems :: Lens' ListComplianceItemsResponse (Maybe [ComplianceItem]) Source #

A list of compliance information for the specified resource ID.

listComplianceItemsResponse_nextToken :: Lens' ListComplianceItemsResponse (Maybe Text) Source #

The token for the next set of items to return. Use this token to get the next set of results.