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 |
Adds a statement to a topic's access control policy, granting access for the specified Amazon Web Services accounts to the specified actions.
To remove the ability to change topic permissions, you must deny
permissions to the AddPermission
, RemovePermission
, and
SetTopicAttributes
actions in your IAM policy.
Synopsis
- data AddPermission = AddPermission' {
- topicArn :: Text
- label :: Text
- aWSAccountId :: [Text]
- actionName :: [Text]
- newAddPermission :: Text -> Text -> AddPermission
- addPermission_topicArn :: Lens' AddPermission Text
- addPermission_label :: Lens' AddPermission Text
- addPermission_aWSAccountId :: Lens' AddPermission [Text]
- addPermission_actionName :: Lens' AddPermission [Text]
- data AddPermissionResponse = AddPermissionResponse' {
- newAddPermissionResponse :: AddPermissionResponse
Creating a Request
data AddPermission Source #
See: newAddPermission
smart constructor.
AddPermission' | |
|
Instances
Create a value of AddPermission
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:
AddPermission
, addPermission_topicArn
- The ARN of the topic whose access control policy you wish to modify.
$sel:label:AddPermission'
, addPermission_label
- A unique identifier for the new policy statement.
$sel:aWSAccountId:AddPermission'
, addPermission_aWSAccountId
- The Amazon Web Services account IDs of the users (principals) who will
be given access to the specified actions. The users must have Amazon Web
Services account, but do not need to be signed up for this service.
$sel:actionName:AddPermission'
, addPermission_actionName
- The action you want to allow for the specified principal(s).
Valid values: Any Amazon SNS action name, for example Publish
.
Request Lenses
addPermission_topicArn :: Lens' AddPermission Text Source #
The ARN of the topic whose access control policy you wish to modify.
addPermission_label :: Lens' AddPermission Text Source #
A unique identifier for the new policy statement.
addPermission_aWSAccountId :: Lens' AddPermission [Text] Source #
The Amazon Web Services account IDs of the users (principals) who will be given access to the specified actions. The users must have Amazon Web Services account, but do not need to be signed up for this service.
addPermission_actionName :: Lens' AddPermission [Text] Source #
The action you want to allow for the specified principal(s).
Valid values: Any Amazon SNS action name, for example Publish
.
Destructuring the Response
data AddPermissionResponse Source #
See: newAddPermissionResponse
smart constructor.
Instances
Generic AddPermissionResponse Source # | |
Defined in Amazonka.SNS.AddPermission type Rep AddPermissionResponse :: Type -> Type # | |
Read AddPermissionResponse Source # | |
Show AddPermissionResponse Source # | |
Defined in Amazonka.SNS.AddPermission showsPrec :: Int -> AddPermissionResponse -> ShowS # show :: AddPermissionResponse -> String # showList :: [AddPermissionResponse] -> ShowS # | |
NFData AddPermissionResponse Source # | |
Defined in Amazonka.SNS.AddPermission rnf :: AddPermissionResponse -> () # | |
Eq AddPermissionResponse Source # | |
Defined in Amazonka.SNS.AddPermission (==) :: AddPermissionResponse -> AddPermissionResponse -> Bool # (/=) :: AddPermissionResponse -> AddPermissionResponse -> Bool # | |
type Rep AddPermissionResponse Source # | |
newAddPermissionResponse :: AddPermissionResponse Source #
Create a value of AddPermissionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.