libZSservicesZSamazonka-ramZSamazonka-ram
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.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

Creating a Request

data GetResourceShares Source #

See: newGetResourceShares smart constructor.

Constructors

GetResourceShares' 

Fields

Instances

Instances details
Eq GetResourceShares Source # 
Instance details

Defined in Amazonka.RAM.GetResourceShares

Read GetResourceShares Source # 
Instance details

Defined in Amazonka.RAM.GetResourceShares

Show GetResourceShares Source # 
Instance details

Defined in Amazonka.RAM.GetResourceShares

Generic GetResourceShares Source # 
Instance details

Defined in Amazonka.RAM.GetResourceShares

Associated Types

type Rep GetResourceShares :: Type -> Type #

NFData GetResourceShares Source # 
Instance details

Defined in Amazonka.RAM.GetResourceShares

Methods

rnf :: GetResourceShares -> () #

Hashable GetResourceShares Source # 
Instance details

Defined in Amazonka.RAM.GetResourceShares

ToJSON GetResourceShares Source # 
Instance details

Defined in Amazonka.RAM.GetResourceShares

AWSPager GetResourceShares Source # 
Instance details

Defined in Amazonka.RAM.GetResourceShares

AWSRequest GetResourceShares Source # 
Instance details

Defined in Amazonka.RAM.GetResourceShares

Associated Types

type AWSResponse GetResourceShares #

ToHeaders GetResourceShares Source # 
Instance details

Defined in Amazonka.RAM.GetResourceShares

ToPath GetResourceShares Source # 
Instance details

Defined in Amazonka.RAM.GetResourceShares

ToQuery GetResourceShares Source # 
Instance details

Defined in Amazonka.RAM.GetResourceShares

type Rep GetResourceShares Source # 
Instance details

Defined in Amazonka.RAM.GetResourceShares

type AWSResponse GetResourceShares Source # 
Instance details

Defined in Amazonka.RAM.GetResourceShares

newGetResourceShares Source #

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

Destructuring the Response

data GetResourceSharesResponse Source #

See: newGetResourceSharesResponse smart constructor.

Constructors

GetResourceSharesResponse' 

Fields

Instances

Instances details
Eq GetResourceSharesResponse Source # 
Instance details

Defined in Amazonka.RAM.GetResourceShares

Read GetResourceSharesResponse Source # 
Instance details

Defined in Amazonka.RAM.GetResourceShares

Show GetResourceSharesResponse Source # 
Instance details

Defined in Amazonka.RAM.GetResourceShares

Generic GetResourceSharesResponse Source # 
Instance details

Defined in Amazonka.RAM.GetResourceShares

Associated Types

type Rep GetResourceSharesResponse :: Type -> Type #

NFData GetResourceSharesResponse Source # 
Instance details

Defined in Amazonka.RAM.GetResourceShares

type Rep GetResourceSharesResponse Source # 
Instance details

Defined in Amazonka.RAM.GetResourceShares

type Rep GetResourceSharesResponse = D1 ('MetaData "GetResourceSharesResponse" "Amazonka.RAM.GetResourceShares" "libZSservicesZSamazonka-ramZSamazonka-ram" 'False) (C1 ('MetaCons "GetResourceSharesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceShares") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ResourceShare])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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