Class LoggingProjectBucketConfig.Builder

    • Method Detail

      • 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​(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
      • 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