You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::SNS::Resource
- Inherits:
-
Resources::Resource
- Object
- Resources::Resource
- Aws::SNS::Resource
- Defined in:
- (unknown)
Overview
This class provides a resource oriented interface for Amazon SNS. To create a resource object:
resource = Aws::SNS::Resource.new
You can supply a client object with custom configuration that will be
used for all resource operations. If you do not pass :client
,
a default client will be constructed.
client = Aws::SNS::Client.new(region: 'us-west-2')
resource = Aws::SNS::Resource.new(client: client)
Resource Resource Classes
Aws::SNS::Resource has the following resource classes:
Instance Attribute Summary
Attributes inherited from Resources::Resource
Instance Method Summary collapse
-
#create_platform_application(options = {}) ⇒ PlatformApplication
-
#create_topic(options = {}) ⇒ Topic
-
#initialize ⇒ Object
constructor
-
#platform_application(arn) ⇒ PlatformApplication
-
#platform_applications(options = {}) ⇒ Collection<PlatformApplication>
Returns a Collection of PlatformApplication resources.
-
#platform_endpoint(arn) ⇒ PlatformEndpoint
-
#subscription(arn) ⇒ Subscription
-
#subscriptions(options = {}) ⇒ Collection<Subscription>
Returns a Collection of Subscription resources.
-
#topic(arn) ⇒ Topic
-
#topics(options = {}) ⇒ Collection<Topic>
Returns a Collection of Topic resources.
Methods inherited from Resources::Resource
add_data_attribute, add_identifier, #data, data_attributes, #data_loaded?, identifiers, #load, #wait_until
Methods included from Resources::OperationMethods
#add_batch_operation, #add_operation, #batch_operation, #batch_operation_names, #batch_operations, #operation, #operation_names, #operations
Constructor Details
#initialize(options = {}) ⇒ Object #initialize(options = {}) ⇒ Object
Instance Method Details
#create_platform_application(options = {}) ⇒ PlatformApplication
#create_topic(options = {}) ⇒ Topic
#platform_application(arn) ⇒ PlatformApplication
#platform_applications(options = {}) ⇒ Collection<PlatformApplication>
Returns a Collection of PlatformApplication resources. No API requests are made until you call an enumerable method on the collection. Client#list_platform_applications will be called multiple times until every PlatformApplication has been yielded.
#platform_endpoint(arn) ⇒ PlatformEndpoint
#subscription(arn) ⇒ Subscription
#subscriptions(options = {}) ⇒ Collection<Subscription>
Returns a Collection of Subscription resources. No API requests are made until you call an enumerable method on the collection. Client#list_subscriptions will be called multiple times until every Subscription has been yielded.
#topic(arn) ⇒ Topic
#topics(options = {}) ⇒ Collection<Topic>
Returns a Collection of Topic resources. No API requests are made until you call an enumerable method on the collection. Client#list_topics will be called multiple times until every Topic has been yielded.