/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace SSM { namespace Model { /** */ class CreateDocumentRequest : public SSMRequest { public: AWS_SSM_API CreateDocumentRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateDocument"; } AWS_SSM_API Aws::String SerializePayload() const override; AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The content for the new SSM document in JSON or YAML format. The content of * the document must not exceed 64KB. This quota also includes the content * specified for input parameters at runtime. We recommend storing the contents for * your new document in an external JSON or YAML file and referencing the file in a * command.

For examples, see the following topics in the Amazon Web * Services Systems Manager User Guide.

*/ inline const Aws::String& GetContent() const{ return m_content; } /** *

The content for the new SSM document in JSON or YAML format. The content of * the document must not exceed 64KB. This quota also includes the content * specified for input parameters at runtime. We recommend storing the contents for * your new document in an external JSON or YAML file and referencing the file in a * command.

For examples, see the following topics in the Amazon Web * Services Systems Manager User Guide.

*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *

The content for the new SSM document in JSON or YAML format. The content of * the document must not exceed 64KB. This quota also includes the content * specified for input parameters at runtime. We recommend storing the contents for * your new document in an external JSON or YAML file and referencing the file in a * command.

For examples, see the following topics in the Amazon Web * Services Systems Manager User Guide.

*/ inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; } /** *

The content for the new SSM document in JSON or YAML format. The content of * the document must not exceed 64KB. This quota also includes the content * specified for input parameters at runtime. We recommend storing the contents for * your new document in an external JSON or YAML file and referencing the file in a * command.

For examples, see the following topics in the Amazon Web * Services Systems Manager User Guide.

*/ inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *

The content for the new SSM document in JSON or YAML format. The content of * the document must not exceed 64KB. This quota also includes the content * specified for input parameters at runtime. We recommend storing the contents for * your new document in an external JSON or YAML file and referencing the file in a * command.

For examples, see the following topics in the Amazon Web * Services Systems Manager User Guide.

*/ inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); } /** *

The content for the new SSM document in JSON or YAML format. The content of * the document must not exceed 64KB. This quota also includes the content * specified for input parameters at runtime. We recommend storing the contents for * your new document in an external JSON or YAML file and referencing the file in a * command.

For examples, see the following topics in the Amazon Web * Services Systems Manager User Guide.

*/ inline CreateDocumentRequest& WithContent(const Aws::String& value) { SetContent(value); return *this;} /** *

The content for the new SSM document in JSON or YAML format. The content of * the document must not exceed 64KB. This quota also includes the content * specified for input parameters at runtime. We recommend storing the contents for * your new document in an external JSON or YAML file and referencing the file in a * command.

For examples, see the following topics in the Amazon Web * Services Systems Manager User Guide.

*/ inline CreateDocumentRequest& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;} /** *

The content for the new SSM document in JSON or YAML format. The content of * the document must not exceed 64KB. This quota also includes the content * specified for input parameters at runtime. We recommend storing the contents for * your new document in an external JSON or YAML file and referencing the file in a * command.

For examples, see the following topics in the Amazon Web * Services Systems Manager User Guide.

*/ inline CreateDocumentRequest& WithContent(const char* value) { SetContent(value); return *this;} /** *

A list of SSM documents required by a document. This parameter is used * exclusively by AppConfig. When a user creates an AppConfig configuration in an * SSM document, the user must also specify a required document for validation * purposes. In this case, an ApplicationConfiguration document * requires an ApplicationConfigurationSchema document for validation * purposes. For more information, see What * is AppConfig? in the AppConfig User Guide.

*/ inline const Aws::Vector& GetRequires() const{ return m_requires; } /** *

A list of SSM documents required by a document. This parameter is used * exclusively by AppConfig. When a user creates an AppConfig configuration in an * SSM document, the user must also specify a required document for validation * purposes. In this case, an ApplicationConfiguration document * requires an ApplicationConfigurationSchema document for validation * purposes. For more information, see What * is AppConfig? in the AppConfig User Guide.

*/ inline bool RequiresHasBeenSet() const { return m_requiresHasBeenSet; } /** *

A list of SSM documents required by a document. This parameter is used * exclusively by AppConfig. When a user creates an AppConfig configuration in an * SSM document, the user must also specify a required document for validation * purposes. In this case, an ApplicationConfiguration document * requires an ApplicationConfigurationSchema document for validation * purposes. For more information, see What * is AppConfig? in the AppConfig User Guide.

*/ inline void SetRequires(const Aws::Vector& value) { m_requiresHasBeenSet = true; m_requires = value; } /** *

A list of SSM documents required by a document. This parameter is used * exclusively by AppConfig. When a user creates an AppConfig configuration in an * SSM document, the user must also specify a required document for validation * purposes. In this case, an ApplicationConfiguration document * requires an ApplicationConfigurationSchema document for validation * purposes. For more information, see What * is AppConfig? in the AppConfig User Guide.

*/ inline void SetRequires(Aws::Vector&& value) { m_requiresHasBeenSet = true; m_requires = std::move(value); } /** *

A list of SSM documents required by a document. This parameter is used * exclusively by AppConfig. When a user creates an AppConfig configuration in an * SSM document, the user must also specify a required document for validation * purposes. In this case, an ApplicationConfiguration document * requires an ApplicationConfigurationSchema document for validation * purposes. For more information, see What * is AppConfig? in the AppConfig User Guide.

*/ inline CreateDocumentRequest& WithRequires(const Aws::Vector& value) { SetRequires(value); return *this;} /** *

A list of SSM documents required by a document. This parameter is used * exclusively by AppConfig. When a user creates an AppConfig configuration in an * SSM document, the user must also specify a required document for validation * purposes. In this case, an ApplicationConfiguration document * requires an ApplicationConfigurationSchema document for validation * purposes. For more information, see What * is AppConfig? in the AppConfig User Guide.

*/ inline CreateDocumentRequest& WithRequires(Aws::Vector&& value) { SetRequires(std::move(value)); return *this;} /** *

A list of SSM documents required by a document. This parameter is used * exclusively by AppConfig. When a user creates an AppConfig configuration in an * SSM document, the user must also specify a required document for validation * purposes. In this case, an ApplicationConfiguration document * requires an ApplicationConfigurationSchema document for validation * purposes. For more information, see What * is AppConfig? in the AppConfig User Guide.

*/ inline CreateDocumentRequest& AddRequires(const DocumentRequires& value) { m_requiresHasBeenSet = true; m_requires.push_back(value); return *this; } /** *

A list of SSM documents required by a document. This parameter is used * exclusively by AppConfig. When a user creates an AppConfig configuration in an * SSM document, the user must also specify a required document for validation * purposes. In this case, an ApplicationConfiguration document * requires an ApplicationConfigurationSchema document for validation * purposes. For more information, see What * is AppConfig? in the AppConfig User Guide.

*/ inline CreateDocumentRequest& AddRequires(DocumentRequires&& value) { m_requiresHasBeenSet = true; m_requires.push_back(std::move(value)); return *this; } /** *

A list of key-value pairs that describe attachments to a version of a * document.

*/ inline const Aws::Vector& GetAttachments() const{ return m_attachments; } /** *

A list of key-value pairs that describe attachments to a version of a * document.

*/ inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; } /** *

A list of key-value pairs that describe attachments to a version of a * document.

*/ inline void SetAttachments(const Aws::Vector& value) { m_attachmentsHasBeenSet = true; m_attachments = value; } /** *

A list of key-value pairs that describe attachments to a version of a * document.

*/ inline void SetAttachments(Aws::Vector&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::move(value); } /** *

A list of key-value pairs that describe attachments to a version of a * document.

*/ inline CreateDocumentRequest& WithAttachments(const Aws::Vector& value) { SetAttachments(value); return *this;} /** *

A list of key-value pairs that describe attachments to a version of a * document.

*/ inline CreateDocumentRequest& WithAttachments(Aws::Vector&& value) { SetAttachments(std::move(value)); return *this;} /** *

A list of key-value pairs that describe attachments to a version of a * document.

*/ inline CreateDocumentRequest& AddAttachments(const AttachmentsSource& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; } /** *

A list of key-value pairs that describe attachments to a version of a * document.

*/ inline CreateDocumentRequest& AddAttachments(AttachmentsSource&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(std::move(value)); return *this; } /** *

A name for the SSM document.

You can't use the following * strings as document name prefixes. These are reserved by Amazon Web Services for * use as document name prefixes:

  • aws

  • *
  • amazon

  • amzn

  • *
*/ inline const Aws::String& GetName() const{ return m_name; } /** *

A name for the SSM document.

You can't use the following * strings as document name prefixes. These are reserved by Amazon Web Services for * use as document name prefixes:

  • aws

  • *
  • amazon

  • amzn

  • *
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

A name for the SSM document.

You can't use the following * strings as document name prefixes. These are reserved by Amazon Web Services for * use as document name prefixes:

  • aws

  • *
  • amazon

  • amzn

  • *
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

A name for the SSM document.

You can't use the following * strings as document name prefixes. These are reserved by Amazon Web Services for * use as document name prefixes:

  • aws

  • *
  • amazon

  • amzn

  • *
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

A name for the SSM document.

You can't use the following * strings as document name prefixes. These are reserved by Amazon Web Services for * use as document name prefixes:

  • aws

  • *
  • amazon

  • amzn

  • *
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

A name for the SSM document.

You can't use the following * strings as document name prefixes. These are reserved by Amazon Web Services for * use as document name prefixes:

  • aws

  • *
  • amazon

  • amzn

  • *
*/ inline CreateDocumentRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

