Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Returns information about a new or existing template. The
GetTemplateSummary
action is useful for viewing parameter information,
such as default parameter values and parameter types, before you create
or update a stack or stack set.
You can use the GetTemplateSummary
action when you submit a template,
or you can get template information for a stack set, or a running or
deleted stack.
For deleted stacks, GetTemplateSummary
returns the template
information for up to 90 days after the stack has been deleted. If the
template doesn't exist, a ValidationError
is returned.
Synopsis
- data GetTemplateSummary = GetTemplateSummary' {
- callAs :: Maybe CallAs
- stackName :: Maybe Text
- stackSetName :: Maybe Text
- templateBody :: Maybe Text
- templateURL :: Maybe Text
- newGetTemplateSummary :: GetTemplateSummary
- getTemplateSummary_callAs :: Lens' GetTemplateSummary (Maybe CallAs)
- getTemplateSummary_stackName :: Lens' GetTemplateSummary (Maybe Text)
- getTemplateSummary_stackSetName :: Lens' GetTemplateSummary (Maybe Text)
- getTemplateSummary_templateBody :: Lens' GetTemplateSummary (Maybe Text)
- getTemplateSummary_templateURL :: Lens' GetTemplateSummary (Maybe Text)
- data GetTemplateSummaryResponse = GetTemplateSummaryResponse' {
- capabilities :: Maybe [Capability]
- capabilitiesReason :: Maybe Text
- declaredTransforms :: Maybe [Text]
- description :: Maybe Text
- metadata :: Maybe Text
- parameters :: Maybe [ParameterDeclaration]
- resourceIdentifierSummaries :: Maybe [ResourceIdentifierSummary]
- resourceTypes :: Maybe [Text]
- version :: Maybe Text
- httpStatus :: Int
- newGetTemplateSummaryResponse :: Int -> GetTemplateSummaryResponse
- getTemplateSummaryResponse_capabilities :: Lens' GetTemplateSummaryResponse (Maybe [Capability])
- getTemplateSummaryResponse_capabilitiesReason :: Lens' GetTemplateSummaryResponse (Maybe Text)
- getTemplateSummaryResponse_declaredTransforms :: Lens' GetTemplateSummaryResponse (Maybe [Text])
- getTemplateSummaryResponse_description :: Lens' GetTemplateSummaryResponse (Maybe Text)
- getTemplateSummaryResponse_metadata :: Lens' GetTemplateSummaryResponse (Maybe Text)
- getTemplateSummaryResponse_parameters :: Lens' GetTemplateSummaryResponse (Maybe [ParameterDeclaration])
- getTemplateSummaryResponse_resourceIdentifierSummaries :: Lens' GetTemplateSummaryResponse (Maybe [ResourceIdentifierSummary])
- getTemplateSummaryResponse_resourceTypes :: Lens' GetTemplateSummaryResponse (Maybe [Text])
- getTemplateSummaryResponse_version :: Lens' GetTemplateSummaryResponse (Maybe Text)
- getTemplateSummaryResponse_httpStatus :: Lens' GetTemplateSummaryResponse Int
Creating a Request
data GetTemplateSummary Source #
The input for the GetTemplateSummary action.
See: newGetTemplateSummary
smart constructor.
GetTemplateSummary' | |
|
Instances
newGetTemplateSummary :: GetTemplateSummary Source #
Create a value of GetTemplateSummary
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:callAs:GetTemplateSummary'
, getTemplateSummary_callAs
- [Service-managed permissions] Specifies whether you are acting as an
account administrator in the organization's management account or as a
delegated administrator in a member account.
By default, SELF
is specified. Use SELF
for stack sets with
self-managed permissions.
- If you are signed in to the management account, specify
SELF
. If you are signed in to a delegated administrator account, specify
DELEGATED_ADMIN
.Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
GetTemplateSummary
, getTemplateSummary_stackName
- The name or the stack ID that's associated with the stack, which
aren't always interchangeable. For running stacks, you can specify
either the stack's name or its unique stack ID. For deleted stack, you
must specify the unique stack ID.
Conditional: You must specify only one of the following parameters:
StackName
, StackSetName
, TemplateBody
, or TemplateURL
.
GetTemplateSummary
, getTemplateSummary_stackSetName
- The name or unique ID of the stack set from which the stack was created.
Conditional: You must specify only one of the following parameters:
StackName
, StackSetName
, TemplateBody
, or TemplateURL
.
GetTemplateSummary
, getTemplateSummary_templateBody
- Structure containing the template body with a minimum length of 1 byte
and a maximum length of 51,200 bytes. For more information about
templates, see
Template anatomy
in the CloudFormation User Guide.
Conditional: You must specify only one of the following parameters:
StackName
, StackSetName
, TemplateBody
, or TemplateURL
.
$sel:templateURL:GetTemplateSummary'
, getTemplateSummary_templateURL
- Location of file containing the template body. The URL must point to a
template (max size: 460,800 bytes) that's located in an Amazon S3
bucket or a Systems Manager document. For more information about
templates, see
Template anatomy
in the CloudFormation User Guide.
Conditional: You must specify only one of the following parameters:
StackName
, StackSetName
, TemplateBody
, or TemplateURL
.
Request Lenses
getTemplateSummary_callAs :: Lens' GetTemplateSummary (Maybe CallAs) Source #
- Service-managed permissions
- Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.
By default, SELF
is specified. Use SELF
for stack sets with
self-managed permissions.
- If you are signed in to the management account, specify
SELF
. If you are signed in to a delegated administrator account, specify
DELEGATED_ADMIN
.Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
getTemplateSummary_stackName :: Lens' GetTemplateSummary (Maybe Text) Source #
The name or the stack ID that's associated with the stack, which aren't always interchangeable. For running stacks, you can specify either the stack's name or its unique stack ID. For deleted stack, you must specify the unique stack ID.
Conditional: You must specify only one of the following parameters:
StackName
, StackSetName
, TemplateBody
, or TemplateURL
.
getTemplateSummary_stackSetName :: Lens' GetTemplateSummary (Maybe Text) Source #
The name or unique ID of the stack set from which the stack was created.
Conditional: You must specify only one of the following parameters:
StackName
, StackSetName
, TemplateBody
, or TemplateURL
.
getTemplateSummary_templateBody :: Lens' GetTemplateSummary (Maybe Text) Source #
Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. For more information about templates, see Template anatomy in the CloudFormation User Guide.
Conditional: You must specify only one of the following parameters:
StackName
, StackSetName
, TemplateBody
, or TemplateURL
.
getTemplateSummary_templateURL :: Lens' GetTemplateSummary (Maybe Text) Source #
Location of file containing the template body. The URL must point to a template (max size: 460,800 bytes) that's located in an Amazon S3 bucket or a Systems Manager document. For more information about templates, see Template anatomy in the CloudFormation User Guide.
Conditional: You must specify only one of the following parameters:
StackName
, StackSetName
, TemplateBody
, or TemplateURL
.
Destructuring the Response
data GetTemplateSummaryResponse Source #
The output for the GetTemplateSummary action.
See: newGetTemplateSummaryResponse
smart constructor.
GetTemplateSummaryResponse' | |
|
Instances
newGetTemplateSummaryResponse Source #
Create a value of GetTemplateSummaryResponse
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:
GetTemplateSummaryResponse
, getTemplateSummaryResponse_capabilities
- The capabilities found within the template. If your template contains
IAM resources, you must specify the CAPABILITY_IAM
or
CAPABILITY_NAMED_IAM
value for this parameter when you use the
CreateStack or UpdateStack actions with your template; otherwise, those
actions return an InsufficientCapabilities
error.
For more information, see Acknowledging IAM Resources in CloudFormation Templates.
$sel:capabilitiesReason:GetTemplateSummaryResponse'
, getTemplateSummaryResponse_capabilitiesReason
- The list of resources that generated the values in the Capabilities
response element.
$sel:declaredTransforms:GetTemplateSummaryResponse'
, getTemplateSummaryResponse_declaredTransforms
- A list of the transforms that are declared in the template.
GetTemplateSummaryResponse
, getTemplateSummaryResponse_description
- The value that's defined in the Description
property of the template.
GetTemplateSummaryResponse
, getTemplateSummaryResponse_metadata
- The value that's defined for the Metadata
property of the template.
GetTemplateSummaryResponse
, getTemplateSummaryResponse_parameters
- A list of parameter declarations that describe various properties for
each parameter.
$sel:resourceIdentifierSummaries:GetTemplateSummaryResponse'
, getTemplateSummaryResponse_resourceIdentifierSummaries
- A list of resource identifier summaries that describe the target
resources of an import operation and the properties you can provide
during the import to identify the target resources. For example,
BucketName
is a possible identifier property for an AWS::S3::Bucket
resource.
$sel:resourceTypes:GetTemplateSummaryResponse'
, getTemplateSummaryResponse_resourceTypes
- A list of all the template resource types that are defined in the
template, such as AWS::EC2::Instance
, AWS::Dynamo::Table
, and
Custom::MyCustomInstance
.
$sel:version:GetTemplateSummaryResponse'
, getTemplateSummaryResponse_version
- The Amazon Web Services template format version, which identifies the
capabilities of the template.
$sel:httpStatus:GetTemplateSummaryResponse'
, getTemplateSummaryResponse_httpStatus
- The response's http status code.
Response Lenses
getTemplateSummaryResponse_capabilities :: Lens' GetTemplateSummaryResponse (Maybe [Capability]) Source #
The capabilities found within the template. If your template contains
IAM resources, you must specify the CAPABILITY_IAM
or
CAPABILITY_NAMED_IAM
value for this parameter when you use the
CreateStack or UpdateStack actions with your template; otherwise, those
actions return an InsufficientCapabilities
error.
For more information, see Acknowledging IAM Resources in CloudFormation Templates.
getTemplateSummaryResponse_capabilitiesReason :: Lens' GetTemplateSummaryResponse (Maybe Text) Source #
The list of resources that generated the values in the Capabilities
response element.
getTemplateSummaryResponse_declaredTransforms :: Lens' GetTemplateSummaryResponse (Maybe [Text]) Source #
A list of the transforms that are declared in the template.
getTemplateSummaryResponse_description :: Lens' GetTemplateSummaryResponse (Maybe Text) Source #
The value that's defined in the Description
property of the template.
getTemplateSummaryResponse_metadata :: Lens' GetTemplateSummaryResponse (Maybe Text) Source #
The value that's defined for the Metadata
property of the template.
getTemplateSummaryResponse_parameters :: Lens' GetTemplateSummaryResponse (Maybe [ParameterDeclaration]) Source #
A list of parameter declarations that describe various properties for each parameter.
getTemplateSummaryResponse_resourceIdentifierSummaries :: Lens' GetTemplateSummaryResponse (Maybe [ResourceIdentifierSummary]) Source #
A list of resource identifier summaries that describe the target
resources of an import operation and the properties you can provide
during the import to identify the target resources. For example,
BucketName
is a possible identifier property for an AWS::S3::Bucket
resource.
getTemplateSummaryResponse_resourceTypes :: Lens' GetTemplateSummaryResponse (Maybe [Text]) Source #
A list of all the template resource types that are defined in the
template, such as AWS::EC2::Instance
, AWS::Dynamo::Table
, and
Custom::MyCustomInstance
.
getTemplateSummaryResponse_version :: Lens' GetTemplateSummaryResponse (Maybe Text) Source #
The Amazon Web Services template format version, which identifies the capabilities of the template.
getTemplateSummaryResponse_httpStatus :: Lens' GetTemplateSummaryResponse Int Source #
The response's http status code.