The GetTopicAttribtues action returns all of the properties of a topic customers have created. Topic properties returned might differ based on the authorization of the user.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The ARN of the topic whose properties you want to get. |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Get the attributes of a given topic.
$sns = new AmazonSNS(); // Get topic attributes $response = $sns->get_topic_attributes('arn:aws:sns:us-east-1:9876543210:example-topic'); // Success? var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/sns.class.php | Toggle source view (7 lines) | View on GitHub