Class: Chef::Resource::AwsServerCertificate
- Inherits:
-
Provisioning::AWSDriver::AWSResource
- Object
- LWRPBase
- Provisioning::AWSDriver::SuperLWRP
- Provisioning::AWSDriver::AWSResource
- Chef::Resource::AwsServerCertificate
- Defined in:
- lib/chef/resource/aws_server_certificate.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
Constructor Details
This class inherits a constructor from Chef::Provisioning::AWSDriver::AWSResource
Instance Method Details
#aws_object ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/chef/resource/aws_server_certificate.rb', line 11 def aws_object begin cert = driver.iam.server_certificates[name] # this will trigger a AWS::IAM::Errors::NoSuchEntity if the cert does not exist cert.arn cert rescue AWS::IAM::Errors::NoSuchEntity nil end end |