@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
1,051 lines • 248 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EcsExpressGatewayService = exports.EcsExpressGatewayServiceTimeoutsOutputReference = exports.EcsExpressGatewayServicePrimaryContainerList = exports.EcsExpressGatewayServicePrimaryContainerOutputReference = exports.EcsExpressGatewayServicePrimaryContainerSecretList = exports.EcsExpressGatewayServicePrimaryContainerSecretOutputReference = exports.EcsExpressGatewayServicePrimaryContainerRepositoryCredentialsList = exports.EcsExpressGatewayServicePrimaryContainerRepositoryCredentialsOutputReference = exports.EcsExpressGatewayServicePrimaryContainerEnvironmentList = exports.EcsExpressGatewayServicePrimaryContainerEnvironmentOutputReference = exports.EcsExpressGatewayServicePrimaryContainerAwsLogsConfigurationList = exports.EcsExpressGatewayServicePrimaryContainerAwsLogsConfigurationOutputReference = exports.EcsExpressGatewayServiceScalingTargetList = exports.EcsExpressGatewayServiceScalingTargetOutputReference = exports.EcsExpressGatewayServiceNetworkConfigurationList = exports.EcsExpressGatewayServiceNetworkConfigurationOutputReference = exports.EcsExpressGatewayServiceIngressPathsList = exports.EcsExpressGatewayServiceIngressPathsOutputReference = void 0;
exports.ecsExpressGatewayServiceIngressPathsToTerraform = ecsExpressGatewayServiceIngressPathsToTerraform;
exports.ecsExpressGatewayServiceIngressPathsToHclTerraform = ecsExpressGatewayServiceIngressPathsToHclTerraform;
exports.ecsExpressGatewayServiceNetworkConfigurationToTerraform = ecsExpressGatewayServiceNetworkConfigurationToTerraform;
exports.ecsExpressGatewayServiceNetworkConfigurationToHclTerraform = ecsExpressGatewayServiceNetworkConfigurationToHclTerraform;
exports.ecsExpressGatewayServiceScalingTargetToTerraform = ecsExpressGatewayServiceScalingTargetToTerraform;
exports.ecsExpressGatewayServiceScalingTargetToHclTerraform = ecsExpressGatewayServiceScalingTargetToHclTerraform;
exports.ecsExpressGatewayServicePrimaryContainerAwsLogsConfigurationToTerraform = ecsExpressGatewayServicePrimaryContainerAwsLogsConfigurationToTerraform;
exports.ecsExpressGatewayServicePrimaryContainerAwsLogsConfigurationToHclTerraform = ecsExpressGatewayServicePrimaryContainerAwsLogsConfigurationToHclTerraform;
exports.ecsExpressGatewayServicePrimaryContainerEnvironmentToTerraform = ecsExpressGatewayServicePrimaryContainerEnvironmentToTerraform;
exports.ecsExpressGatewayServicePrimaryContainerEnvironmentToHclTerraform = ecsExpressGatewayServicePrimaryContainerEnvironmentToHclTerraform;
exports.ecsExpressGatewayServicePrimaryContainerRepositoryCredentialsToTerraform = ecsExpressGatewayServicePrimaryContainerRepositoryCredentialsToTerraform;
exports.ecsExpressGatewayServicePrimaryContainerRepositoryCredentialsToHclTerraform = ecsExpressGatewayServicePrimaryContainerRepositoryCredentialsToHclTerraform;
exports.ecsExpressGatewayServicePrimaryContainerSecretToTerraform = ecsExpressGatewayServicePrimaryContainerSecretToTerraform;
exports.ecsExpressGatewayServicePrimaryContainerSecretToHclTerraform = ecsExpressGatewayServicePrimaryContainerSecretToHclTerraform;
exports.ecsExpressGatewayServicePrimaryContainerToTerraform = ecsExpressGatewayServicePrimaryContainerToTerraform;
exports.ecsExpressGatewayServicePrimaryContainerToHclTerraform = ecsExpressGatewayServicePrimaryContainerToHclTerraform;
exports.ecsExpressGatewayServiceTimeoutsToTerraform = ecsExpressGatewayServiceTimeoutsToTerraform;
exports.ecsExpressGatewayServiceTimeoutsToHclTerraform = ecsExpressGatewayServiceTimeoutsToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function ecsExpressGatewayServiceIngressPathsToTerraform(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 {};
}
function ecsExpressGatewayServiceIngressPathsToHclTerraform(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 = {};
return attrs;
}
class EcsExpressGatewayServiceIngressPathsOutputReference 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() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// access_type - computed: true, optional: false, required: false
get accessType() {
return this.getStringAttribute('access_type');
}
// endpoint - computed: true, optional: false, required: false
get endpoint() {
return this.getStringAttribute('endpoint');
}
}
exports.EcsExpressGatewayServiceIngressPathsOutputReference = EcsExpressGatewayServiceIngressPathsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
EcsExpressGatewayServiceIngressPathsOutputReference[_a] = { fqn: "@cdktf/provider-aws.ecsExpressGatewayService.EcsExpressGatewayServiceIngressPathsOutputReference", version: "21.22.1" };
class EcsExpressGatewayServiceIngressPathsList 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 EcsExpressGatewayServiceIngressPathsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.EcsExpressGatewayServiceIngressPathsList = EcsExpressGatewayServiceIngressPathsList;
_b = JSII_RTTI_SYMBOL_1;
EcsExpressGatewayServiceIngressPathsList[_b] = { fqn: "@cdktf/provider-aws.ecsExpressGatewayService.EcsExpressGatewayServiceIngressPathsList", version: "21.22.1" };
function ecsExpressGatewayServiceNetworkConfigurationToTerraform(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 {
security_groups: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.securityGroups),
subnets: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.subnets),
};
}
function ecsExpressGatewayServiceNetworkConfigurationToHclTerraform(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 = {
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));
}
class EcsExpressGatewayServiceNetworkConfigurationOutputReference 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._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.resolvableValue = undefined;
this._securityGroups = undefined;
this._subnets = 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._securityGroups = value.securityGroups;
this._subnets = value.subnets;
}
}
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;
}
resetSubnets() {
this._subnets = undefined;
}
// Temporarily expose input value. Use with caution.
get subnetsInput() {
return this._subnets;
}
}
exports.EcsExpressGatewayServiceNetworkConfigurationOutputReference = EcsExpressGatewayServiceNetworkConfigurationOutputReference;
_c = JSII_RTTI_SYMBOL_1;
EcsExpressGatewayServiceNetworkConfigurationOutputReference[_c] = { fqn: "@cdktf/provider-aws.ecsExpressGatewayService.EcsExpressGatewayServiceNetworkConfigurationOutputReference", version: "21.22.1" };
class EcsExpressGatewayServiceNetworkConfigurationList 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 EcsExpressGatewayServiceNetworkConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.EcsExpressGatewayServiceNetworkConfigurationList = EcsExpressGatewayServiceNetworkConfigurationList;
_d = JSII_RTTI_SYMBOL_1;
EcsExpressGatewayServiceNetworkConfigurationList[_d] = { fqn: "@cdktf/provider-aws.ecsExpressGatewayService.EcsExpressGatewayServiceNetworkConfigurationList", version: "21.22.1" };
function ecsExpressGatewayServiceScalingTargetToTerraform(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 {
auto_scaling_metric: cdktf.stringToTerraform(struct.autoScalingMetric),
auto_scaling_target_value: cdktf.numberToTerraform(struct.autoScalingTargetValue),
max_task_count: cdktf.numberToTerraform(struct.maxTaskCount),
min_task_count: cdktf.numberToTerraform(struct.minTaskCount),
};
}
function ecsExpressGatewayServiceScalingTargetToHclTerraform(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 = {
auto_scaling_metric: {
value: cdktf.stringToHclTerraform(struct.autoScalingMetric),
isBlock: false,
type: "simple",
storageClassType: "string",
},
auto_scaling_target_value: {
value: cdktf.numberToHclTerraform(struct.autoScalingTargetValue),
isBlock: false,
type: "simple",
storageClassType: "number",
},
max_task_count: {
value: cdktf.numberToHclTerraform(struct.maxTaskCount),
isBlock: false,
type: "simple",
storageClassType: "number",
},
min_task_count: {
value: cdktf.numberToHclTerraform(struct.minTaskCount),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class EcsExpressGatewayServiceScalingTargetOutputReference 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._autoScalingMetric !== undefined) {
hasAnyValues = true;
internalValueResult.autoScalingMetric = this._autoScalingMetric;
}
if (this._autoScalingTargetValue !== undefined) {
hasAnyValues = true;
internalValueResult.autoScalingTargetValue = this._autoScalingTargetValue;
}
if (this._maxTaskCount !== undefined) {
hasAnyValues = true;
internalValueResult.maxTaskCount = this._maxTaskCount;
}
if (this._minTaskCount !== undefined) {
hasAnyValues = true;
internalValueResult.minTaskCount = this._minTaskCount;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._autoScalingMetric = undefined;
this._autoScalingTargetValue = undefined;
this._maxTaskCount = undefined;
this._minTaskCount = 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._autoScalingMetric = value.autoScalingMetric;
this._autoScalingTargetValue = value.autoScalingTargetValue;
this._maxTaskCount = value.maxTaskCount;
this._minTaskCount = value.minTaskCount;
}
}
get autoScalingMetric() {
return this.getStringAttribute('auto_scaling_metric');
}
set autoScalingMetric(value) {
this._autoScalingMetric = value;
}
resetAutoScalingMetric() {
this._autoScalingMetric = undefined;
}
// Temporarily expose input value. Use with caution.
get autoScalingMetricInput() {
return this._autoScalingMetric;
}
get autoScalingTargetValue() {
return this.getNumberAttribute('auto_scaling_target_value');
}
set autoScalingTargetValue(value) {
this._autoScalingTargetValue = value;
}
resetAutoScalingTargetValue() {
this._autoScalingTargetValue = undefined;
}
// Temporarily expose input value. Use with caution.
get autoScalingTargetValueInput() {
return this._autoScalingTargetValue;
}
get maxTaskCount() {
return this.getNumberAttribute('max_task_count');
}
set maxTaskCount(value) {
this._maxTaskCount = value;
}
resetMaxTaskCount() {
this._maxTaskCount = undefined;
}
// Temporarily expose input value. Use with caution.
get maxTaskCountInput() {
return this._maxTaskCount;
}
get minTaskCount() {
return this.getNumberAttribute('min_task_count');
}
set minTaskCount(value) {
this._minTaskCount = value;
}
resetMinTaskCount() {
this._minTaskCount = undefined;
}
// Temporarily expose input value. Use with caution.
get minTaskCountInput() {
return this._minTaskCount;
}
}
exports.EcsExpressGatewayServiceScalingTargetOutputReference = EcsExpressGatewayServiceScalingTargetOutputReference;
_e = JSII_RTTI_SYMBOL_1;
EcsExpressGatewayServiceScalingTargetOutputReference[_e] = { fqn: "@cdktf/provider-aws.ecsExpressGatewayService.EcsExpressGatewayServiceScalingTargetOutputReference", version: "21.22.1" };
class EcsExpressGatewayServiceScalingTargetList 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 EcsExpressGatewayServiceScalingTargetOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.EcsExpressGatewayServiceScalingTargetList = EcsExpressGatewayServiceScalingTargetList;
_f = JSII_RTTI_SYMBOL_1;
EcsExpressGatewayServiceScalingTargetList[_f] = { fqn: "@cdktf/provider-aws.ecsExpressGatewayService.EcsExpressGatewayServiceScalingTargetList", version: "21.22.1" };
function ecsExpressGatewayServicePrimaryContainerAwsLogsConfigurationToTerraform(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 {
log_group: cdktf.stringToTerraform(struct.logGroup),
log_stream_prefix: cdktf.stringToTerraform(struct.logStreamPrefix),
};
}
function ecsExpressGatewayServicePrimaryContainerAwsLogsConfigurationToHclTerraform(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 = {
log_group: {
value: cdktf.stringToHclTerraform(struct.logGroup),
isBlock: false,
type: "simple",
storageClassType: "string",
},
log_stream_prefix: {
value: cdktf.stringToHclTerraform(struct.logStreamPrefix),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class EcsExpressGatewayServicePrimaryContainerAwsLogsConfigurationOutputReference 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._logGroup !== undefined) {
hasAnyValues = true;
internalValueResult.logGroup = this._logGroup;
}
if (this._logStreamPrefix !== undefined) {
hasAnyValues = true;
internalValueResult.logStreamPrefix = this._logStreamPrefix;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._logGroup = undefined;
this._logStreamPrefix = 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._logGroup = value.logGroup;
this._logStreamPrefix = value.logStreamPrefix;
}
}
get logGroup() {
return this.getStringAttribute('log_group');
}
set logGroup(value) {
this._logGroup = value;
}
resetLogGroup() {
this._logGroup = undefined;
}
// Temporarily expose input value. Use with caution.
get logGroupInput() {
return this._logGroup;
}
get logStreamPrefix() {
return this.getStringAttribute('log_stream_prefix');
}
set logStreamPrefix(value) {
this._logStreamPrefix = value;
}
resetLogStreamPrefix() {
this._logStreamPrefix = undefined;
}
// Temporarily expose input value. Use with caution.
get logStreamPrefixInput() {
return this._logStreamPrefix;
}
}
exports.EcsExpressGatewayServicePrimaryContainerAwsLogsConfigurationOutputReference = EcsExpressGatewayServicePrimaryContainerAwsLogsConfigurationOutputReference;
_g = JSII_RTTI_SYMBOL_1;
EcsExpressGatewayServicePrimaryContainerAwsLogsConfigurationOutputReference[_g] = { fqn: "@cdktf/provider-aws.ecsExpressGatewayService.EcsExpressGatewayServicePrimaryContainerAwsLogsConfigurationOutputReference", version: "21.22.1" };
class EcsExpressGatewayServicePrimaryContainerAwsLogsConfigurationList 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 EcsExpressGatewayServicePrimaryContainerAwsLogsConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.EcsExpressGatewayServicePrimaryContainerAwsLogsConfigurationList = EcsExpressGatewayServicePrimaryContainerAwsLogsConfigurationList;
_h = JSII_RTTI_SYMBOL_1;
EcsExpressGatewayServicePrimaryContainerAwsLogsConfigurationList[_h] = { fqn: "@cdktf/provider-aws.ecsExpressGatewayService.EcsExpressGatewayServicePrimaryContainerAwsLogsConfigurationList", version: "21.22.1" };
function ecsExpressGatewayServicePrimaryContainerEnvironmentToTerraform(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: cdktf.stringToTerraform(struct.value),
};
}
function ecsExpressGatewayServicePrimaryContainerEnvironmentToHclTerraform(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: {
value: cdktf.stringToHclTerraform(struct.value),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class EcsExpressGatewayServicePrimaryContainerEnvironmentOutputReference 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._value !== undefined) {
hasAnyValues = true;
internalValueResult.value = this._value;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._name = undefined;
this._value = 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._value = value.value;
}
}
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 value() {
return this.getStringAttribute('value');
}
set value(value) {
this._value = value;
}
// Temporarily expose input value. Use with caution.
get valueInput() {
return this._value;
}
}
exports.EcsExpressGatewayServicePrimaryContainerEnvironmentOutputReference = EcsExpressGatewayServicePrimaryContainerEnvironmentOutputReference;
_j = JSII_RTTI_SYMBOL_1;
EcsExpressGatewayServicePrimaryContainerEnvironmentOutputReference[_j] = { fqn: "@cdktf/provider-aws.ecsExpressGatewayService.EcsExpressGatewayServicePrimaryContainerEnvironmentOutputReference", version: "21.22.1" };
class EcsExpressGatewayServicePrimaryContainerEnvironmentList 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 EcsExpressGatewayServicePrimaryContainerEnvironmentOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.EcsExpressGatewayServicePrimaryContainerEnvironmentList = EcsExpressGatewayServicePrimaryContainerEnvironmentList;
_k = JSII_RTTI_SYMBOL_1;
EcsExpressGatewayServicePrimaryContainerEnvironmentList[_k] = { fqn: "@cdktf/provider-aws.ecsExpressGatewayService.EcsExpressGatewayServicePrimaryContainerEnvironmentList", version: "21.22.1" };
function ecsExpressGatewayServicePrimaryContainerRepositoryCredentialsToTerraform(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 {
credentials_parameter: cdktf.stringToTerraform(struct.credentialsParameter),
};
}
function ecsExpressGatewayServicePrimaryContainerRepositoryCredentialsToHclTerraform(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 = {
credentials_parameter: {
value: cdktf.stringToHclTerraform(struct.credentialsParameter),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class EcsExpressGatewayServicePrimaryContainerRepositoryCredentialsOutputReference 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._credentialsParameter !== undefined) {
hasAnyValues = true;
internalValueResult.credentialsParameter = this._credentialsParameter;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._credentialsParameter = 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._credentialsParameter = value.credentialsParameter;
}
}
get credentialsParameter() {
return this.getStringAttribute('credentials_parameter');
}
set credentialsParameter(value) {
this._credentialsParameter = value;
}
// Temporarily expose input value. Use with caution.
get credentialsParameterInput() {
return this._credentialsParameter;
}
}
exports.EcsExpressGatewayServicePrimaryContainerRepositoryCredentialsOutputReference = EcsExpressGatewayServicePrimaryContainerRepositoryCredentialsOutputReference;
_l = JSII_RTTI_SYMBOL_1;
EcsExpressGatewayServicePrimaryContainerRepositoryCredentialsOutputReference[_l] = { fqn: "@cdktf/provider-aws.ecsExpressGatewayService.EcsExpressGatewayServicePrimaryContainerRepositoryCredentialsOutputReference", version: "21.22.1" };
class EcsExpressGatewayServicePrimaryContainerRepositoryCredentialsList 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 EcsExpressGatewayServicePrimaryContainerRepositoryCredentialsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.EcsExpressGatewayServicePrimaryContainerRepositoryCredentialsList = EcsExpressGatewayServicePrimaryContainerRepositoryCredentialsList;
_m = JSII_RTTI_SYMBOL_1;
EcsExpressGatewayServicePrimaryContainerRepositoryCredentialsList[_m] = { fqn: "@cdktf/provider-aws.ecsExpressGatewayService.EcsExpressGatewayServicePrimaryContainerRepositoryCredentialsList", version: "21.22.1" };
function ecsExpressGatewayServicePrimaryContainerSecretToTerraform(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),
};
}
function ecsExpressGatewayServicePrimaryContainerSecretToHclTerraform(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));
}
class EcsExpressGatewayServicePrimaryContainerSecretOutputReference 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.EcsExpressGatewayServicePrimaryContainerSecretOutputReference = EcsExpressGatewayServicePrimaryContainerSecretOutputReference;
_o = JSII_RTTI_SYMBOL_1;
EcsExpressGatewayServicePrimaryContainerSecretOutputReference[_o] = { fqn: "@cdktf/provider-aws.ecsExpressGatewayService.EcsExpressGatewayServicePrimaryContainerSecretOutputReference", version: "21.22.1" };
class EcsExpressGatewayServicePrimaryContainerSecretList 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 EcsExpressGatewayServicePrimaryContainerSecretOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.EcsExpressGatewayServicePrimaryContainerSecretList = EcsExpressGatewayServicePrimaryContainerSecretList;
_p = JSII_RTTI_SYMBOL_1;
EcsExpressGatewayServicePrimaryContainerSecretList[_p] = { fqn: "@cdktf/provider-aws.ecsExpressGatewayService.EcsExpressGatewayServicePrimaryContainerSecretList", version: "21.22.1" };
function ecsExpressGatewayServicePrimaryContainerToTerraform(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 {
aws_logs_configuration: cdktf.listMapper(ecsExpressGatewayServicePrimaryContainerAwsLogsConfigurationToTerraform, false)(struct.awsLogsConfiguration),
command: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.command),
container_port: cdktf.numberToTerraform(struct.containerPort),
image: cdktf.stringToTerraform(struct.image),
environment: cdktf.listMapper(ecsExpressGatewayServicePrimaryContainerEnvironmentToTerraform, true)(struct.environment),
repository_credentials: cdktf.listMapper(ecsExpressGatewayServicePrimaryContainerRepositoryCredentialsToTerraform, true)(struct.repositoryCredentials),
secret: cdktf.listMapper(ecsExpressGatewayServicePrimaryContainerSecretToTerraform, true)(struct.secret),
};
}
function ecsExpressGatewayServicePrimaryContainerToHclTerraform(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 = {
aws_logs_configuration: {
value: cdktf.listMapperHcl(ecsExpressGatewayServicePrimaryContainerAwsLogsConfigurationToHclTerraform, false)(struct.awsLogsConfiguration),
isBlock: true,
type: "list",
storageClassType: "EcsExpressGatewayServicePrimaryContainerAwsLogsConfigurationList",
},
command: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.command),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
container_port: {
value: cdktf.numberToHclTerraform(struct.containerPort),
isBlock: false,
type: "simple",
storageClassType: "number",
},
image: {
value: cdktf.stringToHclTerraform(struct.image),
isBlock: false,
type: "simple",
storageClassType: "string",
},
environment: {
value: cdktf.listMapperHcl(ecsExpressGatewayServicePrimaryContainerEnvironmentToHclTerraform, true)(struct.environment),
isBlock: true,
type: "list",
storageClassType: "EcsExpressGatewayServicePrimaryContainerEnvironmentList",
},
repository_credentials: {
value: cdktf.listMapperHcl(ecsExpressGatewayServicePrimaryContainerRepositoryCredentialsToHclTerraform, true)(struct.repositoryCredentials),
isBlock: true,
type: "list",
storageClassType: "EcsExpressGatewayServicePrimaryContainerRepositoryCredentialsList",
},
secret: {
value: cdktf.listMapperHcl(ecsExpressGatewayServicePrimaryContainerSecretToHclTerraform, true)(struct.secret),
isBlock: true,
type: "list",
storageClassType: "EcsExpressGatewayServicePrimaryContainerSecretList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class EcsExpressGatewayServicePrimaryContainerOutputReference 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;
// aws_logs_configuration - computed: true, optional: true, required: false
this._awsLogsConfiguration = new EcsExpressGatewayServicePrimaryContainerAwsLogsConfigurationList(this, "aws_logs_configuration", false);
// environment - computed: false, optional: true, required: false
this._environment = new EcsExpressGatewayServicePrimaryContainerEnvironmentList(this, "environment", false);
// repository_credentials - computed: false, optional: true, required: false
this._repositoryCredentials = new EcsExpressGatewayServicePrimaryContainerRepositoryCredentialsList(this, "repository_credentials", false);
// secret - computed: false, optional: true, required: false
this._secret = new EcsExpressGatewayServicePrimaryContainerSecretList(this, "secret", false);
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._awsLogsConfiguration?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.awsLogsConfiguration = this._awsLogsConfiguration?.internalValue;
}
if (this._command !== undefined) {
hasAnyValues = true;
internalValueResult.command = this._command;
}
if (this._containerPort !== undefined) {
hasAnyValues = true;
internalValueResult.containerPort = this._containerPort;
}
if (this._image !== undefined) {
hasAnyValues = true;
internalValueResult.image = this._image;
}
if (this._environment?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.environment = this._environment?.internalValue;
}
if (this._repositoryCredentials?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.repositoryCredentials = this._repositoryCredentials?.internalValue;
}
if (this._secret?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.secret = this._secret?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._awsLogsConfiguration.internalValue = undefined;
this._command = undefined;
this._containerPort = undefined;
this._image = undefined;
this._environment.internalValue = undefined;
this._repositoryCredentials.internalValue = undefined;
this._secret.internalValue = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvab