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 |
Starts a preview of a lifecycle policy for the specified repository. This allows you to see the results before associating the lifecycle policy with the repository.
Synopsis
- data StartLifecyclePolicyPreview = StartLifecyclePolicyPreview' {}
- newStartLifecyclePolicyPreview :: Text -> StartLifecyclePolicyPreview
- startLifecyclePolicyPreview_registryId :: Lens' StartLifecyclePolicyPreview (Maybe Text)
- startLifecyclePolicyPreview_lifecyclePolicyText :: Lens' StartLifecyclePolicyPreview (Maybe Text)
- startLifecyclePolicyPreview_repositoryName :: Lens' StartLifecyclePolicyPreview Text
- data StartLifecyclePolicyPreviewResponse = StartLifecyclePolicyPreviewResponse' {}
- newStartLifecyclePolicyPreviewResponse :: Int -> StartLifecyclePolicyPreviewResponse
- startLifecyclePolicyPreviewResponse_status :: Lens' StartLifecyclePolicyPreviewResponse (Maybe LifecyclePolicyPreviewStatus)
- startLifecyclePolicyPreviewResponse_registryId :: Lens' StartLifecyclePolicyPreviewResponse (Maybe Text)
- startLifecyclePolicyPreviewResponse_lifecyclePolicyText :: Lens' StartLifecyclePolicyPreviewResponse (Maybe Text)
- startLifecyclePolicyPreviewResponse_repositoryName :: Lens' StartLifecyclePolicyPreviewResponse (Maybe Text)
- startLifecyclePolicyPreviewResponse_httpStatus :: Lens' StartLifecyclePolicyPreviewResponse Int
Creating a Request
data StartLifecyclePolicyPreview Source #
See: newStartLifecyclePolicyPreview
smart constructor.
StartLifecyclePolicyPreview' | |
|
Instances
newStartLifecyclePolicyPreview Source #
Create a value of StartLifecyclePolicyPreview
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:StartLifecyclePolicyPreview'
, startLifecyclePolicyPreview_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:lifecyclePolicyText:StartLifecyclePolicyPreview'
, startLifecyclePolicyPreview_lifecyclePolicyText
- The policy to be evaluated against. If you do not specify a policy, the
current policy for the repository is used.
$sel:repositoryName:StartLifecyclePolicyPreview'
, startLifecyclePolicyPreview_repositoryName
- The name of the repository to be evaluated.
Request Lenses
startLifecyclePolicyPreview_registryId :: Lens' StartLifecyclePolicyPreview (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.
startLifecyclePolicyPreview_lifecyclePolicyText :: Lens' StartLifecyclePolicyPreview (Maybe Text) Source #
The policy to be evaluated against. If you do not specify a policy, the current policy for the repository is used.
startLifecyclePolicyPreview_repositoryName :: Lens' StartLifecyclePolicyPreview Text Source #
The name of the repository to be evaluated.
Destructuring the Response
data StartLifecyclePolicyPreviewResponse Source #
See: newStartLifecyclePolicyPreviewResponse
smart constructor.
StartLifecyclePolicyPreviewResponse' | |
|
Instances
newStartLifecyclePolicyPreviewResponse Source #
Create a value of StartLifecyclePolicyPreviewResponse
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:status:StartLifecyclePolicyPreviewResponse'
, startLifecyclePolicyPreviewResponse_status
- The status of the lifecycle policy preview request.
$sel:registryId:StartLifecyclePolicyPreview'
, startLifecyclePolicyPreviewResponse_registryId
- The registry ID associated with the request.
$sel:lifecyclePolicyText:StartLifecyclePolicyPreview'
, startLifecyclePolicyPreviewResponse_lifecyclePolicyText
- The JSON repository policy text.
$sel:repositoryName:StartLifecyclePolicyPreview'
, startLifecyclePolicyPreviewResponse_repositoryName
- The repository name associated with the request.
$sel:httpStatus:StartLifecyclePolicyPreviewResponse'
, startLifecyclePolicyPreviewResponse_httpStatus
- The response's http status code.
Response Lenses
startLifecyclePolicyPreviewResponse_status :: Lens' StartLifecyclePolicyPreviewResponse (Maybe LifecyclePolicyPreviewStatus) Source #
The status of the lifecycle policy preview request.
startLifecyclePolicyPreviewResponse_registryId :: Lens' StartLifecyclePolicyPreviewResponse (Maybe Text) Source #
The registry ID associated with the request.
startLifecyclePolicyPreviewResponse_lifecyclePolicyText :: Lens' StartLifecyclePolicyPreviewResponse (Maybe Text) Source #
The JSON repository policy text.
startLifecyclePolicyPreviewResponse_repositoryName :: Lens' StartLifecyclePolicyPreviewResponse (Maybe Text) Source #
The repository name associated with the request.
startLifecyclePolicyPreviewResponse_httpStatus :: Lens' StartLifecyclePolicyPreviewResponse Int Source #
The response's http status code.