UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

1,166 lines 159 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h; Object.defineProperty(exports, "__esModule", { value: true }); exports.EcsTaskSet = exports.EcsTaskSetServiceRegistriesOutputReference = exports.ecsTaskSetServiceRegistriesToHclTerraform = exports.ecsTaskSetServiceRegistriesToTerraform = exports.EcsTaskSetScaleOutputReference = exports.ecsTaskSetScaleToHclTerraform = exports.ecsTaskSetScaleToTerraform = exports.EcsTaskSetNetworkConfigurationOutputReference = exports.ecsTaskSetNetworkConfigurationToHclTerraform = exports.ecsTaskSetNetworkConfigurationToTerraform = exports.EcsTaskSetLoadBalancerList = exports.EcsTaskSetLoadBalancerOutputReference = exports.ecsTaskSetLoadBalancerToHclTerraform = exports.ecsTaskSetLoadBalancerToTerraform = exports.EcsTaskSetCapacityProviderStrategyList = exports.EcsTaskSetCapacityProviderStrategyOutputReference = exports.ecsTaskSetCapacityProviderStrategyToHclTerraform = exports.ecsTaskSetCapacityProviderStrategyToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function ecsTaskSetCapacityProviderStrategyToTerraform(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 { base: cdktf.numberToTerraform(struct.base), capacity_provider: cdktf.stringToTerraform(struct.capacityProvider), weight: cdktf.numberToTerraform(struct.weight), }; } exports.ecsTaskSetCapacityProviderStrategyToTerraform = ecsTaskSetCapacityProviderStrategyToTerraform; function ecsTaskSetCapacityProviderStrategyToHclTerraform(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 = { base: { value: cdktf.numberToHclTerraform(struct.base), isBlock: false, type: "simple", storageClassType: "number", }, capacity_provider: { value: cdktf.stringToHclTerraform(struct.capacityProvider), isBlock: false, type: "simple", storageClassType: "string", }, weight: { value: cdktf.numberToHclTerraform(struct.weight), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.ecsTaskSetCapacityProviderStrategyToHclTerraform = ecsTaskSetCapacityProviderStrategyToHclTerraform; class EcsTaskSetCapacityProviderStrategyOutputReference 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._base !== undefined) { hasAnyValues = true; internalValueResult.base = this._base; } if (this._capacityProvider !== undefined) { hasAnyValues = true; internalValueResult.capacityProvider = this._capacityProvider; } if (this._weight !== undefined) { hasAnyValues = true; internalValueResult.weight = this._weight; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._base = undefined; this._capacityProvider = undefined; this._weight = 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._base = value.base; this._capacityProvider = value.capacityProvider; this._weight = value.weight; } } get base() { return this.getNumberAttribute('base'); } set base(value) { this._base = value; } resetBase() { this._base = undefined; } // Temporarily expose input value. Use with caution. get baseInput() { return this._base; } get capacityProvider() { return this.getStringAttribute('capacity_provider'); } set capacityProvider(value) { this._capacityProvider = value; } // Temporarily expose input value. Use with caution. get capacityProviderInput() { return this._capacityProvider; } get weight() { return this.getNumberAttribute('weight'); } set weight(value) { this._weight = value; } // Temporarily expose input value. Use with caution. get weightInput() { return this._weight; } } exports.EcsTaskSetCapacityProviderStrategyOutputReference = EcsTaskSetCapacityProviderStrategyOutputReference; _a = JSII_RTTI_SYMBOL_1; EcsTaskSetCapacityProviderStrategyOutputReference[_a] = { fqn: "@cdktf/provider-aws.ecsTaskSet.EcsTaskSetCapacityProviderStrategyOutputReference", version: "19.50.0" }; class EcsTaskSetCapacityProviderStrategyList 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 EcsTaskSetCapacityProviderStrategyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.EcsTaskSetCapacityProviderStrategyList = EcsTaskSetCapacityProviderStrategyList; _b = JSII_RTTI_SYMBOL_1; EcsTaskSetCapacityProviderStrategyList[_b] = { fqn: "@cdktf/provider-aws.ecsTaskSet.EcsTaskSetCapacityProviderStrategyList", version: "19.50.0" }; function ecsTaskSetLoadBalancerToTerraform(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 { container_name: cdktf.stringToTerraform(struct.containerName), container_port: cdktf.numberToTerraform(struct.containerPort), load_balancer_name: cdktf.stringToTerraform(struct.loadBalancerName), target_group_arn: cdktf.stringToTerraform(struct.targetGroupArn), }; } exports.ecsTaskSetLoadBalancerToTerraform = ecsTaskSetLoadBalancerToTerraform; function ecsTaskSetLoadBalancerToHclTerraform(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 = { container_name: { value: cdktf.stringToHclTerraform(struct.containerName), isBlock: false, type: "simple", storageClassType: "string", }, container_port: { value: cdktf.numberToHclTerraform(struct.containerPort), isBlock: false, type: "simple", storageClassType: "number", }, load_balancer_name: { value: cdktf.stringToHclTerraform(struct.loadBalancerName), isBlock: false, type: "simple", storageClassType: "string", }, target_group_arn: { value: cdktf.stringToHclTerraform(struct.targetGroupArn), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.ecsTaskSetLoadBalancerToHclTerraform = ecsTaskSetLoadBalancerToHclTerraform; class EcsTaskSetLoadBalancerOutputReference 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._containerName !== undefined) { hasAnyValues = true; internalValueResult.containerName = this._containerName; } if (this._containerPort !== undefined) { hasAnyValues = true; internalValueResult.containerPort = this._containerPort; } if (this._loadBalancerName !== undefined) { hasAnyValues = true; internalValueResult.loadBalancerName = this._loadBalancerName; } if (this._targetGroupArn !== undefined) { hasAnyValues = true; internalValueResult.targetGroupArn = this._targetGroupArn; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._containerName = undefined; this._containerPort = undefined; this._loadBalancerName = undefined; this._targetGroupArn = 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._containerName = value.containerName; this._containerPort = value.containerPort; this._loadBalancerName = value.loadBalancerName; this._targetGroupArn = value.targetGroupArn; } } get containerName() { return this.getStringAttribute('container_name'); } set containerName(value) { this._containerName = value; } // Temporarily expose input value. Use with caution. get containerNameInput() { return this._containerName; } get containerPort() { return this.getNumberAttribute('container_port'); } set containerPort(value) { this._containerPort = value; } resetContainerPort() { this._containerPort = undefined; } // Temporarily expose input value. Use with caution. get containerPortInput() { return this._containerPort; } get loadBalancerName() { return this.getStringAttribute('load_balancer_name'); } set loadBalancerName(value) { this._loadBalancerName = value; } resetLoadBalancerName() { this._loadBalancerName = undefined; } // Temporarily expose input value. Use with caution. get loadBalancerNameInput() { return this._loadBalancerName; } get targetGroupArn() { return this.getStringAttribute('target_group_arn'); } set targetGroupArn(value) { this._targetGroupArn = value; } resetTargetGroupArn() { this._targetGroupArn = undefined; } // Temporarily expose input value. Use with caution. get targetGroupArnInput() { return this._targetGroupArn; } } exports.EcsTaskSetLoadBalancerOutputReference = EcsTaskSetLoadBalancerOutputReference; _c = JSII_RTTI_SYMBOL_1; EcsTaskSetLoadBalancerOutputReference[_c] = { fqn: "@cdktf/provider-aws.ecsTaskSet.EcsTaskSetLoadBalancerOutputReference", version: "19.50.0" }; class EcsTaskSetLoadBalancerList 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 EcsTaskSetLoadBalancerOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.EcsTaskSetLoadBalancerList = EcsTaskSetLoadBalancerList; _d = JSII_RTTI_SYMBOL_1; EcsTaskSetLoadBalancerList[_d] = { fqn: "@cdktf/provider-aws.ecsTaskSet.EcsTaskSetLoadBalancerList", version: "19.50.0" }; function ecsTaskSetNetworkConfigurationToTerraform(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 { assign_public_ip: cdktf.booleanToTerraform(struct.assignPublicIp), security_groups: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.securityGroups), subnets: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.subnets), }; } exports.ecsTaskSetNetworkConfigurationToTerraform = ecsTaskSetNetworkConfigurationToTerraform; function ecsTaskSetNetworkConfigurationToHclTerraform(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 = { assign_public_ip: { value: cdktf.booleanToHclTerraform(struct.assignPublicIp), isBlock: false, type: "simple", storageClassType: "boolean", }, security_groups: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.securityGroups), isBlock: false, type: "set", storageClassType: "stringList", }, subnets: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.subnets), isBlock: false, type: "set", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.ecsTaskSetNetworkConfigurationToHclTerraform = ecsTaskSetNetworkConfigurationToHclTerraform; class EcsTaskSetNetworkConfigurationOutputReference 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._assignPublicIp !== undefined) { hasAnyValues = true; internalValueResult.assignPublicIp = this._assignPublicIp; } if (this._securityGroups !== undefined) { hasAnyValues = true; internalValueResult.securityGroups = this._securityGroups; } if (this._subnets !== undefined) { hasAnyValues = true; internalValueResult.subnets = this._subnets; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._assignPublicIp = undefined; this._securityGroups = undefined; this._subnets = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._assignPublicIp = value.assignPublicIp; this._securityGroups = value.securityGroups; this._subnets = value.subnets; } } get assignPublicIp() { return this.getBooleanAttribute('assign_public_ip'); } set assignPublicIp(value) { this._assignPublicIp = value; } resetAssignPublicIp() { this._assignPublicIp = undefined; } // Temporarily expose input value. Use with caution. get assignPublicIpInput() { return this._assignPublicIp; } get securityGroups() { return cdktf.Fn.tolist(this.getListAttribute('security_groups')); } set securityGroups(value) { this._securityGroups = value; } resetSecurityGroups() { this._securityGroups = undefined; } // Temporarily expose input value. Use with caution. get securityGroupsInput() { return this._securityGroups; } get subnets() { return cdktf.Fn.tolist(this.getListAttribute('subnets')); } set subnets(value) { this._subnets = value; } // Temporarily expose input value. Use with caution. get subnetsInput() { return this._subnets; } } exports.EcsTaskSetNetworkConfigurationOutputReference = EcsTaskSetNetworkConfigurationOutputReference; _e = JSII_RTTI_SYMBOL_1; EcsTaskSetNetworkConfigurationOutputReference[_e] = { fqn: "@cdktf/provider-aws.ecsTaskSet.EcsTaskSetNetworkConfigurationOutputReference", version: "19.50.0" }; function ecsTaskSetScaleToTerraform(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 { unit: cdktf.stringToTerraform(struct.unit), value: cdktf.numberToTerraform(struct.value), }; } exports.ecsTaskSetScaleToTerraform = ecsTaskSetScaleToTerraform; function ecsTaskSetScaleToHclTerraform(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 = { unit: { value: cdktf.stringToHclTerraform(struct.unit), isBlock: false, type: "simple", storageClassType: "string", }, value: { value: cdktf.numberToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.ecsTaskSetScaleToHclTerraform = ecsTaskSetScaleToHclTerraform; class EcsTaskSetScaleOutputReference 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._unit !== undefined) { hasAnyValues = true; internalValueResult.unit = this._unit; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._unit = undefined; this._value = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._unit = value.unit; this._value = value.value; } } get unit() { return this.getStringAttribute('unit'); } set unit(value) { this._unit = value; } resetUnit() { this._unit = undefined; } // Temporarily expose input value. Use with caution. get unitInput() { return this._unit; } get value() { return this.getNumberAttribute('value'); } set value(value) { this._value = value; } resetValue() { this._value = undefined; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.EcsTaskSetScaleOutputReference = EcsTaskSetScaleOutputReference; _f = JSII_RTTI_SYMBOL_1; EcsTaskSetScaleOutputReference[_f] = { fqn: "@cdktf/provider-aws.ecsTaskSet.EcsTaskSetScaleOutputReference", version: "19.50.0" }; function ecsTaskSetServiceRegistriesToTerraform(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 { container_name: cdktf.stringToTerraform(struct.containerName), container_port: cdktf.numberToTerraform(struct.containerPort), port: cdktf.numberToTerraform(struct.port), registry_arn: cdktf.stringToTerraform(struct.registryArn), }; } exports.ecsTaskSetServiceRegistriesToTerraform = ecsTaskSetServiceRegistriesToTerraform; function ecsTaskSetServiceRegistriesToHclTerraform(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 = { container_name: { value: cdktf.stringToHclTerraform(struct.containerName), isBlock: false, type: "simple", storageClassType: "string", }, container_port: { value: cdktf.numberToHclTerraform(struct.containerPort), isBlock: false, type: "simple", storageClassType: "number", }, port: { value: cdktf.numberToHclTerraform(struct.port), isBlock: false, type: "simple", storageClassType: "number", }, registry_arn: { value: cdktf.stringToHclTerraform(struct.registryArn), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.ecsTaskSetServiceRegistriesToHclTerraform = ecsTaskSetServiceRegistriesToHclTerraform; class EcsTaskSetServiceRegistriesOutputReference 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._containerName !== undefined) { hasAnyValues = true; internalValueResult.containerName = this._containerName; } if (this._containerPort !== undefined) { hasAnyValues = true; internalValueResult.containerPort = this._containerPort; } if (this._port !== undefined) { hasAnyValues = true; internalValueResult.port = this._port; } if (this._registryArn !== undefined) { hasAnyValues = true; internalValueResult.registryArn = this._registryArn; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._containerName = undefined; this._containerPort = undefined; this._port = undefined; this._registryArn = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._containerName = value.containerName; this._containerPort = value.containerPort; this._port = value.port; this._registryArn = value.registryArn; } } get containerName() { return this.getStringAttribute('container_name'); } set containerName(value) { this._containerName = value; } resetContainerName() { this._containerName = undefined; } // Temporarily expose input value. Use with caution. get containerNameInput() { return this._containerName; } get containerPort() { return this.getNumberAttribute('container_port'); } set containerPort(value) { this._containerPort = value; } resetContainerPort() { this._containerPort = undefined; } // Temporarily expose input value. Use with caution. get containerPortInput() { return this._containerPort; } get port() { return this.getNumberAttribute('port'); } set port(value) { this._port = value; } resetPort() { this._port = undefined; } // Temporarily expose input value. Use with caution. get portInput() { return this._port; } get registryArn() { return this.getStringAttribute('registry_arn'); } set registryArn(value) { this._registryArn = value; } // Temporarily expose input value. Use with caution. get registryArnInput() { return this._registryArn; } } exports.EcsTaskSetServiceRegistriesOutputReference = EcsTaskSetServiceRegistriesOutputReference; _g = JSII_RTTI_SYMBOL_1; EcsTaskSetServiceRegistriesOutputReference[_g] = { fqn: "@cdktf/provider-aws.ecsTaskSet.EcsTaskSetServiceRegistriesOutputReference", version: "19.50.0" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/ecs_task_set aws_ecs_task_set} */ class EcsTaskSet extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a EcsTaskSet 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 EcsTaskSet to import * @param importFromId The id of the existing EcsTaskSet that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/ecs_task_set#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the EcsTaskSet to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aws_ecs_task_set", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/aws/5.84.0/docs/resources/ecs_task_set aws_ecs_task_set} 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 EcsTaskSetConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'aws_ecs_task_set', 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 }); // capacity_provider_strategy - computed: false, optional: true, required: false this._capacityProviderStrategy = new EcsTaskSetCapacityProviderStrategyList(this, "capacity_provider_strategy", true); // load_balancer - computed: false, optional: true, required: false this._loadBalancer = new EcsTaskSetLoadBalancerList(this, "load_balancer", true); // network_configuration - computed: false, optional: true, required: false this._networkConfiguration = new EcsTaskSetNetworkConfigurationOutputReference(this, "network_configuration"); // scale - computed: false, optional: true, required: false this._scale = new EcsTaskSetScaleOutputReference(this, "scale"); // service_registries - computed: false, optional: true, required: false this._serviceRegistries = new EcsTaskSetServiceRegistriesOutputReference(this, "service_registries"); this._cluster = config.cluster; this._externalId = config.externalId; this._forceDelete = config.forceDelete; this._id = config.id; this._launchType = config.launchType; this._platformVersion = config.platformVersion; this._service = config.service; this._tags = config.tags; this._tagsAll = config.tagsAll; this._taskDefinition = config.taskDefinition; this._waitUntilStable = config.waitUntilStable; this._waitUntilStableTimeout = config.waitUntilStableTimeout; this._capacityProviderStrategy.internalValue = config.capacityProviderStrategy; this._loadBalancer.internalValue = config.loadBalancer; this._networkConfiguration.internalValue = config.networkConfiguration; this._scale.internalValue = config.scale; this._serviceRegistries.internalValue = config.serviceRegistries; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false get arn() { return this.getStringAttribute('arn'); } get cluster() { return this.getStringAttribute('cluster'); } set cluster(value) { this._cluster = value; } // Temporarily expose input value. Use with caution. get clusterInput() { return this._cluster; } get externalId() { return this.getStringAttribute('external_id'); } set externalId(value) { this._externalId = value; } resetExternalId() { this._externalId = undefined; } // Temporarily expose input value. Use with caution. get externalIdInput() { return this._externalId; } get forceDelete() { return this.getBooleanAttribute('force_delete'); } set forceDelete(value) { this._forceDelete = value; } resetForceDelete() { this._forceDelete = undefined; } // Temporarily expose input value. Use with caution. get forceDeleteInput() { return this._forceDelete; } get id() { return this.getStringAttribute('id'); } set id(value) { this._id = value; } resetId() { this._id = undefined; } // Temporarily expose input value. Use with caution. get idInput() { return this._id; } get launchType() { return this.getStringAttribute('launch_type'); } set launchType(value) { this._launchType = value; } resetLaunchType() { this._launchType = undefined; } // Temporarily expose input value. Use with caution. get launchTypeInput() { return this._launchType; } get platformVersion() { return this.getStringAttribute('platform_version'); } set platformVersion(value) { this._platformVersion = value; } resetPlatformVersion() { this._platformVersion = undefined; } // Temporarily expose input value. Use with caution. get platformVersionInput() { return this._platformVersion; } get service() { return this.getStringAttribute('service'); } set service(value) { this._service = value; } // Temporarily expose input value. Use with caution. get serviceInput() { return this._service; } // stability_status - computed: true, optional: false, required: false get stabilityStatus() { return this.getStringAttribute('stability_status'); } // status - computed: true, optional: false, required: false get status() { return this.getStringAttribute('status'); } 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.getStringMapAttribute('tags_all'); } set tagsAll(value) { this._tagsAll = value; } resetTagsAll() { this._tagsAll = undefined; } // Temporarily expose input value. Use with caution. get tagsAllInput() { return this._tagsAll; } get taskDefinition() { return this.getStringAttribute('task_definition'); } set taskDefinition(value) { this._taskDefinition = value; } // Temporarily expose input value. Use with caution. get taskDefinitionInput() { return this._taskDefinition; } // task_set_id - computed: true, optional: false, required: false get taskSetId() { return this.getStringAttribute('task_set_id'); } get waitUntilStable() { return this.getBooleanAttribute('wait_until_stable'); } set waitUntilStable(value) { this._waitUntilStable = value; } resetWaitUntilStable() { this._waitUntilStable = undefined; } // Temporarily expose input value. Use with caution. get waitUntilStableInput() { return this._waitUntilStable; } get waitUntilStableTimeout() { return this.getStringAttribute('wait_until_stable_timeout'); } set waitUntilStableTimeout(value) { this._waitUntilStableTimeout = value; } resetWaitUntilStableTimeout() { this._waitUntilStableTimeout = undefined; } // Temporarily expose input value. Use with caution. get waitUntilStableTimeoutInput() { return this._waitUntilStableTimeout; } get capacityProviderStrategy() { return this._capacityProviderStrategy; } putCapacityProviderStrategy(value) { this._capacityProviderStrategy.internalValue = value; } resetCapacityProviderStrategy() { this._capacityProviderStrategy.internalValue = undefined; } // Temporarily expose input value. Use with caution. get capacityProviderStrategyInput() { return this._capacityProviderStrategy.internalValue; } get loadBalancer() { return this._loadBalancer; } putLoadBalancer(value) { this._loadBalancer.internalValue = value; } resetLoadBalancer() { this._loadBalancer.internalValue = undefined; } // Temporarily expose input value. Use with caution. get loadBalancerInput() { return this._loadBalancer.internalValue; } get networkConfiguration() { return this._networkConfiguration; } putNetworkConfiguration(value) { this._networkConfiguration.internalValue = value; } resetNetworkConfiguration() { this._networkConfiguration.internalValue = undefined; } // Temporarily expose input value. Use with caution. get networkConfigurationInput() { return this._networkConfiguration.internalValue; } get scale() { return this._scale; } putScale(value) { this._scale.internalValue = value; } resetScale() { this._scale.internalValue = undefined; } // Temporarily expose input value. Use with caution. get scaleInput() { return this._scale.internalValue; } get serviceRegistries() { return this._serviceRegistries; } putServiceRegistries(value) { this._serviceRegistries.internalValue = value; } resetServiceRegistries() { this._serviceRegistries.internalValue = undefined; } // Temporarily expose input value. Use with caution. get serviceRegistriesInput() { return this._serviceRegistries.internalValue; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { cluster: cdktf.stringToTerraform(this._cluster), external_id: cdktf.stringToTerraform(this._externalId), force_delete: cdktf.booleanToTerraform(this._forceDelete), id: cdktf.stringToTerraform(this._id), launch_type: cdktf.stringToTerraform(this._launchType), platform_version: cdktf.stringToTerraform(this._platformVersion), service: cdktf.stringToTerraform(this._service), tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.stringToTerraform)(this._tagsAll), task_definition: cdktf.stringToTerraform(this._taskDefinition), wait_until_stable: cdktf.booleanToTerraform(this._waitUntilStable), wait_until_stable_timeout: cdktf.stringToTerraform(this._waitUntilStableTimeout), capacity_provider_strategy: cdktf.listMapper(ecsTaskSetCapacityProviderStrategyToTerraform, true)(this._capacityProviderStrategy.internalValue), load_balancer: cdktf.listMapper(ecsTaskSetLoadBalancerToTerraform, true)(this._loadBalancer.internalValue), network_configuration: ecsTaskSetNetworkConfigurationToTerraform(this._networkConfiguration.internalValue), scale: ecsTaskSetScaleToTerraform(this._scale.internalValue), service_registries: ecsTaskSetServiceRegistriesToTerraform(this._serviceRegistries.internalValue), }; } synthesizeHclAttributes() { const attrs = { cluster: { value: cdktf.stringToHclTerraform(this._cluster), isBlock: false, type: "simple", storageClassType: "string", }, external_id: { value: cdktf.stringToHclTerraform(this._externalId), isBlock: false, type: "simple", storageClassType: "string", }, force_delete: { value: cdktf.booleanToHclTerraform(this._forceDelete), isBlock: false, type: "simple", storageClassType: "boolean", }, id: { value: cdktf.stringToHclTerraform(this._id), isBlock: false, type: "simple", storageClassType: "string", }, launch_type: { value: cdktf.stringToHclTerraform(this._launchType), isBlock: false, type: "simple", storageClassType: "string", }, platform_version: { value: cdktf.stringToHclTerraform(this._platformVersion), isBlock: false, type: "simple", storageClassType: "string", }, service: { value: cdktf.stringToHclTerraform(this._service), isBlock: false, type: "simple", storageClassType: "string", }, tags: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._tags), isBlock: false, type: "map", storageClassType: "stringMap", }, tags_all: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._tagsAll), isBlock: false, type: "map", storageClassType: "stringMap", }, task_definition: { value: cdktf.stringToHclTerraform(this._taskDefinition), isBlock: false, type: "simple", storageClassType: "string", }, wait_until_stable: { value: cdktf.booleanToHclTerraform(this._waitUntilStable), isBlock: false, type: "simple", storageClassType: "boolean", }, wait_until_stable_timeout: { value: cdktf.stringToHclTerraform(this._waitUntilStableTimeout), isBlock: false, type: "simple", storageClassType: "string", }, capacity_provider_strategy: { value: cdktf.listMapperHcl(ecsTaskSetCapacityProviderStrategyToHclTerraform, true)(this._capacityProviderStrategy.internalValue), isBlock: true, type: "set", storageClassType: "EcsTaskSetCapacityProviderStrategyList", }, load_balancer: { value: cdktf.listMapperHcl(ecsTaskSetLoadBalancerToHclTerraform, true)(this._loadBalancer.internalValue), isBlock: true, type: "set", storageClassType: "EcsTaskSetLoadBalancerList", }, network_configuration: { value: ecsTaskSetNetworkConfigurationToHclTerraform(this._networkConfiguration.internalValue), isBlock: true, type: "list", storageClassType: "EcsTaskSetNetworkConfigurationList", }, scale: { value: ecsTaskSetScaleToHclTerraform(this._scale.internalValue), isBlock: true, type: "list", storageClassType: "EcsTaskSetScaleList", }, service_registries: { value: ecsTaskSetServiceRegistriesToHclTerraform(this._serviceRegistries.internalValue), isBlock: true, type: "list", storageClassType: "EcsTaskSetServiceRegistriesList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } } exports.EcsTaskSet = EcsTaskSet; _h = JSII_RTTI_SYMBOL_1; EcsTaskSet[_h] = { fqn: "@cdktf/provider-aws.ecsTaskSet.EcsTaskSet", version: "19.50.0" }; // ================= // STATIC PROPERTIES // ================= EcsTaskSet.tfResourceType = "aws_ecs_task_set"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290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