// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Lambda */ export interface LambdaEventSourceMappingConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#batch_size LambdaEventSourceMapping#batch_size} */ readonly batchSize?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#bisect_batch_on_function_error LambdaEventSourceMapping#bisect_batch_on_function_error} */ readonly bisectBatchOnFunctionError?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#enabled LambdaEventSourceMapping#enabled} */ readonly enabled?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#event_source_arn LambdaEventSourceMapping#event_source_arn} */ readonly eventSourceArn?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#function_name LambdaEventSourceMapping#function_name} */ readonly functionName: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#function_response_types LambdaEventSourceMapping#function_response_types} */ readonly functionResponseTypes?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#maximum_batching_window_in_seconds LambdaEventSourceMapping#maximum_batching_window_in_seconds} */ readonly maximumBatchingWindowInSeconds?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#maximum_record_age_in_seconds LambdaEventSourceMapping#maximum_record_age_in_seconds} */ readonly maximumRecordAgeInSeconds?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#maximum_retry_attempts LambdaEventSourceMapping#maximum_retry_attempts} */ readonly maximumRetryAttempts?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#parallelization_factor LambdaEventSourceMapping#parallelization_factor} */ readonly parallelizationFactor?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#queues LambdaEventSourceMapping#queues} */ readonly queues?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#starting_position LambdaEventSourceMapping#starting_position} */ readonly startingPosition?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#starting_position_timestamp LambdaEventSourceMapping#starting_position_timestamp} */ readonly startingPositionTimestamp?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#topics LambdaEventSourceMapping#topics} */ readonly topics?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#tumbling_window_in_seconds LambdaEventSourceMapping#tumbling_window_in_seconds} */ readonly tumblingWindowInSeconds?: number; /** * destination_config block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#destination_config LambdaEventSourceMapping#destination_config} */ readonly destinationConfig?: LambdaEventSourceMappingDestinationConfig; /** * filter_criteria block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#filter_criteria LambdaEventSourceMapping#filter_criteria} */ readonly filterCriteria?: LambdaEventSourceMappingFilterCriteria; /** * self_managed_event_source block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#self_managed_event_source LambdaEventSourceMapping#self_managed_event_source} */ readonly selfManagedEventSource?: LambdaEventSourceMappingSelfManagedEventSource; /** * source_access_configuration block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#source_access_configuration LambdaEventSourceMapping#source_access_configuration} */ readonly sourceAccessConfiguration?: LambdaEventSourceMappingSourceAccessConfiguration[]; } export interface LambdaEventSourceMappingDestinationConfigOnFailure { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#destination_arn LambdaEventSourceMapping#destination_arn} */ readonly destinationArn: string; } export function lambdaEventSourceMappingDestinationConfigOnFailureToTerraform(struct?: LambdaEventSourceMappingDestinationConfigOnFailureOutputReference | LambdaEventSourceMappingDestinationConfigOnFailure): any { if (!cdktf.canInspect(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 { destination_arn: cdktf.stringToTerraform(struct!.destinationArn), } } export class LambdaEventSourceMappingDestinationConfigOnFailureOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): LambdaEventSourceMappingDestinationConfigOnFailure | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._destinationArn !== undefined) { hasAnyValues = true; internalValueResult.destinationArn = this._destinationArn; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: LambdaEventSourceMappingDestinationConfigOnFailure | undefined) { if (value === undefined) { this.isEmptyObject = false; this._destinationArn = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._destinationArn = value.destinationArn; } } // destination_arn - computed: false, optional: false, required: true private _destinationArn?: string; public get destinationArn() { return this.getStringAttribute('destination_arn'); } public set destinationArn(value: string) { this._destinationArn = value; } // Temporarily expose input value. Use with caution. public get destinationArnInput() { return this._destinationArn; } } export interface LambdaEventSourceMappingDestinationConfig { /** * on_failure block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#on_failure LambdaEventSourceMapping#on_failure} */ readonly onFailure?: LambdaEventSourceMappingDestinationConfigOnFailure; } export function lambdaEventSourceMappingDestinationConfigToTerraform(struct?: LambdaEventSourceMappingDestinationConfigOutputReference | LambdaEventSourceMappingDestinationConfig): any { if (!cdktf.canInspect(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 { on_failure: lambdaEventSourceMappingDestinationConfigOnFailureToTerraform(struct!.onFailure), } } export class LambdaEventSourceMappingDestinationConfigOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): LambdaEventSourceMappingDestinationConfig | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._onFailure?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.onFailure = this._onFailure?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: LambdaEventSourceMappingDestinationConfig | undefined) { if (value === undefined) { this.isEmptyObject = false; this._onFailure.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._onFailure.internalValue = value.onFailure; } } // on_failure - computed: false, optional: true, required: false private _onFailure = new LambdaEventSourceMappingDestinationConfigOnFailureOutputReference(this as any, "on_failure", true); public get onFailure() { return this._onFailure; } public putOnFailure(value: LambdaEventSourceMappingDestinationConfigOnFailure) { this._onFailure.internalValue = value; } public resetOnFailure() { this._onFailure.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get onFailureInput() { return this._onFailure.internalValue; } } export interface LambdaEventSourceMappingFilterCriteriaFilter { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#pattern LambdaEventSourceMapping#pattern} */ readonly pattern?: string; } export function lambdaEventSourceMappingFilterCriteriaFilterToTerraform(struct?: LambdaEventSourceMappingFilterCriteriaFilter): any { if (!cdktf.canInspect(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 { pattern: cdktf.stringToTerraform(struct!.pattern), } } export interface LambdaEventSourceMappingFilterCriteria { /** * filter block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#filter LambdaEventSourceMapping#filter} */ readonly filter?: LambdaEventSourceMappingFilterCriteriaFilter[]; } export function lambdaEventSourceMappingFilterCriteriaToTerraform(struct?: LambdaEventSourceMappingFilterCriteriaOutputReference | LambdaEventSourceMappingFilterCriteria): any { if (!cdktf.canInspect(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 { filter: cdktf.listMapper(lambdaEventSourceMappingFilterCriteriaFilterToTerraform)(struct!.filter), } } export class LambdaEventSourceMappingFilterCriteriaOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): LambdaEventSourceMappingFilterCriteria | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._filter !== undefined) { hasAnyValues = true; internalValueResult.filter = this._filter; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: LambdaEventSourceMappingFilterCriteria | undefined) { if (value === undefined) { this.isEmptyObject = false; this._filter = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._filter = value.filter; } } // filter - computed: false, optional: true, required: false private _filter?: LambdaEventSourceMappingFilterCriteriaFilter[]; public get filter() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('filter') as any; } public set filter(value: LambdaEventSourceMappingFilterCriteriaFilter[]) { this._filter = value; } public resetFilter() { this._filter = undefined; } // Temporarily expose input value. Use with caution. public get filterInput() { return this._filter; } } export interface LambdaEventSourceMappingSelfManagedEventSource { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#endpoints LambdaEventSourceMapping#endpoints} */ readonly endpoints: { [key: string]: string } | cdktf.IResolvable; } export function lambdaEventSourceMappingSelfManagedEventSourceToTerraform(struct?: LambdaEventSourceMappingSelfManagedEventSourceOutputReference | LambdaEventSourceMappingSelfManagedEventSource): any { if (!cdktf.canInspect(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 { endpoints: cdktf.hashMapper(cdktf.anyToTerraform)(struct!.endpoints), } } export class LambdaEventSourceMappingSelfManagedEventSourceOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): LambdaEventSourceMappingSelfManagedEventSource | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._endpoints !== undefined) { hasAnyValues = true; internalValueResult.endpoints = this._endpoints; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: LambdaEventSourceMappingSelfManagedEventSource | undefined) { if (value === undefined) { this.isEmptyObject = false; this._endpoints = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._endpoints = value.endpoints; } } // endpoints - computed: false, optional: false, required: true private _endpoints?: { [key: string]: string } | cdktf.IResolvable; public get endpoints() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('endpoints') as any; } public set endpoints(value: { [key: string]: string } | cdktf.IResolvable) { this._endpoints = value; } // Temporarily expose input value. Use with caution. public get endpointsInput() { return this._endpoints; } } export interface LambdaEventSourceMappingSourceAccessConfiguration { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#type LambdaEventSourceMapping#type} */ readonly type: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html#uri LambdaEventSourceMapping#uri} */ readonly uri: string; } export function lambdaEventSourceMappingSourceAccessConfigurationToTerraform(struct?: LambdaEventSourceMappingSourceAccessConfiguration): any { if (!cdktf.canInspect(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 { type: cdktf.stringToTerraform(struct!.type), uri: cdktf.stringToTerraform(struct!.uri), } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html aws_lambda_event_source_mapping} */ export class LambdaEventSourceMapping extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_lambda_event_source_mapping"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html aws_lambda_event_source_mapping} 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 LambdaEventSourceMappingConfig */ public constructor(scope: Construct, id: string, config: LambdaEventSourceMappingConfig) { super(scope, id, { terraformResourceType: 'aws_lambda_event_source_mapping', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._batchSize = config.batchSize; this._bisectBatchOnFunctionError = config.bisectBatchOnFunctionError; this._enabled = config.enabled; this._eventSourceArn = config.eventSourceArn; this._functionName = config.functionName; this._functionResponseTypes = config.functionResponseTypes; this._maximumBatchingWindowInSeconds = config.maximumBatchingWindowInSeconds; this._maximumRecordAgeInSeconds = config.maximumRecordAgeInSeconds; this._maximumRetryAttempts = config.maximumRetryAttempts; this._parallelizationFactor = config.parallelizationFactor; this._queues = config.queues; this._startingPosition = config.startingPosition; this._startingPositionTimestamp = config.startingPositionTimestamp; this._topics = config.topics; this._tumblingWindowInSeconds = config.tumblingWindowInSeconds; this._destinationConfig.internalValue = config.destinationConfig; this._filterCriteria.internalValue = config.filterCriteria; this._selfManagedEventSource.internalValue = config.selfManagedEventSource; this._sourceAccessConfiguration = config.sourceAccessConfiguration; } // ========== // ATTRIBUTES // ========== // batch_size - computed: false, optional: true, required: false private _batchSize?: number; public get batchSize() { return this.getNumberAttribute('batch_size'); } public set batchSize(value: number) { this._batchSize = value; } public resetBatchSize() { this._batchSize = undefined; } // Temporarily expose input value. Use with caution. public get batchSizeInput() { return this._batchSize; } // bisect_batch_on_function_error - computed: false, optional: true, required: false private _bisectBatchOnFunctionError?: boolean | cdktf.IResolvable; public get bisectBatchOnFunctionError() { return this.getBooleanAttribute('bisect_batch_on_function_error') as any; } public set bisectBatchOnFunctionError(value: boolean | cdktf.IResolvable) { this._bisectBatchOnFunctionError = value; } public resetBisectBatchOnFunctionError() { this._bisectBatchOnFunctionError = undefined; } // Temporarily expose input value. Use with caution. public get bisectBatchOnFunctionErrorInput() { return this._bisectBatchOnFunctionError; } // enabled - computed: false, optional: true, required: false private _enabled?: boolean | cdktf.IResolvable; public get enabled() { return this.getBooleanAttribute('enabled') as any; } public set enabled(value: boolean | cdktf.IResolvable) { this._enabled = value; } public resetEnabled() { this._enabled = undefined; } // Temporarily expose input value. Use with caution. public get enabledInput() { return this._enabled; } // event_source_arn - computed: false, optional: true, required: false private _eventSourceArn?: string; public get eventSourceArn() { return this.getStringAttribute('event_source_arn'); } public set eventSourceArn(value: string) { this._eventSourceArn = value; } public resetEventSourceArn() { this._eventSourceArn = undefined; } // Temporarily expose input value. Use with caution. public get eventSourceArnInput() { return this._eventSourceArn; } // function_arn - computed: true, optional: false, required: false public get functionArn() { return this.getStringAttribute('function_arn'); } // function_name - computed: false, optional: false, required: true private _functionName?: string; public get functionName() { return this.getStringAttribute('function_name'); } public set functionName(value: string) { this._functionName = value; } // Temporarily expose input value. Use with caution. public get functionNameInput() { return this._functionName; } // function_response_types - computed: false, optional: true, required: false private _functionResponseTypes?: string[]; public get functionResponseTypes() { return this.getListAttribute('function_response_types'); } public set functionResponseTypes(value: string[]) { this._functionResponseTypes = value; } public resetFunctionResponseTypes() { this._functionResponseTypes = undefined; } // Temporarily expose input value. Use with caution. public get functionResponseTypesInput() { return this._functionResponseTypes; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // last_modified - computed: true, optional: false, required: false public get lastModified() { return this.getStringAttribute('last_modified'); } // last_processing_result - computed: true, optional: false, required: false public get lastProcessingResult() { return this.getStringAttribute('last_processing_result'); } // maximum_batching_window_in_seconds - computed: false, optional: true, required: false private _maximumBatchingWindowInSeconds?: number; public get maximumBatchingWindowInSeconds() { return this.getNumberAttribute('maximum_batching_window_in_seconds'); } public set maximumBatchingWindowInSeconds(value: number) { this._maximumBatchingWindowInSeconds = value; } public resetMaximumBatchingWindowInSeconds() { this._maximumBatchingWindowInSeconds = undefined; } // Temporarily expose input value. Use with caution. public get maximumBatchingWindowInSecondsInput() { return this._maximumBatchingWindowInSeconds; } // maximum_record_age_in_seconds - computed: true, optional: true, required: false private _maximumRecordAgeInSeconds?: number; public get maximumRecordAgeInSeconds() { return this.getNumberAttribute('maximum_record_age_in_seconds'); } public set maximumRecordAgeInSeconds(value: number) { this._maximumRecordAgeInSeconds = value; } public resetMaximumRecordAgeInSeconds() { this._maximumRecordAgeInSeconds = undefined; } // Temporarily expose input value. Use with caution. public get maximumRecordAgeInSecondsInput() { return this._maximumRecordAgeInSeconds; } // maximum_retry_attempts - computed: true, optional: true, required: false private _maximumRetryAttempts?: number; public get maximumRetryAttempts() { return this.getNumberAttribute('maximum_retry_attempts'); } public set maximumRetryAttempts(value: number) { this._maximumRetryAttempts = value; } public resetMaximumRetryAttempts() { this._maximumRetryAttempts = undefined; } // Temporarily expose input value. Use with caution. public get maximumRetryAttemptsInput() { return this._maximumRetryAttempts; } // parallelization_factor - computed: true, optional: true, required: false private _parallelizationFactor?: number; public get parallelizationFactor() { return this.getNumberAttribute('parallelization_factor'); } public set parallelizationFactor(value: number) { this._parallelizationFactor = value; } public resetParallelizationFactor() { this._parallelizationFactor = undefined; } // Temporarily expose input value. Use with caution. public get parallelizationFactorInput() { return this._parallelizationFactor; } // queues - computed: false, optional: true, required: false private _queues?: string[]; public get queues() { return this.getListAttribute('queues'); } public set queues(value: string[]) { this._queues = value; } public resetQueues() { this._queues = undefined; } // Temporarily expose input value. Use with caution. public get queuesInput() { return this._queues; } // starting_position - computed: false, optional: true, required: false private _startingPosition?: string; public get startingPosition() { return this.getStringAttribute('starting_position'); } public set startingPosition(value: string) { this._startingPosition = value; } public resetStartingPosition() { this._startingPosition = undefined; } // Temporarily expose input value. Use with caution. public get startingPositionInput() { return this._startingPosition; } // starting_position_timestamp - computed: false, optional: true, required: false private _startingPositionTimestamp?: string; public get startingPositionTimestamp() { return this.getStringAttribute('starting_position_timestamp'); } public set startingPositionTimestamp(value: string) { this._startingPositionTimestamp = value; } public resetStartingPositionTimestamp() { this._startingPositionTimestamp = undefined; } // Temporarily expose input value. Use with caution. public get startingPositionTimestampInput() { return this._startingPositionTimestamp; } // state - computed: true, optional: false, required: false public get state() { return this.getStringAttribute('state'); } // state_transition_reason - computed: true, optional: false, required: false public get stateTransitionReason() { return this.getStringAttribute('state_transition_reason'); } // topics - computed: false, optional: true, required: false private _topics?: string[]; public get topics() { return this.getListAttribute('topics'); } public set topics(value: string[]) { this._topics = value; } public resetTopics() { this._topics = undefined; } // Temporarily expose input value. Use with caution. public get topicsInput() { return this._topics; } // tumbling_window_in_seconds - computed: false, optional: true, required: false private _tumblingWindowInSeconds?: number; public get tumblingWindowInSeconds() { return this.getNumberAttribute('tumbling_window_in_seconds'); } public set tumblingWindowInSeconds(value: number) { this._tumblingWindowInSeconds = value; } public resetTumblingWindowInSeconds() { this._tumblingWindowInSeconds = undefined; } // Temporarily expose input value. Use with caution. public get tumblingWindowInSecondsInput() { return this._tumblingWindowInSeconds; } // uuid - computed: true, optional: false, required: false public get uuid() { return this.getStringAttribute('uuid'); } // destination_config - computed: false, optional: true, required: false private _destinationConfig = new LambdaEventSourceMappingDestinationConfigOutputReference(this as any, "destination_config", true); public get destinationConfig() { return this._destinationConfig; } public putDestinationConfig(value: LambdaEventSourceMappingDestinationConfig) { this._destinationConfig.internalValue = value; } public resetDestinationConfig() { this._destinationConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get destinationConfigInput() { return this._destinationConfig.internalValue; } // filter_criteria - computed: false, optional: true, required: false private _filterCriteria = new LambdaEventSourceMappingFilterCriteriaOutputReference(this as any, "filter_criteria", true); public get filterCriteria() { return this._filterCriteria; } public putFilterCriteria(value: LambdaEventSourceMappingFilterCriteria) { this._filterCriteria.internalValue = value; } public resetFilterCriteria() { this._filterCriteria.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get filterCriteriaInput() { return this._filterCriteria.internalValue; } // self_managed_event_source - computed: false, optional: true, required: false private _selfManagedEventSource = new LambdaEventSourceMappingSelfManagedEventSourceOutputReference(this as any, "self_managed_event_source", true); public get selfManagedEventSource() { return this._selfManagedEventSource; } public putSelfManagedEventSource(value: LambdaEventSourceMappingSelfManagedEventSource) { this._selfManagedEventSource.internalValue = value; } public resetSelfManagedEventSource() { this._selfManagedEventSource.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get selfManagedEventSourceInput() { return this._selfManagedEventSource.internalValue; } // source_access_configuration - computed: false, optional: true, required: false private _sourceAccessConfiguration?: LambdaEventSourceMappingSourceAccessConfiguration[]; public get sourceAccessConfiguration() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('source_access_configuration') as any; } public set sourceAccessConfiguration(value: LambdaEventSourceMappingSourceAccessConfiguration[]) { this._sourceAccessConfiguration = value; } public resetSourceAccessConfiguration() { this._sourceAccessConfiguration = undefined; } // Temporarily expose input value. Use with caution. public get sourceAccessConfigurationInput() { return this._sourceAccessConfiguration; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { batch_size: cdktf.numberToTerraform(this._batchSize), bisect_batch_on_function_error: cdktf.booleanToTerraform(this._bisectBatchOnFunctionError), enabled: cdktf.booleanToTerraform(this._enabled), event_source_arn: cdktf.stringToTerraform(this._eventSourceArn), function_name: cdktf.stringToTerraform(this._functionName), function_response_types: cdktf.listMapper(cdktf.stringToTerraform)(this._functionResponseTypes), maximum_batching_window_in_seconds: cdktf.numberToTerraform(this._maximumBatchingWindowInSeconds), maximum_record_age_in_seconds: cdktf.numberToTerraform(this._maximumRecordAgeInSeconds), maximum_retry_attempts: cdktf.numberToTerraform(this._maximumRetryAttempts), parallelization_factor: cdktf.numberToTerraform(this._parallelizationFactor), queues: cdktf.listMapper(cdktf.stringToTerraform)(this._queues), starting_position: cdktf.stringToTerraform(this._startingPosition), starting_position_timestamp: cdktf.stringToTerraform(this._startingPositionTimestamp), topics: cdktf.listMapper(cdktf.stringToTerraform)(this._topics), tumbling_window_in_seconds: cdktf.numberToTerraform(this._tumblingWindowInSeconds), destination_config: lambdaEventSourceMappingDestinationConfigToTerraform(this._destinationConfig.internalValue), filter_criteria: lambdaEventSourceMappingFilterCriteriaToTerraform(this._filterCriteria.internalValue), self_managed_event_source: lambdaEventSourceMappingSelfManagedEventSourceToTerraform(this._selfManagedEventSource.internalValue), source_access_configuration: cdktf.listMapper(lambdaEventSourceMappingSourceAccessConfigurationToTerraform)(this._sourceAccessConfiguration), }; } }