| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.ECR.PutLifecyclePolicy
Description
Creates or updates a lifecycle policy. For information about lifecycle policy syntax, see Lifecycle Policy Template .
Synopsis
- putLifecyclePolicy :: Text -> Text -> PutLifecyclePolicy
- data PutLifecyclePolicy
- plpRegistryId :: Lens' PutLifecyclePolicy (Maybe Text)
- plpRepositoryName :: Lens' PutLifecyclePolicy Text
- plpLifecyclePolicyText :: Lens' PutLifecyclePolicy Text
- putLifecyclePolicyResponse :: Int -> PutLifecyclePolicyResponse
- data PutLifecyclePolicyResponse
- plprsRegistryId :: Lens' PutLifecyclePolicyResponse (Maybe Text)
- plprsLifecyclePolicyText :: Lens' PutLifecyclePolicyResponse (Maybe Text)
- plprsRepositoryName :: Lens' PutLifecyclePolicyResponse (Maybe Text)
- plprsResponseStatus :: Lens' PutLifecyclePolicyResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> PutLifecyclePolicy |
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
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 #
Arguments
| :: Int | |
| -> PutLifecyclePolicyResponse |
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:
plprsRegistryId- The registry ID associated with the request.plprsLifecyclePolicyText- The JSON repository policy text.plprsRepositoryName- The repository name associated with the request.plprsResponseStatus- -- | The response status code.
data PutLifecyclePolicyResponse Source #
See: putLifecyclePolicyResponse smart constructor.
Instances
Response Lenses
plprsRegistryId :: Lens' PutLifecyclePolicyResponse (Maybe Text) Source #
The registry ID associated with the request.
plprsLifecyclePolicyText :: Lens' PutLifecyclePolicyResponse (Maybe Text) Source #
The JSON repository policy text.
plprsRepositoryName :: Lens' PutLifecyclePolicyResponse (Maybe Text) Source #
The repository name associated with the request.
plprsResponseStatus :: Lens' PutLifecyclePolicyResponse Int Source #
- - | The response status code.