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 |
Creates an access policy for the specified container to restrict the users and clients that can access it. For information about the data that is included in an access policy, see the AWS Identity and Access Management User Guide.
For this release of the REST API, you can create only one policy for a
container. If you enter PutContainerPolicy
twice, the second command
modifies the existing policy.
Synopsis
- data PutContainerPolicy = PutContainerPolicy' {
- containerName :: Text
- policy :: Text
- newPutContainerPolicy :: Text -> Text -> PutContainerPolicy
- putContainerPolicy_containerName :: Lens' PutContainerPolicy Text
- putContainerPolicy_policy :: Lens' PutContainerPolicy Text
- data PutContainerPolicyResponse = PutContainerPolicyResponse' {
- httpStatus :: Int
- newPutContainerPolicyResponse :: Int -> PutContainerPolicyResponse
- putContainerPolicyResponse_httpStatus :: Lens' PutContainerPolicyResponse Int
Creating a Request
data PutContainerPolicy Source #
See: newPutContainerPolicy
smart constructor.
PutContainerPolicy' | |
|
Instances
newPutContainerPolicy Source #
:: Text | |
-> Text | |
-> PutContainerPolicy |
Create a value of PutContainerPolicy
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:PutContainerPolicy'
, putContainerPolicy_containerName
- The name of the container.
$sel:policy:PutContainerPolicy'
, putContainerPolicy_policy
- The contents of the policy, which includes the following:
- One
Version
tag - One
Statement
tag that contains the standard tags for the policy.
Request Lenses
putContainerPolicy_containerName :: Lens' PutContainerPolicy Text Source #
The name of the container.
putContainerPolicy_policy :: Lens' PutContainerPolicy Text Source #
The contents of the policy, which includes the following:
- One
Version
tag - One
Statement
tag that contains the standard tags for the policy.
Destructuring the Response
data PutContainerPolicyResponse Source #
See: newPutContainerPolicyResponse
smart constructor.
PutContainerPolicyResponse' | |
|
Instances
newPutContainerPolicyResponse Source #
Create a value of PutContainerPolicyResponse
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:PutContainerPolicyResponse'
, putContainerPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
putContainerPolicyResponse_httpStatus :: Lens' PutContainerPolicyResponse Int Source #
The response's http status code.