| 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.MediaStore.PutContainerPolicy
Description
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.
Constructors
| PutContainerPolicy' | |
Fields
| |
Instances
newPutContainerPolicy Source #
Arguments
| :: 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
Versiontag - One
Statementtag 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
Versiontag - One
Statementtag that contains the standard tags for the policy.
Destructuring the Response
data PutContainerPolicyResponse Source #
See: newPutContainerPolicyResponse smart constructor.
Constructors
| PutContainerPolicyResponse' | |
Fields
| |
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.