gcp.storage.InsightsDatasetConfig
Explore with Pulumi AI
Represents a Storage Insights DatasetConfig.
To get more information about DatasetConfig, see:
- API documentation
- How-to Guides
Example Usage
Storage Insights Dataset Config Includes
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const configIncludes = new gcp.storage.InsightsDatasetConfig("config_includes", {
location: "us-central1",
datasetConfigId: "my_config_includes",
retentionPeriodDays: 1,
sourceProjects: {
projectNumbers: [
"123",
"456",
"789",
],
},
identity: {
type: "IDENTITY_TYPE_PER_CONFIG",
},
description: "Sample Description",
linkDataset: false,
includeNewlyCreatedBuckets: true,
includeCloudStorageLocations: {
locations: ["us-east1"],
},
includeCloudStorageBuckets: {
cloudStorageBuckets: [
{
bucketName: "sample-bucket",
},
{
bucketName: "sample-regex",
},
],
},
});
import pulumi
import pulumi_gcp as gcp
config_includes = gcp.storage.InsightsDatasetConfig("config_includes",
location="us-central1",
dataset_config_id="my_config_includes",
retention_period_days=1,
source_projects={
"project_numbers": [
"123",
"456",
"789",
],
},
identity={
"type": "IDENTITY_TYPE_PER_CONFIG",
},
description="Sample Description",
link_dataset=False,
include_newly_created_buckets=True,
include_cloud_storage_locations={
"locations": ["us-east1"],
},
include_cloud_storage_buckets={
"cloud_storage_buckets": [
{
"bucket_name": "sample-bucket",
},
{
"bucket_name": "sample-regex",
},
],
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storage.NewInsightsDatasetConfig(ctx, "config_includes", &storage.InsightsDatasetConfigArgs{
Location: pulumi.String("us-central1"),
DatasetConfigId: pulumi.String("my_config_includes"),
RetentionPeriodDays: pulumi.Int(1),
SourceProjects: &storage.InsightsDatasetConfigSourceProjectsArgs{
ProjectNumbers: pulumi.StringArray{
pulumi.String("123"),
pulumi.String("456"),
pulumi.String("789"),
},
},
Identity: &storage.InsightsDatasetConfigIdentityArgs{
Type: pulumi.String("IDENTITY_TYPE_PER_CONFIG"),
},
Description: pulumi.String("Sample Description"),
LinkDataset: pulumi.Bool(false),
IncludeNewlyCreatedBuckets: pulumi.Bool(true),
IncludeCloudStorageLocations: &storage.InsightsDatasetConfigIncludeCloudStorageLocationsArgs{
Locations: pulumi.StringArray{
pulumi.String("us-east1"),
},
},
IncludeCloudStorageBuckets: &storage.InsightsDatasetConfigIncludeCloudStorageBucketsArgs{
CloudStorageBuckets: storage.InsightsDatasetConfigIncludeCloudStorageBucketsCloudStorageBucketArray{
&storage.InsightsDatasetConfigIncludeCloudStorageBucketsCloudStorageBucketArgs{
BucketName: pulumi.String("sample-bucket"),
},
&storage.InsightsDatasetConfigIncludeCloudStorageBucketsCloudStorageBucketArgs{
BucketName: pulumi.String("sample-regex"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var configIncludes = new Gcp.Storage.InsightsDatasetConfig("config_includes", new()
{
Location = "us-central1",
DatasetConfigId = "my_config_includes",
RetentionPeriodDays = 1,
SourceProjects = new Gcp.Storage.Inputs.InsightsDatasetConfigSourceProjectsArgs
{
ProjectNumbers = new[]
{
"123",
"456",
"789",
},
},
Identity = new Gcp.Storage.Inputs.InsightsDatasetConfigIdentityArgs
{
Type = "IDENTITY_TYPE_PER_CONFIG",
},
Description = "Sample Description",
LinkDataset = false,
IncludeNewlyCreatedBuckets = true,
IncludeCloudStorageLocations = new Gcp.Storage.Inputs.InsightsDatasetConfigIncludeCloudStorageLocationsArgs
{
Locations = new[]
{
"us-east1",
},
},
IncludeCloudStorageBuckets = new Gcp.Storage.Inputs.InsightsDatasetConfigIncludeCloudStorageBucketsArgs
{
CloudStorageBuckets = new[]
{
new Gcp.Storage.Inputs.InsightsDatasetConfigIncludeCloudStorageBucketsCloudStorageBucketArgs
{
BucketName = "sample-bucket",
},
new Gcp.Storage.Inputs.InsightsDatasetConfigIncludeCloudStorageBucketsCloudStorageBucketArgs
{
BucketName = "sample-regex",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.storage.InsightsDatasetConfig;
import com.pulumi.gcp.storage.InsightsDatasetConfigArgs;
import com.pulumi.gcp.storage.inputs.InsightsDatasetConfigSourceProjectsArgs;
import com.pulumi.gcp.storage.inputs.InsightsDatasetConfigIdentityArgs;
import com.pulumi.gcp.storage.inputs.InsightsDatasetConfigIncludeCloudStorageLocationsArgs;
import com.pulumi.gcp.storage.inputs.InsightsDatasetConfigIncludeCloudStorageBucketsArgs;
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 configIncludes = new InsightsDatasetConfig("configIncludes", InsightsDatasetConfigArgs.builder()
.location("us-central1")
.datasetConfigId("my_config_includes")
.retentionPeriodDays(1)
.sourceProjects(InsightsDatasetConfigSourceProjectsArgs.builder()
.projectNumbers(
"123",
"456",
"789")
.build())
.identity(InsightsDatasetConfigIdentityArgs.builder()
.type("IDENTITY_TYPE_PER_CONFIG")
.build())
.description("Sample Description")
.linkDataset(false)
.includeNewlyCreatedBuckets(true)
.includeCloudStorageLocations(InsightsDatasetConfigIncludeCloudStorageLocationsArgs.builder()
.locations("us-east1")
.build())
.includeCloudStorageBuckets(InsightsDatasetConfigIncludeCloudStorageBucketsArgs.builder()
.cloudStorageBuckets(
InsightsDatasetConfigIncludeCloudStorageBucketsCloudStorageBucketArgs.builder()
.bucketName("sample-bucket")
.build(),
InsightsDatasetConfigIncludeCloudStorageBucketsCloudStorageBucketArgs.builder()
.bucketName("sample-regex")
.build())
.build())
.build());
}
}
resources:
configIncludes:
type: gcp:storage:InsightsDatasetConfig
name: config_includes
properties:
location: us-central1
datasetConfigId: my_config_includes
retentionPeriodDays: 1
sourceProjects:
projectNumbers:
- '123'
- '456'
- '789'
identity:
type: IDENTITY_TYPE_PER_CONFIG
description: Sample Description
linkDataset: false
includeNewlyCreatedBuckets: true
includeCloudStorageLocations:
locations:
- us-east1
includeCloudStorageBuckets:
cloudStorageBuckets:
- bucketName: sample-bucket
- bucketName: sample-regex
Storage Insights Dataset Config Excludes
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const configExcludes = new gcp.storage.InsightsDatasetConfig("config_excludes", {
location: "us-central1",
datasetConfigId: "my_config_excludes",
retentionPeriodDays: 1,
organizationScope: true,
identity: {
type: "IDENTITY_TYPE_PER_PROJECT",
},
excludeCloudStorageLocations: {
locations: ["us-east1"],
},
excludeCloudStorageBuckets: {
cloudStorageBuckets: [
{
bucketName: "sample-bucket",
},
{
bucketName: "sample-regex",
},
],
},
});
import pulumi
import pulumi_gcp as gcp
config_excludes = gcp.storage.InsightsDatasetConfig("config_excludes",
location="us-central1",
dataset_config_id="my_config_excludes",
retention_period_days=1,
organization_scope=True,
identity={
"type": "IDENTITY_TYPE_PER_PROJECT",
},
exclude_cloud_storage_locations={
"locations": ["us-east1"],
},
exclude_cloud_storage_buckets={
"cloud_storage_buckets": [
{
"bucket_name": "sample-bucket",
},
{
"bucket_name": "sample-regex",
},
],
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storage.NewInsightsDatasetConfig(ctx, "config_excludes", &storage.InsightsDatasetConfigArgs{
Location: pulumi.String("us-central1"),
DatasetConfigId: pulumi.String("my_config_excludes"),
RetentionPeriodDays: pulumi.Int(1),
OrganizationScope: pulumi.Bool(true),
Identity: &storage.InsightsDatasetConfigIdentityArgs{
Type: pulumi.String("IDENTITY_TYPE_PER_PROJECT"),
},
ExcludeCloudStorageLocations: &storage.InsightsDatasetConfigExcludeCloudStorageLocationsArgs{
Locations: pulumi.StringArray{
pulumi.String("us-east1"),
},
},
ExcludeCloudStorageBuckets: &storage.InsightsDatasetConfigExcludeCloudStorageBucketsArgs{
CloudStorageBuckets: storage.InsightsDatasetConfigExcludeCloudStorageBucketsCloudStorageBucketArray{
&storage.InsightsDatasetConfigExcludeCloudStorageBucketsCloudStorageBucketArgs{
BucketName: pulumi.String("sample-bucket"),
},
&storage.InsightsDatasetConfigExcludeCloudStorageBucketsCloudStorageBucketArgs{
BucketName: pulumi.String("sample-regex"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var configExcludes = new Gcp.Storage.InsightsDatasetConfig("config_excludes", new()
{
Location = "us-central1",
DatasetConfigId = "my_config_excludes",
RetentionPeriodDays = 1,
OrganizationScope = true,
Identity = new Gcp.Storage.Inputs.InsightsDatasetConfigIdentityArgs
{
Type = "IDENTITY_TYPE_PER_PROJECT",
},
ExcludeCloudStorageLocations = new Gcp.Storage.Inputs.InsightsDatasetConfigExcludeCloudStorageLocationsArgs
{
Locations = new[]
{
"us-east1",
},
},
ExcludeCloudStorageBuckets = new Gcp.Storage.Inputs.InsightsDatasetConfigExcludeCloudStorageBucketsArgs
{
CloudStorageBuckets = new[]
{
new Gcp.Storage.Inputs.InsightsDatasetConfigExcludeCloudStorageBucketsCloudStorageBucketArgs
{
BucketName = "sample-bucket",
},
new Gcp.Storage.Inputs.InsightsDatasetConfigExcludeCloudStorageBucketsCloudStorageBucketArgs
{
BucketName = "sample-regex",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.storage.InsightsDatasetConfig;
import com.pulumi.gcp.storage.InsightsDatasetConfigArgs;
import com.pulumi.gcp.storage.inputs.InsightsDatasetConfigIdentityArgs;
import com.pulumi.gcp.storage.inputs.InsightsDatasetConfigExcludeCloudStorageLocationsArgs;
import com.pulumi.gcp.storage.inputs.InsightsDatasetConfigExcludeCloudStorageBucketsArgs;
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 configExcludes = new InsightsDatasetConfig("configExcludes", InsightsDatasetConfigArgs.builder()
.location("us-central1")
.datasetConfigId("my_config_excludes")
.retentionPeriodDays(1)
.organizationScope(true)
.identity(InsightsDatasetConfigIdentityArgs.builder()
.type("IDENTITY_TYPE_PER_PROJECT")
.build())
.excludeCloudStorageLocations(InsightsDatasetConfigExcludeCloudStorageLocationsArgs.builder()
.locations("us-east1")
.build())
.excludeCloudStorageBuckets(InsightsDatasetConfigExcludeCloudStorageBucketsArgs.builder()
.cloudStorageBuckets(
InsightsDatasetConfigExcludeCloudStorageBucketsCloudStorageBucketArgs.builder()
.bucketName("sample-bucket")
.build(),
InsightsDatasetConfigExcludeCloudStorageBucketsCloudStorageBucketArgs.builder()
.bucketName("sample-regex")
.build())
.build())
.build());
}
}
resources:
configExcludes:
type: gcp:storage:InsightsDatasetConfig
name: config_excludes
properties:
location: us-central1
datasetConfigId: my_config_excludes
retentionPeriodDays: 1
organizationScope: true
identity:
type: IDENTITY_TYPE_PER_PROJECT
excludeCloudStorageLocations:
locations:
- us-east1
excludeCloudStorageBuckets:
cloudStorageBuckets:
- bucketName: sample-bucket
- bucketName: sample-regex
Create InsightsDatasetConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InsightsDatasetConfig(name: string, args: InsightsDatasetConfigArgs, opts?: CustomResourceOptions);
@overload
def InsightsDatasetConfig(resource_name: str,
args: InsightsDatasetConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InsightsDatasetConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
identity: Optional[InsightsDatasetConfigIdentityArgs] = None,
retention_period_days: Optional[int] = None,
location: Optional[str] = None,
dataset_config_id: Optional[str] = None,
link_dataset: Optional[bool] = None,
include_cloud_storage_buckets: Optional[InsightsDatasetConfigIncludeCloudStorageBucketsArgs] = None,
include_cloud_storage_locations: Optional[InsightsDatasetConfigIncludeCloudStorageLocationsArgs] = None,
include_newly_created_buckets: Optional[bool] = None,
exclude_cloud_storage_locations: Optional[InsightsDatasetConfigExcludeCloudStorageLocationsArgs] = None,
exclude_cloud_storage_buckets: Optional[InsightsDatasetConfigExcludeCloudStorageBucketsArgs] = None,
organization_number: Optional[str] = None,
organization_scope: Optional[bool] = None,
project: Optional[str] = None,
description: Optional[str] = None,
source_folders: Optional[InsightsDatasetConfigSourceFoldersArgs] = None,
source_projects: Optional[InsightsDatasetConfigSourceProjectsArgs] = None)
func NewInsightsDatasetConfig(ctx *Context, name string, args InsightsDatasetConfigArgs, opts ...ResourceOption) (*InsightsDatasetConfig, error)
public InsightsDatasetConfig(string name, InsightsDatasetConfigArgs args, CustomResourceOptions? opts = null)
public InsightsDatasetConfig(String name, InsightsDatasetConfigArgs args)
public InsightsDatasetConfig(String name, InsightsDatasetConfigArgs args, CustomResourceOptions options)
type: gcp:storage:InsightsDatasetConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args InsightsDatasetConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InsightsDatasetConfigArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InsightsDatasetConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InsightsDatasetConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InsightsDatasetConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var insightsDatasetConfigResource = new Gcp.Storage.InsightsDatasetConfig("insightsDatasetConfigResource", new()
{
Identity = new Gcp.Storage.Inputs.InsightsDatasetConfigIdentityArgs
{
Type = "string",
Name = "string",
},
RetentionPeriodDays = 0,
Location = "string",
DatasetConfigId = "string",
LinkDataset = false,
IncludeCloudStorageBuckets = new Gcp.Storage.Inputs.InsightsDatasetConfigIncludeCloudStorageBucketsArgs
{
CloudStorageBuckets = new[]
{
new Gcp.Storage.Inputs.InsightsDatasetConfigIncludeCloudStorageBucketsCloudStorageBucketArgs
{
BucketName = "string",
BucketPrefixRegex = "string",
},
},
},
IncludeCloudStorageLocations = new Gcp.Storage.Inputs.InsightsDatasetConfigIncludeCloudStorageLocationsArgs
{
Locations = new[]
{
"string",
},
},
IncludeNewlyCreatedBuckets = false,
ExcludeCloudStorageLocations = new Gcp.Storage.Inputs.InsightsDatasetConfigExcludeCloudStorageLocationsArgs
{
Locations = new[]
{
"string",
},
},
ExcludeCloudStorageBuckets = new Gcp.Storage.Inputs.InsightsDatasetConfigExcludeCloudStorageBucketsArgs
{
CloudStorageBuckets = new[]
{
new Gcp.Storage.Inputs.InsightsDatasetConfigExcludeCloudStorageBucketsCloudStorageBucketArgs
{
BucketName = "string",
BucketPrefixRegex = "string",
},
},
},
OrganizationNumber = "string",
OrganizationScope = false,
Project = "string",
Description = "string",
SourceFolders = new Gcp.Storage.Inputs.InsightsDatasetConfigSourceFoldersArgs
{
FolderNumbers = new[]
{
"string",
},
},
SourceProjects = new Gcp.Storage.Inputs.InsightsDatasetConfigSourceProjectsArgs
{
ProjectNumbers = new[]
{
"string",
},
},
});
example, err := storage.NewInsightsDatasetConfig(ctx, "insightsDatasetConfigResource", &storage.InsightsDatasetConfigArgs{
Identity: &storage.InsightsDatasetConfigIdentityArgs{
Type: pulumi.String("string"),
Name: pulumi.String("string"),
},
RetentionPeriodDays: pulumi.Int(0),
Location: pulumi.String("string"),
DatasetConfigId: pulumi.String("string"),
LinkDataset: pulumi.Bool(false),
IncludeCloudStorageBuckets: &storage.InsightsDatasetConfigIncludeCloudStorageBucketsArgs{
CloudStorageBuckets: storage.InsightsDatasetConfigIncludeCloudStorageBucketsCloudStorageBucketArray{
&storage.InsightsDatasetConfigIncludeCloudStorageBucketsCloudStorageBucketArgs{
BucketName: pulumi.String("string"),
BucketPrefixRegex: pulumi.String("string"),
},
},
},
IncludeCloudStorageLocations: &storage.InsightsDatasetConfigIncludeCloudStorageLocationsArgs{
Locations: pulumi.StringArray{
pulumi.String("string"),
},
},
IncludeNewlyCreatedBuckets: pulumi.Bool(false),
ExcludeCloudStorageLocations: &storage.InsightsDatasetConfigExcludeCloudStorageLocationsArgs{
Locations: pulumi.StringArray{
pulumi.String("string"),
},
},
ExcludeCloudStorageBuckets: &storage.InsightsDatasetConfigExcludeCloudStorageBucketsArgs{
CloudStorageBuckets: storage.InsightsDatasetConfigExcludeCloudStorageBucketsCloudStorageBucketArray{
&storage.InsightsDatasetConfigExcludeCloudStorageBucketsCloudStorageBucketArgs{
BucketName: pulumi.String("string"),
BucketPrefixRegex: pulumi.String("string"),
},
},
},
OrganizationNumber: pulumi.String("string"),
OrganizationScope: pulumi.Bool(false),
Project: pulumi.String("string"),
Description: pulumi.String("string"),
SourceFolders: &storage.InsightsDatasetConfigSourceFoldersArgs{
FolderNumbers: pulumi.StringArray{
pulumi.String("string"),
},
},
SourceProjects: &storage.InsightsDatasetConfigSourceProjectsArgs{
ProjectNumbers: pulumi.StringArray{
pulumi.String("string"),
},
},
})
var insightsDatasetConfigResource = new InsightsDatasetConfig("insightsDatasetConfigResource", InsightsDatasetConfigArgs.builder()
.identity(InsightsDatasetConfigIdentityArgs.builder()
.type("string")
.name("string")
.build())
.retentionPeriodDays(0)
.location("string")
.datasetConfigId("string")
.linkDataset(false)
.includeCloudStorageBuckets(InsightsDatasetConfigIncludeCloudStorageBucketsArgs.builder()
.cloudStorageBuckets(InsightsDatasetConfigIncludeCloudStorageBucketsCloudStorageBucketArgs.builder()
.bucketName("string")
.bucketPrefixRegex("string")
.build())
.build())
.includeCloudStorageLocations(InsightsDatasetConfigIncludeCloudStorageLocationsArgs.builder()
.locations("string")
.build())
.includeNewlyCreatedBuckets(false)
.excludeCloudStorageLocations(InsightsDatasetConfigExcludeCloudStorageLocationsArgs.builder()
.locations("string")
.build())
.excludeCloudStorageBuckets(InsightsDatasetConfigExcludeCloudStorageBucketsArgs.builder()
.cloudStorageBuckets(InsightsDatasetConfigExcludeCloudStorageBucketsCloudStorageBucketArgs.builder()
.bucketName("string")
.bucketPrefixRegex("string")
.build())
.build())
.organizationNumber("string")
.organizationScope(false)
.project("string")
.description("string")
.sourceFolders(InsightsDatasetConfigSourceFoldersArgs.builder()
.folderNumbers("string")
.build())
.sourceProjects(InsightsDatasetConfigSourceProjectsArgs.builder()
.projectNumbers("string")
.build())
.build());
insights_dataset_config_resource = gcp.storage.InsightsDatasetConfig("insightsDatasetConfigResource",
identity={
"type": "string",
"name": "string",
},
retention_period_days=0,
location="string",
dataset_config_id="string",
link_dataset=False,
include_cloud_storage_buckets={
"cloud_storage_buckets": [{
"bucket_name": "string",
"bucket_prefix_regex": "string",
}],
},
include_cloud_storage_locations={
"locations": ["string"],
},
include_newly_created_buckets=False,
exclude_cloud_storage_locations={
"locations": ["string"],
},
exclude_cloud_storage_buckets={
"cloud_storage_buckets": [{
"bucket_name": "string",
"bucket_prefix_regex": "string",
}],
},
organization_number="string",
organization_scope=False,
project="string",
description="string",
source_folders={
"folder_numbers": ["string"],
},
source_projects={
"project_numbers": ["string"],
})
const insightsDatasetConfigResource = new gcp.storage.InsightsDatasetConfig("insightsDatasetConfigResource", {
identity: {
type: "string",
name: "string",
},
retentionPeriodDays: 0,
location: "string",
datasetConfigId: "string",
linkDataset: false,
includeCloudStorageBuckets: {
cloudStorageBuckets: [{
bucketName: "string",
bucketPrefixRegex: "string",
}],
},
includeCloudStorageLocations: {
locations: ["string"],
},
includeNewlyCreatedBuckets: false,
excludeCloudStorageLocations: {
locations: ["string"],
},
excludeCloudStorageBuckets: {
cloudStorageBuckets: [{
bucketName: "string",
bucketPrefixRegex: "string",
}],
},
organizationNumber: "string",
organizationScope: false,
project: "string",
description: "string",
sourceFolders: {
folderNumbers: ["string"],
},
sourceProjects: {
projectNumbers: ["string"],
},
});
type: gcp:storage:InsightsDatasetConfig
properties:
datasetConfigId: string
description: string
excludeCloudStorageBuckets:
cloudStorageBuckets:
- bucketName: string
bucketPrefixRegex: string
excludeCloudStorageLocations:
locations:
- string
identity:
name: string
type: string
includeCloudStorageBuckets:
cloudStorageBuckets:
- bucketName: string
bucketPrefixRegex: string
includeCloudStorageLocations:
locations:
- string
includeNewlyCreatedBuckets: false
linkDataset: false
location: string
organizationNumber: string
organizationScope: false
project: string
retentionPeriodDays: 0
sourceFolders:
folderNumbers:
- string
sourceProjects:
projectNumbers:
- string
InsightsDatasetConfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The InsightsDatasetConfig resource accepts the following input properties:
- Dataset
Config stringId - The user-defined ID of the DatasetConfig
- Identity
Insights
Dataset Config Identity - Identity used by DatasetConfig. Structure is documented below.
- Location string
- The location of the DatasetConfig.
- Retention
Period intDays - Number of days of history that must be retained.
- Description string
- An optional user-provided description for the dataset configuration with a maximum length of 256 characters.
- Exclude
Cloud InsightsStorage Buckets Dataset Config Exclude Cloud Storage Buckets - Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
- Exclude
Cloud InsightsStorage Locations Dataset Config Exclude Cloud Storage Locations - Defines the options for excluding cloud storage locations for the DatasetConfig. Structure is documented below.
- Include
Cloud InsightsStorage Buckets Dataset Config Include Cloud Storage Buckets - Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
- Include
Cloud InsightsStorage Locations Dataset Config Include Cloud Storage Locations - Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
- Include
Newly boolCreated Buckets - If set to true, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.
- Link
Dataset bool - Organization
Number string - Organization resource ID that the source projects should belong to. Projects that do not belong to the provided organization are not considered when creating the dataset.
- Organization
Scope bool - Defines the options for providing a source organization for the DatasetConfig.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Source
Folders InsightsDataset Config Source Folders - Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
- Source
Projects InsightsDataset Config Source Projects - Defines the options for providing source projects for the DatasetConfig. Structure is documented below.
- Dataset
Config stringId - The user-defined ID of the DatasetConfig
- Identity
Insights
Dataset Config Identity Args - Identity used by DatasetConfig. Structure is documented below.
- Location string
- The location of the DatasetConfig.
- Retention
Period intDays - Number of days of history that must be retained.
- Description string
- An optional user-provided description for the dataset configuration with a maximum length of 256 characters.
- Exclude
Cloud InsightsStorage Buckets Dataset Config Exclude Cloud Storage Buckets Args - Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
- Exclude
Cloud InsightsStorage Locations Dataset Config Exclude Cloud Storage Locations Args - Defines the options for excluding cloud storage locations for the DatasetConfig. Structure is documented below.
- Include
Cloud InsightsStorage Buckets Dataset Config Include Cloud Storage Buckets Args - Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
- Include
Cloud InsightsStorage Locations Dataset Config Include Cloud Storage Locations Args - Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
- Include
Newly boolCreated Buckets - If set to true, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.
- Link
Dataset bool - Organization
Number string - Organization resource ID that the source projects should belong to. Projects that do not belong to the provided organization are not considered when creating the dataset.
- Organization
Scope bool - Defines the options for providing a source organization for the DatasetConfig.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Source
Folders InsightsDataset Config Source Folders Args - Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
- Source
Projects InsightsDataset Config Source Projects Args - Defines the options for providing source projects for the DatasetConfig. Structure is documented below.
- dataset
Config StringId - The user-defined ID of the DatasetConfig
- identity
Insights
Dataset Config Identity - Identity used by DatasetConfig. Structure is documented below.
- location String
- The location of the DatasetConfig.
- retention
Period IntegerDays - Number of days of history that must be retained.
- description String
- An optional user-provided description for the dataset configuration with a maximum length of 256 characters.
- exclude
Cloud InsightsStorage Buckets Dataset Config Exclude Cloud Storage Buckets - Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
- exclude
Cloud InsightsStorage Locations Dataset Config Exclude Cloud Storage Locations - Defines the options for excluding cloud storage locations for the DatasetConfig. Structure is documented below.
- include
Cloud InsightsStorage Buckets Dataset Config Include Cloud Storage Buckets - Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
- include
Cloud InsightsStorage Locations Dataset Config Include Cloud Storage Locations - Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
- include
Newly BooleanCreated Buckets - If set to true, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.
- link
Dataset Boolean - organization
Number String - Organization resource ID that the source projects should belong to. Projects that do not belong to the provided organization are not considered when creating the dataset.
- organization
Scope Boolean - Defines the options for providing a source organization for the DatasetConfig.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- source
Folders InsightsDataset Config Source Folders - Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
- source
Projects InsightsDataset Config Source Projects - Defines the options for providing source projects for the DatasetConfig. Structure is documented below.
- dataset
Config stringId - The user-defined ID of the DatasetConfig
- identity
Insights
Dataset Config Identity - Identity used by DatasetConfig. Structure is documented below.
- location string
- The location of the DatasetConfig.
- retention
Period numberDays - Number of days of history that must be retained.
- description string
- An optional user-provided description for the dataset configuration with a maximum length of 256 characters.
- exclude
Cloud InsightsStorage Buckets Dataset Config Exclude Cloud Storage Buckets - Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
- exclude
Cloud InsightsStorage Locations Dataset Config Exclude Cloud Storage Locations - Defines the options for excluding cloud storage locations for the DatasetConfig. Structure is documented below.
- include
Cloud InsightsStorage Buckets Dataset Config Include Cloud Storage Buckets - Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
- include
Cloud InsightsStorage Locations Dataset Config Include Cloud Storage Locations - Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
- include
Newly booleanCreated Buckets - If set to true, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.
- link
Dataset boolean - organization
Number string - Organization resource ID that the source projects should belong to. Projects that do not belong to the provided organization are not considered when creating the dataset.
- organization
Scope boolean - Defines the options for providing a source organization for the DatasetConfig.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- source
Folders InsightsDataset Config Source Folders - Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
- source
Projects InsightsDataset Config Source Projects - Defines the options for providing source projects for the DatasetConfig. Structure is documented below.
- dataset_
config_ strid - The user-defined ID of the DatasetConfig
- identity
Insights
Dataset Config Identity Args - Identity used by DatasetConfig. Structure is documented below.
- location str
- The location of the DatasetConfig.
- retention_
period_ intdays - Number of days of history that must be retained.
- description str
- An optional user-provided description for the dataset configuration with a maximum length of 256 characters.
- exclude_
cloud_ Insightsstorage_ buckets Dataset Config Exclude Cloud Storage Buckets Args - Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
- exclude_
cloud_ Insightsstorage_ locations Dataset Config Exclude Cloud Storage Locations Args - Defines the options for excluding cloud storage locations for the DatasetConfig. Structure is documented below.
- include_
cloud_ Insightsstorage_ buckets Dataset Config Include Cloud Storage Buckets Args - Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
- include_
cloud_ Insightsstorage_ locations Dataset Config Include Cloud Storage Locations Args - Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
- include_
newly_ boolcreated_ buckets - If set to true, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.
- link_
dataset bool - organization_
number str - Organization resource ID that the source projects should belong to. Projects that do not belong to the provided organization are not considered when creating the dataset.
- organization_
scope bool - Defines the options for providing a source organization for the DatasetConfig.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- source_
folders InsightsDataset Config Source Folders Args - Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
- source_
projects InsightsDataset Config Source Projects Args - Defines the options for providing source projects for the DatasetConfig. Structure is documented below.
- dataset
Config StringId - The user-defined ID of the DatasetConfig
- identity Property Map
- Identity used by DatasetConfig. Structure is documented below.
- location String
- The location of the DatasetConfig.
- retention
Period NumberDays - Number of days of history that must be retained.
- description String
- An optional user-provided description for the dataset configuration with a maximum length of 256 characters.
- exclude
Cloud Property MapStorage Buckets - Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
- exclude
Cloud Property MapStorage Locations - Defines the options for excluding cloud storage locations for the DatasetConfig. Structure is documented below.
- include
Cloud Property MapStorage Buckets - Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
- include
Cloud Property MapStorage Locations - Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
- include
Newly BooleanCreated Buckets - If set to true, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.
- link
Dataset Boolean - organization
Number String - Organization resource ID that the source projects should belong to. Projects that do not belong to the provided organization are not considered when creating the dataset.
- organization
Scope Boolean - Defines the options for providing a source organization for the DatasetConfig.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- source
Folders Property Map - Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
- source
Projects Property Map - Defines the options for providing source projects for the DatasetConfig. Structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the InsightsDatasetConfig resource produces the following output properties:
- Create
Time string - The UTC time at which the DatasetConfig was created. This is auto-populated.
- Dataset
Config stringState - State of the DatasetConfig.
- Id string
- The provider-assigned unique ID for this managed resource.
- Links
List<Insights
Dataset Config Link> - Details of the linked DatasetConfig. Structure is documented below.
- Name string
- The full canonical resource name of the DatasetConfig (e.g., projects/P/locations/L/datasetConfigs/ID).
- Uid string
- System generated unique identifier for the resource.
- Update
Time string - The UTC time at which the DatasetConfig was updated. This is auto-populated.
- Create
Time string - The UTC time at which the DatasetConfig was created. This is auto-populated.
- Dataset
Config stringState - State of the DatasetConfig.
- Id string
- The provider-assigned unique ID for this managed resource.
- Links
[]Insights
Dataset Config Link - Details of the linked DatasetConfig. Structure is documented below.
- Name string
- The full canonical resource name of the DatasetConfig (e.g., projects/P/locations/L/datasetConfigs/ID).
- Uid string
- System generated unique identifier for the resource.
- Update
Time string - The UTC time at which the DatasetConfig was updated. This is auto-populated.
- create
Time String - The UTC time at which the DatasetConfig was created. This is auto-populated.
- dataset
Config StringState - State of the DatasetConfig.
- id String
- The provider-assigned unique ID for this managed resource.
- links
List<Insights
Dataset Config Link> - Details of the linked DatasetConfig. Structure is documented below.
- name String
- The full canonical resource name of the DatasetConfig (e.g., projects/P/locations/L/datasetConfigs/ID).
- uid String
- System generated unique identifier for the resource.
- update
Time String - The UTC time at which the DatasetConfig was updated. This is auto-populated.
- create
Time string - The UTC time at which the DatasetConfig was created. This is auto-populated.
- dataset
Config stringState - State of the DatasetConfig.
- id string
- The provider-assigned unique ID for this managed resource.
- links
Insights
Dataset Config Link[] - Details of the linked DatasetConfig. Structure is documented below.
- name string
- The full canonical resource name of the DatasetConfig (e.g., projects/P/locations/L/datasetConfigs/ID).
- uid string
- System generated unique identifier for the resource.
- update
Time string - The UTC time at which the DatasetConfig was updated. This is auto-populated.
- create_
time str - The UTC time at which the DatasetConfig was created. This is auto-populated.
- dataset_
config_ strstate - State of the DatasetConfig.
- id str
- The provider-assigned unique ID for this managed resource.
- links
Sequence[Insights
Dataset Config Link] - Details of the linked DatasetConfig. Structure is documented below.
- name str
- The full canonical resource name of the DatasetConfig (e.g., projects/P/locations/L/datasetConfigs/ID).
- uid str
- System generated unique identifier for the resource.
- update_
time str - The UTC time at which the DatasetConfig was updated. This is auto-populated.
- create
Time String - The UTC time at which the DatasetConfig was created. This is auto-populated.
- dataset
Config StringState - State of the DatasetConfig.
- id String
- The provider-assigned unique ID for this managed resource.
- links List<Property Map>
- Details of the linked DatasetConfig. Structure is documented below.
- name String
- The full canonical resource name of the DatasetConfig (e.g., projects/P/locations/L/datasetConfigs/ID).
- uid String
- System generated unique identifier for the resource.
- update
Time String - The UTC time at which the DatasetConfig was updated. This is auto-populated.
Look up Existing InsightsDatasetConfig Resource
Get an existing InsightsDatasetConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: InsightsDatasetConfigState, opts?: CustomResourceOptions): InsightsDatasetConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
dataset_config_id: Optional[str] = None,
dataset_config_state: Optional[str] = None,
description: Optional[str] = None,
exclude_cloud_storage_buckets: Optional[InsightsDatasetConfigExcludeCloudStorageBucketsArgs] = None,
exclude_cloud_storage_locations: Optional[InsightsDatasetConfigExcludeCloudStorageLocationsArgs] = None,
identity: Optional[InsightsDatasetConfigIdentityArgs] = None,
include_cloud_storage_buckets: Optional[InsightsDatasetConfigIncludeCloudStorageBucketsArgs] = None,
include_cloud_storage_locations: Optional[InsightsDatasetConfigIncludeCloudStorageLocationsArgs] = None,
include_newly_created_buckets: Optional[bool] = None,
link_dataset: Optional[bool] = None,
links: Optional[Sequence[InsightsDatasetConfigLinkArgs]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
organization_number: Optional[str] = None,
organization_scope: Optional[bool] = None,
project: Optional[str] = None,
retention_period_days: Optional[int] = None,
source_folders: Optional[InsightsDatasetConfigSourceFoldersArgs] = None,
source_projects: Optional[InsightsDatasetConfigSourceProjectsArgs] = None,
uid: Optional[str] = None,
update_time: Optional[str] = None) -> InsightsDatasetConfig
func GetInsightsDatasetConfig(ctx *Context, name string, id IDInput, state *InsightsDatasetConfigState, opts ...ResourceOption) (*InsightsDatasetConfig, error)
public static InsightsDatasetConfig Get(string name, Input<string> id, InsightsDatasetConfigState? state, CustomResourceOptions? opts = null)
public static InsightsDatasetConfig get(String name, Output<String> id, InsightsDatasetConfigState state, CustomResourceOptions options)
resources: _: type: gcp:storage:InsightsDatasetConfig get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Create
Time string - The UTC time at which the DatasetConfig was created. This is auto-populated.
- Dataset
Config stringId - The user-defined ID of the DatasetConfig
- Dataset
Config stringState - State of the DatasetConfig.
- Description string
- An optional user-provided description for the dataset configuration with a maximum length of 256 characters.
- Exclude
Cloud InsightsStorage Buckets Dataset Config Exclude Cloud Storage Buckets - Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
- Exclude
Cloud InsightsStorage Locations Dataset Config Exclude Cloud Storage Locations - Defines the options for excluding cloud storage locations for the DatasetConfig. Structure is documented below.
- Identity
Insights
Dataset Config Identity - Identity used by DatasetConfig. Structure is documented below.
- Include
Cloud InsightsStorage Buckets Dataset Config Include Cloud Storage Buckets - Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
- Include
Cloud InsightsStorage Locations Dataset Config Include Cloud Storage Locations - Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
- Include
Newly boolCreated Buckets - If set to true, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.
- Link
Dataset bool - Links
List<Insights
Dataset Config Link> - Details of the linked DatasetConfig. Structure is documented below.
- Location string
- The location of the DatasetConfig.
- Name string
- The full canonical resource name of the DatasetConfig (e.g., projects/P/locations/L/datasetConfigs/ID).
- Organization
Number string - Organization resource ID that the source projects should belong to. Projects that do not belong to the provided organization are not considered when creating the dataset.
- Organization
Scope bool - Defines the options for providing a source organization for the DatasetConfig.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Retention
Period intDays - Number of days of history that must be retained.
- Source
Folders InsightsDataset Config Source Folders - Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
- Source
Projects InsightsDataset Config Source Projects - Defines the options for providing source projects for the DatasetConfig. Structure is documented below.
- Uid string
- System generated unique identifier for the resource.
- Update
Time string - The UTC time at which the DatasetConfig was updated. This is auto-populated.
- Create
Time string - The UTC time at which the DatasetConfig was created. This is auto-populated.
- Dataset
Config stringId - The user-defined ID of the DatasetConfig
- Dataset
Config stringState - State of the DatasetConfig.
- Description string
- An optional user-provided description for the dataset configuration with a maximum length of 256 characters.
- Exclude
Cloud InsightsStorage Buckets Dataset Config Exclude Cloud Storage Buckets Args - Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
- Exclude
Cloud InsightsStorage Locations Dataset Config Exclude Cloud Storage Locations Args - Defines the options for excluding cloud storage locations for the DatasetConfig. Structure is documented below.
- Identity
Insights
Dataset Config Identity Args - Identity used by DatasetConfig. Structure is documented below.
- Include
Cloud InsightsStorage Buckets Dataset Config Include Cloud Storage Buckets Args - Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
- Include
Cloud InsightsStorage Locations Dataset Config Include Cloud Storage Locations Args - Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
- Include
Newly boolCreated Buckets - If set to true, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.
- Link
Dataset bool - Links
[]Insights
Dataset Config Link Args - Details of the linked DatasetConfig. Structure is documented below.
- Location string
- The location of the DatasetConfig.
- Name string
- The full canonical resource name of the DatasetConfig (e.g., projects/P/locations/L/datasetConfigs/ID).
- Organization
Number string - Organization resource ID that the source projects should belong to. Projects that do not belong to the provided organization are not considered when creating the dataset.
- Organization
Scope bool - Defines the options for providing a source organization for the DatasetConfig.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Retention
Period intDays - Number of days of history that must be retained.
- Source
Folders InsightsDataset Config Source Folders Args - Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
- Source
Projects InsightsDataset Config Source Projects Args - Defines the options for providing source projects for the DatasetConfig. Structure is documented below.
- Uid string
- System generated unique identifier for the resource.
- Update
Time string - The UTC time at which the DatasetConfig was updated. This is auto-populated.
- create
Time String - The UTC time at which the DatasetConfig was created. This is auto-populated.
- dataset
Config StringId - The user-defined ID of the DatasetConfig
- dataset
Config StringState - State of the DatasetConfig.
- description String
- An optional user-provided description for the dataset configuration with a maximum length of 256 characters.
- exclude
Cloud InsightsStorage Buckets Dataset Config Exclude Cloud Storage Buckets - Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
- exclude
Cloud InsightsStorage Locations Dataset Config Exclude Cloud Storage Locations - Defines the options for excluding cloud storage locations for the DatasetConfig. Structure is documented below.
- identity
Insights
Dataset Config Identity - Identity used by DatasetConfig. Structure is documented below.
- include
Cloud InsightsStorage Buckets Dataset Config Include Cloud Storage Buckets - Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
- include
Cloud InsightsStorage Locations Dataset Config Include Cloud Storage Locations - Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
- include
Newly BooleanCreated Buckets - If set to true, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.
- link
Dataset Boolean - links
List<Insights
Dataset Config Link> - Details of the linked DatasetConfig. Structure is documented below.
- location String
- The location of the DatasetConfig.
- name String
- The full canonical resource name of the DatasetConfig (e.g., projects/P/locations/L/datasetConfigs/ID).
- organization
Number String - Organization resource ID that the source projects should belong to. Projects that do not belong to the provided organization are not considered when creating the dataset.
- organization
Scope Boolean - Defines the options for providing a source organization for the DatasetConfig.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- retention
Period IntegerDays - Number of days of history that must be retained.
- source
Folders InsightsDataset Config Source Folders - Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
- source
Projects InsightsDataset Config Source Projects - Defines the options for providing source projects for the DatasetConfig. Structure is documented below.
- uid String
- System generated unique identifier for the resource.
- update
Time String - The UTC time at which the DatasetConfig was updated. This is auto-populated.
- create
Time string - The UTC time at which the DatasetConfig was created. This is auto-populated.
- dataset
Config stringId - The user-defined ID of the DatasetConfig
- dataset
Config stringState - State of the DatasetConfig.
- description string
- An optional user-provided description for the dataset configuration with a maximum length of 256 characters.
- exclude
Cloud InsightsStorage Buckets Dataset Config Exclude Cloud Storage Buckets - Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
- exclude
Cloud InsightsStorage Locations Dataset Config Exclude Cloud Storage Locations - Defines the options for excluding cloud storage locations for the DatasetConfig. Structure is documented below.
- identity
Insights
Dataset Config Identity - Identity used by DatasetConfig. Structure is documented below.
- include
Cloud InsightsStorage Buckets Dataset Config Include Cloud Storage Buckets - Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
- include
Cloud InsightsStorage Locations Dataset Config Include Cloud Storage Locations - Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
- include
Newly booleanCreated Buckets - If set to true, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.
- link
Dataset boolean - links
Insights
Dataset Config Link[] - Details of the linked DatasetConfig. Structure is documented below.
- location string
- The location of the DatasetConfig.
- name string
- The full canonical resource name of the DatasetConfig (e.g., projects/P/locations/L/datasetConfigs/ID).
- organization
Number string - Organization resource ID that the source projects should belong to. Projects that do not belong to the provided organization are not considered when creating the dataset.
- organization
Scope boolean - Defines the options for providing a source organization for the DatasetConfig.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- retention
Period numberDays - Number of days of history that must be retained.
- source
Folders InsightsDataset Config Source Folders - Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
- source
Projects InsightsDataset Config Source Projects - Defines the options for providing source projects for the DatasetConfig. Structure is documented below.
- uid string
- System generated unique identifier for the resource.
- update
Time string - The UTC time at which the DatasetConfig was updated. This is auto-populated.
- create_
time str - The UTC time at which the DatasetConfig was created. This is auto-populated.
- dataset_
config_ strid - The user-defined ID of the DatasetConfig
- dataset_
config_ strstate - State of the DatasetConfig.
- description str
- An optional user-provided description for the dataset configuration with a maximum length of 256 characters.
- exclude_
cloud_ Insightsstorage_ buckets Dataset Config Exclude Cloud Storage Buckets Args - Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
- exclude_
cloud_ Insightsstorage_ locations Dataset Config Exclude Cloud Storage Locations Args - Defines the options for excluding cloud storage locations for the DatasetConfig. Structure is documented below.
- identity
Insights
Dataset Config Identity Args - Identity used by DatasetConfig. Structure is documented below.
- include_
cloud_ Insightsstorage_ buckets Dataset Config Include Cloud Storage Buckets Args - Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
- include_
cloud_ Insightsstorage_ locations Dataset Config Include Cloud Storage Locations Args - Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
- include_
newly_ boolcreated_ buckets - If set to true, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.
- link_
dataset bool - links
Sequence[Insights
Dataset Config Link Args] - Details of the linked DatasetConfig. Structure is documented below.
- location str
- The location of the DatasetConfig.
- name str
- The full canonical resource name of the DatasetConfig (e.g., projects/P/locations/L/datasetConfigs/ID).
- organization_
number str - Organization resource ID that the source projects should belong to. Projects that do not belong to the provided organization are not considered when creating the dataset.
- organization_
scope bool - Defines the options for providing a source organization for the DatasetConfig.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- retention_
period_ intdays - Number of days of history that must be retained.
- source_
folders InsightsDataset Config Source Folders Args - Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
- source_
projects InsightsDataset Config Source Projects Args - Defines the options for providing source projects for the DatasetConfig. Structure is documented below.
- uid str
- System generated unique identifier for the resource.
- update_
time str - The UTC time at which the DatasetConfig was updated. This is auto-populated.
- create
Time String - The UTC time at which the DatasetConfig was created. This is auto-populated.
- dataset
Config StringId - The user-defined ID of the DatasetConfig
- dataset
Config StringState - State of the DatasetConfig.
- description String
- An optional user-provided description for the dataset configuration with a maximum length of 256 characters.
- exclude
Cloud Property MapStorage Buckets - Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
- exclude
Cloud Property MapStorage Locations - Defines the options for excluding cloud storage locations for the DatasetConfig. Structure is documented below.
- identity Property Map
- Identity used by DatasetConfig. Structure is documented below.
- include
Cloud Property MapStorage Buckets - Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
- include
Cloud Property MapStorage Locations - Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
- include
Newly BooleanCreated Buckets - If set to true, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.
- link
Dataset Boolean - links List<Property Map>
- Details of the linked DatasetConfig. Structure is documented below.
- location String
- The location of the DatasetConfig.
- name String
- The full canonical resource name of the DatasetConfig (e.g., projects/P/locations/L/datasetConfigs/ID).
- organization
Number String - Organization resource ID that the source projects should belong to. Projects that do not belong to the provided organization are not considered when creating the dataset.
- organization
Scope Boolean - Defines the options for providing a source organization for the DatasetConfig.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- retention
Period NumberDays - Number of days of history that must be retained.
- source
Folders Property Map - Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
- source
Projects Property Map - Defines the options for providing source projects for the DatasetConfig. Structure is documented below.
- uid String
- System generated unique identifier for the resource.
- update
Time String - The UTC time at which the DatasetConfig was updated. This is auto-populated.
Supporting Types
InsightsDatasetConfigExcludeCloudStorageBuckets, InsightsDatasetConfigExcludeCloudStorageBucketsArgs
- Cloud
Storage List<InsightsBuckets Dataset Config Exclude Cloud Storage Buckets Cloud Storage Bucket> - The list of cloud storage buckets/bucket prefix regexes to exclude in the DatasetConfig. Structure is documented below.
- Cloud
Storage []InsightsBuckets Dataset Config Exclude Cloud Storage Buckets Cloud Storage Bucket - The list of cloud storage buckets/bucket prefix regexes to exclude in the DatasetConfig. Structure is documented below.
- cloud
Storage List<InsightsBuckets Dataset Config Exclude Cloud Storage Buckets Cloud Storage Bucket> - The list of cloud storage buckets/bucket prefix regexes to exclude in the DatasetConfig. Structure is documented below.
- cloud
Storage InsightsBuckets Dataset Config Exclude Cloud Storage Buckets Cloud Storage Bucket[] - The list of cloud storage buckets/bucket prefix regexes to exclude in the DatasetConfig. Structure is documented below.
- cloud_
storage_ Sequence[Insightsbuckets Dataset Config Exclude Cloud Storage Buckets Cloud Storage Bucket] - The list of cloud storage buckets/bucket prefix regexes to exclude in the DatasetConfig. Structure is documented below.
- cloud
Storage List<Property Map>Buckets - The list of cloud storage buckets/bucket prefix regexes to exclude in the DatasetConfig. Structure is documented below.
InsightsDatasetConfigExcludeCloudStorageBucketsCloudStorageBucket, InsightsDatasetConfigExcludeCloudStorageBucketsCloudStorageBucketArgs
- Bucket
Name string - The list of cloud storage bucket names to exclude in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
- Bucket
Prefix stringRegex - The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
- Bucket
Name string - The list of cloud storage bucket names to exclude in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
- Bucket
Prefix stringRegex - The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
- bucket
Name String - The list of cloud storage bucket names to exclude in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
- bucket
Prefix StringRegex - The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
- bucket
Name string - The list of cloud storage bucket names to exclude in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
- bucket
Prefix stringRegex - The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
- bucket_
name str - The list of cloud storage bucket names to exclude in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
- bucket_
prefix_ strregex - The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
- bucket
Name String - The list of cloud storage bucket names to exclude in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
- bucket
Prefix StringRegex - The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
InsightsDatasetConfigExcludeCloudStorageLocations, InsightsDatasetConfigExcludeCloudStorageLocationsArgs
- Locations List<string>
- The list of cloud storage locations to exclude in the DatasetConfig.
- Locations []string
- The list of cloud storage locations to exclude in the DatasetConfig.
- locations List<String>
- The list of cloud storage locations to exclude in the DatasetConfig.
- locations string[]
- The list of cloud storage locations to exclude in the DatasetConfig.
- locations Sequence[str]
- The list of cloud storage locations to exclude in the DatasetConfig.
- locations List<String>
- The list of cloud storage locations to exclude in the DatasetConfig.
InsightsDatasetConfigIdentity, InsightsDatasetConfigIdentityArgs
InsightsDatasetConfigIncludeCloudStorageBuckets, InsightsDatasetConfigIncludeCloudStorageBucketsArgs
- Cloud
Storage List<InsightsBuckets Dataset Config Include Cloud Storage Buckets Cloud Storage Bucket> - The list of cloud storage buckets/bucket prefix regexes to include in the DatasetConfig. Structure is documented below.
- Cloud
Storage []InsightsBuckets Dataset Config Include Cloud Storage Buckets Cloud Storage Bucket - The list of cloud storage buckets/bucket prefix regexes to include in the DatasetConfig. Structure is documented below.
- cloud
Storage List<InsightsBuckets Dataset Config Include Cloud Storage Buckets Cloud Storage Bucket> - The list of cloud storage buckets/bucket prefix regexes to include in the DatasetConfig. Structure is documented below.
- cloud
Storage InsightsBuckets Dataset Config Include Cloud Storage Buckets Cloud Storage Bucket[] - The list of cloud storage buckets/bucket prefix regexes to include in the DatasetConfig. Structure is documented below.
- cloud_
storage_ Sequence[Insightsbuckets Dataset Config Include Cloud Storage Buckets Cloud Storage Bucket] - The list of cloud storage buckets/bucket prefix regexes to include in the DatasetConfig. Structure is documented below.
- cloud
Storage List<Property Map>Buckets - The list of cloud storage buckets/bucket prefix regexes to include in the DatasetConfig. Structure is documented below.
InsightsDatasetConfigIncludeCloudStorageBucketsCloudStorageBucket, InsightsDatasetConfigIncludeCloudStorageBucketsCloudStorageBucketArgs
- Bucket
Name string - The list of cloud storage bucket names to exclude in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
- Bucket
Prefix stringRegex - The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
- Bucket
Name string - The list of cloud storage bucket names to exclude in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
- Bucket
Prefix stringRegex - The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
- bucket
Name String - The list of cloud storage bucket names to exclude in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
- bucket
Prefix StringRegex - The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
- bucket
Name string - The list of cloud storage bucket names to exclude in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
- bucket
Prefix stringRegex - The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
- bucket_
name str - The list of cloud storage bucket names to exclude in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
- bucket_
prefix_ strregex - The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
- bucket
Name String - The list of cloud storage bucket names to exclude in the DatasetConfig. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
- bucket
Prefix StringRegex - The list of regex patterns for bucket names matching the regex. Regex should follow the syntax specified in google/re2 on GitHub. Exactly one of the bucket_name and bucket_prefix_regex should be specified.
InsightsDatasetConfigIncludeCloudStorageLocations, InsightsDatasetConfigIncludeCloudStorageLocationsArgs
- Locations List<string>
- The list of cloud storage locations to include in the DatasetConfig.
- Locations []string
- The list of cloud storage locations to include in the DatasetConfig.
- locations List<String>
- The list of cloud storage locations to include in the DatasetConfig.
- locations string[]
- The list of cloud storage locations to include in the DatasetConfig.
- locations Sequence[str]
- The list of cloud storage locations to include in the DatasetConfig.
- locations List<String>
- The list of cloud storage locations to include in the DatasetConfig.
InsightsDatasetConfigLink, InsightsDatasetConfigLinkArgs
InsightsDatasetConfigSourceFolders, InsightsDatasetConfigSourceFoldersArgs
- Folder
Numbers List<string> - The list of folder numbers to include in the DatasetConfig.
- Folder
Numbers []string - The list of folder numbers to include in the DatasetConfig.
- folder
Numbers List<String> - The list of folder numbers to include in the DatasetConfig.
- folder
Numbers string[] - The list of folder numbers to include in the DatasetConfig.
- folder_
numbers Sequence[str] - The list of folder numbers to include in the DatasetConfig.
- folder
Numbers List<String> - The list of folder numbers to include in the DatasetConfig.
InsightsDatasetConfigSourceProjects, InsightsDatasetConfigSourceProjectsArgs
- Project
Numbers List<string> - The list of project numbers to include in the DatasetConfig.
- Project
Numbers []string - The list of project numbers to include in the DatasetConfig.
- project
Numbers List<String> - The list of project numbers to include in the DatasetConfig.
- project
Numbers string[] - The list of project numbers to include in the DatasetConfig.
- project_
numbers Sequence[str] - The list of project numbers to include in the DatasetConfig.
- project
Numbers List<String> - The list of project numbers to include in the DatasetConfig.
Import
DatasetConfig can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/datasetConfigs/{{dataset_config_id}}
{{project}}/{{location}}/{{dataset_config_id}}
{{location}}/{{dataset_config_id}}
When using the pulumi import
command, DatasetConfig can be imported using one of the formats above. For example:
$ pulumi import gcp:storage/insightsDatasetConfig:InsightsDatasetConfig default projects/{{project}}/locations/{{location}}/datasetConfigs/{{dataset_config_id}}
$ pulumi import gcp:storage/insightsDatasetConfig:InsightsDatasetConfig default {{project}}/{{location}}/{{dataset_config_id}}
$ pulumi import gcp:storage/insightsDatasetConfig:InsightsDatasetConfig default {{location}}/{{dataset_config_id}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.