@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
1,133 lines • 553 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EcsServiceServiceConnectConfigurationServiceOutputReference = exports.ecsServiceServiceConnectConfigurationServiceToHclTerraform = exports.ecsServiceServiceConnectConfigurationServiceToTerraform = exports.EcsServiceServiceConnectConfigurationServiceTlsOutputReference = exports.ecsServiceServiceConnectConfigurationServiceTlsToHclTerraform = exports.ecsServiceServiceConnectConfigurationServiceTlsToTerraform = exports.EcsServiceServiceConnectConfigurationServiceTlsIssuerCertAuthorityOutputReference = exports.ecsServiceServiceConnectConfigurationServiceTlsIssuerCertAuthorityToHclTerraform = exports.ecsServiceServiceConnectConfigurationServiceTlsIssuerCertAuthorityToTerraform = exports.EcsServiceServiceConnectConfigurationServiceTimeoutOutputReference = exports.ecsServiceServiceConnectConfigurationServiceTimeoutToHclTerraform = exports.ecsServiceServiceConnectConfigurationServiceTimeoutToTerraform = exports.EcsServiceServiceConnectConfigurationServiceClientAliasOutputReference = exports.ecsServiceServiceConnectConfigurationServiceClientAliasToHclTerraform = exports.ecsServiceServiceConnectConfigurationServiceClientAliasToTerraform = exports.EcsServiceServiceConnectConfigurationLogConfigurationOutputReference = exports.ecsServiceServiceConnectConfigurationLogConfigurationToHclTerraform = exports.ecsServiceServiceConnectConfigurationLogConfigurationToTerraform = exports.EcsServiceServiceConnectConfigurationLogConfigurationSecretOptionList = exports.EcsServiceServiceConnectConfigurationLogConfigurationSecretOptionOutputReference = exports.ecsServiceServiceConnectConfigurationLogConfigurationSecretOptionToHclTerraform = exports.ecsServiceServiceConnectConfigurationLogConfigurationSecretOptionToTerraform = exports.EcsServicePlacementConstraintsList = exports.EcsServicePlacementConstraintsOutputReference = exports.ecsServicePlacementConstraintsToHclTerraform = exports.ecsServicePlacementConstraintsToTerraform = exports.EcsServiceOrderedPlacementStrategyList = exports.EcsServiceOrderedPlacementStrategyOutputReference = exports.ecsServiceOrderedPlacementStrategyToHclTerraform = exports.ecsServiceOrderedPlacementStrategyToTerraform = exports.EcsServiceNetworkConfigurationOutputReference = exports.ecsServiceNetworkConfigurationToHclTerraform = exports.ecsServiceNetworkConfigurationToTerraform = exports.EcsServiceLoadBalancerList = exports.EcsServiceLoadBalancerOutputReference = exports.ecsServiceLoadBalancerToHclTerraform = exports.ecsServiceLoadBalancerToTerraform = exports.EcsServiceDeploymentControllerOutputReference = exports.ecsServiceDeploymentControllerToHclTerraform = exports.ecsServiceDeploymentControllerToTerraform = exports.EcsServiceDeploymentCircuitBreakerOutputReference = exports.ecsServiceDeploymentCircuitBreakerToHclTerraform = exports.ecsServiceDeploymentCircuitBreakerToTerraform = exports.EcsServiceCapacityProviderStrategyList = exports.EcsServiceCapacityProviderStrategyOutputReference = exports.ecsServiceCapacityProviderStrategyToHclTerraform = exports.ecsServiceCapacityProviderStrategyToTerraform = exports.EcsServiceAlarmsOutputReference = exports.ecsServiceAlarmsToHclTerraform = exports.ecsServiceAlarmsToTerraform = void 0;
exports.EcsService = exports.EcsServiceVpcLatticeConfigurationsList = exports.EcsServiceVpcLatticeConfigurationsOutputReference = exports.ecsServiceVpcLatticeConfigurationsToHclTerraform = exports.ecsServiceVpcLatticeConfigurationsToTerraform = exports.EcsServiceVolumeConfigurationOutputReference = exports.ecsServiceVolumeConfigurationToHclTerraform = exports.ecsServiceVolumeConfigurationToTerraform = exports.EcsServiceVolumeConfigurationManagedEbsVolumeOutputReference = exports.ecsServiceVolumeConfigurationManagedEbsVolumeToHclTerraform = exports.ecsServiceVolumeConfigurationManagedEbsVolumeToTerraform = exports.EcsServiceVolumeConfigurationManagedEbsVolumeTagSpecificationsList = exports.EcsServiceVolumeConfigurationManagedEbsVolumeTagSpecificationsOutputReference = exports.ecsServiceVolumeConfigurationManagedEbsVolumeTagSpecificationsToHclTerraform = exports.ecsServiceVolumeConfigurationManagedEbsVolumeTagSpecificationsToTerraform = exports.EcsServiceTimeoutsOutputReference = exports.ecsServiceTimeoutsToHclTerraform = exports.ecsServiceTimeoutsToTerraform = exports.EcsServiceServiceRegistriesOutputReference = exports.ecsServiceServiceRegistriesToHclTerraform = exports.ecsServiceServiceRegistriesToTerraform = exports.EcsServiceServiceConnectConfigurationOutputReference = exports.ecsServiceServiceConnectConfigurationToHclTerraform = exports.ecsServiceServiceConnectConfigurationToTerraform = exports.EcsServiceServiceConnectConfigurationServiceList = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function ecsServiceAlarmsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
alarm_names: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.alarmNames),
enable: cdktf.booleanToTerraform(struct.enable),
rollback: cdktf.booleanToTerraform(struct.rollback),
};
}
exports.ecsServiceAlarmsToTerraform = ecsServiceAlarmsToTerraform;
function ecsServiceAlarmsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
alarm_names: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.alarmNames),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
enable: {
value: cdktf.booleanToHclTerraform(struct.enable),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
rollback: {
value: cdktf.booleanToHclTerraform(struct.rollback),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.ecsServiceAlarmsToHclTerraform = ecsServiceAlarmsToHclTerraform;
class EcsServiceAlarmsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._alarmNames !== undefined) {
hasAnyValues = true;
internalValueResult.alarmNames = this._alarmNames;
}
if (this._enable !== undefined) {
hasAnyValues = true;
internalValueResult.enable = this._enable;
}
if (this._rollback !== undefined) {
hasAnyValues = true;
internalValueResult.rollback = this._rollback;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._alarmNames = undefined;
this._enable = undefined;
this._rollback = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._alarmNames = value.alarmNames;
this._enable = value.enable;
this._rollback = value.rollback;
}
}
get alarmNames() {
return cdktf.Fn.tolist(this.getListAttribute('alarm_names'));
}
set alarmNames(value) {
this._alarmNames = value;
}
// Temporarily expose input value. Use with caution.
get alarmNamesInput() {
return this._alarmNames;
}
get enable() {
return this.getBooleanAttribute('enable');
}
set enable(value) {
this._enable = value;
}
// Temporarily expose input value. Use with caution.
get enableInput() {
return this._enable;
}
get rollback() {
return this.getBooleanAttribute('rollback');
}
set rollback(value) {
this._rollback = value;
}
// Temporarily expose input value. Use with caution.
get rollbackInput() {
return this._rollback;
}
}
exports.EcsServiceAlarmsOutputReference = EcsServiceAlarmsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
EcsServiceAlarmsOutputReference[_a] = { fqn: "@cdktf/provider-aws.ecsService.EcsServiceAlarmsOutputReference", version: "19.50.0" };
function ecsServiceCapacityProviderStrategyToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
base: cdktf.numberToTerraform(struct.base),
capacity_provider: cdktf.stringToTerraform(struct.capacityProvider),
weight: cdktf.numberToTerraform(struct.weight),
};
}
exports.ecsServiceCapacityProviderStrategyToTerraform = ecsServiceCapacityProviderStrategyToTerraform;
function ecsServiceCapacityProviderStrategyToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
base: {
value: cdktf.numberToHclTerraform(struct.base),
isBlock: false,
type: "simple",
storageClassType: "number",
},
capacity_provider: {
value: cdktf.stringToHclTerraform(struct.capacityProvider),
isBlock: false,
type: "simple",
storageClassType: "string",
},
weight: {
value: cdktf.numberToHclTerraform(struct.weight),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.ecsServiceCapacityProviderStrategyToHclTerraform = ecsServiceCapacityProviderStrategyToHclTerraform;
class EcsServiceCapacityProviderStrategyOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._base !== undefined) {
hasAnyValues = true;
internalValueResult.base = this._base;
}
if (this._capacityProvider !== undefined) {
hasAnyValues = true;
internalValueResult.capacityProvider = this._capacityProvider;
}
if (this._weight !== undefined) {
hasAnyValues = true;
internalValueResult.weight = this._weight;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._base = undefined;
this._capacityProvider = undefined;
this._weight = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._base = value.base;
this._capacityProvider = value.capacityProvider;
this._weight = value.weight;
}
}
get base() {
return this.getNumberAttribute('base');
}
set base(value) {
this._base = value;
}
resetBase() {
this._base = undefined;
}
// Temporarily expose input value. Use with caution.
get baseInput() {
return this._base;
}
get capacityProvider() {
return this.getStringAttribute('capacity_provider');
}
set capacityProvider(value) {
this._capacityProvider = value;
}
// Temporarily expose input value. Use with caution.
get capacityProviderInput() {
return this._capacityProvider;
}
get weight() {
return this.getNumberAttribute('weight');
}
set weight(value) {
this._weight = value;
}
resetWeight() {
this._weight = undefined;
}
// Temporarily expose input value. Use with caution.
get weightInput() {
return this._weight;
}
}
exports.EcsServiceCapacityProviderStrategyOutputReference = EcsServiceCapacityProviderStrategyOutputReference;
_b = JSII_RTTI_SYMBOL_1;
EcsServiceCapacityProviderStrategyOutputReference[_b] = { fqn: "@cdktf/provider-aws.ecsService.EcsServiceCapacityProviderStrategyOutputReference", version: "19.50.0" };
class EcsServiceCapacityProviderStrategyList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new EcsServiceCapacityProviderStrategyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.EcsServiceCapacityProviderStrategyList = EcsServiceCapacityProviderStrategyList;
_c = JSII_RTTI_SYMBOL_1;
EcsServiceCapacityProviderStrategyList[_c] = { fqn: "@cdktf/provider-aws.ecsService.EcsServiceCapacityProviderStrategyList", version: "19.50.0" };
function ecsServiceDeploymentCircuitBreakerToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
enable: cdktf.booleanToTerraform(struct.enable),
rollback: cdktf.booleanToTerraform(struct.rollback),
};
}
exports.ecsServiceDeploymentCircuitBreakerToTerraform = ecsServiceDeploymentCircuitBreakerToTerraform;
function ecsServiceDeploymentCircuitBreakerToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
enable: {
value: cdktf.booleanToHclTerraform(struct.enable),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
rollback: {
value: cdktf.booleanToHclTerraform(struct.rollback),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.ecsServiceDeploymentCircuitBreakerToHclTerraform = ecsServiceDeploymentCircuitBreakerToHclTerraform;
class EcsServiceDeploymentCircuitBreakerOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._enable !== undefined) {
hasAnyValues = true;
internalValueResult.enable = this._enable;
}
if (this._rollback !== undefined) {
hasAnyValues = true;
internalValueResult.rollback = this._rollback;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._enable = undefined;
this._rollback = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._enable = value.enable;
this._rollback = value.rollback;
}
}
get enable() {
return this.getBooleanAttribute('enable');
}
set enable(value) {
this._enable = value;
}
// Temporarily expose input value. Use with caution.
get enableInput() {
return this._enable;
}
get rollback() {
return this.getBooleanAttribute('rollback');
}
set rollback(value) {
this._rollback = value;
}
// Temporarily expose input value. Use with caution.
get rollbackInput() {
return this._rollback;
}
}
exports.EcsServiceDeploymentCircuitBreakerOutputReference = EcsServiceDeploymentCircuitBreakerOutputReference;
_d = JSII_RTTI_SYMBOL_1;
EcsServiceDeploymentCircuitBreakerOutputReference[_d] = { fqn: "@cdktf/provider-aws.ecsService.EcsServiceDeploymentCircuitBreakerOutputReference", version: "19.50.0" };
function ecsServiceDeploymentControllerToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
type: cdktf.stringToTerraform(struct.type),
};
}
exports.ecsServiceDeploymentControllerToTerraform = ecsServiceDeploymentControllerToTerraform;
function ecsServiceDeploymentControllerToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
type: {
value: cdktf.stringToHclTerraform(struct.type),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.ecsServiceDeploymentControllerToHclTerraform = ecsServiceDeploymentControllerToHclTerraform;
class EcsServiceDeploymentControllerOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._type = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._type = value.type;
}
}
get type() {
return this.getStringAttribute('type');
}
set type(value) {
this._type = value;
}
resetType() {
this._type = undefined;
}
// Temporarily expose input value. Use with caution.
get typeInput() {
return this._type;
}
}
exports.EcsServiceDeploymentControllerOutputReference = EcsServiceDeploymentControllerOutputReference;
_e = JSII_RTTI_SYMBOL_1;
EcsServiceDeploymentControllerOutputReference[_e] = { fqn: "@cdktf/provider-aws.ecsService.EcsServiceDeploymentControllerOutputReference", version: "19.50.0" };
function ecsServiceLoadBalancerToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
container_name: cdktf.stringToTerraform(struct.containerName),
container_port: cdktf.numberToTerraform(struct.containerPort),
elb_name: cdktf.stringToTerraform(struct.elbName),
target_group_arn: cdktf.stringToTerraform(struct.targetGroupArn),
};
}
exports.ecsServiceLoadBalancerToTerraform = ecsServiceLoadBalancerToTerraform;
function ecsServiceLoadBalancerToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
container_name: {
value: cdktf.stringToHclTerraform(struct.containerName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
container_port: {
value: cdktf.numberToHclTerraform(struct.containerPort),
isBlock: false,
type: "simple",
storageClassType: "number",
},
elb_name: {
value: cdktf.stringToHclTerraform(struct.elbName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
target_group_arn: {
value: cdktf.stringToHclTerraform(struct.targetGroupArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.ecsServiceLoadBalancerToHclTerraform = ecsServiceLoadBalancerToHclTerraform;
class EcsServiceLoadBalancerOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._containerName !== undefined) {
hasAnyValues = true;
internalValueResult.containerName = this._containerName;
}
if (this._containerPort !== undefined) {
hasAnyValues = true;
internalValueResult.containerPort = this._containerPort;
}
if (this._elbName !== undefined) {
hasAnyValues = true;
internalValueResult.elbName = this._elbName;
}
if (this._targetGroupArn !== undefined) {
hasAnyValues = true;
internalValueResult.targetGroupArn = this._targetGroupArn;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._containerName = undefined;
this._containerPort = undefined;
this._elbName = undefined;
this._targetGroupArn = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._containerName = value.containerName;
this._containerPort = value.containerPort;
this._elbName = value.elbName;
this._targetGroupArn = value.targetGroupArn;
}
}
get containerName() {
return this.getStringAttribute('container_name');
}
set containerName(value) {
this._containerName = value;
}
// Temporarily expose input value. Use with caution.
get containerNameInput() {
return this._containerName;
}
get containerPort() {
return this.getNumberAttribute('container_port');
}
set containerPort(value) {
this._containerPort = value;
}
// Temporarily expose input value. Use with caution.
get containerPortInput() {
return this._containerPort;
}
get elbName() {
return this.getStringAttribute('elb_name');
}
set elbName(value) {
this._elbName = value;
}
resetElbName() {
this._elbName = undefined;
}
// Temporarily expose input value. Use with caution.
get elbNameInput() {
return this._elbName;
}
get targetGroupArn() {
return this.getStringAttribute('target_group_arn');
}
set targetGroupArn(value) {
this._targetGroupArn = value;
}
resetTargetGroupArn() {
this._targetGroupArn = undefined;
}
// Temporarily expose input value. Use with caution.
get targetGroupArnInput() {
return this._targetGroupArn;
}
}
exports.EcsServiceLoadBalancerOutputReference = EcsServiceLoadBalancerOutputReference;
_f = JSII_RTTI_SYMBOL_1;
EcsServiceLoadBalancerOutputReference[_f] = { fqn: "@cdktf/provider-aws.ecsService.EcsServiceLoadBalancerOutputReference", version: "19.50.0" };
class EcsServiceLoadBalancerList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new EcsServiceLoadBalancerOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.EcsServiceLoadBalancerList = EcsServiceLoadBalancerList;
_g = JSII_RTTI_SYMBOL_1;
EcsServiceLoadBalancerList[_g] = { fqn: "@cdktf/provider-aws.ecsService.EcsServiceLoadBalancerList", version: "19.50.0" };
function ecsServiceNetworkConfigurationToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
assign_public_ip: cdktf.booleanToTerraform(struct.assignPublicIp),
security_groups: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.securityGroups),
subnets: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.subnets),
};
}
exports.ecsServiceNetworkConfigurationToTerraform = ecsServiceNetworkConfigurationToTerraform;
function ecsServiceNetworkConfigurationToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
assign_public_ip: {
value: cdktf.booleanToHclTerraform(struct.assignPublicIp),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
security_groups: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.securityGroups),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
subnets: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.subnets),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.ecsServiceNetworkConfigurationToHclTerraform = ecsServiceNetworkConfigurationToHclTerraform;
class EcsServiceNetworkConfigurationOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._assignPublicIp !== undefined) {
hasAnyValues = true;
internalValueResult.assignPublicIp = this._assignPublicIp;
}
if (this._securityGroups !== undefined) {
hasAnyValues = true;
internalValueResult.securityGroups = this._securityGroups;
}
if (this._subnets !== undefined) {
hasAnyValues = true;
internalValueResult.subnets = this._subnets;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._assignPublicIp = undefined;
this._securityGroups = undefined;
this._subnets = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._assignPublicIp = value.assignPublicIp;
this._securityGroups = value.securityGroups;
this._subnets = value.subnets;
}
}
get assignPublicIp() {
return this.getBooleanAttribute('assign_public_ip');
}
set assignPublicIp(value) {
this._assignPublicIp = value;
}
resetAssignPublicIp() {
this._assignPublicIp = undefined;
}
// Temporarily expose input value. Use with caution.
get assignPublicIpInput() {
return this._assignPublicIp;
}
get securityGroups() {
return cdktf.Fn.tolist(this.getListAttribute('security_groups'));
}
set securityGroups(value) {
this._securityGroups = value;
}
resetSecurityGroups() {
this._securityGroups = undefined;
}
// Temporarily expose input value. Use with caution.
get securityGroupsInput() {
return this._securityGroups;
}
get subnets() {
return cdktf.Fn.tolist(this.getListAttribute('subnets'));
}
set subnets(value) {
this._subnets = value;
}
// Temporarily expose input value. Use with caution.
get subnetsInput() {
return this._subnets;
}
}
exports.EcsServiceNetworkConfigurationOutputReference = EcsServiceNetworkConfigurationOutputReference;
_h = JSII_RTTI_SYMBOL_1;
EcsServiceNetworkConfigurationOutputReference[_h] = { fqn: "@cdktf/provider-aws.ecsService.EcsServiceNetworkConfigurationOutputReference", version: "19.50.0" };
function ecsServiceOrderedPlacementStrategyToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
field: cdktf.stringToTerraform(struct.field),
type: cdktf.stringToTerraform(struct.type),
};
}
exports.ecsServiceOrderedPlacementStrategyToTerraform = ecsServiceOrderedPlacementStrategyToTerraform;
function ecsServiceOrderedPlacementStrategyToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
field: {
value: cdktf.stringToHclTerraform(struct.field),
isBlock: false,
type: "simple",
storageClassType: "string",
},
type: {
value: cdktf.stringToHclTerraform(struct.type),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.ecsServiceOrderedPlacementStrategyToHclTerraform = ecsServiceOrderedPlacementStrategyToHclTerraform;
class EcsServiceOrderedPlacementStrategyOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._field !== undefined) {
hasAnyValues = true;
internalValueResult.field = this._field;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._field = undefined;
this._type = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._field = value.field;
this._type = value.type;
}
}
get field() {
return this.getStringAttribute('field');
}
set field(value) {
this._field = value;
}
resetField() {
this._field = undefined;
}
// Temporarily expose input value. Use with caution.
get fieldInput() {
return this._field;
}
get type() {
return this.getStringAttribute('type');
}
set type(value) {
this._type = value;
}
// Temporarily expose input value. Use with caution.
get typeInput() {
return this._type;
}
}
exports.EcsServiceOrderedPlacementStrategyOutputReference = EcsServiceOrderedPlacementStrategyOutputReference;
_j = JSII_RTTI_SYMBOL_1;
EcsServiceOrderedPlacementStrategyOutputReference[_j] = { fqn: "@cdktf/provider-aws.ecsService.EcsServiceOrderedPlacementStrategyOutputReference", version: "19.50.0" };
class EcsServiceOrderedPlacementStrategyList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new EcsServiceOrderedPlacementStrategyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.EcsServiceOrderedPlacementStrategyList = EcsServiceOrderedPlacementStrategyList;
_k = JSII_RTTI_SYMBOL_1;
EcsServiceOrderedPlacementStrategyList[_k] = { fqn: "@cdktf/provider-aws.ecsService.EcsServiceOrderedPlacementStrategyList", version: "19.50.0" };
function ecsServicePlacementConstraintsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
expression: cdktf.stringToTerraform(struct.expression),
type: cdktf.stringToTerraform(struct.type),
};
}
exports.ecsServicePlacementConstraintsToTerraform = ecsServicePlacementConstraintsToTerraform;
function ecsServicePlacementConstraintsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
expression: {
value: cdktf.stringToHclTerraform(struct.expression),
isBlock: false,
type: "simple",
storageClassType: "string",
},
type: {
value: cdktf.stringToHclTerraform(struct.type),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.ecsServicePlacementConstraintsToHclTerraform = ecsServicePlacementConstraintsToHclTerraform;
class EcsServicePlacementConstraintsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._expression !== undefined) {
hasAnyValues = true;
internalValueResult.expression = this._expression;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._expression = undefined;
this._type = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._expression = value.expression;
this._type = value.type;
}
}
get expression() {
return this.getStringAttribute('expression');
}
set expression(value) {
this._expression = value;
}
resetExpression() {
this._expression = undefined;
}
// Temporarily expose input value. Use with caution.
get expressionInput() {
return this._expression;
}
get type() {
return this.getStringAttribute('type');
}
set type(value) {
this._type = value;
}
// Temporarily expose input value. Use with caution.
get typeInput() {
return this._type;
}
}
exports.EcsServicePlacementConstraintsOutputReference = EcsServicePlacementConstraintsOutputReference;
_l = JSII_RTTI_SYMBOL_1;
EcsServicePlacementConstraintsOutputReference[_l] = { fqn: "@cdktf/provider-aws.ecsService.EcsServicePlacementConstraintsOutputReference", version: "19.50.0" };
class EcsServicePlacementConstraintsList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new EcsServicePlacementConstraintsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.EcsServicePlacementConstraintsList = EcsServicePlacementConstraintsList;
_m = JSII_RTTI_SYMBOL_1;
EcsServicePlacementConstraintsList[_m] = { fqn: "@cdktf/provider-aws.ecsService.EcsServicePlacementConstraintsList", version: "19.50.0" };
function ecsServiceServiceConnectConfigurationLogConfigurationSecretOptionToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
name: cdktf.stringToTerraform(struct.name),
value_from: cdktf.stringToTerraform(struct.valueFrom),
};
}
exports.ecsServiceServiceConnectConfigurationLogConfigurationSecretOptionToTerraform = ecsServiceServiceConnectConfigurationLogConfigurationSecretOptionToTerraform;
function ecsServiceServiceConnectConfigurationLogConfigurationSecretOptionToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
value_from: {
value: cdktf.stringToHclTerraform(struct.valueFrom),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.ecsServiceServiceConnectConfigurationLogConfigurationSecretOptionToHclTerraform = ecsServiceServiceConnectConfigurationLogConfigurationSecretOptionToHclTerraform;
class EcsServiceServiceConnectConfigurationLogConfigurationSecretOptionOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._valueFrom !== undefined) {
hasAnyValues = true;
internalValueResult.valueFrom = this._valueFrom;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._name = undefined;
this._valueFrom = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._name = value.name;
this._valueFrom = value.valueFrom;
}
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
get valueFrom() {
return this.getStringAttribute('value_from');
}
set valueFrom(value) {
this._valueFrom = value;
}
// Temporarily expose input value. Use with caution.
get valueFromInput() {
return this._valueFrom;
}
}
exports.EcsServiceServiceConnectConfigurationLogConfigurationSecretOptionOutputReference = EcsServiceServiceConnectConfigurationLogConfigurationSecretOptionOutputReference;
_o = JSII_RTTI_SYMBOL_1;
EcsServiceServiceConnectConfigurationLogConfigurationSecretOptionOutputReference[_o] = { fqn: "@cdktf/provider-aws.ecsServ