Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
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.
- putContainerPolicy :: Text -> Text -> PutContainerPolicy
- data PutContainerPolicy
- pContainerName :: Lens' PutContainerPolicy Text
- pPolicy :: Lens' PutContainerPolicy Text
- putContainerPolicyResponse :: Int -> PutContainerPolicyResponse
- data PutContainerPolicyResponse
- pcprsResponseStatus :: Lens' PutContainerPolicyResponse Int
Creating a Request
Creates a value of PutContainerPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pContainerName
- The name of the container.pPolicy
- The contents of the policy, which includes the following: * OneVersion
tag * OneStatement
tag that contains the standard tags for the policy.
data PutContainerPolicy Source #
See: putContainerPolicy
smart constructor.
Request Lenses
pContainerName :: Lens' PutContainerPolicy Text Source #
The name of the container.
pPolicy :: 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
putContainerPolicyResponse Source #
Creates a value of PutContainerPolicyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pcprsResponseStatus
- -- | The response status code.
data PutContainerPolicyResponse Source #
See: putContainerPolicyResponse
smart constructor.
Response Lenses
pcprsResponseStatus :: Lens' PutContainerPolicyResponse Int Source #
- - | The response status code.