AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

The output for ValidateTemplate action.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceResponse
    Amazon.CloudFormation.Model.ValidateTemplateResponse

Namespace: Amazon.CloudFormation.Model
Assembly: AWSSDK.CloudFormation.dll
Version: 3.x.y.z

Syntax

C#
public class ValidateTemplateResponse : AmazonWebServiceResponse

The ValidateTemplateResponse type exposes the following members

Constructors

NameDescription
Public Method ValidateTemplateResponse()

Properties

NameTypeDescription
Public Property Capabilities System.Collections.Generic.List<System.String>

Gets and sets the property 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 AWS CloudFormation Templates.

Public Property CapabilitiesReason System.String

Gets and sets the property CapabilitiesReason.

The list of resources that generated the values in the Capabilities response element.

Public Property ContentLength System.Int64 Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property DeclaredTransforms System.Collections.Generic.List<System.String>

Gets and sets the property DeclaredTransforms.

A list of the transforms that are declared in the template.

Public Property Description System.String

Gets and sets the property Description.

The description found within the template.

Public Property HttpStatusCode System.Net.HttpStatusCode Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property Parameters System.Collections.Generic.List<Amazon.CloudFormation.Model.TemplateParameter>

Gets and sets the property Parameters.

A list of TemplateParameter structures.

Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.

Examples

This example validates the specified template.

To validate an AWS CloudFormation template


var response = client.ValidateTemplate(new ValidateTemplateRequest 
{
    TemplateBody = "MyTemplate.json"
});

List capabilities = response.Capabilities;
string capabilitiesReason = response.CapabilitiesReason;
string description = response.Description;
List parameters = response.Parameters;

            

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms