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 |
Lists the associations in your account and their properties.
This operation returns paginated results.
Synopsis
- data ListAssociations = ListAssociations' {
- createdAfter :: Maybe POSIX
- sourceType :: Maybe Text
- sourceArn :: Maybe Text
- associationType :: Maybe AssociationEdgeType
- destinationArn :: Maybe Text
- nextToken :: Maybe Text
- destinationType :: Maybe Text
- sortOrder :: Maybe SortOrder
- maxResults :: Maybe Natural
- createdBefore :: Maybe POSIX
- sortBy :: Maybe SortAssociationsBy
- newListAssociations :: ListAssociations
- listAssociations_createdAfter :: Lens' ListAssociations (Maybe UTCTime)
- listAssociations_sourceType :: Lens' ListAssociations (Maybe Text)
- listAssociations_sourceArn :: Lens' ListAssociations (Maybe Text)
- listAssociations_associationType :: Lens' ListAssociations (Maybe AssociationEdgeType)
- listAssociations_destinationArn :: Lens' ListAssociations (Maybe Text)
- listAssociations_nextToken :: Lens' ListAssociations (Maybe Text)
- listAssociations_destinationType :: Lens' ListAssociations (Maybe Text)
- listAssociations_sortOrder :: Lens' ListAssociations (Maybe SortOrder)
- listAssociations_maxResults :: Lens' ListAssociations (Maybe Natural)
- listAssociations_createdBefore :: Lens' ListAssociations (Maybe UTCTime)
- listAssociations_sortBy :: Lens' ListAssociations (Maybe SortAssociationsBy)
- data ListAssociationsResponse = ListAssociationsResponse' {}
- newListAssociationsResponse :: Int -> ListAssociationsResponse
- listAssociationsResponse_nextToken :: Lens' ListAssociationsResponse (Maybe Text)
- listAssociationsResponse_associationSummaries :: Lens' ListAssociationsResponse (Maybe [AssociationSummary])
- 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:createdAfter:ListAssociations'
, listAssociations_createdAfter
- A filter that returns only associations created on or after the
specified time.
$sel:sourceType:ListAssociations'
, listAssociations_sourceType
- A filter that returns only associations with the specified source type.
$sel:sourceArn:ListAssociations'
, listAssociations_sourceArn
- A filter that returns only associations with the specified source ARN.
$sel:associationType:ListAssociations'
, listAssociations_associationType
- A filter that returns only associations of the specified type.
$sel:destinationArn:ListAssociations'
, listAssociations_destinationArn
- A filter that returns only associations with the specified destination
Amazon Resource Name (ARN).
$sel:nextToken:ListAssociations'
, listAssociations_nextToken
- If the previous call to ListAssociations
didn't return the full set
of associations, the call returns a token for getting the next set of
associations.
$sel:destinationType:ListAssociations'
, listAssociations_destinationType
- A filter that returns only associations with the specified destination
type.
$sel:sortOrder:ListAssociations'
, listAssociations_sortOrder
- The sort order. The default value is Descending
.
$sel:maxResults:ListAssociations'
, listAssociations_maxResults
- The maximum number of associations to return in the response. The
default value is 10.
$sel:createdBefore:ListAssociations'
, listAssociations_createdBefore
- A filter that returns only associations created on or before the
specified time.
$sel:sortBy:ListAssociations'
, listAssociations_sortBy
- The property used to sort results. The default value is CreationTime
.
Request Lenses
listAssociations_createdAfter :: Lens' ListAssociations (Maybe UTCTime) Source #
A filter that returns only associations created on or after the specified time.
listAssociations_sourceType :: Lens' ListAssociations (Maybe Text) Source #
A filter that returns only associations with the specified source type.
listAssociations_sourceArn :: Lens' ListAssociations (Maybe Text) Source #
A filter that returns only associations with the specified source ARN.
listAssociations_associationType :: Lens' ListAssociations (Maybe AssociationEdgeType) Source #
A filter that returns only associations of the specified type.
listAssociations_destinationArn :: Lens' ListAssociations (Maybe Text) Source #
A filter that returns only associations with the specified destination Amazon Resource Name (ARN).
listAssociations_nextToken :: Lens' ListAssociations (Maybe Text) Source #
If the previous call to ListAssociations
didn't return the full set
of associations, the call returns a token for getting the next set of
associations.
listAssociations_destinationType :: Lens' ListAssociations (Maybe Text) Source #
A filter that returns only associations with the specified destination type.
listAssociations_sortOrder :: Lens' ListAssociations (Maybe SortOrder) Source #
The sort order. The default value is Descending
.
listAssociations_maxResults :: Lens' ListAssociations (Maybe Natural) Source #
The maximum number of associations to return in the response. The default value is 10.
listAssociations_createdBefore :: Lens' ListAssociations (Maybe UTCTime) Source #
A filter that returns only associations created on or before the specified time.
listAssociations_sortBy :: Lens' ListAssociations (Maybe SortAssociationsBy) Source #
The property used to sort results. The default value is CreationTime
.
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
- A token for getting the next set of associations, if there are any.
$sel:associationSummaries:ListAssociationsResponse'
, listAssociationsResponse_associationSummaries
- A list of associations and their properties.
$sel:httpStatus:ListAssociationsResponse'
, listAssociationsResponse_httpStatus
- The response's http status code.
Response Lenses
listAssociationsResponse_nextToken :: Lens' ListAssociationsResponse (Maybe Text) Source #
A token for getting the next set of associations, if there are any.
listAssociationsResponse_associationSummaries :: Lens' ListAssociationsResponse (Maybe [AssociationSummary]) Source #
A list of associations and their properties.
listAssociationsResponse_httpStatus :: Lens' ListAssociationsResponse Int Source #
The response's http status code.