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

Description

Gets the policies for the specified resources that you own and have shared.

This operation returns paginated results.

Synopsis

Creating a Request

data GetResourcePolicies Source #

See: newGetResourcePolicies smart constructor.

Constructors

GetResourcePolicies' 

Fields

Instances

Instances details
Eq GetResourcePolicies Source # 
Instance details

Defined in Amazonka.RAM.GetResourcePolicies

Read GetResourcePolicies Source # 
Instance details

Defined in Amazonka.RAM.GetResourcePolicies

Show GetResourcePolicies Source # 
Instance details

Defined in Amazonka.RAM.GetResourcePolicies

Generic GetResourcePolicies Source # 
Instance details

Defined in Amazonka.RAM.GetResourcePolicies

Associated Types

type Rep GetResourcePolicies :: Type -> Type #

NFData GetResourcePolicies Source # 
Instance details

Defined in Amazonka.RAM.GetResourcePolicies

Methods

rnf :: GetResourcePolicies -> () #

Hashable GetResourcePolicies Source # 
Instance details

Defined in Amazonka.RAM.GetResourcePolicies

ToJSON GetResourcePolicies Source # 
Instance details

Defined in Amazonka.RAM.GetResourcePolicies

AWSPager GetResourcePolicies Source # 
Instance details

Defined in Amazonka.RAM.GetResourcePolicies

AWSRequest GetResourcePolicies Source # 
Instance details

Defined in Amazonka.RAM.GetResourcePolicies

Associated Types

type AWSResponse GetResourcePolicies #

ToHeaders GetResourcePolicies Source # 
Instance details

Defined in Amazonka.RAM.GetResourcePolicies

ToPath GetResourcePolicies Source # 
Instance details

Defined in Amazonka.RAM.GetResourcePolicies

ToQuery GetResourcePolicies Source # 
Instance details

Defined in Amazonka.RAM.GetResourcePolicies

type Rep GetResourcePolicies Source # 
Instance details

Defined in Amazonka.RAM.GetResourcePolicies

type Rep GetResourcePolicies = D1 ('MetaData "GetResourcePolicies" "Amazonka.RAM.GetResourcePolicies" "libZSservicesZSamazonka-ramZSamazonka-ram" 'False) (C1 ('MetaCons "GetResourcePolicies'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "principal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "resourceArns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]))))
type AWSResponse GetResourcePolicies Source # 
Instance details

Defined in Amazonka.RAM.GetResourcePolicies

newGetResourcePolicies :: GetResourcePolicies Source #

Create a value of GetResourcePolicies 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:GetResourcePolicies', getResourcePolicies_nextToken - The token for the next page of results.

$sel:principal:GetResourcePolicies', getResourcePolicies_principal - The principal.

$sel:maxResults:GetResourcePolicies', getResourcePolicies_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:resourceArns:GetResourcePolicies', getResourcePolicies_resourceArns - The Amazon Resource Names (ARNs) of the resources.

Request Lenses

getResourcePolicies_nextToken :: Lens' GetResourcePolicies (Maybe Text) Source #

The token for the next page of results.

getResourcePolicies_maxResults :: Lens' GetResourcePolicies (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.

getResourcePolicies_resourceArns :: Lens' GetResourcePolicies [Text] Source #

The Amazon Resource Names (ARNs) of the resources.

Destructuring the Response

data GetResourcePoliciesResponse Source #

See: newGetResourcePoliciesResponse smart constructor.

Constructors

GetResourcePoliciesResponse' 

Fields

  • nextToken :: Maybe Text

    The token to use to retrieve the next page of results. This value is null when there are no more results to return.

  • policies :: Maybe [Text]

    A key policy document, in JSON format.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GetResourcePoliciesResponse Source # 
Instance details

Defined in Amazonka.RAM.GetResourcePolicies

Read GetResourcePoliciesResponse Source # 
Instance details

Defined in Amazonka.RAM.GetResourcePolicies

Show GetResourcePoliciesResponse Source # 
Instance details

Defined in Amazonka.RAM.GetResourcePolicies

Generic GetResourcePoliciesResponse Source # 
Instance details

Defined in Amazonka.RAM.GetResourcePolicies

Associated Types

type Rep GetResourcePoliciesResponse :: Type -> Type #

NFData GetResourcePoliciesResponse Source # 
Instance details

Defined in Amazonka.RAM.GetResourcePolicies

type Rep GetResourcePoliciesResponse Source # 
Instance details

Defined in Amazonka.RAM.GetResourcePolicies

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

newGetResourcePoliciesResponse Source #

Create a value of GetResourcePoliciesResponse 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:GetResourcePolicies', getResourcePoliciesResponse_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:policies:GetResourcePoliciesResponse', getResourcePoliciesResponse_policies - A key policy document, in JSON format.

$sel:httpStatus:GetResourcePoliciesResponse', getResourcePoliciesResponse_httpStatus - The response's http status code.

Response Lenses

getResourcePoliciesResponse_nextToken :: Lens' GetResourcePoliciesResponse (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.