public class GetTemplateSummaryRequest extends AmazonWebServiceRequest implements Serializable
GetTemplateSummary operation
.
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.
You can use the GetTemplateSummary
action when you submit
a template, or you can get template information for 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 does not exist, a
ValidationError
is returned.
NOOP
Constructor and Description |
---|
GetTemplateSummaryRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getStackName()
The name or the unique identifier associated with the stack, which are
not always interchangeable.
|
String |
getTemplateBody()
Structure containing the template body with a minimum length of 1 byte
and a maximum length of 51,200 bytes.
|
String |
getTemplateURL()
Location of file containing the template body.
|
int |
hashCode() |
void |
setStackName(String stackName)
The name or the unique identifier associated with the stack, which are
not always interchangeable.
|
void |
setTemplateBody(String templateBody)
Structure containing the template body with a minimum length of 1 byte
and a maximum length of 51,200 bytes.
|
void |
setTemplateURL(String templateURL)
Location of file containing the template body.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetTemplateSummaryRequest |
withStackName(String stackName)
The name or the unique identifier associated with the stack, which are
not always interchangeable.
|
GetTemplateSummaryRequest |
withTemplateBody(String templateBody)
Structure containing the template body with a minimum length of 1 byte
and a maximum length of 51,200 bytes.
|
GetTemplateSummaryRequest |
withTemplateURL(String templateURL)
Location of file containing the template body.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getTemplateBody()
Conditional: You
must specify only one of the following parameters:
StackName
, TemplateBody
, or
TemplateURL
.
Constraints:
Length: 1 -
Conditional: You
must specify only one of the following parameters:
StackName
, TemplateBody
, or
TemplateURL
.
public void setTemplateBody(String templateBody)
Conditional: You
must specify only one of the following parameters:
StackName
, TemplateBody
, or
TemplateURL
.
Constraints:
Length: 1 -
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 AWS CloudFormation User Guide. Conditional: You
must specify only one of the following parameters:
StackName
, TemplateBody
, or
TemplateURL
.
public GetTemplateSummaryRequest withTemplateBody(String templateBody)
Conditional: You
must specify only one of the following parameters:
StackName
, TemplateBody
, or
TemplateURL
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
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 AWS CloudFormation User Guide. Conditional: You
must specify only one of the following parameters:
StackName
, TemplateBody
, or
TemplateURL
.
public String getTemplateURL()
Conditional: You
must specify only one of the following parameters:
StackName
, TemplateBody
, or
TemplateURL
.
Constraints:
Length: 1 - 1024
Conditional: You
must specify only one of the following parameters:
StackName
, TemplateBody
, or
TemplateURL
.
public void setTemplateURL(String templateURL)
Conditional: You
must specify only one of the following parameters:
StackName
, TemplateBody
, or
TemplateURL
.
Constraints:
Length: 1 - 1024
templateURL
- Location of file containing the template body. The URL must point to a
template (max size: 307,200 bytes) located in an Amazon S3 bucket. For
more information about templates, see Template
Anatomy in the AWS CloudFormation User Guide. Conditional: You
must specify only one of the following parameters:
StackName
, TemplateBody
, or
TemplateURL
.
public GetTemplateSummaryRequest withTemplateURL(String templateURL)
Conditional: You
must specify only one of the following parameters:
StackName
, TemplateBody
, or
TemplateURL
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1024
templateURL
- Location of file containing the template body. The URL must point to a
template (max size: 307,200 bytes) located in an Amazon S3 bucket. For
more information about templates, see Template
Anatomy in the AWS CloudFormation User Guide. Conditional: You
must specify only one of the following parameters:
StackName
, TemplateBody
, or
TemplateURL
.
public String getStackName()
Conditional: You must specify only one
of the following parameters: StackName
,
TemplateBody
, or TemplateURL
.
Constraints:
Length: 1 -
Pattern: ([a-zA-Z][-a-zA-Z0-9]*)|(arn:\b(aws|aws-us-gov|aws-cn)\b:[-a-zA-Z0-9:/._+]*)
Conditional: You must specify only one
of the following parameters: StackName
,
TemplateBody
, or TemplateURL
.
public void setStackName(String stackName)
Conditional: You must specify only one
of the following parameters: StackName
,
TemplateBody
, or TemplateURL
.
Constraints:
Length: 1 -
Pattern: ([a-zA-Z][-a-zA-Z0-9]*)|(arn:\b(aws|aws-us-gov|aws-cn)\b:[-a-zA-Z0-9:/._+]*)
stackName
- The name or the unique identifier associated with the stack, which are
not 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
,
TemplateBody
, or TemplateURL
.
public GetTemplateSummaryRequest withStackName(String stackName)
Conditional: You must specify only one
of the following parameters: StackName
,
TemplateBody
, or TemplateURL
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
Pattern: ([a-zA-Z][-a-zA-Z0-9]*)|(arn:\b(aws|aws-us-gov|aws-cn)\b:[-a-zA-Z0-9:/._+]*)
stackName
- The name or the unique identifier associated with the stack, which are
not 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
,
TemplateBody
, or TemplateURL
.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.