V2ProjectSccBigQueryExport class

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. Without doing so, you may run into errors during resource creation.

To get more information about ProjectSccBigQueryExport, see:

Example Usage

Scc V2 Project Big Query Export Config Basic

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const _default = new gcp.bigquery.Dataset("default", {
    datasetId: "my_dataset_id",
    friendlyName: "test",
    description: "This is a test description",
    location: "US",
    defaultTableExpirationMs: 3600000,
    defaultPartitionExpirationMs: null,
    labels: {
        env: "default",
    },
});
const customBigQueryExportConfig = new gcp.securitycenter.V2ProjectSccBigQueryExport("custom_big_query_export_config", {
    name: "my-export",
    bigQueryExportId: "my-export",
    project: "my-project-name",
    dataset: _default.id,
    location: "global",
    description: "Cloud Security Command Center Findings Big Query Export Config",
    filter: "state=\"ACTIVE\" AND NOT mute=\"MUTED\"",
});
import pulumi
import pulumi_gcp as gcp

default = gcp.bigquery.Dataset("default",
    dataset_id="my_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.V2ProjectSccBigQueryExport("custom_big_query_export_config",
    name="my-export",
    big_query_export_id="my-export",
    project="my-project-name",
    dataset=default.id,
    location="global",
    description="Cloud Security Command Center Findings Big Query Export Config",
    filter="state=\"ACTIVE\" AND NOT mute=\"MUTED\"")
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 = "my_dataset_id",
        FriendlyName = "test",
        Description = "This is a test description",
        Location = "US",
        DefaultTableExpirationMs = 3600000,
        DefaultPartitionExpirationMs = null,
        Labels =
        {
            { "env", "default" },
        },
    });

    var customBigQueryExportConfig = new Gcp.SecurityCenter.V2ProjectSccBigQueryExport("custom_big_query_export_config", new()
    {
        Name = "my-export",
        BigQueryExportId = "my-export",
        Project = "my-project-name",
        Dataset = @default.Id,
        Location = "global",
        Description = "Cloud Security Command Center Findings Big Query Export Config",
        Filter = "state=\"ACTIVE\" AND NOT mute=\"MUTED\"",
    });

});
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/bigquery"
	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/securitycenter"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := bigquery.NewDataset(ctx, "default", &bigquery.DatasetArgs{
			DatasetId:                    pulumi.String("my_dataset_id"),
			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.NewV2ProjectSccBigQueryExport(ctx, "custom_big_query_export_config", &securitycenter.V2ProjectSccBigQueryExportArgs{
			Name:             "my-export",
			BigQueryExportId: pulumi.String("my-export"),
			Project:          pulumi.String("my-project-name"),
			Dataset:          _default.ID().ToIDOutput().ToStringOutput(),
			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
	})
}
pulumi {
  required_providers {
    gcp = {
      source = "pulumi/gcp"
    }
  }
}

resource "gcp_bigquery_dataset" "default" {
  dataset_id                      = "my_dataset_id"
  friendly_name                   = "test"
  description                     = "This is a test description"
  location                        = "US"
  default_table_expiration_ms     = 3600000
  default_partition_expiration_ms = null
  labels = {
    "env" = "default"
  }
}
resource "gcp_securitycenter_v2projectsccbigqueryexport" "custom_big_query_export_config" {
  name                = "my-export"
  big_query_export_id = "my-export"
  project             = "my-project-name"
  dataset             = gcp_bigquery_dataset.default.id
  location            = "global"
  description         = "Cloud Security Command Center Findings Big Query Export Config"
  filter              = "state=\"ACTIVE\" AND NOT mute=\"MUTED\""
}
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.V2ProjectSccBigQueryExport;
import com.pulumi.gcp.securitycenter.V2ProjectSccBigQueryExportArgs;
import java.util.ArrayList;
import java.util.Arrays;
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("my_dataset_id")
            .friendlyName("test")
            .description("This is a test description")
            .location("US")
            .defaultTableExpirationMs(3600000)
            .defaultPartitionExpirationMs(null)
            .labels(Map.of("env", "default"))
            .build());

        var customBigQueryExportConfig = new V2ProjectSccBigQueryExport("customBigQueryExportConfig", V2ProjectSccBigQueryExportArgs.builder()
            .name("my-export")
            .bigQueryExportId("my-export")
            .project("my-project-name")
            .dataset(default_.id())
            .location("global")
            .description("Cloud Security Command Center Findings Big Query Export Config")
            .filter("state=\"ACTIVE\" AND NOT mute=\"MUTED\"")
            .build());

    }
}
resources:
  default:
    type: gcp:bigquery:Dataset
    properties:
      datasetId: my_dataset_id
      friendlyName: test
      description: This is a test description
      location: US
      defaultTableExpirationMs: 3.6e+06
      defaultPartitionExpirationMs: null
      labels:
        env: default
  customBigQueryExportConfig:
    type: gcp:securitycenter:V2ProjectSccBigQueryExport
    name: custom_big_query_export_config
    properties:
      name: my-export
      bigQueryExportId: my-export
      project: my-project-name
      dataset: ${default.id}
      location: global
      description: Cloud Security Command Center Findings Big Query Export Config
      filter: state="ACTIVE" AND NOT mute="MUTED"

