| 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.MediaTailor.PutChannelPolicy
Description
Creates an IAM policy for the channel. IAM policies are used to control access to your 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:
PutChannelPolicy, putChannelPolicy_channelName - The channel name associated with this Channel Policy.
$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 channel name associated with this Channel Policy.
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.