// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS CloudWatch Event Bridge */ export interface CloudwatchEventTargetConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#arn CloudwatchEventTarget#arn} */ readonly arn: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#event_bus_name CloudwatchEventTarget#event_bus_name} */ readonly eventBusName?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#input CloudwatchEventTarget#input} */ readonly input?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#input_path CloudwatchEventTarget#input_path} */ readonly inputPath?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#role_arn CloudwatchEventTarget#role_arn} */ readonly roleArn?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#rule CloudwatchEventTarget#rule} */ readonly rule: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#target_id CloudwatchEventTarget#target_id} */ readonly targetId?: string; /** * batch_target block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#batch_target CloudwatchEventTarget#batch_target} */ readonly batchTarget?: CloudwatchEventTargetBatchTarget; /** * dead_letter_config block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#dead_letter_config CloudwatchEventTarget#dead_letter_config} */ readonly deadLetterConfig?: CloudwatchEventTargetDeadLetterConfig; /** * ecs_target block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#ecs_target CloudwatchEventTarget#ecs_target} */ readonly ecsTarget?: CloudwatchEventTargetEcsTarget; /** * http_target block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#http_target CloudwatchEventTarget#http_target} */ readonly httpTarget?: CloudwatchEventTargetHttpTarget; /** * input_transformer block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#input_transformer CloudwatchEventTarget#input_transformer} */ readonly inputTransformer?: CloudwatchEventTargetInputTransformer; /** * kinesis_target block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#kinesis_target CloudwatchEventTarget#kinesis_target} */ readonly kinesisTarget?: CloudwatchEventTargetKinesisTarget; /** * redshift_target block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#redshift_target CloudwatchEventTarget#redshift_target} */ readonly redshiftTarget?: CloudwatchEventTargetRedshiftTarget; /** * retry_policy block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#retry_policy CloudwatchEventTarget#retry_policy} */ readonly retryPolicy?: CloudwatchEventTargetRetryPolicy; /** * run_command_targets block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#run_command_targets CloudwatchEventTarget#run_command_targets} */ readonly runCommandTargets?: CloudwatchEventTargetRunCommandTargets[]; /** * sqs_target block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#sqs_target CloudwatchEventTarget#sqs_target} */ readonly sqsTarget?: CloudwatchEventTargetSqsTarget; } export interface CloudwatchEventTargetBatchTarget { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#array_size CloudwatchEventTarget#array_size} */ readonly arraySize?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#job_attempts CloudwatchEventTarget#job_attempts} */ readonly jobAttempts?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#job_definition CloudwatchEventTarget#job_definition} */ readonly jobDefinition: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#job_name CloudwatchEventTarget#job_name} */ readonly jobName: string; } export function cloudwatchEventTargetBatchTargetToTerraform(struct?: CloudwatchEventTargetBatchTargetOutputReference | CloudwatchEventTargetBatchTarget): 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 { array_size: cdktf.numberToTerraform(struct!.arraySize), job_attempts: cdktf.numberToTerraform(struct!.jobAttempts), job_definition: cdktf.stringToTerraform(struct!.jobDefinition), job_name: cdktf.stringToTerraform(struct!.jobName), } } export class CloudwatchEventTargetBatchTargetOutputReference 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(): CloudwatchEventTargetBatchTarget | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._arraySize !== undefined) { hasAnyValues = true; internalValueResult.arraySize = this._arraySize; } if (this._jobAttempts !== undefined) { hasAnyValues = true; internalValueResult.jobAttempts = this._jobAttempts; } if (this._jobDefinition !== undefined) { hasAnyValues = true; internalValueResult.jobDefinition = this._jobDefinition; } if (this._jobName !== undefined) { hasAnyValues = true; internalValueResult.jobName = this._jobName; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CloudwatchEventTargetBatchTarget | undefined) { if (value === undefined) { this.isEmptyObject = false; this._arraySize = undefined; this._jobAttempts = undefined; this._jobDefinition = undefined; this._jobName = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._arraySize = value.arraySize; this._jobAttempts = value.jobAttempts; this._jobDefinition = value.jobDefinition; this._jobName = value.jobName; } } // array_size - computed: false, optional: true, required: false private _arraySize?: number; public get arraySize() { return this.getNumberAttribute('array_size'); } public set arraySize(value: number) { this._arraySize = value; } public resetArraySize() { this._arraySize = undefined; } // Temporarily expose input value. Use with caution. public get arraySizeInput() { return this._arraySize; } // job_attempts - computed: false, optional: true, required: false private _jobAttempts?: number; public get jobAttempts() { return this.getNumberAttribute('job_attempts'); } public set jobAttempts(value: number) { this._jobAttempts = value; } public resetJobAttempts() { this._jobAttempts = undefined; } // Temporarily expose input value. Use with caution. public get jobAttemptsInput() { return this._jobAttempts; } // job_definition - computed: false, optional: false, required: true private _jobDefinition?: string; public get jobDefinition() { return this.getStringAttribute('job_definition'); } public set jobDefinition(value: string) { this._jobDefinition = value; } // Temporarily expose input value. Use with caution. public get jobDefinitionInput() { return this._jobDefinition; } // job_name - computed: false, optional: false, required: true private _jobName?: string; public get jobName() { return this.getStringAttribute('job_name'); } public set jobName(value: string) { this._jobName = value; } // Temporarily expose input value. Use with caution. public get jobNameInput() { return this._jobName; } } export interface CloudwatchEventTargetDeadLetterConfig { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#arn CloudwatchEventTarget#arn} */ readonly arn?: string; } export function cloudwatchEventTargetDeadLetterConfigToTerraform(struct?: CloudwatchEventTargetDeadLetterConfigOutputReference | CloudwatchEventTargetDeadLetterConfig): 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 { arn: cdktf.stringToTerraform(struct!.arn), } } export class CloudwatchEventTargetDeadLetterConfigOutputReference 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(): CloudwatchEventTargetDeadLetterConfig | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._arn !== undefined) { hasAnyValues = true; internalValueResult.arn = this._arn; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CloudwatchEventTargetDeadLetterConfig | undefined) { if (value === undefined) { this.isEmptyObject = false; this._arn = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._arn = value.arn; } } // arn - computed: false, optional: true, required: false private _arn?: string; public get arn() { return this.getStringAttribute('arn'); } public set arn(value: string) { this._arn = value; } public resetArn() { this._arn = undefined; } // Temporarily expose input value. Use with caution. public get arnInput() { return this._arn; } } export interface CloudwatchEventTargetEcsTargetNetworkConfiguration { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#assign_public_ip CloudwatchEventTarget#assign_public_ip} */ readonly assignPublicIp?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#security_groups CloudwatchEventTarget#security_groups} */ readonly securityGroups?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#subnets CloudwatchEventTarget#subnets} */ readonly subnets: string[]; } export function cloudwatchEventTargetEcsTargetNetworkConfigurationToTerraform(struct?: CloudwatchEventTargetEcsTargetNetworkConfigurationOutputReference | CloudwatchEventTargetEcsTargetNetworkConfiguration): 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 { assign_public_ip: cdktf.booleanToTerraform(struct!.assignPublicIp), security_groups: cdktf.listMapper(cdktf.stringToTerraform)(struct!.securityGroups), subnets: cdktf.listMapper(cdktf.stringToTerraform)(struct!.subnets), } } export class CloudwatchEventTargetEcsTargetNetworkConfigurationOutputReference 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(): CloudwatchEventTargetEcsTargetNetworkConfiguration | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._assignPublicIp !== undefined) { hasAnyValues = true; internalValueResult.assignPublicIp = this._assignPublicIp; } if (this._securityGroups !== undefined) { hasAnyValues = true; internalValueResult.securityGroups = this._securityGroups; } if (this._subnets !== undefined) { hasAnyValues = true; internalValueResult.subnets = this._subnets; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CloudwatchEventTargetEcsTargetNetworkConfiguration | undefined) { if (value === undefined) { this.isEmptyObject = false; this._assignPublicIp = undefined; this._securityGroups = undefined; this._subnets = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._assignPublicIp = value.assignPublicIp; this._securityGroups = value.securityGroups; this._subnets = value.subnets; } } // assign_public_ip - computed: false, optional: true, required: false private _assignPublicIp?: boolean | cdktf.IResolvable; public get assignPublicIp() { return this.getBooleanAttribute('assign_public_ip') as any; } public set assignPublicIp(value: boolean | cdktf.IResolvable) { this._assignPublicIp = value; } public resetAssignPublicIp() { this._assignPublicIp = undefined; } // Temporarily expose input value. Use with caution. public get assignPublicIpInput() { return this._assignPublicIp; } // security_groups - computed: false, optional: true, required: false private _securityGroups?: string[]; public get securityGroups() { return this.getListAttribute('security_groups'); } public set securityGroups(value: string[]) { this._securityGroups = value; } public resetSecurityGroups() { this._securityGroups = undefined; } // Temporarily expose input value. Use with caution. public get securityGroupsInput() { return this._securityGroups; } // subnets - computed: false, optional: false, required: true private _subnets?: string[]; public get subnets() { return this.getListAttribute('subnets'); } public set subnets(value: string[]) { this._subnets = value; } // Temporarily expose input value. Use with caution. public get subnetsInput() { return this._subnets; } } export interface CloudwatchEventTargetEcsTargetPlacementConstraint { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#expression CloudwatchEventTarget#expression} */ readonly expression?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#type CloudwatchEventTarget#type} */ readonly type: string; } export function cloudwatchEventTargetEcsTargetPlacementConstraintToTerraform(struct?: CloudwatchEventTargetEcsTargetPlacementConstraint): 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 { expression: cdktf.stringToTerraform(struct!.expression), type: cdktf.stringToTerraform(struct!.type), } } export interface CloudwatchEventTargetEcsTarget { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#enable_ecs_managed_tags CloudwatchEventTarget#enable_ecs_managed_tags} */ readonly enableEcsManagedTags?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#enable_execute_command CloudwatchEventTarget#enable_execute_command} */ readonly enableExecuteCommand?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#group CloudwatchEventTarget#group} */ readonly group?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#launch_type CloudwatchEventTarget#launch_type} */ readonly launchType?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#platform_version CloudwatchEventTarget#platform_version} */ readonly platformVersion?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#propagate_tags CloudwatchEventTarget#propagate_tags} */ readonly propagateTags?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#tags CloudwatchEventTarget#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#task_count CloudwatchEventTarget#task_count} */ readonly taskCount?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#task_definition_arn CloudwatchEventTarget#task_definition_arn} */ readonly taskDefinitionArn: string; /** * network_configuration block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#network_configuration CloudwatchEventTarget#network_configuration} */ readonly networkConfiguration?: CloudwatchEventTargetEcsTargetNetworkConfiguration; /** * placement_constraint block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#placement_constraint CloudwatchEventTarget#placement_constraint} */ readonly placementConstraint?: CloudwatchEventTargetEcsTargetPlacementConstraint[]; } export function cloudwatchEventTargetEcsTargetToTerraform(struct?: CloudwatchEventTargetEcsTargetOutputReference | CloudwatchEventTargetEcsTarget): 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 { enable_ecs_managed_tags: cdktf.booleanToTerraform(struct!.enableEcsManagedTags), enable_execute_command: cdktf.booleanToTerraform(struct!.enableExecuteCommand), group: cdktf.stringToTerraform(struct!.group), launch_type: cdktf.stringToTerraform(struct!.launchType), platform_version: cdktf.stringToTerraform(struct!.platformVersion), propagate_tags: cdktf.stringToTerraform(struct!.propagateTags), tags: cdktf.hashMapper(cdktf.anyToTerraform)(struct!.tags), task_count: cdktf.numberToTerraform(struct!.taskCount), task_definition_arn: cdktf.stringToTerraform(struct!.taskDefinitionArn), network_configuration: cloudwatchEventTargetEcsTargetNetworkConfigurationToTerraform(struct!.networkConfiguration), placement_constraint: cdktf.listMapper(cloudwatchEventTargetEcsTargetPlacementConstraintToTerraform)(struct!.placementConstraint), } } export class CloudwatchEventTargetEcsTargetOutputReference 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(): CloudwatchEventTargetEcsTarget | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._enableEcsManagedTags !== undefined) { hasAnyValues = true; internalValueResult.enableEcsManagedTags = this._enableEcsManagedTags; } if (this._enableExecuteCommand !== undefined) { hasAnyValues = true; internalValueResult.enableExecuteCommand = this._enableExecuteCommand; } if (this._group !== undefined) { hasAnyValues = true; internalValueResult.group = this._group; } if (this._launchType !== undefined) { hasAnyValues = true; internalValueResult.launchType = this._launchType; } if (this._platformVersion !== undefined) { hasAnyValues = true; internalValueResult.platformVersion = this._platformVersion; } if (this._propagateTags !== undefined) { hasAnyValues = true; internalValueResult.propagateTags = this._propagateTags; } if (this._tags !== undefined) { hasAnyValues = true; internalValueResult.tags = this._tags; } if (this._taskCount !== undefined) { hasAnyValues = true; internalValueResult.taskCount = this._taskCount; } if (this._taskDefinitionArn !== undefined) { hasAnyValues = true; internalValueResult.taskDefinitionArn = this._taskDefinitionArn; } if (this._networkConfiguration?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.networkConfiguration = this._networkConfiguration?.internalValue; } if (this._placementConstraint !== undefined) { hasAnyValues = true; internalValueResult.placementConstraint = this._placementConstraint; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CloudwatchEventTargetEcsTarget | undefined) { if (value === undefined) { this.isEmptyObject = false; this._enableEcsManagedTags = undefined; this._enableExecuteCommand = undefined; this._group = undefined; this._launchType = undefined; this._platformVersion = undefined; this._propagateTags = undefined; this._tags = undefined; this._taskCount = undefined; this._taskDefinitionArn = undefined; this._networkConfiguration.internalValue = undefined; this._placementConstraint = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._enableEcsManagedTags = value.enableEcsManagedTags; this._enableExecuteCommand = value.enableExecuteCommand; this._group = value.group; this._launchType = value.launchType; this._platformVersion = value.platformVersion; this._propagateTags = value.propagateTags; this._tags = value.tags; this._taskCount = value.taskCount; this._taskDefinitionArn = value.taskDefinitionArn; this._networkConfiguration.internalValue = value.networkConfiguration; this._placementConstraint = value.placementConstraint; } } // enable_ecs_managed_tags - computed: false, optional: true, required: false private _enableEcsManagedTags?: boolean | cdktf.IResolvable; public get enableEcsManagedTags() { return this.getBooleanAttribute('enable_ecs_managed_tags') as any; } public set enableEcsManagedTags(value: boolean | cdktf.IResolvable) { this._enableEcsManagedTags = value; } public resetEnableEcsManagedTags() { this._enableEcsManagedTags = undefined; } // Temporarily expose input value. Use with caution. public get enableEcsManagedTagsInput() { return this._enableEcsManagedTags; } // enable_execute_command - computed: false, optional: true, required: false private _enableExecuteCommand?: boolean | cdktf.IResolvable; public get enableExecuteCommand() { return this.getBooleanAttribute('enable_execute_command') as any; } public set enableExecuteCommand(value: boolean | cdktf.IResolvable) { this._enableExecuteCommand = value; } public resetEnableExecuteCommand() { this._enableExecuteCommand = undefined; } // Temporarily expose input value. Use with caution. public get enableExecuteCommandInput() { return this._enableExecuteCommand; } // group - computed: false, optional: true, required: false private _group?: string; public get group() { return this.getStringAttribute('group'); } public set group(value: string) { this._group = value; } public resetGroup() { this._group = undefined; } // Temporarily expose input value. Use with caution. public get groupInput() { return this._group; } // launch_type - computed: false, optional: true, required: false private _launchType?: string; public get launchType() { return this.getStringAttribute('launch_type'); } public set launchType(value: string) { this._launchType = value; } public resetLaunchType() { this._launchType = undefined; } // Temporarily expose input value. Use with caution. public get launchTypeInput() { return this._launchType; } // platform_version - computed: false, optional: true, required: false private _platformVersion?: string; public get platformVersion() { return this.getStringAttribute('platform_version'); } public set platformVersion(value: string) { this._platformVersion = value; } public resetPlatformVersion() { this._platformVersion = undefined; } // Temporarily expose input value. Use with caution. public get platformVersionInput() { return this._platformVersion; } // propagate_tags - computed: false, optional: true, required: false private _propagateTags?: string; public get propagateTags() { return this.getStringAttribute('propagate_tags'); } public set propagateTags(value: string) { this._propagateTags = value; } public resetPropagateTags() { this._propagateTags = undefined; } // Temporarily expose input value. Use with caution. public get propagateTagsInput() { return this._propagateTags; } // tags - computed: false, optional: true, required: false private _tags?: { [key: string]: string } | cdktf.IResolvable; public get tags() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags') as any; } public set tags(value: { [key: string]: string } | cdktf.IResolvable) { this._tags = value; } public resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. public get tagsInput() { return this._tags; } // task_count - computed: false, optional: true, required: false private _taskCount?: number; public get taskCount() { return this.getNumberAttribute('task_count'); } public set taskCount(value: number) { this._taskCount = value; } public resetTaskCount() { this._taskCount = undefined; } // Temporarily expose input value. Use with caution. public get taskCountInput() { return this._taskCount; } // task_definition_arn - computed: false, optional: false, required: true private _taskDefinitionArn?: string; public get taskDefinitionArn() { return this.getStringAttribute('task_definition_arn'); } public set taskDefinitionArn(value: string) { this._taskDefinitionArn = value; } // Temporarily expose input value. Use with caution. public get taskDefinitionArnInput() { return this._taskDefinitionArn; } // network_configuration - computed: false, optional: true, required: false private _networkConfiguration = new CloudwatchEventTargetEcsTargetNetworkConfigurationOutputReference(this as any, "network_configuration", true); public get networkConfiguration() { return this._networkConfiguration; } public putNetworkConfiguration(value: CloudwatchEventTargetEcsTargetNetworkConfiguration) { this._networkConfiguration.internalValue = value; } public resetNetworkConfiguration() { this._networkConfiguration.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get networkConfigurationInput() { return this._networkConfiguration.internalValue; } // placement_constraint - computed: false, optional: true, required: false private _placementConstraint?: CloudwatchEventTargetEcsTargetPlacementConstraint[]; public get placementConstraint() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('placement_constraint') as any; } public set placementConstraint(value: CloudwatchEventTargetEcsTargetPlacementConstraint[]) { this._placementConstraint = value; } public resetPlacementConstraint() { this._placementConstraint = undefined; } // Temporarily expose input value. Use with caution. public get placementConstraintInput() { return this._placementConstraint; } } export interface CloudwatchEventTargetHttpTarget { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#header_parameters CloudwatchEventTarget#header_parameters} */ readonly headerParameters?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#path_parameter_values CloudwatchEventTarget#path_parameter_values} */ readonly pathParameterValues?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#query_string_parameters CloudwatchEventTarget#query_string_parameters} */ readonly queryStringParameters?: { [key: string]: string } | cdktf.IResolvable; } export function cloudwatchEventTargetHttpTargetToTerraform(struct?: CloudwatchEventTargetHttpTargetOutputReference | CloudwatchEventTargetHttpTarget): 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 { header_parameters: cdktf.hashMapper(cdktf.anyToTerraform)(struct!.headerParameters), path_parameter_values: cdktf.listMapper(cdktf.stringToTerraform)(struct!.pathParameterValues), query_string_parameters: cdktf.hashMapper(cdktf.anyToTerraform)(struct!.queryStringParameters), } } export class CloudwatchEventTargetHttpTargetOutputReference 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(): CloudwatchEventTargetHttpTarget | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._headerParameters !== undefined) { hasAnyValues = true; internalValueResult.headerParameters = this._headerParameters; } if (this._pathParameterValues !== undefined) { hasAnyValues = true; internalValueResult.pathParameterValues = this._pathParameterValues; } if (this._queryStringParameters !== undefined) { hasAnyValues = true; internalValueResult.queryStringParameters = this._queryStringParameters; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CloudwatchEventTargetHttpTarget | undefined) { if (value === undefined) { this.isEmptyObject = false; this._headerParameters = undefined; this._pathParameterValues = undefined; this._queryStringParameters = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._headerParameters = value.headerParameters; this._pathParameterValues = value.pathParameterValues; this._queryStringParameters = value.queryStringParameters; } } // header_parameters - computed: false, optional: true, required: false private _headerParameters?: { [key: string]: string } | cdktf.IResolvable; public get headerParameters() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('header_parameters') as any; } public set headerParameters(value: { [key: string]: string } | cdktf.IResolvable) { this._headerParameters = value; } public resetHeaderParameters() { this._headerParameters = undefined; } // Temporarily expose input value. Use with caution. public get headerParametersInput() { return this._headerParameters; } // path_parameter_values - computed: false, optional: true, required: false private _pathParameterValues?: string[]; public get pathParameterValues() { return this.getListAttribute('path_parameter_values'); } public set pathParameterValues(value: string[]) { this._pathParameterValues = value; } public resetPathParameterValues() { this._pathParameterValues = undefined; } // Temporarily expose input value. Use with caution. public get pathParameterValuesInput() { return this._pathParameterValues; } // query_string_parameters - computed: false, optional: true, required: false private _queryStringParameters?: { [key: string]: string } | cdktf.IResolvable; public get queryStringParameters() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('query_string_parameters') as any; } public set queryStringParameters(value: { [key: string]: string } | cdktf.IResolvable) { this._queryStringParameters = value; } public resetQueryStringParameters() { this._queryStringParameters = undefined; } // Temporarily expose input value. Use with caution. public get queryStringParametersInput() { return this._queryStringParameters; } } export interface CloudwatchEventTargetInputTransformer { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#input_paths CloudwatchEventTarget#input_paths} */ readonly inputPaths?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#input_template CloudwatchEventTarget#input_template} */ readonly inputTemplate: string; } export function cloudwatchEventTargetInputTransformerToTerraform(struct?: CloudwatchEventTargetInputTransformerOutputReference | CloudwatchEventTargetInputTransformer): 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 { input_paths: cdktf.hashMapper(cdktf.anyToTerraform)(struct!.inputPaths), input_template: cdktf.stringToTerraform(struct!.inputTemplate), } } export class CloudwatchEventTargetInputTransformerOutputReference 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(): CloudwatchEventTargetInputTransformer | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._inputPaths !== undefined) { hasAnyValues = true; internalValueResult.inputPaths = this._inputPaths; } if (this._inputTemplate !== undefined) { hasAnyValues = true; internalValueResult.inputTemplate = this._inputTemplate; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CloudwatchEventTargetInputTransformer | undefined) { if (value === undefined) { this.isEmptyObject = false; this._inputPaths = undefined; this._inputTemplate = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._inputPaths = value.inputPaths; this._inputTemplate = value.inputTemplate; } } // input_paths - computed: false, optional: true, required: false private _inputPaths?: { [key: string]: string } | cdktf.IResolvable; public get inputPaths() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('input_paths') as any; } public set inputPaths(value: { [key: string]: string } | cdktf.IResolvable) { this._inputPaths = value; } public resetInputPaths() { this._inputPaths = undefined; } // Temporarily expose input value. Use with caution. public get inputPathsInput() { return this._inputPaths; } // input_template - computed: false, optional: false, required: true private _inputTemplate?: string; public get inputTemplate() { return this.getStringAttribute('input_template'); } public set inputTemplate(value: string) { this._inputTemplate = value; } // Temporarily expose input value. Use with caution. public get inputTemplateInput() { return this._inputTemplate; } } export interface CloudwatchEventTargetKinesisTarget { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#partition_key_path CloudwatchEventTarget#partition_key_path} */ readonly partitionKeyPath?: string; } export function cloudwatchEventTargetKinesisTargetToTerraform(struct?: CloudwatchEventTargetKinesisTargetOutputReference | CloudwatchEventTargetKinesisTarget): 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 { partition_key_path: cdktf.stringToTerraform(struct!.partitionKeyPath), } } export class CloudwatchEventTargetKinesisTargetOutputReference 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(): CloudwatchEventTargetKinesisTarget | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._partitionKeyPath !== undefined) { hasAnyValues = true; internalValueResult.partitionKeyPath = this._partitionKeyPath; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CloudwatchEventTargetKinesisTarget | undefined) { if (value === undefined) { this.isEmptyObject = false; this._partitionKeyPath = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._partitionKeyPath = value.partitionKeyPath; } } // partition_key_path - computed: false, optional: true, required: false private _partitionKeyPath?: string; public get partitionKeyPath() { return this.getStringAttribute('partition_key_path'); } public set partitionKeyPath(value: string) { this._partitionKeyPath = value; } public resetPartitionKeyPath() { this._partitionKeyPath = undefined; } // Temporarily expose input value. Use with caution. public get partitionKeyPathInput() { return this._partitionKeyPath; } } export interface CloudwatchEventTargetRedshiftTarget { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#database CloudwatchEventTarget#database} */ readonly database: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#db_user CloudwatchEventTarget#db_user} */ readonly dbUser?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#secrets_manager_arn CloudwatchEventTarget#secrets_manager_arn} */ readonly secretsManagerArn?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#sql CloudwatchEventTarget#sql} */ readonly sql?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#statement_name CloudwatchEventTarget#statement_name} */ readonly statementName?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#with_event CloudwatchEventTarget#with_event} */ readonly withEvent?: boolean | cdktf.IResolvable; } export function cloudwatchEventTargetRedshiftTargetToTerraform(struct?: CloudwatchEventTargetRedshiftTargetOutputReference | CloudwatchEventTargetRedshiftTarget): 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 { database: cdktf.stringToTerraform(struct!.database), db_user: cdktf.stringToTerraform(struct!.dbUser), secrets_manager_arn: cdktf.stringToTerraform(struct!.secretsManagerArn), sql: cdktf.stringToTerraform(struct!.sql), statement_name: cdktf.stringToTerraform(struct!.statementName), with_event: cdktf.booleanToTerraform(struct!.withEvent), } } export class CloudwatchEventTargetRedshiftTargetOutputReference 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(): CloudwatchEventTargetRedshiftTarget | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._database !== undefined) { hasAnyValues = true; internalValueResult.database = this._database; } if (this._dbUser !== undefined) { hasAnyValues = true; internalValueResult.dbUser = this._dbUser; } if (this._secretsManagerArn !== undefined) { hasAnyValues = true; internalValueResult.secretsManagerArn = this._secretsManagerArn; } if (this._sql !== undefined) { hasAnyValues = true; internalValueResult.sql = this._sql; } if (this._statementName !== undefined) { hasAnyValues = true; internalValueResult.statementName = this._statementName; } if (this._withEvent !== undefined) { hasAnyValues = true; internalValueResult.withEvent = this._withEvent; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CloudwatchEventTargetRedshiftTarget | undefined) { if (value === undefined) { this.isEmptyObject = false; this._database = undefined; this._dbUser = undefined; this._secretsManagerArn = undefined; this._sql = undefined; this._statementName = undefined; this._withEvent = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._database = value.database; this._dbUser = value.dbUser; this._secretsManagerArn = value.secretsManagerArn; this._sql = value.sql; this._statementName = value.statementName; this._withEvent = value.withEvent; } } // database - computed: false, optional: false, required: true private _database?: string; public get database() { return this.getStringAttribute('database'); } public set database(value: string) { this._database = value; } // Temporarily expose input value. Use with caution. public get databaseInput() { return this._database; } // db_user - computed: false, optional: true, required: false private _dbUser?: string; public get dbUser() { return this.getStringAttribute('db_user'); } public set dbUser(value: string) { this._dbUser = value; } public resetDbUser() { this._dbUser = undefined; } // Temporarily expose input value. Use with caution. public get dbUserInput() { return this._dbUser; } // secrets_manager_arn - computed: false, optional: true, required: false private _secretsManagerArn?: string; public get secretsManagerArn() { return this.getStringAttribute('secrets_manager_arn'); } public set secretsManagerArn(value: string) { this._secretsManagerArn = value; } public resetSecretsManagerArn() { this._secretsManagerArn = undefined; } // Temporarily expose input value. Use with caution. public get secretsManagerArnInput() { return this._secretsManagerArn; } // sql - computed: false, optional: true, required: false private _sql?: string; public get sql() { return this.getStringAttribute('sql'); } public set sql(value: string) { this._sql = value; } public resetSql() { this._sql = undefined; } // Temporarily expose input value. Use with caution. public get sqlInput() { return this._sql; } // statement_name - computed: false, optional: true, required: false private _statementName?: string; public get statementName() { return this.getStringAttribute('statement_name'); } public set statementName(value: string) { this._statementName = value; } public resetStatementName() { this._statementName = undefined; } // Temporarily expose input value. Use with caution. public get statementNameInput() { return this._statementName; } // with_event - computed: false, optional: true, required: false private _withEvent?: boolean | cdktf.IResolvable; public get withEvent() { return this.getBooleanAttribute('with_event') as any; } public set withEvent(value: boolean | cdktf.IResolvable) { this._withEvent = value; } public resetWithEvent() { this._withEvent = undefined; } // Temporarily expose input value. Use with caution. public get withEventInput() { return this._withEvent; } } export interface CloudwatchEventTargetRetryPolicy { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#maximum_event_age_in_seconds CloudwatchEventTarget#maximum_event_age_in_seconds} */ readonly maximumEventAgeInSeconds?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#maximum_retry_attempts CloudwatchEventTarget#maximum_retry_attempts} */ readonly maximumRetryAttempts?: number; } export function cloudwatchEventTargetRetryPolicyToTerraform(struct?: CloudwatchEventTargetRetryPolicyOutputReference | CloudwatchEventTargetRetryPolicy): 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 { maximum_event_age_in_seconds: cdktf.numberToTerraform(struct!.maximumEventAgeInSeconds), maximum_retry_attempts: cdktf.numberToTerraform(struct!.maximumRetryAttempts), } } export class CloudwatchEventTargetRetryPolicyOutputReference 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(): CloudwatchEventTargetRetryPolicy | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._maximumEventAgeInSeconds !== undefined) { hasAnyValues = true; internalValueResult.maximumEventAgeInSeconds = this._maximumEventAgeInSeconds; } if (this._maximumRetryAttempts !== undefined) { hasAnyValues = true; internalValueResult.maximumRetryAttempts = this._maximumRetryAttempts; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CloudwatchEventTargetRetryPolicy | undefined) { if (value === undefined) { this.isEmptyObject = false; this._maximumEventAgeInSeconds = undefined; this._maximumRetryAttempts = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._maximumEventAgeInSeconds = value.maximumEventAgeInSeconds; this._maximumRetryAttempts = value.maximumRetryAttempts; } } // maximum_event_age_in_seconds - computed: false, optional: true, required: false private _maximumEventAgeInSeconds?: number; public get maximumEventAgeInSeconds() { return this.getNumberAttribute('maximum_event_age_in_seconds'); } public set maximumEventAgeInSeconds(value: number) { this._maximumEventAgeInSeconds = value; } public resetMaximumEventAgeInSeconds() { this._maximumEventAgeInSeconds = undefined; } // Temporarily expose input value. Use with caution. public get maximumEventAgeInSecondsInput() { return this._maximumEventAgeInSeconds; } // maximum_retry_attempts - computed: false, 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; } } export interface CloudwatchEventTargetRunCommandTargets { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#key CloudwatchEventTarget#key} */ readonly key: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#values CloudwatchEventTarget#values} */ readonly values: string[]; } export function cloudwatchEventTargetRunCommandTargetsToTerraform(struct?: CloudwatchEventTargetRunCommandTargets): 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 { key: cdktf.stringToTerraform(struct!.key), values: cdktf.listMapper(cdktf.stringToTerraform)(struct!.values), } } export interface CloudwatchEventTargetSqsTarget { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html#message_group_id CloudwatchEventTarget#message_group_id} */ readonly messageGroupId?: string; } export function cloudwatchEventTargetSqsTargetToTerraform(struct?: CloudwatchEventTargetSqsTargetOutputReference | CloudwatchEventTargetSqsTarget): 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 { message_group_id: cdktf.stringToTerraform(struct!.messageGroupId), } } export class CloudwatchEventTargetSqsTargetOutputReference 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(): CloudwatchEventTargetSqsTarget | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._messageGroupId !== undefined) { hasAnyValues = true; internalValueResult.messageGroupId = this._messageGroupId; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: CloudwatchEventTargetSqsTarget | undefined) { if (value === undefined) { this.isEmptyObject = false; this._messageGroupId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._messageGroupId = value.messageGroupId; } } // message_group_id - computed: false, optional: true, required: false private _messageGroupId?: string; public get messageGroupId() { return this.getStringAttribute('message_group_id'); } public set messageGroupId(value: string) { this._messageGroupId = value; } public resetMessageGroupId() { this._messageGroupId = undefined; } // Temporarily expose input value. Use with caution. public get messageGroupIdInput() { return this._messageGroupId; } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html aws_cloudwatch_event_target} */ export class CloudwatchEventTarget extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_cloudwatch_event_target"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html aws_cloudwatch_event_target} 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 CloudwatchEventTargetConfig */ public constructor(scope: Construct, id: string, config: CloudwatchEventTargetConfig) { super(scope, id, { terraformResourceType: 'aws_cloudwatch_event_target', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._arn = config.arn; this._eventBusName = config.eventBusName; this._input = config.input; this._inputPath = config.inputPath; this._roleArn = config.roleArn; this._rule = config.rule; this._targetId = config.targetId; this._batchTarget.internalValue = config.batchTarget; this._deadLetterConfig.internalValue = config.deadLetterConfig; this._ecsTarget.internalValue = config.ecsTarget; this._httpTarget.internalValue = config.httpTarget; this._inputTransformer.internalValue = config.inputTransformer; this._kinesisTarget.internalValue = config.kinesisTarget; this._redshiftTarget.internalValue = config.redshiftTarget; this._retryPolicy.internalValue = config.retryPolicy; this._runCommandTargets = config.runCommandTargets; this._sqsTarget.internalValue = config.sqsTarget; } // ========== // ATTRIBUTES // ========== // arn - computed: false, optional: false, required: true private _arn?: string; public get arn() { return this.getStringAttribute('arn'); } public set arn(value: string) { this._arn = value; } // Temporarily expose input value. Use with caution. public get arnInput() { return this._arn; } // event_bus_name - computed: false, optional: true, required: false private _eventBusName?: string; public get eventBusName() { return this.getStringAttribute('event_bus_name'); } public set eventBusName(value: string) { this._eventBusName = value; } public resetEventBusName() { this._eventBusName = undefined; } // Temporarily expose input value. Use with caution. public get eventBusNameInput() { return this._eventBusName; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // input - computed: false, optional: true, required: false private _input?: string; public get input() { return this.getStringAttribute('input'); } public set input(value: string) { this._input = value; } public resetInput() { this._input = undefined; } // Temporarily expose input value. Use with caution. public get inputInput() { return this._input; } // input_path - computed: false, optional: true, required: false private _inputPath?: string; public get inputPath() { return this.getStringAttribute('input_path'); } public set inputPath(value: string) { this._inputPath = value; } public resetInputPath() { this._inputPath = undefined; } // Temporarily expose input value. Use with caution. public get inputPathInput() { return this._inputPath; } // role_arn - computed: false, optional: true, required: false private _roleArn?: string; public get roleArn() { return this.getStringAttribute('role_arn'); } public set roleArn(value: string) { this._roleArn = value; } public resetRoleArn() { this._roleArn = undefined; } // Temporarily expose input value. Use with caution. public get roleArnInput() { return this._roleArn; } // rule - computed: false, optional: false, required: true private _rule?: string; public get rule() { return this.getStringAttribute('rule'); } public set rule(value: string) { this._rule = value; } // Temporarily expose input value. Use with caution. public get ruleInput() { return this._rule; } // target_id - computed: true, optional: true, required: false private _targetId?: string; public get targetId() { return this.getStringAttribute('target_id'); } public set targetId(value: string) { this._targetId = value; } public resetTargetId() { this._targetId = undefined; } // Temporarily expose input value. Use with caution. public get targetIdInput() { return this._targetId; } // batch_target - computed: false, optional: true, required: false private _batchTarget = new CloudwatchEventTargetBatchTargetOutputReference(this as any, "batch_target", true); public get batchTarget() { return this._batchTarget; } public putBatchTarget(value: CloudwatchEventTargetBatchTarget) { this._batchTarget.internalValue = value; } public resetBatchTarget() { this._batchTarget.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get batchTargetInput() { return this._batchTarget.internalValue; } // dead_letter_config - computed: false, optional: true, required: false private _deadLetterConfig = new CloudwatchEventTargetDeadLetterConfigOutputReference(this as any, "dead_letter_config", true); public get deadLetterConfig() { return this._deadLetterConfig; } public putDeadLetterConfig(value: CloudwatchEventTargetDeadLetterConfig) { this._deadLetterConfig.internalValue = value; } public resetDeadLetterConfig() { this._deadLetterConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get deadLetterConfigInput() { return this._deadLetterConfig.internalValue; } // ecs_target - computed: false, optional: true, required: false private _ecsTarget = new CloudwatchEventTargetEcsTargetOutputReference(this as any, "ecs_target", true); public get ecsTarget() { return this._ecsTarget; } public putEcsTarget(value: CloudwatchEventTargetEcsTarget) { this._ecsTarget.internalValue = value; } public resetEcsTarget() { this._ecsTarget.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get ecsTargetInput() { return this._ecsTarget.internalValue; } // http_target - computed: false, optional: true, required: false private _httpTarget = new CloudwatchEventTargetHttpTargetOutputReference(this as any, "http_target", true); public get httpTarget() { return this._httpTarget; } public putHttpTarget(value: CloudwatchEventTargetHttpTarget) { this._httpTarget.internalValue = value; } public resetHttpTarget() { this._httpTarget.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get httpTargetInput() { return this._httpTarget.internalValue; } // input_transformer - computed: false, optional: true, required: false private _inputTransformer = new CloudwatchEventTargetInputTransformerOutputReference(this as any, "input_transformer", true); public get inputTransformer() { return this._inputTransformer; } public putInputTransformer(value: CloudwatchEventTargetInputTransformer) { this._inputTransformer.internalValue = value; } public resetInputTransformer() { this._inputTransformer.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get inputTransformerInput() { return this._inputTransformer.internalValue; } // kinesis_target - computed: false, optional: true, required: false private _kinesisTarget = new CloudwatchEventTargetKinesisTargetOutputReference(this as any, "kinesis_target", true); public get kinesisTarget() { return this._kinesisTarget; } public putKinesisTarget(value: CloudwatchEventTargetKinesisTarget) { this._kinesisTarget.internalValue = value; } public resetKinesisTarget() { this._kinesisTarget.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get kinesisTargetInput() { return this._kinesisTarget.internalValue; } // redshift_target - computed: false, optional: true, required: false private _redshiftTarget = new CloudwatchEventTargetRedshiftTargetOutputReference(this as any, "redshift_target", true); public get redshiftTarget() { return this._redshiftTarget; } public putRedshiftTarget(value: CloudwatchEventTargetRedshiftTarget) { this._redshiftTarget.internalValue = value; } public resetRedshiftTarget() { this._redshiftTarget.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get redshiftTargetInput() { return this._redshiftTarget.internalValue; } // retry_policy - computed: false, optional: true, required: false private _retryPolicy = new CloudwatchEventTargetRetryPolicyOutputReference(this as any, "retry_policy", true); public get retryPolicy() { return this._retryPolicy; } public putRetryPolicy(value: CloudwatchEventTargetRetryPolicy) { this._retryPolicy.internalValue = value; } public resetRetryPolicy() { this._retryPolicy.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get retryPolicyInput() { return this._retryPolicy.internalValue; } // run_command_targets - computed: false, optional: true, required: false private _runCommandTargets?: CloudwatchEventTargetRunCommandTargets[]; public get runCommandTargets() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('run_command_targets') as any; } public set runCommandTargets(value: CloudwatchEventTargetRunCommandTargets[]) { this._runCommandTargets = value; } public resetRunCommandTargets() { this._runCommandTargets = undefined; } // Temporarily expose input value. Use with caution. public get runCommandTargetsInput() { return this._runCommandTargets; } // sqs_target - computed: false, optional: true, required: false private _sqsTarget = new CloudwatchEventTargetSqsTargetOutputReference(this as any, "sqs_target", true); public get sqsTarget() { return this._sqsTarget; } public putSqsTarget(value: CloudwatchEventTargetSqsTarget) { this._sqsTarget.internalValue = value; } public resetSqsTarget() { this._sqsTarget.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get sqsTargetInput() { return this._sqsTarget.internalValue; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { arn: cdktf.stringToTerraform(this._arn), event_bus_name: cdktf.stringToTerraform(this._eventBusName), input: cdktf.stringToTerraform(this._input), input_path: cdktf.stringToTerraform(this._inputPath), role_arn: cdktf.stringToTerraform(this._roleArn), rule: cdktf.stringToTerraform(this._rule), target_id: cdktf.stringToTerraform(this._targetId), batch_target: cloudwatchEventTargetBatchTargetToTerraform(this._batchTarget.internalValue), dead_letter_config: cloudwatchEventTargetDeadLetterConfigToTerraform(this._deadLetterConfig.internalValue), ecs_target: cloudwatchEventTargetEcsTargetToTerraform(this._ecsTarget.internalValue), http_target: cloudwatchEventTargetHttpTargetToTerraform(this._httpTarget.internalValue), input_transformer: cloudwatchEventTargetInputTransformerToTerraform(this._inputTransformer.internalValue), kinesis_target: cloudwatchEventTargetKinesisTargetToTerraform(this._kinesisTarget.internalValue), redshift_target: cloudwatchEventTargetRedshiftTargetToTerraform(this._redshiftTarget.internalValue), retry_policy: cloudwatchEventTargetRetryPolicyToTerraform(this._retryPolicy.internalValue), run_command_targets: cdktf.listMapper(cloudwatchEventTargetRunCommandTargetsToTerraform)(this._runCommandTargets), sqs_target: cloudwatchEventTargetSqsTargetToTerraform(this._sqsTarget.internalValue), }; } }