Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data ListAssociations = ListAssociations' {}
- newListAssociations :: ListAssociations
- listAssociations_associationFilterList :: Lens' ListAssociations (Maybe (NonEmpty AssociationFilter))
- listAssociations_nextToken :: Lens' ListAssociations (Maybe Text)
- listAssociations_maxResults :: Lens' ListAssociations (Maybe Natural)
- data ListAssociationsResponse = ListAssociationsResponse' {
- nextToken :: Maybe Text
- associations :: Maybe [Association]
- httpStatus :: Int
- newListAssociationsResponse :: Int -> ListAssociationsResponse
- listAssociationsResponse_nextToken :: Lens' ListAssociationsResponse (Maybe Text)
- listAssociationsResponse_associations :: Lens' ListAssociationsResponse (Maybe [Association])
- listAssociationsResponse_httpStatus :: Lens' ListAssociationsResponse Int
Creating a Request
data ListAssociations Source #
See: newListAssociations
smart constructor.
ListAssociations' | |
|
Instances
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.
ListAssociationsResponse' | |
|
Instances
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.
listAssociationsResponse_associations :: Lens' ListAssociationsResponse (Maybe [Association]) Source #
The associations.
listAssociationsResponse_httpStatus :: Lens' ListAssociationsResponse Int Source #
The response's http status code.