Copyright | (c) 2013-2021 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 |
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_registryId :: Lens' PutLifecyclePolicyResponse (Maybe Text)
- putLifecyclePolicyResponse_lifecyclePolicyText :: 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.
PutLifecyclePolicy' | |
|
Instances
newPutLifecyclePolicy Source #
:: 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:
$sel:registryId: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.
$sel:repositoryName:PutLifecyclePolicy'
, putLifecyclePolicy_repositoryName
- The name of the repository to receive the policy.
$sel:lifecyclePolicyText: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.
PutLifecyclePolicyResponse' | |
|
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:
$sel:registryId:PutLifecyclePolicy'
, putLifecyclePolicyResponse_registryId
- The registry ID associated with the request.
$sel:lifecyclePolicyText:PutLifecyclePolicy'
, putLifecyclePolicyResponse_lifecyclePolicyText
- The JSON repository policy text.
$sel:repositoryName:PutLifecyclePolicy'
, putLifecyclePolicyResponse_repositoryName
- The repository name associated with the request.
$sel:httpStatus:PutLifecyclePolicyResponse'
, putLifecyclePolicyResponse_httpStatus
- The response's http status code.
Response Lenses
putLifecyclePolicyResponse_registryId :: Lens' PutLifecyclePolicyResponse (Maybe Text) Source #
The registry ID associated with the request.
putLifecyclePolicyResponse_lifecyclePolicyText :: Lens' PutLifecyclePolicyResponse (Maybe Text) Source #
The JSON repository policy text.
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.