The RemovePermission action removes a statement from a topic’s access control policy.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The ARN of the topic whose access control policy you wish to modify. |
|
|
Required |
The unique label of the statement you want to remove. |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Remove a set of permissions.
$sns = new AmazonSNS(); // Remove a set of permissions $response = $sns->remove_permission( 'arn:aws:sns:us-east-1:9876543210:example-topic', 'my-permission-label' ); // Success? var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/sns.class.php | Toggle source view (8 lines) | View on GitHub