libZSservicesZSamazonka-codebuildZSamazonka-codebuild
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.CodeBuild.GetResourcePolicy

Description

Gets a resource policy that is identified by its resource ARN.

Synopsis

Creating a Request

data GetResourcePolicy Source #

See: newGetResourcePolicy smart constructor.

Constructors

GetResourcePolicy' 

Fields

  • resourceArn :: Text

    The ARN of the resource that is associated with the resource policy.

Instances

Instances details
Eq GetResourcePolicy Source # 
Instance details

Defined in Amazonka.CodeBuild.GetResourcePolicy

Read GetResourcePolicy Source # 
Instance details

Defined in Amazonka.CodeBuild.GetResourcePolicy

Show GetResourcePolicy Source # 
Instance details

Defined in Amazonka.CodeBuild.GetResourcePolicy

Generic GetResourcePolicy Source # 
Instance details

Defined in Amazonka.CodeBuild.GetResourcePolicy

Associated Types

type Rep GetResourcePolicy :: Type -> Type #

NFData GetResourcePolicy Source # 
Instance details

Defined in Amazonka.CodeBuild.GetResourcePolicy

Methods

rnf :: GetResourcePolicy -> () #

Hashable GetResourcePolicy Source # 
Instance details

Defined in Amazonka.CodeBuild.GetResourcePolicy

ToJSON GetResourcePolicy Source # 
Instance details

Defined in Amazonka.CodeBuild.GetResourcePolicy

AWSRequest GetResourcePolicy Source # 
Instance details

Defined in Amazonka.CodeBuild.GetResourcePolicy

Associated Types

type AWSResponse GetResourcePolicy #

ToHeaders GetResourcePolicy Source # 
Instance details

Defined in Amazonka.CodeBuild.GetResourcePolicy

ToPath GetResourcePolicy Source # 
Instance details

Defined in Amazonka.CodeBuild.GetResourcePolicy

ToQuery GetResourcePolicy Source # 
Instance details

Defined in Amazonka.CodeBuild.GetResourcePolicy

type Rep GetResourcePolicy Source # 
Instance details

Defined in Amazonka.CodeBuild.GetResourcePolicy

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

Defined in Amazonka.CodeBuild.GetResourcePolicy

newGetResourcePolicy 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 resource that is associated with the resource policy.

Request Lenses

getResourcePolicy_resourceArn :: Lens' GetResourcePolicy Text Source #

The ARN of the resource that is associated with the resource policy.

Destructuring the Response

data GetResourcePolicyResponse Source #

See: newGetResourcePolicyResponse smart constructor.

Constructors

GetResourcePolicyResponse' 

Fields

  • policy :: Maybe Text

    The resource policy for the resource identified by the input ARN parameter.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GetResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.CodeBuild.GetResourcePolicy

Read GetResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.CodeBuild.GetResourcePolicy

Show GetResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.CodeBuild.GetResourcePolicy

Generic GetResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.CodeBuild.GetResourcePolicy

Associated Types

type Rep GetResourcePolicyResponse :: Type -> Type #

NFData GetResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.CodeBuild.GetResourcePolicy

type Rep GetResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.CodeBuild.GetResourcePolicy

type Rep GetResourcePolicyResponse = D1 ('MetaData "GetResourcePolicyResponse" "Amazonka.CodeBuild.GetResourcePolicy" "libZSservicesZSamazonka-codebuildZSamazonka-codebuild" 'False) (C1 ('MetaCons "GetResourcePolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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:policy:GetResourcePolicyResponse', getResourcePolicyResponse_policy - The resource policy for the resource identified by the input ARN parameter.

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

Response Lenses

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

The resource policy for the resource identified by the input ARN parameter.