@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
1,259 lines (1,258 loc) • 470 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DmsEndpoint = exports.DmsEndpointTimeoutsOutputReference = exports.DmsEndpointRedshiftSettingsOutputReference = exports.DmsEndpointRedisSettingsOutputReference = exports.DmsEndpointPostgresSettingsOutputReference = exports.DmsEndpointOracleSettingsOutputReference = exports.DmsEndpointMysqlSettingsOutputReference = exports.DmsEndpointMongodbSettingsOutputReference = exports.DmsEndpointKinesisSettingsOutputReference = exports.DmsEndpointKafkaSettingsOutputReference = exports.DmsEndpointElasticsearchSettingsOutputReference = void 0;
exports.dmsEndpointElasticsearchSettingsToTerraform = dmsEndpointElasticsearchSettingsToTerraform;
exports.dmsEndpointElasticsearchSettingsToHclTerraform = dmsEndpointElasticsearchSettingsToHclTerraform;
exports.dmsEndpointKafkaSettingsToTerraform = dmsEndpointKafkaSettingsToTerraform;
exports.dmsEndpointKafkaSettingsToHclTerraform = dmsEndpointKafkaSettingsToHclTerraform;
exports.dmsEndpointKinesisSettingsToTerraform = dmsEndpointKinesisSettingsToTerraform;
exports.dmsEndpointKinesisSettingsToHclTerraform = dmsEndpointKinesisSettingsToHclTerraform;
exports.dmsEndpointMongodbSettingsToTerraform = dmsEndpointMongodbSettingsToTerraform;
exports.dmsEndpointMongodbSettingsToHclTerraform = dmsEndpointMongodbSettingsToHclTerraform;
exports.dmsEndpointMysqlSettingsToTerraform = dmsEndpointMysqlSettingsToTerraform;
exports.dmsEndpointMysqlSettingsToHclTerraform = dmsEndpointMysqlSettingsToHclTerraform;
exports.dmsEndpointOracleSettingsToTerraform = dmsEndpointOracleSettingsToTerraform;
exports.dmsEndpointOracleSettingsToHclTerraform = dmsEndpointOracleSettingsToHclTerraform;
exports.dmsEndpointPostgresSettingsToTerraform = dmsEndpointPostgresSettingsToTerraform;
exports.dmsEndpointPostgresSettingsToHclTerraform = dmsEndpointPostgresSettingsToHclTerraform;
exports.dmsEndpointRedisSettingsToTerraform = dmsEndpointRedisSettingsToTerraform;
exports.dmsEndpointRedisSettingsToHclTerraform = dmsEndpointRedisSettingsToHclTerraform;
exports.dmsEndpointRedshiftSettingsToTerraform = dmsEndpointRedshiftSettingsToTerraform;
exports.dmsEndpointRedshiftSettingsToHclTerraform = dmsEndpointRedshiftSettingsToHclTerraform;
exports.dmsEndpointTimeoutsToTerraform = dmsEndpointTimeoutsToTerraform;
exports.dmsEndpointTimeoutsToHclTerraform = dmsEndpointTimeoutsToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function dmsEndpointElasticsearchSettingsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
endpoint_uri: cdktf.stringToTerraform(struct.endpointUri),
error_retry_duration: cdktf.numberToTerraform(struct.errorRetryDuration),
full_load_error_percentage: cdktf.numberToTerraform(struct.fullLoadErrorPercentage),
service_access_role_arn: cdktf.stringToTerraform(struct.serviceAccessRoleArn),
use_new_mapping_type: cdktf.booleanToTerraform(struct.useNewMappingType),
};
}
function dmsEndpointElasticsearchSettingsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
endpoint_uri: {
value: cdktf.stringToHclTerraform(struct.endpointUri),
isBlock: false,
type: "simple",
storageClassType: "string",
},
error_retry_duration: {
value: cdktf.numberToHclTerraform(struct.errorRetryDuration),
isBlock: false,
type: "simple",
storageClassType: "number",
},
full_load_error_percentage: {
value: cdktf.numberToHclTerraform(struct.fullLoadErrorPercentage),
isBlock: false,
type: "simple",
storageClassType: "number",
},
service_access_role_arn: {
value: cdktf.stringToHclTerraform(struct.serviceAccessRoleArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
use_new_mapping_type: {
value: cdktf.booleanToHclTerraform(struct.useNewMappingType),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DmsEndpointElasticsearchSettingsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._endpointUri !== undefined) {
hasAnyValues = true;
internalValueResult.endpointUri = this._endpointUri;
}
if (this._errorRetryDuration !== undefined) {
hasAnyValues = true;
internalValueResult.errorRetryDuration = this._errorRetryDuration;
}
if (this._fullLoadErrorPercentage !== undefined) {
hasAnyValues = true;
internalValueResult.fullLoadErrorPercentage = this._fullLoadErrorPercentage;
}
if (this._serviceAccessRoleArn !== undefined) {
hasAnyValues = true;
internalValueResult.serviceAccessRoleArn = this._serviceAccessRoleArn;
}
if (this._useNewMappingType !== undefined) {
hasAnyValues = true;
internalValueResult.useNewMappingType = this._useNewMappingType;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._endpointUri = undefined;
this._errorRetryDuration = undefined;
this._fullLoadErrorPercentage = undefined;
this._serviceAccessRoleArn = undefined;
this._useNewMappingType = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._endpointUri = value.endpointUri;
this._errorRetryDuration = value.errorRetryDuration;
this._fullLoadErrorPercentage = value.fullLoadErrorPercentage;
this._serviceAccessRoleArn = value.serviceAccessRoleArn;
this._useNewMappingType = value.useNewMappingType;
}
}
get endpointUri() {
return this.getStringAttribute('endpoint_uri');
}
set endpointUri(value) {
this._endpointUri = value;
}
// Temporarily expose input value. Use with caution.
get endpointUriInput() {
return this._endpointUri;
}
get errorRetryDuration() {
return this.getNumberAttribute('error_retry_duration');
}
set errorRetryDuration(value) {
this._errorRetryDuration = value;
}
resetErrorRetryDuration() {
this._errorRetryDuration = undefined;
}
// Temporarily expose input value. Use with caution.
get errorRetryDurationInput() {
return this._errorRetryDuration;
}
get fullLoadErrorPercentage() {
return this.getNumberAttribute('full_load_error_percentage');
}
set fullLoadErrorPercentage(value) {
this._fullLoadErrorPercentage = value;
}
resetFullLoadErrorPercentage() {
this._fullLoadErrorPercentage = undefined;
}
// Temporarily expose input value. Use with caution.
get fullLoadErrorPercentageInput() {
return this._fullLoadErrorPercentage;
}
get serviceAccessRoleArn() {
return this.getStringAttribute('service_access_role_arn');
}
set serviceAccessRoleArn(value) {
this._serviceAccessRoleArn = value;
}
// Temporarily expose input value. Use with caution.
get serviceAccessRoleArnInput() {
return this._serviceAccessRoleArn;
}
get useNewMappingType() {
return this.getBooleanAttribute('use_new_mapping_type');
}
set useNewMappingType(value) {
this._useNewMappingType = value;
}
resetUseNewMappingType() {
this._useNewMappingType = undefined;
}
// Temporarily expose input value. Use with caution.
get useNewMappingTypeInput() {
return this._useNewMappingType;
}
}
exports.DmsEndpointElasticsearchSettingsOutputReference = DmsEndpointElasticsearchSettingsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DmsEndpointElasticsearchSettingsOutputReference[_a] = { fqn: "@cdktf/provider-aws.dmsEndpoint.DmsEndpointElasticsearchSettingsOutputReference", version: "21.22.1" };
function dmsEndpointKafkaSettingsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
broker: cdktf.stringToTerraform(struct.broker),
include_control_details: cdktf.booleanToTerraform(struct.includeControlDetails),
include_null_and_empty: cdktf.booleanToTerraform(struct.includeNullAndEmpty),
include_partition_value: cdktf.booleanToTerraform(struct.includePartitionValue),
include_table_alter_operations: cdktf.booleanToTerraform(struct.includeTableAlterOperations),
include_transaction_details: cdktf.booleanToTerraform(struct.includeTransactionDetails),
message_format: cdktf.stringToTerraform(struct.messageFormat),
message_max_bytes: cdktf.numberToTerraform(struct.messageMaxBytes),
no_hex_prefix: cdktf.booleanToTerraform(struct.noHexPrefix),
partition_include_schema_table: cdktf.booleanToTerraform(struct.partitionIncludeSchemaTable),
sasl_mechanism: cdktf.stringToTerraform(struct.saslMechanism),
sasl_password: cdktf.stringToTerraform(struct.saslPassword),
sasl_username: cdktf.stringToTerraform(struct.saslUsername),
security_protocol: cdktf.stringToTerraform(struct.securityProtocol),
ssl_ca_certificate_arn: cdktf.stringToTerraform(struct.sslCaCertificateArn),
ssl_client_certificate_arn: cdktf.stringToTerraform(struct.sslClientCertificateArn),
ssl_client_key_arn: cdktf.stringToTerraform(struct.sslClientKeyArn),
ssl_client_key_password: cdktf.stringToTerraform(struct.sslClientKeyPassword),
topic: cdktf.stringToTerraform(struct.topic),
};
}
function dmsEndpointKafkaSettingsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
broker: {
value: cdktf.stringToHclTerraform(struct.broker),
isBlock: false,
type: "simple",
storageClassType: "string",
},
include_control_details: {
value: cdktf.booleanToHclTerraform(struct.includeControlDetails),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
include_null_and_empty: {
value: cdktf.booleanToHclTerraform(struct.includeNullAndEmpty),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
include_partition_value: {
value: cdktf.booleanToHclTerraform(struct.includePartitionValue),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
include_table_alter_operations: {
value: cdktf.booleanToHclTerraform(struct.includeTableAlterOperations),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
include_transaction_details: {
value: cdktf.booleanToHclTerraform(struct.includeTransactionDetails),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
message_format: {
value: cdktf.stringToHclTerraform(struct.messageFormat),
isBlock: false,
type: "simple",
storageClassType: "string",
},
message_max_bytes: {
value: cdktf.numberToHclTerraform(struct.messageMaxBytes),
isBlock: false,
type: "simple",
storageClassType: "number",
},
no_hex_prefix: {
value: cdktf.booleanToHclTerraform(struct.noHexPrefix),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
partition_include_schema_table: {
value: cdktf.booleanToHclTerraform(struct.partitionIncludeSchemaTable),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
sasl_mechanism: {
value: cdktf.stringToHclTerraform(struct.saslMechanism),
isBlock: false,
type: "simple",
storageClassType: "string",
},
sasl_password: {
value: cdktf.stringToHclTerraform(struct.saslPassword),
isBlock: false,
type: "simple",
storageClassType: "string",
},
sasl_username: {
value: cdktf.stringToHclTerraform(struct.saslUsername),
isBlock: false,
type: "simple",
storageClassType: "string",
},
security_protocol: {
value: cdktf.stringToHclTerraform(struct.securityProtocol),
isBlock: false,
type: "simple",
storageClassType: "string",
},
ssl_ca_certificate_arn: {
value: cdktf.stringToHclTerraform(struct.sslCaCertificateArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
ssl_client_certificate_arn: {
value: cdktf.stringToHclTerraform(struct.sslClientCertificateArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
ssl_client_key_arn: {
value: cdktf.stringToHclTerraform(struct.sslClientKeyArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
ssl_client_key_password: {
value: cdktf.stringToHclTerraform(struct.sslClientKeyPassword),
isBlock: false,
type: "simple",
storageClassType: "string",
},
topic: {
value: cdktf.stringToHclTerraform(struct.topic),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DmsEndpointKafkaSettingsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._broker !== undefined) {
hasAnyValues = true;
internalValueResult.broker = this._broker;
}
if (this._includeControlDetails !== undefined) {
hasAnyValues = true;
internalValueResult.includeControlDetails = this._includeControlDetails;
}
if (this._includeNullAndEmpty !== undefined) {
hasAnyValues = true;
internalValueResult.includeNullAndEmpty = this._includeNullAndEmpty;
}
if (this._includePartitionValue !== undefined) {
hasAnyValues = true;
internalValueResult.includePartitionValue = this._includePartitionValue;
}
if (this._includeTableAlterOperations !== undefined) {
hasAnyValues = true;
internalValueResult.includeTableAlterOperations = this._includeTableAlterOperations;
}
if (this._includeTransactionDetails !== undefined) {
hasAnyValues = true;
internalValueResult.includeTransactionDetails = this._includeTransactionDetails;
}
if (this._messageFormat !== undefined) {
hasAnyValues = true;
internalValueResult.messageFormat = this._messageFormat;
}
if (this._messageMaxBytes !== undefined) {
hasAnyValues = true;
internalValueResult.messageMaxBytes = this._messageMaxBytes;
}
if (this._noHexPrefix !== undefined) {
hasAnyValues = true;
internalValueResult.noHexPrefix = this._noHexPrefix;
}
if (this._partitionIncludeSchemaTable !== undefined) {
hasAnyValues = true;
internalValueResult.partitionIncludeSchemaTable = this._partitionIncludeSchemaTable;
}
if (this._saslMechanism !== undefined) {
hasAnyValues = true;
internalValueResult.saslMechanism = this._saslMechanism;
}
if (this._saslPassword !== undefined) {
hasAnyValues = true;
internalValueResult.saslPassword = this._saslPassword;
}
if (this._saslUsername !== undefined) {
hasAnyValues = true;
internalValueResult.saslUsername = this._saslUsername;
}
if (this._securityProtocol !== undefined) {
hasAnyValues = true;
internalValueResult.securityProtocol = this._securityProtocol;
}
if (this._sslCaCertificateArn !== undefined) {
hasAnyValues = true;
internalValueResult.sslCaCertificateArn = this._sslCaCertificateArn;
}
if (this._sslClientCertificateArn !== undefined) {
hasAnyValues = true;
internalValueResult.sslClientCertificateArn = this._sslClientCertificateArn;
}
if (this._sslClientKeyArn !== undefined) {
hasAnyValues = true;
internalValueResult.sslClientKeyArn = this._sslClientKeyArn;
}
if (this._sslClientKeyPassword !== undefined) {
hasAnyValues = true;
internalValueResult.sslClientKeyPassword = this._sslClientKeyPassword;
}
if (this._topic !== undefined) {
hasAnyValues = true;
internalValueResult.topic = this._topic;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._broker = undefined;
this._includeControlDetails = undefined;
this._includeNullAndEmpty = undefined;
this._includePartitionValue = undefined;
this._includeTableAlterOperations = undefined;
this._includeTransactionDetails = undefined;
this._messageFormat = undefined;
this._messageMaxBytes = undefined;
this._noHexPrefix = undefined;
this._partitionIncludeSchemaTable = undefined;
this._saslMechanism = undefined;
this._saslPassword = undefined;
this._saslUsername = undefined;
this._securityProtocol = undefined;
this._sslCaCertificateArn = undefined;
this._sslClientCertificateArn = undefined;
this._sslClientKeyArn = undefined;
this._sslClientKeyPassword = undefined;
this._topic = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._broker = value.broker;
this._includeControlDetails = value.includeControlDetails;
this._includeNullAndEmpty = value.includeNullAndEmpty;
this._includePartitionValue = value.includePartitionValue;
this._includeTableAlterOperations = value.includeTableAlterOperations;
this._includeTransactionDetails = value.includeTransactionDetails;
this._messageFormat = value.messageFormat;
this._messageMaxBytes = value.messageMaxBytes;
this._noHexPrefix = value.noHexPrefix;
this._partitionIncludeSchemaTable = value.partitionIncludeSchemaTable;
this._saslMechanism = value.saslMechanism;
this._saslPassword = value.saslPassword;
this._saslUsername = value.saslUsername;
this._securityProtocol = value.securityProtocol;
this._sslCaCertificateArn = value.sslCaCertificateArn;
this._sslClientCertificateArn = value.sslClientCertificateArn;
this._sslClientKeyArn = value.sslClientKeyArn;
this._sslClientKeyPassword = value.sslClientKeyPassword;
this._topic = value.topic;
}
}
get broker() {
return this.getStringAttribute('broker');
}
set broker(value) {
this._broker = value;
}
// Temporarily expose input value. Use with caution.
get brokerInput() {
return this._broker;
}
get includeControlDetails() {
return this.getBooleanAttribute('include_control_details');
}
set includeControlDetails(value) {
this._includeControlDetails = value;
}
resetIncludeControlDetails() {
this._includeControlDetails = undefined;
}
// Temporarily expose input value. Use with caution.
get includeControlDetailsInput() {
return this._includeControlDetails;
}
get includeNullAndEmpty() {
return this.getBooleanAttribute('include_null_and_empty');
}
set includeNullAndEmpty(value) {
this._includeNullAndEmpty = value;
}
resetIncludeNullAndEmpty() {
this._includeNullAndEmpty = undefined;
}
// Temporarily expose input value. Use with caution.
get includeNullAndEmptyInput() {
return this._includeNullAndEmpty;
}
get includePartitionValue() {
return this.getBooleanAttribute('include_partition_value');
}
set includePartitionValue(value) {
this._includePartitionValue = value;
}
resetIncludePartitionValue() {
this._includePartitionValue = undefined;
}
// Temporarily expose input value. Use with caution.
get includePartitionValueInput() {
return this._includePartitionValue;
}
get includeTableAlterOperations() {
return this.getBooleanAttribute('include_table_alter_operations');
}
set includeTableAlterOperations(value) {
this._includeTableAlterOperations = value;
}
resetIncludeTableAlterOperations() {
this._includeTableAlterOperations = undefined;
}
// Temporarily expose input value. Use with caution.
get includeTableAlterOperationsInput() {
return this._includeTableAlterOperations;
}
get includeTransactionDetails() {
return this.getBooleanAttribute('include_transaction_details');
}
set includeTransactionDetails(value) {
this._includeTransactionDetails = value;
}
resetIncludeTransactionDetails() {
this._includeTransactionDetails = undefined;
}
// Temporarily expose input value. Use with caution.
get includeTransactionDetailsInput() {
return this._includeTransactionDetails;
}
get messageFormat() {
return this.getStringAttribute('message_format');
}
set messageFormat(value) {
this._messageFormat = value;
}
resetMessageFormat() {
this._messageFormat = undefined;
}
// Temporarily expose input value. Use with caution.
get messageFormatInput() {
return this._messageFormat;
}
get messageMaxBytes() {
return this.getNumberAttribute('message_max_bytes');
}
set messageMaxBytes(value) {
this._messageMaxBytes = value;
}
resetMessageMaxBytes() {
this._messageMaxBytes = undefined;
}
// Temporarily expose input value. Use with caution.
get messageMaxBytesInput() {
return this._messageMaxBytes;
}
get noHexPrefix() {
return this.getBooleanAttribute('no_hex_prefix');
}
set noHexPrefix(value) {
this._noHexPrefix = value;
}
resetNoHexPrefix() {
this._noHexPrefix = undefined;
}
// Temporarily expose input value. Use with caution.
get noHexPrefixInput() {
return this._noHexPrefix;
}
get partitionIncludeSchemaTable() {
return this.getBooleanAttribute('partition_include_schema_table');
}
set partitionIncludeSchemaTable(value) {
this._partitionIncludeSchemaTable = value;
}
resetPartitionIncludeSchemaTable() {
this._partitionIncludeSchemaTable = undefined;
}
// Temporarily expose input value. Use with caution.
get partitionIncludeSchemaTableInput() {
return this._partitionIncludeSchemaTable;
}
get saslMechanism() {
return this.getStringAttribute('sasl_mechanism');
}
set saslMechanism(value) {
this._saslMechanism = value;
}
resetSaslMechanism() {
this._saslMechanism = undefined;
}
// Temporarily expose input value. Use with caution.
get saslMechanismInput() {
return this._saslMechanism;
}
get saslPassword() {
return this.getStringAttribute('sasl_password');
}
set saslPassword(value) {
this._saslPassword = value;
}
resetSaslPassword() {
this._saslPassword = undefined;
}
// Temporarily expose input value. Use with caution.
get saslPasswordInput() {
return this._saslPassword;
}
get saslUsername() {
return this.getStringAttribute('sasl_username');
}
set saslUsername(value) {
this._saslUsername = value;
}
resetSaslUsername() {
this._saslUsername = undefined;
}
// Temporarily expose input value. Use with caution.
get saslUsernameInput() {
return this._saslUsername;
}
get securityProtocol() {
return this.getStringAttribute('security_protocol');
}
set securityProtocol(value) {
this._securityProtocol = value;
}
resetSecurityProtocol() {
this._securityProtocol = undefined;
}
// Temporarily expose input value. Use with caution.
get securityProtocolInput() {
return this._securityProtocol;
}
get sslCaCertificateArn() {
return this.getStringAttribute('ssl_ca_certificate_arn');
}
set sslCaCertificateArn(value) {
this._sslCaCertificateArn = value;
}
resetSslCaCertificateArn() {
this._sslCaCertificateArn = undefined;
}
// Temporarily expose input value. Use with caution.
get sslCaCertificateArnInput() {
return this._sslCaCertificateArn;
}
get sslClientCertificateArn() {
return this.getStringAttribute('ssl_client_certificate_arn');
}
set sslClientCertificateArn(value) {
this._sslClientCertificateArn = value;
}
resetSslClientCertificateArn() {
this._sslClientCertificateArn = undefined;
}
// Temporarily expose input value. Use with caution.
get sslClientCertificateArnInput() {
return this._sslClientCertificateArn;
}
get sslClientKeyArn() {
return this.getStringAttribute('ssl_client_key_arn');
}
set sslClientKeyArn(value) {
this._sslClientKeyArn = value;
}
resetSslClientKeyArn() {
this._sslClientKeyArn = undefined;
}
// Temporarily expose input value. Use with caution.
get sslClientKeyArnInput() {
return this._sslClientKeyArn;
}
get sslClientKeyPassword() {
return this.getStringAttribute('ssl_client_key_password');
}
set sslClientKeyPassword(value) {
this._sslClientKeyPassword = value;
}
resetSslClientKeyPassword() {
this._sslClientKeyPassword = undefined;
}
// Temporarily expose input value. Use with caution.
get sslClientKeyPasswordInput() {
return this._sslClientKeyPassword;
}
get topic() {
return this.getStringAttribute('topic');
}
set topic(value) {
this._topic = value;
}
resetTopic() {
this._topic = undefined;
}
// Temporarily expose input value. Use with caution.
get topicInput() {
return this._topic;
}
}
exports.DmsEndpointKafkaSettingsOutputReference = DmsEndpointKafkaSettingsOutputReference;
_b = JSII_RTTI_SYMBOL_1;
DmsEndpointKafkaSettingsOutputReference[_b] = { fqn: "@cdktf/provider-aws.dmsEndpoint.DmsEndpointKafkaSettingsOutputReference", version: "21.22.1" };
function dmsEndpointKinesisSettingsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
include_control_details: cdktf.booleanToTerraform(struct.includeControlDetails),
include_null_and_empty: cdktf.booleanToTerraform(struct.includeNullAndEmpty),
include_partition_value: cdktf.booleanToTerraform(struct.includePartitionValue),
include_table_alter_operations: cdktf.booleanToTerraform(struct.includeTableAlterOperations),
include_transaction_details: cdktf.booleanToTerraform(struct.includeTransactionDetails),
message_format: cdktf.stringToTerraform(struct.messageFormat),
partition_include_schema_table: cdktf.booleanToTerraform(struct.partitionIncludeSchemaTable),
service_access_role_arn: cdktf.stringToTerraform(struct.serviceAccessRoleArn),
stream_arn: cdktf.stringToTerraform(struct.streamArn),
use_large_integer_value: cdktf.booleanToTerraform(struct.useLargeIntegerValue),
};
}
function dmsEndpointKinesisSettingsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
include_control_details: {
value: cdktf.booleanToHclTerraform(struct.includeControlDetails),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
include_null_and_empty: {
value: cdktf.booleanToHclTerraform(struct.includeNullAndEmpty),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
include_partition_value: {
value: cdktf.booleanToHclTerraform(struct.includePartitionValue),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
include_table_alter_operations: {
value: cdktf.booleanToHclTerraform(struct.includeTableAlterOperations),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
include_transaction_details: {
value: cdktf.booleanToHclTerraform(struct.includeTransactionDetails),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
message_format: {
value: cdktf.stringToHclTerraform(struct.messageFormat),
isBlock: false,
type: "simple",
storageClassType: "string",
},
partition_include_schema_table: {
value: cdktf.booleanToHclTerraform(struct.partitionIncludeSchemaTable),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
service_access_role_arn: {
value: cdktf.stringToHclTerraform(struct.serviceAccessRoleArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
stream_arn: {
value: cdktf.stringToHclTerraform(struct.streamArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
use_large_integer_value: {
value: cdktf.booleanToHclTerraform(struct.useLargeIntegerValue),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DmsEndpointKinesisSettingsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._includeControlDetails !== undefined) {
hasAnyValues = true;
internalValueResult.includeControlDetails = this._includeControlDetails;
}
if (this._includeNullAndEmpty !== undefined) {
hasAnyValues = true;
internalValueResult.includeNullAndEmpty = this._includeNullAndEmpty;
}
if (this._includePartitionValue !== undefined) {
hasAnyValues = true;
internalValueResult.includePartitionValue = this._includePartitionValue;
}
if (this._includeTableAlterOperations !== undefined) {
hasAnyValues = true;
internalValueResult.includeTableAlterOperations = this._includeTableAlterOperations;
}
if (this._includeTransactionDetails !== undefined) {
hasAnyValues = true;
internalValueResult.includeTransactionDetails = this._includeTransactionDetails;
}
if (this._messageFormat !== undefined) {
hasAnyValues = true;
internalValueResult.messageFormat = this._messageFormat;
}
if (this._partitionIncludeSchemaTable !== undefined) {
hasAnyValues = true;
internalValueResult.partitionIncludeSchemaTable = this._partitionIncludeSchemaTable;
}
if (this._serviceAccessRoleArn !== undefined) {
hasAnyValues = true;
internalValueResult.serviceAccessRoleArn = this._serviceAccessRoleArn;
}
if (this._streamArn !== undefined) {
hasAnyValues = true;
internalValueResult.streamArn = this._streamArn;
}
if (this._useLargeIntegerValue !== undefined) {
hasAnyValues = true;
internalValueResult.useLargeIntegerValue = this._useLargeIntegerValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._includeControlDetails = undefined;
this._includeNullAndEmpty = undefined;
this._includePartitionValue = undefined;
this._includeTableAlterOperations = undefined;
this._includeTransactionDetails = undefined;
this._messageFormat = undefined;
this._partitionIncludeSchemaTable = undefined;
this._serviceAccessRoleArn = undefined;
this._streamArn = undefined;
this._useLargeIntegerValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._includeControlDetails = value.includeControlDetails;
this._includeNullAndEmpty = value.includeNullAndEmpty;
this._includePartitionValue = value.includePartitionValue;
this._includeTableAlterOperations = value.includeTableAlterOperations;
this._includeTransactionDetails = value.includeTransactionDetails;
this._messageFormat = value.messageFormat;
this._partitionIncludeSchemaTable = value.partitionIncludeSchemaTable;
this._serviceAccessRoleArn = value.serviceAccessRoleArn;
this._streamArn = value.streamArn;
this._useLargeIntegerValue = value.useLargeIntegerValue;
}
}
get includeControlDetails() {
return this.getBooleanAttribute('include_control_details');
}
set includeControlDetails(value) {
this._includeControlDetails = value;
}
resetIncludeControlDetails() {
this._includeControlDetails = undefined;
}
// Temporarily expose input value. Use with caution.
get includeControlDetailsInput() {
return this._includeControlDetails;
}
get includeNullAndEmpty() {
return this.getBooleanAttribute('include_null_and_empty');
}
set includeNullAndEmpty(value) {
this._includeNullAndEmpty = value;
}
resetIncludeNullAndEmpty() {
this._includeNullAndEmpty = undefined;
}
// Temporarily expose input value. Use with caution.
get includeNullAndEmptyInput() {
return this._includeNullAndEmpty;
}
get includePartitionValue() {
return this.getBooleanAttribute('include_partition_value');
}
set includePartitionValue(value) {
this._includePartitionValue = value;
}
resetIncludePartitionValue() {
this._includePartitionValue = undefined;
}
// Temporarily expose input value. Use with caution.
get includePartitionValueInput() {
return this._includePartitionValue;
}
get includeTableAlterOperations() {
return this.getBooleanAttribute('include_table_alter_operations');
}
set includeTableAlterOperations(value) {
this._includeTableAlterOperations = value;
}
resetIncludeTableAlterOperations() {
this._includeTableAlterOperations = undefined;
}
// Temporarily expose input value. Use with caution.
get includeTableAlterOperationsInput() {
return this._includeTableAlterOperations;
}
get includeTransactionDetails() {
return this.getBooleanAttribute('include_transaction_details');
}
set includeTransactionDetails(value) {
this._includeTransactionDetails = value;
}
resetIncludeTransactionDetails() {
this._includeTransactionDetails = undefined;
}
// Temporarily expose input value. Use with caution.
get includeTransactionDetailsInput() {
return this._includeTransactionDetails;
}
get messageFormat() {
return this.getStringAttribute('message_format');
}
set messageFormat(value) {
this._messageFormat = value;
}
resetMessageFormat() {
this._messageFormat = undefined;
}
// Temporarily expose input value. Use with caution.
get messageFormatInput() {
return this._messageFormat;
}
get partitionIncludeSchemaTable() {
return this.getBooleanAttribute('partition_include_schema_table');
}
set partitionIncludeSchemaTable(value) {
this._partitionIncludeSchemaTable = value;
}
resetPartitionIncludeSchemaTable() {
this._partitionIncludeSchemaTable = undefined;
}
// Temporarily expose input value. Use with caution.
get partitionIncludeSchemaTableInput() {
return this._partitionIncludeSchemaTable;
}
get serviceAccessRoleArn() {
return this.getStringAttribute('service_access_role_arn');
}
set serviceAccessRoleArn(value) {
this._serviceAccessRoleArn = value;
}
resetServiceAccessRoleArn() {
this._serviceAccessRoleArn = undefined;
}
// Temporarily expose input value. Use with caution.
get serviceAccessRoleArnInput() {
return this._serviceAccessRoleArn;
}
get streamArn() {
return this.getStringAttribute('stream_arn');
}
set streamArn(value) {
this._streamArn = value;
}
resetStreamArn() {
this._streamArn = undefined;
}
// Temporarily expose input value. Use with caution.
get streamArnInput() {
return this._streamArn;
}
get useLargeIntegerValue() {
return this.getBooleanAttribute('use_large_integer_value');
}
set useLargeIntegerValue(value) {
this._useLargeIntegerValue = value;
}
resetUseLargeIntegerValue() {
this._useLargeIntegerValue = undefined;
}
// Temporarily expose input value. Use with caution.
get useLargeIntegerValueInput() {
return this._useLargeIntegerValue;
}
}
exports.DmsEndpointKinesisSettingsOutputReference = DmsEndpointKinesisSettingsOutputReference;
_c = JSII_RTTI_SYMBOL_1;
DmsEndpointKinesisSettingsOutputReference[_c] = { fqn: "@cdktf/provider-aws.dmsEndpoint.DmsEndpointKinesisSettingsOutputReference", version: "21.22.1" };
function dmsEndpointMongodbSettingsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
auth_mechanism: cdktf.stringToTerraform(struct.authMechanism),
auth_source: cdktf.stringToTerraform(struct.authSource),
auth_type: cdktf.stringToTerraform(struct.authType),
docs_to_investigate: cdktf.stringToTerraform(struct.docsToInvestigate),
extract_doc_id: cdktf.stringToTerraform(struct.extractDocId),
nesting_level: cdktf.stringToTerraform(struct.nestingLevel),
};
}
function dmsEndpointMongodbSettingsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
auth_mechanism: {
value: cdktf.stringToHclTerraform(struct.authMechanism),
isBlock: false,
type: "simple",
storageClassType: "string",
},
auth_source: {
value: cdktf.stringToHclTerraform(struct.authSource),
isBlock: false,
type: "simple",
storageClassType: "string",
},
auth_type: {
value: cdktf.stringToHclTerraform(struct.authType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
docs_to_investigate: {
value: cdktf.stringToHclTerraform(struct.docsToInvestigate),
isBlock: false,
type: "simple",
storageClassType: "string",
},
extract_doc_id: {
value: cdktf.stringToHclTerraform(struct.extractDocId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
nesting_level: {
value: cdktf.stringToHclTerraform(struct.nestingLevel),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DmsEndpointMongodbSettingsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._authMechanism !== undefined) {
hasAnyValues = true;
internalValueResult.authMechanism = this._authMechanism;
}
if (this._authSource !== undefined) {
hasAnyValues = true;
internalValueResult.authSource = this._authSource;
}
if (this._authType !== undefined) {
hasAnyValues = true;
internalValueResult.authType = this._authType;
}
if (this._docsToInvestigate !== undefined) {
hasAnyValues = true;
internalValueResult.docsToInvestigate = this._docsToInvestigate;
}
if (this._extractDocId !== undefined) {
hasAnyValues = true;
internalValueResult.extractDocId = this._extractDocId;
}
if (this._nestingLevel !== undefined) {
hasAnyValues = true;
internalValueResult.nestingLevel = this._nestingLevel;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._authMechanism = undefined;
this._authSource = undefined;
this._authType = undefined;
this._docsToInvestigate = undefined;
this._extractDocId = undefined;
this._nestingLevel = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._authMechanism = value.authMechanism;
this._authSource = value.authSource;
this._authType = value.authType;
this._docsToInvestigate = value.docsToInvestigate;
this._extractDocId = value.extractDocId;
this._nestingLevel = value.nestingLevel;
}
}
get authMechanism() {
return this.getStringAttribute('auth_mechanism');
}
set authMechanism(value) {
this._authMechanism = value;
}
resetAuthMechanism() {
this._authMechanism = undefined;
}
// Temporarily expose input value. Use with caution.
get authMechanismInput() {
return this._authMechanism;
}
get authSource() {
return this.getStringAttribute('auth_source');
}
set authSource(value) {
this._authSource = value;
}
resetAuthSource() {
this._authSource = undefined;
}
// Temporarily expose input value. Use with caution.
get authSourceInput() {
return this._authSource;
}
get authType() {
return this.getStringAttribute('auth_type');
}
set authType(value) {
this._authType = value;
}
resetAuthType() {
this._authType = undefined;
}
// Temporarily expose input value. Use with caution.
get authTypeInput() {
return this._authType;
}
get docsToInvestigate() {
return this.getStringAttribute('docs_to_investigate');
}
set docsToInvestigate(value) {
this._docsToInvestigate = value;
}
resetDocsToInvestigate() {
this._docsToInvestigate = undefined;
}
// Temporarily expose input value. Use with caution.
get docsToInvestigateInput() {
return this._docsToInvestigate;
}
get extractDocId() {
return this.getStringAttribute('extract_doc_id');
}
set extractDocId(value) {
this._extractDocId = value;
}
resetExtractDocId() {
this._extractDocId = undefined;
}
// Temporarily expose input value. Use with caution.
get extractDocIdInput() {
return this._extractDocId;
}
get nestingLevel() {
return this.getStringAttribute('nesting_level');
}
set nestingLevel(value) {
this._nestingLevel = value;
}
resetNestingLevel() {
this._nestingLevel = undefined;
}
// Temporarily expose input value. Use with caution.
get nestingLevelInput() {
return this._nestingLevel;
}
}
exports.DmsEndpointMongodbSettingsOutputReference = DmsEndpointMongodbSettingsOutputReference;
_d = JSII_RTTI_SYMBOL_1;
DmsEndpointMongodbSettingsOutputReference[_d] = { fqn: "@cdktf/provider-aws.dmsEndpoint.DmsEndpointMongodbSettingsOutputReference", version: "21.22.1" };
function dmsEndpointMysqlSettingsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
after_connect_script: cdktf.stringToTerraform(struct.afterConnectScript),