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 |
Retrieves the lifecycle policy for the specified repository.
Synopsis
- data GetLifecyclePolicy = GetLifecyclePolicy' {}
- newGetLifecyclePolicy :: Text -> GetLifecyclePolicy
- getLifecyclePolicy_registryId :: Lens' GetLifecyclePolicy (Maybe Text)
- getLifecyclePolicy_repositoryName :: Lens' GetLifecyclePolicy Text
- data GetLifecyclePolicyResponse = GetLifecyclePolicyResponse' {}
- newGetLifecyclePolicyResponse :: Int -> GetLifecyclePolicyResponse
- getLifecyclePolicyResponse_registryId :: Lens' GetLifecyclePolicyResponse (Maybe Text)
- getLifecyclePolicyResponse_lastEvaluatedAt :: Lens' GetLifecyclePolicyResponse (Maybe UTCTime)
- getLifecyclePolicyResponse_lifecyclePolicyText :: Lens' GetLifecyclePolicyResponse (Maybe Text)
- getLifecyclePolicyResponse_repositoryName :: Lens' GetLifecyclePolicyResponse (Maybe Text)
- getLifecyclePolicyResponse_httpStatus :: Lens' GetLifecyclePolicyResponse Int
Creating a Request
data GetLifecyclePolicy Source #
See: newGetLifecyclePolicy
smart constructor.
GetLifecyclePolicy' | |
|
Instances
newGetLifecyclePolicy Source #
Create a value of GetLifecyclePolicy
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:GetLifecyclePolicy'
, getLifecyclePolicy_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:GetLifecyclePolicy'
, getLifecyclePolicy_repositoryName
- The name of the repository.
Request Lenses
getLifecyclePolicy_registryId :: Lens' GetLifecyclePolicy (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.
getLifecyclePolicy_repositoryName :: Lens' GetLifecyclePolicy Text Source #
The name of the repository.
Destructuring the Response
data GetLifecyclePolicyResponse Source #
See: newGetLifecyclePolicyResponse
smart constructor.
GetLifecyclePolicyResponse' | |
|
Instances
newGetLifecyclePolicyResponse Source #
Create a value of GetLifecyclePolicyResponse
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:GetLifecyclePolicy'
, getLifecyclePolicyResponse_registryId
- The registry ID associated with the request.
$sel:lastEvaluatedAt:GetLifecyclePolicyResponse'
, getLifecyclePolicyResponse_lastEvaluatedAt
- The time stamp of the last time that the lifecycle policy was run.
$sel:lifecyclePolicyText:GetLifecyclePolicyResponse'
, getLifecyclePolicyResponse_lifecyclePolicyText
- The JSON lifecycle policy text.
$sel:repositoryName:GetLifecyclePolicy'
, getLifecyclePolicyResponse_repositoryName
- The repository name associated with the request.
$sel:httpStatus:GetLifecyclePolicyResponse'
, getLifecyclePolicyResponse_httpStatus
- The response's http status code.
Response Lenses
getLifecyclePolicyResponse_registryId :: Lens' GetLifecyclePolicyResponse (Maybe Text) Source #
The registry ID associated with the request.
getLifecyclePolicyResponse_lastEvaluatedAt :: Lens' GetLifecyclePolicyResponse (Maybe UTCTime) Source #
The time stamp of the last time that the lifecycle policy was run.
getLifecyclePolicyResponse_lifecyclePolicyText :: Lens' GetLifecyclePolicyResponse (Maybe Text) Source #
The JSON lifecycle policy text.
getLifecyclePolicyResponse_repositoryName :: Lens' GetLifecyclePolicyResponse (Maybe Text) Source #
The repository name associated with the request.
getLifecyclePolicyResponse_httpStatus :: Lens' GetLifecyclePolicyResponse Int Source #
The response's http status code.