Class LoggingBillingAccountBucketConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.logging_billing_account_bucket_config.LoggingBillingAccountBucketConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LoggingBillingAccountBucketConfig>
- Enclosing class:
- LoggingBillingAccountBucketConfig
@Stability(Stable) public static final class LoggingBillingAccountBucketConfig.Builder extends Object implements software.amazon.jsii.Builder<LoggingBillingAccountBucketConfig>
A fluent builder forLoggingBillingAccountBucketConfig.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LoggingBillingAccountBucketConfig.BuilderbillingAccount(String billingAccount)The parent resource that contains the logging bucket.LoggingBillingAccountBucketConfig.BuilderbucketId(String bucketId)The name of the logging bucket.LoggingBillingAccountBucketConfigbuild()LoggingBillingAccountBucketConfig.BuildercmekSettings(LoggingBillingAccountBucketConfigCmekSettings cmekSettings)cmek_settings block.LoggingBillingAccountBucketConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)LoggingBillingAccountBucketConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)LoggingBillingAccountBucketConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)LoggingBillingAccountBucketConfig.Buildercount(Number count)static LoggingBillingAccountBucketConfig.Buildercreate(software.constructs.Construct scope, String id)LoggingBillingAccountBucketConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)LoggingBillingAccountBucketConfig.Builderdescription(String description)An optional description for this bucket.LoggingBillingAccountBucketConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)LoggingBillingAccountBucketConfig.Builderid(String id)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_billing_account_bucket_config#id LoggingBillingAccountBucketConfig#id}.LoggingBillingAccountBucketConfig.BuilderindexConfigs(com.hashicorp.cdktf.IResolvable indexConfigs)index_configs block.LoggingBillingAccountBucketConfig.BuilderindexConfigs(List<? extends LoggingBillingAccountBucketConfigIndexConfigs> indexConfigs)index_configs block.LoggingBillingAccountBucketConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)LoggingBillingAccountBucketConfig.Builderlocation(String location)The location of the bucket.LoggingBillingAccountBucketConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)LoggingBillingAccountBucketConfig.Builderprovisioners(List<? extends Object> provisioners)LoggingBillingAccountBucketConfig.BuilderretentionDays(Number retentionDays)Logs will be retained by default for this amount of time, after which they will automatically be deleted.
-
-
-
Method Detail
-
create
@Stability(Stable) public static LoggingBillingAccountBucketConfig.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope- The scope in which to define this construct. This parameter is required.id- The scoped construct ID. This parameter is required.- Returns:
- a new instance of
LoggingBillingAccountBucketConfig.Builder.
-
connection
@Stability(Experimental) public LoggingBillingAccountBucketConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public LoggingBillingAccountBucketConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public LoggingBillingAccountBucketConfig.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public LoggingBillingAccountBucketConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public LoggingBillingAccountBucketConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public LoggingBillingAccountBucketConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public LoggingBillingAccountBucketConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public LoggingBillingAccountBucketConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public LoggingBillingAccountBucketConfig.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
billingAccount
@Stability(Stable) public LoggingBillingAccountBucketConfig.Builder billingAccount(String billingAccount)
The parent resource that contains the logging bucket.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_billing_account_bucket_config#billing_account LoggingBillingAccountBucketConfig#billing_account}
- Parameters:
billingAccount- The parent resource that contains the logging bucket. This parameter is required.- Returns:
this
-
bucketId
@Stability(Stable) public LoggingBillingAccountBucketConfig.Builder bucketId(String bucketId)
The name of the logging bucket. Logging automatically creates two log buckets: _Required and _Default.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_billing_account_bucket_config#bucket_id LoggingBillingAccountBucketConfig#bucket_id}
- Parameters:
bucketId- The name of the logging bucket. Logging automatically creates two log buckets: _Required and _Default. This parameter is required.- Returns:
this
-
location
@Stability(Stable) public LoggingBillingAccountBucketConfig.Builder location(String location)
The location of the bucket.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_billing_account_bucket_config#location LoggingBillingAccountBucketConfig#location}
- Parameters:
location- The location of the bucket. This parameter is required.- Returns:
this
-
cmekSettings
@Stability(Stable) public LoggingBillingAccountBucketConfig.Builder cmekSettings(LoggingBillingAccountBucketConfigCmekSettings cmekSettings)
cmek_settings block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_billing_account_bucket_config#cmek_settings LoggingBillingAccountBucketConfig#cmek_settings}
- Parameters:
cmekSettings- cmek_settings block. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public LoggingBillingAccountBucketConfig.Builder description(String description)
An optional description for this bucket.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_billing_account_bucket_config#description LoggingBillingAccountBucketConfig#description}
- Parameters:
description- An optional description for this bucket. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public LoggingBillingAccountBucketConfig.Builder id(String id)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_billing_account_bucket_config#id LoggingBillingAccountBucketConfig#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.
- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_billing_account_bucket_config#id LoggingBillingAccountBucketConfig#id}. This parameter is required.- Returns:
this
-
indexConfigs
@Stability(Stable) public LoggingBillingAccountBucketConfig.Builder indexConfigs(com.hashicorp.cdktf.IResolvable indexConfigs)
index_configs block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_billing_account_bucket_config#index_configs LoggingBillingAccountBucketConfig#index_configs}
- Parameters:
indexConfigs- index_configs block. This parameter is required.- Returns:
this
-
indexConfigs
@Stability(Stable) public LoggingBillingAccountBucketConfig.Builder indexConfigs(List<? extends LoggingBillingAccountBucketConfigIndexConfigs> indexConfigs)
index_configs block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_billing_account_bucket_config#index_configs LoggingBillingAccountBucketConfig#index_configs}
- Parameters:
indexConfigs- index_configs block. This parameter is required.- Returns:
this
-
retentionDays
@Stability(Stable) public LoggingBillingAccountBucketConfig.Builder retentionDays(Number retentionDays)
Logs will be retained by default for this amount of time, after which they will automatically be deleted.The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_billing_account_bucket_config#retention_days LoggingBillingAccountBucketConfig#retention_days}
- Parameters:
retentionDays- Logs will be retained by default for this amount of time, after which they will automatically be deleted. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public LoggingBillingAccountBucketConfig build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LoggingBillingAccountBucketConfig>- Returns:
- a newly built instance of
LoggingBillingAccountBucketConfig.
-
-