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 resource-based policy attached to a given registry.
Synopsis
- data GetResourcePolicy = GetResourcePolicy' {}
- newGetResourcePolicy :: GetResourcePolicy
- getResourcePolicy_registryName :: Lens' GetResourcePolicy (Maybe Text)
- data GetResourcePolicyResponse = GetResourcePolicyResponse' {
- policy :: Maybe Text
- revisionId :: Maybe Text
- httpStatus :: Int
- newGetResourcePolicyResponse :: Int -> GetResourcePolicyResponse
- getResourcePolicyResponse_policy :: Lens' GetResourcePolicyResponse (Maybe Text)
- getResourcePolicyResponse_revisionId :: Lens' GetResourcePolicyResponse (Maybe Text)
- getResourcePolicyResponse_httpStatus :: Lens' GetResourcePolicyResponse Int
Creating a Request
data GetResourcePolicy Source #
See: newGetResourcePolicy
smart constructor.
GetResourcePolicy' | |
|
Instances
newGetResourcePolicy :: GetResourcePolicy Source #
Create a value of GetResourcePolicy
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:registryName:GetResourcePolicy'
, getResourcePolicy_registryName
- The name of the registry.
Request Lenses
getResourcePolicy_registryName :: Lens' GetResourcePolicy (Maybe Text) Source #
The name of the registry.
Destructuring the Response
data GetResourcePolicyResponse Source #
See: newGetResourcePolicyResponse
smart constructor.
GetResourcePolicyResponse' | |
|
Instances
newGetResourcePolicyResponse Source #
Create a value of GetResourcePolicyResponse
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:policy:GetResourcePolicyResponse'
, getResourcePolicyResponse_policy
- The resource-based policy.
$sel:revisionId:GetResourcePolicyResponse'
, getResourcePolicyResponse_revisionId
- The revision ID.
$sel:httpStatus:GetResourcePolicyResponse'
, getResourcePolicyResponse_httpStatus
- The response's http status code.
Response Lenses
getResourcePolicyResponse_policy :: Lens' GetResourcePolicyResponse (Maybe Text) Source #
The resource-based policy.
getResourcePolicyResponse_revisionId :: Lens' GetResourcePolicyResponse (Maybe Text) Source #
The revision ID.
getResourcePolicyResponse_httpStatus :: Lens' GetResourcePolicyResponse Int Source #
The response's http status code.