Class: Chef::Resource::AwsSnsTopic

Inherits:
Provisioning::AWSDriver::AWSResource show all
Defined in:
lib/chef/resource/aws_sns_topic.rb

Constant Summary

Constants inherited from Provisioning::AWSDriver::AWSResource

Provisioning::AWSDriver::AWSResource::NOT_PASSED

Instance Method Summary collapse

Methods inherited from Provisioning::AWSDriver::AWSResource

#action, #action=, #aws_object_id, get_aws_object, get_aws_object_id, #initialize, lookup_options

Methods inherited from Provisioning::AWSDriver::SuperLWRP

#_pv_is, attribute, lazy

Constructor Details

This class inherits a constructor from Chef::Provisioning::AWSDriver::AWSResource

Instance Method Details

#aws_objectObject



9
10
11
12
13
14
15
16
17
18
# File 'lib/chef/resource/aws_sns_topic.rb', line 9

def aws_object
  result = driver.sns.topics[arn]
  begin
    # Test whether it exists or not by asking for a property
    result.display_name
  rescue AWS::SNS::Errors::NotFound
    result = nil
  end
  result
end