Class CloudwatchEventTargetConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.cloudwatch_event_target.CloudwatchEventTargetConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudwatchEventTargetConfig>
- Enclosing interface:
- CloudwatchEventTargetConfig
@Stability(Stable) public static final class CloudwatchEventTargetConfig.Builder extends Object implements software.amazon.jsii.Builder<CloudwatchEventTargetConfig>
A builder forCloudwatchEventTargetConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
arn
@Stability(Stable) public CloudwatchEventTargetConfig.Builder arn(String arn)
Sets the value ofCloudwatchEventTargetConfig.getArn()- Parameters:
arn- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#arn CloudwatchEventTarget#arn}. This parameter is required.- Returns:
this
-
rule
@Stability(Stable) public CloudwatchEventTargetConfig.Builder rule(String rule)
Sets the value ofCloudwatchEventTargetConfig.getRule()- Parameters:
rule- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#rule CloudwatchEventTarget#rule}. This parameter is required.- Returns:
this
-
batchTarget
@Stability(Stable) public CloudwatchEventTargetConfig.Builder batchTarget(CloudwatchEventTargetBatchTarget batchTarget)
Sets the value ofCloudwatchEventTargetConfig.getBatchTarget()- Parameters:
batchTarget- batch_target block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#batch_target CloudwatchEventTarget#batch_target}- Returns:
this
-
deadLetterConfig
@Stability(Stable) public CloudwatchEventTargetConfig.Builder deadLetterConfig(CloudwatchEventTargetDeadLetterConfig deadLetterConfig)
Sets the value ofCloudwatchEventTargetConfig.getDeadLetterConfig()- Parameters:
deadLetterConfig- dead_letter_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#dead_letter_config CloudwatchEventTarget#dead_letter_config}- Returns:
this
-
ecsTarget
@Stability(Stable) public CloudwatchEventTargetConfig.Builder ecsTarget(CloudwatchEventTargetEcsTarget ecsTarget)
Sets the value ofCloudwatchEventTargetConfig.getEcsTarget()- Parameters:
ecsTarget- ecs_target block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#ecs_target CloudwatchEventTarget#ecs_target}- Returns:
this
-
eventBusName
@Stability(Stable) public CloudwatchEventTargetConfig.Builder eventBusName(String eventBusName)
Sets the value ofCloudwatchEventTargetConfig.getEventBusName()- Parameters:
eventBusName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#event_bus_name CloudwatchEventTarget#event_bus_name}.- Returns:
this
-
httpTarget
@Stability(Stable) public CloudwatchEventTargetConfig.Builder httpTarget(CloudwatchEventTargetHttpTarget httpTarget)
Sets the value ofCloudwatchEventTargetConfig.getHttpTarget()- Parameters:
httpTarget- http_target block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#http_target CloudwatchEventTarget#http_target}- Returns:
this
-
id
@Stability(Stable) public CloudwatchEventTargetConfig.Builder id(String id)
Sets the value ofCloudwatchEventTargetConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#id CloudwatchEventTarget#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
input
@Stability(Stable) public CloudwatchEventTargetConfig.Builder input(String input)
Sets the value ofCloudwatchEventTargetConfig.getInput()- Parameters:
input- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#input CloudwatchEventTarget#input}.- Returns:
this
-
inputPath
@Stability(Stable) public CloudwatchEventTargetConfig.Builder inputPath(String inputPath)
Sets the value ofCloudwatchEventTargetConfig.getInputPath()- Parameters:
inputPath- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#input_path CloudwatchEventTarget#input_path}.- Returns:
this
-
inputTransformer
@Stability(Stable) public CloudwatchEventTargetConfig.Builder inputTransformer(CloudwatchEventTargetInputTransformer inputTransformer)
Sets the value ofCloudwatchEventTargetConfig.getInputTransformer()- Parameters:
inputTransformer- input_transformer block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#input_transformer CloudwatchEventTarget#input_transformer}- Returns:
this
-
kinesisTarget
@Stability(Stable) public CloudwatchEventTargetConfig.Builder kinesisTarget(CloudwatchEventTargetKinesisTarget kinesisTarget)
Sets the value ofCloudwatchEventTargetConfig.getKinesisTarget()- Parameters:
kinesisTarget- kinesis_target block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#kinesis_target CloudwatchEventTarget#kinesis_target}- Returns:
this
-
redshiftTarget
@Stability(Stable) public CloudwatchEventTargetConfig.Builder redshiftTarget(CloudwatchEventTargetRedshiftTarget redshiftTarget)
Sets the value ofCloudwatchEventTargetConfig.getRedshiftTarget()- Parameters:
redshiftTarget- redshift_target block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#redshift_target CloudwatchEventTarget#redshift_target}- Returns:
this
-
retryPolicy
@Stability(Stable) public CloudwatchEventTargetConfig.Builder retryPolicy(CloudwatchEventTargetRetryPolicy retryPolicy)
Sets the value ofCloudwatchEventTargetConfig.getRetryPolicy()- Parameters:
retryPolicy- retry_policy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#retry_policy CloudwatchEventTarget#retry_policy}- Returns:
this
-
roleArn
@Stability(Stable) public CloudwatchEventTargetConfig.Builder roleArn(String roleArn)
Sets the value ofCloudwatchEventTargetConfig.getRoleArn()- Parameters:
roleArn- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#role_arn CloudwatchEventTarget#role_arn}.- Returns:
this
-
runCommandTargets
@Stability(Stable) public CloudwatchEventTargetConfig.Builder runCommandTargets(com.hashicorp.cdktf.IResolvable runCommandTargets)
Sets the value ofCloudwatchEventTargetConfig.getRunCommandTargets()- Parameters:
runCommandTargets- run_command_targets block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#run_command_targets CloudwatchEventTarget#run_command_targets}- Returns:
this
-
runCommandTargets
@Stability(Stable) public CloudwatchEventTargetConfig.Builder runCommandTargets(List<? extends CloudwatchEventTargetRunCommandTargets> runCommandTargets)
Sets the value ofCloudwatchEventTargetConfig.getRunCommandTargets()- Parameters:
runCommandTargets- run_command_targets block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#run_command_targets CloudwatchEventTarget#run_command_targets}- Returns:
this
-
sqsTarget
@Stability(Stable) public CloudwatchEventTargetConfig.Builder sqsTarget(CloudwatchEventTargetSqsTarget sqsTarget)
Sets the value ofCloudwatchEventTargetConfig.getSqsTarget()- Parameters:
sqsTarget- sqs_target block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#sqs_target CloudwatchEventTarget#sqs_target}- Returns:
this
-
targetId
@Stability(Stable) public CloudwatchEventTargetConfig.Builder targetId(String targetId)
Sets the value ofCloudwatchEventTargetConfig.getTargetId()- Parameters:
targetId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_event_target#target_id CloudwatchEventTarget#target_id}.- Returns:
this
-
connection
@Stability(Experimental) public CloudwatchEventTargetConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public CloudwatchEventTargetConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public CloudwatchEventTargetConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public CloudwatchEventTargetConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public CloudwatchEventTargetConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public CloudwatchEventTargetConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public CloudwatchEventTargetConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public CloudwatchEventTargetConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public CloudwatchEventTargetConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public CloudwatchEventTargetConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudwatchEventTargetConfig>- Returns:
- a new instance of
CloudwatchEventTargetConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-