com.amazonaws.services.cloudformation.model

## クラス DescribeStackResourcesRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.cloudformation.model.DescribeStackResourcesRequest

- すべての実装されたインタフェース:
    java.io.Serializable

      public class DescribeStackResourcesRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `DescribeStackResources operation`.

  Returns AWS resource descriptions for running and deleted stacks. If `StackName` is specified, all the associated resources that are part of the stack are returned. If `PhysicalResourceId` is specified, the associated resources of the stack that the resource belongs to are returned.

  NOTE:Only the first 100 resources will be returned. If your stack has more resources than this, you should use ListStackResources instead.

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

  You must specify either `StackName` or `PhysicalResourceId` , but not both. In addition, you can specify `LogicalResourceId` to filter the returned result. For more information about resources, the `LogicalResourceId` and `PhysicalResourceId` , go to the AWS CloudFormation User Guide .

  NOTE:A ValidationError is returned if you specify both StackName and PhysicalResourceId in the same request.

  関連項目:
    `AmazonCloudFormation.describeStackResources(DescribeStackResourcesRequest)`, 直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `DescribeStackResourcesRequest()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getLogicalResourceId()` The logical name of the resource as specified in the template.
    `java.lang.String` | `getPhysicalResourceId()` The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.
    `java.lang.String` | `getStackName()` The name or the unique identifier associated with the stack.
    `int` | `hashCode()`
    `void` | `setLogicalResourceId(java.lang.String logicalResourceId)` The logical name of the resource as specified in the template.
    `void` | `setPhysicalResourceId(java.lang.String physicalResourceId)` The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.
    `void` | `setStackName(java.lang.String stackName)` The name or the unique identifier associated with the stack.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `DescribeStackResourcesRequest` | `withLogicalResourceId(java.lang.String logicalResourceId)` The logical name of the resource as specified in the template.
    `DescribeStackResourcesRequest` | `withPhysicalResourceId(java.lang.String physicalResourceId)` The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.
    `DescribeStackResourcesRequest` | `withStackName(java.lang.String stackName)` The name or the unique identifier associated with the stack.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### DescribeStackResourcesRequest

          public DescribeStackResourcesRequest()

  - ### メソッドの詳細

    - #### getStackName

          public java.lang.String getStackName()

      The name or the unique identifier associated with the stack.

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

      Default: There is no default value.

      戻り値:
        The name or the unique identifier associated with the stack.

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

        Default: There is no default value.

    - #### setStackName

          public void setStackName(java.lang.String stackName)

      The name or the unique identifier associated with the stack.

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

      Default: There is no default value.

      パラメータ:
        `stackName` - The name or the unique identifier associated with the stack.

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

        Default: There is no default value.

    - #### withStackName

          public DescribeStackResourcesRequest withStackName(java.lang.String stackName)

      The name or the unique identifier associated with the stack.

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

      Default: There is no default value.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `stackName` - The name or the unique identifier associated with the stack.

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

        Default: There is no default value.

    - #### getLogicalResourceId

          public java.lang.String getLogicalResourceId()

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

      Default: There is no default value.

      戻り値:
        The logical name of the resource as specified in the template.

        Default: There is no default value.

    - #### setLogicalResourceId

          public void setLogicalResourceId(java.lang.String logicalResourceId)

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

      Default: There is no default value.

      パラメータ:
        `logicalResourceId` - The logical name of the resource as specified in the template.

        Default: There is no default value.

    - #### withLogicalResourceId

          public DescribeStackResourcesRequest withLogicalResourceId(java.lang.String logicalResourceId)

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

      Default: There is no default value.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `logicalResourceId` - The logical name of the resource as specified in the template.

        Default: There is no default value.

    - #### getPhysicalResourceId

          public java.lang.String getPhysicalResourceId()

      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.

      戻り値:
        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.

    - #### setPhysicalResourceId

          public void setPhysicalResourceId(java.lang.String physicalResourceId)

      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.

      パラメータ:
        `physicalResourceId` - 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.

    - #### withPhysicalResourceId

          public DescribeStackResourcesRequest withPhysicalResourceId(java.lang.String physicalResourceId)

      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.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `physicalResourceId` - 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.

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`