@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
946 lines • 166 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataAwsLambdaFunction = exports.DataAwsLambdaFunctionVpcConfigList = exports.DataAwsLambdaFunctionVpcConfigOutputReference = exports.DataAwsLambdaFunctionTracingConfigList = exports.DataAwsLambdaFunctionTracingConfigOutputReference = exports.DataAwsLambdaFunctionTenancyConfigList = exports.DataAwsLambdaFunctionTenancyConfigOutputReference = exports.DataAwsLambdaFunctionLoggingConfigList = exports.DataAwsLambdaFunctionLoggingConfigOutputReference = exports.DataAwsLambdaFunctionFileSystemConfigList = exports.DataAwsLambdaFunctionFileSystemConfigOutputReference = exports.DataAwsLambdaFunctionEphemeralStorageList = exports.DataAwsLambdaFunctionEphemeralStorageOutputReference = exports.DataAwsLambdaFunctionEnvironmentList = exports.DataAwsLambdaFunctionEnvironmentOutputReference = exports.DataAwsLambdaFunctionDurableConfigList = exports.DataAwsLambdaFunctionDurableConfigOutputReference = exports.DataAwsLambdaFunctionDeadLetterConfigList = exports.DataAwsLambdaFunctionDeadLetterConfigOutputReference = exports.DataAwsLambdaFunctionCapacityProviderConfigList = exports.DataAwsLambdaFunctionCapacityProviderConfigOutputReference = exports.DataAwsLambdaFunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigList = exports.DataAwsLambdaFunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigOutputReference = void 0;
exports.dataAwsLambdaFunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigToTerraform = dataAwsLambdaFunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigToTerraform;
exports.dataAwsLambdaFunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigToHclTerraform = dataAwsLambdaFunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigToHclTerraform;
exports.dataAwsLambdaFunctionCapacityProviderConfigToTerraform = dataAwsLambdaFunctionCapacityProviderConfigToTerraform;
exports.dataAwsLambdaFunctionCapacityProviderConfigToHclTerraform = dataAwsLambdaFunctionCapacityProviderConfigToHclTerraform;
exports.dataAwsLambdaFunctionDeadLetterConfigToTerraform = dataAwsLambdaFunctionDeadLetterConfigToTerraform;
exports.dataAwsLambdaFunctionDeadLetterConfigToHclTerraform = dataAwsLambdaFunctionDeadLetterConfigToHclTerraform;
exports.dataAwsLambdaFunctionDurableConfigToTerraform = dataAwsLambdaFunctionDurableConfigToTerraform;
exports.dataAwsLambdaFunctionDurableConfigToHclTerraform = dataAwsLambdaFunctionDurableConfigToHclTerraform;
exports.dataAwsLambdaFunctionEnvironmentToTerraform = dataAwsLambdaFunctionEnvironmentToTerraform;
exports.dataAwsLambdaFunctionEnvironmentToHclTerraform = dataAwsLambdaFunctionEnvironmentToHclTerraform;
exports.dataAwsLambdaFunctionEphemeralStorageToTerraform = dataAwsLambdaFunctionEphemeralStorageToTerraform;
exports.dataAwsLambdaFunctionEphemeralStorageToHclTerraform = dataAwsLambdaFunctionEphemeralStorageToHclTerraform;
exports.dataAwsLambdaFunctionFileSystemConfigToTerraform = dataAwsLambdaFunctionFileSystemConfigToTerraform;
exports.dataAwsLambdaFunctionFileSystemConfigToHclTerraform = dataAwsLambdaFunctionFileSystemConfigToHclTerraform;
exports.dataAwsLambdaFunctionLoggingConfigToTerraform = dataAwsLambdaFunctionLoggingConfigToTerraform;
exports.dataAwsLambdaFunctionLoggingConfigToHclTerraform = dataAwsLambdaFunctionLoggingConfigToHclTerraform;
exports.dataAwsLambdaFunctionTenancyConfigToTerraform = dataAwsLambdaFunctionTenancyConfigToTerraform;
exports.dataAwsLambdaFunctionTenancyConfigToHclTerraform = dataAwsLambdaFunctionTenancyConfigToHclTerraform;
exports.dataAwsLambdaFunctionTracingConfigToTerraform = dataAwsLambdaFunctionTracingConfigToTerraform;
exports.dataAwsLambdaFunctionTracingConfigToHclTerraform = dataAwsLambdaFunctionTracingConfigToHclTerraform;
exports.dataAwsLambdaFunctionVpcConfigToTerraform = dataAwsLambdaFunctionVpcConfigToTerraform;
exports.dataAwsLambdaFunctionVpcConfigToHclTerraform = dataAwsLambdaFunctionVpcConfigToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function dataAwsLambdaFunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigToTerraform(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 dataAwsLambdaFunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigToHclTerraform(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 DataAwsLambdaFunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigOutputReference 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;
}
}
// capacity_provider_arn - computed: true, optional: false, required: false
get capacityProviderArn() {
return this.getStringAttribute('capacity_provider_arn');
}
// execution_environment_memory_gib_per_vcpu - computed: true, optional: false, required: false
get executionEnvironmentMemoryGibPerVcpu() {
return this.getNumberAttribute('execution_environment_memory_gib_per_vcpu');
}
// per_execution_environment_max_concurrency - computed: true, optional: false, required: false
get perExecutionEnvironmentMaxConcurrency() {
return this.getNumberAttribute('per_execution_environment_max_concurrency');
}
}
exports.DataAwsLambdaFunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigOutputReference = DataAwsLambdaFunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DataAwsLambdaFunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigOutputReference[_a] = { fqn: "@cdktf/provider-aws.dataAwsLambdaFunction.DataAwsLambdaFunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigOutputReference", version: "21.22.1" };
class DataAwsLambdaFunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigList 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 DataAwsLambdaFunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataAwsLambdaFunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigList = DataAwsLambdaFunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigList;
_b = JSII_RTTI_SYMBOL_1;
DataAwsLambdaFunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigList[_b] = { fqn: "@cdktf/provider-aws.dataAwsLambdaFunction.DataAwsLambdaFunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigList", version: "21.22.1" };
function dataAwsLambdaFunctionCapacityProviderConfigToTerraform(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 dataAwsLambdaFunctionCapacityProviderConfigToHclTerraform(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 DataAwsLambdaFunctionCapacityProviderConfigOutputReference 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;
// lambda_managed_instances_capacity_provider_config - computed: true, optional: false, required: false
this._lambdaManagedInstancesCapacityProviderConfig = new DataAwsLambdaFunctionCapacityProviderConfigLambdaManagedInstancesCapacityProviderConfigList(this, "lambda_managed_instances_capacity_provider_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 lambdaManagedInstancesCapacityProviderConfig() {
return this._lambdaManagedInstancesCapacityProviderConfig;
}
}
exports.DataAwsLambdaFunctionCapacityProviderConfigOutputReference = DataAwsLambdaFunctionCapacityProviderConfigOutputReference;
_c = JSII_RTTI_SYMBOL_1;
DataAwsLambdaFunctionCapacityProviderConfigOutputReference[_c] = { fqn: "@cdktf/provider-aws.dataAwsLambdaFunction.DataAwsLambdaFunctionCapacityProviderConfigOutputReference", version: "21.22.1" };
class DataAwsLambdaFunctionCapacityProviderConfigList 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 DataAwsLambdaFunctionCapacityProviderConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataAwsLambdaFunctionCapacityProviderConfigList = DataAwsLambdaFunctionCapacityProviderConfigList;
_d = JSII_RTTI_SYMBOL_1;
DataAwsLambdaFunctionCapacityProviderConfigList[_d] = { fqn: "@cdktf/provider-aws.dataAwsLambdaFunction.DataAwsLambdaFunctionCapacityProviderConfigList", version: "21.22.1" };
function dataAwsLambdaFunctionDeadLetterConfigToTerraform(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 dataAwsLambdaFunctionDeadLetterConfigToHclTerraform(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 DataAwsLambdaFunctionDeadLetterConfigOutputReference 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;
}
}
// target_arn - computed: true, optional: false, required: false
get targetArn() {
return this.getStringAttribute('target_arn');
}
}
exports.DataAwsLambdaFunctionDeadLetterConfigOutputReference = DataAwsLambdaFunctionDeadLetterConfigOutputReference;
_e = JSII_RTTI_SYMBOL_1;
DataAwsLambdaFunctionDeadLetterConfigOutputReference[_e] = { fqn: "@cdktf/provider-aws.dataAwsLambdaFunction.DataAwsLambdaFunctionDeadLetterConfigOutputReference", version: "21.22.1" };
class DataAwsLambdaFunctionDeadLetterConfigList 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 DataAwsLambdaFunctionDeadLetterConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataAwsLambdaFunctionDeadLetterConfigList = DataAwsLambdaFunctionDeadLetterConfigList;
_f = JSII_RTTI_SYMBOL_1;
DataAwsLambdaFunctionDeadLetterConfigList[_f] = { fqn: "@cdktf/provider-aws.dataAwsLambdaFunction.DataAwsLambdaFunctionDeadLetterConfigList", version: "21.22.1" };
function dataAwsLambdaFunctionDurableConfigToTerraform(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 dataAwsLambdaFunctionDurableConfigToHclTerraform(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 DataAwsLambdaFunctionDurableConfigOutputReference 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;
}
}
// execution_timeout - computed: true, optional: false, required: false
get executionTimeout() {
return this.getNumberAttribute('execution_timeout');
}
// retention_period - computed: true, optional: false, required: false
get retentionPeriod() {
return this.getNumberAttribute('retention_period');
}
}
exports.DataAwsLambdaFunctionDurableConfigOutputReference = DataAwsLambdaFunctionDurableConfigOutputReference;
_g = JSII_RTTI_SYMBOL_1;
DataAwsLambdaFunctionDurableConfigOutputReference[_g] = { fqn: "@cdktf/provider-aws.dataAwsLambdaFunction.DataAwsLambdaFunctionDurableConfigOutputReference", version: "21.22.1" };
class DataAwsLambdaFunctionDurableConfigList 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 DataAwsLambdaFunctionDurableConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataAwsLambdaFunctionDurableConfigList = DataAwsLambdaFunctionDurableConfigList;
_h = JSII_RTTI_SYMBOL_1;
DataAwsLambdaFunctionDurableConfigList[_h] = { fqn: "@cdktf/provider-aws.dataAwsLambdaFunction.DataAwsLambdaFunctionDurableConfigList", version: "21.22.1" };
function dataAwsLambdaFunctionEnvironmentToTerraform(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 dataAwsLambdaFunctionEnvironmentToHclTerraform(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 DataAwsLambdaFunctionEnvironmentOutputReference 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;
// variables - computed: true, optional: false, required: false
this._variables = new cdktf.StringMap(this, "variables");
}
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 variables() {
return this._variables;
}
}
exports.DataAwsLambdaFunctionEnvironmentOutputReference = DataAwsLambdaFunctionEnvironmentOutputReference;
_j = JSII_RTTI_SYMBOL_1;
DataAwsLambdaFunctionEnvironmentOutputReference[_j] = { fqn: "@cdktf/provider-aws.dataAwsLambdaFunction.DataAwsLambdaFunctionEnvironmentOutputReference", version: "21.22.1" };
class DataAwsLambdaFunctionEnvironmentList 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 DataAwsLambdaFunctionEnvironmentOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataAwsLambdaFunctionEnvironmentList = DataAwsLambdaFunctionEnvironmentList;
_k = JSII_RTTI_SYMBOL_1;
DataAwsLambdaFunctionEnvironmentList[_k] = { fqn: "@cdktf/provider-aws.dataAwsLambdaFunction.DataAwsLambdaFunctionEnvironmentList", version: "21.22.1" };
function dataAwsLambdaFunctionEphemeralStorageToTerraform(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 dataAwsLambdaFunctionEphemeralStorageToHclTerraform(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 DataAwsLambdaFunctionEphemeralStorageOutputReference 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 - computed: true, optional: false, required: false
get size() {
return this.getNumberAttribute('size');
}
}
exports.DataAwsLambdaFunctionEphemeralStorageOutputReference = DataAwsLambdaFunctionEphemeralStorageOutputReference;
_l = JSII_RTTI_SYMBOL_1;
DataAwsLambdaFunctionEphemeralStorageOutputReference[_l] = { fqn: "@cdktf/provider-aws.dataAwsLambdaFunction.DataAwsLambdaFunctionEphemeralStorageOutputReference", version: "21.22.1" };
class DataAwsLambdaFunctionEphemeralStorageList 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 DataAwsLambdaFunctionEphemeralStorageOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataAwsLambdaFunctionEphemeralStorageList = DataAwsLambdaFunctionEphemeralStorageList;
_m = JSII_RTTI_SYMBOL_1;
DataAwsLambdaFunctionEphemeralStorageList[_m] = { fqn: "@cdktf/provider-aws.dataAwsLambdaFunction.DataAwsLambdaFunctionEphemeralStorageList", version: "21.22.1" };
function dataAwsLambdaFunctionFileSystemConfigToTerraform(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 dataAwsLambdaFunctionFileSystemConfigToHclTerraform(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 DataAwsLambdaFunctionFileSystemConfigOutputReference 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;
}
}
// arn - computed: true, optional: false, required: false
get arn() {
return this.getStringAttribute('arn');
}
// local_mount_path - computed: true, optional: false, required: false
get localMountPath() {
return this.getStringAttribute('local_mount_path');
}
}
exports.DataAwsLambdaFunctionFileSystemConfigOutputReference = DataAwsLambdaFunctionFileSystemConfigOutputReference;
_o = JSII_RTTI_SYMBOL_1;
DataAwsLambdaFunctionFileSystemConfigOutputReference[_o] = { fqn: "@cdktf/provider-aws.dataAwsLambdaFunction.DataAwsLambdaFunctionFileSystemConfigOutputReference", version: "21.22.1" };
class DataAwsLambdaFunctionFileSystemConfigList 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 DataAwsLambdaFunctionFileSystemConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataAwsLambdaFunctionFileSystemConfigList = DataAwsLambdaFunctionFileSystemConfigList;
_p = JSII_RTTI_SYMBOL_1;
DataAwsLambdaFunctionFileSystemConfigList[_p] = { fqn: "@cdktf/provider-aws.dataAwsLambdaFunction.DataAwsLambdaFunctionFileSystemConfigList", version: "21.22.1" };
function dataAwsLambdaFunctionLoggingConfigToTerraform(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 dataAwsLambdaFunctionLoggingConfigToHclTerraform(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 DataAwsLambdaFunctionLoggingConfigOutputReference 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;
}
}
// application_log_level - computed: true, optional: false, required: false
get applicationLogLevel() {
return this.getStringAttribute('application_log_level');
}
// log_format - computed: true, optional: false, required: false
get logFormat() {
return this.getStringAttribute('log_format');
}
// log_group - computed: true, optional: false, required: false
get logGroup() {
return this.getStringAttribute('log_group');
}
// system_log_level - computed: true, optional: false, required: false
get systemLogLevel() {
return this.getStringAttribute('system_log_level');
}
}
exports.DataAwsLambdaFunctionLoggingConfigOutputReference = DataAwsLambdaFunctionLoggingConfigOutputReference;
_q = JSII_RTTI_SYMBOL_1;
DataAwsLambdaFunctionLoggingConfigOutputReference[_q] = { fqn: "@cdktf/provider-aws.dataAwsLambdaFunction.DataAwsLambdaFunctionLoggingConfigOutputReference", version: "21.22.1" };
class DataAwsLambdaFunctionLoggingConfigList 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 DataAwsLambdaFunctionLoggingConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataAwsLambdaFunctionLoggingConfigList = DataAwsLambdaFunctionLoggingConfigList;
_r = JSII_RTTI_SYMBOL_1;
DataAwsLambdaFunctionLoggingConfigList[_r] = { fqn: "@cdktf/provider-aws.dataAwsLambdaFunction.DataAwsLambdaFunctionLoggingConfigList", version: "21.22.1" };
function dataAwsLambdaFunctionTenancyConfigToTerraform(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 dataAwsLambdaFunctionTenancyConfigToHclTerraform(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 DataAwsLambdaFunctionTenancyConfigOutputReference 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;
}
}
// tenant_isolation_mode - computed: true, optional: false, required: false
get tenantIsolationMode() {
return this.getStringAttribute('tenant_isolation_mode');
}
}
exports.DataAwsLambdaFunctionTenancyConfigOutputReference = DataAwsLambdaFunctionTenancyConfigOutputReference;
_s = JSII_RTTI_SYMBOL_1;
DataAwsLambdaFunctionTenancyConfigOutputReference[_s] = { fqn: "@cdktf/provider-aws.dataAwsLambdaFunction.DataAwsLambdaFunctionTenancyConfigOutputReference", version: "21.22.1" };
class DataAwsLambdaFunctionTenancyConfigList 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 DataAwsLambdaFunctionTenancyConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataAwsLambdaFunctionTenancyConfigList = DataAwsLambdaFunctionTenancyConfigList;
_t = JSII_RTTI_SYMBOL_1;
DataAwsLambdaFunctionTenancyConfigList[_t] = { fqn: "@cdktf/provider-aws.dataAwsLambdaFunction.DataAwsLambdaFunctionTenancyConfigList", version: "21.22.1" };
function dataAwsLambdaFunctionTracingConfigToTerraform(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 dataAwsLambdaFunctionTracingConfigToHclTerraform(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 DataAwsLambdaFunctionTracingConfigOutputReference 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;
}
}
// mode - computed: true, optional: false, required: false
get mode() {
return this.getStringAttribute('mode');
}
}
exports.DataAwsLambdaFunctionTracingConfigOutputReference = DataAwsLambdaFunctionTracingConfigOutputReference;
_u = JSII_RTTI_SYMBOL_1;
DataAwsLambdaFunctionTracingConfigOutputReference[_u] = { fqn: "@cdktf/provider-aws.dataAwsLambdaFunction.DataAwsLambdaFunctionTracingConfigOutputReference", version: "21.22.1" };
class DataAwsLambdaFunctionTracingConfigList 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 DataAwsLambdaFunctionTracingConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataAwsLambdaFunctionTracingConfigList = DataAwsLambdaFunctionTracingConfigList;
_v = JSII_RTTI_SYMBOL_1;
DataAwsLambdaFunctionTracingConfigList[_v] = { fqn: "@cdktf/provider-aws.dataAwsLambdaFunction.DataAwsLambdaFunctionTracingConfigList", version: "21.22.1" };
function dataAwsLambdaFunctionVpcConfigToTerraform(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 dataAwsLambdaFunctionVpcConfigToHclTerraform(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 DataAwsLambdaFunctionVpcConfigOutputReference 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;
}
}
// ipv6_allowed_for_dual_stack - computed: true, optional: false, required: false
get ipv6AllowedForDualStack() {
return this.getBooleanAttribute('ipv6_allowed_for_dual_stack');
}
// security_group_ids - computed: true, optional: false, required: false
get securityGroupIds() {
return cdktf.Fn.tolist(this.getListAttribute('security_group_ids'));
}
// subnet_ids - computed: true, optional: false, required: false
get subnetIds() {
return cdktf.Fn.tolist(this.getListAttribute('subnet_ids'));
}
// vpc_id - computed: true, optional: false, required: false
get vpcId() {
return this.getStringAttribute('vpc_id');
}
}
exports.DataAwsLambdaFunctionVpcConfigOutputReference = DataAwsLambdaFunctionVpcConfigOutputReference;
_w = JSII_RTTI_SYMBOL_1;
DataAwsLambdaFunctionVpcConfigOutputReference[_w] = { fqn: "@cdktf/provider-aws.dataAwsLambdaFunction.DataAwsLambdaFunctionVpcConfigOutputReference", version: "21.22.1" };
class DataAwsLambdaFunctionVpcConfigList 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 DataAwsLambdaFunctionVpcConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataAwsLambdaFunctionVpcConfigList = DataAwsLambdaFunctionVpcConfigList;
_x = JSII_RTTI_SYMBOL_1;
DataAwsLambdaFunctionVpcConfigList[_x] = { fqn: "@cdktf/provider-aws.dataAwsLambdaFunction.DataAwsLambdaFunctionVpcConfigList", version: "21.22.1" };
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/data-sources/lambda_function aws_lambda_function}
*/
class DataAwsLambdaFunction extends cdktf.TerraformDataSource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a DataAwsLambdaFunction 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 DataAwsLambdaFunction to import
* @param importFromId The id of the existing DataAwsLambdaFunction that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/data-sources/lambda_function#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the DataAwsLambdaFunction to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aws_lambda_function", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/data-sources/lambda_function aws_lambda_function} 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 DataAwsLambdaFunctionConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'aws_lambda_function',
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
});
// capacity_provider_config - computed: true, optional: false, required: false
this._capacityProviderConfig = new DataAwsLambdaFunctionCapacityProviderConfigList(this, "capacity_provider_config", false);
// dead_letter_config - computed: true, optional: false, required: false
this._deadLetterConfig = new DataAwsLambdaFunctionDeadLetterConfigList(this, "dead_letter_config", false);
// durable_config - computed: true, optional: false, required: false
this._durableConfig = new DataAwsLambdaFunctionDurableConfigList(this, "durable_config", false);
// environment - computed: true, optional: false, required: false
this._environment = new DataAwsLambdaFunctionEnvironmentList(this, "environment", false);
// ephemeral_storage - computed: true, optional: false, required: false
this._ephemeralStorage = new DataAwsLambdaFunctionEphemeralStorageList(this, "ephemeral_storage", false);
// file_system_config - computed: true, optional: false, required: false
this._fileSystemConfig = new DataAwsLambdaFunctionFileSystemConfigList(this, "file_system_config", false);
// logging_config - computed: true, optional: false, required: false
this._loggingConfig = new DataAwsLambdaFunctionLoggingConfigList(this, "logging_config", false);
// tenancy_config - computed: true, optional: false, required: false
this._tenancyConfig = new DataAwsLambdaFunctionTenancyConfigList(this, "tenancy_config", false);
// tracing_config - computed: true, optional: false, required: false
this._tracingConfig = new DataAwsLambdaFunctionTracingConfigList(this, "tracing_config", false);
// vpc_config - computed: true, optional: false, required: false
this._vpcConfig = new DataAwsLambdaFunctionVpcConfigList(this, "vpc_config", false);
this._functionName = config.functionName;
this._id = config.id;
this._qualifier = config.qualifier;
this._region = config.region;
this._tags = config.tags;
}
// ==========
// ATTRIBUTES
// ==========
// architectures - computed: true, optional: fal