Class: Chef::Provider::AwsSqsQueue
Constant Summary
Chef::Provisioning::AWSDriver::AWSProvider::AWSResource
Instance Attribute Summary
#purging
Instance Method Summary
collapse
#action_handler, #converge_by, #region, #whyrun_supported?
Instance Method Details
#create_aws_object ⇒ Object
6
7
8
9
10
11
12
|
# File 'lib/chef/provider/aws_sqs_queue.rb', line 6
def create_aws_object
converge_by "create SQS queue #{new_resource.name} in #{region}" do
retry_with_backoff(AWS::SQS::Errors::QueueDeletedRecently) do
new_resource.driver.sqs.queues.create(new_resource.name, new_resource.options || {})
end
end
end
|
#destroy_aws_object(queue) ⇒ Object
17
18
19
20
21
|
# File 'lib/chef/provider/aws_sqs_queue.rb', line 17
def destroy_aws_object(queue)
converge_by "delete SQS queue #{new_resource.name} in #{region}" do
queue.delete
end
end
|
#update_aws_object(queue) ⇒ Object
14
15
|
# File 'lib/chef/provider/aws_sqs_queue.rb', line 14
def update_aws_object(queue)
end
|