// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Auto Scaling */ export interface AutoscalingGroupConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#availability_zones AutoscalingGroup#availability_zones} */ readonly availabilityZones?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#capacity_rebalance AutoscalingGroup#capacity_rebalance} */ readonly capacityRebalance?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#default_cooldown AutoscalingGroup#default_cooldown} */ readonly defaultCooldown?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#desired_capacity AutoscalingGroup#desired_capacity} */ readonly desiredCapacity?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#enabled_metrics AutoscalingGroup#enabled_metrics} */ readonly enabledMetrics?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#force_delete AutoscalingGroup#force_delete} */ readonly forceDelete?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#force_delete_warm_pool AutoscalingGroup#force_delete_warm_pool} */ readonly forceDeleteWarmPool?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#health_check_grace_period AutoscalingGroup#health_check_grace_period} */ readonly healthCheckGracePeriod?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#health_check_type AutoscalingGroup#health_check_type} */ readonly healthCheckType?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#launch_configuration AutoscalingGroup#launch_configuration} */ readonly launchConfiguration?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#load_balancers AutoscalingGroup#load_balancers} */ readonly loadBalancers?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#max_instance_lifetime AutoscalingGroup#max_instance_lifetime} */ readonly maxInstanceLifetime?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#max_size AutoscalingGroup#max_size} */ readonly maxSize: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#metrics_granularity AutoscalingGroup#metrics_granularity} */ readonly metricsGranularity?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#min_elb_capacity AutoscalingGroup#min_elb_capacity} */ readonly minElbCapacity?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#min_size AutoscalingGroup#min_size} */ readonly minSize: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#name AutoscalingGroup#name} */ readonly name?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#name_prefix AutoscalingGroup#name_prefix} */ readonly namePrefix?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#placement_group AutoscalingGroup#placement_group} */ readonly placementGroup?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#protect_from_scale_in AutoscalingGroup#protect_from_scale_in} */ readonly protectFromScaleIn?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#service_linked_role_arn AutoscalingGroup#service_linked_role_arn} */ readonly serviceLinkedRoleArn?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#suspended_processes AutoscalingGroup#suspended_processes} */ readonly suspendedProcesses?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#tags AutoscalingGroup#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#target_group_arns AutoscalingGroup#target_group_arns} */ readonly targetGroupArns?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#termination_policies AutoscalingGroup#termination_policies} */ readonly terminationPolicies?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#vpc_zone_identifier AutoscalingGroup#vpc_zone_identifier} */ readonly vpcZoneIdentifier?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#wait_for_capacity_timeout AutoscalingGroup#wait_for_capacity_timeout} */ readonly waitForCapacityTimeout?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#wait_for_elb_capacity AutoscalingGroup#wait_for_elb_capacity} */ readonly waitForElbCapacity?: number; /** * initial_lifecycle_hook block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#initial_lifecycle_hook AutoscalingGroup#initial_lifecycle_hook} */ readonly initialLifecycleHook?: AutoscalingGroupInitialLifecycleHook[]; /** * instance_refresh block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#instance_refresh AutoscalingGroup#instance_refresh} */ readonly instanceRefresh?: AutoscalingGroupInstanceRefresh; /** * launch_template block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#launch_template AutoscalingGroup#launch_template} */ readonly launchTemplate?: AutoscalingGroupLaunchTemplate; /** * mixed_instances_policy block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#mixed_instances_policy AutoscalingGroup#mixed_instances_policy} */ readonly mixedInstancesPolicy?: AutoscalingGroupMixedInstancesPolicy; /** * tag block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#tag AutoscalingGroup#tag} */ readonly tag?: AutoscalingGroupTag[]; /** * timeouts block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#timeouts AutoscalingGroup#timeouts} */ readonly timeouts?: AutoscalingGroupTimeouts; /** * warm_pool block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#warm_pool AutoscalingGroup#warm_pool} */ readonly warmPool?: AutoscalingGroupWarmPool; } export interface AutoscalingGroupInitialLifecycleHook { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#default_result AutoscalingGroup#default_result} */ readonly defaultResult?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#heartbeat_timeout AutoscalingGroup#heartbeat_timeout} */ readonly heartbeatTimeout?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#lifecycle_transition AutoscalingGroup#lifecycle_transition} */ readonly lifecycleTransition: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#name AutoscalingGroup#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#notification_metadata AutoscalingGroup#notification_metadata} */ readonly notificationMetadata?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#notification_target_arn AutoscalingGroup#notification_target_arn} */ readonly notificationTargetArn?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#role_arn AutoscalingGroup#role_arn} */ readonly roleArn?: string; } export function autoscalingGroupInitialLifecycleHookToTerraform(struct?: AutoscalingGroupInitialLifecycleHook): 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 { default_result: cdktf.stringToTerraform(struct!.defaultResult), heartbeat_timeout: cdktf.numberToTerraform(struct!.heartbeatTimeout), lifecycle_transition: cdktf.stringToTerraform(struct!.lifecycleTransition), name: cdktf.stringToTerraform(struct!.name), notification_metadata: cdktf.stringToTerraform(struct!.notificationMetadata), notification_target_arn: cdktf.stringToTerraform(struct!.notificationTargetArn), role_arn: cdktf.stringToTerraform(struct!.roleArn), } } export interface AutoscalingGroupInstanceRefreshPreferences { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#checkpoint_delay AutoscalingGroup#checkpoint_delay} */ readonly checkpointDelay?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#checkpoint_percentages AutoscalingGroup#checkpoint_percentages} */ readonly checkpointPercentages?: number[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#instance_warmup AutoscalingGroup#instance_warmup} */ readonly instanceWarmup?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#min_healthy_percentage AutoscalingGroup#min_healthy_percentage} */ readonly minHealthyPercentage?: number; } export function autoscalingGroupInstanceRefreshPreferencesToTerraform(struct?: AutoscalingGroupInstanceRefreshPreferencesOutputReference | AutoscalingGroupInstanceRefreshPreferences): 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 { checkpoint_delay: cdktf.stringToTerraform(struct!.checkpointDelay), checkpoint_percentages: cdktf.listMapper(cdktf.numberToTerraform)(struct!.checkpointPercentages), instance_warmup: cdktf.stringToTerraform(struct!.instanceWarmup), min_healthy_percentage: cdktf.numberToTerraform(struct!.minHealthyPercentage), } } export class AutoscalingGroupInstanceRefreshPreferencesOutputReference 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(): AutoscalingGroupInstanceRefreshPreferences | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._checkpointDelay !== undefined) { hasAnyValues = true; internalValueResult.checkpointDelay = this._checkpointDelay; } if (this._checkpointPercentages !== undefined) { hasAnyValues = true; internalValueResult.checkpointPercentages = this._checkpointPercentages; } if (this._instanceWarmup !== undefined) { hasAnyValues = true; internalValueResult.instanceWarmup = this._instanceWarmup; } if (this._minHealthyPercentage !== undefined) { hasAnyValues = true; internalValueResult.minHealthyPercentage = this._minHealthyPercentage; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AutoscalingGroupInstanceRefreshPreferences | undefined) { if (value === undefined) { this.isEmptyObject = false; this._checkpointDelay = undefined; this._checkpointPercentages = undefined; this._instanceWarmup = undefined; this._minHealthyPercentage = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._checkpointDelay = value.checkpointDelay; this._checkpointPercentages = value.checkpointPercentages; this._instanceWarmup = value.instanceWarmup; this._minHealthyPercentage = value.minHealthyPercentage; } } // checkpoint_delay - computed: false, optional: true, required: false private _checkpointDelay?: string; public get checkpointDelay() { return this.getStringAttribute('checkpoint_delay'); } public set checkpointDelay(value: string) { this._checkpointDelay = value; } public resetCheckpointDelay() { this._checkpointDelay = undefined; } // Temporarily expose input value. Use with caution. public get checkpointDelayInput() { return this._checkpointDelay; } // checkpoint_percentages - computed: false, optional: true, required: false private _checkpointPercentages?: number[]; public get checkpointPercentages() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('checkpoint_percentages') as any; } public set checkpointPercentages(value: number[]) { this._checkpointPercentages = value; } public resetCheckpointPercentages() { this._checkpointPercentages = undefined; } // Temporarily expose input value. Use with caution. public get checkpointPercentagesInput() { return this._checkpointPercentages; } // instance_warmup - computed: false, optional: true, required: false private _instanceWarmup?: string; public get instanceWarmup() { return this.getStringAttribute('instance_warmup'); } public set instanceWarmup(value: string) { this._instanceWarmup = value; } public resetInstanceWarmup() { this._instanceWarmup = undefined; } // Temporarily expose input value. Use with caution. public get instanceWarmupInput() { return this._instanceWarmup; } // min_healthy_percentage - computed: false, optional: true, required: false private _minHealthyPercentage?: number; public get minHealthyPercentage() { return this.getNumberAttribute('min_healthy_percentage'); } public set minHealthyPercentage(value: number) { this._minHealthyPercentage = value; } public resetMinHealthyPercentage() { this._minHealthyPercentage = undefined; } // Temporarily expose input value. Use with caution. public get minHealthyPercentageInput() { return this._minHealthyPercentage; } } export interface AutoscalingGroupInstanceRefresh { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#strategy AutoscalingGroup#strategy} */ readonly strategy: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#triggers AutoscalingGroup#triggers} */ readonly triggers?: string[]; /** * preferences block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#preferences AutoscalingGroup#preferences} */ readonly preferences?: AutoscalingGroupInstanceRefreshPreferences; } export function autoscalingGroupInstanceRefreshToTerraform(struct?: AutoscalingGroupInstanceRefreshOutputReference | AutoscalingGroupInstanceRefresh): 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 { strategy: cdktf.stringToTerraform(struct!.strategy), triggers: cdktf.listMapper(cdktf.stringToTerraform)(struct!.triggers), preferences: autoscalingGroupInstanceRefreshPreferencesToTerraform(struct!.preferences), } } export class AutoscalingGroupInstanceRefreshOutputReference 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(): AutoscalingGroupInstanceRefresh | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._strategy !== undefined) { hasAnyValues = true; internalValueResult.strategy = this._strategy; } if (this._triggers !== undefined) { hasAnyValues = true; internalValueResult.triggers = this._triggers; } if (this._preferences?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.preferences = this._preferences?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AutoscalingGroupInstanceRefresh | undefined) { if (value === undefined) { this.isEmptyObject = false; this._strategy = undefined; this._triggers = undefined; this._preferences.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._strategy = value.strategy; this._triggers = value.triggers; this._preferences.internalValue = value.preferences; } } // strategy - computed: false, optional: false, required: true private _strategy?: string; public get strategy() { return this.getStringAttribute('strategy'); } public set strategy(value: string) { this._strategy = value; } // Temporarily expose input value. Use with caution. public get strategyInput() { return this._strategy; } // triggers - computed: false, optional: true, required: false private _triggers?: string[]; public get triggers() { return this.getListAttribute('triggers'); } public set triggers(value: string[]) { this._triggers = value; } public resetTriggers() { this._triggers = undefined; } // Temporarily expose input value. Use with caution. public get triggersInput() { return this._triggers; } // preferences - computed: false, optional: true, required: false private _preferences = new AutoscalingGroupInstanceRefreshPreferencesOutputReference(this as any, "preferences", true); public get preferences() { return this._preferences; } public putPreferences(value: AutoscalingGroupInstanceRefreshPreferences) { this._preferences.internalValue = value; } public resetPreferences() { this._preferences.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get preferencesInput() { return this._preferences.internalValue; } } export interface AutoscalingGroupLaunchTemplate { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#id AutoscalingGroup#id} */ readonly id?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#name AutoscalingGroup#name} */ readonly name?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#version AutoscalingGroup#version} */ readonly version?: string; } export function autoscalingGroupLaunchTemplateToTerraform(struct?: AutoscalingGroupLaunchTemplateOutputReference | AutoscalingGroupLaunchTemplate): 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 { name: cdktf.stringToTerraform(struct!.name), version: cdktf.stringToTerraform(struct!.version), } } export class AutoscalingGroupLaunchTemplateOutputReference 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(): AutoscalingGroupLaunchTemplate | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._version !== undefined) { hasAnyValues = true; internalValueResult.version = this._version; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AutoscalingGroupLaunchTemplate | undefined) { if (value === undefined) { this.isEmptyObject = false; this._name = undefined; this._version = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._name = value.name; this._version = value.version; } } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // name - computed: true, optional: true, required: false private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } public resetName() { this._name = undefined; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // version - computed: false, optional: true, required: false private _version?: string; public get version() { return this.getStringAttribute('version'); } public set version(value: string) { this._version = value; } public resetVersion() { this._version = undefined; } // Temporarily expose input value. Use with caution. public get versionInput() { return this._version; } } export interface AutoscalingGroupMixedInstancesPolicyInstancesDistribution { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#on_demand_allocation_strategy AutoscalingGroup#on_demand_allocation_strategy} */ readonly onDemandAllocationStrategy?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#on_demand_base_capacity AutoscalingGroup#on_demand_base_capacity} */ readonly onDemandBaseCapacity?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#on_demand_percentage_above_base_capacity AutoscalingGroup#on_demand_percentage_above_base_capacity} */ readonly onDemandPercentageAboveBaseCapacity?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#spot_allocation_strategy AutoscalingGroup#spot_allocation_strategy} */ readonly spotAllocationStrategy?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#spot_instance_pools AutoscalingGroup#spot_instance_pools} */ readonly spotInstancePools?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#spot_max_price AutoscalingGroup#spot_max_price} */ readonly spotMaxPrice?: string; } export function autoscalingGroupMixedInstancesPolicyInstancesDistributionToTerraform(struct?: AutoscalingGroupMixedInstancesPolicyInstancesDistributionOutputReference | AutoscalingGroupMixedInstancesPolicyInstancesDistribution): 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 { on_demand_allocation_strategy: cdktf.stringToTerraform(struct!.onDemandAllocationStrategy), on_demand_base_capacity: cdktf.numberToTerraform(struct!.onDemandBaseCapacity), on_demand_percentage_above_base_capacity: cdktf.numberToTerraform(struct!.onDemandPercentageAboveBaseCapacity), spot_allocation_strategy: cdktf.stringToTerraform(struct!.spotAllocationStrategy), spot_instance_pools: cdktf.numberToTerraform(struct!.spotInstancePools), spot_max_price: cdktf.stringToTerraform(struct!.spotMaxPrice), } } export class AutoscalingGroupMixedInstancesPolicyInstancesDistributionOutputReference 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(): AutoscalingGroupMixedInstancesPolicyInstancesDistribution | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._onDemandAllocationStrategy !== undefined) { hasAnyValues = true; internalValueResult.onDemandAllocationStrategy = this._onDemandAllocationStrategy; } if (this._onDemandBaseCapacity !== undefined) { hasAnyValues = true; internalValueResult.onDemandBaseCapacity = this._onDemandBaseCapacity; } if (this._onDemandPercentageAboveBaseCapacity !== undefined) { hasAnyValues = true; internalValueResult.onDemandPercentageAboveBaseCapacity = this._onDemandPercentageAboveBaseCapacity; } if (this._spotAllocationStrategy !== undefined) { hasAnyValues = true; internalValueResult.spotAllocationStrategy = this._spotAllocationStrategy; } if (this._spotInstancePools !== undefined) { hasAnyValues = true; internalValueResult.spotInstancePools = this._spotInstancePools; } if (this._spotMaxPrice !== undefined) { hasAnyValues = true; internalValueResult.spotMaxPrice = this._spotMaxPrice; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AutoscalingGroupMixedInstancesPolicyInstancesDistribution | undefined) { if (value === undefined) { this.isEmptyObject = false; this._onDemandAllocationStrategy = undefined; this._onDemandBaseCapacity = undefined; this._onDemandPercentageAboveBaseCapacity = undefined; this._spotAllocationStrategy = undefined; this._spotInstancePools = undefined; this._spotMaxPrice = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._onDemandAllocationStrategy = value.onDemandAllocationStrategy; this._onDemandBaseCapacity = value.onDemandBaseCapacity; this._onDemandPercentageAboveBaseCapacity = value.onDemandPercentageAboveBaseCapacity; this._spotAllocationStrategy = value.spotAllocationStrategy; this._spotInstancePools = value.spotInstancePools; this._spotMaxPrice = value.spotMaxPrice; } } // on_demand_allocation_strategy - computed: true, optional: true, required: false private _onDemandAllocationStrategy?: string; public get onDemandAllocationStrategy() { return this.getStringAttribute('on_demand_allocation_strategy'); } public set onDemandAllocationStrategy(value: string) { this._onDemandAllocationStrategy = value; } public resetOnDemandAllocationStrategy() { this._onDemandAllocationStrategy = undefined; } // Temporarily expose input value. Use with caution. public get onDemandAllocationStrategyInput() { return this._onDemandAllocationStrategy; } // on_demand_base_capacity - computed: true, optional: true, required: false private _onDemandBaseCapacity?: number; public get onDemandBaseCapacity() { return this.getNumberAttribute('on_demand_base_capacity'); } public set onDemandBaseCapacity(value: number) { this._onDemandBaseCapacity = value; } public resetOnDemandBaseCapacity() { this._onDemandBaseCapacity = undefined; } // Temporarily expose input value. Use with caution. public get onDemandBaseCapacityInput() { return this._onDemandBaseCapacity; } // on_demand_percentage_above_base_capacity - computed: true, optional: true, required: false private _onDemandPercentageAboveBaseCapacity?: number; public get onDemandPercentageAboveBaseCapacity() { return this.getNumberAttribute('on_demand_percentage_above_base_capacity'); } public set onDemandPercentageAboveBaseCapacity(value: number) { this._onDemandPercentageAboveBaseCapacity = value; } public resetOnDemandPercentageAboveBaseCapacity() { this._onDemandPercentageAboveBaseCapacity = undefined; } // Temporarily expose input value. Use with caution. public get onDemandPercentageAboveBaseCapacityInput() { return this._onDemandPercentageAboveBaseCapacity; } // spot_allocation_strategy - computed: true, optional: true, required: false private _spotAllocationStrategy?: string; public get spotAllocationStrategy() { return this.getStringAttribute('spot_allocation_strategy'); } public set spotAllocationStrategy(value: string) { this._spotAllocationStrategy = value; } public resetSpotAllocationStrategy() { this._spotAllocationStrategy = undefined; } // Temporarily expose input value. Use with caution. public get spotAllocationStrategyInput() { return this._spotAllocationStrategy; } // spot_instance_pools - computed: true, optional: true, required: false private _spotInstancePools?: number; public get spotInstancePools() { return this.getNumberAttribute('spot_instance_pools'); } public set spotInstancePools(value: number) { this._spotInstancePools = value; } public resetSpotInstancePools() { this._spotInstancePools = undefined; } // Temporarily expose input value. Use with caution. public get spotInstancePoolsInput() { return this._spotInstancePools; } // spot_max_price - computed: false, optional: true, required: false private _spotMaxPrice?: string; public get spotMaxPrice() { return this.getStringAttribute('spot_max_price'); } public set spotMaxPrice(value: string) { this._spotMaxPrice = value; } public resetSpotMaxPrice() { this._spotMaxPrice = undefined; } // Temporarily expose input value. Use with caution. public get spotMaxPriceInput() { return this._spotMaxPrice; } } export interface AutoscalingGroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#launch_template_id AutoscalingGroup#launch_template_id} */ readonly launchTemplateId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#launch_template_name AutoscalingGroup#launch_template_name} */ readonly launchTemplateName?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#version AutoscalingGroup#version} */ readonly version?: string; } export function autoscalingGroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecificationToTerraform(struct?: AutoscalingGroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecificationOutputReference | AutoscalingGroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification): 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 { launch_template_id: cdktf.stringToTerraform(struct!.launchTemplateId), launch_template_name: cdktf.stringToTerraform(struct!.launchTemplateName), version: cdktf.stringToTerraform(struct!.version), } } export class AutoscalingGroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecificationOutputReference 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(): AutoscalingGroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._launchTemplateId !== undefined) { hasAnyValues = true; internalValueResult.launchTemplateId = this._launchTemplateId; } if (this._launchTemplateName !== undefined) { hasAnyValues = true; internalValueResult.launchTemplateName = this._launchTemplateName; } if (this._version !== undefined) { hasAnyValues = true; internalValueResult.version = this._version; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AutoscalingGroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification | undefined) { if (value === undefined) { this.isEmptyObject = false; this._launchTemplateId = undefined; this._launchTemplateName = undefined; this._version = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._launchTemplateId = value.launchTemplateId; this._launchTemplateName = value.launchTemplateName; this._version = value.version; } } // launch_template_id - computed: true, optional: true, required: false private _launchTemplateId?: string; public get launchTemplateId() { return this.getStringAttribute('launch_template_id'); } public set launchTemplateId(value: string) { this._launchTemplateId = value; } public resetLaunchTemplateId() { this._launchTemplateId = undefined; } // Temporarily expose input value. Use with caution. public get launchTemplateIdInput() { return this._launchTemplateId; } // launch_template_name - computed: true, optional: true, required: false private _launchTemplateName?: string; public get launchTemplateName() { return this.getStringAttribute('launch_template_name'); } public set launchTemplateName(value: string) { this._launchTemplateName = value; } public resetLaunchTemplateName() { this._launchTemplateName = undefined; } // Temporarily expose input value. Use with caution. public get launchTemplateNameInput() { return this._launchTemplateName; } // version - computed: false, optional: true, required: false private _version?: string; public get version() { return this.getStringAttribute('version'); } public set version(value: string) { this._version = value; } public resetVersion() { this._version = undefined; } // Temporarily expose input value. Use with caution. public get versionInput() { return this._version; } } export interface AutoscalingGroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecification { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#launch_template_id AutoscalingGroup#launch_template_id} */ readonly launchTemplateId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#launch_template_name AutoscalingGroup#launch_template_name} */ readonly launchTemplateName?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#version AutoscalingGroup#version} */ readonly version?: string; } export function autoscalingGroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecificationToTerraform(struct?: AutoscalingGroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecificationOutputReference | AutoscalingGroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecification): 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 { launch_template_id: cdktf.stringToTerraform(struct!.launchTemplateId), launch_template_name: cdktf.stringToTerraform(struct!.launchTemplateName), version: cdktf.stringToTerraform(struct!.version), } } export class AutoscalingGroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecificationOutputReference 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(): AutoscalingGroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecification | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._launchTemplateId !== undefined) { hasAnyValues = true; internalValueResult.launchTemplateId = this._launchTemplateId; } if (this._launchTemplateName !== undefined) { hasAnyValues = true; internalValueResult.launchTemplateName = this._launchTemplateName; } if (this._version !== undefined) { hasAnyValues = true; internalValueResult.version = this._version; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AutoscalingGroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecification | undefined) { if (value === undefined) { this.isEmptyObject = false; this._launchTemplateId = undefined; this._launchTemplateName = undefined; this._version = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._launchTemplateId = value.launchTemplateId; this._launchTemplateName = value.launchTemplateName; this._version = value.version; } } // launch_template_id - computed: true, optional: true, required: false private _launchTemplateId?: string; public get launchTemplateId() { return this.getStringAttribute('launch_template_id'); } public set launchTemplateId(value: string) { this._launchTemplateId = value; } public resetLaunchTemplateId() { this._launchTemplateId = undefined; } // Temporarily expose input value. Use with caution. public get launchTemplateIdInput() { return this._launchTemplateId; } // launch_template_name - computed: true, optional: true, required: false private _launchTemplateName?: string; public get launchTemplateName() { return this.getStringAttribute('launch_template_name'); } public set launchTemplateName(value: string) { this._launchTemplateName = value; } public resetLaunchTemplateName() { this._launchTemplateName = undefined; } // Temporarily expose input value. Use with caution. public get launchTemplateNameInput() { return this._launchTemplateName; } // version - computed: false, optional: true, required: false private _version?: string; public get version() { return this.getStringAttribute('version'); } public set version(value: string) { this._version = value; } public resetVersion() { this._version = undefined; } // Temporarily expose input value. Use with caution. public get versionInput() { return this._version; } } export interface AutoscalingGroupMixedInstancesPolicyLaunchTemplateOverride { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#instance_type AutoscalingGroup#instance_type} */ readonly instanceType?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#weighted_capacity AutoscalingGroup#weighted_capacity} */ readonly weightedCapacity?: string; /** * launch_template_specification block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#launch_template_specification AutoscalingGroup#launch_template_specification} */ readonly launchTemplateSpecification?: AutoscalingGroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecification; } export function autoscalingGroupMixedInstancesPolicyLaunchTemplateOverrideToTerraform(struct?: AutoscalingGroupMixedInstancesPolicyLaunchTemplateOverride): 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 { instance_type: cdktf.stringToTerraform(struct!.instanceType), weighted_capacity: cdktf.stringToTerraform(struct!.weightedCapacity), launch_template_specification: autoscalingGroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecificationToTerraform(struct!.launchTemplateSpecification), } } export interface AutoscalingGroupMixedInstancesPolicyLaunchTemplate { /** * launch_template_specification block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#launch_template_specification AutoscalingGroup#launch_template_specification} */ readonly launchTemplateSpecification: AutoscalingGroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification; /** * override block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#override AutoscalingGroup#override} */ readonly override?: AutoscalingGroupMixedInstancesPolicyLaunchTemplateOverride[]; } export function autoscalingGroupMixedInstancesPolicyLaunchTemplateToTerraform(struct?: AutoscalingGroupMixedInstancesPolicyLaunchTemplateOutputReference | AutoscalingGroupMixedInstancesPolicyLaunchTemplate): 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 { launch_template_specification: autoscalingGroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecificationToTerraform(struct!.launchTemplateSpecification), override: cdktf.listMapper(autoscalingGroupMixedInstancesPolicyLaunchTemplateOverrideToTerraform)(struct!.override), } } export class AutoscalingGroupMixedInstancesPolicyLaunchTemplateOutputReference 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(): AutoscalingGroupMixedInstancesPolicyLaunchTemplate | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._launchTemplateSpecification?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.launchTemplateSpecification = this._launchTemplateSpecification?.internalValue; } if (this._override !== undefined) { hasAnyValues = true; internalValueResult.override = this._override; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AutoscalingGroupMixedInstancesPolicyLaunchTemplate | undefined) { if (value === undefined) { this.isEmptyObject = false; this._launchTemplateSpecification.internalValue = undefined; this._override = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._launchTemplateSpecification.internalValue = value.launchTemplateSpecification; this._override = value.override; } } // launch_template_specification - computed: false, optional: false, required: true private _launchTemplateSpecification = new AutoscalingGroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecificationOutputReference(this as any, "launch_template_specification", true); public get launchTemplateSpecification() { return this._launchTemplateSpecification; } public putLaunchTemplateSpecification(value: AutoscalingGroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification) { this._launchTemplateSpecification.internalValue = value; } // Temporarily expose input value. Use with caution. public get launchTemplateSpecificationInput() { return this._launchTemplateSpecification.internalValue; } // override - computed: false, optional: true, required: false private _override?: AutoscalingGroupMixedInstancesPolicyLaunchTemplateOverride[]; public get override() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('override') as any; } public set override(value: AutoscalingGroupMixedInstancesPolicyLaunchTemplateOverride[]) { this._override = value; } public resetOverride() { this._override = undefined; } // Temporarily expose input value. Use with caution. public get overrideInput() { return this._override; } } export interface AutoscalingGroupMixedInstancesPolicy { /** * instances_distribution block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#instances_distribution AutoscalingGroup#instances_distribution} */ readonly instancesDistribution?: AutoscalingGroupMixedInstancesPolicyInstancesDistribution; /** * launch_template block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#launch_template AutoscalingGroup#launch_template} */ readonly launchTemplate: AutoscalingGroupMixedInstancesPolicyLaunchTemplate; } export function autoscalingGroupMixedInstancesPolicyToTerraform(struct?: AutoscalingGroupMixedInstancesPolicyOutputReference | AutoscalingGroupMixedInstancesPolicy): 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 { instances_distribution: autoscalingGroupMixedInstancesPolicyInstancesDistributionToTerraform(struct!.instancesDistribution), launch_template: autoscalingGroupMixedInstancesPolicyLaunchTemplateToTerraform(struct!.launchTemplate), } } export class AutoscalingGroupMixedInstancesPolicyOutputReference 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(): AutoscalingGroupMixedInstancesPolicy | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._instancesDistribution?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.instancesDistribution = this._instancesDistribution?.internalValue; } if (this._launchTemplate?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.launchTemplate = this._launchTemplate?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AutoscalingGroupMixedInstancesPolicy | undefined) { if (value === undefined) { this.isEmptyObject = false; this._instancesDistribution.internalValue = undefined; this._launchTemplate.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._instancesDistribution.internalValue = value.instancesDistribution; this._launchTemplate.internalValue = value.launchTemplate; } } // instances_distribution - computed: false, optional: true, required: false private _instancesDistribution = new AutoscalingGroupMixedInstancesPolicyInstancesDistributionOutputReference(this as any, "instances_distribution", true); public get instancesDistribution() { return this._instancesDistribution; } public putInstancesDistribution(value: AutoscalingGroupMixedInstancesPolicyInstancesDistribution) { this._instancesDistribution.internalValue = value; } public resetInstancesDistribution() { this._instancesDistribution.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get instancesDistributionInput() { return this._instancesDistribution.internalValue; } // launch_template - computed: false, optional: false, required: true private _launchTemplate = new AutoscalingGroupMixedInstancesPolicyLaunchTemplateOutputReference(this as any, "launch_template", true); public get launchTemplate() { return this._launchTemplate; } public putLaunchTemplate(value: AutoscalingGroupMixedInstancesPolicyLaunchTemplate) { this._launchTemplate.internalValue = value; } // Temporarily expose input value. Use with caution. public get launchTemplateInput() { return this._launchTemplate.internalValue; } } export interface AutoscalingGroupTag { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#key AutoscalingGroup#key} */ readonly key: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#propagate_at_launch AutoscalingGroup#propagate_at_launch} */ readonly propagateAtLaunch: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#value AutoscalingGroup#value} */ readonly value: string; } export function autoscalingGroupTagToTerraform(struct?: AutoscalingGroupTag): 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 { key: cdktf.stringToTerraform(struct!.key), propagate_at_launch: cdktf.booleanToTerraform(struct!.propagateAtLaunch), value: cdktf.stringToTerraform(struct!.value), } } export interface AutoscalingGroupTimeouts { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#delete AutoscalingGroup#delete} */ readonly delete?: string; } export function autoscalingGroupTimeoutsToTerraform(struct?: AutoscalingGroupTimeoutsOutputReference | AutoscalingGroupTimeouts): 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 { delete: cdktf.stringToTerraform(struct!.delete), } } export class AutoscalingGroupTimeoutsOutputReference 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(): AutoscalingGroupTimeouts | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._delete !== undefined) { hasAnyValues = true; internalValueResult.delete = this._delete; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AutoscalingGroupTimeouts | undefined) { if (value === undefined) { this.isEmptyObject = false; this._delete = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._delete = value.delete; } } // delete - computed: false, optional: true, required: false private _delete?: string; public get delete() { return this.getStringAttribute('delete'); } public set delete(value: string) { this._delete = value; } public resetDelete() { this._delete = undefined; } // Temporarily expose input value. Use with caution. public get deleteInput() { return this._delete; } } export interface AutoscalingGroupWarmPool { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#max_group_prepared_capacity AutoscalingGroup#max_group_prepared_capacity} */ readonly maxGroupPreparedCapacity?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#min_size AutoscalingGroup#min_size} */ readonly minSize?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#pool_state AutoscalingGroup#pool_state} */ readonly poolState?: string; } export function autoscalingGroupWarmPoolToTerraform(struct?: AutoscalingGroupWarmPoolOutputReference | AutoscalingGroupWarmPool): 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 { max_group_prepared_capacity: cdktf.numberToTerraform(struct!.maxGroupPreparedCapacity), min_size: cdktf.numberToTerraform(struct!.minSize), pool_state: cdktf.stringToTerraform(struct!.poolState), } } export class AutoscalingGroupWarmPoolOutputReference 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(): AutoscalingGroupWarmPool | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._maxGroupPreparedCapacity !== undefined) { hasAnyValues = true; internalValueResult.maxGroupPreparedCapacity = this._maxGroupPreparedCapacity; } if (this._minSize !== undefined) { hasAnyValues = true; internalValueResult.minSize = this._minSize; } if (this._poolState !== undefined) { hasAnyValues = true; internalValueResult.poolState = this._poolState; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: AutoscalingGroupWarmPool | undefined) { if (value === undefined) { this.isEmptyObject = false; this._maxGroupPreparedCapacity = undefined; this._minSize = undefined; this._poolState = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._maxGroupPreparedCapacity = value.maxGroupPreparedCapacity; this._minSize = value.minSize; this._poolState = value.poolState; } } // max_group_prepared_capacity - computed: false, optional: true, required: false private _maxGroupPreparedCapacity?: number; public get maxGroupPreparedCapacity() { return this.getNumberAttribute('max_group_prepared_capacity'); } public set maxGroupPreparedCapacity(value: number) { this._maxGroupPreparedCapacity = value; } public resetMaxGroupPreparedCapacity() { this._maxGroupPreparedCapacity = undefined; } // Temporarily expose input value. Use with caution. public get maxGroupPreparedCapacityInput() { return this._maxGroupPreparedCapacity; } // min_size - computed: false, optional: true, required: false private _minSize?: number; public get minSize() { return this.getNumberAttribute('min_size'); } public set minSize(value: number) { this._minSize = value; } public resetMinSize() { this._minSize = undefined; } // Temporarily expose input value. Use with caution. public get minSizeInput() { return this._minSize; } // pool_state - computed: false, optional: true, required: false private _poolState?: string; public get poolState() { return this.getStringAttribute('pool_state'); } public set poolState(value: string) { this._poolState = value; } public resetPoolState() { this._poolState = undefined; } // Temporarily expose input value. Use with caution. public get poolStateInput() { return this._poolState; } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html aws_autoscaling_group} */ export class AutoscalingGroup extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_autoscaling_group"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html aws_autoscaling_group} 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 AutoscalingGroupConfig */ public constructor(scope: Construct, id: string, config: AutoscalingGroupConfig) { super(scope, id, { terraformResourceType: 'aws_autoscaling_group', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._availabilityZones = config.availabilityZones; this._capacityRebalance = config.capacityRebalance; this._defaultCooldown = config.defaultCooldown; this._desiredCapacity = config.desiredCapacity; this._enabledMetrics = config.enabledMetrics; this._forceDelete = config.forceDelete; this._forceDeleteWarmPool = config.forceDeleteWarmPool; this._healthCheckGracePeriod = config.healthCheckGracePeriod; this._healthCheckType = config.healthCheckType; this._launchConfiguration = config.launchConfiguration; this._loadBalancers = config.loadBalancers; this._maxInstanceLifetime = config.maxInstanceLifetime; this._maxSize = config.maxSize; this._metricsGranularity = config.metricsGranularity; this._minElbCapacity = config.minElbCapacity; this._minSize = config.minSize; this._name = config.name; this._namePrefix = config.namePrefix; this._placementGroup = config.placementGroup; this._protectFromScaleIn = config.protectFromScaleIn; this._serviceLinkedRoleArn = config.serviceLinkedRoleArn; this._suspendedProcesses = config.suspendedProcesses; this._tags = config.tags; this._targetGroupArns = config.targetGroupArns; this._terminationPolicies = config.terminationPolicies; this._vpcZoneIdentifier = config.vpcZoneIdentifier; this._waitForCapacityTimeout = config.waitForCapacityTimeout; this._waitForElbCapacity = config.waitForElbCapacity; this._initialLifecycleHook = config.initialLifecycleHook; this._instanceRefresh.internalValue = config.instanceRefresh; this._launchTemplate.internalValue = config.launchTemplate; this._mixedInstancesPolicy.internalValue = config.mixedInstancesPolicy; this._tag = config.tag; this._timeouts.internalValue = config.timeouts; this._warmPool.internalValue = config.warmPool; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // availability_zones - computed: true, optional: true, required: false private _availabilityZones?: string[]; public get availabilityZones() { return this.getListAttribute('availability_zones'); } public set availabilityZones(value: string[]) { this._availabilityZones = value; } public resetAvailabilityZones() { this._availabilityZones = undefined; } // Temporarily expose input value. Use with caution. public get availabilityZonesInput() { return this._availabilityZones; } // capacity_rebalance - computed: false, optional: true, required: false private _capacityRebalance?: boolean | cdktf.IResolvable; public get capacityRebalance() { return this.getBooleanAttribute('capacity_rebalance') as any; } public set capacityRebalance(value: boolean | cdktf.IResolvable) { this._capacityRebalance = value; } public resetCapacityRebalance() { this._capacityRebalance = undefined; } // Temporarily expose input value. Use with caution. public get capacityRebalanceInput() { return this._capacityRebalance; } // default_cooldown - computed: true, optional: true, required: false private _defaultCooldown?: number; public get defaultCooldown() { return this.getNumberAttribute('default_cooldown'); } public set defaultCooldown(value: number) { this._defaultCooldown = value; } public resetDefaultCooldown() { this._defaultCooldown = undefined; } // Temporarily expose input value. Use with caution. public get defaultCooldownInput() { return this._defaultCooldown; } // desired_capacity - computed: true, optional: true, required: false private _desiredCapacity?: number; public get desiredCapacity() { return this.getNumberAttribute('desired_capacity'); } public set desiredCapacity(value: number) { this._desiredCapacity = value; } public resetDesiredCapacity() { this._desiredCapacity = undefined; } // Temporarily expose input value. Use with caution. public get desiredCapacityInput() { return this._desiredCapacity; } // enabled_metrics - computed: false, optional: true, required: false private _enabledMetrics?: string[]; public get enabledMetrics() { return this.getListAttribute('enabled_metrics'); } public set enabledMetrics(value: string[]) { this._enabledMetrics = value; } public resetEnabledMetrics() { this._enabledMetrics = undefined; } // Temporarily expose input value. Use with caution. public get enabledMetricsInput() { return this._enabledMetrics; } // 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; } // force_delete_warm_pool - computed: false, optional: true, required: false private _forceDeleteWarmPool?: boolean | cdktf.IResolvable; public get forceDeleteWarmPool() { return this.getBooleanAttribute('force_delete_warm_pool') as any; } public set forceDeleteWarmPool(value: boolean | cdktf.IResolvable) { this._forceDeleteWarmPool = value; } public resetForceDeleteWarmPool() { this._forceDeleteWarmPool = undefined; } // Temporarily expose input value. Use with caution. public get forceDeleteWarmPoolInput() { return this._forceDeleteWarmPool; } // health_check_grace_period - computed: false, optional: true, required: false private _healthCheckGracePeriod?: number; public get healthCheckGracePeriod() { return this.getNumberAttribute('health_check_grace_period'); } public set healthCheckGracePeriod(value: number) { this._healthCheckGracePeriod = value; } public resetHealthCheckGracePeriod() { this._healthCheckGracePeriod = undefined; } // Temporarily expose input value. Use with caution. public get healthCheckGracePeriodInput() { return this._healthCheckGracePeriod; } // health_check_type - computed: true, optional: true, required: false private _healthCheckType?: string; public get healthCheckType() { return this.getStringAttribute('health_check_type'); } public set healthCheckType(value: string) { this._healthCheckType = value; } public resetHealthCheckType() { this._healthCheckType = undefined; } // Temporarily expose input value. Use with caution. public get healthCheckTypeInput() { return this._healthCheckType; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // launch_configuration - computed: false, optional: true, required: false private _launchConfiguration?: string; public get launchConfiguration() { return this.getStringAttribute('launch_configuration'); } public set launchConfiguration(value: string) { this._launchConfiguration = value; } public resetLaunchConfiguration() { this._launchConfiguration = undefined; } // Temporarily expose input value. Use with caution. public get launchConfigurationInput() { return this._launchConfiguration; } // load_balancers - computed: false, optional: true, required: false private _loadBalancers?: string[]; public get loadBalancers() { return this.getListAttribute('load_balancers'); } public set loadBalancers(value: string[]) { this._loadBalancers = value; } public resetLoadBalancers() { this._loadBalancers = undefined; } // Temporarily expose input value. Use with caution. public get loadBalancersInput() { return this._loadBalancers; } // max_instance_lifetime - computed: false, optional: true, required: false private _maxInstanceLifetime?: number; public get maxInstanceLifetime() { return this.getNumberAttribute('max_instance_lifetime'); } public set maxInstanceLifetime(value: number) { this._maxInstanceLifetime = value; } public resetMaxInstanceLifetime() { this._maxInstanceLifetime = undefined; } // Temporarily expose input value. Use with caution. public get maxInstanceLifetimeInput() { return this._maxInstanceLifetime; } // max_size - computed: false, optional: false, required: true private _maxSize?: number; public get maxSize() { return this.getNumberAttribute('max_size'); } public set maxSize(value: number) { this._maxSize = value; } // Temporarily expose input value. Use with caution. public get maxSizeInput() { return this._maxSize; } // metrics_granularity - computed: false, optional: true, required: false private _metricsGranularity?: string; public get metricsGranularity() { return this.getStringAttribute('metrics_granularity'); } public set metricsGranularity(value: string) { this._metricsGranularity = value; } public resetMetricsGranularity() { this._metricsGranularity = undefined; } // Temporarily expose input value. Use with caution. public get metricsGranularityInput() { return this._metricsGranularity; } // min_elb_capacity - computed: false, optional: true, required: false private _minElbCapacity?: number; public get minElbCapacity() { return this.getNumberAttribute('min_elb_capacity'); } public set minElbCapacity(value: number) { this._minElbCapacity = value; } public resetMinElbCapacity() { this._minElbCapacity = undefined; } // Temporarily expose input value. Use with caution. public get minElbCapacityInput() { return this._minElbCapacity; } // min_size - computed: false, optional: false, required: true private _minSize?: number; public get minSize() { return this.getNumberAttribute('min_size'); } public set minSize(value: number) { this._minSize = value; } // Temporarily expose input value. Use with caution. public get minSizeInput() { return this._minSize; } // name - computed: true, optional: true, required: false private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } public resetName() { this._name = undefined; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // name_prefix - computed: true, optional: true, required: false private _namePrefix?: string; public get namePrefix() { return this.getStringAttribute('name_prefix'); } public set namePrefix(value: string) { this._namePrefix = value; } public resetNamePrefix() { this._namePrefix = undefined; } // Temporarily expose input value. Use with caution. public get namePrefixInput() { return this._namePrefix; } // placement_group - computed: false, optional: true, required: false private _placementGroup?: string; public get placementGroup() { return this.getStringAttribute('placement_group'); } public set placementGroup(value: string) { this._placementGroup = value; } public resetPlacementGroup() { this._placementGroup = undefined; } // Temporarily expose input value. Use with caution. public get placementGroupInput() { return this._placementGroup; } // protect_from_scale_in - computed: false, optional: true, required: false private _protectFromScaleIn?: boolean | cdktf.IResolvable; public get protectFromScaleIn() { return this.getBooleanAttribute('protect_from_scale_in') as any; } public set protectFromScaleIn(value: boolean | cdktf.IResolvable) { this._protectFromScaleIn = value; } public resetProtectFromScaleIn() { this._protectFromScaleIn = undefined; } // Temporarily expose input value. Use with caution. public get protectFromScaleInInput() { return this._protectFromScaleIn; } // service_linked_role_arn - computed: true, optional: true, required: false private _serviceLinkedRoleArn?: string; public get serviceLinkedRoleArn() { return this.getStringAttribute('service_linked_role_arn'); } public set serviceLinkedRoleArn(value: string) { this._serviceLinkedRoleArn = value; } public resetServiceLinkedRoleArn() { this._serviceLinkedRoleArn = undefined; } // Temporarily expose input value. Use with caution. public get serviceLinkedRoleArnInput() { return this._serviceLinkedRoleArn; } // suspended_processes - computed: false, optional: true, required: false private _suspendedProcesses?: string[]; public get suspendedProcesses() { return this.getListAttribute('suspended_processes'); } public set suspendedProcesses(value: string[]) { this._suspendedProcesses = value; } public resetSuspendedProcesses() { this._suspendedProcesses = undefined; } // Temporarily expose input value. Use with caution. public get suspendedProcessesInput() { return this._suspendedProcesses; } // 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; } // target_group_arns - computed: false, optional: true, required: false private _targetGroupArns?: string[]; public get targetGroupArns() { return this.getListAttribute('target_group_arns'); } public set targetGroupArns(value: string[]) { this._targetGroupArns = value; } public resetTargetGroupArns() { this._targetGroupArns = undefined; } // Temporarily expose input value. Use with caution. public get targetGroupArnsInput() { return this._targetGroupArns; } // termination_policies - computed: false, optional: true, required: false private _terminationPolicies?: string[]; public get terminationPolicies() { return this.getListAttribute('termination_policies'); } public set terminationPolicies(value: string[]) { this._terminationPolicies = value; } public resetTerminationPolicies() { this._terminationPolicies = undefined; } // Temporarily expose input value. Use with caution. public get terminationPoliciesInput() { return this._terminationPolicies; } // vpc_zone_identifier - computed: true, optional: true, required: false private _vpcZoneIdentifier?: string[]; public get vpcZoneIdentifier() { return this.getListAttribute('vpc_zone_identifier'); } public set vpcZoneIdentifier(value: string[]) { this._vpcZoneIdentifier = value; } public resetVpcZoneIdentifier() { this._vpcZoneIdentifier = undefined; } // Temporarily expose input value. Use with caution. public get vpcZoneIdentifierInput() { return this._vpcZoneIdentifier; } // wait_for_capacity_timeout - computed: false, optional: true, required: false private _waitForCapacityTimeout?: string; public get waitForCapacityTimeout() { return this.getStringAttribute('wait_for_capacity_timeout'); } public set waitForCapacityTimeout(value: string) { this._waitForCapacityTimeout = value; } public resetWaitForCapacityTimeout() { this._waitForCapacityTimeout = undefined; } // Temporarily expose input value. Use with caution. public get waitForCapacityTimeoutInput() { return this._waitForCapacityTimeout; } // wait_for_elb_capacity - computed: false, optional: true, required: false private _waitForElbCapacity?: number; public get waitForElbCapacity() { return this.getNumberAttribute('wait_for_elb_capacity'); } public set waitForElbCapacity(value: number) { this._waitForElbCapacity = value; } public resetWaitForElbCapacity() { this._waitForElbCapacity = undefined; } // Temporarily expose input value. Use with caution. public get waitForElbCapacityInput() { return this._waitForElbCapacity; } // initial_lifecycle_hook - computed: false, optional: true, required: false private _initialLifecycleHook?: AutoscalingGroupInitialLifecycleHook[]; public get initialLifecycleHook() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('initial_lifecycle_hook') as any; } public set initialLifecycleHook(value: AutoscalingGroupInitialLifecycleHook[]) { this._initialLifecycleHook = value; } public resetInitialLifecycleHook() { this._initialLifecycleHook = undefined; } // Temporarily expose input value. Use with caution. public get initialLifecycleHookInput() { return this._initialLifecycleHook; } // instance_refresh - computed: false, optional: true, required: false private _instanceRefresh = new AutoscalingGroupInstanceRefreshOutputReference(this as any, "instance_refresh", true); public get instanceRefresh() { return this._instanceRefresh; } public putInstanceRefresh(value: AutoscalingGroupInstanceRefresh) { this._instanceRefresh.internalValue = value; } public resetInstanceRefresh() { this._instanceRefresh.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get instanceRefreshInput() { return this._instanceRefresh.internalValue; } // launch_template - computed: false, optional: true, required: false private _launchTemplate = new AutoscalingGroupLaunchTemplateOutputReference(this as any, "launch_template", true); public get launchTemplate() { return this._launchTemplate; } public putLaunchTemplate(value: AutoscalingGroupLaunchTemplate) { this._launchTemplate.internalValue = value; } public resetLaunchTemplate() { this._launchTemplate.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get launchTemplateInput() { return this._launchTemplate.internalValue; } // mixed_instances_policy - computed: false, optional: true, required: false private _mixedInstancesPolicy = new AutoscalingGroupMixedInstancesPolicyOutputReference(this as any, "mixed_instances_policy", true); public get mixedInstancesPolicy() { return this._mixedInstancesPolicy; } public putMixedInstancesPolicy(value: AutoscalingGroupMixedInstancesPolicy) { this._mixedInstancesPolicy.internalValue = value; } public resetMixedInstancesPolicy() { this._mixedInstancesPolicy.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get mixedInstancesPolicyInput() { return this._mixedInstancesPolicy.internalValue; } // tag - computed: false, optional: true, required: false private _tag?: AutoscalingGroupTag[]; public get tag() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tag') as any; } public set tag(value: AutoscalingGroupTag[]) { this._tag = value; } public resetTag() { this._tag = undefined; } // Temporarily expose input value. Use with caution. public get tagInput() { return this._tag; } // timeouts - computed: false, optional: true, required: false private _timeouts = new AutoscalingGroupTimeoutsOutputReference(this as any, "timeouts", true); public get timeouts() { return this._timeouts; } public putTimeouts(value: AutoscalingGroupTimeouts) { this._timeouts.internalValue = value; } public resetTimeouts() { this._timeouts.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get timeoutsInput() { return this._timeouts.internalValue; } // warm_pool - computed: false, optional: true, required: false private _warmPool = new AutoscalingGroupWarmPoolOutputReference(this as any, "warm_pool", true); public get warmPool() { return this._warmPool; } public putWarmPool(value: AutoscalingGroupWarmPool) { this._warmPool.internalValue = value; } public resetWarmPool() { this._warmPool.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get warmPoolInput() { return this._warmPool.internalValue; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { availability_zones: cdktf.listMapper(cdktf.stringToTerraform)(this._availabilityZones), capacity_rebalance: cdktf.booleanToTerraform(this._capacityRebalance), default_cooldown: cdktf.numberToTerraform(this._defaultCooldown), desired_capacity: cdktf.numberToTerraform(this._desiredCapacity), enabled_metrics: cdktf.listMapper(cdktf.stringToTerraform)(this._enabledMetrics), force_delete: cdktf.booleanToTerraform(this._forceDelete), force_delete_warm_pool: cdktf.booleanToTerraform(this._forceDeleteWarmPool), health_check_grace_period: cdktf.numberToTerraform(this._healthCheckGracePeriod), health_check_type: cdktf.stringToTerraform(this._healthCheckType), launch_configuration: cdktf.stringToTerraform(this._launchConfiguration), load_balancers: cdktf.listMapper(cdktf.stringToTerraform)(this._loadBalancers), max_instance_lifetime: cdktf.numberToTerraform(this._maxInstanceLifetime), max_size: cdktf.numberToTerraform(this._maxSize), metrics_granularity: cdktf.stringToTerraform(this._metricsGranularity), min_elb_capacity: cdktf.numberToTerraform(this._minElbCapacity), min_size: cdktf.numberToTerraform(this._minSize), name: cdktf.stringToTerraform(this._name), name_prefix: cdktf.stringToTerraform(this._namePrefix), placement_group: cdktf.stringToTerraform(this._placementGroup), protect_from_scale_in: cdktf.booleanToTerraform(this._protectFromScaleIn), service_linked_role_arn: cdktf.stringToTerraform(this._serviceLinkedRoleArn), suspended_processes: cdktf.listMapper(cdktf.stringToTerraform)(this._suspendedProcesses), tags: cdktf.listMapper(cdktf.hashMapper(cdktf.anyToTerraform))(this._tags), target_group_arns: cdktf.listMapper(cdktf.stringToTerraform)(this._targetGroupArns), termination_policies: cdktf.listMapper(cdktf.stringToTerraform)(this._terminationPolicies), vpc_zone_identifier: cdktf.listMapper(cdktf.stringToTerraform)(this._vpcZoneIdentifier), wait_for_capacity_timeout: cdktf.stringToTerraform(this._waitForCapacityTimeout), wait_for_elb_capacity: cdktf.numberToTerraform(this._waitForElbCapacity), initial_lifecycle_hook: cdktf.listMapper(autoscalingGroupInitialLifecycleHookToTerraform)(this._initialLifecycleHook), instance_refresh: autoscalingGroupInstanceRefreshToTerraform(this._instanceRefresh.internalValue), launch_template: autoscalingGroupLaunchTemplateToTerraform(this._launchTemplate.internalValue), mixed_instances_policy: autoscalingGroupMixedInstancesPolicyToTerraform(this._mixedInstancesPolicy.internalValue), tag: cdktf.listMapper(autoscalingGroupTagToTerraform)(this._tag), timeouts: autoscalingGroupTimeoutsToTerraform(this._timeouts.internalValue), warm_pool: autoscalingGroupWarmPoolToTerraform(this._warmPool.internalValue), }; } }