/*
* 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 SetStackPolicy operation.
/// Sets a stack policy for a specified stack.
///
public partial class SetStackPolicyRequest : AmazonCloudFormationRequest
{
private string _stackName;
private string _stackPolicyBody;
private string _stackPolicyURL;
///
/// Gets and sets the property StackName.
///
/// The name or unique stack ID that you want to associate a policy with.
///
///
[AWSProperty(Required=true)]
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 StackPolicyBody.
///
/// Structure containing the stack policy body. For more information, go to
/// Prevent updates to stack resources in the CloudFormation User Guide. You can specify
/// either the StackPolicyBody
or the StackPolicyURL
parameter,
/// but not both.
///
///
[AWSProperty(Min=1, Max=16384)]
public string StackPolicyBody
{
get { return this._stackPolicyBody; }
set { this._stackPolicyBody = value; }
}
// Check to see if StackPolicyBody property is set
internal bool IsSetStackPolicyBody()
{
return this._stackPolicyBody != null;
}
///
/// Gets and sets the property StackPolicyURL.
///
/// Location of a file containing the stack policy. The URL must point to a policy (maximum
/// size: 16 KB) located in an Amazon S3 bucket in the same Amazon Web Services Region
/// as the stack. You can specify either the StackPolicyBody
or the StackPolicyURL
/// parameter, but not both.
///
///
[AWSProperty(Min=1, Max=1350)]
public string StackPolicyURL
{
get { return this._stackPolicyURL; }
set { this._stackPolicyURL = value; }
}
// Check to see if StackPolicyURL property is set
internal bool IsSetStackPolicyURL()
{
return this._stackPolicyURL != null;
}
}
}