UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

913 lines 153 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataAwsEcsTaskDefinition = exports.DataAwsEcsTaskDefinitionVolumeList = exports.DataAwsEcsTaskDefinitionVolumeOutputReference = exports.DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationList = exports.DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationOutputReference = exports.DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigList = exports.DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigOutputReference = exports.DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationList = exports.DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationOutputReference = exports.DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfigList = exports.DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfigOutputReference = exports.DataAwsEcsTaskDefinitionVolumeDockerVolumeConfigurationList = exports.DataAwsEcsTaskDefinitionVolumeDockerVolumeConfigurationOutputReference = exports.DataAwsEcsTaskDefinitionRuntimePlatformList = exports.DataAwsEcsTaskDefinitionRuntimePlatformOutputReference = exports.DataAwsEcsTaskDefinitionProxyConfigurationList = exports.DataAwsEcsTaskDefinitionProxyConfigurationOutputReference = exports.DataAwsEcsTaskDefinitionPlacementConstraintsList = exports.DataAwsEcsTaskDefinitionPlacementConstraintsOutputReference = exports.DataAwsEcsTaskDefinitionEphemeralStorageList = exports.DataAwsEcsTaskDefinitionEphemeralStorageOutputReference = void 0; exports.dataAwsEcsTaskDefinitionEphemeralStorageToTerraform = dataAwsEcsTaskDefinitionEphemeralStorageToTerraform; exports.dataAwsEcsTaskDefinitionEphemeralStorageToHclTerraform = dataAwsEcsTaskDefinitionEphemeralStorageToHclTerraform; exports.dataAwsEcsTaskDefinitionPlacementConstraintsToTerraform = dataAwsEcsTaskDefinitionPlacementConstraintsToTerraform; exports.dataAwsEcsTaskDefinitionPlacementConstraintsToHclTerraform = dataAwsEcsTaskDefinitionPlacementConstraintsToHclTerraform; exports.dataAwsEcsTaskDefinitionProxyConfigurationToTerraform = dataAwsEcsTaskDefinitionProxyConfigurationToTerraform; exports.dataAwsEcsTaskDefinitionProxyConfigurationToHclTerraform = dataAwsEcsTaskDefinitionProxyConfigurationToHclTerraform; exports.dataAwsEcsTaskDefinitionRuntimePlatformToTerraform = dataAwsEcsTaskDefinitionRuntimePlatformToTerraform; exports.dataAwsEcsTaskDefinitionRuntimePlatformToHclTerraform = dataAwsEcsTaskDefinitionRuntimePlatformToHclTerraform; exports.dataAwsEcsTaskDefinitionVolumeDockerVolumeConfigurationToTerraform = dataAwsEcsTaskDefinitionVolumeDockerVolumeConfigurationToTerraform; exports.dataAwsEcsTaskDefinitionVolumeDockerVolumeConfigurationToHclTerraform = dataAwsEcsTaskDefinitionVolumeDockerVolumeConfigurationToHclTerraform; exports.dataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfigToTerraform = dataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfigToTerraform; exports.dataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfigToHclTerraform = dataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfigToHclTerraform; exports.dataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationToTerraform = dataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationToTerraform; exports.dataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationToHclTerraform = dataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationToHclTerraform; exports.dataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigToTerraform = dataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigToTerraform; exports.dataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigToHclTerraform = dataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigToHclTerraform; exports.dataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationToTerraform = dataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationToTerraform; exports.dataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationToHclTerraform = dataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationToHclTerraform; exports.dataAwsEcsTaskDefinitionVolumeToTerraform = dataAwsEcsTaskDefinitionVolumeToTerraform; exports.dataAwsEcsTaskDefinitionVolumeToHclTerraform = dataAwsEcsTaskDefinitionVolumeToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dataAwsEcsTaskDefinitionEphemeralStorageToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } function dataAwsEcsTaskDefinitionEphemeralStorageToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } class DataAwsEcsTaskDefinitionEphemeralStorageOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // size_in_gib - computed: true, optional: false, required: false get sizeInGib() { return this.getNumberAttribute('size_in_gib'); } } exports.DataAwsEcsTaskDefinitionEphemeralStorageOutputReference = DataAwsEcsTaskDefinitionEphemeralStorageOutputReference; _a = JSII_RTTI_SYMBOL_1; DataAwsEcsTaskDefinitionEphemeralStorageOutputReference[_a] = { fqn: "@cdktf/provider-aws.dataAwsEcsTaskDefinition.DataAwsEcsTaskDefinitionEphemeralStorageOutputReference", version: "21.22.1" }; class DataAwsEcsTaskDefinitionEphemeralStorageList 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 DataAwsEcsTaskDefinitionEphemeralStorageOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAwsEcsTaskDefinitionEphemeralStorageList = DataAwsEcsTaskDefinitionEphemeralStorageList; _b = JSII_RTTI_SYMBOL_1; DataAwsEcsTaskDefinitionEphemeralStorageList[_b] = { fqn: "@cdktf/provider-aws.dataAwsEcsTaskDefinition.DataAwsEcsTaskDefinitionEphemeralStorageList", version: "21.22.1" }; function dataAwsEcsTaskDefinitionPlacementConstraintsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } function dataAwsEcsTaskDefinitionPlacementConstraintsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } class DataAwsEcsTaskDefinitionPlacementConstraintsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // expression - computed: true, optional: false, required: false get expression() { return this.getStringAttribute('expression'); } // type - computed: true, optional: false, required: false get type() { return this.getStringAttribute('type'); } } exports.DataAwsEcsTaskDefinitionPlacementConstraintsOutputReference = DataAwsEcsTaskDefinitionPlacementConstraintsOutputReference; _c = JSII_RTTI_SYMBOL_1; DataAwsEcsTaskDefinitionPlacementConstraintsOutputReference[_c] = { fqn: "@cdktf/provider-aws.dataAwsEcsTaskDefinition.DataAwsEcsTaskDefinitionPlacementConstraintsOutputReference", version: "21.22.1" }; class DataAwsEcsTaskDefinitionPlacementConstraintsList 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 DataAwsEcsTaskDefinitionPlacementConstraintsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAwsEcsTaskDefinitionPlacementConstraintsList = DataAwsEcsTaskDefinitionPlacementConstraintsList; _d = JSII_RTTI_SYMBOL_1; DataAwsEcsTaskDefinitionPlacementConstraintsList[_d] = { fqn: "@cdktf/provider-aws.dataAwsEcsTaskDefinition.DataAwsEcsTaskDefinitionPlacementConstraintsList", version: "21.22.1" }; function dataAwsEcsTaskDefinitionProxyConfigurationToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } function dataAwsEcsTaskDefinitionProxyConfigurationToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } class DataAwsEcsTaskDefinitionProxyConfigurationOutputReference 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; // properties - computed: true, optional: false, required: false this._properties = new cdktf.StringMap(this, "properties"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // container_name - computed: true, optional: false, required: false get containerName() { return this.getStringAttribute('container_name'); } get properties() { return this._properties; } // type - computed: true, optional: false, required: false get type() { return this.getStringAttribute('type'); } } exports.DataAwsEcsTaskDefinitionProxyConfigurationOutputReference = DataAwsEcsTaskDefinitionProxyConfigurationOutputReference; _e = JSII_RTTI_SYMBOL_1; DataAwsEcsTaskDefinitionProxyConfigurationOutputReference[_e] = { fqn: "@cdktf/provider-aws.dataAwsEcsTaskDefinition.DataAwsEcsTaskDefinitionProxyConfigurationOutputReference", version: "21.22.1" }; class DataAwsEcsTaskDefinitionProxyConfigurationList 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 DataAwsEcsTaskDefinitionProxyConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAwsEcsTaskDefinitionProxyConfigurationList = DataAwsEcsTaskDefinitionProxyConfigurationList; _f = JSII_RTTI_SYMBOL_1; DataAwsEcsTaskDefinitionProxyConfigurationList[_f] = { fqn: "@cdktf/provider-aws.dataAwsEcsTaskDefinition.DataAwsEcsTaskDefinitionProxyConfigurationList", version: "21.22.1" }; function dataAwsEcsTaskDefinitionRuntimePlatformToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } function dataAwsEcsTaskDefinitionRuntimePlatformToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } class DataAwsEcsTaskDefinitionRuntimePlatformOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // cpu_architecture - computed: true, optional: false, required: false get cpuArchitecture() { return this.getStringAttribute('cpu_architecture'); } // operating_system_family - computed: true, optional: false, required: false get operatingSystemFamily() { return this.getStringAttribute('operating_system_family'); } } exports.DataAwsEcsTaskDefinitionRuntimePlatformOutputReference = DataAwsEcsTaskDefinitionRuntimePlatformOutputReference; _g = JSII_RTTI_SYMBOL_1; DataAwsEcsTaskDefinitionRuntimePlatformOutputReference[_g] = { fqn: "@cdktf/provider-aws.dataAwsEcsTaskDefinition.DataAwsEcsTaskDefinitionRuntimePlatformOutputReference", version: "21.22.1" }; class DataAwsEcsTaskDefinitionRuntimePlatformList 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 DataAwsEcsTaskDefinitionRuntimePlatformOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAwsEcsTaskDefinitionRuntimePlatformList = DataAwsEcsTaskDefinitionRuntimePlatformList; _h = JSII_RTTI_SYMBOL_1; DataAwsEcsTaskDefinitionRuntimePlatformList[_h] = { fqn: "@cdktf/provider-aws.dataAwsEcsTaskDefinition.DataAwsEcsTaskDefinitionRuntimePlatformList", version: "21.22.1" }; function dataAwsEcsTaskDefinitionVolumeDockerVolumeConfigurationToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } function dataAwsEcsTaskDefinitionVolumeDockerVolumeConfigurationToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } class DataAwsEcsTaskDefinitionVolumeDockerVolumeConfigurationOutputReference 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; // driver_opts - computed: true, optional: false, required: false this._driverOpts = new cdktf.StringMap(this, "driver_opts"); // labels - computed: true, optional: false, required: false this._labels = new cdktf.StringMap(this, "labels"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // autoprovision - computed: true, optional: false, required: false get autoprovision() { return this.getBooleanAttribute('autoprovision'); } // driver - computed: true, optional: false, required: false get driver() { return this.getStringAttribute('driver'); } get driverOpts() { return this._driverOpts; } get labels() { return this._labels; } // scope - computed: true, optional: false, required: false get scope() { return this.getStringAttribute('scope'); } } exports.DataAwsEcsTaskDefinitionVolumeDockerVolumeConfigurationOutputReference = DataAwsEcsTaskDefinitionVolumeDockerVolumeConfigurationOutputReference; _j = JSII_RTTI_SYMBOL_1; DataAwsEcsTaskDefinitionVolumeDockerVolumeConfigurationOutputReference[_j] = { fqn: "@cdktf/provider-aws.dataAwsEcsTaskDefinition.DataAwsEcsTaskDefinitionVolumeDockerVolumeConfigurationOutputReference", version: "21.22.1" }; class DataAwsEcsTaskDefinitionVolumeDockerVolumeConfigurationList 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 DataAwsEcsTaskDefinitionVolumeDockerVolumeConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAwsEcsTaskDefinitionVolumeDockerVolumeConfigurationList = DataAwsEcsTaskDefinitionVolumeDockerVolumeConfigurationList; _k = JSII_RTTI_SYMBOL_1; DataAwsEcsTaskDefinitionVolumeDockerVolumeConfigurationList[_k] = { fqn: "@cdktf/provider-aws.dataAwsEcsTaskDefinition.DataAwsEcsTaskDefinitionVolumeDockerVolumeConfigurationList", version: "21.22.1" }; function dataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfigToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } function dataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfigToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } class DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfigOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // access_point_id - computed: true, optional: false, required: false get accessPointId() { return this.getStringAttribute('access_point_id'); } // iam - computed: true, optional: false, required: false get iam() { return this.getStringAttribute('iam'); } } exports.DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfigOutputReference = DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfigOutputReference; _l = JSII_RTTI_SYMBOL_1; DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfigOutputReference[_l] = { fqn: "@cdktf/provider-aws.dataAwsEcsTaskDefinition.DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfigOutputReference", version: "21.22.1" }; class DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfigList 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 DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfigList = DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfigList; _m = JSII_RTTI_SYMBOL_1; DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfigList[_m] = { fqn: "@cdktf/provider-aws.dataAwsEcsTaskDefinition.DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfigList", version: "21.22.1" }; function dataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } function dataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } class DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationOutputReference 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; // authorization_config - computed: true, optional: false, required: false this._authorizationConfig = new DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfigList(this, "authorization_config", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } get authorizationConfig() { return this._authorizationConfig; } // file_system_id - computed: true, optional: false, required: false get fileSystemId() { return this.getStringAttribute('file_system_id'); } // root_directory - computed: true, optional: false, required: false get rootDirectory() { return this.getStringAttribute('root_directory'); } // transit_encryption - computed: true, optional: false, required: false get transitEncryption() { return this.getStringAttribute('transit_encryption'); } // transit_encryption_port - computed: true, optional: false, required: false get transitEncryptionPort() { return this.getNumberAttribute('transit_encryption_port'); } } exports.DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationOutputReference = DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationOutputReference; _o = JSII_RTTI_SYMBOL_1; DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationOutputReference[_o] = { fqn: "@cdktf/provider-aws.dataAwsEcsTaskDefinition.DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationOutputReference", version: "21.22.1" }; class DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationList 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 DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationList = DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationList; _p = JSII_RTTI_SYMBOL_1; DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationList[_p] = { fqn: "@cdktf/provider-aws.dataAwsEcsTaskDefinition.DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationList", version: "21.22.1" }; function dataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } function dataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } class DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // credentials_parameter - computed: true, optional: false, required: false get credentialsParameter() { return this.getStringAttribute('credentials_parameter'); } // domain - computed: true, optional: false, required: false get domain() { return this.getStringAttribute('domain'); } } exports.DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigOutputReference = DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigOutputReference; _q = JSII_RTTI_SYMBOL_1; DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigOutputReference[_q] = { fqn: "@cdktf/provider-aws.dataAwsEcsTaskDefinition.DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigOutputReference", version: "21.22.1" }; class DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigList 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 DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigList = DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigList; _r = JSII_RTTI_SYMBOL_1; DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigList[_r] = { fqn: "@cdktf/provider-aws.dataAwsEcsTaskDefinition.DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigList", version: "21.22.1" }; function dataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } function dataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } class DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationOutputReference 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; // authorization_config - computed: true, optional: false, required: false this._authorizationConfig = new DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfigList(this, "authorization_config", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } get authorizationConfig() { return this._authorizationConfig; } // file_system_id - computed: true, optional: false, required: false get fileSystemId() { return this.getStringAttribute('file_system_id'); } // root_directory - computed: true, optional: false, required: false get rootDirectory() { return this.getStringAttribute('root_directory'); } } exports.DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationOutputReference = DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationOutputReference; _s = JSII_RTTI_SYMBOL_1; DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationOutputReference[_s] = { fqn: "@cdktf/provider-aws.dataAwsEcsTaskDefinition.DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationOutputReference", version: "21.22.1" }; class DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationList 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 DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationList = DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationList; _t = JSII_RTTI_SYMBOL_1; DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationList[_t] = { fqn: "@cdktf/provider-aws.dataAwsEcsTaskDefinition.DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationList", version: "21.22.1" }; function dataAwsEcsTaskDefinitionVolumeToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } function dataAwsEcsTaskDefinitionVolumeToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } class DataAwsEcsTaskDefinitionVolumeOutputReference 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; // docker_volume_configuration - computed: true, optional: false, required: false this._dockerVolumeConfiguration = new DataAwsEcsTaskDefinitionVolumeDockerVolumeConfigurationList(this, "docker_volume_configuration", false); // efs_volume_configuration - computed: true, optional: false, required: false this._efsVolumeConfiguration = new DataAwsEcsTaskDefinitionVolumeEfsVolumeConfigurationList(this, "efs_volume_configuration", false); // fsx_windows_file_server_volume_configuration - computed: true, optional: false, required: false this._fsxWindowsFileServerVolumeConfiguration = new DataAwsEcsTaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationList(this, "fsx_windows_file_server_volume_configuration", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // configure_at_launch - computed: true, optional: false, required: false get configureAtLaunch() { return this.getBooleanAttribute('configure_at_launch'); } get dockerVolumeConfiguration() { return this._dockerVolumeConfiguration; } get efsVolumeConfiguration() { return this._efsVolumeConfiguration; } get fsxWindowsFileServerVolumeConfiguration() { return this._fsxWindowsFileServerVolumeConfiguration; } // host_path - computed: true, optional: false, required: false get hostPath() { return this.getStringAttribute('host_path'); } // name - computed: true, optional: false, required: false get name() { return this.getStringAttribute('name'); } } exports.DataAwsEcsTaskDefinitionVolumeOutputReference = DataAwsEcsTaskDefinitionVolumeOutputReference; _u = JSII_RTTI_SYMBOL_1; DataAwsEcsTaskDefinitionVolumeOutputReference[_u] = { fqn: "@cdktf/provider-aws.dataAwsEcsTaskDefinition.DataAwsEcsTaskDefinitionVolumeOutputReference", version: "21.22.1" }; class DataAwsEcsTaskDefinitionVolumeList 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 DataAwsEcsTaskDefinitionVolumeOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAwsEcsTaskDefinitionVolumeList = DataAwsEcsTaskDefinitionVolumeList; _v = JSII_RTTI_SYMBOL_1; DataAwsEcsTaskDefinitionVolumeList[_v] = { fqn: "@cdktf/provider-aws.dataAwsEcsTaskDefinition.DataAwsEcsTaskDefinitionVolumeList", version: "21.22.1" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/data-sources/ecs_task_definition aws_ecs_task_definition} */ class DataAwsEcsTaskDefinition extends cdktf.TerraformDataSource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a DataAwsEcsTaskDefinition 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 DataAwsEcsTaskDefinition to import * @param importFromId The id of the existing DataAwsEcsTaskDefinition that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/data-sources/ecs_task_definition#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DataAwsEcsTaskDefinition to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aws_ecs_task_definition", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/data-sources/ecs_task_definition aws_ecs_task_definition} Data Source * * @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 DataAwsEcsTaskDefinitionConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'aws_ecs_task_definition', 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 }); // ephemeral_storage - computed: true, optional: false, required: false this._ephemeralStorage = new DataAwsEcsTaskDefinitionEphemeralStorageList(this, "ephemeral_storage", false); // placement_constraints - computed: true, optional: false, required: false this._placementConstraints = new DataAwsEcsTaskDefinitionPlacementConstraintsList(this, "placement_constraints", true); // proxy_configuration - computed: true, optional: false, required: false this._proxyConfiguration = new DataAwsEcsTaskDefinitionProxyConfigurationList(this, "proxy_configuration", false); // runtime_platform - computed: true, optional: false, required: false this._runtimePlatform = new DataAwsEcsTaskDefinitionRuntimePlatformList(this, "runtime_platform", false); // volume - computed: true, optional: false, required: false this._volume = new DataAwsEcsTaskDefinitionVolumeList(this, "volume", true); this._id = config.id; this._region = config.region; this._taskDefinition = config.taskDefinition; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false get arn() { return this.getStringAttribute('arn'); } // arn_without_revision - computed: true, option