class Chef::Provider::AwsSnsTopic

Protected Instance Methods

create_aws_object() click to toggle source
# File lib/chef/provider/aws_sns_topic.rb, line 9
def create_aws_object
  converge_by "create SNS topic #{new_resource.name} in #{region}" do
    new_resource.driver.sns.create_topic(name: new_resource.name)
  end
end
destroy_aws_object(topic) click to toggle source
# File lib/chef/provider/aws_sns_topic.rb, line 17
def destroy_aws_object(topic)
  topic_arn_name = topic.attributes.values_at("TopicArn").first
  converge_by "delete SNS topic_arn #{topic_arn_name} in #{region}" do
    new_resource.driver.sns.delete_topic(topic_arn: topic_arn_name)
  end
end
update_aws_object(topic) click to toggle source
# File lib/chef/provider/aws_sns_topic.rb, line 15
def update_aws_object(topic); end