| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.ECR.GetLifecyclePolicy
Description
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_lastEvaluatedAt :: Lens' GetLifecyclePolicyResponse (Maybe UTCTime)
- getLifecyclePolicyResponse_lifecyclePolicyText :: Lens' GetLifecyclePolicyResponse (Maybe Text)
- getLifecyclePolicyResponse_registryId :: 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.
Constructors
| GetLifecyclePolicy' | |
Fields
| |
Instances
newGetLifecyclePolicy Source #
Arguments
| :: Text | |
| -> GetLifecyclePolicy |
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:
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.
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.
Constructors
| GetLifecyclePolicyResponse' | |
Fields
| |
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: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.
GetLifecyclePolicy, getLifecyclePolicyResponse_registryId - The registry ID associated with the request.
GetLifecyclePolicy, getLifecyclePolicyResponse_repositoryName - The repository name associated with the request.
$sel:httpStatus:GetLifecyclePolicyResponse', getLifecyclePolicyResponse_httpStatus - The response's http status code.
Response Lenses
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_registryId :: Lens' GetLifecyclePolicyResponse (Maybe Text) Source #
The registry ID associated with the request.
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.