Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns Amazon Web Services 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.
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
CloudFormation User Guide.
A ValidationError
is returned if you specify both StackName
and
PhysicalResourceId
in the same request.
Synopsis
- data DescribeStackResources = DescribeStackResources' {}
- newDescribeStackResources :: DescribeStackResources
- describeStackResources_logicalResourceId :: Lens' DescribeStackResources (Maybe Text)
- describeStackResources_physicalResourceId :: Lens' DescribeStackResources (Maybe Text)
- describeStackResources_stackName :: Lens' DescribeStackResources (Maybe Text)
- data DescribeStackResourcesResponse = DescribeStackResourcesResponse' {}
- newDescribeStackResourcesResponse :: Int -> DescribeStackResourcesResponse
- describeStackResourcesResponse_stackResources :: Lens' DescribeStackResourcesResponse (Maybe [StackResource])
- describeStackResourcesResponse_httpStatus :: Lens' DescribeStackResourcesResponse Int
Creating a Request
data DescribeStackResources Source #
The input for DescribeStackResources action.
See: newDescribeStackResources
smart constructor.
DescribeStackResources' | |
|
Instances
newDescribeStackResources :: DescribeStackResources Source #
Create a value of DescribeStackResources
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:logicalResourceId:DescribeStackResources'
, describeStackResources_logicalResourceId
- The logical name of the resource as specified in the template.
Default: There is no default value.
$sel:physicalResourceId:DescribeStackResources'
, describeStackResources_physicalResourceId
- The name or unique identifier that corresponds to a physical instance ID
of a resource supported by 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.
$sel:stackName:DescribeStackResources'
, describeStackResources_stackName
- 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
.
Request Lenses
describeStackResources_logicalResourceId :: Lens' DescribeStackResources (Maybe Text) Source #
The logical name of the resource as specified in the template.
Default: There is no default value.
describeStackResources_physicalResourceId :: Lens' DescribeStackResources (Maybe Text) Source #
The name or unique identifier that corresponds to a physical instance ID of a resource supported by 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.
describeStackResources_stackName :: Lens' DescribeStackResources (Maybe Text) Source #
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
.
Destructuring the Response
data DescribeStackResourcesResponse Source #
The output for a DescribeStackResources action.
See: newDescribeStackResourcesResponse
smart constructor.
DescribeStackResourcesResponse' | |
|
Instances
Eq DescribeStackResourcesResponse Source # | |
Read DescribeStackResourcesResponse Source # | |
Show DescribeStackResourcesResponse Source # | |
Generic DescribeStackResourcesResponse Source # | |
NFData DescribeStackResourcesResponse Source # | |
Defined in Amazonka.CloudFormation.DescribeStackResources rnf :: DescribeStackResourcesResponse -> () # | |
type Rep DescribeStackResourcesResponse Source # | |
Defined in Amazonka.CloudFormation.DescribeStackResources type Rep DescribeStackResourcesResponse = D1 ('MetaData "DescribeStackResourcesResponse" "Amazonka.CloudFormation.DescribeStackResources" "libZSservicesZSamazonka-cloudformationZSamazonka-cloudformation" 'False) (C1 ('MetaCons "DescribeStackResourcesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "stackResources") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [StackResource])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDescribeStackResourcesResponse Source #
Create a value of DescribeStackResourcesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:stackResources:DescribeStackResourcesResponse'
, describeStackResourcesResponse_stackResources
- A list of StackResource
structures.
$sel:httpStatus:DescribeStackResourcesResponse'
, describeStackResourcesResponse_httpStatus
- The response's http status code.
Response Lenses
describeStackResourcesResponse_stackResources :: Lens' DescribeStackResourcesResponse (Maybe [StackResource]) Source #
A list of StackResource
structures.
describeStackResourcesResponse_httpStatus :: Lens' DescribeStackResourcesResponse Int Source #
The response's http status code.