| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.ECR.PutLifecyclePolicy
Description
Creates or updates the lifecycle policy for the specified repository. For more information, see Lifecycle policy template.
Synopsis
- data PutLifecyclePolicy = PutLifecyclePolicy' {}
- newPutLifecyclePolicy :: Text -> Text -> PutLifecyclePolicy
- putLifecyclePolicy_registryId :: Lens' PutLifecyclePolicy (Maybe Text)
- putLifecyclePolicy_repositoryName :: Lens' PutLifecyclePolicy Text
- putLifecyclePolicy_lifecyclePolicyText :: Lens' PutLifecyclePolicy Text
- data PutLifecyclePolicyResponse = PutLifecyclePolicyResponse' {}
- newPutLifecyclePolicyResponse :: Int -> PutLifecyclePolicyResponse
- putLifecyclePolicyResponse_lifecyclePolicyText :: Lens' PutLifecyclePolicyResponse (Maybe Text)
- putLifecyclePolicyResponse_registryId :: Lens' PutLifecyclePolicyResponse (Maybe Text)
- putLifecyclePolicyResponse_repositoryName :: Lens' PutLifecyclePolicyResponse (Maybe Text)
- putLifecyclePolicyResponse_httpStatus :: Lens' PutLifecyclePolicyResponse Int
Creating a Request
data PutLifecyclePolicy Source #
See: newPutLifecyclePolicy smart constructor.
Constructors
| PutLifecyclePolicy' | |
Fields
| |
Instances
newPutLifecyclePolicy Source #
Arguments
| :: Text | |
| -> Text | |
| -> PutLifecyclePolicy |
Create a value of PutLifecyclePolicy 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:
PutLifecyclePolicy, putLifecyclePolicy_registryId - The Amazon Web Services account ID associated with the registry that
contains the repository. If you do
not specify a registry, the default
registry is assumed.
PutLifecyclePolicy, putLifecyclePolicy_repositoryName - The name of the repository to receive the policy.
PutLifecyclePolicy, putLifecyclePolicy_lifecyclePolicyText - The JSON repository policy text to apply to the repository.
Request Lenses
putLifecyclePolicy_registryId :: Lens' PutLifecyclePolicy (Maybe Text) Source #
The Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.
putLifecyclePolicy_repositoryName :: Lens' PutLifecyclePolicy Text Source #
The name of the repository to receive the policy.
putLifecyclePolicy_lifecyclePolicyText :: Lens' PutLifecyclePolicy Text Source #
The JSON repository policy text to apply to the repository.
Destructuring the Response
data PutLifecyclePolicyResponse Source #
See: newPutLifecyclePolicyResponse smart constructor.
Constructors
| PutLifecyclePolicyResponse' | |
Fields
| |
Instances
newPutLifecyclePolicyResponse Source #
Create a value of PutLifecyclePolicyResponse 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:
PutLifecyclePolicy, putLifecyclePolicyResponse_lifecyclePolicyText - The JSON repository policy text.
PutLifecyclePolicy, putLifecyclePolicyResponse_registryId - The registry ID associated with the request.
PutLifecyclePolicy, putLifecyclePolicyResponse_repositoryName - The repository name associated with the request.
$sel:httpStatus:PutLifecyclePolicyResponse', putLifecyclePolicyResponse_httpStatus - The response's http status code.
Response Lenses
putLifecyclePolicyResponse_lifecyclePolicyText :: Lens' PutLifecyclePolicyResponse (Maybe Text) Source #
The JSON repository policy text.
putLifecyclePolicyResponse_registryId :: Lens' PutLifecyclePolicyResponse (Maybe Text) Source #
The registry ID associated with the request.
putLifecyclePolicyResponse_repositoryName :: Lens' PutLifecyclePolicyResponse (Maybe Text) Source #
The repository name associated with the request.
putLifecyclePolicyResponse_httpStatus :: Lens' PutLifecyclePolicyResponse Int Source #
The response's http status code.