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 |
Retrieves the specified lifecycle policy.
Synopsis
- getLifecyclePolicy :: Text -> GetLifecyclePolicy
- data GetLifecyclePolicy
- glpRegistryId :: Lens' GetLifecyclePolicy (Maybe Text)
- glpRepositoryName :: Lens' GetLifecyclePolicy Text
- getLifecyclePolicyResponse :: Int -> GetLifecyclePolicyResponse
- data GetLifecyclePolicyResponse
- glprsRegistryId :: Lens' GetLifecyclePolicyResponse (Maybe Text)
- glprsLastEvaluatedAt :: Lens' GetLifecyclePolicyResponse (Maybe UTCTime)
- glprsLifecyclePolicyText :: Lens' GetLifecyclePolicyResponse (Maybe Text)
- glprsRepositoryName :: Lens' GetLifecyclePolicyResponse (Maybe Text)
- glprsResponseStatus :: Lens' GetLifecyclePolicyResponse Int
Creating a Request
Creates a value of GetLifecyclePolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
glpRegistryId
- The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.glpRepositoryName
- The name of the repository.
data GetLifecyclePolicy Source #
See: getLifecyclePolicy
smart constructor.
Instances
Request Lenses
glpRegistryId :: Lens' GetLifecyclePolicy (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.
glpRepositoryName :: Lens' GetLifecyclePolicy Text Source #
The name of the repository.
Destructuring the Response
getLifecyclePolicyResponse Source #
Creates a value of GetLifecyclePolicyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
glprsRegistryId
- The registry ID associated with the request.glprsLastEvaluatedAt
- The time stamp of the last time that the lifecycle policy was run.glprsLifecyclePolicyText
- The JSON lifecycle policy text.glprsRepositoryName
- The repository name associated with the request.glprsResponseStatus
- -- | The response status code.
data GetLifecyclePolicyResponse Source #
See: getLifecyclePolicyResponse
smart constructor.
Instances
Response Lenses
glprsRegistryId :: Lens' GetLifecyclePolicyResponse (Maybe Text) Source #
The registry ID associated with the request.
glprsLastEvaluatedAt :: Lens' GetLifecyclePolicyResponse (Maybe UTCTime) Source #
The time stamp of the last time that the lifecycle policy was run.
glprsLifecyclePolicyText :: Lens' GetLifecyclePolicyResponse (Maybe Text) Source #
The JSON lifecycle policy text.
glprsRepositoryName :: Lens' GetLifecyclePolicyResponse (Maybe Text) Source #
The repository name associated with the request.
glprsResponseStatus :: Lens' GetLifecyclePolicyResponse Int Source #
- - | The response status code.