| 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.GetChannelPolicy
Description
Returns the channel's IAM policy. IAM policies are used to control access to your channel.
Synopsis
- data GetChannelPolicy = GetChannelPolicy' {
- channelName :: Text
- newGetChannelPolicy :: Text -> GetChannelPolicy
- getChannelPolicy_channelName :: Lens' GetChannelPolicy Text
- data GetChannelPolicyResponse = GetChannelPolicyResponse' {
- policy :: Maybe Text
- httpStatus :: Int
- newGetChannelPolicyResponse :: Int -> GetChannelPolicyResponse
- getChannelPolicyResponse_policy :: Lens' GetChannelPolicyResponse (Maybe Text)
- getChannelPolicyResponse_httpStatus :: Lens' GetChannelPolicyResponse Int
Creating a Request
data GetChannelPolicy Source #
See: newGetChannelPolicy smart constructor.
Constructors
| GetChannelPolicy' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetChannelPolicy |
Create a value of GetChannelPolicy 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:
GetChannelPolicy, getChannelPolicy_channelName - The name of the channel associated with this Channel Policy.
Request Lenses
getChannelPolicy_channelName :: Lens' GetChannelPolicy Text Source #
The name of the channel associated with this Channel Policy.
Destructuring the Response
data GetChannelPolicyResponse Source #
See: newGetChannelPolicyResponse smart constructor.
Constructors
| GetChannelPolicyResponse' | |
Fields
| |
Instances
newGetChannelPolicyResponse Source #
Create a value of GetChannelPolicyResponse 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:policy:GetChannelPolicyResponse', getChannelPolicyResponse_policy - The IAM policy for the channel. IAM policies are used to control access
to your channel.
$sel:httpStatus:GetChannelPolicyResponse', getChannelPolicyResponse_httpStatus - The response's http status code.
Response Lenses
getChannelPolicyResponse_policy :: Lens' GetChannelPolicyResponse (Maybe Text) Source #
The IAM policy for the channel. IAM policies are used to control access to your channel.
getChannelPolicyResponse_httpStatus :: Lens' GetChannelPolicyResponse Int Source #
The response's http status code.