amazonka-ecr-1.4.0: Amazon EC2 Container Registry SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.ECR.SetRepositoryPolicy

Contents

Description

Applies a repository policy on a specified repository to control access permissions.

Synopsis

Creating a Request

setRepositoryPolicy Source

Creates a value of SetRepositoryPolicy with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

srpForce :: Lens' SetRepositoryPolicy (Maybe Bool) Source

If the policy you are attempting to set on a repository policy would prevent you from setting another policy in the future, you must force the SetRepositoryPolicy operation. This is intended to prevent accidental repository lock outs.

srpRegistryId :: Lens' SetRepositoryPolicy (Maybe Text) Source

The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.

srpRepositoryName :: Lens' SetRepositoryPolicy Text Source

The name of the repository to receive the policy.

srpPolicyText :: Lens' SetRepositoryPolicy Text Source

The JSON repository policy text to apply to the repository.

Destructuring the Response

setRepositoryPolicyResponse Source

Creates a value of SetRepositoryPolicyResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

srprsRegistryId :: Lens' SetRepositoryPolicyResponse (Maybe Text) Source

The registry ID associated with the request.

srprsRepositoryName :: Lens' SetRepositoryPolicyResponse (Maybe Text) Source

The repository name associated with the request.

srprsPolicyText :: Lens' SetRepositoryPolicyResponse (Maybe Text) Source

The JSON repository policy text applied to the repository.