| 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 |
Amazonka.MediaTailor.PutChannelPolicy
Description
Creates an IAM policy for the channel.
Synopsis
- data PutChannelPolicy = PutChannelPolicy' {
- channelName :: Text
- policy :: Text
- newPutChannelPolicy :: Text -> Text -> PutChannelPolicy
- putChannelPolicy_channelName :: Lens' PutChannelPolicy Text
- putChannelPolicy_policy :: Lens' PutChannelPolicy Text
- data PutChannelPolicyResponse = PutChannelPolicyResponse' {
- httpStatus :: Int
- newPutChannelPolicyResponse :: Int -> PutChannelPolicyResponse
- putChannelPolicyResponse_httpStatus :: Lens' PutChannelPolicyResponse Int
Creating a Request
data PutChannelPolicy Source #
See: newPutChannelPolicy smart constructor.
Constructors
| PutChannelPolicy' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> PutChannelPolicy |
Create a value of PutChannelPolicy 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:channelName:PutChannelPolicy', putChannelPolicy_channelName - The identifier for the channel you are working on.
$sel:policy:PutChannelPolicy', putChannelPolicy_policy - Adds an IAM role that determines the permissions of your channel.
Request Lenses
putChannelPolicy_channelName :: Lens' PutChannelPolicy Text Source #
The identifier for the channel you are working on.
putChannelPolicy_policy :: Lens' PutChannelPolicy Text Source #
Adds an IAM role that determines the permissions of your channel.
Destructuring the Response
data PutChannelPolicyResponse Source #
See: newPutChannelPolicyResponse smart constructor.
Constructors
| PutChannelPolicyResponse' | |
Fields
| |
Instances
newPutChannelPolicyResponse Source #
Create a value of PutChannelPolicyResponse 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:PutChannelPolicyResponse', putChannelPolicyResponse_httpStatus - The response's http status code.
Response Lenses
putChannelPolicyResponse_httpStatus :: Lens' PutChannelPolicyResponse Int Source #
The response's http status code.