/** * 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 AWS_SSM_API CreateDocumentRequest : public SSMRequest { public: 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::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The content for the new SSM document in JSON or YAML format. 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 AWS 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. 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 AWS Systems Manager User Guide.

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

The content for the new SSM document in JSON or YAML format. 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 AWS 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. 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 AWS 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. 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 AWS 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. 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 AWS 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. 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 AWS 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. 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 AWS 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 AWS 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 AWS * AppConfig in the AWS Systems Manager 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 AWS 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 AWS * AppConfig in the AWS Systems Manager User Guide.

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

A list of SSM documents required by a document. This parameter is used * exclusively by AWS 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 AWS * AppConfig in the AWS Systems Manager 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 AWS 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 AWS * AppConfig in the AWS Systems Manager 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 AWS 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 AWS * AppConfig in the AWS Systems Manager 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 AWS 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 AWS * AppConfig in the AWS Systems Manager 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 AWS 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 AWS * AppConfig in the AWS Systems Manager 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 AWS 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 AWS * AppConfig in the AWS Systems Manager User Guide.

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

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

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

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

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

A list of key and 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 and 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 and 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 and 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 and 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 and 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 Systems Manager document.

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

  • aws-

  • *

    amazon

  • amzn

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

A name for the Systems Manager document.

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

  • aws-

  • *

    amazon

  • amzn

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

A name for the Systems Manager document.

You can't use the * following strings as document name prefixes. These are reserved by AWS 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 Systems Manager document.

You can't use the * following strings as document name prefixes. These are reserved by AWS 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 Systems Manager document.

You can't use the * following strings as document name prefixes. These are reserved by AWS 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 Systems Manager document.

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

  • aws-

  • *

    amazon

  • amzn

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

A name for the Systems Manager document.

You can't use the * following strings as document name prefixes. These are reserved by AWS 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 Systems Manager document.

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

  • aws-

  • *

    amazon

  • amzn

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

An optional field specifying the version of the artifact you are creating * with the document. For example, "Release 12, Update 6". This value is unique * across all versions of a document, and cannot 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, "Release 12, Update 6". This value is unique * across all versions of a document, and cannot 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, "Release 12, Update 6". This value is unique * across all versions of a document, and cannot 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, "Release 12, Update 6". This value is unique * across all versions of a document, and cannot 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, "Release 12, Update 6". This value is unique * across all versions of a document, and cannot 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, "Release 12, Update 6". This value is unique * across all versions of a document, and cannot 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, "Release 12, Update 6". This value is unique * across all versions of a document, and cannot 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, "Release 12, Update 6". This value is unique * across all versions of a document, and cannot be changed.

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

The type of document to create.

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

The type of document to create.

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

The type of document to create.

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

The type of document to create.

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

The type of document to create.

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

The type of document to create.

*/ 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 AWS * resource and property types reference in the AWS 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 AWS * resource and property types reference in the AWS 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 AWS * resource and property types reference in the AWS 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 AWS * resource and property types reference in the AWS 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 AWS * resource and property types reference in the AWS 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 AWS * resource and property types reference in the AWS 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 AWS * resource and property types reference in the AWS 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 AWS * resource and property types reference in the AWS 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 name/value pairs:

  • * Key=OS,Value=Windows

  • * Key=Environment,Value=Production

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

* */ 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 name/value pairs:

  • * Key=OS,Value=Windows

  • * Key=Environment,Value=Production

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

* */ 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 name/value pairs:

  • * Key=OS,Value=Windows

  • * Key=Environment,Value=Production

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

* */ 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 name/value pairs:

  • * Key=OS,Value=Windows

  • * Key=Environment,Value=Production

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

* */ 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 name/value pairs:

  • * Key=OS,Value=Windows

  • * Key=Environment,Value=Production

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

* */ 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 name/value pairs:

  • * Key=OS,Value=Windows

  • * Key=Environment,Value=Production

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

* */ 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 name/value pairs:

  • * Key=OS,Value=Windows

  • * Key=Environment,Value=Production

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

* */ 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 name/value pairs:

  • * Key=OS,Value=Windows

  • * Key=Environment,Value=Production

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

* */ 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; Aws::Vector m_requires; bool m_requiresHasBeenSet; Aws::Vector m_attachments; bool m_attachmentsHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_versionName; bool m_versionNameHasBeenSet; DocumentType m_documentType; bool m_documentTypeHasBeenSet; DocumentFormat m_documentFormat; bool m_documentFormatHasBeenSet; Aws::String m_targetType; bool m_targetTypeHasBeenSet; Aws::Vector m_tags; bool m_tagsHasBeenSet; }; } // namespace Model } // namespace SSM } // namespace Aws