AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Table Of Contents

Feedback

[ aws . cloudformation ]

describe-stack-resource

Description

Returns a description of the specified resource in the specified stack.

For deleted stacks, describe-stack-resource returns resource information for up to 90 days after the stack has been deleted.

Synopsis

  describe-stack-resource
--stack-name <value>
--logical-resource-id <value>

Options

--stack-name (string)

The name or the unique identifier associated with the stack, which are not always interchangeable:

  • Running stacks: You can specify either the stack's name or its unique stack ID.
  • Deleted stacks: You must specify the unique stack ID.

Default: There is no default value.

--logical-resource-id (string)

The logical name of the resource as specified in the template.

Default: There is no default value.

Output

StackResourceDetail -> (structure)

A StackResourceDetail structure containing the description of the specified resource in the specified stack.

StackName -> (string)

The name associated with the stack.

StackId -> (string)

Unique identifier of the stack.

LogicalResourceId -> (string)

The logical name of the resource specified in the template.

PhysicalResourceId -> (string)

The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.

ResourceType -> (string)

Type of resource. ((For more information, go to AWS Resource Types Reference in the AWS CloudFormation User Guide.)

LastUpdatedTimestamp -> (timestamp)

Time the status was updated.

ResourceStatus -> (string)

Current status of the resource.

ResourceStatusReason -> (string)

Success/failure message associated with the resource.

Description -> (string)

User defined description associated with the resource.

Metadata -> (string)

The JSON format content of the Metadata attribute declared for the resource. For more information, see Metadata Attribute in the AWS CloudFormation User Guide.