/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DatabaseMigrationService { namespace Model { /** *

Provides information that defines an OpenSearch endpoint.

See * Also:

AWS * API Reference

*/ class ElasticsearchSettings { public: AWS_DATABASEMIGRATIONSERVICE_API ElasticsearchSettings(); AWS_DATABASEMIGRATIONSERVICE_API ElasticsearchSettings(Aws::Utils::Json::JsonView jsonValue); AWS_DATABASEMIGRATIONSERVICE_API ElasticsearchSettings& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) used by the service to access the IAM role. * The role must allow the iam:PassRole action.

*/ inline const Aws::String& GetServiceAccessRoleArn() const{ return m_serviceAccessRoleArn; } /** *

The Amazon Resource Name (ARN) used by the service to access the IAM role. * The role must allow the iam:PassRole action.

*/ inline bool ServiceAccessRoleArnHasBeenSet() const { return m_serviceAccessRoleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) used by the service to access the IAM role. * The role must allow the iam:PassRole action.

*/ inline void SetServiceAccessRoleArn(const Aws::String& value) { m_serviceAccessRoleArnHasBeenSet = true; m_serviceAccessRoleArn = value; } /** *

The Amazon Resource Name (ARN) used by the service to access the IAM role. * The role must allow the iam:PassRole action.

*/ inline void SetServiceAccessRoleArn(Aws::String&& value) { m_serviceAccessRoleArnHasBeenSet = true; m_serviceAccessRoleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) used by the service to access the IAM role. * The role must allow the iam:PassRole action.

*/ inline void SetServiceAccessRoleArn(const char* value) { m_serviceAccessRoleArnHasBeenSet = true; m_serviceAccessRoleArn.assign(value); } /** *

The Amazon Resource Name (ARN) used by the service to access the IAM role. * The role must allow the iam:PassRole action.

*/ inline ElasticsearchSettings& WithServiceAccessRoleArn(const Aws::String& value) { SetServiceAccessRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) used by the service to access the IAM role. * The role must allow the iam:PassRole action.

*/ inline ElasticsearchSettings& WithServiceAccessRoleArn(Aws::String&& value) { SetServiceAccessRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) used by the service to access the IAM role. * The role must allow the iam:PassRole action.

*/ inline ElasticsearchSettings& WithServiceAccessRoleArn(const char* value) { SetServiceAccessRoleArn(value); return *this;} /** *

The endpoint for the OpenSearch cluster. DMS uses HTTPS if a transport * protocol (http/https) is not specified.

*/ inline const Aws::String& GetEndpointUri() const{ return m_endpointUri; } /** *

The endpoint for the OpenSearch cluster. DMS uses HTTPS if a transport * protocol (http/https) is not specified.

*/ inline bool EndpointUriHasBeenSet() const { return m_endpointUriHasBeenSet; } /** *

The endpoint for the OpenSearch cluster. DMS uses HTTPS if a transport * protocol (http/https) is not specified.

*/ inline void SetEndpointUri(const Aws::String& value) { m_endpointUriHasBeenSet = true; m_endpointUri = value; } /** *

The endpoint for the OpenSearch cluster. DMS uses HTTPS if a transport * protocol (http/https) is not specified.

*/ inline void SetEndpointUri(Aws::String&& value) { m_endpointUriHasBeenSet = true; m_endpointUri = std::move(value); } /** *

The endpoint for the OpenSearch cluster. DMS uses HTTPS if a transport * protocol (http/https) is not specified.

*/ inline void SetEndpointUri(const char* value) { m_endpointUriHasBeenSet = true; m_endpointUri.assign(value); } /** *

The endpoint for the OpenSearch cluster. DMS uses HTTPS if a transport * protocol (http/https) is not specified.

*/ inline ElasticsearchSettings& WithEndpointUri(const Aws::String& value) { SetEndpointUri(value); return *this;} /** *

The endpoint for the OpenSearch cluster. DMS uses HTTPS if a transport * protocol (http/https) is not specified.

*/ inline ElasticsearchSettings& WithEndpointUri(Aws::String&& value) { SetEndpointUri(std::move(value)); return *this;} /** *

The endpoint for the OpenSearch cluster. DMS uses HTTPS if a transport * protocol (http/https) is not specified.

*/ inline ElasticsearchSettings& WithEndpointUri(const char* value) { SetEndpointUri(value); return *this;} /** *

The maximum percentage of records that can fail to be written before a full * load operation stops.

To avoid early failure, this counter is only * effective after 1000 records are transferred. OpenSearch also has the concept of * error monitoring during the last 10 minutes of an Observation Window. If * transfer of all records fail in the last 10 minutes, the full load operation * stops.

*/ inline int GetFullLoadErrorPercentage() const{ return m_fullLoadErrorPercentage; } /** *

The maximum percentage of records that can fail to be written before a full * load operation stops.

To avoid early failure, this counter is only * effective after 1000 records are transferred. OpenSearch also has the concept of * error monitoring during the last 10 minutes of an Observation Window. If * transfer of all records fail in the last 10 minutes, the full load operation * stops.

*/ inline bool FullLoadErrorPercentageHasBeenSet() const { return m_fullLoadErrorPercentageHasBeenSet; } /** *

The maximum percentage of records that can fail to be written before a full * load operation stops.

To avoid early failure, this counter is only * effective after 1000 records are transferred. OpenSearch also has the concept of * error monitoring during the last 10 minutes of an Observation Window. If * transfer of all records fail in the last 10 minutes, the full load operation * stops.

*/ inline void SetFullLoadErrorPercentage(int value) { m_fullLoadErrorPercentageHasBeenSet = true; m_fullLoadErrorPercentage = value; } /** *

The maximum percentage of records that can fail to be written before a full * load operation stops.

To avoid early failure, this counter is only * effective after 1000 records are transferred. OpenSearch also has the concept of * error monitoring during the last 10 minutes of an Observation Window. If * transfer of all records fail in the last 10 minutes, the full load operation * stops.

*/ inline ElasticsearchSettings& WithFullLoadErrorPercentage(int value) { SetFullLoadErrorPercentage(value); return *this;} /** *

The maximum number of seconds for which DMS retries failed API requests to * the OpenSearch cluster.

*/ inline int GetErrorRetryDuration() const{ return m_errorRetryDuration; } /** *

The maximum number of seconds for which DMS retries failed API requests to * the OpenSearch cluster.

*/ inline bool ErrorRetryDurationHasBeenSet() const { return m_errorRetryDurationHasBeenSet; } /** *

The maximum number of seconds for which DMS retries failed API requests to * the OpenSearch cluster.

*/ inline void SetErrorRetryDuration(int value) { m_errorRetryDurationHasBeenSet = true; m_errorRetryDuration = value; } /** *

The maximum number of seconds for which DMS retries failed API requests to * the OpenSearch cluster.

*/ inline ElasticsearchSettings& WithErrorRetryDuration(int value) { SetErrorRetryDuration(value); return *this;} /** *

Set this option to true for DMS to migrate documentation using * the documentation type _doc. OpenSearch and an Elasticsearch * cluster only support the _doc documentation type in versions 7. x and later. The * default value is false.

*/ inline bool GetUseNewMappingType() const{ return m_useNewMappingType; } /** *

Set this option to true for DMS to migrate documentation using * the documentation type _doc. OpenSearch and an Elasticsearch * cluster only support the _doc documentation type in versions 7. x and later. The * default value is false.

*/ inline bool UseNewMappingTypeHasBeenSet() const { return m_useNewMappingTypeHasBeenSet; } /** *

Set this option to true for DMS to migrate documentation using * the documentation type _doc. OpenSearch and an Elasticsearch * cluster only support the _doc documentation type in versions 7. x and later. The * default value is false.

*/ inline void SetUseNewMappingType(bool value) { m_useNewMappingTypeHasBeenSet = true; m_useNewMappingType = value; } /** *

Set this option to true for DMS to migrate documentation using * the documentation type _doc. OpenSearch and an Elasticsearch * cluster only support the _doc documentation type in versions 7. x and later. The * default value is false.

*/ inline ElasticsearchSettings& WithUseNewMappingType(bool value) { SetUseNewMappingType(value); return *this;} private: Aws::String m_serviceAccessRoleArn; bool m_serviceAccessRoleArnHasBeenSet = false; Aws::String m_endpointUri; bool m_endpointUriHasBeenSet = false; int m_fullLoadErrorPercentage; bool m_fullLoadErrorPercentageHasBeenSet = false; int m_errorRetryDuration; bool m_errorRetryDurationHasBeenSet = false; bool m_useNewMappingType; bool m_useNewMappingTypeHasBeenSet = false; }; } // namespace Model } // namespace DatabaseMigrationService } // namespace Aws