amazonka-ecr-1.4.5: 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:

  • srpForce - 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 - 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 - The name of the repository to receive the policy.
  • srpPolicyText - The JSON repository policy text to apply to the repository.

data SetRepositoryPolicy Source #

See: setRepositoryPolicy smart constructor.

Instances

Eq SetRepositoryPolicy Source # 
Data SetRepositoryPolicy Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SetRepositoryPolicy -> c SetRepositoryPolicy #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SetRepositoryPolicy #

toConstr :: SetRepositoryPolicy -> Constr #

dataTypeOf :: SetRepositoryPolicy -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c SetRepositoryPolicy) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SetRepositoryPolicy) #

gmapT :: (forall b. Data b => b -> b) -> SetRepositoryPolicy -> SetRepositoryPolicy #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SetRepositoryPolicy -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SetRepositoryPolicy -> r #

gmapQ :: (forall d. Data d => d -> u) -> SetRepositoryPolicy -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SetRepositoryPolicy -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SetRepositoryPolicy -> m SetRepositoryPolicy #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SetRepositoryPolicy -> m SetRepositoryPolicy #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SetRepositoryPolicy -> m SetRepositoryPolicy #

Read SetRepositoryPolicy Source # 
Show SetRepositoryPolicy Source # 
Generic SetRepositoryPolicy Source # 
Hashable SetRepositoryPolicy Source # 
ToJSON SetRepositoryPolicy Source # 
NFData SetRepositoryPolicy Source # 

Methods

rnf :: SetRepositoryPolicy -> () #

AWSRequest SetRepositoryPolicy Source # 
ToPath SetRepositoryPolicy Source # 
ToHeaders SetRepositoryPolicy Source # 
ToQuery SetRepositoryPolicy Source # 
type Rep SetRepositoryPolicy Source # 
type Rep SetRepositoryPolicy = D1 (MetaData "SetRepositoryPolicy" "Network.AWS.ECR.SetRepositoryPolicy" "amazonka-ecr-1.4.5-CCdpOETgEgK6cFz60uVoIg" False) (C1 (MetaCons "SetRepositoryPolicy'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_srpForce") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_srpRegistryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_srpRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_srpPolicyText") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs SetRepositoryPolicy Source # 

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:

data SetRepositoryPolicyResponse Source #

See: setRepositoryPolicyResponse smart constructor.

Instances

Eq SetRepositoryPolicyResponse Source # 
Data SetRepositoryPolicyResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SetRepositoryPolicyResponse -> c SetRepositoryPolicyResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SetRepositoryPolicyResponse #

toConstr :: SetRepositoryPolicyResponse -> Constr #

dataTypeOf :: SetRepositoryPolicyResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c SetRepositoryPolicyResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SetRepositoryPolicyResponse) #

gmapT :: (forall b. Data b => b -> b) -> SetRepositoryPolicyResponse -> SetRepositoryPolicyResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SetRepositoryPolicyResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SetRepositoryPolicyResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> SetRepositoryPolicyResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SetRepositoryPolicyResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SetRepositoryPolicyResponse -> m SetRepositoryPolicyResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SetRepositoryPolicyResponse -> m SetRepositoryPolicyResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SetRepositoryPolicyResponse -> m SetRepositoryPolicyResponse #

Read SetRepositoryPolicyResponse Source # 
Show SetRepositoryPolicyResponse Source # 
Generic SetRepositoryPolicyResponse Source # 
NFData SetRepositoryPolicyResponse Source # 
type Rep SetRepositoryPolicyResponse Source # 
type Rep SetRepositoryPolicyResponse = D1 (MetaData "SetRepositoryPolicyResponse" "Network.AWS.ECR.SetRepositoryPolicy" "amazonka-ecr-1.4.5-CCdpOETgEgK6cFz60uVoIg" False) (C1 (MetaCons "SetRepositoryPolicyResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_srprsRegistryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_srprsRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_srprsPolicyText") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_srprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

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.