A name for the SSM document.

You can't use the following * strings as document name prefixes. These are reserved by Amazon Web Services for * use as document name prefixes:

  • aws

  • *
  • amazon

  • amzn

  • *
*/ inline CreateDocumentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

A name for the SSM document.

You can't use the following * strings as document name prefixes. These are reserved by Amazon Web Services for * use as document name prefixes:

  • aws

  • *
  • amazon

  • amzn

  • *
*/ inline CreateDocumentRequest& WithName(const char* value) { SetName(value); return *this;} /** *

An optional field where you can specify a friendly name for the SSM document. * This value can differ for each version of the document. You can update this * value at a later time using the UpdateDocument operation.

*/ inline const Aws::String& GetDisplayName() const{ return m_displayName; } /** *

An optional field where you can specify a friendly name for the SSM document. * This value can differ for each version of the document. You can update this * value at a later time using the UpdateDocument operation.

*/ inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } /** *

An optional field where you can specify a friendly name for the SSM document. * This value can differ for each version of the document. You can update this * value at a later time using the UpdateDocument operation.

*/ inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } /** *

An optional field where you can specify a friendly name for the SSM document. * This value can differ for each version of the document. You can update this * value at a later time using the UpdateDocument operation.

*/ inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } /** *

An optional field where you can specify a friendly name for the SSM document. * This value can differ for each version of the document. You can update this * value at a later time using the UpdateDocument operation.

*/ inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } /** *

An optional field where you can specify a friendly name for the SSM document. * This value can differ for each version of the document. You can update this * value at a later time using the UpdateDocument operation.

*/ inline CreateDocumentRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

