Class LoggingFolderSink.Builder

    • Method Detail

      • create

        @Stability(Stable)
        public static LoggingFolderSink.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 LoggingFolderSink.Builder.
      • connection

        @Stability(Experimental)
        public LoggingFolderSink.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public LoggingFolderSink.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • count

        @Stability(Experimental)
        public LoggingFolderSink.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Parameters:
        count - This parameter is required.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public LoggingFolderSink.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Parameters:
        dependsOn - This parameter is required.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public LoggingFolderSink.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Parameters:
        forEach - This parameter is required.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public LoggingFolderSink.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Parameters:
        lifecycle - This parameter is required.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public LoggingFolderSink.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Parameters:
        provider - This parameter is required.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public LoggingFolderSink.Builder provisioners​(List<? extends Object> provisioners)
        Parameters:
        provisioners - This parameter is required.
        Returns:
        this
      • destination

        @Stability(Stable)
        public LoggingFolderSink.Builder destination​(String destination)
        The destination of the sink (or, in other words, where logs are written to).

        Can be a Cloud Storage bucket, a PubSub topic, or a BigQuery dataset. Examples: "storage.googleapis.com/[GCS_BUCKET]" "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" The writer associated with the sink must have access to write to the above resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_folder_sink#destination LoggingFolderSink#destination}

        Parameters:
        destination - The destination of the sink (or, in other words, where logs are written to). This parameter is required.
        Returns:
        this
      • folder

        @Stability(Stable)
        public LoggingFolderSink.Builder folder​(String folder)
        The folder to be exported to the sink. Note that either [FOLDER_ID] or "folders/[FOLDER_ID]" is accepted.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_folder_sink#folder LoggingFolderSink#folder}

        Parameters:
        folder - The folder to be exported to the sink. Note that either [FOLDER_ID] or "folders/[FOLDER_ID]" is accepted. This parameter is required.
        Returns:
        this
      • name

        @Stability(Stable)
        public LoggingFolderSink.Builder name​(String name)
        The name of the logging sink.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_folder_sink#name LoggingFolderSink#name}

        Parameters:
        name - The name of the logging sink. This parameter is required.
        Returns:
        this
      • bigqueryOptions

        @Stability(Stable)
        public LoggingFolderSink.Builder bigqueryOptions​(LoggingFolderSinkBigqueryOptions bigqueryOptions)
        bigquery_options block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_folder_sink#bigquery_options LoggingFolderSink#bigquery_options}

        Parameters:
        bigqueryOptions - bigquery_options block. This parameter is required.
        Returns:
        this
      • description

        @Stability(Stable)
        public LoggingFolderSink.Builder description​(String description)
        A description of this sink. The maximum length of the description is 8000 characters.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_folder_sink#description LoggingFolderSink#description}

        Parameters:
        description - A description of this sink. The maximum length of the description is 8000 characters. This parameter is required.
        Returns:
        this
      • disabled

        @Stability(Stable)
        public LoggingFolderSink.Builder disabled​(Boolean disabled)
        If set to True, then this sink is disabled and it does not export any log entries.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_folder_sink#disabled LoggingFolderSink#disabled}

        Parameters:
        disabled - If set to True, then this sink is disabled and it does not export any log entries. This parameter is required.
        Returns:
        this
      • disabled

        @Stability(Stable)
        public LoggingFolderSink.Builder disabled​(com.hashicorp.cdktf.IResolvable disabled)
        If set to True, then this sink is disabled and it does not export any log entries.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_folder_sink#disabled LoggingFolderSink#disabled}

        Parameters:
        disabled - If set to True, then this sink is disabled and it does not export any log entries. This parameter is required.
        Returns:
        this
      • exclusions

        @Stability(Stable)
        public LoggingFolderSink.Builder exclusions​(com.hashicorp.cdktf.IResolvable exclusions)
        exclusions block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_folder_sink#exclusions LoggingFolderSink#exclusions}

        Parameters:
        exclusions - exclusions block. This parameter is required.
        Returns:
        this
      • exclusions

        @Stability(Stable)
        public LoggingFolderSink.Builder exclusions​(List<? extends LoggingFolderSinkExclusions> exclusions)
        exclusions block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_folder_sink#exclusions LoggingFolderSink#exclusions}

        Parameters:
        exclusions - exclusions block. This parameter is required.
        Returns:
        this
      • filter

        @Stability(Stable)
        public LoggingFolderSink.Builder filter​(String filter)
        The filter to apply when exporting logs. Only log entries that match the filter are exported.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_folder_sink#filter LoggingFolderSink#filter}

        Parameters:
        filter - The filter to apply when exporting logs. Only log entries that match the filter are exported. This parameter is required.
        Returns:
        this
      • id

        @Stability(Stable)
        public LoggingFolderSink.Builder id​(String id)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_folder_sink#id LoggingFolderSink#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_folder_sink#id LoggingFolderSink#id}. This parameter is required.
        Returns:
        this
      • includeChildren

        @Stability(Stable)
        public LoggingFolderSink.Builder includeChildren​(Boolean includeChildren)
        Whether or not to include children folders in the sink export.

        If true, logs associated with child projects are also exported; otherwise only logs relating to the provided folder are included. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_folder_sink#include_children LoggingFolderSink#include_children}

        Parameters:
        includeChildren - Whether or not to include children folders in the sink export. This parameter is required.
        Returns:
        this
      • includeChildren

        @Stability(Stable)
        public LoggingFolderSink.Builder includeChildren​(com.hashicorp.cdktf.IResolvable includeChildren)
        Whether or not to include children folders in the sink export.

        If true, logs associated with child projects are also exported; otherwise only logs relating to the provided folder are included. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_folder_sink#include_children LoggingFolderSink#include_children}

        Parameters:
        includeChildren - Whether or not to include children folders in the sink export. This parameter is required.
        Returns:
        this
      • interceptChildren

        @Stability(Stable)
        public LoggingFolderSink.Builder interceptChildren​(Boolean interceptChildren)
        Whether or not to intercept logs from child projects.

        If true, matching logs will not match with sinks in child resources, except _Required sinks. This sink will be visible to child resources when listing sinks. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_folder_sink#intercept_children LoggingFolderSink#intercept_children}

        Parameters:
        interceptChildren - Whether or not to intercept logs from child projects. This parameter is required.
        Returns:
        this
      • interceptChildren

        @Stability(Stable)
        public LoggingFolderSink.Builder interceptChildren​(com.hashicorp.cdktf.IResolvable interceptChildren)
        Whether or not to intercept logs from child projects.

        If true, matching logs will not match with sinks in child resources, except _Required sinks. This sink will be visible to child resources when listing sinks. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_folder_sink#intercept_children LoggingFolderSink#intercept_children}

        Parameters:
        interceptChildren - Whether or not to intercept logs from child projects. This parameter is required.
        Returns:
        this