Class CloudwatchLogSubscriptionFilterConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.cloudwatch_log_subscription_filter.CloudwatchLogSubscriptionFilterConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudwatchLogSubscriptionFilterConfig>
- Enclosing interface:
- CloudwatchLogSubscriptionFilterConfig
@Stability(Stable) public static final class CloudwatchLogSubscriptionFilterConfig.Builder extends Object implements software.amazon.jsii.Builder<CloudwatchLogSubscriptionFilterConfig>
A builder forCloudwatchLogSubscriptionFilterConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
destinationArn
@Stability(Stable) public CloudwatchLogSubscriptionFilterConfig.Builder destinationArn(String destinationArn)
Sets the value ofCloudwatchLogSubscriptionFilterConfig.getDestinationArn()- Parameters:
destinationArn- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_log_subscription_filter#destination_arn CloudwatchLogSubscriptionFilter#destination_arn}. This parameter is required.- Returns:
this
-
filterPattern
@Stability(Stable) public CloudwatchLogSubscriptionFilterConfig.Builder filterPattern(String filterPattern)
Sets the value ofCloudwatchLogSubscriptionFilterConfig.getFilterPattern()- Parameters:
filterPattern- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_log_subscription_filter#filter_pattern CloudwatchLogSubscriptionFilter#filter_pattern}. This parameter is required.- Returns:
this
-
logGroupName
@Stability(Stable) public CloudwatchLogSubscriptionFilterConfig.Builder logGroupName(String logGroupName)
Sets the value ofCloudwatchLogSubscriptionFilterConfig.getLogGroupName()- Parameters:
logGroupName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_log_subscription_filter#log_group_name CloudwatchLogSubscriptionFilter#log_group_name}. This parameter is required.- Returns:
this
-
name
@Stability(Stable) public CloudwatchLogSubscriptionFilterConfig.Builder name(String name)
Sets the value ofCloudwatchLogSubscriptionFilterConfig.getName()- Parameters:
name- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_log_subscription_filter#name CloudwatchLogSubscriptionFilter#name}. This parameter is required.- Returns:
this
-
distribution
@Stability(Stable) public CloudwatchLogSubscriptionFilterConfig.Builder distribution(String distribution)
Sets the value ofCloudwatchLogSubscriptionFilterConfig.getDistribution()- Parameters:
distribution- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_log_subscription_filter#distribution CloudwatchLogSubscriptionFilter#distribution}.- Returns:
this
-
id
@Stability(Stable) public CloudwatchLogSubscriptionFilterConfig.Builder id(String id)
Sets the value ofCloudwatchLogSubscriptionFilterConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_log_subscription_filter#id CloudwatchLogSubscriptionFilter#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
-
roleArn
@Stability(Stable) public CloudwatchLogSubscriptionFilterConfig.Builder roleArn(String roleArn)
Sets the value ofCloudwatchLogSubscriptionFilterConfig.getRoleArn()- Parameters:
roleArn- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudwatch_log_subscription_filter#role_arn CloudwatchLogSubscriptionFilter#role_arn}.- Returns:
this
-
connection
@Stability(Experimental) public CloudwatchLogSubscriptionFilterConfig.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 CloudwatchLogSubscriptionFilterConfig.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 CloudwatchLogSubscriptionFilterConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public CloudwatchLogSubscriptionFilterConfig.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 CloudwatchLogSubscriptionFilterConfig.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 CloudwatchLogSubscriptionFilterConfig.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 CloudwatchLogSubscriptionFilterConfig.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 CloudwatchLogSubscriptionFilterConfig.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 CloudwatchLogSubscriptionFilterConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public CloudwatchLogSubscriptionFilterConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudwatchLogSubscriptionFilterConfig>- Returns:
- a new instance of
CloudwatchLogSubscriptionFilterConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-