UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

1,162 lines 172 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; Object.defineProperty(exports, "__esModule", { value: true }); exports.EksCapability = exports.EksCapabilityTimeoutsOutputReference = exports.EksCapabilityConfigurationList = exports.EksCapabilityConfigurationOutputReference = exports.EksCapabilityConfigurationArgoCdList = exports.EksCapabilityConfigurationArgoCdOutputReference = exports.EksCapabilityConfigurationArgoCdRbacRoleMappingList = exports.EksCapabilityConfigurationArgoCdRbacRoleMappingOutputReference = exports.EksCapabilityConfigurationArgoCdRbacRoleMappingIdentityList = exports.EksCapabilityConfigurationArgoCdRbacRoleMappingIdentityOutputReference = exports.EksCapabilityConfigurationArgoCdNetworkAccessList = exports.EksCapabilityConfigurationArgoCdNetworkAccessOutputReference = exports.EksCapabilityConfigurationArgoCdAwsIdcList = exports.EksCapabilityConfigurationArgoCdAwsIdcOutputReference = void 0; exports.eksCapabilityConfigurationArgoCdAwsIdcToTerraform = eksCapabilityConfigurationArgoCdAwsIdcToTerraform; exports.eksCapabilityConfigurationArgoCdAwsIdcToHclTerraform = eksCapabilityConfigurationArgoCdAwsIdcToHclTerraform; exports.eksCapabilityConfigurationArgoCdNetworkAccessToTerraform = eksCapabilityConfigurationArgoCdNetworkAccessToTerraform; exports.eksCapabilityConfigurationArgoCdNetworkAccessToHclTerraform = eksCapabilityConfigurationArgoCdNetworkAccessToHclTerraform; exports.eksCapabilityConfigurationArgoCdRbacRoleMappingIdentityToTerraform = eksCapabilityConfigurationArgoCdRbacRoleMappingIdentityToTerraform; exports.eksCapabilityConfigurationArgoCdRbacRoleMappingIdentityToHclTerraform = eksCapabilityConfigurationArgoCdRbacRoleMappingIdentityToHclTerraform; exports.eksCapabilityConfigurationArgoCdRbacRoleMappingToTerraform = eksCapabilityConfigurationArgoCdRbacRoleMappingToTerraform; exports.eksCapabilityConfigurationArgoCdRbacRoleMappingToHclTerraform = eksCapabilityConfigurationArgoCdRbacRoleMappingToHclTerraform; exports.eksCapabilityConfigurationArgoCdToTerraform = eksCapabilityConfigurationArgoCdToTerraform; exports.eksCapabilityConfigurationArgoCdToHclTerraform = eksCapabilityConfigurationArgoCdToHclTerraform; exports.eksCapabilityConfigurationToTerraform = eksCapabilityConfigurationToTerraform; exports.eksCapabilityConfigurationToHclTerraform = eksCapabilityConfigurationToHclTerraform; exports.eksCapabilityTimeoutsToTerraform = eksCapabilityTimeoutsToTerraform; exports.eksCapabilityTimeoutsToHclTerraform = eksCapabilityTimeoutsToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function eksCapabilityConfigurationArgoCdAwsIdcToTerraform(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 { idc_instance_arn: cdktf.stringToTerraform(struct.idcInstanceArn), idc_region: cdktf.stringToTerraform(struct.idcRegion), }; } function eksCapabilityConfigurationArgoCdAwsIdcToHclTerraform(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 = { idc_instance_arn: { value: cdktf.stringToHclTerraform(struct.idcInstanceArn), isBlock: false, type: "simple", storageClassType: "string", }, idc_region: { value: cdktf.stringToHclTerraform(struct.idcRegion), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EksCapabilityConfigurationArgoCdAwsIdcOutputReference 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._idcInstanceArn !== undefined) { hasAnyValues = true; internalValueResult.idcInstanceArn = this._idcInstanceArn; } if (this._idcRegion !== undefined) { hasAnyValues = true; internalValueResult.idcRegion = this._idcRegion; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._idcInstanceArn = undefined; this._idcRegion = 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._idcInstanceArn = value.idcInstanceArn; this._idcRegion = value.idcRegion; } } get idcInstanceArn() { return this.getStringAttribute('idc_instance_arn'); } set idcInstanceArn(value) { this._idcInstanceArn = value; } // Temporarily expose input value. Use with caution. get idcInstanceArnInput() { return this._idcInstanceArn; } // idc_managed_application_arn - computed: true, optional: false, required: false get idcManagedApplicationArn() { return this.getStringAttribute('idc_managed_application_arn'); } get idcRegion() { return this.getStringAttribute('idc_region'); } set idcRegion(value) { this._idcRegion = value; } resetIdcRegion() { this._idcRegion = undefined; } // Temporarily expose input value. Use with caution. get idcRegionInput() { return this._idcRegion; } } exports.EksCapabilityConfigurationArgoCdAwsIdcOutputReference = EksCapabilityConfigurationArgoCdAwsIdcOutputReference; _a = JSII_RTTI_SYMBOL_1; EksCapabilityConfigurationArgoCdAwsIdcOutputReference[_a] = { fqn: "@cdktf/provider-aws.eksCapability.EksCapabilityConfigurationArgoCdAwsIdcOutputReference", version: "21.22.1" }; class EksCapabilityConfigurationArgoCdAwsIdcList 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 EksCapabilityConfigurationArgoCdAwsIdcOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.EksCapabilityConfigurationArgoCdAwsIdcList = EksCapabilityConfigurationArgoCdAwsIdcList; _b = JSII_RTTI_SYMBOL_1; EksCapabilityConfigurationArgoCdAwsIdcList[_b] = { fqn: "@cdktf/provider-aws.eksCapability.EksCapabilityConfigurationArgoCdAwsIdcList", version: "21.22.1" }; function eksCapabilityConfigurationArgoCdNetworkAccessToTerraform(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 { vpce_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.vpceIds), }; } function eksCapabilityConfigurationArgoCdNetworkAccessToHclTerraform(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 = { vpce_ids: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.vpceIds), isBlock: false, type: "set", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EksCapabilityConfigurationArgoCdNetworkAccessOutputReference 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._vpceIds !== undefined) { hasAnyValues = true; internalValueResult.vpceIds = this._vpceIds; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._vpceIds = 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._vpceIds = value.vpceIds; } } get vpceIds() { return cdktf.Fn.tolist(this.getListAttribute('vpce_ids')); } set vpceIds(value) { this._vpceIds = value; } resetVpceIds() { this._vpceIds = undefined; } // Temporarily expose input value. Use with caution. get vpceIdsInput() { return this._vpceIds; } } exports.EksCapabilityConfigurationArgoCdNetworkAccessOutputReference = EksCapabilityConfigurationArgoCdNetworkAccessOutputReference; _c = JSII_RTTI_SYMBOL_1; EksCapabilityConfigurationArgoCdNetworkAccessOutputReference[_c] = { fqn: "@cdktf/provider-aws.eksCapability.EksCapabilityConfigurationArgoCdNetworkAccessOutputReference", version: "21.22.1" }; class EksCapabilityConfigurationArgoCdNetworkAccessList 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 EksCapabilityConfigurationArgoCdNetworkAccessOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.EksCapabilityConfigurationArgoCdNetworkAccessList = EksCapabilityConfigurationArgoCdNetworkAccessList; _d = JSII_RTTI_SYMBOL_1; EksCapabilityConfigurationArgoCdNetworkAccessList[_d] = { fqn: "@cdktf/provider-aws.eksCapability.EksCapabilityConfigurationArgoCdNetworkAccessList", version: "21.22.1" }; function eksCapabilityConfigurationArgoCdRbacRoleMappingIdentityToTerraform(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 { id: cdktf.stringToTerraform(struct.id), type: cdktf.stringToTerraform(struct.type), }; } function eksCapabilityConfigurationArgoCdRbacRoleMappingIdentityToHclTerraform(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 = { id: { value: cdktf.stringToHclTerraform(struct.id), isBlock: false, type: "simple", storageClassType: "string", }, type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EksCapabilityConfigurationArgoCdRbacRoleMappingIdentityOutputReference 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._id !== undefined) { hasAnyValues = true; internalValueResult.id = this._id; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._id = undefined; this._type = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._id = value.id; this._type = value.type; } } get id() { return this.getStringAttribute('id'); } set id(value) { this._id = value; } // Temporarily expose input value. Use with caution. get idInput() { return this._id; } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.EksCapabilityConfigurationArgoCdRbacRoleMappingIdentityOutputReference = EksCapabilityConfigurationArgoCdRbacRoleMappingIdentityOutputReference; _e = JSII_RTTI_SYMBOL_1; EksCapabilityConfigurationArgoCdRbacRoleMappingIdentityOutputReference[_e] = { fqn: "@cdktf/provider-aws.eksCapability.EksCapabilityConfigurationArgoCdRbacRoleMappingIdentityOutputReference", version: "21.22.1" }; class EksCapabilityConfigurationArgoCdRbacRoleMappingIdentityList 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 EksCapabilityConfigurationArgoCdRbacRoleMappingIdentityOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.EksCapabilityConfigurationArgoCdRbacRoleMappingIdentityList = EksCapabilityConfigurationArgoCdRbacRoleMappingIdentityList; _f = JSII_RTTI_SYMBOL_1; EksCapabilityConfigurationArgoCdRbacRoleMappingIdentityList[_f] = { fqn: "@cdktf/provider-aws.eksCapability.EksCapabilityConfigurationArgoCdRbacRoleMappingIdentityList", version: "21.22.1" }; function eksCapabilityConfigurationArgoCdRbacRoleMappingToTerraform(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 { role: cdktf.stringToTerraform(struct.role), identity: cdktf.listMapper(eksCapabilityConfigurationArgoCdRbacRoleMappingIdentityToTerraform, true)(struct.identity), }; } function eksCapabilityConfigurationArgoCdRbacRoleMappingToHclTerraform(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 = { role: { value: cdktf.stringToHclTerraform(struct.role), isBlock: false, type: "simple", storageClassType: "string", }, identity: { value: cdktf.listMapperHcl(eksCapabilityConfigurationArgoCdRbacRoleMappingIdentityToHclTerraform, true)(struct.identity), isBlock: true, type: "set", storageClassType: "EksCapabilityConfigurationArgoCdRbacRoleMappingIdentityList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EksCapabilityConfigurationArgoCdRbacRoleMappingOutputReference 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; // identity - computed: false, optional: true, required: false this._identity = new EksCapabilityConfigurationArgoCdRbacRoleMappingIdentityList(this, "identity", true); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._role !== undefined) { hasAnyValues = true; internalValueResult.role = this._role; } if (this._identity?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.identity = this._identity?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._role = undefined; this._identity.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._role = value.role; this._identity.internalValue = value.identity; } } get role() { return this.getStringAttribute('role'); } set role(value) { this._role = value; } // Temporarily expose input value. Use with caution. get roleInput() { return this._role; } get identity() { return this._identity; } putIdentity(value) { this._identity.internalValue = value; } resetIdentity() { this._identity.internalValue = undefined; } // Temporarily expose input value. Use with caution. get identityInput() { return this._identity.internalValue; } } exports.EksCapabilityConfigurationArgoCdRbacRoleMappingOutputReference = EksCapabilityConfigurationArgoCdRbacRoleMappingOutputReference; _g = JSII_RTTI_SYMBOL_1; EksCapabilityConfigurationArgoCdRbacRoleMappingOutputReference[_g] = { fqn: "@cdktf/provider-aws.eksCapability.EksCapabilityConfigurationArgoCdRbacRoleMappingOutputReference", version: "21.22.1" }; class EksCapabilityConfigurationArgoCdRbacRoleMappingList 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 EksCapabilityConfigurationArgoCdRbacRoleMappingOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.EksCapabilityConfigurationArgoCdRbacRoleMappingList = EksCapabilityConfigurationArgoCdRbacRoleMappingList; _h = JSII_RTTI_SYMBOL_1; EksCapabilityConfigurationArgoCdRbacRoleMappingList[_h] = { fqn: "@cdktf/provider-aws.eksCapability.EksCapabilityConfigurationArgoCdRbacRoleMappingList", version: "21.22.1" }; function eksCapabilityConfigurationArgoCdToTerraform(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 { namespace: cdktf.stringToTerraform(struct.namespace), aws_idc: cdktf.listMapper(eksCapabilityConfigurationArgoCdAwsIdcToTerraform, true)(struct.awsIdc), network_access: cdktf.listMapper(eksCapabilityConfigurationArgoCdNetworkAccessToTerraform, true)(struct.networkAccess), rbac_role_mapping: cdktf.listMapper(eksCapabilityConfigurationArgoCdRbacRoleMappingToTerraform, true)(struct.rbacRoleMapping), }; } function eksCapabilityConfigurationArgoCdToHclTerraform(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 = { namespace: { value: cdktf.stringToHclTerraform(struct.namespace), isBlock: false, type: "simple", storageClassType: "string", }, aws_idc: { value: cdktf.listMapperHcl(eksCapabilityConfigurationArgoCdAwsIdcToHclTerraform, true)(struct.awsIdc), isBlock: true, type: "list", storageClassType: "EksCapabilityConfigurationArgoCdAwsIdcList", }, network_access: { value: cdktf.listMapperHcl(eksCapabilityConfigurationArgoCdNetworkAccessToHclTerraform, true)(struct.networkAccess), isBlock: true, type: "list", storageClassType: "EksCapabilityConfigurationArgoCdNetworkAccessList", }, rbac_role_mapping: { value: cdktf.listMapperHcl(eksCapabilityConfigurationArgoCdRbacRoleMappingToHclTerraform, true)(struct.rbacRoleMapping), isBlock: true, type: "set", storageClassType: "EksCapabilityConfigurationArgoCdRbacRoleMappingList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EksCapabilityConfigurationArgoCdOutputReference 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_idc - computed: false, optional: true, required: false this._awsIdc = new EksCapabilityConfigurationArgoCdAwsIdcList(this, "aws_idc", false); // network_access - computed: false, optional: true, required: false this._networkAccess = new EksCapabilityConfigurationArgoCdNetworkAccessList(this, "network_access", false); // rbac_role_mapping - computed: false, optional: true, required: false this._rbacRoleMapping = new EksCapabilityConfigurationArgoCdRbacRoleMappingList(this, "rbac_role_mapping", true); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._namespace !== undefined) { hasAnyValues = true; internalValueResult.namespace = this._namespace; } if (this._awsIdc?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.awsIdc = this._awsIdc?.internalValue; } if (this._networkAccess?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.networkAccess = this._networkAccess?.internalValue; } if (this._rbacRoleMapping?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.rbacRoleMapping = this._rbacRoleMapping?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._namespace = undefined; this._awsIdc.internalValue = undefined; this._networkAccess.internalValue = undefined; this._rbacRoleMapping.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._namespace = value.namespace; this._awsIdc.internalValue = value.awsIdc; this._networkAccess.internalValue = value.networkAccess; this._rbacRoleMapping.internalValue = value.rbacRoleMapping; } } get namespace() { return this.getStringAttribute('namespace'); } set namespace(value) { this._namespace = value; } resetNamespace() { this._namespace = undefined; } // Temporarily expose input value. Use with caution. get namespaceInput() { return this._namespace; } // server_url - computed: true, optional: false, required: false get serverUrl() { return this.getStringAttribute('server_url'); } get awsIdc() { return this._awsIdc; } putAwsIdc(value) { this._awsIdc.internalValue = value; } resetAwsIdc() { this._awsIdc.internalValue = undefined; } // Temporarily expose input value. Use with caution. get awsIdcInput() { return this._awsIdc.internalValue; } get networkAccess() { return this._networkAccess; } putNetworkAccess(value) { this._networkAccess.internalValue = value; } resetNetworkAccess() { this._networkAccess.internalValue = undefined; } // Temporarily expose input value. Use with caution. get networkAccessInput() { return this._networkAccess.internalValue; } get rbacRoleMapping() { return this._rbacRoleMapping; } putRbacRoleMapping(value) { this._rbacRoleMapping.internalValue = value; } resetRbacRoleMapping() { this._rbacRoleMapping.internalValue = undefined; } // Temporarily expose input value. Use with caution. get rbacRoleMappingInput() { return this._rbacRoleMapping.internalValue; } } exports.EksCapabilityConfigurationArgoCdOutputReference = EksCapabilityConfigurationArgoCdOutputReference; _j = JSII_RTTI_SYMBOL_1; EksCapabilityConfigurationArgoCdOutputReference[_j] = { fqn: "@cdktf/provider-aws.eksCapability.EksCapabilityConfigurationArgoCdOutputReference", version: "21.22.1" }; class EksCapabilityConfigurationArgoCdList 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 EksCapabilityConfigurationArgoCdOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.EksCapabilityConfigurationArgoCdList = EksCapabilityConfigurationArgoCdList; _k = JSII_RTTI_SYMBOL_1; EksCapabilityConfigurationArgoCdList[_k] = { fqn: "@cdktf/provider-aws.eksCapability.EksCapabilityConfigurationArgoCdList", version: "21.22.1" }; function eksCapabilityConfigurationToTerraform(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 { argo_cd: cdktf.listMapper(eksCapabilityConfigurationArgoCdToTerraform, true)(struct.argoCd), }; } function eksCapabilityConfigurationToHclTerraform(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 = { argo_cd: { value: cdktf.listMapperHcl(eksCapabilityConfigurationArgoCdToHclTerraform, true)(struct.argoCd), isBlock: true, type: "list", storageClassType: "EksCapabilityConfigurationArgoCdList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EksCapabilityConfigurationOutputReference 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; // argo_cd - computed: false, optional: true, required: false this._argoCd = new EksCapabilityConfigurationArgoCdList(this, "argo_cd", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._argoCd?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.argoCd = this._argoCd?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._argoCd.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._argoCd.internalValue = value.argoCd; } } get argoCd() { return this._argoCd; } putArgoCd(value) { this._argoCd.internalValue = value; } resetArgoCd() { this._argoCd.internalValue = undefined; } // Temporarily expose input value. Use with caution. get argoCdInput() { return this._argoCd.internalValue; } } exports.EksCapabilityConfigurationOutputReference = EksCapabilityConfigurationOutputReference; _l = JSII_RTTI_SYMBOL_1; EksCapabilityConfigurationOutputReference[_l] = { fqn: "@cdktf/provider-aws.eksCapability.EksCapabilityConfigurationOutputReference", version: "21.22.1" }; class EksCapabilityConfigurationList 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 EksCapabilityConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.EksCapabilityConfigurationList = EksCapabilityConfigurationList; _m = JSII_RTTI_SYMBOL_1; EksCapabilityConfigurationList[_m] = { fqn: "@cdktf/provider-aws.eksCapability.EksCapabilityConfigurationList", version: "21.22.1" }; function eksCapabilityTimeoutsToTerraform(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 eksCapabilityTimeoutsToHclTerraform(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 EksCapabilityTimeoutsOutputReference 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.EksCapabilityTimeoutsOutputReference = EksCapabilityTimeoutsOutputReference; _o = JSII_RTTI_SYMBOL_1; EksCapabilityTimeoutsOutputReference[_o] = { fqn: "@cdktf/provider-aws.eksCapability.EksCapabilityTimeoutsOutputReference", version: "21.22.1" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/eks_capability aws_eks_capability} */ class EksCapability extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a EksCapability 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 EksCapability to import * @param importFromId The id of the existing EksCapability that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/eks_capability#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the EksCapability to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aws_eks_capability", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/eks_capability aws_eks_capability} 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 EksCapabilityConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'aws_eks_capability', 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 }); // tags_all - computed: true, optional: false, required: false this._tagsAll = new cdktf.StringMap(this, "tags_all"); // configuration - computed: false, optional: true, required: false this._configuration = new EksCapabilityConfigurationList(this, "configuration", false); // timeouts - computed: false, optional: true, required: false this._timeouts = new EksCapabilityTimeoutsOutputReference(this, "timeouts"); this._capabilityName = config.capabilityName; this._clusterName = config.clusterName; this._deletePropagationPolicy = config.deletePropagationPolicy; this._region = config.region; this._roleArn = config.roleArn; this._tags = config.tags; this._type = config.type; this._configuration.internalValue = config.configuration; this._timeouts.internalValue = config.timeouts; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false get arn() { return this.getStringAttribute('arn'); } get capabilityName() { return this.getStringAttribute('capability_name'); } set capabilityName(value) { this._capabilityName = value; } // Temporarily expose input value. Use with caution. get capabilityNameInput() { return this._capabilityName; } get clusterName() { return this.getStringAttribute('cluster_name'); } set clusterName(value) { this._clusterName = value; } // Temporarily expose input value. Use with caution. get clusterNameInput() { return this._clusterName; } get deletePropagationPolicy() { return this.getStringAttribute('delete_propagation_policy'); } set deletePropagationPolicy(value) { this._deletePropagationPolicy = value; } // Temporarily expose input value. Use with caution. get deletePropagationPolicyInput() { return this._deletePropagationPolicy; } 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; } get roleArn() { return this.getStringAttribute('role_arn'); } set roleArn(value) { this._roleArn = value; } // Temporarily expose input value. Use with caution. get roleArnInput() { return this._roleArn; } 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._tagsAll; } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } // version - computed: true, optional: false, required: false get version() { return this.getStringAttribute('version'); } get configuration() { return this._configuration; } putConfiguration(value) { this._configuration.internalValue = value; } resetConfiguration() { this._configuration.internalValue = undefined; } // Temporarily expose input value. Use with caution. get configurationInput() { return this._configuration.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; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { capability_name: cdktf.stringToTerraform(this._capabilityName), cluster_name: cdktf.stringToTerraform(this._clusterName), delete_propagation_policy: cdktf.stringToTerraform(this._deletePropagationPolicy), region: cdktf.stringToTerraform(this._region), role_arn: cdktf.stringToTerraform(this._roleArn), tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags), type: cdktf.stringToTerraform(this._type), configuration: cdktf.listMapper(eksCapabilityConfigurationToTerraform, true)(this._configuration.internalValue), timeouts: eksCapabilityTimeoutsToTerraform(this._timeouts.internalValue), }; } synthesizeHclAttributes() { const attrs = { capability_name: { value: cdktf.stringToHclTerraform(this._capabilityName), isBlock: false, type: "simple", storageClassType: "string", }, cluster_name: { value: cdktf.stringToHclTerraform(this._clusterName), isBlock: false, type: "simple"