| 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.GetRegistryPolicy
Description
Retrieves the permissions policy for a registry.
Synopsis
- data GetRegistryPolicy = GetRegistryPolicy' {
- newGetRegistryPolicy :: GetRegistryPolicy
- data GetRegistryPolicyResponse = GetRegistryPolicyResponse' {
- policyText :: Maybe Text
- registryId :: Maybe Text
- httpStatus :: Int
- newGetRegistryPolicyResponse :: Int -> GetRegistryPolicyResponse
- getRegistryPolicyResponse_policyText :: Lens' GetRegistryPolicyResponse (Maybe Text)
- getRegistryPolicyResponse_registryId :: Lens' GetRegistryPolicyResponse (Maybe Text)
- getRegistryPolicyResponse_httpStatus :: Lens' GetRegistryPolicyResponse Int
Creating a Request
data GetRegistryPolicy Source #
See: newGetRegistryPolicy smart constructor.
Constructors
| GetRegistryPolicy' | |
Instances
newGetRegistryPolicy :: GetRegistryPolicy Source #
Create a value of GetRegistryPolicy with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
Destructuring the Response
data GetRegistryPolicyResponse Source #
See: newGetRegistryPolicyResponse smart constructor.
Constructors
| GetRegistryPolicyResponse' | |
Fields
| |
Instances
newGetRegistryPolicyResponse Source #
Create a value of GetRegistryPolicyResponse 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:policyText:GetRegistryPolicyResponse', getRegistryPolicyResponse_policyText - The JSON text of the permissions policy for a registry.
GetRegistryPolicyResponse, getRegistryPolicyResponse_registryId - The ID of the registry.
$sel:httpStatus:GetRegistryPolicyResponse', getRegistryPolicyResponse_httpStatus - The response's http status code.
Response Lenses
getRegistryPolicyResponse_policyText :: Lens' GetRegistryPolicyResponse (Maybe Text) Source #
The JSON text of the permissions policy for a registry.
getRegistryPolicyResponse_registryId :: Lens' GetRegistryPolicyResponse (Maybe Text) Source #
The ID of the registry.
getRegistryPolicyResponse_httpStatus :: Lens' GetRegistryPolicyResponse Int Source #
The response's http status code.