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

Description

Returns all State Manager associations in the current Amazon Web Services account and Amazon Web Services Region. You can limit the results to a specific State Manager association document or instance by specifying a filter. State Manager is a capability of Amazon Web Services Systems Manager.

This operation returns paginated results.

Synopsis

Creating a Request

data ListAssociations Source #

See: newListAssociations smart constructor.

Constructors

ListAssociations' 

Fields

  • associationFilterList :: Maybe (NonEmpty AssociationFilter)

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

    Filtering associations using the InstanceID attribute only returns legacy associations created using the InstanceID attribute. Associations targeting the instance that are part of the Target Attributes ResourceGroup or Tags aren't returned.

  • nextToken :: Maybe Text

    The token for the next set of items to return. (You received this token from a previous call.)

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

Instances

Instances details
Eq ListAssociations Source # 
Instance details

Defined in Amazonka.SSM.ListAssociations

Read ListAssociations Source # 
Instance details

Defined in Amazonka.SSM.ListAssociations

Show ListAssociations Source # 
Instance details

Defined in Amazonka.SSM.ListAssociations

Generic ListAssociations Source # 
Instance details

Defined in Amazonka.SSM.ListAssociations

Associated Types

type Rep ListAssociations :: Type -> Type #

NFData ListAssociations Source # 
Instance details

Defined in Amazonka.SSM.ListAssociations

Methods

rnf :: ListAssociations -> () #

Hashable ListAssociations Source # 
Instance details

Defined in Amazonka.SSM.ListAssociations

ToJSON ListAssociations Source # 
Instance details

Defined in Amazonka.SSM.ListAssociations

AWSPager ListAssociations Source # 
Instance details

Defined in Amazonka.SSM.ListAssociations

AWSRequest ListAssociations Source # 
Instance details

Defined in Amazonka.SSM.ListAssociations

Associated Types

type AWSResponse ListAssociations #

ToHeaders ListAssociations Source # 
Instance details

Defined in Amazonka.SSM.ListAssociations

ToPath ListAssociations Source # 
Instance details

Defined in Amazonka.SSM.ListAssociations

ToQuery ListAssociations Source # 
Instance details

Defined in Amazonka.SSM.ListAssociations

type Rep ListAssociations Source # 
Instance details

Defined in Amazonka.SSM.ListAssociations

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

Defined in Amazonka.SSM.ListAssociations

newListAssociations :: ListAssociations Source #

Create a value of ListAssociations 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:associationFilterList:ListAssociations', listAssociations_associationFilterList - One or more filters. Use a filter to return a more specific list of results.

Filtering associations using the InstanceID attribute only returns legacy associations created using the InstanceID attribute. Associations targeting the instance that are part of the Target Attributes ResourceGroup or Tags aren't returned.

$sel:nextToken:ListAssociations', listAssociations_nextToken - The token for the next set of items to return. (You received this token from a previous call.)

$sel:maxResults:ListAssociations', listAssociations_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.

Request Lenses

listAssociations_associationFilterList :: Lens' ListAssociations (Maybe (NonEmpty AssociationFilter)) Source #

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

Filtering associations using the InstanceID attribute only returns legacy associations created using the InstanceID attribute. Associations targeting the instance that are part of the Target Attributes ResourceGroup or Tags aren't returned.

listAssociations_nextToken :: Lens' ListAssociations (Maybe Text) Source #

The token for the next set of items to return. (You received this token from a previous call.)

listAssociations_maxResults :: Lens' ListAssociations (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.

Destructuring the Response

data ListAssociationsResponse Source #

See: newListAssociationsResponse smart constructor.

Constructors

ListAssociationsResponse' 

Fields

Instances

Instances details
Eq ListAssociationsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListAssociations

Read ListAssociationsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListAssociations

Show ListAssociationsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListAssociations

Generic ListAssociationsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListAssociations

Associated Types

type Rep ListAssociationsResponse :: Type -> Type #

NFData ListAssociationsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListAssociations

type Rep ListAssociationsResponse Source # 
Instance details

Defined in Amazonka.SSM.ListAssociations

type Rep ListAssociationsResponse = D1 ('MetaData "ListAssociationsResponse" "Amazonka.SSM.ListAssociations" "libZSservicesZSamazonka-ssmZSamazonka-ssm" 'False) (C1 ('MetaCons "ListAssociationsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "associations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Association])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListAssociationsResponse Source #

Create a value of ListAssociationsResponse 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:nextToken:ListAssociations', listAssociationsResponse_nextToken - The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

$sel:associations:ListAssociationsResponse', listAssociationsResponse_associations - The associations.

$sel:httpStatus:ListAssociationsResponse', listAssociationsResponse_httpStatus - The response's http status code.

Response Lenses

listAssociationsResponse_nextToken :: Lens' ListAssociationsResponse (Maybe Text) Source #

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.