Import

ProjectSccBigQueryExport can be imported using any of these accepted formats:

  • projects/{{project}}/locations/{{location}}/bigQueryExports/{{big_query_export_id}}
  • {{project}}/{{location}}/{{big_query_export_id}}
  • {{location}}/{{big_query_export_id}}

When using the pulumi import command, ProjectSccBigQueryExport can be imported using one of the formats above. For example:

$ pulumi import gcp:securitycenter/v2ProjectSccBigQueryExport:V2ProjectSccBigQueryExport default projects/{{project}}/locations/{{location}}/bigQueryExports/{{big_query_export_id}}
$ pulumi import gcp:securitycenter/v2ProjectSccBigQueryExport:V2ProjectSccBigQueryExport default {{project}}/{{location}}/{{big_query_export_id}}
$ pulumi import gcp:securitycenter/v2ProjectSccBigQueryExport:V2ProjectSccBigQueryExport default {{location}}/{{big_query_export_id}}

Constructors

V2ProjectSccBigQueryExport(String name, {V2ProjectSccBigQueryExportArgs? args, CustomResourceOptions? options})
Creates a new V2ProjectSccBigQueryExport. name The Pulumi resource name. args Arguments used to configure this V2ProjectSccBigQueryExport. The set of arguments for V2ProjectSccBigQueryExport. options Resource options controlling this resource's behavior.
V2ProjectSccBigQueryExport.reference(String urn)
Creates a typed reference to an existing V2ProjectSccBigQueryExport resource.

Properties

bigQueryExportId ↔ Output<String>
This must be unique within the organization.
latefinal
childResources → Set<Resource>
finalinherited
completionSources ↔ Map<String, IOutputCompletionSource>
latefinalinherited
createTime ↔ Output<String>
The time at which the BigQuery export was created. This field is set by the server and will be ignored if provided on export on creation. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
latefinal
dataset ↔ Output<String?>
The dataset to write findings' updates to. Its format is "projects/projectId/datasets/bigqueryDatasetId". BigQuery Dataset unique ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
latefinal
deletionPolicy ↔ Output<String>
Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
latefinal
description ↔ Output<String?>
The description of the notification config (max of 1024 characters).
latefinal
filter ↔ Output<String?>
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 <field> <operator> <value> 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:
latefinal
hashCode → int
The hash code for this object.
no setterinherited
id ↔ Output<String>
getter/setter pairinherited
isCustom → bool
Returns whether this resource is provider-managed.
no setterinherited
isProtected → bool
Returns whether this resource is protected from deletion.
no setterinherited
isRemote → bool
Whether this resource is registered as remote.
no setterinherited
isResourceReference → bool
Whether this instance represents a resource value returned over RPC.
finalinherited
location ↔ Output<String?>
location Id is provided by organization. If not provided, Use global as default.
latefinal
mostRecentEditor ↔ Output<String>
Email address of the user who last edited the BigQuery export. This field is set by the server and will be ignored if provided on export creation or update.
latefinal
name ↔ Output<String>
The resource name of this export, in the format projects/{{project}}/locations/{{location}}/bigQueryExports/{{big_query_export_id}}. This field is provided in responses, and is ignored when provided in create requests.
latefinal
principal ↔ Output<String>
The service account that needs permission to create table and upload data to the BigQuery dataset.
latefinal
project ↔ Output<String>
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
latefinal
resourceTransforms → List<ResourceTransform>
Inherited/explicit async transforms.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transformations → List<ResourceTransformation>
Inherited/explicit legacy transformations.
no setterinherited
updateTime ↔ Output<String>
The most recent time at which the BigQuery export was updated. This field is set by the server and will be ignored if provided on export creation or update. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
latefinal
urn ↔ Output<String>
latefinalinherited

Methods

failId(Object error) → void
Completes this resource ID with an error when registration fails.
inherited
failOutputs(Object error) → void
Completes all output properties with error.
inherited
failUrn(Object error) → void
Completes this resource URN with an error when registration fails.
inherited
getProvider(String moduleMember) → ProviderResource?
Returns provider for moduleMember's package, if configured.
inherited
getResourceName() → String
Returns this resource's logical name.
inherited
getResourceType() → String
Returns this resource's Pulumi type token.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerOutput<T>(String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output<T>
Registers a dynamic output property for this resource.
inherited
resolveId(String? value, {required bool isKnown}) → void
Resolves the provider-assigned ID for this resource.
inherited
resolveOutputs(Struct outputs) → void
Resolves all output properties from a monitor response payload.
inherited
resolveUrn(String value) → void
Resolves this resource's URN once assigned by the engine.
inherited
serializeProperties(Map<String, dynamic> properties) → Future<Struct>
Serializes resource properties for RPC transmission.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

get(String name, Input<String> id, {V2ProjectSccBigQueryExportState? state, CustomResourceOptions? options}) → V2ProjectSccBigQueryExport
Gets an existing V2ProjectSccBigQueryExport resource's state with the given name and id.