| 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 |
Amazonka.RAM.GetResourceShares
Description
Gets the resource shares that you own or the resource shares that are shared with you.
This operation returns paginated results.
Synopsis
- data GetResourceShares = GetResourceShares' {}
- newGetResourceShares :: ResourceOwner -> GetResourceShares
- getResourceShares_tagFilters :: Lens' GetResourceShares (Maybe [TagFilter])
- getResourceShares_nextToken :: Lens' GetResourceShares (Maybe Text)
- getResourceShares_name :: Lens' GetResourceShares (Maybe Text)
- getResourceShares_resourceShareStatus :: Lens' GetResourceShares (Maybe ResourceShareStatus)
- getResourceShares_permissionArn :: Lens' GetResourceShares (Maybe Text)
- getResourceShares_maxResults :: Lens' GetResourceShares (Maybe Natural)
- getResourceShares_resourceShareArns :: Lens' GetResourceShares (Maybe [Text])
- getResourceShares_resourceOwner :: Lens' GetResourceShares ResourceOwner
- data GetResourceSharesResponse = GetResourceSharesResponse' {
- resourceShares :: Maybe [ResourceShare]
- nextToken :: Maybe Text
- httpStatus :: Int
- newGetResourceSharesResponse :: Int -> GetResourceSharesResponse
- getResourceSharesResponse_resourceShares :: Lens' GetResourceSharesResponse (Maybe [ResourceShare])
- getResourceSharesResponse_nextToken :: Lens' GetResourceSharesResponse (Maybe Text)
- getResourceSharesResponse_httpStatus :: Lens' GetResourceSharesResponse Int
Creating a Request
data GetResourceShares Source #
See: newGetResourceShares smart constructor.
Constructors
| GetResourceShares' | |
Fields
| |
Instances
Create a value of GetResourceShares 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:tagFilters:GetResourceShares', getResourceShares_tagFilters - One or more tag filters.
$sel:nextToken:GetResourceShares', getResourceShares_nextToken - The token for the next page of results.
$sel:name:GetResourceShares', getResourceShares_name - The name of the resource share.
$sel:resourceShareStatus:GetResourceShares', getResourceShares_resourceShareStatus - The status of the resource share.
$sel:permissionArn:GetResourceShares', getResourceShares_permissionArn - The Amazon Resource Name (ARN) of the RAM permission that is associated
with the resource share.
$sel:maxResults:GetResourceShares', getResourceShares_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:GetResourceShares', getResourceShares_resourceShareArns - The Amazon Resource Names (ARNs) of the resource shares.
$sel:resourceOwner:GetResourceShares', getResourceShares_resourceOwner - The type of owner.
Request Lenses
getResourceShares_tagFilters :: Lens' GetResourceShares (Maybe [TagFilter]) Source #
One or more tag filters.
getResourceShares_nextToken :: Lens' GetResourceShares (Maybe Text) Source #
The token for the next page of results.
getResourceShares_name :: Lens' GetResourceShares (Maybe Text) Source #
The name of the resource share.
getResourceShares_resourceShareStatus :: Lens' GetResourceShares (Maybe ResourceShareStatus) Source #
The status of the resource share.
getResourceShares_permissionArn :: Lens' GetResourceShares (Maybe Text) Source #
The Amazon Resource Name (ARN) of the RAM permission that is associated with the resource share.
getResourceShares_maxResults :: Lens' GetResourceShares (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.
getResourceShares_resourceShareArns :: Lens' GetResourceShares (Maybe [Text]) Source #
The Amazon Resource Names (ARNs) of the resource shares.
getResourceShares_resourceOwner :: Lens' GetResourceShares ResourceOwner Source #
The type of owner.
Destructuring the Response
data GetResourceSharesResponse Source #
See: newGetResourceSharesResponse smart constructor.
Constructors
| GetResourceSharesResponse' | |
Fields
| |
Instances
newGetResourceSharesResponse Source #
Create a value of GetResourceSharesResponse 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:resourceShares:GetResourceSharesResponse', getResourceSharesResponse_resourceShares - Information about the resource shares.
$sel:nextToken:GetResourceShares', getResourceSharesResponse_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:GetResourceSharesResponse', getResourceSharesResponse_httpStatus - The response's http status code.
Response Lenses
getResourceSharesResponse_resourceShares :: Lens' GetResourceSharesResponse (Maybe [ResourceShare]) Source #
Information about the resource shares.
getResourceSharesResponse_nextToken :: Lens' GetResourceSharesResponse (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.
getResourceSharesResponse_httpStatus :: Lens' GetResourceSharesResponse Int Source #
The response's http status code.