AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

DescribeStackResourcesInput

import "github.com/aws/aws-sdk-go/service/cloudformation"

type DescribeStackResourcesInput struct { LogicalResourceId *string `type:"string"` PhysicalResourceId *string `type:"string"` StackName *string `type:"string"` }

The input for DescribeStackResources action.

LogicalResourceId

Type: *string

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

Default: There is no default value.

PhysicalResourceId

Type: *string

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

For example, for an Amazon Elastic Compute Cloud (EC2) instance, PhysicalResourceId corresponds to the InstanceId. You can pass the EC2 InstanceId to DescribeStackResources to find which stack the instance belongs to and what other resources are part of the stack.

Required: Conditional. If you do not specify PhysicalResourceId, you must specify StackName.

Default: There is no default value.

StackName

Type: *string

The name or the unique stack ID that is 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.

Required: Conditional. If you do not specify StackName, you must specify PhysicalResourceId.

Method

GoString

func (s DescribeStackResourcesInput) GoString() string

GoString returns the string representation

SetLogicalResourceId

func (s *DescribeStackResourcesInput) SetLogicalResourceId(v string) *DescribeStackResourcesInput

SetLogicalResourceId sets the LogicalResourceId field's value.

SetPhysicalResourceId

func (s *DescribeStackResourcesInput) SetPhysicalResourceId(v string) *DescribeStackResourcesInput

SetPhysicalResourceId sets the PhysicalResourceId field's value.

SetStackName

func (s *DescribeStackResourcesInput) SetStackName(v string) *DescribeStackResourcesInput

SetStackName sets the StackName field's value.

String

func (s DescribeStackResourcesInput) String() string

String returns the string representation

On this page: