/* * 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 ValidateTemplate operation. /// Validates a specified template. CloudFormation first checks if the template is valid /// JSON. If it isn't, CloudFormation checks if the template is valid YAML. If both these /// checks fail, CloudFormation returns a template validation error. /// public partial class ValidateTemplateRequest : AmazonCloudFormationRequest { private string _templateBody; private string _templateURL; /// /// 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, go to Template /// Anatomy in the CloudFormation User Guide. /// /// /// /// Conditional: You must pass TemplateURL or TemplateBody. /// If both are passed, only TemplateBody is used. /// /// [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 TemplateURL. /// /// Location of file containing the template body. The URL must point to a template (max /// size: 460,800 bytes) that is located in an Amazon S3 bucket or a Systems Manager document. /// For more information, go to Template /// Anatomy in the CloudFormation User Guide. /// /// /// /// Conditional: You must pass TemplateURL or TemplateBody. /// If both are passed, only TemplateBody is used. /// /// [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; } } }