All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.securitycenter.kotlin.V2OrganizationSccBigQueryExportArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.securitycenter.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.securitycenter.V2OrganizationSccBigQueryExportArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A Cloud Security Command Center (Cloud SCC) Big Query Export Config.
 * It represents exporting Security Command Center data, including assets, findings, and security marks
 * using gcloud scc bqexports
 * > **Note:** In order to use Cloud SCC resources, your organization must be enrolled
 * in [SCC Standard/Premium](https://cloud.google.com/security-command-center/docs/quickstart-security-command-center).
 * Without doing so, you may run into errors during resource creation.
 * To get more information about OrganizationSccBigQueryExport, see:
 * * [API documentation](https://cloud.google.com/security-command-center/docs/reference/rest/v2/organizations.locations.bigQueryExports)
 * * How-to Guides
 *     * [Official Documentation](https://cloud.google.com/security-command-center/docs/how-to-analyze-findings-in-big-query)
 * ## Example Usage
 * ### Scc V2 Organization Big Query Export Config Basic
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const _default = new gcp.bigquery.Dataset("default", {
 *     datasetId: "",
 *     friendlyName: "test",
 *     description: "This is a test description",
 *     location: "US",
 *     defaultTableExpirationMs: 3600000,
 *     defaultPartitionExpirationMs: undefined,
 *     labels: {
 *         env: "default",
 *     },
 * });
 * const customBigQueryExportConfig = new gcp.securitycenter.V2OrganizationSccBigQueryExport("custom_big_query_export_config", {
 *     name: "my-export",
 *     bigQueryExportId: "my-export",
 *     organization: "123456789",
 *     dataset: _default.id,
 *     location: "global",
 *     description: "Cloud Security Command Center Findings Big Query Export Config",
 *     filter: "state=\"ACTIVE\" AND NOT mute=\"MUTED\"",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * default = gcp.bigquery.Dataset("default",
 *     dataset_id="",
 *     friendly_name="test",
 *     description="This is a test description",
 *     location="US",
 *     default_table_expiration_ms=3600000,
 *     default_partition_expiration_ms=None,
 *     labels={
 *         "env": "default",
 *     })
 * custom_big_query_export_config = gcp.securitycenter.V2OrganizationSccBigQueryExport("custom_big_query_export_config",
 *     name="my-export",
 *     big_query_export_id="my-export",
 *     organization="123456789",
 *     dataset=default.id,
 *     location="global",
 *     description="Cloud Security Command Center Findings Big Query Export Config",
 *     filter="state=\"ACTIVE\" AND NOT mute=\"MUTED\"")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var @default = new Gcp.BigQuery.Dataset("default", new()
 *     {
 *         DatasetId = "",
 *         FriendlyName = "test",
 *         Description = "This is a test description",
 *         Location = "US",
 *         DefaultTableExpirationMs = 3600000,
 *         DefaultPartitionExpirationMs = null,
 *         Labels =
 *         {
 *             { "env", "default" },
 *         },
 *     });
 *     var customBigQueryExportConfig = new Gcp.SecurityCenter.V2OrganizationSccBigQueryExport("custom_big_query_export_config", new()
 *     {
 *         Name = "my-export",
 *         BigQueryExportId = "my-export",
 *         Organization = "123456789",
 *         Dataset = @default.Id,
 *         Location = "global",
 *         Description = "Cloud Security Command Center Findings Big Query Export Config",
 *         Filter = "state=\"ACTIVE\" AND NOT mute=\"MUTED\"",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/bigquery"
 * 	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/securitycenter"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := bigquery.NewDataset(ctx, "default", &bigquery.DatasetArgs{
 * 			DatasetId:                    pulumi.String(""),
 * 			FriendlyName:                 pulumi.String("test"),
 * 			Description:                  pulumi.String("This is a test description"),
 * 			Location:                     pulumi.String("US"),
 * 			DefaultTableExpirationMs:     pulumi.Int(3600000),
 * 			DefaultPartitionExpirationMs: nil,
 * 			Labels: pulumi.StringMap{
 * 				"env": pulumi.String("default"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = securitycenter.NewV2OrganizationSccBigQueryExport(ctx, "custom_big_query_export_config", &securitycenter.V2OrganizationSccBigQueryExportArgs{
 * 			Name:             pulumi.String("my-export"),
 * 			BigQueryExportId: pulumi.String("my-export"),
 * 			Organization:     pulumi.String("123456789"),
 * 			Dataset:          _default.ID(),
 * 			Location:         pulumi.String("global"),
 * 			Description:      pulumi.String("Cloud Security Command Center Findings Big Query Export Config"),
 * 			Filter:           pulumi.String("state=\"ACTIVE\" AND NOT mute=\"MUTED\""),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.gcp.bigquery.Dataset;
 * import com.pulumi.gcp.bigquery.DatasetArgs;
 * import com.pulumi.gcp.securitycenter.V2OrganizationSccBigQueryExport;
 * import com.pulumi.gcp.securitycenter.V2OrganizationSccBigQueryExportArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var default_ = new Dataset("default", DatasetArgs.builder()
 *             .datasetId("")
 *             .friendlyName("test")
 *             .description("This is a test description")
 *             .location("US")
 *             .defaultTableExpirationMs(3600000)
 *             .defaultPartitionExpirationMs(null)
 *             .labels(Map.of("env", "default"))
 *             .build());
 *         var customBigQueryExportConfig = new V2OrganizationSccBigQueryExport("customBigQueryExportConfig", V2OrganizationSccBigQueryExportArgs.builder()
 *             .name("my-export")
 *             .bigQueryExportId("my-export")
 *             .organization("123456789")
 *             .dataset(default_.id())
 *             .location("global")
 *             .description("Cloud Security Command Center Findings Big Query Export Config")
 *             .filter("state=\"ACTIVE\" AND NOT mute=\"MUTED\"")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   default:
 *     type: gcp:bigquery:Dataset
 *     properties:
 *       datasetId: ""
 *       friendlyName: test
 *       description: This is a test description
 *       location: US
 *       defaultTableExpirationMs: 3.6e+06
 *       defaultPartitionExpirationMs: null
 *       labels:
 *         env: default
 *   customBigQueryExportConfig:
 *     type: gcp:securitycenter:V2OrganizationSccBigQueryExport
 *     name: custom_big_query_export_config
 *     properties:
 *       name: my-export
 *       bigQueryExportId: my-export
 *       organization: '123456789'
 *       dataset: ${default.id}
 *       location: global
 *       description: Cloud Security Command Center Findings Big Query Export Config
 *       filter: state="ACTIVE" AND NOT mute="MUTED"
 * ```
 * 
 * ## Import
 * OrganizationSccBigQueryExport can be imported using any of these accepted formats:
 * * `organizations/{{organization}}/locations/{{location}}/bigQueryExports/{{big_query_export_id}}`
 * * `{{organization}}/{{location}}/{{big_query_export_id}}`
 * When using the `pulumi import` command, OrganizationSccBigQueryExport can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:securitycenter/v2OrganizationSccBigQueryExport:V2OrganizationSccBigQueryExport default organizations/{{organization}}/locations/{{location}}/bigQueryExports/{{big_query_export_id}}
 * ```
 * ```sh
 * $ pulumi import gcp:securitycenter/v2OrganizationSccBigQueryExport:V2OrganizationSccBigQueryExport default {{organization}}/{{location}}/{{big_query_export_id}}
 * ```
 * @property bigQueryExportId This must be unique within the organization.
 * - - -
 * @property dataset The dataset to write findings' updates to.
 * Its format is "projects/[projectId]/datasets/[bigquery_dataset_id]".
 * BigQuery Dataset unique ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
 * @property description The description of the notification config (max of 1024 characters).
 * @property filter Expression that defines the filter to apply across create/update
 * events of findings. The
 * expression is a list of zero or more restrictions combined via
 * logical operators AND and OR. Parentheses are supported, and OR
 * has higher precedence than AND.
 * Restrictions have the form    and may have
 * a - character in front of them to indicate negation. The fields
 * map to those defined in the corresponding resource.
 * The supported operators are:
 * * = for all value types.
 * * >, <, >=, <= for integer values.
 * * :, meaning substring matching, for strings.
 * The supported value types are:
 * * string literals in quotes.
 * * integer literals without quotes.
 * * boolean literals true and false without quotes.
 * See
 * [Filtering notifications](https://cloud.google.com/security-command-center/docs/how-to-api-filter-notifications)
 * for information on how to write a filter.
 * @property location location Id is provided by organization. If not provided, Use global as default.
 * @property name The resource name of this export, in the format
 * `organizations/{{organization}}/locations/{{location}}/bigQueryExports/{{big_query_export_id}}`.
 * This field is provided in responses, and is ignored when provided in create requests.
 * @property organization The organization whose Cloud Security Command Center the Big Query Export
 * Config lives in.
 */
public data class V2OrganizationSccBigQueryExportArgs(
    public val bigQueryExportId: Output? = null,
    public val dataset: Output? = null,
    public val description: Output? = null,
    public val filter: Output? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val organization: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.securitycenter.V2OrganizationSccBigQueryExportArgs =
        com.pulumi.gcp.securitycenter.V2OrganizationSccBigQueryExportArgs.builder()
            .bigQueryExportId(bigQueryExportId?.applyValue({ args0 -> args0 }))
            .dataset(dataset?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .filter(filter?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .organization(organization?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [V2OrganizationSccBigQueryExportArgs].
 */
@PulumiTagMarker
public class V2OrganizationSccBigQueryExportArgsBuilder internal constructor() {
    private var bigQueryExportId: Output? = null

    private var dataset: Output? = null

    private var description: Output? = null

    private var filter: Output? = null

    private var location: Output? = null

    private var name: Output? = null

    private var organization: Output? = null

    /**
     * @param value This must be unique within the organization.
     * - - -
     */
    @JvmName("otavnitrkhmfvepd")
    public suspend fun bigQueryExportId(`value`: Output) {
        this.bigQueryExportId = value
    }

    /**
     * @param value The dataset to write findings' updates to.
     * Its format is "projects/[projectId]/datasets/[bigquery_dataset_id]".
     * BigQuery Dataset unique ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
     */
    @JvmName("wfuuslebcfcjakso")
    public suspend fun dataset(`value`: Output) {
        this.dataset = value
    }

    /**
     * @param value The description of the notification config (max of 1024 characters).
     */
    @JvmName("whntomymwvkchrdr")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Expression that defines the filter to apply across create/update
     * events of findings. The
     * expression is a list of zero or more restrictions combined via
     * logical operators AND and OR. Parentheses are supported, and OR
     * has higher precedence than AND.
     * Restrictions have the form    and may have
     * a - character in front of them to indicate negation. The fields
     * map to those defined in the corresponding resource.
     * The supported operators are:
     * * = for all value types.
     * * >, <, >=, <= for integer values.
     * * :, meaning substring matching, for strings.
     * The supported value types are:
     * * string literals in quotes.
     * * integer literals without quotes.
     * * boolean literals true and false without quotes.
     * See
     * [Filtering notifications](https://cloud.google.com/security-command-center/docs/how-to-api-filter-notifications)
     * for information on how to write a filter.
     */
    @JvmName("ktqimvoailfqcqge")
    public suspend fun filter(`value`: Output) {
        this.filter = value
    }

    /**
     * @param value location Id is provided by organization. If not provided, Use global as default.
     */
    @JvmName("txkphjulykmkbmdm")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The resource name of this export, in the format
     * `organizations/{{organization}}/locations/{{location}}/bigQueryExports/{{big_query_export_id}}`.
     * This field is provided in responses, and is ignored when provided in create requests.
     */
    @JvmName("scybccgtcctnrglk")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The organization whose Cloud Security Command Center the Big Query Export
     * Config lives in.
     */
    @JvmName("gyrxwhnnelrpfhrs")
    public suspend fun organization(`value`: Output) {
        this.organization = value
    }

    /**
     * @param value This must be unique within the organization.
     * - - -
     */
    @JvmName("vjtblyunuvjulfsc")
    public suspend fun bigQueryExportId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bigQueryExportId = mapped
    }

    /**
     * @param value The dataset to write findings' updates to.
     * Its format is "projects/[projectId]/datasets/[bigquery_dataset_id]".
     * BigQuery Dataset unique ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
     */
    @JvmName("ymiiiecqhhqusnbs")
    public suspend fun dataset(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataset = mapped
    }

    /**
     * @param value The description of the notification config (max of 1024 characters).
     */
    @JvmName("jcyopgdtqdhavvtn")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Expression that defines the filter to apply across create/update
     * events of findings. The
     * expression is a list of zero or more restrictions combined via
     * logical operators AND and OR. Parentheses are supported, and OR
     * has higher precedence than AND.
     * Restrictions have the form    and may have
     * a - character in front of them to indicate negation. The fields
     * map to those defined in the corresponding resource.
     * The supported operators are:
     * * = for all value types.
     * * >, <, >=, <= for integer values.
     * * :, meaning substring matching, for strings.
     * The supported value types are:
     * * string literals in quotes.
     * * integer literals without quotes.
     * * boolean literals true and false without quotes.
     * See
     * [Filtering notifications](https://cloud.google.com/security-command-center/docs/how-to-api-filter-notifications)
     * for information on how to write a filter.
     */
    @JvmName("qstolrlpyycyijkr")
    public suspend fun filter(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filter = mapped
    }

    /**
     * @param value location Id is provided by organization. If not provided, Use global as default.
     */
    @JvmName("tgrtydqfblryodgn")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The resource name of this export, in the format
     * `organizations/{{organization}}/locations/{{location}}/bigQueryExports/{{big_query_export_id}}`.
     * This field is provided in responses, and is ignored when provided in create requests.
     */
    @JvmName("omauouxpwuexhjhb")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The organization whose Cloud Security Command Center the Big Query Export
     * Config lives in.
     */
    @JvmName("glqnuijrxasixbmm")
    public suspend fun organization(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.organization = mapped
    }

    internal fun build(): V2OrganizationSccBigQueryExportArgs = V2OrganizationSccBigQueryExportArgs(
        bigQueryExportId = bigQueryExportId,
        dataset = dataset,
        description = description,
        filter = filter,
        location = location,
        name = name,
        organization = organization,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy