class Chef::Resource::AwsSnsTopic

Public Instance Methods

aws_object() click to toggle source
# File lib/chef/resource/aws_sns_topic.rb, line 9
def aws_object
  begin
    # Test whether it exists or not by asking for a property
    result = driver.sns.get_topic_attributes(topic_arn: arn)
    result = result.data
  rescue ::Aws::SNS::Errors::NotFound
    result = nil
  end
  result
end