An optional field where you can specify a friendly name for the SSM document. * This value can differ for each version of the document. You can update this * value at a later time using the UpdateDocument operation.

*/ inline CreateDocumentRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} /** *

An optional field where you can specify a friendly name for the SSM document. * This value can differ for each version of the document. You can update this * value at a later time using the UpdateDocument operation.

*/ inline CreateDocumentRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} /** *

An optional field specifying the version of the artifact you are creating * with the document. For example, Release12.1. This value is unique * across all versions of a document, and can't be changed.

*/ inline const Aws::String& GetVersionName() const{ return m_versionName; } /** *

An optional field specifying the version of the artifact you are creating * with the document. For example, Release12.1. This value is unique * across all versions of a document, and can't be changed.

*/ inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; } /** *

An optional field specifying the version of the artifact you are creating * with the document. For example, Release12.1. This value is unique * across all versions of a document, and can't be changed.

*/ inline void SetVersionName(const Aws::String& value) { m_versionNameHasBeenSet = true; m_versionName = value; } /** *

An optional field specifying the version of the artifact you are creating * with the document. For example, Release12.1. This value is unique * across all versions of a document, and can't be changed.

*/ inline void SetVersionName(Aws::String&& value) { m_versionNameHasBeenSet = true; m_versionName = std::move(value); } /** *

An optional field specifying the version of the artifact you are creating * with the document. For example, Release12.1. This value is unique * across all versions of a document, and can't be changed.

*/ inline void SetVersionName(const char* value) { m_versionNameHasBeenSet = true; m_versionName.assign(value); } /** *

An optional field specifying the version of the artifact you are creating * with the document. For example, Release12.1. This value is unique * across all versions of a document, and can't be changed.

*/ inline CreateDocumentRequest& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;} /** *

An optional field specifying the version of the artifact you are creating * with the document. For example, Release12.1. This value is unique * across all versions of a document, and can't be changed.

*/ inline CreateDocumentRequest& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;} /** *

An optional field specifying the version of the artifact you are creating * with the document. For example, Release12.1. This value is unique * across all versions of a document, and can't be changed.

*/ inline CreateDocumentRequest& WithVersionName(const char* value) { SetVersionName(value); return *this;} /** *

The type of document to create.

The * DeploymentStrategy document type is an internal-use-only document * type reserved for AppConfig.

*/ inline const DocumentType& GetDocumentType() const{ return m_documentType; } /** *

The type of document to create.

The * DeploymentStrategy document type is an internal-use-only document * type reserved for AppConfig.

*/ inline bool DocumentTypeHasBeenSet() const { return m_documentTypeHasBeenSet; } /** *

The type of document to create.

The * DeploymentStrategy document type is an internal-use-only document * type reserved for AppConfig.

*/ inline void SetDocumentType(const DocumentType& value) { m_documentTypeHasBeenSet = true; m_documentType = value; } /** *

The type of document to create.

The * DeploymentStrategy document type is an internal-use-only document * type reserved for AppConfig.

*/ inline void SetDocumentType(DocumentType&& value) { m_documentTypeHasBeenSet = true; m_documentType = std::move(value); } /** *

The type of document to create.

The * DeploymentStrategy document type is an internal-use-only document * type reserved for AppConfig.

*/ inline CreateDocumentRequest& WithDocumentType(const DocumentType& value) { SetDocumentType(value); return *this;} /** *

The type of document to create.

The * DeploymentStrategy document type is an internal-use-only document * type reserved for AppConfig.

*/ inline CreateDocumentRequest& WithDocumentType(DocumentType&& value) { SetDocumentType(std::move(value)); return *this;} /** *

Specify the document format for the request. The document format can be JSON, * YAML, or TEXT. JSON is the default format.

*/ inline const DocumentFormat& GetDocumentFormat() const{ return m_documentFormat; } /** *

Specify the document format for the request. The document format can be JSON, * YAML, or TEXT. JSON is the default format.

*/ inline bool DocumentFormatHasBeenSet() const { return m_documentFormatHasBeenSet; } /** *

Specify the document format for the request. The document format can be JSON, * YAML, or TEXT. JSON is the default format.

*/ inline void SetDocumentFormat(const DocumentFormat& value) { m_documentFormatHasBeenSet = true; m_documentFormat = value; } /** *

Specify the document format for the request. The document format can be JSON, * YAML, or TEXT. JSON is the default format.

*/ inline void SetDocumentFormat(DocumentFormat&& value) { m_documentFormatHasBeenSet = true; m_documentFormat = std::move(value); } /** *

Specify the document format for the request. The document format can be JSON, * YAML, or TEXT. JSON is the default format.

*/ inline CreateDocumentRequest& WithDocumentFormat(const DocumentFormat& value) { SetDocumentFormat(value); return *this;} /** *

Specify the document format for the request. The document format can be JSON, * YAML, or TEXT. JSON is the default format.

*/ inline CreateDocumentRequest& WithDocumentFormat(DocumentFormat&& value) { SetDocumentFormat(std::move(value)); return *this;} /** *

Specify a target type to define the kinds of resources the document can run * on. For example, to run a document on EC2 instances, specify the following * value: /AWS::EC2::Instance. If you specify a value of '/' the * document can run on all types of resources. If you don't specify a value, the * document can't run on any resources. For a list of valid resource types, see Amazon * Web Services resource and property types reference in the CloudFormation * User Guide.

*/ inline const Aws::String& GetTargetType() const{ return m_targetType; } /** *

Specify a target type to define the kinds of resources the document can run * on. For example, to run a document on EC2 instances, specify the following * value: /AWS::EC2::Instance. If you specify a value of '/' the * document can run on all types of resources. If you don't specify a value, the * document can't run on any resources. For a list of valid resource types, see Amazon * Web Services resource and property types reference in the CloudFormation * User Guide.

*/ inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; } /** *

Specify a target type to define the kinds of resources the document can run * on. For example, to run a document on EC2 instances, specify the following * value: /AWS::EC2::Instance. If you specify a value of '/' the * document can run on all types of resources. If you don't specify a value, the * document can't run on any resources. For a list of valid resource types, see Amazon * Web Services resource and property types reference in the CloudFormation * User Guide.

*/ inline void SetTargetType(const Aws::String& value) { m_targetTypeHasBeenSet = true; m_targetType = value; } /** *

Specify a target type to define the kinds of resources the document can run * on. For example, to run a document on EC2 instances, specify the following * value: /AWS::EC2::Instance. If you specify a value of '/' the * document can run on all types of resources. If you don't specify a value, the * document can't run on any resources. For a list of valid resource types, see Amazon * Web Services resource and property types reference in the CloudFormation * User Guide.

*/ inline void SetTargetType(Aws::String&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); } /** *

Specify a target type to define the kinds of resources the document can run * on. For example, to run a document on EC2 instances, specify the following * value: /AWS::EC2::Instance. If you specify a value of '/' the * document can run on all types of resources. If you don't specify a value, the * document can't run on any resources. For a list of valid resource types, see Amazon * Web Services resource and property types reference in the CloudFormation * User Guide.

*/ inline void SetTargetType(const char* value) { m_targetTypeHasBeenSet = true; m_targetType.assign(value); } /** *

Specify a target type to define the kinds of resources the document can run * on. For example, to run a document on EC2 instances, specify the following * value: /AWS::EC2::Instance. If you specify a value of '/' the * document can run on all types of resources. If you don't specify a value, the * document can't run on any resources. For a list of valid resource types, see Amazon * Web Services resource and property types reference in the CloudFormation * User Guide.

*/ inline CreateDocumentRequest& WithTargetType(const Aws::String& value) { SetTargetType(value); return *this;} /** *

Specify a target type to define the kinds of resources the document can run * on. For example, to run a document on EC2 instances, specify the following * value: /AWS::EC2::Instance. If you specify a value of '/' the * document can run on all types of resources. If you don't specify a value, the * document can't run on any resources. For a list of valid resource types, see Amazon * Web Services resource and property types reference in the CloudFormation * User Guide.

*/ inline CreateDocumentRequest& WithTargetType(Aws::String&& value) { SetTargetType(std::move(value)); return *this;} /** *

Specify a target type to define the kinds of resources the document can run * on. For example, to run a document on EC2 instances, specify the following * value: /AWS::EC2::Instance. If you specify a value of '/' the * document can run on all types of resources. If you don't specify a value, the * document can't run on any resources. For a list of valid resource types, see Amazon * Web Services resource and property types reference in the CloudFormation * User Guide.

*/ inline CreateDocumentRequest& WithTargetType(const char* value) { SetTargetType(value); return *this;} /** *

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag an SSM document to identify the * types of targets or the environment where it will run. In this case, you could * specify the following key-value pairs:

  • * Key=OS,Value=Windows

  • * Key=Environment,Value=Production

To add * tags to an existing SSM document, use the AddTagsToResource * operation.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag an SSM document to identify the * types of targets or the environment where it will run. In this case, you could * specify the following key-value pairs:

  • * Key=OS,Value=Windows

  • * Key=Environment,Value=Production

To add * tags to an existing SSM document, use the AddTagsToResource * operation.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag an SSM document to identify the * types of targets or the environment where it will run. In this case, you could * specify the following key-value pairs:

  • * Key=OS,Value=Windows

  • * Key=Environment,Value=Production

To add * tags to an existing SSM document, use the AddTagsToResource * operation.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag an SSM document to identify the * types of targets or the environment where it will run. In this case, you could * specify the following key-value pairs:

  • * Key=OS,Value=Windows

  • * Key=Environment,Value=Production

To add * tags to an existing SSM document, use the AddTagsToResource * operation.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag an SSM document to identify the * types of targets or the environment where it will run. In this case, you could * specify the following key-value pairs:

  • * Key=OS,Value=Windows

  • * Key=Environment,Value=Production

To add * tags to an existing SSM document, use the AddTagsToResource * operation.

*/ inline CreateDocumentRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag an SSM document to identify the * types of targets or the environment where it will run. In this case, you could * specify the following key-value pairs:

  • * Key=OS,Value=Windows

  • * Key=Environment,Value=Production

To add * tags to an existing SSM document, use the AddTagsToResource * operation.

*/ inline CreateDocumentRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag an SSM document to identify the * types of targets or the environment where it will run. In this case, you could * specify the following key-value pairs:

  • * Key=OS,Value=Windows

  • * Key=Environment,Value=Production

To add * tags to an existing SSM document, use the AddTagsToResource * operation.

*/ inline CreateDocumentRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag an SSM document to identify the * types of targets or the environment where it will run. In this case, you could * specify the following key-value pairs:

  • * Key=OS,Value=Windows

  • * Key=Environment,Value=Production

To add * tags to an existing SSM document, use the AddTagsToResource * operation.

*/ inline CreateDocumentRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_content; bool m_contentHasBeenSet = false; Aws::Vector m_requires; bool m_requiresHasBeenSet = false; Aws::Vector m_attachments; bool m_attachmentsHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_displayName; bool m_displayNameHasBeenSet = false; Aws::String m_versionName; bool m_versionNameHasBeenSet = false; DocumentType m_documentType; bool m_documentTypeHasBeenSet = false; DocumentFormat m_documentFormat; bool m_documentFormatHasBeenSet = false; Aws::String m_targetType; bool m_targetTypeHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws