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

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

Network.AWS.ECR.PutLifecyclePolicy

Contents

Description

Creates or updates a lifecycle policy.

Synopsis

Creating a Request

putLifecyclePolicy Source #

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

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

  • plpRegistryId - The AWS account ID associated with the registry that contains the repository. If you do
 not specify a registry, the default registry is assumed.
  • plpRepositoryName - The name of the repository to receive the policy.
  • plpLifecyclePolicyText - The JSON repository policy text to apply to the repository.

data PutLifecyclePolicy Source #

See: putLifecyclePolicy smart constructor.

Instances

Eq PutLifecyclePolicy Source # 
Data PutLifecyclePolicy Source # 

Methods

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

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

toConstr :: PutLifecyclePolicy -> Constr #

dataTypeOf :: PutLifecyclePolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: PutLifecyclePolicy -> () #

AWSRequest PutLifecyclePolicy Source # 
ToQuery PutLifecyclePolicy Source # 
ToPath PutLifecyclePolicy Source # 
ToHeaders PutLifecyclePolicy Source # 
type Rep PutLifecyclePolicy Source # 
type Rep PutLifecyclePolicy = D1 (MetaData "PutLifecyclePolicy" "Network.AWS.ECR.PutLifecyclePolicy" "amazonka-ecr-1.5.0-1vFH5BbiUOBDG4NzPySvaV" False) (C1 (MetaCons "PutLifecyclePolicy'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_plpRegistryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_plpRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_plpLifecyclePolicyText") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs PutLifecyclePolicy Source # 

Request Lenses

plpRegistryId :: Lens' PutLifecyclePolicy (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.

plpRepositoryName :: Lens' PutLifecyclePolicy Text Source #

The name of the repository to receive the policy.

plpLifecyclePolicyText :: Lens' PutLifecyclePolicy Text Source #

The JSON repository policy text to apply to the repository.

Destructuring the Response

putLifecyclePolicyResponse Source #

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

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

data PutLifecyclePolicyResponse Source #

See: putLifecyclePolicyResponse smart constructor.

Instances

Eq PutLifecyclePolicyResponse Source # 
Data PutLifecyclePolicyResponse Source # 

Methods

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

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

toConstr :: PutLifecyclePolicyResponse -> Constr #

dataTypeOf :: PutLifecyclePolicyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutLifecyclePolicyResponse Source # 
Show PutLifecyclePolicyResponse Source # 
Generic PutLifecyclePolicyResponse Source # 
NFData PutLifecyclePolicyResponse Source # 
type Rep PutLifecyclePolicyResponse Source # 
type Rep PutLifecyclePolicyResponse = D1 (MetaData "PutLifecyclePolicyResponse" "Network.AWS.ECR.PutLifecyclePolicy" "amazonka-ecr-1.5.0-1vFH5BbiUOBDG4NzPySvaV" False) (C1 (MetaCons "PutLifecyclePolicyResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_plprsRegistryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_plprsLifecyclePolicyText") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_plprsRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_plprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

plprsRegistryId :: Lens' PutLifecyclePolicyResponse (Maybe Text) Source #

The registry ID associated with the request.

plprsRepositoryName :: Lens' PutLifecyclePolicyResponse (Maybe Text) Source #

The repository name associated with the request.