UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

1,066 lines 151 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; Object.defineProperty(exports, "__esModule", { value: true }); exports.M2Environment = exports.M2EnvironmentTimeoutsOutputReference = exports.m2EnvironmentTimeoutsToHclTerraform = exports.m2EnvironmentTimeoutsToTerraform = exports.M2EnvironmentStorageConfigurationList = exports.M2EnvironmentStorageConfigurationOutputReference = exports.m2EnvironmentStorageConfigurationToHclTerraform = exports.m2EnvironmentStorageConfigurationToTerraform = exports.M2EnvironmentStorageConfigurationFsxList = exports.M2EnvironmentStorageConfigurationFsxOutputReference = exports.m2EnvironmentStorageConfigurationFsxToHclTerraform = exports.m2EnvironmentStorageConfigurationFsxToTerraform = exports.M2EnvironmentStorageConfigurationEfsList = exports.M2EnvironmentStorageConfigurationEfsOutputReference = exports.m2EnvironmentStorageConfigurationEfsToHclTerraform = exports.m2EnvironmentStorageConfigurationEfsToTerraform = exports.M2EnvironmentHighAvailabilityConfigList = exports.M2EnvironmentHighAvailabilityConfigOutputReference = exports.m2EnvironmentHighAvailabilityConfigToHclTerraform = exports.m2EnvironmentHighAvailabilityConfigToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function m2EnvironmentHighAvailabilityConfigToTerraform(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 { desired_capacity: cdktf.numberToTerraform(struct.desiredCapacity), }; } exports.m2EnvironmentHighAvailabilityConfigToTerraform = m2EnvironmentHighAvailabilityConfigToTerraform; function m2EnvironmentHighAvailabilityConfigToHclTerraform(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 = { desired_capacity: { value: cdktf.numberToHclTerraform(struct.desiredCapacity), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.m2EnvironmentHighAvailabilityConfigToHclTerraform = m2EnvironmentHighAvailabilityConfigToHclTerraform; class M2EnvironmentHighAvailabilityConfigOutputReference 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() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._desiredCapacity !== undefined) { hasAnyValues = true; internalValueResult.desiredCapacity = this._desiredCapacity; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._desiredCapacity = 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._desiredCapacity = value.desiredCapacity; } } get desiredCapacity() { return this.getNumberAttribute('desired_capacity'); } set desiredCapacity(value) { this._desiredCapacity = value; } // Temporarily expose input value. Use with caution. get desiredCapacityInput() { return this._desiredCapacity; } } exports.M2EnvironmentHighAvailabilityConfigOutputReference = M2EnvironmentHighAvailabilityConfigOutputReference; _a = JSII_RTTI_SYMBOL_1; M2EnvironmentHighAvailabilityConfigOutputReference[_a] = { fqn: "@cdktf/provider-aws.m2Environment.M2EnvironmentHighAvailabilityConfigOutputReference", version: "19.50.0" }; class M2EnvironmentHighAvailabilityConfigList 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 M2EnvironmentHighAvailabilityConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.M2EnvironmentHighAvailabilityConfigList = M2EnvironmentHighAvailabilityConfigList; _b = JSII_RTTI_SYMBOL_1; M2EnvironmentHighAvailabilityConfigList[_b] = { fqn: "@cdktf/provider-aws.m2Environment.M2EnvironmentHighAvailabilityConfigList", version: "19.50.0" }; function m2EnvironmentStorageConfigurationEfsToTerraform(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 { file_system_id: cdktf.stringToTerraform(struct.fileSystemId), mount_point: cdktf.stringToTerraform(struct.mountPoint), }; } exports.m2EnvironmentStorageConfigurationEfsToTerraform = m2EnvironmentStorageConfigurationEfsToTerraform; function m2EnvironmentStorageConfigurationEfsToHclTerraform(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 = { file_system_id: { value: cdktf.stringToHclTerraform(struct.fileSystemId), isBlock: false, type: "simple", storageClassType: "string", }, mount_point: { value: cdktf.stringToHclTerraform(struct.mountPoint), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.m2EnvironmentStorageConfigurationEfsToHclTerraform = m2EnvironmentStorageConfigurationEfsToHclTerraform; class M2EnvironmentStorageConfigurationEfsOutputReference 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() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._fileSystemId !== undefined) { hasAnyValues = true; internalValueResult.fileSystemId = this._fileSystemId; } if (this._mountPoint !== undefined) { hasAnyValues = true; internalValueResult.mountPoint = this._mountPoint; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._fileSystemId = undefined; this._mountPoint = 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._fileSystemId = value.fileSystemId; this._mountPoint = value.mountPoint; } } get fileSystemId() { return this.getStringAttribute('file_system_id'); } set fileSystemId(value) { this._fileSystemId = value; } // Temporarily expose input value. Use with caution. get fileSystemIdInput() { return this._fileSystemId; } get mountPoint() { return this.getStringAttribute('mount_point'); } set mountPoint(value) { this._mountPoint = value; } // Temporarily expose input value. Use with caution. get mountPointInput() { return this._mountPoint; } } exports.M2EnvironmentStorageConfigurationEfsOutputReference = M2EnvironmentStorageConfigurationEfsOutputReference; _c = JSII_RTTI_SYMBOL_1; M2EnvironmentStorageConfigurationEfsOutputReference[_c] = { fqn: "@cdktf/provider-aws.m2Environment.M2EnvironmentStorageConfigurationEfsOutputReference", version: "19.50.0" }; class M2EnvironmentStorageConfigurationEfsList 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 M2EnvironmentStorageConfigurationEfsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.M2EnvironmentStorageConfigurationEfsList = M2EnvironmentStorageConfigurationEfsList; _d = JSII_RTTI_SYMBOL_1; M2EnvironmentStorageConfigurationEfsList[_d] = { fqn: "@cdktf/provider-aws.m2Environment.M2EnvironmentStorageConfigurationEfsList", version: "19.50.0" }; function m2EnvironmentStorageConfigurationFsxToTerraform(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 { file_system_id: cdktf.stringToTerraform(struct.fileSystemId), mount_point: cdktf.stringToTerraform(struct.mountPoint), }; } exports.m2EnvironmentStorageConfigurationFsxToTerraform = m2EnvironmentStorageConfigurationFsxToTerraform; function m2EnvironmentStorageConfigurationFsxToHclTerraform(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 = { file_system_id: { value: cdktf.stringToHclTerraform(struct.fileSystemId), isBlock: false, type: "simple", storageClassType: "string", }, mount_point: { value: cdktf.stringToHclTerraform(struct.mountPoint), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.m2EnvironmentStorageConfigurationFsxToHclTerraform = m2EnvironmentStorageConfigurationFsxToHclTerraform; class M2EnvironmentStorageConfigurationFsxOutputReference 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() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._fileSystemId !== undefined) { hasAnyValues = true; internalValueResult.fileSystemId = this._fileSystemId; } if (this._mountPoint !== undefined) { hasAnyValues = true; internalValueResult.mountPoint = this._mountPoint; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._fileSystemId = undefined; this._mountPoint = 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._fileSystemId = value.fileSystemId; this._mountPoint = value.mountPoint; } } get fileSystemId() { return this.getStringAttribute('file_system_id'); } set fileSystemId(value) { this._fileSystemId = value; } // Temporarily expose input value. Use with caution. get fileSystemIdInput() { return this._fileSystemId; } get mountPoint() { return this.getStringAttribute('mount_point'); } set mountPoint(value) { this._mountPoint = value; } // Temporarily expose input value. Use with caution. get mountPointInput() { return this._mountPoint; } } exports.M2EnvironmentStorageConfigurationFsxOutputReference = M2EnvironmentStorageConfigurationFsxOutputReference; _e = JSII_RTTI_SYMBOL_1; M2EnvironmentStorageConfigurationFsxOutputReference[_e] = { fqn: "@cdktf/provider-aws.m2Environment.M2EnvironmentStorageConfigurationFsxOutputReference", version: "19.50.0" }; class M2EnvironmentStorageConfigurationFsxList 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 M2EnvironmentStorageConfigurationFsxOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.M2EnvironmentStorageConfigurationFsxList = M2EnvironmentStorageConfigurationFsxList; _f = JSII_RTTI_SYMBOL_1; M2EnvironmentStorageConfigurationFsxList[_f] = { fqn: "@cdktf/provider-aws.m2Environment.M2EnvironmentStorageConfigurationFsxList", version: "19.50.0" }; function m2EnvironmentStorageConfigurationToTerraform(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 { efs: cdktf.listMapper(m2EnvironmentStorageConfigurationEfsToTerraform, true)(struct.efs), fsx: cdktf.listMapper(m2EnvironmentStorageConfigurationFsxToTerraform, true)(struct.fsx), }; } exports.m2EnvironmentStorageConfigurationToTerraform = m2EnvironmentStorageConfigurationToTerraform; function m2EnvironmentStorageConfigurationToHclTerraform(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 = { efs: { value: cdktf.listMapperHcl(m2EnvironmentStorageConfigurationEfsToHclTerraform, true)(struct.efs), isBlock: true, type: "list", storageClassType: "M2EnvironmentStorageConfigurationEfsList", }, fsx: { value: cdktf.listMapperHcl(m2EnvironmentStorageConfigurationFsxToHclTerraform, true)(struct.fsx), isBlock: true, type: "list", storageClassType: "M2EnvironmentStorageConfigurationFsxList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.m2EnvironmentStorageConfigurationToHclTerraform = m2EnvironmentStorageConfigurationToHclTerraform; class M2EnvironmentStorageConfigurationOutputReference 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; // efs - computed: false, optional: true, required: false this._efs = new M2EnvironmentStorageConfigurationEfsList(this, "efs", false); // fsx - computed: false, optional: true, required: false this._fsx = new M2EnvironmentStorageConfigurationFsxList(this, "fsx", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._efs?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.efs = this._efs?.internalValue; } if (this._fsx?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.fsx = this._fsx?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._efs.internalValue = undefined; this._fsx.internalValue = 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._efs.internalValue = value.efs; this._fsx.internalValue = value.fsx; } } get efs() { return this._efs; } putEfs(value) { this._efs.internalValue = value; } resetEfs() { this._efs.internalValue = undefined; } // Temporarily expose input value. Use with caution. get efsInput() { return this._efs.internalValue; } get fsx() { return this._fsx; } putFsx(value) { this._fsx.internalValue = value; } resetFsx() { this._fsx.internalValue = undefined; } // Temporarily expose input value. Use with caution. get fsxInput() { return this._fsx.internalValue; } } exports.M2EnvironmentStorageConfigurationOutputReference = M2EnvironmentStorageConfigurationOutputReference; _g = JSII_RTTI_SYMBOL_1; M2EnvironmentStorageConfigurationOutputReference[_g] = { fqn: "@cdktf/provider-aws.m2Environment.M2EnvironmentStorageConfigurationOutputReference", version: "19.50.0" }; class M2EnvironmentStorageConfigurationList 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 M2EnvironmentStorageConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.M2EnvironmentStorageConfigurationList = M2EnvironmentStorageConfigurationList; _h = JSII_RTTI_SYMBOL_1; M2EnvironmentStorageConfigurationList[_h] = { fqn: "@cdktf/provider-aws.m2Environment.M2EnvironmentStorageConfigurationList", version: "19.50.0" }; function m2EnvironmentTimeoutsToTerraform(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), }; } exports.m2EnvironmentTimeoutsToTerraform = m2EnvironmentTimeoutsToTerraform; function m2EnvironmentTimeoutsToHclTerraform(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)); } exports.m2EnvironmentTimeoutsToHclTerraform = m2EnvironmentTimeoutsToHclTerraform; class M2EnvironmentTimeoutsOutputReference 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.M2EnvironmentTimeoutsOutputReference = M2EnvironmentTimeoutsOutputReference; _j = JSII_RTTI_SYMBOL_1; M2EnvironmentTimeoutsOutputReference[_j] = { fqn: "@cdktf/provider-aws.m2Environment.M2EnvironmentTimeoutsOutputReference", version: "19.50.0" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/m2_environment aws_m2_environment} */ class M2Environment extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a M2Environment 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 M2Environment to import * @param importFromId The id of the existing M2Environment that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/m2_environment#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the M2Environment to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aws_m2_environment", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/m2_environment aws_m2_environment} 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 M2EnvironmentConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'aws_m2_environment', terraformGeneratorMetadata: { providerName: 'aws', providerVersion: '5.84.0', providerVersionConstraint: '~> 5.0' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // tags_all - computed: true, optional: false, required: false this._tagsAll = new cdktf.StringMap(this, "tags_all"); // high_availability_config - computed: false, optional: true, required: false this._highAvailabilityConfig = new M2EnvironmentHighAvailabilityConfigList(this, "high_availability_config", false); // storage_configuration - computed: false, optional: true, required: false this._storageConfiguration = new M2EnvironmentStorageConfigurationList(this, "storage_configuration", false); // timeouts - computed: false, optional: true, required: false this._timeouts = new M2EnvironmentTimeoutsOutputReference(this, "timeouts"); this._applyChangesDuringMaintenanceWindow = config.applyChangesDuringMaintenanceWindow; this._description = config.description; this._engineType = config.engineType; this._engineVersion = config.engineVersion; this._forceUpdate = config.forceUpdate; this._instanceType = config.instanceType; this._kmsKeyId = config.kmsKeyId; this._name = config.name; this._preferredMaintenanceWindow = config.preferredMaintenanceWindow; this._publiclyAccessible = config.publiclyAccessible; this._securityGroupIds = config.securityGroupIds; this._subnetIds = config.subnetIds; this._tags = config.tags; this._highAvailabilityConfig.internalValue = config.highAvailabilityConfig; this._storageConfiguration.internalValue = config.storageConfiguration; this._timeouts.internalValue = config.timeouts; } get applyChangesDuringMaintenanceWindow() { return this.getBooleanAttribute('apply_changes_during_maintenance_window'); } set applyChangesDuringMaintenanceWindow(value) { this._applyChangesDuringMaintenanceWindow = value; } resetApplyChangesDuringMaintenanceWindow() { this._applyChangesDuringMaintenanceWindow = undefined; } // Temporarily expose input value. Use with caution. get applyChangesDuringMaintenanceWindowInput() { return this._applyChangesDuringMaintenanceWindow; } // arn - computed: true, optional: false, required: false get arn() { return this.getStringAttribute('arn'); } get description() { return this.getStringAttribute('description'); } set description(value) { this._description = value; } resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. get descriptionInput() { return this._description; } get engineType() { return this.getStringAttribute('engine_type'); } set engineType(value) { this._engineType = value; } // Temporarily expose input value. Use with caution. get engineTypeInput() { return this._engineType; } get engineVersion() { return this.getStringAttribute('engine_version'); } set engineVersion(value) { this._engineVersion = value; } resetEngineVersion() { this._engineVersion = undefined; } // Temporarily expose input value. Use with caution. get engineVersionInput() { return this._engineVersion; } // environment_id - computed: true, optional: false, required: false get environmentId() { return this.getStringAttribute('environment_id'); } get forceUpdate() { return this.getBooleanAttribute('force_update'); } set forceUpdate(value) { this._forceUpdate = value; } resetForceUpdate() { this._forceUpdate = undefined; } // Temporarily expose input value. Use with caution. get forceUpdateInput() { return this._forceUpdate; } // id - computed: true, optional: false, required: false get id() { return this.getStringAttribute('id'); } 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 kmsKeyId() { return this.getStringAttribute('kms_key_id'); } set kmsKeyId(value) { this._kmsKeyId = value; } resetKmsKeyId() { this._kmsKeyId = undefined; } // Temporarily expose input value. Use with caution. get kmsKeyIdInput() { return this._kmsKeyId; } // load_balancer_arn - computed: true, optional: false, required: false get loadBalancerArn() { return this.getStringAttribute('load_balancer_arn'); } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get preferredMaintenanceWindow() { return this.getStringAttribute('preferred_maintenance_window'); } set preferredMaintenanceWindow(value) { this._preferredMaintenanceWindow = value; } resetPreferredMaintenanceWindow() { this._preferredMaintenanceWindow = undefined; } // Temporarily expose input value. Use with caution. get preferredMaintenanceWindowInput() { return this._preferredMaintenanceWindow; } get publiclyAccessible() { return this.getBooleanAttribute('publicly_accessible'); } set publiclyAccessible(value) { this._publiclyAccessible = value; } resetPubliclyAccessible() { this._publiclyAccessible = undefined; } // Temporarily expose input value. Use with caution. get publiclyAccessibleInput() { return this._publiclyAccessible; } get securityGroupIds() { return cdktf.Fn.tolist(this.getListAttribute('security_group_ids')); } set securityGroupIds(value) { this._securityGroupIds = value; } resetSecurityGroupIds() { this._securityGroupIds = undefined; } // Temporarily expose input value. Use with caution. get securityGroupIdsInput() { return this._securityGroupIds; } get subnetIds() { return cdktf.Fn.tolist(this.getListAttribute('subnet_ids')); } set subnetIds(value) { this._subnetIds = value; } resetSubnetIds() { this._subnetIds = undefined; } // Temporarily expose input value. Use with caution. get subnetIdsInput() { return this._subnetIds; } 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 highAvailabilityConfig() { return this._highAvailabilityConfig; } putHighAvailabilityConfig(value) { this._highAvailabilityConfig.internalValue = value; } resetHighAvailabilityConfig() { this._highAvailabilityConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get highAvailabilityConfigInput() { return this._highAvailabilityConfig.internalValue; } get storageConfiguration() { return this._storageConfiguration; } putStorageConfiguration(value) { this._storageConfiguration.internalValue = value; } resetStorageConfiguration() { this._storageConfiguration.internalValue = undefined; } // Temporarily expose input value. Use with caution. get storageConfigurationInput() { return this._storageConfiguration.internalValue; } 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 { apply_changes_during_maintenance_window: cdktf.booleanToTerraform(this._applyChangesDuringMaintenanceWindow), description: cdktf.stringToTerraform(this._description), engine_type: cdktf.stringToTerraform(this._engineType), engine_version: cdktf.stringToTerraform(this._engineVersion), force_update: cdktf.booleanToTerraform(this._forceUpdate), instance_type: cdktf.stringToTerraform(this._instanceType), kms_key_id: cdktf.stringToTerraform(this._kmsKeyId), name: cdktf.stringToTerraform(this._name), preferred_maintenance_window: cdktf.stringToTerraform(this._preferredMaintenanceWindow), publicly_accessible: cdktf.booleanToTerraform(this._publiclyAccessible), security_group_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(this._securityGroupIds), subnet_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(this._subnetIds), tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags), high_availability_config: cdktf.listMapper(m2EnvironmentHighAvailabilityConfigToTerraform, true)(this._highAvailabilityConfig.internalValue), storage_configuration: cdktf.listMapper(m2EnvironmentStorageConfigurationToTerraform, true)(this._storageConfiguration.internalValue), timeouts: m2EnvironmentTimeoutsToTerraform(this._timeouts.internalValue), }; } synthesizeHclAttributes() { const attrs = { apply_changes_during_maintenance_window: { value: cdktf.booleanToHclTerraform(this._applyChangesDuringMaintenanceWindow), isBlock: false, type: "simple", storageClassType: "boolean", }, description: { value: cdktf.stringToHclTerraform(this._description), isBlock: false, type: "simple", storageClassType: "string", }, engine_type: { value: cdktf.stringToHclTerraform(this._engineType), isBlock: false, type: "simple", storageClassType: "string", }, engine_version: { value: cdktf.stringToHclTerraform(this._engineVersion), isBlock: false, type: "simple", storageClassType: "string", }, force_update: { value: cdktf.booleanToHclTerraform(this._forceUpdate), isBlock: false, type: "simple", storageClassType: "boolean", }, instance_type: { value: cdktf.stringToHclTerraform(this._instanceType), isBlock: false, type: "simple", storageClassType: "string", }, kms_key_id: { value: cdktf.stringToHclTerraform(this._kmsKeyId), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(this._name), isBlock: false, type: "simple", storageClassType: "string", }, preferred_maintenance_window: { value: cdktf.stringToHclTerraform(this._preferredMaintenanceWindow), isBlock: false, type: "simple", storageClassType: "string", }, publicly_accessible: { value: cdktf.booleanToHclTerraform(this._publiclyAccessible), isBlock: false, type: "simple", storageClassType: "boolean", }, security_group_ids: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._securityGroupIds), isBlock: false, type: "set", storageClassType: "stringList", }, subnet_ids: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._subnetIds), isBlock: false, type: "set", storageClassType: "stringList", }, tags: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._tags), isBlock: false, type: "map", storageClassType: "stringMap", }, high_availability_config: { value: cdktf.listMapperHcl(m2EnvironmentHighAvailabilityConfigToHclTerraform, true)(this._highAvailabilityConfig.internalValue), isBlock: true, type: "list", storageClassType: "M2EnvironmentHighAvailabilityConfigList", }, storage_configuration: { value: cdktf.listMapperHcl(m2EnvironmentStorageConfigurationToHclTerraform, true)(this._storageConfiguration.internalValue), isBlock: true, type: "list", storageClassType: "M2EnvironmentStorageConfigurationList", }, timeouts: { value: m2EnvironmentTimeoutsToHclTerraform(this._timeouts.internalValue), isBlock: true, type: "struct", storageClassType: "M2EnvironmentTimeouts", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } } exports.M2Environment = M2Environment; _k = JSII_RTTI_SYMBOL_1; M2Environment[_k] = { fqn: "@cdktf/provider-aws.m2Environment.M2Environment", version: "19.50.0" }; // ================= // STATIC PROPERTIES // ================= M2Environment.tfResourceType = "aws_m2_environment"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbTItZW52aXJvbm1lbnQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFTQSwrQkFBK0I7QUFtRi9CLFNBQWdCLDhDQUE4QyxDQUFDLE1BQWdFO0lBQzdILElBQUksQ0FBQyxLQUFLLENBQUMsVUFBVSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEtBQUssQ0FBQyxZQUFZLENBQUMsWUFBWSxDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUM7UUFBQyxPQUFPLE1BQU0sQ0FBQztJQUFDLENBQUM7SUFDNUYsSUFBSSxLQUFLLENBQUMsZ0JBQWdCLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQztRQUNuQyxNQUFNLElBQUksS0FBSyxDQUFDLG9IQUFvSCxDQUFDLENBQUM7SUFDeEksQ0FBQztJQUNELE9BQU87UUFDTCxnQkFBZ0IsRUFBRSxLQUFLLENBQUMsaUJBQWlCLENBQUMsTUFBTyxDQUFDLGVBQWUsQ0FBQztLQUNuRSxDQUFBO0FBQ0gsQ0FBQztBQVJELHdHQVFDO0FBR0QsU0FBZ0IsaURBQWlELENBQUMsTUFBZ0U7SUFDaEksSUFBSSxDQUFDLEtBQUssQ0FBQyxVQUFVLENBQUMsTUFBTSxDQUFDLElBQUksS0FBSyxDQUFDLFlBQVksQ0FBQyxZQUFZLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQztRQUFDLE9BQU8sTUFBTSxDQUFDO0lBQUMsQ0FBQztJQUM1RixJQUFJLEtBQUssQ0FBQyxnQkFBZ0IsQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDO1FBQ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