Class LoggingProjectBucketConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.logging_project_bucket_config.LoggingProjectBucketConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LoggingProjectBucketConfig>
- Enclosing class:
- LoggingProjectBucketConfig
@Stability(Stable) public static final class LoggingProjectBucketConfig.Builder extends Object implements software.amazon.jsii.Builder<LoggingProjectBucketConfig>
A fluent builder forLoggingProjectBucketConfig.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LoggingProjectBucketConfig.BuilderbucketId(String bucketId)The name of the logging bucket.LoggingProjectBucketConfigbuild()LoggingProjectBucketConfig.BuildercmekSettings(LoggingProjectBucketConfigCmekSettings cmekSettings)cmek_settings block.LoggingProjectBucketConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)LoggingProjectBucketConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)LoggingProjectBucketConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)LoggingProjectBucketConfig.Buildercount(Number count)static LoggingProjectBucketConfig.Buildercreate(software.constructs.Construct scope, String id)LoggingProjectBucketConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)LoggingProjectBucketConfig.Builderdescription(String description)An optional description for this bucket.LoggingProjectBucketConfig.BuilderenableAnalytics(com.hashicorp.cdktf.IResolvable enableAnalytics)Enable log analytics for the bucket.LoggingProjectBucketConfig.BuilderenableAnalytics(Boolean enableAnalytics)Enable log analytics for the bucket.LoggingProjectBucketConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)LoggingProjectBucketConfig.Builderid(String id)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_project_bucket_config#id LoggingProjectBucketConfig#id}.LoggingProjectBucketConfig.BuilderindexConfigs(com.hashicorp.cdktf.IResolvable indexConfigs)index_configs block.LoggingProjectBucketConfig.BuilderindexConfigs(List<? extends LoggingProjectBucketConfigIndexConfigs> indexConfigs)index_configs block.LoggingProjectBucketConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)LoggingProjectBucketConfig.Builderlocation(String location)The location of the bucket.LoggingProjectBucketConfig.Builderlocked(com.hashicorp.cdktf.IResolvable locked)Whether the bucket is locked.LoggingProjectBucketConfig.Builderlocked(Boolean locked)Whether the bucket is locked.LoggingProjectBucketConfig.Builderproject(String project)The parent project that contains the logging bucket.LoggingProjectBucketConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)LoggingProjectBucketConfig.Builderprovisioners(List<? extends Object> provisioners)LoggingProjectBucketConfig.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 LoggingProjectBucketConfig.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
LoggingProjectBucketConfig.Builder.
-
connection
@Stability(Experimental) public LoggingProjectBucketConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public LoggingProjectBucketConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public LoggingProjectBucketConfig.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public LoggingProjectBucketConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public LoggingProjectBucketConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public LoggingProjectBucketConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public LoggingProjectBucketConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public LoggingProjectBucketConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public LoggingProjectBucketConfig.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
bucketId
@Stability(Stable) public LoggingProjectBucketConfig.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_project_bucket_config#bucket_id LoggingProjectBucketConfig#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 LoggingProjectBucketConfig.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_project_bucket_config#location LoggingProjectBucketConfig#location}
- Parameters:
location- The location of the bucket. This parameter is required.- Returns:
this
-
project
@Stability(Stable) public LoggingProjectBucketConfig.Builder project(String project)
The parent project that contains the logging bucket.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_project_bucket_config#project LoggingProjectBucketConfig#project}
- Parameters:
project- The parent project that contains the logging bucket. This parameter is required.- Returns:
this
-
cmekSettings
@Stability(Stable) public LoggingProjectBucketConfig.Builder cmekSettings(LoggingProjectBucketConfigCmekSettings cmekSettings)
cmek_settings block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_project_bucket_config#cmek_settings LoggingProjectBucketConfig#cmek_settings}
- Parameters:
cmekSettings- cmek_settings block. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public LoggingProjectBucketConfig.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_project_bucket_config#description LoggingProjectBucketConfig#description}
- Parameters:
description- An optional description for this bucket. This parameter is required.- Returns:
this
-
enableAnalytics
@Stability(Stable) public LoggingProjectBucketConfig.Builder enableAnalytics(Boolean enableAnalytics)
Enable log analytics for the bucket. Cannot be disabled once enabled.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_project_bucket_config#enable_analytics LoggingProjectBucketConfig#enable_analytics}
- Parameters:
enableAnalytics- Enable log analytics for the bucket. Cannot be disabled once enabled. This parameter is required.- Returns:
this
-
enableAnalytics
@Stability(Stable) public LoggingProjectBucketConfig.Builder enableAnalytics(com.hashicorp.cdktf.IResolvable enableAnalytics)
Enable log analytics for the bucket. Cannot be disabled once enabled.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_project_bucket_config#enable_analytics LoggingProjectBucketConfig#enable_analytics}
- Parameters:
enableAnalytics- Enable log analytics for the bucket. Cannot be disabled once enabled. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public LoggingProjectBucketConfig.Builder id(String id)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_project_bucket_config#id LoggingProjectBucketConfig#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_project_bucket_config#id LoggingProjectBucketConfig#id}. This parameter is required.- Returns:
this
-
indexConfigs
@Stability(Stable) public LoggingProjectBucketConfig.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_project_bucket_config#index_configs LoggingProjectBucketConfig#index_configs}
- Parameters:
indexConfigs- index_configs block. This parameter is required.- Returns:
this
-
indexConfigs
@Stability(Stable) public LoggingProjectBucketConfig.Builder indexConfigs(List<? extends LoggingProjectBucketConfigIndexConfigs> indexConfigs)
index_configs block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_project_bucket_config#index_configs LoggingProjectBucketConfig#index_configs}
- Parameters:
indexConfigs- index_configs block. This parameter is required.- Returns:
this
-
locked
@Stability(Stable) public LoggingProjectBucketConfig.Builder locked(Boolean locked)
Whether the bucket is locked.The retention period on a locked bucket cannot be changed. Locked buckets may only be deleted if they are empty. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_project_bucket_config#locked LoggingProjectBucketConfig#locked}
- Parameters:
locked- Whether the bucket is locked. This parameter is required.- Returns:
this
-
locked
@Stability(Stable) public LoggingProjectBucketConfig.Builder locked(com.hashicorp.cdktf.IResolvable locked)
Whether the bucket is locked.The retention period on a locked bucket cannot be changed. Locked buckets may only be deleted if they are empty. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_project_bucket_config#locked LoggingProjectBucketConfig#locked}
- Parameters:
locked- Whether the bucket is locked. This parameter is required.- Returns:
this
-
retentionDays
@Stability(Stable) public LoggingProjectBucketConfig.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_project_bucket_config#retention_days LoggingProjectBucketConfig#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 LoggingProjectBucketConfig build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LoggingProjectBucketConfig>- Returns:
- a newly built instance of
LoggingProjectBucketConfig.
-
-