UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

1,059 lines 148 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; Object.defineProperty(exports, "__esModule", { value: true }); exports.OdbNetwork = exports.OdbNetworkTimeoutsOutputReference = exports.OdbNetworkOciDnsForwardingConfigsList = exports.OdbNetworkOciDnsForwardingConfigsOutputReference = exports.OdbNetworkManagedServicesList = exports.OdbNetworkManagedServicesOutputReference = exports.OdbNetworkManagedServicesZeroEtlAccessList = exports.OdbNetworkManagedServicesZeroEtlAccessOutputReference = exports.OdbNetworkManagedServicesServiceNetworkEndpointList = exports.OdbNetworkManagedServicesServiceNetworkEndpointOutputReference = exports.OdbNetworkManagedServicesS3AccessList = exports.OdbNetworkManagedServicesS3AccessOutputReference = exports.OdbNetworkManagedServicesManagedS3BackupAccessList = exports.OdbNetworkManagedServicesManagedS3BackupAccessOutputReference = void 0; exports.odbNetworkManagedServicesManagedS3BackupAccessToTerraform = odbNetworkManagedServicesManagedS3BackupAccessToTerraform; exports.odbNetworkManagedServicesManagedS3BackupAccessToHclTerraform = odbNetworkManagedServicesManagedS3BackupAccessToHclTerraform; exports.odbNetworkManagedServicesS3AccessToTerraform = odbNetworkManagedServicesS3AccessToTerraform; exports.odbNetworkManagedServicesS3AccessToHclTerraform = odbNetworkManagedServicesS3AccessToHclTerraform; exports.odbNetworkManagedServicesServiceNetworkEndpointToTerraform = odbNetworkManagedServicesServiceNetworkEndpointToTerraform; exports.odbNetworkManagedServicesServiceNetworkEndpointToHclTerraform = odbNetworkManagedServicesServiceNetworkEndpointToHclTerraform; exports.odbNetworkManagedServicesZeroEtlAccessToTerraform = odbNetworkManagedServicesZeroEtlAccessToTerraform; exports.odbNetworkManagedServicesZeroEtlAccessToHclTerraform = odbNetworkManagedServicesZeroEtlAccessToHclTerraform; exports.odbNetworkManagedServicesToTerraform = odbNetworkManagedServicesToTerraform; exports.odbNetworkManagedServicesToHclTerraform = odbNetworkManagedServicesToHclTerraform; exports.odbNetworkOciDnsForwardingConfigsToTerraform = odbNetworkOciDnsForwardingConfigsToTerraform; exports.odbNetworkOciDnsForwardingConfigsToHclTerraform = odbNetworkOciDnsForwardingConfigsToHclTerraform; exports.odbNetworkTimeoutsToTerraform = odbNetworkTimeoutsToTerraform; exports.odbNetworkTimeoutsToHclTerraform = odbNetworkTimeoutsToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function odbNetworkManagedServicesManagedS3BackupAccessToTerraform(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 {}; } function odbNetworkManagedServicesManagedS3BackupAccessToHclTerraform(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 = {}; return attrs; } class OdbNetworkManagedServicesManagedS3BackupAccessOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // ipv4_addresses - computed: true, optional: false, required: false get ipv4Addresses() { return cdktf.Fn.tolist(this.getListAttribute('ipv4_addresses')); } // status - computed: true, optional: false, required: false get status() { return this.getStringAttribute('status'); } } exports.OdbNetworkManagedServicesManagedS3BackupAccessOutputReference = OdbNetworkManagedServicesManagedS3BackupAccessOutputReference; _a = JSII_RTTI_SYMBOL_1; OdbNetworkManagedServicesManagedS3BackupAccessOutputReference[_a] = { fqn: "@cdktf/provider-aws.odbNetwork.OdbNetworkManagedServicesManagedS3BackupAccessOutputReference", version: "21.22.1" }; class OdbNetworkManagedServicesManagedS3BackupAccessList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new OdbNetworkManagedServicesManagedS3BackupAccessOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.OdbNetworkManagedServicesManagedS3BackupAccessList = OdbNetworkManagedServicesManagedS3BackupAccessList; _b = JSII_RTTI_SYMBOL_1; OdbNetworkManagedServicesManagedS3BackupAccessList[_b] = { fqn: "@cdktf/provider-aws.odbNetwork.OdbNetworkManagedServicesManagedS3BackupAccessList", version: "21.22.1" }; function odbNetworkManagedServicesS3AccessToTerraform(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 {}; } function odbNetworkManagedServicesS3AccessToHclTerraform(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 = {}; return attrs; } class OdbNetworkManagedServicesS3AccessOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // domain_name - computed: true, optional: false, required: false get domainName() { return this.getStringAttribute('domain_name'); } // ipv4_addresses - computed: true, optional: false, required: false get ipv4Addresses() { return cdktf.Fn.tolist(this.getListAttribute('ipv4_addresses')); } // s3_policy_document - computed: true, optional: false, required: false get s3PolicyDocument() { return this.getStringAttribute('s3_policy_document'); } // status - computed: true, optional: false, required: false get status() { return this.getStringAttribute('status'); } } exports.OdbNetworkManagedServicesS3AccessOutputReference = OdbNetworkManagedServicesS3AccessOutputReference; _c = JSII_RTTI_SYMBOL_1; OdbNetworkManagedServicesS3AccessOutputReference[_c] = { fqn: "@cdktf/provider-aws.odbNetwork.OdbNetworkManagedServicesS3AccessOutputReference", version: "21.22.1" }; class OdbNetworkManagedServicesS3AccessList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new OdbNetworkManagedServicesS3AccessOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.OdbNetworkManagedServicesS3AccessList = OdbNetworkManagedServicesS3AccessList; _d = JSII_RTTI_SYMBOL_1; OdbNetworkManagedServicesS3AccessList[_d] = { fqn: "@cdktf/provider-aws.odbNetwork.OdbNetworkManagedServicesS3AccessList", version: "21.22.1" }; function odbNetworkManagedServicesServiceNetworkEndpointToTerraform(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 {}; } function odbNetworkManagedServicesServiceNetworkEndpointToHclTerraform(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 = {}; return attrs; } class OdbNetworkManagedServicesServiceNetworkEndpointOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // vpc_endpoint_id - computed: true, optional: false, required: false get vpcEndpointId() { return this.getStringAttribute('vpc_endpoint_id'); } // vpc_endpoint_type - computed: true, optional: false, required: false get vpcEndpointType() { return this.getStringAttribute('vpc_endpoint_type'); } } exports.OdbNetworkManagedServicesServiceNetworkEndpointOutputReference = OdbNetworkManagedServicesServiceNetworkEndpointOutputReference; _e = JSII_RTTI_SYMBOL_1; OdbNetworkManagedServicesServiceNetworkEndpointOutputReference[_e] = { fqn: "@cdktf/provider-aws.odbNetwork.OdbNetworkManagedServicesServiceNetworkEndpointOutputReference", version: "21.22.1" }; class OdbNetworkManagedServicesServiceNetworkEndpointList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new OdbNetworkManagedServicesServiceNetworkEndpointOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.OdbNetworkManagedServicesServiceNetworkEndpointList = OdbNetworkManagedServicesServiceNetworkEndpointList; _f = JSII_RTTI_SYMBOL_1; OdbNetworkManagedServicesServiceNetworkEndpointList[_f] = { fqn: "@cdktf/provider-aws.odbNetwork.OdbNetworkManagedServicesServiceNetworkEndpointList", version: "21.22.1" }; function odbNetworkManagedServicesZeroEtlAccessToTerraform(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 {}; } function odbNetworkManagedServicesZeroEtlAccessToHclTerraform(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 = {}; return attrs; } class OdbNetworkManagedServicesZeroEtlAccessOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // cidr - computed: true, optional: false, required: false get cidr() { return this.getStringAttribute('cidr'); } // status - computed: true, optional: false, required: false get status() { return this.getStringAttribute('status'); } } exports.OdbNetworkManagedServicesZeroEtlAccessOutputReference = OdbNetworkManagedServicesZeroEtlAccessOutputReference; _g = JSII_RTTI_SYMBOL_1; OdbNetworkManagedServicesZeroEtlAccessOutputReference[_g] = { fqn: "@cdktf/provider-aws.odbNetwork.OdbNetworkManagedServicesZeroEtlAccessOutputReference", version: "21.22.1" }; class OdbNetworkManagedServicesZeroEtlAccessList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new OdbNetworkManagedServicesZeroEtlAccessOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.OdbNetworkManagedServicesZeroEtlAccessList = OdbNetworkManagedServicesZeroEtlAccessList; _h = JSII_RTTI_SYMBOL_1; OdbNetworkManagedServicesZeroEtlAccessList[_h] = { fqn: "@cdktf/provider-aws.odbNetwork.OdbNetworkManagedServicesZeroEtlAccessList", version: "21.22.1" }; function odbNetworkManagedServicesToTerraform(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 {}; } function odbNetworkManagedServicesToHclTerraform(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 = {}; return attrs; } class OdbNetworkManagedServicesOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; // managed_s3_backup_access - computed: true, optional: false, required: false this._managedS3BackupAccess = new OdbNetworkManagedServicesManagedS3BackupAccessList(this, "managed_s3_backup_access", false); // s3_access - computed: true, optional: false, required: false this._s3Access = new OdbNetworkManagedServicesS3AccessList(this, "s3_access", false); // service_network_endpoint - computed: true, optional: false, required: false this._serviceNetworkEndpoint = new OdbNetworkManagedServicesServiceNetworkEndpointList(this, "service_network_endpoint", false); // zero_etl_access - computed: true, optional: false, required: false this._zeroEtlAccess = new OdbNetworkManagedServicesZeroEtlAccessList(this, "zero_etl_access", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } get managedS3BackupAccess() { return this._managedS3BackupAccess; } // managed_service_ipv4_cidrs - computed: true, optional: false, required: false get managedServiceIpv4Cidrs() { return cdktf.Fn.tolist(this.getListAttribute('managed_service_ipv4_cidrs')); } // resource_gateway_arn - computed: true, optional: false, required: false get resourceGatewayArn() { return this.getStringAttribute('resource_gateway_arn'); } get s3Access() { return this._s3Access; } // service_network_arn - computed: true, optional: false, required: false get serviceNetworkArn() { return this.getStringAttribute('service_network_arn'); } get serviceNetworkEndpoint() { return this._serviceNetworkEndpoint; } get zeroEtlAccess() { return this._zeroEtlAccess; } } exports.OdbNetworkManagedServicesOutputReference = OdbNetworkManagedServicesOutputReference; _j = JSII_RTTI_SYMBOL_1; OdbNetworkManagedServicesOutputReference[_j] = { fqn: "@cdktf/provider-aws.odbNetwork.OdbNetworkManagedServicesOutputReference", version: "21.22.1" }; class OdbNetworkManagedServicesList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new OdbNetworkManagedServicesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.OdbNetworkManagedServicesList = OdbNetworkManagedServicesList; _k = JSII_RTTI_SYMBOL_1; OdbNetworkManagedServicesList[_k] = { fqn: "@cdktf/provider-aws.odbNetwork.OdbNetworkManagedServicesList", version: "21.22.1" }; function odbNetworkOciDnsForwardingConfigsToTerraform(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 {}; } function odbNetworkOciDnsForwardingConfigsToHclTerraform(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 = {}; return attrs; } class OdbNetworkOciDnsForwardingConfigsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // domain_name - computed: true, optional: false, required: false get domainName() { return this.getStringAttribute('domain_name'); } // oci_dns_listener_ip - computed: true, optional: false, required: false get ociDnsListenerIp() { return this.getStringAttribute('oci_dns_listener_ip'); } } exports.OdbNetworkOciDnsForwardingConfigsOutputReference = OdbNetworkOciDnsForwardingConfigsOutputReference; _l = JSII_RTTI_SYMBOL_1; OdbNetworkOciDnsForwardingConfigsOutputReference[_l] = { fqn: "@cdktf/provider-aws.odbNetwork.OdbNetworkOciDnsForwardingConfigsOutputReference", version: "21.22.1" }; class OdbNetworkOciDnsForwardingConfigsList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new OdbNetworkOciDnsForwardingConfigsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.OdbNetworkOciDnsForwardingConfigsList = OdbNetworkOciDnsForwardingConfigsList; _m = JSII_RTTI_SYMBOL_1; OdbNetworkOciDnsForwardingConfigsList[_m] = { fqn: "@cdktf/provider-aws.odbNetwork.OdbNetworkOciDnsForwardingConfigsList", version: "21.22.1" }; function odbNetworkTimeoutsToTerraform(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 { create: cdktf.stringToTerraform(struct.create), delete: cdktf.stringToTerraform(struct.delete), update: cdktf.stringToTerraform(struct.update), }; } function odbNetworkTimeoutsToHclTerraform(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 = { create: { value: cdktf.stringToHclTerraform(struct.create), isBlock: false, type: "simple", storageClassType: "string", }, delete: { value: cdktf.stringToHclTerraform(struct.delete), isBlock: false, type: "simple", storageClassType: "string", }, update: { value: cdktf.stringToHclTerraform(struct.update), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class OdbNetworkTimeoutsOutputReference 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); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._create !== undefined) { hasAnyValues = true; internalValueResult.create = this._create; } if (this._delete !== undefined) { hasAnyValues = true; internalValueResult.delete = this._delete; } if (this._update !== undefined) { hasAnyValues = true; internalValueResult.update = this._update; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._create = undefined; this._delete = undefined; this._update = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._create = value.create; this._delete = value.delete; this._update = value.update; } } get create() { return this.getStringAttribute('create'); } set create(value) { this._create = value; } resetCreate() { this._create = undefined; } // Temporarily expose input value. Use with caution. get createInput() { return this._create; } get delete() { return this.getStringAttribute('delete'); } set delete(value) { this._delete = value; } resetDelete() { this._delete = undefined; } // Temporarily expose input value. Use with caution. get deleteInput() { return this._delete; } get update() { return this.getStringAttribute('update'); } set update(value) { this._update = value; } resetUpdate() { this._update = undefined; } // Temporarily expose input value. Use with caution. get updateInput() { return this._update; } } exports.OdbNetworkTimeoutsOutputReference = OdbNetworkTimeoutsOutputReference; _o = JSII_RTTI_SYMBOL_1; OdbNetworkTimeoutsOutputReference[_o] = { fqn: "@cdktf/provider-aws.odbNetwork.OdbNetworkTimeoutsOutputReference", version: "21.22.1" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/odb_network aws_odb_network} */ class OdbNetwork extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a OdbNetwork resource upon running "cdktf plan <stack-name>" * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the OdbNetwork to import * @param importFromId The id of the existing OdbNetwork that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/odb_network#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the OdbNetwork to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aws_odb_network", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/odb_network aws_odb_network} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options OdbNetworkConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'aws_odb_network', terraformGeneratorMetadata: { providerName: 'aws', providerVersion: '6.25.0', providerVersionConstraint: '~> 6.0' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // managed_services - computed: true, optional: false, required: false this._managedServices = new OdbNetworkManagedServicesList(this, "managed_services", false); // oci_dns_forwarding_configs - computed: true, optional: false, required: false this._ociDnsForwardingConfigs = new OdbNetworkOciDnsForwardingConfigsList(this, "oci_dns_forwarding_configs", false); // tags_all - computed: true, optional: false, required: false this._tagsAll = new cdktf.StringMap(this, "tags_all"); // timeouts - computed: false, optional: true, required: false this._timeouts = new OdbNetworkTimeoutsOutputReference(this, "timeouts"); this._availabilityZone = config.availabilityZone; this._availabilityZoneId = config.availabilityZoneId; this._backupSubnetCidr = config.backupSubnetCidr; this._clientSubnetCidr = config.clientSubnetCidr; this._customDomainName = config.customDomainName; this._defaultDnsPrefix = config.defaultDnsPrefix; this._deleteAssociatedResources = config.deleteAssociatedResources; this._displayName = config.displayName; this._region = config.region; this._s3Access = config.s3Access; this._s3PolicyDocument = config.s3PolicyDocument; this._tags = config.tags; this._zeroEtlAccess = config.zeroEtlAccess; this._timeouts.internalValue = config.timeouts; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false get arn() { return this.getStringAttribute('arn'); } get availabilityZone() { return this.getStringAttribute('availability_zone'); } set availabilityZone(value) { this._availabilityZone = value; } resetAvailabilityZone() { this._availabilityZone = undefined; } // Temporarily expose input value. Use with caution. get availabilityZoneInput() { return this._availabilityZone; } get availabilityZoneId() { return this.getStringAttribute('availability_zone_id'); } set availabilityZoneId(value) { this._availabilityZoneId = value; } // Temporarily expose input value. Use with caution. get availabilityZoneIdInput() { return this._availabilityZoneId; } get backupSubnetCidr() { return this.getStringAttribute('backup_subnet_cidr'); } set backupSubnetCidr(value) { this._backupSubnetCidr = value; } // Temporarily expose input value. Use with caution. get backupSubnetCidrInput() { return this._backupSubnetCidr; } get clientSubnetCidr() { return this.getStringAttribute('client_subnet_cidr'); } set clientSubnetCidr(value) { this._clientSubnetCidr = value; } // Temporarily expose input value. Use with caution. get clientSubnetCidrInput() { return this._clientSubnetCidr; } // created_at - computed: true, optional: false, required: false get createdAt() { return this.getStringAttribute('created_at'); } get customDomainName() { return this.getStringAttribute('custom_domain_name'); } set customDomainName(value) { this._customDomainName = value; } resetCustomDomainName() { this._customDomainName = undefined; } // Temporarily expose input value. Use with caution. get customDomainNameInput() { return this._customDomainName; } get defaultDnsPrefix() { return this.getStringAttribute('default_dns_prefix'); } set defaultDnsPrefix(value) { this._defaultDnsPrefix = value; } resetDefaultDnsPrefix() { this._defaultDnsPrefix = undefined; } // Temporarily expose input value. Use with caution. get defaultDnsPrefixInput() { return this._defaultDnsPrefix; } get deleteAssociatedResources() { return this.getBooleanAttribute('delete_associated_resources'); } set deleteAssociatedResources(value) { this._deleteAssociatedResources = value; } resetDeleteAssociatedResources() { this._deleteAssociatedResources = undefined; } // Temporarily expose input value. Use with caution. get deleteAssociatedResourcesInput() { return this._deleteAssociatedResources; } get displayName() { return this.getStringAttribute('display_name'); } set displayName(value) { this._displayName = value; } // Temporarily expose input value. Use with caution. get displayNameInput() { return this._displayName; } // id - computed: true, optional: false, required: false get id() { return this.getStringAttribute('id'); } get managedServices() { return this._managedServices; } get ociDnsForwardingConfigs() { return this._ociDnsForwardingConfigs; } // oci_network_anchor_id - computed: true, optional: false, required: false get ociNetworkAnchorId() { return this.getStringAttribute('oci_network_anchor_id'); } // oci_network_anchor_url - computed: true, optional: false, required: false get ociNetworkAnchorUrl() { return this.getStringAttribute('oci_network_anchor_url'); } // oci_resource_anchor_name - computed: true, optional: false, required: false get ociResourceAnchorName() { return this.getStringAttribute('oci_resource_anchor_name'); } // oci_vcn_id - computed: true, optional: false, required: false get ociVcnId() { return this.getStringAttribute('oci_vcn_id'); } // oci_vcn_url - computed: true, optional: false, required: false get ociVcnUrl() { return this.getStringAttribute('oci_vcn_url'); } // peered_cidrs - computed: true, optional: false, required: false get peeredCidrs() { return cdktf.Fn.tolist(this.getListAttribute('peered_cidrs')); } // percent_progress - computed: true, optional: false, required: false get percentProgress() { return this.getNumberAttribute('percent_progress'); } get region() { return this.getStringAttribute('region'); } set region(value) { this._region = value; } resetRegion() { this._region = undefined; } // Temporarily expose input value. Use with caution. get regionInput() { return this._region; } get s3Access() { return this.getStringAttribute('s3_access'); } set s3Access(value) { this._s3Access = value; } // Temporarily expose input value. Use with caution. get s3AccessInput() { return this._s3Access; } get s3PolicyDocument() { return this.getStringAttribute('s3_policy_document'); } set s3PolicyDocument(value) { this._s3PolicyDocument = value; } resetS3PolicyDocument() { this._s3PolicyDocument = undefined; } // Temporarily expose input value. Use with caution. get s3PolicyDocumentInput() { return this._s3PolicyDocument; } // status - computed: true, optional: false, required: false get status() { return this.getStringAttribute('status'); } // status_reason - computed: true, optional: false, required: false get statusReason() { return this.getStringAttribute('status_reason'); } get tags() { return this.getStringMapAttribute('tags'); } set tags(value) { this._tags = value; } resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. get tagsInput() { return this._tags; } get tagsAll() { return this._tagsAll; } get zeroEtlAccess() { return this.getStringAttribute('zero_etl_access'); } set zeroEtlAccess(value) { this._zeroEtlAccess = value; } // Temporarily expose input value. Use with caution. get zeroEtlAccessInput() { return this._zeroEtlAccess; } get timeouts() { return this._timeouts; } putTimeouts(value) { this._timeouts.internalValue = value; } resetTimeouts() { this._timeouts.internalValue = undefined; } // Temporarily expose input value. Use with caution. get timeoutsInput() { return this._timeouts.internalValue; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { availability_zone: cdktf.stringToTerraform(this._availabilityZone), availability_zone_id: cdktf.stringToTerraform(this._availabilityZoneId), backup_subnet_cidr: cdktf.stringToTerraform(this._backupSubnetCidr), client_subnet_cidr: cdktf.stringToTerraform(this._clientSubnetCidr), custom_domain_name: cdktf.stringToTerraform(this._customDomainName), default_dns_prefix: cdktf.stringToTerraform(this._defaultDnsPrefix), delete_associated_resources: cdktf.booleanToTerraform(this._deleteAssociatedResources), display_name: cdktf.stringToTerraform(this._displayName), region: cdktf.stringToTerraform(this._region), s3_access: cdktf.stringToTerraform(this._s3Access), s3_policy_document: cdktf.stringToTerraform(this._s3PolicyDocument), tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags), zero_etl_access: cdktf.stringToTerraform(this._zeroEtlAccess), timeouts: odbNetworkTimeoutsToTerraform(this._timeouts.internalValue), }; } synthesizeHclAttributes() { const attrs = { availability_zone: { value: cdktf.stringToHclTerraform(this._availabilityZone), isBlock: false, type: "simple", storageClassType: "string", }, availability_zone_id: { value: cdktf.stringToHclTerraform(this._availabilityZoneId), isBlock: false, type: "simple", storageClassType: "string", }, backup_subnet_cidr: { value: cdktf.stringToHclTerraform(this._backupSubnetCidr), isBlock: false, type: "simple", storageClassType: "string", }, client_subnet_cidr: { value: cdktf.stringToHclTerraform(this._clientSubnetCidr), isBlock: false, type: "simple", storageClassType: "string", }, custom_domain_name: { value: cdktf.stringToHclTerraform(this._customDomainName), isBlock: false, type: "simple", storageClassType: "string", }, default_dns_prefix: { value: cdktf.stringToHclTerraform(this._defaultDnsPrefix), isBlock: false, type: "simple", storageClassType: "string", }, delete_associated_resources: { value: cdktf.booleanToHclTerraform(this._deleteAssociatedResources), isBlock: false, type: "simple", storageClassType: "boolean", }, display_name: { value: cdktf.stringToHclTerraform(this._displayName), isBlock: false, type: "simple", storageClassType: "string", }, region: { value: cdktf.stringToHclTerraform(this._region), isBlock: false, type: "simple", storageClassType: "string", }, s3_access: { value: cdktf.stringToHclTerraform(this._s3Access), isBlock: false, type: "simple", storageClassType: "string", }, s3_policy_document: { value: cdktf.stringToHclTerraform(this._s3PolicyDocument), isBlock: false, type: "simple", storageClassType: "string", }, tags: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._tags), isBlock: false, type: "map", storageClassType: "stringMap", }, zero_etl_access: { value: cdktf.stringToHclTerraform(this._zeroEtlAccess), isBlock: false, type: "simple", storageClassType: "string", }, timeouts: { value: odbNetworkTimeoutsToHclTerraform(this._timeouts.internalValue), isBlock: true, type: "struct", storageClassType: "OdbNetworkTimeouts", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } } exports.OdbNetwork = OdbNetwork; _p = JSII_RTTI_SYMBOL_1; OdbNetwork[_p] = { fqn: "@cdktf/provider-aws.odbNetwork.OdbNetwork", version: "21.22.1" }; // ================= // STATIC PROPERTIES // ================= OdbNetwork.tfResourceType = "aws_odb_network"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvb2RiLW5ldHdvcmsvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQXNIQSw4SEFPQztBQUdELG9JQVFDO0FBOERELG9HQU9DO0FBR0QsMEdBUUM7QUF3RUQsZ0lBT0M7QUFHRCxzSUFRQztBQThERCw4R0FPQztBQUdELG9IQVFDO0FBOERELG9GQU9DO0FBR0QsMEZBUUM7QUEyRkQsb0dBT0M7QUFHRCwwR0FRQztBQWdGRCxzRUFVQztBQUdELDRFQTRCQzs7QUEvcUJELCtCQUErQjtBQTZHL0IsU0FBZ0IseURBQXlELENBQUMsTUFBdUQ7SUFDL0gsSUFBSSxDQUFDLEtBQUssQ0FBQyxVQUFVLENBQUMsTUFBTSxDQUFDLElBQUksS0FBSyxDQUFDLFlBQVksQ0FBQyxZQUFZLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQztRQUFDLE9BQU8sTUFBTSxDQUFDO0lBQUMsQ0FBQztJQUM1RixJQUFJLEtBQUssQ0FBQyxnQkFBZ0IsQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDO1FBQ25DLE1BQU0sSUFBSSxLQUFLLENBQUMsb0hBQW9ILENBQUMsQ0FBQztJQUN4SSxDQUFDO0lBQ0QsT0FBTyxFQUNOLENBQUE7QUFDSCxDQUFDO0FBR0QsU0FBZ0IsNERBQTRELENBQUMsTUFBdUQ7SUFDbEksSUFBSSxDQUFDLEtBQUssQ0FBQyxVQUFVLENBQUMsTUFBTSxDQUFDLElBQUksS0FBSyxDQUFDLFlBQVksQ0FBQyxZQUFZLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQztRQUF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