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 access policy for the specified container. For information about the data that is included in an access policy, see the AWS Identity and Access Management User Guide.
Synopsis
- data GetContainerPolicy = GetContainerPolicy' {}
- newGetContainerPolicy :: Text -> GetContainerPolicy
- getContainerPolicy_containerName :: Lens' GetContainerPolicy Text
- data GetContainerPolicyResponse = GetContainerPolicyResponse' {
- httpStatus :: Int
- policy :: Text
- newGetContainerPolicyResponse :: Int -> Text -> GetContainerPolicyResponse
- getContainerPolicyResponse_httpStatus :: Lens' GetContainerPolicyResponse Int
- getContainerPolicyResponse_policy :: Lens' GetContainerPolicyResponse Text
Creating a Request
data GetContainerPolicy Source #
See: newGetContainerPolicy
smart constructor.
GetContainerPolicy' | |
|
Instances
newGetContainerPolicy Source #
Create a value of GetContainerPolicy
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:containerName:GetContainerPolicy'
, getContainerPolicy_containerName
- The name of the container.
Request Lenses
getContainerPolicy_containerName :: Lens' GetContainerPolicy Text Source #
The name of the container.
Destructuring the Response
data GetContainerPolicyResponse Source #
See: newGetContainerPolicyResponse
smart constructor.
GetContainerPolicyResponse' | |
|
Instances
newGetContainerPolicyResponse Source #
:: Int | |
-> Text | |
-> GetContainerPolicyResponse |
Create a value of GetContainerPolicyResponse
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:httpStatus:GetContainerPolicyResponse'
, getContainerPolicyResponse_httpStatus
- The response's http status code.
$sel:policy:GetContainerPolicyResponse'
, getContainerPolicyResponse_policy
- The contents of the access policy.
Response Lenses
getContainerPolicyResponse_httpStatus :: Lens' GetContainerPolicyResponse Int Source #
The response's http status code.
getContainerPolicyResponse_policy :: Lens' GetContainerPolicyResponse Text Source #
The contents of the access policy.