| 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.StartLifecyclePolicyPreview
Description
Starts a preview of the specified lifecycle policy. This allows you to see the results before creating the lifecycle policy.
Synopsis
- startLifecyclePolicyPreview :: Text -> StartLifecyclePolicyPreview
- data StartLifecyclePolicyPreview
- slppRegistryId :: Lens' StartLifecyclePolicyPreview (Maybe Text)
- slppLifecyclePolicyText :: Lens' StartLifecyclePolicyPreview (Maybe Text)
- slppRepositoryName :: Lens' StartLifecyclePolicyPreview Text
- startLifecyclePolicyPreviewResponse :: Int -> StartLifecyclePolicyPreviewResponse
- data StartLifecyclePolicyPreviewResponse
- slpprsStatus :: Lens' StartLifecyclePolicyPreviewResponse (Maybe LifecyclePolicyPreviewStatus)
- slpprsRegistryId :: Lens' StartLifecyclePolicyPreviewResponse (Maybe Text)
- slpprsLifecyclePolicyText :: Lens' StartLifecyclePolicyPreviewResponse (Maybe Text)
- slpprsRepositoryName :: Lens' StartLifecyclePolicyPreviewResponse (Maybe Text)
- slpprsResponseStatus :: Lens' StartLifecyclePolicyPreviewResponse Int
Creating a Request
startLifecyclePolicyPreview Source #
Arguments
| :: Text | |
| -> StartLifecyclePolicyPreview |
Creates a value of StartLifecyclePolicyPreview with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
slppRegistryId- The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.slppLifecyclePolicyText- The policy to be evaluated against. If you do not specify a policy, the current policy for the repository is used.slppRepositoryName- The name of the repository to be evaluated.
data StartLifecyclePolicyPreview Source #
See: startLifecyclePolicyPreview smart constructor.
Instances
Request Lenses
slppRegistryId :: Lens' StartLifecyclePolicyPreview (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.
slppLifecyclePolicyText :: 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.
slppRepositoryName :: Lens' StartLifecyclePolicyPreview Text Source #
The name of the repository to be evaluated.
Destructuring the Response
startLifecyclePolicyPreviewResponse Source #
Arguments
| :: Int | |
| -> StartLifecyclePolicyPreviewResponse |
Creates a value of StartLifecyclePolicyPreviewResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
slpprsStatus- The status of the lifecycle policy preview request.slpprsRegistryId- The registry ID associated with the request.slpprsLifecyclePolicyText- The JSON repository policy text.slpprsRepositoryName- The repository name associated with the request.slpprsResponseStatus- -- | The response status code.
data StartLifecyclePolicyPreviewResponse Source #
See: startLifecyclePolicyPreviewResponse smart constructor.
Instances
Response Lenses
slpprsStatus :: Lens' StartLifecyclePolicyPreviewResponse (Maybe LifecyclePolicyPreviewStatus) Source #
The status of the lifecycle policy preview request.
slpprsRegistryId :: Lens' StartLifecyclePolicyPreviewResponse (Maybe Text) Source #
The registry ID associated with the request.
slpprsLifecyclePolicyText :: Lens' StartLifecyclePolicyPreviewResponse (Maybe Text) Source #
The JSON repository policy text.
slpprsRepositoryName :: Lens' StartLifecyclePolicyPreviewResponse (Maybe Text) Source #
The repository name associated with the request.
slpprsResponseStatus :: Lens' StartLifecyclePolicyPreviewResponse Int Source #
- - | The response status code.