@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
1,105 lines • 162 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FinspaceKxEnvironment = exports.FinspaceKxEnvironmentTransitGatewayConfigurationOutputReference = exports.FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationList = exports.FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationOutputReference = exports.FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationPortRangeOutputReference = exports.FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationIcmpTypeCodeOutputReference = exports.FinspaceKxEnvironmentTimeoutsOutputReference = exports.FinspaceKxEnvironmentCustomDnsConfigurationList = exports.FinspaceKxEnvironmentCustomDnsConfigurationOutputReference = void 0;
exports.finspaceKxEnvironmentCustomDnsConfigurationToTerraform = finspaceKxEnvironmentCustomDnsConfigurationToTerraform;
exports.finspaceKxEnvironmentCustomDnsConfigurationToHclTerraform = finspaceKxEnvironmentCustomDnsConfigurationToHclTerraform;
exports.finspaceKxEnvironmentTimeoutsToTerraform = finspaceKxEnvironmentTimeoutsToTerraform;
exports.finspaceKxEnvironmentTimeoutsToHclTerraform = finspaceKxEnvironmentTimeoutsToHclTerraform;
exports.finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationIcmpTypeCodeToTerraform = finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationIcmpTypeCodeToTerraform;
exports.finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationIcmpTypeCodeToHclTerraform = finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationIcmpTypeCodeToHclTerraform;
exports.finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationPortRangeToTerraform = finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationPortRangeToTerraform;
exports.finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationPortRangeToHclTerraform = finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationPortRangeToHclTerraform;
exports.finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationToTerraform = finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationToTerraform;
exports.finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationToHclTerraform = finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationToHclTerraform;
exports.finspaceKxEnvironmentTransitGatewayConfigurationToTerraform = finspaceKxEnvironmentTransitGatewayConfigurationToTerraform;
exports.finspaceKxEnvironmentTransitGatewayConfigurationToHclTerraform = finspaceKxEnvironmentTransitGatewayConfigurationToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function finspaceKxEnvironmentCustomDnsConfigurationToTerraform(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 {
custom_dns_server_ip: cdktf.stringToTerraform(struct.customDnsServerIp),
custom_dns_server_name: cdktf.stringToTerraform(struct.customDnsServerName),
};
}
function finspaceKxEnvironmentCustomDnsConfigurationToHclTerraform(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 = {
custom_dns_server_ip: {
value: cdktf.stringToHclTerraform(struct.customDnsServerIp),
isBlock: false,
type: "simple",
storageClassType: "string",
},
custom_dns_server_name: {
value: cdktf.stringToHclTerraform(struct.customDnsServerName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class FinspaceKxEnvironmentCustomDnsConfigurationOutputReference 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._customDnsServerIp !== undefined) {
hasAnyValues = true;
internalValueResult.customDnsServerIp = this._customDnsServerIp;
}
if (this._customDnsServerName !== undefined) {
hasAnyValues = true;
internalValueResult.customDnsServerName = this._customDnsServerName;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._customDnsServerIp = undefined;
this._customDnsServerName = 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._customDnsServerIp = value.customDnsServerIp;
this._customDnsServerName = value.customDnsServerName;
}
}
get customDnsServerIp() {
return this.getStringAttribute('custom_dns_server_ip');
}
set customDnsServerIp(value) {
this._customDnsServerIp = value;
}
// Temporarily expose input value. Use with caution.
get customDnsServerIpInput() {
return this._customDnsServerIp;
}
get customDnsServerName() {
return this.getStringAttribute('custom_dns_server_name');
}
set customDnsServerName(value) {
this._customDnsServerName = value;
}
// Temporarily expose input value. Use with caution.
get customDnsServerNameInput() {
return this._customDnsServerName;
}
}
exports.FinspaceKxEnvironmentCustomDnsConfigurationOutputReference = FinspaceKxEnvironmentCustomDnsConfigurationOutputReference;
_a = JSII_RTTI_SYMBOL_1;
FinspaceKxEnvironmentCustomDnsConfigurationOutputReference[_a] = { fqn: "@cdktf/provider-aws.finspaceKxEnvironment.FinspaceKxEnvironmentCustomDnsConfigurationOutputReference", version: "21.22.1" };
class FinspaceKxEnvironmentCustomDnsConfigurationList 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 FinspaceKxEnvironmentCustomDnsConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.FinspaceKxEnvironmentCustomDnsConfigurationList = FinspaceKxEnvironmentCustomDnsConfigurationList;
_b = JSII_RTTI_SYMBOL_1;
FinspaceKxEnvironmentCustomDnsConfigurationList[_b] = { fqn: "@cdktf/provider-aws.finspaceKxEnvironment.FinspaceKxEnvironmentCustomDnsConfigurationList", version: "21.22.1" };
function finspaceKxEnvironmentTimeoutsToTerraform(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 {
create: cdktf.stringToTerraform(struct.create),
delete: cdktf.stringToTerraform(struct.delete),
update: cdktf.stringToTerraform(struct.update),
};
}
function finspaceKxEnvironmentTimeoutsToHclTerraform(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 = {
create: {
value: cdktf.stringToHclTerraform(struct.create),
isBlock: false,
type: "simple",
storageClassType: "string",
},
delete: {
value: cdktf.stringToHclTerraform(struct.delete),
isBlock: false,
type: "simple",
storageClassType: "string",
},
update: {
value: cdktf.stringToHclTerraform(struct.update),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class FinspaceKxEnvironmentTimeoutsOutputReference 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);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._create !== undefined) {
hasAnyValues = true;
internalValueResult.create = this._create;
}
if (this._delete !== undefined) {
hasAnyValues = true;
internalValueResult.delete = this._delete;
}
if (this._update !== undefined) {
hasAnyValues = true;
internalValueResult.update = this._update;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._create = undefined;
this._delete = undefined;
this._update = 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._create = value.create;
this._delete = value.delete;
this._update = value.update;
}
}
get create() {
return this.getStringAttribute('create');
}
set create(value) {
this._create = value;
}
resetCreate() {
this._create = undefined;
}
// Temporarily expose input value. Use with caution.
get createInput() {
return this._create;
}
get delete() {
return this.getStringAttribute('delete');
}
set delete(value) {
this._delete = value;
}
resetDelete() {
this._delete = undefined;
}
// Temporarily expose input value. Use with caution.
get deleteInput() {
return this._delete;
}
get update() {
return this.getStringAttribute('update');
}
set update(value) {
this._update = value;
}
resetUpdate() {
this._update = undefined;
}
// Temporarily expose input value. Use with caution.
get updateInput() {
return this._update;
}
}
exports.FinspaceKxEnvironmentTimeoutsOutputReference = FinspaceKxEnvironmentTimeoutsOutputReference;
_c = JSII_RTTI_SYMBOL_1;
FinspaceKxEnvironmentTimeoutsOutputReference[_c] = { fqn: "@cdktf/provider-aws.finspaceKxEnvironment.FinspaceKxEnvironmentTimeoutsOutputReference", version: "21.22.1" };
function finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationIcmpTypeCodeToTerraform(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 {
code: cdktf.numberToTerraform(struct.code),
type: cdktf.numberToTerraform(struct.type),
};
}
function finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationIcmpTypeCodeToHclTerraform(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 = {
code: {
value: cdktf.numberToHclTerraform(struct.code),
isBlock: false,
type: "simple",
storageClassType: "number",
},
type: {
value: cdktf.numberToHclTerraform(struct.type),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationIcmpTypeCodeOutputReference 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._code !== undefined) {
hasAnyValues = true;
internalValueResult.code = this._code;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._code = undefined;
this._type = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._code = value.code;
this._type = value.type;
}
}
get code() {
return this.getNumberAttribute('code');
}
set code(value) {
this._code = value;
}
// Temporarily expose input value. Use with caution.
get codeInput() {
return this._code;
}
get type() {
return this.getNumberAttribute('type');
}
set type(value) {
this._type = value;
}
// Temporarily expose input value. Use with caution.
get typeInput() {
return this._type;
}
}
exports.FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationIcmpTypeCodeOutputReference = FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationIcmpTypeCodeOutputReference;
_d = JSII_RTTI_SYMBOL_1;
FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationIcmpTypeCodeOutputReference[_d] = { fqn: "@cdktf/provider-aws.finspaceKxEnvironment.FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationIcmpTypeCodeOutputReference", version: "21.22.1" };
function finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationPortRangeToTerraform(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 {
from: cdktf.numberToTerraform(struct.from),
to: cdktf.numberToTerraform(struct.to),
};
}
function finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationPortRangeToHclTerraform(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 = {
from: {
value: cdktf.numberToHclTerraform(struct.from),
isBlock: false,
type: "simple",
storageClassType: "number",
},
to: {
value: cdktf.numberToHclTerraform(struct.to),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationPortRangeOutputReference 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._from !== undefined) {
hasAnyValues = true;
internalValueResult.from = this._from;
}
if (this._to !== undefined) {
hasAnyValues = true;
internalValueResult.to = this._to;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._from = undefined;
this._to = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._from = value.from;
this._to = value.to;
}
}
get from() {
return this.getNumberAttribute('from');
}
set from(value) {
this._from = value;
}
// Temporarily expose input value. Use with caution.
get fromInput() {
return this._from;
}
get to() {
return this.getNumberAttribute('to');
}
set to(value) {
this._to = value;
}
// Temporarily expose input value. Use with caution.
get toInput() {
return this._to;
}
}
exports.FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationPortRangeOutputReference = FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationPortRangeOutputReference;
_e = JSII_RTTI_SYMBOL_1;
FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationPortRangeOutputReference[_e] = { fqn: "@cdktf/provider-aws.finspaceKxEnvironment.FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationPortRangeOutputReference", version: "21.22.1" };
function finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationToTerraform(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 {
cidr_block: cdktf.stringToTerraform(struct.cidrBlock),
protocol: cdktf.stringToTerraform(struct.protocol),
rule_action: cdktf.stringToTerraform(struct.ruleAction),
rule_number: cdktf.numberToTerraform(struct.ruleNumber),
icmp_type_code: finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationIcmpTypeCodeToTerraform(struct.icmpTypeCode),
port_range: finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationPortRangeToTerraform(struct.portRange),
};
}
function finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationToHclTerraform(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 = {
cidr_block: {
value: cdktf.stringToHclTerraform(struct.cidrBlock),
isBlock: false,
type: "simple",
storageClassType: "string",
},
protocol: {
value: cdktf.stringToHclTerraform(struct.protocol),
isBlock: false,
type: "simple",
storageClassType: "string",
},
rule_action: {
value: cdktf.stringToHclTerraform(struct.ruleAction),
isBlock: false,
type: "simple",
storageClassType: "string",
},
rule_number: {
value: cdktf.numberToHclTerraform(struct.ruleNumber),
isBlock: false,
type: "simple",
storageClassType: "number",
},
icmp_type_code: {
value: finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationIcmpTypeCodeToHclTerraform(struct.icmpTypeCode),
isBlock: true,
type: "list",
storageClassType: "FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationIcmpTypeCodeList",
},
port_range: {
value: finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationPortRangeToHclTerraform(struct.portRange),
isBlock: true,
type: "list",
storageClassType: "FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationPortRangeList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationOutputReference 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;
// icmp_type_code - computed: false, optional: true, required: false
this._icmpTypeCode = new FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationIcmpTypeCodeOutputReference(this, "icmp_type_code");
// port_range - computed: false, optional: true, required: false
this._portRange = new FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationPortRangeOutputReference(this, "port_range");
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._cidrBlock !== undefined) {
hasAnyValues = true;
internalValueResult.cidrBlock = this._cidrBlock;
}
if (this._protocol !== undefined) {
hasAnyValues = true;
internalValueResult.protocol = this._protocol;
}
if (this._ruleAction !== undefined) {
hasAnyValues = true;
internalValueResult.ruleAction = this._ruleAction;
}
if (this._ruleNumber !== undefined) {
hasAnyValues = true;
internalValueResult.ruleNumber = this._ruleNumber;
}
if (this._icmpTypeCode?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.icmpTypeCode = this._icmpTypeCode?.internalValue;
}
if (this._portRange?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.portRange = this._portRange?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._cidrBlock = undefined;
this._protocol = undefined;
this._ruleAction = undefined;
this._ruleNumber = undefined;
this._icmpTypeCode.internalValue = undefined;
this._portRange.internalValue = 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._cidrBlock = value.cidrBlock;
this._protocol = value.protocol;
this._ruleAction = value.ruleAction;
this._ruleNumber = value.ruleNumber;
this._icmpTypeCode.internalValue = value.icmpTypeCode;
this._portRange.internalValue = value.portRange;
}
}
get cidrBlock() {
return this.getStringAttribute('cidr_block');
}
set cidrBlock(value) {
this._cidrBlock = value;
}
// Temporarily expose input value. Use with caution.
get cidrBlockInput() {
return this._cidrBlock;
}
get protocol() {
return this.getStringAttribute('protocol');
}
set protocol(value) {
this._protocol = value;
}
// Temporarily expose input value. Use with caution.
get protocolInput() {
return this._protocol;
}
get ruleAction() {
return this.getStringAttribute('rule_action');
}
set ruleAction(value) {
this._ruleAction = value;
}
// Temporarily expose input value. Use with caution.
get ruleActionInput() {
return this._ruleAction;
}
get ruleNumber() {
return this.getNumberAttribute('rule_number');
}
set ruleNumber(value) {
this._ruleNumber = value;
}
// Temporarily expose input value. Use with caution.
get ruleNumberInput() {
return this._ruleNumber;
}
get icmpTypeCode() {
return this._icmpTypeCode;
}
putIcmpTypeCode(value) {
this._icmpTypeCode.internalValue = value;
}
resetIcmpTypeCode() {
this._icmpTypeCode.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get icmpTypeCodeInput() {
return this._icmpTypeCode.internalValue;
}
get portRange() {
return this._portRange;
}
putPortRange(value) {
this._portRange.internalValue = value;
}
resetPortRange() {
this._portRange.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get portRangeInput() {
return this._portRange.internalValue;
}
}
exports.FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationOutputReference = FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationOutputReference;
_f = JSII_RTTI_SYMBOL_1;
FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationOutputReference[_f] = { fqn: "@cdktf/provider-aws.finspaceKxEnvironment.FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationOutputReference", version: "21.22.1" };
class FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationList 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 FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationList = FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationList;
_g = JSII_RTTI_SYMBOL_1;
FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationList[_g] = { fqn: "@cdktf/provider-aws.finspaceKxEnvironment.FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationList", version: "21.22.1" };
function finspaceKxEnvironmentTransitGatewayConfigurationToTerraform(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 {
routable_cidr_space: cdktf.stringToTerraform(struct.routableCidrSpace),
transit_gateway_id: cdktf.stringToTerraform(struct.transitGatewayId),
attachment_network_acl_configuration: cdktf.listMapper(finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationToTerraform, true)(struct.attachmentNetworkAclConfiguration),
};
}
function finspaceKxEnvironmentTransitGatewayConfigurationToHclTerraform(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 = {
routable_cidr_space: {
value: cdktf.stringToHclTerraform(struct.routableCidrSpace),
isBlock: false,
type: "simple",
storageClassType: "string",
},
transit_gateway_id: {
value: cdktf.stringToHclTerraform(struct.transitGatewayId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
attachment_network_acl_configuration: {
value: cdktf.listMapperHcl(finspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationToHclTerraform, true)(struct.attachmentNetworkAclConfiguration),
isBlock: true,
type: "list",
storageClassType: "FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class FinspaceKxEnvironmentTransitGatewayConfigurationOutputReference 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;
// attachment_network_acl_configuration - computed: false, optional: true, required: false
this._attachmentNetworkAclConfiguration = new FinspaceKxEnvironmentTransitGatewayConfigurationAttachmentNetworkAclConfigurationList(this, "attachment_network_acl_configuration", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._routableCidrSpace !== undefined) {
hasAnyValues = true;
internalValueResult.routableCidrSpace = this._routableCidrSpace;
}
if (this._transitGatewayId !== undefined) {
hasAnyValues = true;
internalValueResult.transitGatewayId = this._transitGatewayId;
}
if (this._attachmentNetworkAclConfiguration?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.attachmentNetworkAclConfiguration = this._attachmentNetworkAclConfiguration?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._routableCidrSpace = undefined;
this._transitGatewayId = undefined;
this._attachmentNetworkAclConfiguration.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._routableCidrSpace = value.routableCidrSpace;
this._transitGatewayId = value.transitGatewayId;
this._attachmentNetworkAclConfiguration.internalValue = value.attachmentNetworkAclConfiguration;
}
}
get routableCidrSpace() {
return this.getStringAttribute('routable_cidr_space');
}
set routableCidrSpace(value) {
this._routableCidrSpace = value;
}
// Temporarily expose input value. Use with caution.
get routableCidrSpaceInput() {
return this._routableCidrSpace;
}
get transitGatewayId() {
return this.getStringAttribute('transit_gateway_id');
}
set transitGatewayId(value) {
this._transitGatewayId = value;
}
// Temporarily expose input value. Use with caution.
get transitGatewayIdInput() {
return this._transitGatewayId;
}
get attachmentNetworkAclConfiguration() {
return this._attachmentNetworkAclConfiguration;
}
putAttachmentNetworkAclConfiguration(value) {
this._attachmentNetworkAclConfiguration.internalValue = value;
}
resetAttachmentNetworkAclConfiguration() {
this._attachmentNetworkAclConfiguration.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get attachmentNetworkAclConfigurationInput() {
return this._attachmentNetworkAclConfiguration.internalValue;
}
}
exports.FinspaceKxEnvironmentTransitGatewayConfigurationOutputReference = FinspaceKxEnvironmentTransitGatewayConfigurationOutputReference;
_h = JSII_RTTI_SYMBOL_1;
FinspaceKxEnvironmentTransitGatewayConfigurationOutputReference[_h] = { fqn: "@cdktf/provider-aws.finspaceKxEnvironment.FinspaceKxEnvironmentTransitGatewayConfigurationOutputReference", version: "21.22.1" };
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/finspace_kx_environment aws_finspace_kx_environment}
*/
class FinspaceKxEnvironment extends cdktf.TerraformResource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a FinspaceKxEnvironment resource upon running "cdktf plan <stack-name>"
* @param scope The scope in which to define this construct
* @param importToId The construct id used in the generated config for the FinspaceKxEnvironment to import
* @param importFromId The id of the existing FinspaceKxEnvironment that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/finspace_kx_environment#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the FinspaceKxEnvironment to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aws_finspace_kx_environment", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/finspace_kx_environment aws_finspace_kx_environment} Resource
*
* @param scope The scope in which to define this construct
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
* @param options FinspaceKxEnvironmentConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'aws_finspace_kx_environment',
terraformGeneratorMetadata: {
providerName: 'aws',
providerVersion: '6.25.0',
providerVersionConstraint: '~> 6.0'
},
provider: config.provider,
dependsOn: config.dependsOn,
count: config.count,
lifecycle: config.lifecycle,
provisioners: config.provisioners,
connection: config.connection,
forEach: config.forEach
});
// custom_dns_configuration - computed: false, optional: true, required: false
this._customDnsConfiguration = new FinspaceKxEnvironmentCustomDnsConfigurationList(this, "custom_dns_configuration", false);
// timeouts - computed: false, optional: true, required: false
this._timeouts = new FinspaceKxEnvironmentTimeoutsOutputReference(this, "timeouts");
// transit_gateway_configuration - computed: false, optional: true, required: false
this._transitGatewayConfiguration = new FinspaceKxEnvironmentTransitGatewayConfigurationOutputReference(this, "transit_gateway_configuration");
this._description = config.description;
this._kmsKeyId = config.kmsKeyId;
this._name = config.name;
this._region = config.region;
this._tags = config.tags;
this._tagsAll = config.tagsAll;
this._customDnsConfiguration.internalValue = config.customDnsConfiguration;
this._timeouts.internalValue = config.timeouts;
this._transitGatewayConfiguration.internalValue = config.transitGatewayConfiguration;
}
// ==========
// ATTRIBUTES
// ==========
// arn - computed: true, optional: false, required: false
get arn() {
return this.getStringAttribute('arn');
}
// availability_zones - computed: true, optional: false, required: false
get availabilityZones() {
return this.getListAttribute('availability_zones');
}
// created_timestamp - computed: true, optional: false, required: false
get createdTimestamp() {
return this.getStringAttribute('created_timestamp');
}
get description() {
return this.getStringAttribute('description');
}
set description(value) {
this._description = value;
}
resetDescription() {
this._description = undefined;
}
// Temporarily expose input value. Use with caution.
get descriptionInput() {
return this._description;
}
// id - computed: true, optional: false, required: false
get id() {
return this.getStringAttribute('id');
}
// infrastructure_account_id - computed: true, optional: false, required: false
get infrastructureAccountId() {
return this.getStringAttribute('infrastructure_account_id');
}
get kmsKeyId() {
return this.getStringAttribute('kms_key_id');
}
set kmsKeyId(value) {
this._kmsKeyId = value;
}
// Temporarily expose input value. Use with caution.
get kmsKeyIdInput() {
return this._kmsKeyId;
}
// last_modified_timestamp - computed: true, optional: false, required: false
get lastModifiedTimestamp() {
return this.getStringAttribute('last_modified_timestamp');
}
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 region() {
return this.getStringAttribute('region');
}
set region(value) {
this._region = value;
}
resetRegion() {
this._region = undefined;
}
// Temporarily expose input value. Use with caution.
get regionInput() {
return this._region;
}
// status - computed: true, optional: false, required: false
get status() {
return this.getStringAttribute('status');
}
get tags() {
return this.getStringMapAttribute('tags');
}
set tags(value) {
this._tags = value;
}
resetTags() {
this._tags = undefined;
}
// Temporarily expose input value. Use with caution.
get tagsInput() {
return this._tags;
}
get tagsAll() {
return this.getStringMapAttribute('tags_all');
}
set tagsAll(value) {
this._tagsAll = value;
}
resetTagsAll() {
this._tagsAll = undefined;
}
// Temporarily expose input value. Use with caution.
get tagsAllInput() {
return this._tagsAll;
}
get customDnsConfiguration() {
return this._customDnsConfiguration;
}
putCustomDnsConfiguration(value) {
this._customDnsConfiguration.internalValue = value;
}
resetCustomDnsConfiguration() {
this._customDnsConfiguration.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get customDnsConfigurationInput() {
return this._customDnsConfiguration.internalValue;
}
get timeouts() {
return this._timeouts;
}
putTimeouts(value) {
this._timeouts.internalValue = value;
}
resetTimeouts() {
this._timeouts.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get timeoutsInput() {
return this._timeouts.internalValue;
}
get transitGatewayConfiguration() {
return this._transitGatewayConfiguration;
}
putTransitGatewayConfiguration(value) {
this._transitGatewayConfiguration.internalValue = value;
}
resetTransitGatewayConfiguration() {
this._transitGatewayConfiguration.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get transitGatewayConfigurationInput() {
return this._transitGatewayConfiguration.internalValue;
}
// =========
// SYNTHESIS
// =========
synthesizeAttributes() {
return {
description: cdktf.stringToTerraform(this._description),
kms_key_id: cdktf.stringToTerraform(this._kmsKeyId),
name: cdktf.stringToTerraform(this._name),
region: cdktf.stringToTerraform(this._region),
tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags),
tags_all: cdktf.hashMapper(cdktf.stringToTerraform)(this._tagsAll),
custom_dns_configuration: cdktf.listMapper(finspaceKxEnvironmentCustomDnsConfigurationToTerraform, true)(this._customDnsConfiguration.internalValue),
timeouts: finspaceKxEnvironmentTimeoutsToTerraform(this._timeouts.internalValue),
transit_gateway_configuration: finspaceKxEnvironmentTransitGatewayConfigurationToTerraform(this._transitGatewayConfiguration.internalValue),
};
}
synthesizeHclAttributes() {
const attrs = {
description: {
value: cdktf.stringToHclTerraform(this._description),
isBlock: false,
type: "simple",
storageClassType: "string",
},
kms_key_id: {
value: cdktf.stringToHclTerraform(this._kmsKeyId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
name: {
value: cdktf.stringToHclTerraform(this._name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
region: {
value: cdktf.stringToHclTerraform(this._region),
isBlock: false,
type: "simple",
storageClassType: "string",
},
tags: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._tags),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
tags_all: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._tagsAll),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
custom_dns_configuration: {
value: cdktf.listMapperHcl(finspaceKxEnvironmentCustomDnsConfigurationToHclTerraform, true)(this._customDnsConfiguration.internalValue),
isBlock: true,
type: "list",
storageClassType: "FinspaceKxEnvironmentCustomDnsConfigurationList",
},
timeouts: {
value: finspaceKxEnvironmentTimeoutsToHclTerraform(this._timeouts.internalValue),
isBlock: true,
type: "struct",
storageClassType: "FinspaceKxEnvironmentTimeouts",
},
transit_gateway_configuration: {
value: finspaceKxEnvironmentTransitGatewayConfigurationToHclTerraform(this._transitGatewayConfiguration.internalValue),
isBlock: true,
type: "list",
storageClassType: "FinspaceKxEnvironmentTransitGatewayConfigurationList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
}
exports.FinspaceKxEnvironment = FinspaceKxEnvironment;
_j = JSII_RTTI_SYMBOL_1;
FinspaceKxEnvironment[_j] = { fqn: "@cdktf/provider-aws.finspaceKxEnvironment.FinspaceKxEnvironment", version: "21.22.1" };
// =================
// STATIC PROPERTIES
// =================
FinspaceKxEnvironment.tfResourceType = "aws_finspace_kx_environment";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZmluc3BhY2Uta3gtZW52aXJvbm1lbnQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQXNFQSx3SEFTQztBQUdELDhIQXNCQztBQWlIRCw0RkFVQztBQUdELGtHQTRCQztBQW1IRCw0TkFTQztBQUdELGtPQXNCQztBQTZFRCxzTkFTQztBQUdELDROQXNCQztBQWlHRCxvTUFhQztBQUdELDBNQThDQztBQXFNRCxrSUFVQztBQUdELHdJQTRCQzs7QUExNEJELCtCQUErQjtBQTZEL0IsU0FBZ0Isc0RBQXNELENBQUMsTUFBd0U7SUFDN0ksSUFBSSxDQUFDLEtBQUssQ0FBQyxVQUFVLENBQUMsTUFBTSxDQUFDLElBQUksS0FBSyxDQUFDLFlBQVksQ0FBQyxZQUFZLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQztRQUFDLE9BQU8sTUFBTSxDQUFDO0lBQUMsQ0FBQztJQUM1RixJQUFJLEtBQUssQ0FBQyxnQkFBZ0IsQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDO1FBQ25DLE1BQU0sSUFBSSxLQUFLLENBQUMsb0hBQW9ILENBQUMsQ0FBQztJQUN4SSxDQUFDO0lBQ0QsT0FBTztRQUNMLG9CQUFvQixFQUFFLEtBQUssQ0FBQyxpQkFBaUIsQ0FBQyxNQUFPLENBQUMsaUJBQWlCLENBQUM7UUFDeEUsc0JBQXNCLEVBQUUsS0FBSyxDQUFDLGlCQUFpQixDQUFDLE1BQU8sQ0FBQyxtQkFBbUIsQ0FBQztLQUM3RSxDQUFBO0FBQ0gsQ0FBQztBQUdELFNBQWdCLHlEQUF5RCxDQUFDLE1BQXdFO0lBQ2hKLElBQUksQ0FBQyxLQUFLLENBQUMsVUFBVSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEtBQUssQ0FBQyxZQUFZLENBQUMsWUFBWSxDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUM7UUFBQyxPQUFPLE1BQU0sQ0FBQztJQUFDLENBQUM7SUFDNUYsSUFBSSxLQUFLLENBQUMsZ0JBQWdCLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQztRQUNuQyxNQUFNLElBQUksS0FBSyxDQUFDLG9IQUFvSCxDQUFDLENBQUM7SUFDeEksQ0FBQztJQUNELE1BQU0sS0FBSyxHQUF