class AWS::CloudFormation
def stack_resource *args
-
(StackResource)
- Returns the stack resource with the
Parameters:
-
logical_resource_id
(String
) -- -
stack_name
(String
) -- -
physical_resource_id
(String
) -- The physical resource id
Overloads:
-
stack_resource(stack_name, logical_resource_id)
-
stack_resource(physical_resource_id)
def stack_resource *args client_opts = {} if args.size == 1 client_opts[:physical_resource_id] = args.first else client_opts[:stack_name] = args[0] client_opts[:logical_resource_id] = args[1] end response = client.describe_stack_resources(client_opts) details = response.stack_resources.first StackResource.new_from( :describe_stack_resource, details, Stack.new(details.stack_name, :config => config), details.logical_resource_id) end