// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS EC2 Container Service */ export interface EcsTaskSetConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#cluster EcsTaskSet#cluster} */ readonly cluster: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#external_id EcsTaskSet#external_id} */ readonly externalId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#force_delete EcsTaskSet#force_delete} */ readonly forceDelete?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#launch_type EcsTaskSet#launch_type} */ readonly launchType?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#platform_version EcsTaskSet#platform_version} */ readonly platformVersion?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#service EcsTaskSet#service} */ readonly service: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#tags EcsTaskSet#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#tags_all EcsTaskSet#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#task_definition EcsTaskSet#task_definition} */ readonly taskDefinition: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#wait_until_stable EcsTaskSet#wait_until_stable} */ readonly waitUntilStable?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#wait_until_stable_timeout EcsTaskSet#wait_until_stable_timeout} */ readonly waitUntilStableTimeout?: string; /** * capacity_provider_strategy block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#capacity_provider_strategy EcsTaskSet#capacity_provider_strategy} */ readonly capacityProviderStrategy?: EcsTaskSetCapacityProviderStrategy[]; /** * load_balancer block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#load_balancer EcsTaskSet#load_balancer} */ readonly loadBalancer?: EcsTaskSetLoadBalancer[]; /** * network_configuration block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#network_configuration EcsTaskSet#network_configuration} */ readonly networkConfiguration?: EcsTaskSetNetworkConfiguration; /** * scale block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#scale EcsTaskSet#scale} */ readonly scale?: EcsTaskSetScale; /** * service_registries block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#service_registries EcsTaskSet#service_registries} */ readonly serviceRegistries?: EcsTaskSetServiceRegistries; } export interface EcsTaskSetCapacityProviderStrategy { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#base EcsTaskSet#base} */ readonly base?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#capacity_provider EcsTaskSet#capacity_provider} */ readonly capacityProvider: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#weight EcsTaskSet#weight} */ readonly weight: number; } export function ecsTaskSetCapacityProviderStrategyToTerraform(struct?: EcsTaskSetCapacityProviderStrategy): any { if (!cdktf.canInspect(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), } } export interface EcsTaskSetLoadBalancer { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#container_name EcsTaskSet#container_name} */ readonly containerName: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#container_port EcsTaskSet#container_port} */ readonly containerPort?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#load_balancer_name EcsTaskSet#load_balancer_name} */ readonly loadBalancerName?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#target_group_arn EcsTaskSet#target_group_arn} */ readonly targetGroupArn?: string; } export function ecsTaskSetLoadBalancerToTerraform(struct?: EcsTaskSetLoadBalancer): any { if (!cdktf.canInspect(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), } } export interface EcsTaskSetNetworkConfiguration { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#assign_public_ip EcsTaskSet#assign_public_ip} */ readonly assignPublicIp?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#security_groups EcsTaskSet#security_groups} */ readonly securityGroups?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#subnets EcsTaskSet#subnets} */ readonly subnets: string[]; } export function ecsTaskSetNetworkConfigurationToTerraform(struct?: EcsTaskSetNetworkConfigurationOutputReference | EcsTaskSetNetworkConfiguration): any { if (!cdktf.canInspect(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)(struct!.securityGroups), subnets: cdktf.listMapper(cdktf.stringToTerraform)(struct!.subnets), } } export class EcsTaskSetNetworkConfigurationOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): EcsTaskSetNetworkConfiguration | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; 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; } public set internalValue(value: EcsTaskSetNetworkConfiguration | undefined) { 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; } } // assign_public_ip - computed: false, optional: true, required: false private _assignPublicIp?: boolean | cdktf.IResolvable; public get assignPublicIp() { return this.getBooleanAttribute('assign_public_ip') as any; } public set assignPublicIp(value: boolean | cdktf.IResolvable) { this._assignPublicIp = value; } public resetAssignPublicIp() { this._assignPublicIp = undefined; } // Temporarily expose input value. Use with caution. public get assignPublicIpInput() { return this._assignPublicIp; } // security_groups - computed: false, optional: true, required: false private _securityGroups?: string[]; public get securityGroups() { return this.getListAttribute('security_groups'); } public set securityGroups(value: string[]) { this._securityGroups = value; } public resetSecurityGroups() { this._securityGroups = undefined; } // Temporarily expose input value. Use with caution. public get securityGroupsInput() { return this._securityGroups; } // subnets - computed: false, optional: false, required: true private _subnets?: string[]; public get subnets() { return this.getListAttribute('subnets'); } public set subnets(value: string[]) { this._subnets = value; } // Temporarily expose input value. Use with caution. public get subnetsInput() { return this._subnets; } } export interface EcsTaskSetScale { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#unit EcsTaskSet#unit} */ readonly unit?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#value EcsTaskSet#value} */ readonly value?: number; } export function ecsTaskSetScaleToTerraform(struct?: EcsTaskSetScaleOutputReference | EcsTaskSetScale): any { if (!cdktf.canInspect(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), } } export class EcsTaskSetScaleOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): EcsTaskSetScale | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._unit !== undefined) { hasAnyValues = true; internalValueResult.unit = this._unit; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: EcsTaskSetScale | undefined) { 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; } } // unit - computed: false, optional: true, required: false private _unit?: string; public get unit() { return this.getStringAttribute('unit'); } public set unit(value: string) { this._unit = value; } public resetUnit() { this._unit = undefined; } // Temporarily expose input value. Use with caution. public get unitInput() { return this._unit; } // value - computed: false, optional: true, required: false private _value?: number; public get value() { return this.getNumberAttribute('value'); } public set value(value: number) { this._value = value; } public resetValue() { this._value = undefined; } // Temporarily expose input value. Use with caution. public get valueInput() { return this._value; } } export interface EcsTaskSetServiceRegistries { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#container_name EcsTaskSet#container_name} */ readonly containerName?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#container_port EcsTaskSet#container_port} */ readonly containerPort?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#port EcsTaskSet#port} */ readonly port?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html#registry_arn EcsTaskSet#registry_arn} */ readonly registryArn: string; } export function ecsTaskSetServiceRegistriesToTerraform(struct?: EcsTaskSetServiceRegistriesOutputReference | EcsTaskSetServiceRegistries): any { if (!cdktf.canInspect(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), } } export class EcsTaskSetServiceRegistriesOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): EcsTaskSetServiceRegistries | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; 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; } public set internalValue(value: EcsTaskSetServiceRegistries | undefined) { 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; } } // container_name - computed: false, optional: true, required: false private _containerName?: string; public get containerName() { return this.getStringAttribute('container_name'); } public set containerName(value: string) { this._containerName = value; } public resetContainerName() { this._containerName = undefined; } // Temporarily expose input value. Use with caution. public get containerNameInput() { return this._containerName; } // container_port - computed: false, optional: true, required: false private _containerPort?: number; public get containerPort() { return this.getNumberAttribute('container_port'); } public set containerPort(value: number) { this._containerPort = value; } public resetContainerPort() { this._containerPort = undefined; } // Temporarily expose input value. Use with caution. public get containerPortInput() { return this._containerPort; } // port - computed: false, optional: true, required: false private _port?: number; public get port() { return this.getNumberAttribute('port'); } public set port(value: number) { this._port = value; } public resetPort() { this._port = undefined; } // Temporarily expose input value. Use with caution. public get portInput() { return this._port; } // registry_arn - computed: false, optional: false, required: true private _registryArn?: string; public get registryArn() { return this.getStringAttribute('registry_arn'); } public set registryArn(value: string) { this._registryArn = value; } // Temporarily expose input value. Use with caution. public get registryArnInput() { return this._registryArn; } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html aws_ecs_task_set} */ export class EcsTaskSet extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_ecs_task_set"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/ecs_task_set.html 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 */ public constructor(scope: Construct, id: string, config: EcsTaskSetConfig) { super(scope, id, { terraformResourceType: 'aws_ecs_task_set', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._cluster = config.cluster; this._externalId = config.externalId; this._forceDelete = config.forceDelete; 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 = config.capacityProviderStrategy; this._loadBalancer = 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 public get arn() { return this.getStringAttribute('arn'); } // cluster - computed: false, optional: false, required: true private _cluster?: string; public get cluster() { return this.getStringAttribute('cluster'); } public set cluster(value: string) { this._cluster = value; } // Temporarily expose input value. Use with caution. public get clusterInput() { return this._cluster; } // external_id - computed: true, optional: true, required: false private _externalId?: string; public get externalId() { return this.getStringAttribute('external_id'); } public set externalId(value: string) { this._externalId = value; } public resetExternalId() { this._externalId = undefined; } // Temporarily expose input value. Use with caution. public get externalIdInput() { return this._externalId; } // force_delete - computed: false, optional: true, required: false private _forceDelete?: boolean | cdktf.IResolvable; public get forceDelete() { return this.getBooleanAttribute('force_delete') as any; } public set forceDelete(value: boolean | cdktf.IResolvable) { this._forceDelete = value; } public resetForceDelete() { this._forceDelete = undefined; } // Temporarily expose input value. Use with caution. public get forceDeleteInput() { return this._forceDelete; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // launch_type - computed: true, optional: true, required: false private _launchType?: string; public get launchType() { return this.getStringAttribute('launch_type'); } public set launchType(value: string) { this._launchType = value; } public resetLaunchType() { this._launchType = undefined; } // Temporarily expose input value. Use with caution. public get launchTypeInput() { return this._launchType; } // platform_version - computed: true, optional: true, required: false private _platformVersion?: string; public get platformVersion() { return this.getStringAttribute('platform_version'); } public set platformVersion(value: string) { this._platformVersion = value; } public resetPlatformVersion() { this._platformVersion = undefined; } // Temporarily expose input value. Use with caution. public get platformVersionInput() { return this._platformVersion; } // service - computed: false, optional: false, required: true private _service?: string; public get service() { return this.getStringAttribute('service'); } public set service(value: string) { this._service = value; } // Temporarily expose input value. Use with caution. public get serviceInput() { return this._service; } // stability_status - computed: true, optional: false, required: false public get stabilityStatus() { return this.getStringAttribute('stability_status'); } // status - computed: true, optional: false, required: false public get status() { return this.getStringAttribute('status'); } // tags - computed: false, optional: true, required: false private _tags?: { [key: string]: string } | cdktf.IResolvable; public get tags() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags') as any; } public set tags(value: { [key: string]: string } | cdktf.IResolvable) { this._tags = value; } public resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. public get tagsInput() { return this._tags; } // tags_all - computed: true, optional: true, required: false private _tagsAll?: { [key: string]: string } | cdktf.IResolvable; public get tagsAll() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags_all') as any; } public set tagsAll(value: { [key: string]: string } | cdktf.IResolvable) { this._tagsAll = value; } public resetTagsAll() { this._tagsAll = undefined; } // Temporarily expose input value. Use with caution. public get tagsAllInput() { return this._tagsAll; } // task_definition - computed: false, optional: false, required: true private _taskDefinition?: string; public get taskDefinition() { return this.getStringAttribute('task_definition'); } public set taskDefinition(value: string) { this._taskDefinition = value; } // Temporarily expose input value. Use with caution. public get taskDefinitionInput() { return this._taskDefinition; } // task_set_id - computed: true, optional: false, required: false public get taskSetId() { return this.getStringAttribute('task_set_id'); } // wait_until_stable - computed: false, optional: true, required: false private _waitUntilStable?: boolean | cdktf.IResolvable; public get waitUntilStable() { return this.getBooleanAttribute('wait_until_stable') as any; } public set waitUntilStable(value: boolean | cdktf.IResolvable) { this._waitUntilStable = value; } public resetWaitUntilStable() { this._waitUntilStable = undefined; } // Temporarily expose input value. Use with caution. public get waitUntilStableInput() { return this._waitUntilStable; } // wait_until_stable_timeout - computed: false, optional: true, required: false private _waitUntilStableTimeout?: string; public get waitUntilStableTimeout() { return this.getStringAttribute('wait_until_stable_timeout'); } public set waitUntilStableTimeout(value: string) { this._waitUntilStableTimeout = value; } public resetWaitUntilStableTimeout() { this._waitUntilStableTimeout = undefined; } // Temporarily expose input value. Use with caution. public get waitUntilStableTimeoutInput() { return this._waitUntilStableTimeout; } // capacity_provider_strategy - computed: false, optional: true, required: false private _capacityProviderStrategy?: EcsTaskSetCapacityProviderStrategy[]; public get capacityProviderStrategy() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('capacity_provider_strategy') as any; } public set capacityProviderStrategy(value: EcsTaskSetCapacityProviderStrategy[]) { this._capacityProviderStrategy = value; } public resetCapacityProviderStrategy() { this._capacityProviderStrategy = undefined; } // Temporarily expose input value. Use with caution. public get capacityProviderStrategyInput() { return this._capacityProviderStrategy; } // load_balancer - computed: false, optional: true, required: false private _loadBalancer?: EcsTaskSetLoadBalancer[]; public get loadBalancer() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('load_balancer') as any; } public set loadBalancer(value: EcsTaskSetLoadBalancer[]) { this._loadBalancer = value; } public resetLoadBalancer() { this._loadBalancer = undefined; } // Temporarily expose input value. Use with caution. public get loadBalancerInput() { return this._loadBalancer; } // network_configuration - computed: false, optional: true, required: false private _networkConfiguration = new EcsTaskSetNetworkConfigurationOutputReference(this as any, "network_configuration", true); public get networkConfiguration() { return this._networkConfiguration; } public putNetworkConfiguration(value: EcsTaskSetNetworkConfiguration) { this._networkConfiguration.internalValue = value; } public resetNetworkConfiguration() { this._networkConfiguration.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get networkConfigurationInput() { return this._networkConfiguration.internalValue; } // scale - computed: false, optional: true, required: false private _scale = new EcsTaskSetScaleOutputReference(this as any, "scale", true); public get scale() { return this._scale; } public putScale(value: EcsTaskSetScale) { this._scale.internalValue = value; } public resetScale() { this._scale.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get scaleInput() { return this._scale.internalValue; } // service_registries - computed: false, optional: true, required: false private _serviceRegistries = new EcsTaskSetServiceRegistriesOutputReference(this as any, "service_registries", true); public get serviceRegistries() { return this._serviceRegistries; } public putServiceRegistries(value: EcsTaskSetServiceRegistries) { this._serviceRegistries.internalValue = value; } public resetServiceRegistries() { this._serviceRegistries.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get serviceRegistriesInput() { return this._serviceRegistries.internalValue; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { cluster: cdktf.stringToTerraform(this._cluster), external_id: cdktf.stringToTerraform(this._externalId), force_delete: cdktf.booleanToTerraform(this._forceDelete), launch_type: cdktf.stringToTerraform(this._launchType), platform_version: cdktf.stringToTerraform(this._platformVersion), service: cdktf.stringToTerraform(this._service), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(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)(this._capacityProviderStrategy), load_balancer: cdktf.listMapper(ecsTaskSetLoadBalancerToTerraform)(this._loadBalancer), network_configuration: ecsTaskSetNetworkConfigurationToTerraform(this._networkConfiguration.internalValue), scale: ecsTaskSetScaleToTerraform(this._scale.internalValue), service_registries: ecsTaskSetServiceRegistriesToTerraform(this._serviceRegistries.internalValue), }; } }