UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

139 lines 7.08 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.V2OrganizationSccBigQueryExports = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * > **Warning:** `gcp.securitycenter.V2OrganizationSccBigQueryExports` is deprecated and will be removed in a future major release. Use `gcp.securitycenter.V2OrganizationSccBigQueryExport` instead. * * 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 OrganizationSccBigQueryExports, 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 Exports 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.V2OrganizationSccBigQueryExports("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\"", * }); * ``` * * ## Import * * OrganizationSccBigQueryExports 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, OrganizationSccBigQueryExports can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:securitycenter/v2OrganizationSccBigQueryExports:V2OrganizationSccBigQueryExports default organizations/{{organization}}/locations/{{location}}/bigQueryExports/{{big_query_export_id}} * ``` * * ```sh * $ pulumi import gcp:securitycenter/v2OrganizationSccBigQueryExports:V2OrganizationSccBigQueryExports default {{organization}}/{{location}}/{{big_query_export_id}} * ``` */ class V2OrganizationSccBigQueryExports extends pulumi.CustomResource { /** * Get an existing V2OrganizationSccBigQueryExports resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new V2OrganizationSccBigQueryExports(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of V2OrganizationSccBigQueryExports. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === V2OrganizationSccBigQueryExports.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["bigQueryExportId"] = state ? state.bigQueryExportId : undefined; resourceInputs["createTime"] = state ? state.createTime : undefined; resourceInputs["dataset"] = state ? state.dataset : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["filter"] = state ? state.filter : undefined; resourceInputs["location"] = state ? state.location : undefined; resourceInputs["mostRecentEditor"] = state ? state.mostRecentEditor : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["organization"] = state ? state.organization : undefined; resourceInputs["principal"] = state ? state.principal : undefined; resourceInputs["updateTime"] = state ? state.updateTime : undefined; } else { const args = argsOrState; if ((!args || args.bigQueryExportId === undefined) && !opts.urn) { throw new Error("Missing required property 'bigQueryExportId'"); } if ((!args || args.organization === undefined) && !opts.urn) { throw new Error("Missing required property 'organization'"); } resourceInputs["bigQueryExportId"] = args ? args.bigQueryExportId : undefined; resourceInputs["dataset"] = args ? args.dataset : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["filter"] = args ? args.filter : undefined; resourceInputs["location"] = args ? args.location : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["organization"] = args ? args.organization : undefined; resourceInputs["createTime"] = undefined /*out*/; resourceInputs["mostRecentEditor"] = undefined /*out*/; resourceInputs["principal"] = undefined /*out*/; resourceInputs["updateTime"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(V2OrganizationSccBigQueryExports.__pulumiType, name, resourceInputs, opts); } } exports.V2OrganizationSccBigQueryExports = V2OrganizationSccBigQueryExports; /** @internal */ V2OrganizationSccBigQueryExports.__pulumiType = 'gcp:securitycenter/v2OrganizationSccBigQueryExports:V2OrganizationSccBigQueryExports'; //# sourceMappingURL=v2organizationSccBigQueryExports.js.map