UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

1,000 lines 432 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1; Object.defineProperty(exports, "__esModule", { value: true }); exports.mskClusterLoggingInfoBrokerLogsFirehoseToHclTerraform = exports.mskClusterLoggingInfoBrokerLogsFirehoseToTerraform = exports.MskClusterLoggingInfoBrokerLogsCloudwatchLogsOutputReference = exports.mskClusterLoggingInfoBrokerLogsCloudwatchLogsToHclTerraform = exports.mskClusterLoggingInfoBrokerLogsCloudwatchLogsToTerraform = exports.MskClusterEncryptionInfoOutputReference = exports.mskClusterEncryptionInfoToHclTerraform = exports.mskClusterEncryptionInfoToTerraform = exports.MskClusterEncryptionInfoEncryptionInTransitOutputReference = exports.mskClusterEncryptionInfoEncryptionInTransitToHclTerraform = exports.mskClusterEncryptionInfoEncryptionInTransitToTerraform = exports.MskClusterConfigurationInfoOutputReference = exports.mskClusterConfigurationInfoToHclTerraform = exports.mskClusterConfigurationInfoToTerraform = exports.MskClusterClientAuthenticationOutputReference = exports.mskClusterClientAuthenticationToHclTerraform = exports.mskClusterClientAuthenticationToTerraform = exports.MskClusterClientAuthenticationTlsOutputReference = exports.mskClusterClientAuthenticationTlsToHclTerraform = exports.mskClusterClientAuthenticationTlsToTerraform = exports.MskClusterClientAuthenticationSaslOutputReference = exports.mskClusterClientAuthenticationSaslToHclTerraform = exports.mskClusterClientAuthenticationSaslToTerraform = exports.MskClusterBrokerNodeGroupInfoOutputReference = exports.mskClusterBrokerNodeGroupInfoToHclTerraform = exports.mskClusterBrokerNodeGroupInfoToTerraform = exports.MskClusterBrokerNodeGroupInfoStorageInfoOutputReference = exports.mskClusterBrokerNodeGroupInfoStorageInfoToHclTerraform = exports.mskClusterBrokerNodeGroupInfoStorageInfoToTerraform = exports.MskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoOutputReference = exports.mskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoToHclTerraform = exports.mskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoToTerraform = exports.MskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughputOutputReference = exports.mskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughputToHclTerraform = exports.mskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughputToTerraform = exports.MskClusterBrokerNodeGroupInfoConnectivityInfoOutputReference = exports.mskClusterBrokerNodeGroupInfoConnectivityInfoToHclTerraform = exports.mskClusterBrokerNodeGroupInfoConnectivityInfoToTerraform = exports.MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityOutputReference = exports.mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityToHclTerraform = exports.mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityToTerraform = exports.MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationOutputReference = exports.mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationToHclTerraform = exports.mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationToTerraform = exports.MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationSaslOutputReference = exports.mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationSaslToHclTerraform = exports.mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationSaslToTerraform = exports.MskClusterBrokerNodeGroupInfoConnectivityInfoPublicAccessOutputReference = exports.mskClusterBrokerNodeGroupInfoConnectivityInfoPublicAccessToHclTerraform = exports.mskClusterBrokerNodeGroupInfoConnectivityInfoPublicAccessToTerraform = void 0; exports.MskCluster = exports.MskClusterTimeoutsOutputReference = exports.mskClusterTimeoutsToHclTerraform = exports.mskClusterTimeoutsToTerraform = exports.MskClusterOpenMonitoringOutputReference = exports.mskClusterOpenMonitoringToHclTerraform = exports.mskClusterOpenMonitoringToTerraform = exports.MskClusterOpenMonitoringPrometheusOutputReference = exports.mskClusterOpenMonitoringPrometheusToHclTerraform = exports.mskClusterOpenMonitoringPrometheusToTerraform = exports.MskClusterOpenMonitoringPrometheusNodeExporterOutputReference = exports.mskClusterOpenMonitoringPrometheusNodeExporterToHclTerraform = exports.mskClusterOpenMonitoringPrometheusNodeExporterToTerraform = exports.MskClusterOpenMonitoringPrometheusJmxExporterOutputReference = exports.mskClusterOpenMonitoringPrometheusJmxExporterToHclTerraform = exports.mskClusterOpenMonitoringPrometheusJmxExporterToTerraform = exports.MskClusterLoggingInfoOutputReference = exports.mskClusterLoggingInfoToHclTerraform = exports.mskClusterLoggingInfoToTerraform = exports.MskClusterLoggingInfoBrokerLogsOutputReference = exports.mskClusterLoggingInfoBrokerLogsToHclTerraform = exports.mskClusterLoggingInfoBrokerLogsToTerraform = exports.MskClusterLoggingInfoBrokerLogsS3OutputReference = exports.mskClusterLoggingInfoBrokerLogsS3ToHclTerraform = exports.mskClusterLoggingInfoBrokerLogsS3ToTerraform = exports.MskClusterLoggingInfoBrokerLogsFirehoseOutputReference = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function mskClusterBrokerNodeGroupInfoConnectivityInfoPublicAccessToTerraform(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 { type: cdktf.stringToTerraform(struct.type), }; } exports.mskClusterBrokerNodeGroupInfoConnectivityInfoPublicAccessToTerraform = mskClusterBrokerNodeGroupInfoConnectivityInfoPublicAccessToTerraform; function mskClusterBrokerNodeGroupInfoConnectivityInfoPublicAccessToHclTerraform(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 = { type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.mskClusterBrokerNodeGroupInfoConnectivityInfoPublicAccessToHclTerraform = mskClusterBrokerNodeGroupInfoConnectivityInfoPublicAccessToHclTerraform; class MskClusterBrokerNodeGroupInfoConnectivityInfoPublicAccessOutputReference 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._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._type = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._type = value.type; } } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } resetType() { this._type = undefined; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.MskClusterBrokerNodeGroupInfoConnectivityInfoPublicAccessOutputReference = MskClusterBrokerNodeGroupInfoConnectivityInfoPublicAccessOutputReference; _a = JSII_RTTI_SYMBOL_1; MskClusterBrokerNodeGroupInfoConnectivityInfoPublicAccessOutputReference[_a] = { fqn: "@cdktf/provider-aws.mskCluster.MskClusterBrokerNodeGroupInfoConnectivityInfoPublicAccessOutputReference", version: "19.50.0" }; function mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationSaslToTerraform(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 { iam: cdktf.booleanToTerraform(struct.iam), scram: cdktf.booleanToTerraform(struct.scram), }; } exports.mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationSaslToTerraform = mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationSaslToTerraform; function mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationSaslToHclTerraform(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 = { iam: { value: cdktf.booleanToHclTerraform(struct.iam), isBlock: false, type: "simple", storageClassType: "boolean", }, scram: { value: cdktf.booleanToHclTerraform(struct.scram), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationSaslToHclTerraform = mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationSaslToHclTerraform; class MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationSaslOutputReference 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._iam !== undefined) { hasAnyValues = true; internalValueResult.iam = this._iam; } if (this._scram !== undefined) { hasAnyValues = true; internalValueResult.scram = this._scram; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._iam = undefined; this._scram = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._iam = value.iam; this._scram = value.scram; } } get iam() { return this.getBooleanAttribute('iam'); } set iam(value) { this._iam = value; } resetIam() { this._iam = undefined; } // Temporarily expose input value. Use with caution. get iamInput() { return this._iam; } get scram() { return this.getBooleanAttribute('scram'); } set scram(value) { this._scram = value; } resetScram() { this._scram = undefined; } // Temporarily expose input value. Use with caution. get scramInput() { return this._scram; } } exports.MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationSaslOutputReference = MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationSaslOutputReference; _b = JSII_RTTI_SYMBOL_1; MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationSaslOutputReference[_b] = { fqn: "@cdktf/provider-aws.mskCluster.MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationSaslOutputReference", version: "19.50.0" }; function mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationToTerraform(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 { tls: cdktf.booleanToTerraform(struct.tls), sasl: mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationSaslToTerraform(struct.sasl), }; } exports.mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationToTerraform = mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationToTerraform; function mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationToHclTerraform(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 = { tls: { value: cdktf.booleanToHclTerraform(struct.tls), isBlock: false, type: "simple", storageClassType: "boolean", }, sasl: { value: mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationSaslToHclTerraform(struct.sasl), isBlock: true, type: "list", storageClassType: "MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationSaslList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationToHclTerraform = mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationToHclTerraform; class MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationOutputReference 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; // sasl - computed: false, optional: true, required: false this._sasl = new MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationSaslOutputReference(this, "sasl"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._tls !== undefined) { hasAnyValues = true; internalValueResult.tls = this._tls; } if (this._sasl?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.sasl = this._sasl?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._tls = undefined; this._sasl.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._tls = value.tls; this._sasl.internalValue = value.sasl; } } get tls() { return this.getBooleanAttribute('tls'); } set tls(value) { this._tls = value; } resetTls() { this._tls = undefined; } // Temporarily expose input value. Use with caution. get tlsInput() { return this._tls; } get sasl() { return this._sasl; } putSasl(value) { this._sasl.internalValue = value; } resetSasl() { this._sasl.internalValue = undefined; } // Temporarily expose input value. Use with caution. get saslInput() { return this._sasl.internalValue; } } exports.MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationOutputReference = MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationOutputReference; _c = JSII_RTTI_SYMBOL_1; MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationOutputReference[_c] = { fqn: "@cdktf/provider-aws.mskCluster.MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationOutputReference", version: "19.50.0" }; function mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityToTerraform(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 { client_authentication: mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationToTerraform(struct.clientAuthentication), }; } exports.mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityToTerraform = mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityToTerraform; function mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityToHclTerraform(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 = { client_authentication: { value: mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationToHclTerraform(struct.clientAuthentication), isBlock: true, type: "list", storageClassType: "MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityToHclTerraform = mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityToHclTerraform; class MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityOutputReference 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; // client_authentication - computed: false, optional: true, required: false this._clientAuthentication = new MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityClientAuthenticationOutputReference(this, "client_authentication"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._clientAuthentication?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.clientAuthentication = this._clientAuthentication?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._clientAuthentication.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._clientAuthentication.internalValue = value.clientAuthentication; } } get clientAuthentication() { return this._clientAuthentication; } putClientAuthentication(value) { this._clientAuthentication.internalValue = value; } resetClientAuthentication() { this._clientAuthentication.internalValue = undefined; } // Temporarily expose input value. Use with caution. get clientAuthenticationInput() { return this._clientAuthentication.internalValue; } } exports.MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityOutputReference = MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityOutputReference; _d = JSII_RTTI_SYMBOL_1; MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityOutputReference[_d] = { fqn: "@cdktf/provider-aws.mskCluster.MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityOutputReference", version: "19.50.0" }; function mskClusterBrokerNodeGroupInfoConnectivityInfoToTerraform(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 { public_access: mskClusterBrokerNodeGroupInfoConnectivityInfoPublicAccessToTerraform(struct.publicAccess), vpc_connectivity: mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityToTerraform(struct.vpcConnectivity), }; } exports.mskClusterBrokerNodeGroupInfoConnectivityInfoToTerraform = mskClusterBrokerNodeGroupInfoConnectivityInfoToTerraform; function mskClusterBrokerNodeGroupInfoConnectivityInfoToHclTerraform(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 = { public_access: { value: mskClusterBrokerNodeGroupInfoConnectivityInfoPublicAccessToHclTerraform(struct.publicAccess), isBlock: true, type: "list", storageClassType: "MskClusterBrokerNodeGroupInfoConnectivityInfoPublicAccessList", }, vpc_connectivity: { value: mskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityToHclTerraform(struct.vpcConnectivity), isBlock: true, type: "list", storageClassType: "MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.mskClusterBrokerNodeGroupInfoConnectivityInfoToHclTerraform = mskClusterBrokerNodeGroupInfoConnectivityInfoToHclTerraform; class MskClusterBrokerNodeGroupInfoConnectivityInfoOutputReference 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; // public_access - computed: false, optional: true, required: false this._publicAccess = new MskClusterBrokerNodeGroupInfoConnectivityInfoPublicAccessOutputReference(this, "public_access"); // vpc_connectivity - computed: false, optional: true, required: false this._vpcConnectivity = new MskClusterBrokerNodeGroupInfoConnectivityInfoVpcConnectivityOutputReference(this, "vpc_connectivity"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._publicAccess?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.publicAccess = this._publicAccess?.internalValue; } if (this._vpcConnectivity?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.vpcConnectivity = this._vpcConnectivity?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._publicAccess.internalValue = undefined; this._vpcConnectivity.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._publicAccess.internalValue = value.publicAccess; this._vpcConnectivity.internalValue = value.vpcConnectivity; } } get publicAccess() { return this._publicAccess; } putPublicAccess(value) { this._publicAccess.internalValue = value; } resetPublicAccess() { this._publicAccess.internalValue = undefined; } // Temporarily expose input value. Use with caution. get publicAccessInput() { return this._publicAccess.internalValue; } get vpcConnectivity() { return this._vpcConnectivity; } putVpcConnectivity(value) { this._vpcConnectivity.internalValue = value; } resetVpcConnectivity() { this._vpcConnectivity.internalValue = undefined; } // Temporarily expose input value. Use with caution. get vpcConnectivityInput() { return this._vpcConnectivity.internalValue; } } exports.MskClusterBrokerNodeGroupInfoConnectivityInfoOutputReference = MskClusterBrokerNodeGroupInfoConnectivityInfoOutputReference; _e = JSII_RTTI_SYMBOL_1; MskClusterBrokerNodeGroupInfoConnectivityInfoOutputReference[_e] = { fqn: "@cdktf/provider-aws.mskCluster.MskClusterBrokerNodeGroupInfoConnectivityInfoOutputReference", version: "19.50.0" }; function mskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughputToTerraform(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 { enabled: cdktf.booleanToTerraform(struct.enabled), volume_throughput: cdktf.numberToTerraform(struct.volumeThroughput), }; } exports.mskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughputToTerraform = mskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughputToTerraform; function mskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughputToHclTerraform(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 = { enabled: { value: cdktf.booleanToHclTerraform(struct.enabled), isBlock: false, type: "simple", storageClassType: "boolean", }, volume_throughput: { value: cdktf.numberToHclTerraform(struct.volumeThroughput), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.mskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughputToHclTerraform = mskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughputToHclTerraform; class MskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughputOutputReference 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._enabled !== undefined) { hasAnyValues = true; internalValueResult.enabled = this._enabled; } if (this._volumeThroughput !== undefined) { hasAnyValues = true; internalValueResult.volumeThroughput = this._volumeThroughput; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._enabled = undefined; this._volumeThroughput = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._enabled = value.enabled; this._volumeThroughput = value.volumeThroughput; } } get enabled() { return this.getBooleanAttribute('enabled'); } set enabled(value) { this._enabled = value; } resetEnabled() { this._enabled = undefined; } // Temporarily expose input value. Use with caution. get enabledInput() { return this._enabled; } get volumeThroughput() { return this.getNumberAttribute('volume_throughput'); } set volumeThroughput(value) { this._volumeThroughput = value; } resetVolumeThroughput() { this._volumeThroughput = undefined; } // Temporarily expose input value. Use with caution. get volumeThroughputInput() { return this._volumeThroughput; } } exports.MskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughputOutputReference = MskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughputOutputReference; _f = JSII_RTTI_SYMBOL_1; MskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughputOutputReference[_f] = { fqn: "@cdktf/provider-aws.mskCluster.MskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughputOutputReference", version: "19.50.0" }; function mskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoToTerraform(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 { volume_size: cdktf.numberToTerraform(struct.volumeSize), provisioned_throughput: mskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughputToTerraform(struct.provisionedThroughput), }; } exports.mskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoToTerraform = mskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoToTerraform; function mskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoToHclTerraform(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 = { volume_size: { value: cdktf.numberToHclTerraform(struct.volumeSize), isBlock: false, type: "simple", storageClassType: "number", }, provisioned_throughput: { value: mskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughputToHclTerraform(struct.provisionedThroughput), isBlock: true, type: "list", storageClassType: "MskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughputList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.mskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoToHclTerraform = mskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoToHclTerraform; class MskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoOutputReference 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; // provisioned_throughput - computed: false, optional: true, required: false this._provisionedThroughput = new MskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughputOutputReference(this, "provisioned_throughput"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._volumeSize !== undefined) { hasAnyValues = true; internalValueResult.volumeSize = this._volumeSize; } if (this._provisionedThroughput?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.provisionedThroughput = this._provisionedThroughput?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._volumeSize = undefined; this._provisionedThroughput.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._volumeSize = value.volumeSize; this._provisionedThroughput.internalValue = value.provisionedThroughput; } } get volumeSize() { return this.getNumberAttribute('volume_size'); } set volumeSize(value) { this._volumeSize = value; } resetVolumeSize() { this._volumeSize = undefined; } // Temporarily expose input value. Use with caution. get volumeSizeInput() { return this._volumeSize; } get provisionedThroughput() { return this._provisionedThroughput; } putProvisionedThroughput(value) { this._provisionedThroughput.internalValue = value; } resetProvisionedThroughput() { this._provisionedThroughput.internalValue = undefined; } // Temporarily expose input value. Use with caution. get provisionedThroughputInput() { return this._provisionedThroughput.internalValue; } } exports.MskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoOutputReference = MskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoOutputReference; _g = JSII_RTTI_SYMBOL_1; MskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoOutputReference[_g] = { fqn: "@cdktf/provider-aws.mskCluster.MskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoOutputReference", version: "19.50.0" }; function mskClusterBrokerNodeGroupInfoStorageInfoToTerraform(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 { ebs_storage_info: mskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoToTerraform(struct.ebsStorageInfo), }; } exports.mskClusterBrokerNodeGroupInfoStorageInfoToTerraform = mskClusterBrokerNodeGroupInfoStorageInfoToTerraform; function mskClusterBrokerNodeGroupInfoStorageInfoToHclTerraform(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 = { ebs_storage_info: { value: mskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoToHclTerraform(struct.ebsStorageInfo), isBlock: true, type: "list", storageClassType: "MskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.mskClusterBrokerNodeGroupInfoStorageInfoToHclTerraform = mskClusterBrokerNodeGroupInfoStorageInfoToHclTerraform; class MskClusterBrokerNodeGroupInfoStorageInfoOutputReference 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; // ebs_storage_info - computed: false, optional: true, required: false this._ebsStorageInfo = new MskClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoOutputReference(this, "ebs_storage_info"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._ebsStorageInfo?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.ebsStorageInfo = this._ebsStorageInfo?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._ebsStorageInfo.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._ebsStorageInfo.internalValue = value.ebsStorageInfo; } } get ebsStorageInfo() { return this._ebsStorageInfo; } putEbsStorageInfo(value) { this._ebsStorageInfo.internalValue = value; } resetEbsStorageInfo() { this._ebsStorageInfo.internalValue = undefined; } // Temporarily expose input value. Use with caution. get ebsStorageInfoInput() { return this._ebsStorageInfo.internalValue; } } exports.MskClusterBrokerNodeGroupInfoStorageInfoOutputReference = MskClusterBrokerNodeGroupInfoStorageInfoOutputReference; _h = JSII_RTTI_SYMBOL_1; MskClusterBrokerNodeGroupInfoStorageInfoOutputReference[_h] = { fqn: "@cdktf/provider-aws.mskCluster.MskClusterBrokerNodeGroupInfoStorageInfoOutputReference", version: "19.50.0" }; function mskClusterBrokerNodeGroupInfoToTerraform(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 { az_distribution: cdktf.stringToTerraform(struct.azDistribution), client_subnets: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.clientSubnets), instance_type: cdktf.stringToTerraform(struct.instanceType), security_groups: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.securityGroups), connectivity_info: mskClusterBrokerNodeGroupInfoConnectivityInfoToTerraform(struct.connectivityInfo), storage_info: mskClusterBrokerNodeGroupInfoStorageInfoToTerraform(struct.storageInfo), }; } exports.mskClusterBrokerNodeGroupInfoToTerraform = mskClusterBrokerNodeGroupInfoToTerraform; function mskClusterBrokerNodeGroupInfoToHclTerraform(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 = { az_distribution: { value: cdktf.stringToHclTerraform(struct.azDistribution), isBlock: false, type: "simple", storageClassType: "string", }, client_subnets: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.clientSubnets), isBlock: false, type: "set", storageClassType: "stringList", }, instance_type: { value: cdktf.stringToHclTerraform(struct.instanceType), isBlock: false, type: "simple", storageClassType: "string", }, security_groups: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.securityGroups), isBlock: false, type: "set", storageClassType: "stringList", }, connectivity_info: { value: mskClusterBrokerNodeGroupInfoConnectivityInfoToHclTerraform(struct.connectivityInfo), isBlock: true, type: "list", storageClassType: "MskClusterBrokerNodeGroupInfoConnectivityInfoList", }, storage_info: { value: mskClusterBrokerNodeGroupInfoStorageInfoToHclTerraform(struct.storageInfo), isBlock: true, type: "list", storageClassType: "MskClusterBrokerNodeGroupInfoStorageInfoList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.mskClusterBrokerNodeGroupInfoToHclTerraform = mskClusterBrokerNodeGroupInfoToHclTerraform; class MskClusterBrokerNodeGroupInfoOutputReference 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; // connectivity_info - computed: false, optional: true, required: false this._connectivityInfo = new MskClusterBrokerNodeGroupInfoConnectivityInfoOutputReference(this, "connectivity_info"); // storage_info - computed: false, optional: true, required: false this._storageInfo = new MskClusterBrokerNodeGroupInfoStorageInfoOutputReference(this, "storage_info"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._azDistribution !== undefined) { hasAnyValues = true; internalValueResult.azDistribution = this._azDistribution; } if (this._clientSubnets !== undefined) { hasAnyValues = true; internalValueResult.clientSubnets = this._clientSubnets; } if (this._instanceType !== undefined) { hasAnyValues = true; internalValueResult.instanceType = this._instanceType; } if (this._securityGroups !== undefined) { hasAnyValues = true; internalValueResult.securityGroups = this._securityGroups; } if (this._connectivityInfo?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.connectivityInfo = this._connectivityInfo?.internalValue; } if (this._storageInfo?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.storageInfo = this._storageInfo?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._azDistribution = undefined; this._clientSubnets = undefined; this._instanceType = undefined; this._securityGroups = undefined; this._connectivityInfo.internalValue = undefined; this._storageInfo.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._azDistribution = value.azDistribution; this._clientSubnets = value.clientSubnets; this._instanceType = value.instanceType; this._securityGroups = value.securityGroups; this._connectivityInfo.internalValue = value.connectivityInfo; this._storageInfo.internalValue = value.storageInfo; } } get azDistribution() { return this.getStringAttribute('az_distribution'); } set azDistribution(value) { this._azDistribution = value; } resetAzDistribution() { this._azDistribution = undefined; } // Temporarily expose input value. Use with caution. get azDistributionInput() { return this._azDistribution; } get clientSubnets() { return cdktf.Fn.tolist(this.getListAttribute('client_subnets')); } set clientSubnets(value) { this._clientSubnets = value; } // Temporarily expose input value. Use with caution. get clientSubnetsInput() { return this._clientSubnets; } get instanceType() { return this.getStringAttribute('instance_type'); } set instanceType(value) { this._instanceType = value; } // Temporarily expose input value. Use with caution. get instanceTypeInput() { return this._instanceType; } get securityGroups() { return cdktf.Fn.tolist(this.getListAttribute('security_groups')); } set securityGroups(value) { this._securityGroups = value; } // Temporarily expose input value. Use with caution. get securityGroupsInput() { return this._securityGroups; } get connectivityInfo() { return this._connectivityInfo; } putConnectivityInfo(value) { this._connectivityInfo.internalValue = value; } resetConnectivityInfo() { this._connectivityInfo.internalValue = undefined; } // Temporarily expose input value. Use with caution. get connectivityInfoInput() { return this._connectivityInfo.internalValue; } get storageInfo() { return this._storageInfo; } putStorageInfo(value) { this._storageInfo.internalValue = value; } resetStorageInfo() { this._storageInfo.internalValue = undefined; } // Temporarily expose input value. Use with caution. get storageInfoInput() { return this._storageInfo.internalValue; } } exports.MskClusterBrokerNodeGroupInfoOutputReference = MskClusterBrokerNodeGroupInfoOutputReference; _j = JSII_RTTI_SYMBOL_1; MskClusterBrokerNodeGroupInfoOutputReference[_j] = { fqn: "@cdktf/provider-aws.mskCluster.MskClusterBrokerNodeGroupInfoOutputReference", version: "19.50.0" }; function mskClusterClientAuthenticationSaslToTerraform(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 { iam: cdktf.booleanToTerraform(struct.iam), scram: cdktf.booleanToTerraform(struct.scram), }; } exports.mskClusterClientAuthenticationSaslToTerraform = mskClusterClientAuthenticationSaslToTerraform; function mskClusterClientAuthenticationSaslToHclTerraform(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 = { iam: { value: cdktf.booleanToHclTerraform(struct.iam), isBlock: false, type: "simple", storageClassType: "boolean", }, scram: { value: cdktf.booleanToHclTerraform(struct.scram), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.mskClusterClientAuthenticationSaslToHclTerraform = mskClusterClientAuthenticationSaslToHclTerraform; class MskClusterClientAuthenticationSaslOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attri