/* * 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 ssm-2014-11-06.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.SimpleSystemsManagement.Model { /// /// Container for the parameters to the UpdateDocument operation. /// Updates one or more values for an SSM document. /// public partial class UpdateDocumentRequest : AmazonSimpleSystemsManagementRequest { private List _attachments = new List(); private string _content; private string _displayName; private DocumentFormat _documentFormat; private string _documentVersion; private string _name; private string _targetType; private string _versionName; /// /// Gets and sets the property Attachments. /// /// A list of key-value pairs that describe attachments to a version of a document. /// /// [AWSProperty(Min=0, Max=20)] public List Attachments { get { return this._attachments; } set { this._attachments = value; } } // Check to see if Attachments property is set internal bool IsSetAttachments() { return this._attachments != null && this._attachments.Count > 0; } /// /// Gets and sets the property Content. /// /// A valid JSON or YAML string. /// /// [AWSProperty(Required=true, Min=1)] public string Content { get { return this._content; } set { this._content = value; } } // Check to see if Content property is set internal bool IsSetContent() { return this._content != null; } /// /// Gets and sets the property DisplayName. /// /// The friendly name of the SSM document that you want to update. This value can differ /// for each version of the document. If you don't specify a value for this parameter /// in your request, the existing value is applied to the new document version. /// /// [AWSProperty(Max=1024)] public string DisplayName { get { return this._displayName; } set { this._displayName = value; } } // Check to see if DisplayName property is set internal bool IsSetDisplayName() { return this._displayName != null; } /// /// Gets and sets the property DocumentFormat. /// /// Specify the document format for the new document version. Systems Manager supports /// JSON and YAML documents. JSON is the default format. /// /// public DocumentFormat DocumentFormat { get { return this._documentFormat; } set { this._documentFormat = value; } } // Check to see if DocumentFormat property is set internal bool IsSetDocumentFormat() { return this._documentFormat != null; } /// /// Gets and sets the property DocumentVersion. /// /// The version of the document that you want to update. Currently, Systems Manager supports /// updating only the latest version of the document. You can specify the version number /// of the latest version or use the $LATEST variable. /// /// /// /// If you change a document version for a State Manager association, Systems Manager /// immediately runs the association unless you previously specifed the apply-only-at-cron-interval /// parameter. /// /// /// public string DocumentVersion { get { return this._documentVersion; } set { this._documentVersion = value; } } // Check to see if DocumentVersion property is set internal bool IsSetDocumentVersion() { return this._documentVersion != null; } /// /// Gets and sets the property Name. /// /// The name of the SSM document that you want to update. /// /// [AWSProperty(Required=true)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property TargetType. /// /// Specify a new target type for the document. /// /// [AWSProperty(Max=200)] public string TargetType { get { return this._targetType; } set { this._targetType = value; } } // Check to see if TargetType property is set internal bool IsSetTargetType() { return this._targetType != null; } /// /// Gets and sets the property VersionName. /// /// An optional field specifying the version of the artifact you are updating with the /// document. For example, "Release 12, Update 6". This value is unique across all versions /// of a document, and can't be changed. /// /// public string VersionName { get { return this._versionName; } set { this._versionName = value; } } // Check to see if VersionName property is set internal bool IsSetVersionName() { return this._versionName != null; } } }