@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
1,005 lines • 429 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;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CodedeployDeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroupOutputReference = exports.codedeployDeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroupToHclTerraform = exports.codedeployDeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroupToTerraform = exports.CodedeployDeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRouteOutputReference = exports.codedeployDeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRouteToHclTerraform = exports.codedeployDeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRouteToTerraform = exports.CodedeployDeploymentGroupLoadBalancerInfoTargetGroupInfoList = exports.CodedeployDeploymentGroupLoadBalancerInfoTargetGroupInfoOutputReference = exports.codedeployDeploymentGroupLoadBalancerInfoTargetGroupInfoToHclTerraform = exports.codedeployDeploymentGroupLoadBalancerInfoTargetGroupInfoToTerraform = exports.CodedeployDeploymentGroupLoadBalancerInfoElbInfoList = exports.CodedeployDeploymentGroupLoadBalancerInfoElbInfoOutputReference = exports.codedeployDeploymentGroupLoadBalancerInfoElbInfoToHclTerraform = exports.codedeployDeploymentGroupLoadBalancerInfoElbInfoToTerraform = exports.CodedeployDeploymentGroupEcsServiceOutputReference = exports.codedeployDeploymentGroupEcsServiceToHclTerraform = exports.codedeployDeploymentGroupEcsServiceToTerraform = exports.CodedeployDeploymentGroupEc2TagSetList = exports.CodedeployDeploymentGroupEc2TagSetOutputReference = exports.codedeployDeploymentGroupEc2TagSetToHclTerraform = exports.codedeployDeploymentGroupEc2TagSetToTerraform = exports.CodedeployDeploymentGroupEc2TagSetEc2TagFilterList = exports.CodedeployDeploymentGroupEc2TagSetEc2TagFilterOutputReference = exports.codedeployDeploymentGroupEc2TagSetEc2TagFilterToHclTerraform = exports.codedeployDeploymentGroupEc2TagSetEc2TagFilterToTerraform = exports.CodedeployDeploymentGroupEc2TagFilterList = exports.CodedeployDeploymentGroupEc2TagFilterOutputReference = exports.codedeployDeploymentGroupEc2TagFilterToHclTerraform = exports.codedeployDeploymentGroupEc2TagFilterToTerraform = exports.CodedeployDeploymentGroupDeploymentStyleOutputReference = exports.codedeployDeploymentGroupDeploymentStyleToHclTerraform = exports.codedeployDeploymentGroupDeploymentStyleToTerraform = exports.CodedeployDeploymentGroupBlueGreenDeploymentConfigOutputReference = exports.codedeployDeploymentGroupBlueGreenDeploymentConfigToHclTerraform = exports.codedeployDeploymentGroupBlueGreenDeploymentConfigToTerraform = exports.CodedeployDeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessOutputReference = exports.codedeployDeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessToHclTerraform = exports.codedeployDeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessToTerraform = exports.CodedeployDeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionOutputReference = exports.codedeployDeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionToHclTerraform = exports.codedeployDeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionToTerraform = exports.CodedeployDeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionOutputReference = exports.codedeployDeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionToHclTerraform = exports.codedeployDeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionToTerraform = exports.CodedeployDeploymentGroupAutoRollbackConfigurationOutputReference = exports.codedeployDeploymentGroupAutoRollbackConfigurationToHclTerraform = exports.codedeployDeploymentGroupAutoRollbackConfigurationToTerraform = exports.CodedeployDeploymentGroupAlarmConfigurationOutputReference = exports.codedeployDeploymentGroupAlarmConfigurationToHclTerraform = exports.codedeployDeploymentGroupAlarmConfigurationToTerraform = void 0;
exports.CodedeployDeploymentGroup = exports.CodedeployDeploymentGroupTriggerConfigurationList = exports.CodedeployDeploymentGroupTriggerConfigurationOutputReference = exports.codedeployDeploymentGroupTriggerConfigurationToHclTerraform = exports.codedeployDeploymentGroupTriggerConfigurationToTerraform = exports.CodedeployDeploymentGroupOnPremisesInstanceTagFilterList = exports.CodedeployDeploymentGroupOnPremisesInstanceTagFilterOutputReference = exports.codedeployDeploymentGroupOnPremisesInstanceTagFilterToHclTerraform = exports.codedeployDeploymentGroupOnPremisesInstanceTagFilterToTerraform = exports.CodedeployDeploymentGroupLoadBalancerInfoOutputReference = exports.codedeployDeploymentGroupLoadBalancerInfoToHclTerraform = exports.codedeployDeploymentGroupLoadBalancerInfoToTerraform = exports.CodedeployDeploymentGroupLoadBalancerInfoTargetGroupPairInfoOutputReference = exports.codedeployDeploymentGroupLoadBalancerInfoTargetGroupPairInfoToHclTerraform = exports.codedeployDeploymentGroupLoadBalancerInfoTargetGroupPairInfoToTerraform = exports.CodedeployDeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRouteOutputReference = exports.codedeployDeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRouteToHclTerraform = exports.codedeployDeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRouteToTerraform = exports.CodedeployDeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroupList = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function codedeployDeploymentGroupAlarmConfigurationToTerraform(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 {
alarms: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.alarms),
enabled: cdktf.booleanToTerraform(struct.enabled),
ignore_poll_alarm_failure: cdktf.booleanToTerraform(struct.ignorePollAlarmFailure),
};
}
exports.codedeployDeploymentGroupAlarmConfigurationToTerraform = codedeployDeploymentGroupAlarmConfigurationToTerraform;
function codedeployDeploymentGroupAlarmConfigurationToHclTerraform(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 = {
alarms: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.alarms),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
enabled: {
value: cdktf.booleanToHclTerraform(struct.enabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
ignore_poll_alarm_failure: {
value: cdktf.booleanToHclTerraform(struct.ignorePollAlarmFailure),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.codedeployDeploymentGroupAlarmConfigurationToHclTerraform = codedeployDeploymentGroupAlarmConfigurationToHclTerraform;
class CodedeployDeploymentGroupAlarmConfigurationOutputReference 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._alarms !== undefined) {
hasAnyValues = true;
internalValueResult.alarms = this._alarms;
}
if (this._enabled !== undefined) {
hasAnyValues = true;
internalValueResult.enabled = this._enabled;
}
if (this._ignorePollAlarmFailure !== undefined) {
hasAnyValues = true;
internalValueResult.ignorePollAlarmFailure = this._ignorePollAlarmFailure;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._alarms = undefined;
this._enabled = undefined;
this._ignorePollAlarmFailure = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._alarms = value.alarms;
this._enabled = value.enabled;
this._ignorePollAlarmFailure = value.ignorePollAlarmFailure;
}
}
get alarms() {
return cdktf.Fn.tolist(this.getListAttribute('alarms'));
}
set alarms(value) {
this._alarms = value;
}
resetAlarms() {
this._alarms = undefined;
}
// Temporarily expose input value. Use with caution.
get alarmsInput() {
return this._alarms;
}
get enabled() {
return this.getBooleanAttribute('enabled');
}
set enabled(value) {
this._enabled = value;
}
resetEnabled() {
this._enabled = undefined;
}
// Temporarily expose input value. Use with caution.
get enabledInput() {
return this._enabled;
}
get ignorePollAlarmFailure() {
return this.getBooleanAttribute('ignore_poll_alarm_failure');
}
set ignorePollAlarmFailure(value) {
this._ignorePollAlarmFailure = value;
}
resetIgnorePollAlarmFailure() {
this._ignorePollAlarmFailure = undefined;
}
// Temporarily expose input value. Use with caution.
get ignorePollAlarmFailureInput() {
return this._ignorePollAlarmFailure;
}
}
exports.CodedeployDeploymentGroupAlarmConfigurationOutputReference = CodedeployDeploymentGroupAlarmConfigurationOutputReference;
_a = JSII_RTTI_SYMBOL_1;
CodedeployDeploymentGroupAlarmConfigurationOutputReference[_a] = { fqn: "@cdktf/provider-aws.codedeployDeploymentGroup.CodedeployDeploymentGroupAlarmConfigurationOutputReference", version: "19.50.0" };
function codedeployDeploymentGroupAutoRollbackConfigurationToTerraform(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 {
enabled: cdktf.booleanToTerraform(struct.enabled),
events: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.events),
};
}
exports.codedeployDeploymentGroupAutoRollbackConfigurationToTerraform = codedeployDeploymentGroupAutoRollbackConfigurationToTerraform;
function codedeployDeploymentGroupAutoRollbackConfigurationToHclTerraform(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 = {
enabled: {
value: cdktf.booleanToHclTerraform(struct.enabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
events: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.events),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.codedeployDeploymentGroupAutoRollbackConfigurationToHclTerraform = codedeployDeploymentGroupAutoRollbackConfigurationToHclTerraform;
class CodedeployDeploymentGroupAutoRollbackConfigurationOutputReference 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._enabled !== undefined) {
hasAnyValues = true;
internalValueResult.enabled = this._enabled;
}
if (this._events !== undefined) {
hasAnyValues = true;
internalValueResult.events = this._events;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._enabled = undefined;
this._events = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._enabled = value.enabled;
this._events = value.events;
}
}
get enabled() {
return this.getBooleanAttribute('enabled');
}
set enabled(value) {
this._enabled = value;
}
resetEnabled() {
this._enabled = undefined;
}
// Temporarily expose input value. Use with caution.
get enabledInput() {
return this._enabled;
}
get events() {
return cdktf.Fn.tolist(this.getListAttribute('events'));
}
set events(value) {
this._events = value;
}
resetEvents() {
this._events = undefined;
}
// Temporarily expose input value. Use with caution.
get eventsInput() {
return this._events;
}
}
exports.CodedeployDeploymentGroupAutoRollbackConfigurationOutputReference = CodedeployDeploymentGroupAutoRollbackConfigurationOutputReference;
_b = JSII_RTTI_SYMBOL_1;
CodedeployDeploymentGroupAutoRollbackConfigurationOutputReference[_b] = { fqn: "@cdktf/provider-aws.codedeployDeploymentGroup.CodedeployDeploymentGroupAutoRollbackConfigurationOutputReference", version: "19.50.0" };
function codedeployDeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionToTerraform(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 {
action_on_timeout: cdktf.stringToTerraform(struct.actionOnTimeout),
wait_time_in_minutes: cdktf.numberToTerraform(struct.waitTimeInMinutes),
};
}
exports.codedeployDeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionToTerraform = codedeployDeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionToTerraform;
function codedeployDeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionToHclTerraform(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 = {
action_on_timeout: {
value: cdktf.stringToHclTerraform(struct.actionOnTimeout),
isBlock: false,
type: "simple",
storageClassType: "string",
},
wait_time_in_minutes: {
value: cdktf.numberToHclTerraform(struct.waitTimeInMinutes),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.codedeployDeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionToHclTerraform = codedeployDeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionToHclTerraform;
class CodedeployDeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionOutputReference 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._actionOnTimeout !== undefined) {
hasAnyValues = true;
internalValueResult.actionOnTimeout = this._actionOnTimeout;
}
if (this._waitTimeInMinutes !== undefined) {
hasAnyValues = true;
internalValueResult.waitTimeInMinutes = this._waitTimeInMinutes;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._actionOnTimeout = undefined;
this._waitTimeInMinutes = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._actionOnTimeout = value.actionOnTimeout;
this._waitTimeInMinutes = value.waitTimeInMinutes;
}
}
get actionOnTimeout() {
return this.getStringAttribute('action_on_timeout');
}
set actionOnTimeout(value) {
this._actionOnTimeout = value;
}
resetActionOnTimeout() {
this._actionOnTimeout = undefined;
}
// Temporarily expose input value. Use with caution.
get actionOnTimeoutInput() {
return this._actionOnTimeout;
}
get waitTimeInMinutes() {
return this.getNumberAttribute('wait_time_in_minutes');
}
set waitTimeInMinutes(value) {
this._waitTimeInMinutes = value;
}
resetWaitTimeInMinutes() {
this._waitTimeInMinutes = undefined;
}
// Temporarily expose input value. Use with caution.
get waitTimeInMinutesInput() {
return this._waitTimeInMinutes;
}
}
exports.CodedeployDeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionOutputReference = CodedeployDeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionOutputReference;
_c = JSII_RTTI_SYMBOL_1;
CodedeployDeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionOutputReference[_c] = { fqn: "@cdktf/provider-aws.codedeployDeploymentGroup.CodedeployDeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionOutputReference", version: "19.50.0" };
function codedeployDeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionToTerraform(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 {
action: cdktf.stringToTerraform(struct.action),
};
}
exports.codedeployDeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionToTerraform = codedeployDeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionToTerraform;
function codedeployDeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionToHclTerraform(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 = {
action: {
value: cdktf.stringToHclTerraform(struct.action),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.codedeployDeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionToHclTerraform = codedeployDeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionToHclTerraform;
class CodedeployDeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionOutputReference 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._action !== undefined) {
hasAnyValues = true;
internalValueResult.action = this._action;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._action = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._action = value.action;
}
}
get action() {
return this.getStringAttribute('action');
}
set action(value) {
this._action = value;
}
resetAction() {
this._action = undefined;
}
// Temporarily expose input value. Use with caution.
get actionInput() {
return this._action;
}
}
exports.CodedeployDeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionOutputReference = CodedeployDeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionOutputReference;
_d = JSII_RTTI_SYMBOL_1;
CodedeployDeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionOutputReference[_d] = { fqn: "@cdktf/provider-aws.codedeployDeploymentGroup.CodedeployDeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionOutputReference", version: "19.50.0" };
function codedeployDeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessToTerraform(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 {
action: cdktf.stringToTerraform(struct.action),
termination_wait_time_in_minutes: cdktf.numberToTerraform(struct.terminationWaitTimeInMinutes),
};
}
exports.codedeployDeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessToTerraform = codedeployDeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessToTerraform;
function codedeployDeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessToHclTerraform(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 = {
action: {
value: cdktf.stringToHclTerraform(struct.action),
isBlock: false,
type: "simple",
storageClassType: "string",
},
termination_wait_time_in_minutes: {
value: cdktf.numberToHclTerraform(struct.terminationWaitTimeInMinutes),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.codedeployDeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessToHclTerraform = codedeployDeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessToHclTerraform;
class CodedeployDeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessOutputReference 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._action !== undefined) {
hasAnyValues = true;
internalValueResult.action = this._action;
}
if (this._terminationWaitTimeInMinutes !== undefined) {
hasAnyValues = true;
internalValueResult.terminationWaitTimeInMinutes = this._terminationWaitTimeInMinutes;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._action = undefined;
this._terminationWaitTimeInMinutes = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._action = value.action;
this._terminationWaitTimeInMinutes = value.terminationWaitTimeInMinutes;
}
}
get action() {
return this.getStringAttribute('action');
}
set action(value) {
this._action = value;
}
resetAction() {
this._action = undefined;
}
// Temporarily expose input value. Use with caution.
get actionInput() {
return this._action;
}
get terminationWaitTimeInMinutes() {
return this.getNumberAttribute('termination_wait_time_in_minutes');
}
set terminationWaitTimeInMinutes(value) {
this._terminationWaitTimeInMinutes = value;
}
resetTerminationWaitTimeInMinutes() {
this._terminationWaitTimeInMinutes = undefined;
}
// Temporarily expose input value. Use with caution.
get terminationWaitTimeInMinutesInput() {
return this._terminationWaitTimeInMinutes;
}
}
exports.CodedeployDeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessOutputReference = CodedeployDeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessOutputReference;
_e = JSII_RTTI_SYMBOL_1;
CodedeployDeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessOutputReference[_e] = { fqn: "@cdktf/provider-aws.codedeployDeploymentGroup.CodedeployDeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessOutputReference", version: "19.50.0" };
function codedeployDeploymentGroupBlueGreenDeploymentConfigToTerraform(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 {
deployment_ready_option: codedeployDeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionToTerraform(struct.deploymentReadyOption),
green_fleet_provisioning_option: codedeployDeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionToTerraform(struct.greenFleetProvisioningOption),
terminate_blue_instances_on_deployment_success: codedeployDeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessToTerraform(struct.terminateBlueInstancesOnDeploymentSuccess),
};
}
exports.codedeployDeploymentGroupBlueGreenDeploymentConfigToTerraform = codedeployDeploymentGroupBlueGreenDeploymentConfigToTerraform;
function codedeployDeploymentGroupBlueGreenDeploymentConfigToHclTerraform(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 = {
deployment_ready_option: {
value: codedeployDeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionToHclTerraform(struct.deploymentReadyOption),
isBlock: true,
type: "list",
storageClassType: "CodedeployDeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionList",
},
green_fleet_provisioning_option: {
value: codedeployDeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionToHclTerraform(struct.greenFleetProvisioningOption),
isBlock: true,
type: "list",
storageClassType: "CodedeployDeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionList",
},
terminate_blue_instances_on_deployment_success: {
value: codedeployDeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessToHclTerraform(struct.terminateBlueInstancesOnDeploymentSuccess),
isBlock: true,
type: "list",
storageClassType: "CodedeployDeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.codedeployDeploymentGroupBlueGreenDeploymentConfigToHclTerraform = codedeployDeploymentGroupBlueGreenDeploymentConfigToHclTerraform;
class CodedeployDeploymentGroupBlueGreenDeploymentConfigOutputReference 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;
// deployment_ready_option - computed: false, optional: true, required: false
this._deploymentReadyOption = new CodedeployDeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionOutputReference(this, "deployment_ready_option");
// green_fleet_provisioning_option - computed: false, optional: true, required: false
this._greenFleetProvisioningOption = new CodedeployDeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOptionOutputReference(this, "green_fleet_provisioning_option");
// terminate_blue_instances_on_deployment_success - computed: false, optional: true, required: false
this._terminateBlueInstancesOnDeploymentSuccess = new CodedeployDeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccessOutputReference(this, "terminate_blue_instances_on_deployment_success");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._deploymentReadyOption?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.deploymentReadyOption = this._deploymentReadyOption?.internalValue;
}
if (this._greenFleetProvisioningOption?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.greenFleetProvisioningOption = this._greenFleetProvisioningOption?.internalValue;
}
if (this._terminateBlueInstancesOnDeploymentSuccess?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.terminateBlueInstancesOnDeploymentSuccess = this._terminateBlueInstancesOnDeploymentSuccess?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._deploymentReadyOption.internalValue = undefined;
this._greenFleetProvisioningOption.internalValue = undefined;
this._terminateBlueInstancesOnDeploymentSuccess.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._deploymentReadyOption.internalValue = value.deploymentReadyOption;
this._greenFleetProvisioningOption.internalValue = value.greenFleetProvisioningOption;
this._terminateBlueInstancesOnDeploymentSuccess.internalValue = value.terminateBlueInstancesOnDeploymentSuccess;
}
}
get deploymentReadyOption() {
return this._deploymentReadyOption;
}
putDeploymentReadyOption(value) {
this._deploymentReadyOption.internalValue = value;
}
resetDeploymentReadyOption() {
this._deploymentReadyOption.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get deploymentReadyOptionInput() {
return this._deploymentReadyOption.internalValue;
}
get greenFleetProvisioningOption() {
return this._greenFleetProvisioningOption;
}
putGreenFleetProvisioningOption(value) {
this._greenFleetProvisioningOption.internalValue = value;
}
resetGreenFleetProvisioningOption() {
this._greenFleetProvisioningOption.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get greenFleetProvisioningOptionInput() {
return this._greenFleetProvisioningOption.internalValue;
}
get terminateBlueInstancesOnDeploymentSuccess() {
return this._terminateBlueInstancesOnDeploymentSuccess;
}
putTerminateBlueInstancesOnDeploymentSuccess(value) {
this._terminateBlueInstancesOnDeploymentSuccess.internalValue = value;
}
resetTerminateBlueInstancesOnDeploymentSuccess() {
this._terminateBlueInstancesOnDeploymentSuccess.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get terminateBlueInstancesOnDeploymentSuccessInput() {
return this._terminateBlueInstancesOnDeploymentSuccess.internalValue;
}
}
exports.CodedeployDeploymentGroupBlueGreenDeploymentConfigOutputReference = CodedeployDeploymentGroupBlueGreenDeploymentConfigOutputReference;
_f = JSII_RTTI_SYMBOL_1;
CodedeployDeploymentGroupBlueGreenDeploymentConfigOutputReference[_f] = { fqn: "@cdktf/provider-aws.codedeployDeploymentGroup.CodedeployDeploymentGroupBlueGreenDeploymentConfigOutputReference", version: "19.50.0" };
function codedeployDeploymentGroupDeploymentStyleToTerraform(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 {
deployment_option: cdktf.stringToTerraform(struct.deploymentOption),
deployment_type: cdktf.stringToTerraform(struct.deploymentType),
};
}
exports.codedeployDeploymentGroupDeploymentStyleToTerraform = codedeployDeploymentGroupDeploymentStyleToTerraform;
function codedeployDeploymentGroupDeploymentStyleToHclTerraform(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 = {
deployment_option: {
value: cdktf.stringToHclTerraform(struct.deploymentOption),
isBlock: false,
type: "simple",
storageClassType: "string",
},
deployment_type: {
value: cdktf.stringToHclTerraform(struct.deploymentType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.codedeployDeploymentGroupDeploymentStyleToHclTerraform = codedeployDeploymentGroupDeploymentStyleToHclTerraform;
class CodedeployDeploymentGroupDeploymentStyleOutputReference 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._deploymentOption !== undefined) {
hasAnyValues = true;
internalValueResult.deploymentOption = this._deploymentOption;
}
if (this._deploymentType !== undefined) {
hasAnyValues = true;
internalValueResult.deploymentType = this._deploymentType;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._deploymentOption = undefined;
this._deploymentType = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._deploymentOption = value.deploymentOption;
this._deploymentType = value.deploymentType;
}
}
get deploymentOption() {
return this.getStringAttribute('deployment_option');
}
set deploymentOption(value) {
this._deploymentOption = value;
}
resetDeploymentOption() {
this._deploymentOption = undefined;
}
// Temporarily expose input value. Use with caution.
get deploymentOptionInput() {
return this._deploymentOption;
}
get deploymentType() {
return this.getStringAttribute('deployment_type');
}
set deploymentType(value) {
this._deploymentType = value;
}
resetDeploymentType() {
this._deploymentType = undefined;
}
// Temporarily expose input value. Use with caution.
get deploymentTypeInput() {
return this._deploymentType;
}
}
exports.CodedeployDeploymentGroupDeploymentStyleOutputReference = CodedeployDeploymentGroupDeploymentStyleOutputReference;
_g = JSII_RTTI_SYMBOL_1;
CodedeployDeploymentGroupDeploymentStyleOutputReference[_g] = { fqn: "@cdktf/provider-aws.codedeployDeploymentGroup.CodedeployDeploymentGroupDeploymentStyleOutputReference", version: "19.50.0" };
function codedeployDeploymentGroupEc2TagFilterToTerraform(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 {
key: cdktf.stringToTerraform(struct.key),
type: cdktf.stringToTerraform(struct.type),
value: cdktf.stringToTerraform(struct.value),
};
}
exports.codedeployDeploymentGroupEc2TagFilterToTerraform = codedeployDeploymentGroupEc2TagFilterToTerraform;
function codedeployDeploymentGroupEc2TagFilterToHclTerraform(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 = {
key: {
value: cdktf.stringToHclTerraform(struct.key),
isBlock: false,
type: "simple",
storageClassType: "string",
},
type: {
value: cdktf.stringToHclTerraform(struct.type),
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));
}
exports.codedeployDeploymentGroupEc2TagFilterToHclTerraform = codedeployDeploymentGroupEc2TagFilterToHclTerraform;
class CodedeployDeploymentGroupEc2TagFilterOutputReference 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._key !== undefined) {
hasAnyValues = true;
internalValueResult.key = this._key;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
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._key = undefined;
this._type = 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._key = value.key;
this._type = value.type;
this._value = value.value;
}
}
get key() {
return this.getStringAttribute('key');
}
set key(value) {
this._key = value;
}
resetKey() {
this._key = undefined;
}
// Temporarily expose input value. Use with caution.
get keyInput() {
return this._key;
}
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;
}
get value() {
return this.getStringAttribute('value');
}
set value(value) {
this._value = value;
}
resetValue() {
this._value = undefined;
}
// Temporarily expose input value. Use with caution.
get valueInput() {
return this._value;
}
}
exports.CodedeployDeploymentGroupEc2TagFilterOutputReference = CodedeployDeploymentGroupEc2TagFilterOutputReference;
_h = JSII_RTTI_SYMBOL_1;
CodedeployDeploymentGroupEc2TagFilterOutputReference[_h] = { fqn: "@cdktf/provider-aws.codedeployDeploymentGroup.CodedeployDeploymentGroupEc2TagFilterOutputReference", version: "19.50.0" };
class CodedeployDeploymentGroupEc2TagFilterList 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 CodedeployDeploymentGroupEc2TagFilterOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.CodedeployDeploymentGroupEc2TagFilterList = CodedeployDeploymentGroupEc2TagFilterList;
_j = JSII_RTTI_SYMBOL_1;
CodedeployDeploymentGroupEc2TagFilterList[_j] = { fqn: "@cdktf/provider-aws.codedeployDeploymentGroup.CodedeployDeploymentGroupEc2TagFilterList", version: "19.50.0" };
function codedeployDeploymentGroupEc2TagSetEc2TagFilterToTerraform(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 {
key: cdktf.stringToTerraform(struct.key),
type: cdktf.stringToTerraform(struct.type),
value: cdktf.stringToTerraform(struct.value),
};
}
exports.codedeployDeploymentGroupEc2TagSetEc2TagFilterToTerraform = codedeployDeploymentGroupEc2TagSetEc2TagFilterToTerraform;
function codedeployDeploymentGroupEc2TagSetEc2TagFilterToHclTerraform(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 = {
key: {
value: cdktf.stringToHclTerraform(struct.key),
isBlock: false,
type: "simple",
storageClassType: "string",
},
type: {
value: cdktf.stringToHclTerraform(struct.type),
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));
}
exports.codedeployDeploymentGroupEc2TagSetEc2TagFilterToHclTerraform = codedeployDeploymentGroupEc2TagSetEc2TagFilterToHclTerraform;
class CodedeployDeploymentGroupEc2TagSetEc2TagFilterOutputReference 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._key !== undefined) {
hasAnyValues = true;
internalValueResult.key = this._key;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
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._key = undefined;
this._type = 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.resolvableVal