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 |
Retrieves information about a channel's IAM policy.
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.
GetChannelPolicy' | |
|
Instances
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:
$sel:channelName:GetChannelPolicy'
, getChannelPolicy_channelName
- The identifier for the channel you are working on.
Request Lenses
getChannelPolicy_channelName :: Lens' GetChannelPolicy Text Source #
The identifier for the channel you are working on.
Destructuring the Response
data GetChannelPolicyResponse Source #
See: newGetChannelPolicyResponse
smart constructor.
GetChannelPolicyResponse' | |
|
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.
$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.
getChannelPolicyResponse_httpStatus :: Lens' GetChannelPolicyResponse Int Source #
The response's http status code.