libZSservicesZSamazonka-glueZSamazonka-glue
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.Glue.GetResourcePolicy

Description

Retrieves a specified resource policy.

Synopsis

Creating a Request

data GetResourcePolicy Source #

See: newGetResourcePolicy smart constructor.

Constructors

GetResourcePolicy' 

Fields

  • resourceArn :: Maybe Text

    The ARN of the Glue resource for which to retrieve the resource policy. If not supplied, the Data Catalog resource policy is returned. Use GetResourcePolicies to view all existing resource policies. For more information see Specifying Glue Resource ARNs.

Instances

Instances details
Eq GetResourcePolicy Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicy

Read GetResourcePolicy Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicy

Show GetResourcePolicy Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicy

Generic GetResourcePolicy Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicy

Associated Types

type Rep GetResourcePolicy :: Type -> Type #

NFData GetResourcePolicy Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicy

Methods

rnf :: GetResourcePolicy -> () #

Hashable GetResourcePolicy Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicy

ToJSON GetResourcePolicy Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicy

AWSRequest GetResourcePolicy Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicy

Associated Types

type AWSResponse GetResourcePolicy #

ToHeaders GetResourcePolicy Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicy

ToPath GetResourcePolicy Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicy

ToQuery GetResourcePolicy Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicy

type Rep GetResourcePolicy Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicy

type Rep GetResourcePolicy = D1 ('MetaData "GetResourcePolicy" "Amazonka.Glue.GetResourcePolicy" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "GetResourcePolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))
type AWSResponse GetResourcePolicy Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicy

newGetResourcePolicy :: GetResourcePolicy Source #

Create a value of GetResourcePolicy 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:resourceArn:GetResourcePolicy', getResourcePolicy_resourceArn - The ARN of the Glue resource for which to retrieve the resource policy. If not supplied, the Data Catalog resource policy is returned. Use GetResourcePolicies to view all existing resource policies. For more information see Specifying Glue Resource ARNs.

Request Lenses

getResourcePolicy_resourceArn :: Lens' GetResourcePolicy (Maybe Text) Source #

The ARN of the Glue resource for which to retrieve the resource policy. If not supplied, the Data Catalog resource policy is returned. Use GetResourcePolicies to view all existing resource policies. For more information see Specifying Glue Resource ARNs.

Destructuring the Response

data GetResourcePolicyResponse Source #

See: newGetResourcePolicyResponse smart constructor.

Constructors

GetResourcePolicyResponse' 

Fields

Instances

Instances details
Eq GetResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicy

Read GetResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicy

Show GetResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicy

Generic GetResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicy

Associated Types

type Rep GetResourcePolicyResponse :: Type -> Type #

NFData GetResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicy

type Rep GetResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicy

type Rep GetResourcePolicyResponse = D1 ('MetaData "GetResourcePolicyResponse" "Amazonka.Glue.GetResourcePolicy" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "GetResourcePolicyResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "policyInJson") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "updateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 ('MetaSel ('Just "policyHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "createTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newGetResourcePolicyResponse Source #

Create a value of GetResourcePolicyResponse 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:policyInJson:GetResourcePolicyResponse', getResourcePolicyResponse_policyInJson - Contains the requested policy document, in JSON format.

$sel:updateTime:GetResourcePolicyResponse', getResourcePolicyResponse_updateTime - The date and time at which the policy was last updated.

$sel:policyHash:GetResourcePolicyResponse', getResourcePolicyResponse_policyHash - Contains the hash value associated with this policy.

$sel:createTime:GetResourcePolicyResponse', getResourcePolicyResponse_createTime - The date and time at which the policy was created.

$sel:httpStatus:GetResourcePolicyResponse', getResourcePolicyResponse_httpStatus - The response's http status code.

Response Lenses

getResourcePolicyResponse_policyInJson :: Lens' GetResourcePolicyResponse (Maybe Text) Source #

Contains the requested policy document, in JSON format.

getResourcePolicyResponse_updateTime :: Lens' GetResourcePolicyResponse (Maybe UTCTime) Source #

The date and time at which the policy was last updated.

getResourcePolicyResponse_policyHash :: Lens' GetResourcePolicyResponse (Maybe Text) Source #

Contains the hash value associated with this policy.

getResourcePolicyResponse_createTime :: Lens' GetResourcePolicyResponse (Maybe UTCTime) Source #

The date and time at which the policy was created.