libZSservicesZSamazonka-ssmZSamazonka-ssm
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

  • resourceIds :: Maybe (NonEmpty Text)

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

  • filters :: Maybe [ComplianceStringFilter]

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

  • nextToken :: Maybe Text

    A token to start the list. Use this token to get the next set 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.

  • 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
Eq ListComplianceItems Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

Read ListComplianceItems Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

Show ListComplianceItems Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

Generic ListComplianceItems Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

Associated Types

type Rep ListComplianceItems :: Type -> Type #

NFData ListComplianceItems Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

Methods

rnf :: ListComplianceItems -> () #

Hashable ListComplianceItems Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

ToJSON 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 #

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

type Rep ListComplianceItems Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

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

Defined in Amazonka.SSM.ListComplianceItems

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:

$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:filters:ListComplianceItems', listComplianceItems_filters - One or more compliance filters. Use a filter to return a more specific list of results.

$sel:nextToken:ListComplianceItems', listComplianceItems_nextToken - A token to start the list. Use this token to get the next set 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.

$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_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_filters :: Lens' ListComplianceItems (Maybe [ComplianceStringFilter]) Source #

One or more compliance filters. Use a filter to return a more specific list 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_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_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
Eq ListComplianceItemsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

Read ListComplianceItemsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

Show ListComplianceItemsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

Generic ListComplianceItemsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListComplianceItems

Associated Types

type Rep ListComplianceItemsResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-ssmZSamazonka-ssm" '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.

$sel:nextToken: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.