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

Description

Sets the resource policy on a repository that specifies permissions to access it.

When you call PutRepositoryPermissionsPolicy, the resource policy on the repository is ignored when evaluting permissions. This ensures that the owner of a repository cannot lock themselves out of the repository, which would prevent them from being able to update the resource policy.

Synopsis

Creating a Request

data PutRepositoryPermissionsPolicy Source #

See: newPutRepositoryPermissionsPolicy smart constructor.

Constructors

PutRepositoryPermissionsPolicy' 

Fields

  • policyRevision :: Maybe Text

    Sets the revision of the resource policy that specifies permissions to access the repository. This revision is used for optimistic locking, which prevents others from overwriting your changes to the repository's resource policy.

  • domainOwner :: Maybe Text

    The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.

  • domain :: Text

    The name of the domain containing the repository to set the resource policy on.

  • repository :: Text

    The name of the repository to set the resource policy on.

  • policyDocument :: Text

    A valid displayable JSON Aspen policy string to be set as the access control resource policy on the provided repository.

Instances

Instances details
Eq PutRepositoryPermissionsPolicy Source # 
Instance details

Defined in Amazonka.CodeArtifact.PutRepositoryPermissionsPolicy

Read PutRepositoryPermissionsPolicy Source # 
Instance details

Defined in Amazonka.CodeArtifact.PutRepositoryPermissionsPolicy

Show PutRepositoryPermissionsPolicy Source # 
Instance details

Defined in Amazonka.CodeArtifact.PutRepositoryPermissionsPolicy

Generic PutRepositoryPermissionsPolicy Source # 
Instance details

Defined in Amazonka.CodeArtifact.PutRepositoryPermissionsPolicy

Associated Types

type Rep PutRepositoryPermissionsPolicy :: Type -> Type #

NFData PutRepositoryPermissionsPolicy Source # 
Instance details

Defined in Amazonka.CodeArtifact.PutRepositoryPermissionsPolicy

Hashable PutRepositoryPermissionsPolicy Source # 
Instance details

Defined in Amazonka.CodeArtifact.PutRepositoryPermissionsPolicy

ToJSON PutRepositoryPermissionsPolicy Source # 
Instance details

Defined in Amazonka.CodeArtifact.PutRepositoryPermissionsPolicy

AWSRequest PutRepositoryPermissionsPolicy Source # 
Instance details

Defined in Amazonka.CodeArtifact.PutRepositoryPermissionsPolicy

ToHeaders PutRepositoryPermissionsPolicy Source # 
Instance details

Defined in Amazonka.CodeArtifact.PutRepositoryPermissionsPolicy

ToPath PutRepositoryPermissionsPolicy Source # 
Instance details

Defined in Amazonka.CodeArtifact.PutRepositoryPermissionsPolicy

ToQuery PutRepositoryPermissionsPolicy Source # 
Instance details

Defined in Amazonka.CodeArtifact.PutRepositoryPermissionsPolicy

type Rep PutRepositoryPermissionsPolicy Source # 
Instance details

Defined in Amazonka.CodeArtifact.PutRepositoryPermissionsPolicy

type Rep PutRepositoryPermissionsPolicy = D1 ('MetaData "PutRepositoryPermissionsPolicy" "Amazonka.CodeArtifact.PutRepositoryPermissionsPolicy" "libZSservicesZSamazonka-codeartifactZSamazonka-codeartifact" 'False) (C1 ('MetaCons "PutRepositoryPermissionsPolicy'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "policyRevision") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "domainOwner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "domain") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "repository") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "policyDocument") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse PutRepositoryPermissionsPolicy Source # 
Instance details

Defined in Amazonka.CodeArtifact.PutRepositoryPermissionsPolicy

newPutRepositoryPermissionsPolicy Source #

Create a value of PutRepositoryPermissionsPolicy 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:policyRevision:PutRepositoryPermissionsPolicy', putRepositoryPermissionsPolicy_policyRevision - Sets the revision of the resource policy that specifies permissions to access the repository. This revision is used for optimistic locking, which prevents others from overwriting your changes to the repository's resource policy.

$sel:domainOwner:PutRepositoryPermissionsPolicy', putRepositoryPermissionsPolicy_domainOwner - The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.

$sel:domain:PutRepositoryPermissionsPolicy', putRepositoryPermissionsPolicy_domain - The name of the domain containing the repository to set the resource policy on.

$sel:repository:PutRepositoryPermissionsPolicy', putRepositoryPermissionsPolicy_repository - The name of the repository to set the resource policy on.

$sel:policyDocument:PutRepositoryPermissionsPolicy', putRepositoryPermissionsPolicy_policyDocument - A valid displayable JSON Aspen policy string to be set as the access control resource policy on the provided repository.

Request Lenses

putRepositoryPermissionsPolicy_policyRevision :: Lens' PutRepositoryPermissionsPolicy (Maybe Text) Source #

Sets the revision of the resource policy that specifies permissions to access the repository. This revision is used for optimistic locking, which prevents others from overwriting your changes to the repository's resource policy.

putRepositoryPermissionsPolicy_domainOwner :: Lens' PutRepositoryPermissionsPolicy (Maybe Text) Source #

The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.

putRepositoryPermissionsPolicy_domain :: Lens' PutRepositoryPermissionsPolicy Text Source #

The name of the domain containing the repository to set the resource policy on.

putRepositoryPermissionsPolicy_repository :: Lens' PutRepositoryPermissionsPolicy Text Source #

The name of the repository to set the resource policy on.

putRepositoryPermissionsPolicy_policyDocument :: Lens' PutRepositoryPermissionsPolicy Text Source #

A valid displayable JSON Aspen policy string to be set as the access control resource policy on the provided repository.

Destructuring the Response

data PutRepositoryPermissionsPolicyResponse Source #

Constructors

PutRepositoryPermissionsPolicyResponse' 

Fields

Instances

Instances details
Eq PutRepositoryPermissionsPolicyResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.PutRepositoryPermissionsPolicy

Read PutRepositoryPermissionsPolicyResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.PutRepositoryPermissionsPolicy

Show PutRepositoryPermissionsPolicyResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.PutRepositoryPermissionsPolicy

Generic PutRepositoryPermissionsPolicyResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.PutRepositoryPermissionsPolicy

NFData PutRepositoryPermissionsPolicyResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.PutRepositoryPermissionsPolicy

type Rep PutRepositoryPermissionsPolicyResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.PutRepositoryPermissionsPolicy

type Rep PutRepositoryPermissionsPolicyResponse = D1 ('MetaData "PutRepositoryPermissionsPolicyResponse" "Amazonka.CodeArtifact.PutRepositoryPermissionsPolicy" "libZSservicesZSamazonka-codeartifactZSamazonka-codeartifact" 'False) (C1 ('MetaCons "PutRepositoryPermissionsPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResourcePolicy)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newPutRepositoryPermissionsPolicyResponse Source #

Create a value of PutRepositoryPermissionsPolicyResponse 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:PutRepositoryPermissionsPolicyResponse', putRepositoryPermissionsPolicyResponse_policy - The resource policy that was set after processing the request.

$sel:httpStatus:PutRepositoryPermissionsPolicyResponse', putRepositoryPermissionsPolicyResponse_httpStatus - The response's http status code.

Response Lenses