| 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.Schemas.GetResourcePolicy
Description
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.
Constructors
| GetResourcePolicy' | |
Fields
| |
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:
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.
Constructors
| GetResourcePolicyResponse' | |
Fields
| |
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.