/** * 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 Appflow { namespace Model { /** *

Specifies the configuration that Amazon AppFlow uses when it catalogs your * data with the Glue Data Catalog. When Amazon AppFlow catalogs your data, it * stores metadata in Data Catalog tables. This metadata represents the data that's * transferred by the flow that you configure with these settings.

*

You can configure a flow with these settings only when the flow destination * is Amazon S3.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of an IAM role that grants Amazon AppFlow the * permissions it needs to create Data Catalog tables, databases, and * partitions.

For an example IAM policy that has the required permissions, * see Identity-based * policy examples for Amazon AppFlow.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The Amazon Resource Name (ARN) of an IAM role that grants Amazon AppFlow the * permissions it needs to create Data Catalog tables, databases, and * partitions.

For an example IAM policy that has the required permissions, * see Identity-based * policy examples for Amazon AppFlow.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of an IAM role that grants Amazon AppFlow the * permissions it needs to create Data Catalog tables, databases, and * partitions.

For an example IAM policy that has the required permissions, * see Identity-based * policy examples for Amazon AppFlow.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The Amazon Resource Name (ARN) of an IAM role that grants Amazon AppFlow the * permissions it needs to create Data Catalog tables, databases, and * partitions.

For an example IAM policy that has the required permissions, * see Identity-based * policy examples for Amazon AppFlow.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of an IAM role that grants Amazon AppFlow the * permissions it needs to create Data Catalog tables, databases, and * partitions.

For an example IAM policy that has the required permissions, * see Identity-based * policy examples for Amazon AppFlow.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of an IAM role that grants Amazon AppFlow the * permissions it needs to create Data Catalog tables, databases, and * partitions.

For an example IAM policy that has the required permissions, * see Identity-based * policy examples for Amazon AppFlow.

*/ inline GlueDataCatalogConfig& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of an IAM role that grants Amazon AppFlow the * permissions it needs to create Data Catalog tables, databases, and * partitions.

For an example IAM policy that has the required permissions, * see Identity-based * policy examples for Amazon AppFlow.

*/ inline GlueDataCatalogConfig& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of an IAM role that grants Amazon AppFlow the * permissions it needs to create Data Catalog tables, databases, and * partitions.

For an example IAM policy that has the required permissions, * see Identity-based * policy examples for Amazon AppFlow.

*/ inline GlueDataCatalogConfig& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The name of the Data Catalog database that stores the metadata tables that * Amazon AppFlow creates in your Amazon Web Services account. These tables contain * metadata for the data that's transferred by the flow that you configure with * this parameter.

When you configure a new flow with this parameter, * you must specify an existing database.

*/ inline const Aws::String& GetDatabaseName() const{ return m_databaseName; } /** *

The name of the Data Catalog database that stores the metadata tables that * Amazon AppFlow creates in your Amazon Web Services account. These tables contain * metadata for the data that's transferred by the flow that you configure with * this parameter.

When you configure a new flow with this parameter, * you must specify an existing database.

*/ inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; } /** *

The name of the Data Catalog database that stores the metadata tables that * Amazon AppFlow creates in your Amazon Web Services account. These tables contain * metadata for the data that's transferred by the flow that you configure with * this parameter.

When you configure a new flow with this parameter, * you must specify an existing database.

*/ inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; } /** *

The name of the Data Catalog database that stores the metadata tables that * Amazon AppFlow creates in your Amazon Web Services account. These tables contain * metadata for the data that's transferred by the flow that you configure with * this parameter.

When you configure a new flow with this parameter, * you must specify an existing database.

*/ inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); } /** *

The name of the Data Catalog database that stores the metadata tables that * Amazon AppFlow creates in your Amazon Web Services account. These tables contain * metadata for the data that's transferred by the flow that you configure with * this parameter.

When you configure a new flow with this parameter, * you must specify an existing database.

*/ inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); } /** *

The name of the Data Catalog database that stores the metadata tables that * Amazon AppFlow creates in your Amazon Web Services account. These tables contain * metadata for the data that's transferred by the flow that you configure with * this parameter.

When you configure a new flow with this parameter, * you must specify an existing database.

*/ inline GlueDataCatalogConfig& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;} /** *

The name of the Data Catalog database that stores the metadata tables that * Amazon AppFlow creates in your Amazon Web Services account. These tables contain * metadata for the data that's transferred by the flow that you configure with * this parameter.

When you configure a new flow with this parameter, * you must specify an existing database.

*/ inline GlueDataCatalogConfig& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;} /** *

The name of the Data Catalog database that stores the metadata tables that * Amazon AppFlow creates in your Amazon Web Services account. These tables contain * metadata for the data that's transferred by the flow that you configure with * this parameter.

When you configure a new flow with this parameter, * you must specify an existing database.

*/ inline GlueDataCatalogConfig& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;} /** *

A naming prefix for each Data Catalog table that Amazon AppFlow creates for * the flow that you configure with this setting. Amazon AppFlow adds the prefix to * the beginning of the each table name.

*/ inline const Aws::String& GetTablePrefix() const{ return m_tablePrefix; } /** *

A naming prefix for each Data Catalog table that Amazon AppFlow creates for * the flow that you configure with this setting. Amazon AppFlow adds the prefix to * the beginning of the each table name.

*/ inline bool TablePrefixHasBeenSet() const { return m_tablePrefixHasBeenSet; } /** *

A naming prefix for each Data Catalog table that Amazon AppFlow creates for * the flow that you configure with this setting. Amazon AppFlow adds the prefix to * the beginning of the each table name.

*/ inline void SetTablePrefix(const Aws::String& value) { m_tablePrefixHasBeenSet = true; m_tablePrefix = value; } /** *

A naming prefix for each Data Catalog table that Amazon AppFlow creates for * the flow that you configure with this setting. Amazon AppFlow adds the prefix to * the beginning of the each table name.

*/ inline void SetTablePrefix(Aws::String&& value) { m_tablePrefixHasBeenSet = true; m_tablePrefix = std::move(value); } /** *

A naming prefix for each Data Catalog table that Amazon AppFlow creates for * the flow that you configure with this setting. Amazon AppFlow adds the prefix to * the beginning of the each table name.

*/ inline void SetTablePrefix(const char* value) { m_tablePrefixHasBeenSet = true; m_tablePrefix.assign(value); } /** *

A naming prefix for each Data Catalog table that Amazon AppFlow creates for * the flow that you configure with this setting. Amazon AppFlow adds the prefix to * the beginning of the each table name.

*/ inline GlueDataCatalogConfig& WithTablePrefix(const Aws::String& value) { SetTablePrefix(value); return *this;} /** *

A naming prefix for each Data Catalog table that Amazon AppFlow creates for * the flow that you configure with this setting. Amazon AppFlow adds the prefix to * the beginning of the each table name.

*/ inline GlueDataCatalogConfig& WithTablePrefix(Aws::String&& value) { SetTablePrefix(std::move(value)); return *this;} /** *

A naming prefix for each Data Catalog table that Amazon AppFlow creates for * the flow that you configure with this setting. Amazon AppFlow adds the prefix to * the beginning of the each table name.

*/ inline GlueDataCatalogConfig& WithTablePrefix(const char* value) { SetTablePrefix(value); return *this;} private: Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::String m_databaseName; bool m_databaseNameHasBeenSet = false; Aws::String m_tablePrefix; bool m_tablePrefixHasBeenSet = false; }; } // namespace Model } // namespace Appflow } // namespace Aws