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 |
Adds a statement to a topic's access control policy, granting access for the specified accounts to the specified actions.
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:
$sel:topicArn: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 account IDs of the users (principals) who will be given access to
the specified actions. The users must have 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 account IDs of the users (principals) who will be given access to the specified actions. The users must have 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
Eq AddPermissionResponse Source # | |
Defined in Amazonka.SNS.AddPermission (==) :: AddPermissionResponse -> AddPermissionResponse -> Bool # (/=) :: AddPermissionResponse -> AddPermissionResponse -> Bool # | |
Read AddPermissionResponse Source # | |
Show AddPermissionResponse Source # | |
Defined in Amazonka.SNS.AddPermission showsPrec :: Int -> AddPermissionResponse -> ShowS # show :: AddPermissionResponse -> String # showList :: [AddPermissionResponse] -> ShowS # | |
Generic AddPermissionResponse Source # | |
Defined in Amazonka.SNS.AddPermission type Rep AddPermissionResponse :: Type -> Type # | |
NFData AddPermissionResponse Source # | |
Defined in Amazonka.SNS.AddPermission rnf :: AddPermissionResponse -> () # | |
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.