Package com.pulumi.gcp.logging.inputs
Class OrganizationSinkState.Builder
- java.lang.Object
-
- com.pulumi.gcp.logging.inputs.OrganizationSinkState.Builder
-
- Enclosing class:
- OrganizationSinkState
public static final class OrganizationSinkState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(OrganizationSinkState defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(OrganizationSinkState defaults)
-
-
Method Detail
-
bigqueryOptions
public OrganizationSinkState.Builder bigqueryOptions(@Nullable com.pulumi.core.Output<OrganizationSinkBigqueryOptionsArgs> bigqueryOptions)
- Parameters:
bigqueryOptions
- Options that affect sinks exporting data to BigQuery. Structure documented below.- Returns:
- builder
-
bigqueryOptions
public OrganizationSinkState.Builder bigqueryOptions(OrganizationSinkBigqueryOptionsArgs bigqueryOptions)
- Parameters:
bigqueryOptions
- Options that affect sinks exporting data to BigQuery. Structure documented below.- Returns:
- builder
-
description
public OrganizationSinkState.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description
- A description of this sink. The maximum length of the description is 8000 characters.- Returns:
- builder
-
description
public OrganizationSinkState.Builder description(java.lang.String description)
- Parameters:
description
- A description of this sink. The maximum length of the description is 8000 characters.- Returns:
- builder
-
destination
public OrganizationSinkState.Builder destination(@Nullable com.pulumi.core.Output<java.lang.String> destination)
- Parameters:
destination
- The destination of the sink (or, in other words, where logs are written to). Can be a Cloud Storage bucket, a PubSub topic, a BigQuery dataset or a Cloud Logging bucket. Examples: - `storage.googleapis.com/[GCS_BUCKET]` - `bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]` - `pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]` - `logging.googleapis.com/projects/[PROJECT_ID]]/locations/global/buckets/[BUCKET_ID]` The writer associated with the sink must have access to write to the above resource.- Returns:
- builder
-
destination
public OrganizationSinkState.Builder destination(java.lang.String destination)
- Parameters:
destination
- The destination of the sink (or, in other words, where logs are written to). Can be a Cloud Storage bucket, a PubSub topic, a BigQuery dataset or a Cloud Logging bucket. Examples: - `storage.googleapis.com/[GCS_BUCKET]` - `bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]` - `pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]` - `logging.googleapis.com/projects/[PROJECT_ID]]/locations/global/buckets/[BUCKET_ID]` The writer associated with the sink must have access to write to the above resource.- Returns:
- builder
-
disabled
public OrganizationSinkState.Builder disabled(@Nullable com.pulumi.core.Output<java.lang.Boolean> disabled)
- Parameters:
disabled
- If set to True, then this sink is disabled and it does not export any log entries.- Returns:
- builder
-
disabled
public OrganizationSinkState.Builder disabled(java.lang.Boolean disabled)
- Parameters:
disabled
- If set to True, then this sink is disabled and it does not export any log entries.- Returns:
- builder
-
exclusions
public OrganizationSinkState.Builder exclusions(@Nullable com.pulumi.core.Output<java.util.List<OrganizationSinkExclusionArgs>> exclusions)
- Parameters:
exclusions
- Log entries that match any of the exclusion filters will not be exported. If a log entry is matched by both `filter` and one of `exclusions.filter`, it will not be exported. Can be repeated multiple times for multiple exclusions. Structure is documented below.- Returns:
- builder
-
exclusions
public OrganizationSinkState.Builder exclusions(java.util.List<OrganizationSinkExclusionArgs> exclusions)
- Parameters:
exclusions
- Log entries that match any of the exclusion filters will not be exported. If a log entry is matched by both `filter` and one of `exclusions.filter`, it will not be exported. Can be repeated multiple times for multiple exclusions. Structure is documented below.- Returns:
- builder
-
exclusions
public OrganizationSinkState.Builder exclusions(OrganizationSinkExclusionArgs... exclusions)
- Parameters:
exclusions
- Log entries that match any of the exclusion filters will not be exported. If a log entry is matched by both `filter` and one of `exclusions.filter`, it will not be exported. Can be repeated multiple times for multiple exclusions. Structure is documented below.- Returns:
- builder
-
filter
public OrganizationSinkState.Builder filter(@Nullable com.pulumi.core.Output<java.lang.String> filter)
- Parameters:
filter
- The filter to apply when exporting logs. Only log entries that match the filter are exported. See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to write a filter.- Returns:
- builder
-
filter
public OrganizationSinkState.Builder filter(java.lang.String filter)
- Parameters:
filter
- The filter to apply when exporting logs. Only log entries that match the filter are exported. See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to write a filter.- Returns:
- builder
-
includeChildren
public OrganizationSinkState.Builder includeChildren(@Nullable com.pulumi.core.Output<java.lang.Boolean> includeChildren)
- Parameters:
includeChildren
- Whether or not to include children organizations in the sink export. If true, logs associated with child projects are also exported; otherwise only logs relating to the provided organization are included.- Returns:
- builder
-
includeChildren
public OrganizationSinkState.Builder includeChildren(java.lang.Boolean includeChildren)
- Parameters:
includeChildren
- Whether or not to include children organizations in the sink export. If true, logs associated with child projects are also exported; otherwise only logs relating to the provided organization are included.- Returns:
- builder
-
name
public OrganizationSinkState.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name
- The name of the logging sink.- Returns:
- builder
-
name
public OrganizationSinkState.Builder name(java.lang.String name)
- Parameters:
name
- The name of the logging sink.- Returns:
- builder
-
orgId
public OrganizationSinkState.Builder orgId(@Nullable com.pulumi.core.Output<java.lang.String> orgId)
- Parameters:
orgId
- The numeric ID of the organization to be exported to the sink.- Returns:
- builder
-
orgId
public OrganizationSinkState.Builder orgId(java.lang.String orgId)
- Parameters:
orgId
- The numeric ID of the organization to be exported to the sink.- Returns:
- builder
-
writerIdentity
public OrganizationSinkState.Builder writerIdentity(@Nullable com.pulumi.core.Output<java.lang.String> writerIdentity)
- Parameters:
writerIdentity
- The identity associated with this sink. This identity must be granted write access to the configured `destination`.- Returns:
- builder
-
writerIdentity
public OrganizationSinkState.Builder writerIdentity(java.lang.String writerIdentity)
- Parameters:
writerIdentity
- The identity associated with this sink. This identity must be granted write access to the configured `destination`.- Returns:
- builder
-
build
public OrganizationSinkState build()
-
-