libZSservicesZSamazonka-codeartifactZSamazonka-codeartifact
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.CodeArtifact.Types.ResourcePolicy

Description

 
Synopsis

Documentation

data ResourcePolicy Source #

An AWS CodeArtifact resource policy that contains a resource ARN, document details, and a revision.

See: newResourcePolicy smart constructor.

Constructors

ResourcePolicy' 

Fields

Instances

Instances details
Eq ResourcePolicy Source # 
Instance details

Defined in Amazonka.CodeArtifact.Types.ResourcePolicy

Read ResourcePolicy Source # 
Instance details

Defined in Amazonka.CodeArtifact.Types.ResourcePolicy

Show ResourcePolicy Source # 
Instance details

Defined in Amazonka.CodeArtifact.Types.ResourcePolicy

Generic ResourcePolicy Source # 
Instance details

Defined in Amazonka.CodeArtifact.Types.ResourcePolicy

Associated Types

type Rep ResourcePolicy :: Type -> Type #

NFData ResourcePolicy Source # 
Instance details

Defined in Amazonka.CodeArtifact.Types.ResourcePolicy

Methods

rnf :: ResourcePolicy -> () #

Hashable ResourcePolicy Source # 
Instance details

Defined in Amazonka.CodeArtifact.Types.ResourcePolicy

FromJSON ResourcePolicy Source # 
Instance details

Defined in Amazonka.CodeArtifact.Types.ResourcePolicy

type Rep ResourcePolicy Source # 
Instance details

Defined in Amazonka.CodeArtifact.Types.ResourcePolicy

type Rep ResourcePolicy = D1 ('MetaData "ResourcePolicy" "Amazonka.CodeArtifact.Types.ResourcePolicy" "libZSservicesZSamazonka-codeartifactZSamazonka-codeartifact" 'False) (C1 ('MetaCons "ResourcePolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "document") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "revision") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newResourcePolicy :: ResourcePolicy Source #

Create a value of ResourcePolicy 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:ResourcePolicy', resourcePolicy_resourceArn - The ARN of the resource associated with the resource policy

$sel:document:ResourcePolicy', resourcePolicy_document - The resource policy formatted in JSON.

$sel:revision:ResourcePolicy', resourcePolicy_revision - The current revision of the resource policy.

resourcePolicy_resourceArn :: Lens' ResourcePolicy (Maybe Text) Source #

The ARN of the resource associated with the resource policy

resourcePolicy_document :: Lens' ResourcePolicy (Maybe Text) Source #

The resource policy formatted in JSON.

resourcePolicy_revision :: Lens' ResourcePolicy (Maybe Text) Source #

The current revision of the resource policy.