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 |
Gets the resources or principals for the resource shares that you own.
This operation returns paginated results.
Synopsis
- data GetResourceShareAssociations = GetResourceShareAssociations' {}
- newGetResourceShareAssociations :: ResourceShareAssociationType -> GetResourceShareAssociations
- getResourceShareAssociations_nextToken :: Lens' GetResourceShareAssociations (Maybe Text)
- getResourceShareAssociations_resourceArn :: Lens' GetResourceShareAssociations (Maybe Text)
- getResourceShareAssociations_principal :: Lens' GetResourceShareAssociations (Maybe Text)
- getResourceShareAssociations_associationStatus :: Lens' GetResourceShareAssociations (Maybe ResourceShareAssociationStatus)
- getResourceShareAssociations_maxResults :: Lens' GetResourceShareAssociations (Maybe Natural)
- getResourceShareAssociations_resourceShareArns :: Lens' GetResourceShareAssociations (Maybe [Text])
- getResourceShareAssociations_associationType :: Lens' GetResourceShareAssociations ResourceShareAssociationType
- data GetResourceShareAssociationsResponse = GetResourceShareAssociationsResponse' {}
- newGetResourceShareAssociationsResponse :: Int -> GetResourceShareAssociationsResponse
- getResourceShareAssociationsResponse_resourceShareAssociations :: Lens' GetResourceShareAssociationsResponse (Maybe [ResourceShareAssociation])
- getResourceShareAssociationsResponse_nextToken :: Lens' GetResourceShareAssociationsResponse (Maybe Text)
- getResourceShareAssociationsResponse_httpStatus :: Lens' GetResourceShareAssociationsResponse Int
Creating a Request
data GetResourceShareAssociations Source #
See: newGetResourceShareAssociations
smart constructor.
GetResourceShareAssociations' | |
|
Instances
newGetResourceShareAssociations Source #
Create a value of GetResourceShareAssociations
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:GetResourceShareAssociations'
, getResourceShareAssociations_nextToken
- The token for the next page of results.
$sel:resourceArn:GetResourceShareAssociations'
, getResourceShareAssociations_resourceArn
- The Amazon Resource Name (ARN) of the resource. You cannot specify this
parameter if the association type is PRINCIPAL
.
$sel:principal:GetResourceShareAssociations'
, getResourceShareAssociations_principal
- The principal. You cannot specify this parameter if the association type
is RESOURCE
.
$sel:associationStatus:GetResourceShareAssociations'
, getResourceShareAssociations_associationStatus
- The association status.
$sel:maxResults:GetResourceShareAssociations'
, getResourceShareAssociations_maxResults
- The maximum number of results to return with a single call. To retrieve
the remaining results, make another call with the returned nextToken
value.
$sel:resourceShareArns:GetResourceShareAssociations'
, getResourceShareAssociations_resourceShareArns
- The Amazon Resource Names (ARN) of the resource shares.
$sel:associationType:GetResourceShareAssociations'
, getResourceShareAssociations_associationType
- The association type. Specify PRINCIPAL
to list the principals that
are associated with the specified resource share. Specify RESOURCE
to
list the resources that are associated with the specified resource
share.
Request Lenses
getResourceShareAssociations_nextToken :: Lens' GetResourceShareAssociations (Maybe Text) Source #
The token for the next page of results.
getResourceShareAssociations_resourceArn :: Lens' GetResourceShareAssociations (Maybe Text) Source #
The Amazon Resource Name (ARN) of the resource. You cannot specify this
parameter if the association type is PRINCIPAL
.
getResourceShareAssociations_principal :: Lens' GetResourceShareAssociations (Maybe Text) Source #
The principal. You cannot specify this parameter if the association type
is RESOURCE
.
getResourceShareAssociations_associationStatus :: Lens' GetResourceShareAssociations (Maybe ResourceShareAssociationStatus) Source #
The association status.
getResourceShareAssociations_maxResults :: Lens' GetResourceShareAssociations (Maybe Natural) Source #
The maximum number of results to return with a single call. To retrieve
the remaining results, make another call with the returned nextToken
value.
getResourceShareAssociations_resourceShareArns :: Lens' GetResourceShareAssociations (Maybe [Text]) Source #
The Amazon Resource Names (ARN) of the resource shares.
getResourceShareAssociations_associationType :: Lens' GetResourceShareAssociations ResourceShareAssociationType Source #
The association type. Specify PRINCIPAL
to list the principals that
are associated with the specified resource share. Specify RESOURCE
to
list the resources that are associated with the specified resource
share.
Destructuring the Response
data GetResourceShareAssociationsResponse Source #
See: newGetResourceShareAssociationsResponse
smart constructor.
GetResourceShareAssociationsResponse' | |
|
Instances
newGetResourceShareAssociationsResponse Source #
Create a value of GetResourceShareAssociationsResponse
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:resourceShareAssociations:GetResourceShareAssociationsResponse'
, getResourceShareAssociationsResponse_resourceShareAssociations
- Information about the associations.
$sel:nextToken:GetResourceShareAssociations'
, getResourceShareAssociationsResponse_nextToken
- The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
$sel:httpStatus:GetResourceShareAssociationsResponse'
, getResourceShareAssociationsResponse_httpStatus
- The response's http status code.
Response Lenses
getResourceShareAssociationsResponse_resourceShareAssociations :: Lens' GetResourceShareAssociationsResponse (Maybe [ResourceShareAssociation]) Source #
Information about the associations.
getResourceShareAssociationsResponse_nextToken :: Lens' GetResourceShareAssociationsResponse (Maybe Text) Source #
The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
getResourceShareAssociationsResponse_httpStatus :: Lens' GetResourceShareAssociationsResponse Int Source #
The response's http status code.