Class: Convection::Model::Template::Resource::SNSTopic

Inherits:
Convection::Model::Template::Resource show all
Defined in:
lib/convection/model/template/resource/aws_sns_topic.rb

Overview

Examples:

sns_topic 'MyTopic' do
  display_name 'my topic'
  topic_name "example-topic"
  subscription [{"Protocol" => "sqs", "Endpoint" => "arn:aws:sqs:....}]
end

See Also:

Instance Attribute Summary

Attributes inherited from Convection::Model::Template::Resource

#exist, #name, #parent, #properties, #resource_attributes, #template

Instance Method Summary collapse

Methods inherited from Convection::Model::Template::Resource

#as_attribute, attach_method, #deletion_policy, #depends_on, #initialize, properties, property, #property, #reference, #render, type, #type, #with_output

Methods included from Mixin::Conditional

#condition, #render_condition

Methods included from DSL::Template::Resource

attach_resource

Methods included from DSL::Helpers

#camel_case, included, method_name, #screaming_snake_case, #snake_case

Methods included from DSL::IntrinsicFunctions

#base64, #find_in_map, #fn_and, #fn_equals, #fn_if, #fn_not, #fn_or, #fn_ref, #get_att, #get_azs, #join, #select

Constructor Details

This class inherits a constructor from Convection::Model::Template::Resource

Instance Method Details

#display_nameObject #display_name(value) ⇒ Object

Overloads:

  • #display_nameObject

    Returns the value of the 'DisplayName' CloudFormation property.

  • #display_name(value) ⇒ Object

    Sets the 'DisplayName' CloudFormation property.

    Parameters:

    • value

      the value to set the 'DisplayName' CloudFormation property to.



15
# File 'lib/convection/model/template/resource/aws_sns_topic.rb', line 15

property :display_name, 'DisplayName'

#subscriptionObject #subscription(value) ⇒ Object

Overloads:

  • #subscriptionObject

    Returns the value of the 'Subscription' CloudFormation property.

  • #subscription(value) ⇒ Object

    Sets the 'Subscription' CloudFormation property.

    Parameters:

    • value

      the value to set the 'Subscription' CloudFormation property to.



16
# File 'lib/convection/model/template/resource/aws_sns_topic.rb', line 16

property :subscription, 'Subscription', :type => :list

#topic_nameObject #topic_name(value) ⇒ Object

Overloads:

  • #topic_nameObject

    Returns the value of the 'TopicName' CloudFormation property.

  • #topic_name(value) ⇒ Object

    Sets the 'TopicName' CloudFormation property.

    Parameters:

    • value

      the value to set the 'TopicName' CloudFormation property to.



17
# File 'lib/convection/model/template/resource/aws_sns_topic.rb', line 17

property :topic_name, 'TopicName'