/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudFormation.Model
{
///
/// Container for the parameters to the 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 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.
///
///
public partial class GetTemplateSummaryRequest : AmazonCloudFormationRequest
{
private CallAs _callAs;
private string _stackName;
private string _stackSetName;
private string _templateBody;
private TemplateSummaryConfig _templateSummaryConfig;
private string _templateURL;
///
/// Gets and sets the property 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.
///
///
///
public CallAs CallAs
{
get { return this._callAs; }
set { this._callAs = value; }
}
// Check to see if CallAs property is set
internal bool IsSetCallAs()
{
return this._callAs != null;
}
///
/// Gets and sets the property 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
.
///
///
[AWSProperty(Min=1)]
public string StackName
{
get { return this._stackName; }
set { this._stackName = value; }
}
// Check to see if StackName property is set
internal bool IsSetStackName()
{
return this._stackName != null;
}
///
/// Gets and sets the property 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
.
///
///
public string StackSetName
{
get { return this._stackSetName; }
set { this._stackSetName = value; }
}
// Check to see if StackSetName property is set
internal bool IsSetStackSetName()
{
return this._stackSetName != null;
}
///
/// Gets and sets the property 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
.
///
///
[AWSProperty(Min=1)]
public string TemplateBody
{
get { return this._templateBody; }
set { this._templateBody = value; }
}
// Check to see if TemplateBody property is set
internal bool IsSetTemplateBody()
{
return this._templateBody != null;
}
///
/// Gets and sets the property TemplateSummaryConfig.
///
/// Specifies options for the GetTemplateSummary
API action.
///
///
public TemplateSummaryConfig TemplateSummaryConfig
{
get { return this._templateSummaryConfig; }
set { this._templateSummaryConfig = value; }
}
// Check to see if TemplateSummaryConfig property is set
internal bool IsSetTemplateSummaryConfig()
{
return this._templateSummaryConfig != null;
}
///
/// Gets and sets the property 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
.
///
///
[AWSProperty(Min=1, Max=1024)]
public string TemplateURL
{
get { return this._templateURL; }
set { this._templateURL = value; }
}
// Check to see if TemplateURL property is set
internal bool IsSetTemplateURL()
{
return this._templateURL != null;
}
}
}