Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Adds a statement to a topic's access control policy, granting access for the specified AWS accounts to the specified actions.
Synopsis
Creating a Request
Creates a value of AddPermission
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
apTopicARN
- The ARN of the topic whose access control policy you wish to modify.apLabel
- A unique identifier for the new policy statement.apAWSAccountId
- The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.apActionName
- The action you want to allow for the specified principal(s). Valid values: any Amazon SNS action name.
data AddPermission Source #
See: addPermission
smart constructor.
Instances
Request Lenses
apTopicARN :: Lens' AddPermission Text Source #
The ARN of the topic whose access control policy you wish to modify.
apAWSAccountId :: Lens' AddPermission [Text] Source #
The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.
apActionName :: Lens' AddPermission [Text] Source #
The action you want to allow for the specified principal(s). Valid values: any Amazon SNS action name.
Destructuring the Response
addPermissionResponse :: AddPermissionResponse Source #
Creates a value of AddPermissionResponse
with the minimum fields required to make a request.
data AddPermissionResponse Source #
See: addPermissionResponse
smart constructor.