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.SNS.RemovePermission
Description
Removes a statement from a topic's access control policy.
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 RemovePermission = RemovePermission' {}
- newRemovePermission :: Text -> Text -> RemovePermission
- removePermission_topicArn :: Lens' RemovePermission Text
- removePermission_label :: Lens' RemovePermission Text
- data RemovePermissionResponse = RemovePermissionResponse' {
- newRemovePermissionResponse :: RemovePermissionResponse
Creating a Request
data RemovePermission Source #
Input for RemovePermission action.
See: newRemovePermission
smart constructor.
Constructors
RemovePermission' | |
Instances
Arguments
:: Text | |
-> Text | |
-> RemovePermission |
Create a value of RemovePermission
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:
RemovePermission
, removePermission_topicArn
- The ARN of the topic whose access control policy you wish to modify.
$sel:label:RemovePermission'
, removePermission_label
- The unique label of the statement you want to remove.
Request Lenses
removePermission_topicArn :: Lens' RemovePermission Text Source #
The ARN of the topic whose access control policy you wish to modify.
removePermission_label :: Lens' RemovePermission Text Source #
The unique label of the statement you want to remove.
Destructuring the Response
data RemovePermissionResponse Source #
See: newRemovePermissionResponse
smart constructor.
Constructors
RemovePermissionResponse' | |
Instances
newRemovePermissionResponse :: RemovePermissionResponse Source #
Create a value of RemovePermissionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.