Class: Chef::Resource::AwsRdsInstance
- Inherits:
-
Provisioning::AWSDriver::AWSRDSResource
- Object
- LWRPBase
- Provisioning::AWSDriver::SuperLWRP
- Provisioning::AWSDriver::AWSResource
- Provisioning::AWSDriver::AWSRDSResource
- Chef::Resource::AwsRdsInstance
- Includes:
- Provisioning::AWSDriver::AWSTaggable
- Defined in:
- lib/chef/resource/aws_rds_instance.rb
Constant Summary
Constants inherited from Provisioning::AWSDriver::AWSResource
Provisioning::AWSDriver::AWSResource::NOT_PASSED
Instance Method Summary collapse
Methods included from Provisioning::AWSDriver::AWSTaggable
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
30 31 32 33 34 35 36 |
# File 'lib/chef/resource/aws_rds_instance.rb', line 30 def aws_object result = self.driver.rds_resource.db_instance(name) return nil unless result && result.db_instance_status != 'deleting' result rescue ::Aws::RDS::Errors::DBInstanceNotFound nil end |
#db_instance_status ⇒ Object
38 39 40 41 42 |
# File 'lib/chef/resource/aws_rds_instance.rb', line 38 def db_instance_status aws_object.db_instance_status if aws_object rescue ::Aws::RDS::Errors::DBInstanceNotFound nil end |
#rds_tagging_type ⇒ Object
44 45 46 |
# File 'lib/chef/resource/aws_rds_instance.rb', line 44 def rds_tagging_type "db" end |