1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. storage
  5. InsightsDatasetConfig
Google Cloud v8.41.1 published on Monday, Aug 25, 2025 by Pulumi

gcp.storage.InsightsDatasetConfig

Explore with Pulumi AI

gcp logo
Google Cloud v8.41.1 published on Monday, Aug 25, 2025 by Pulumi

    Represents a Storage Insights DatasetConfig.

    To get more information about DatasetConfig, see:

    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:

    DatasetConfigId string
    The user-defined ID of the DatasetConfig
    Identity InsightsDatasetConfigIdentity
    Identity used by DatasetConfig. Structure is documented below.
    Location string
    The location of the DatasetConfig.
    RetentionPeriodDays int
    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.
    ExcludeCloudStorageBuckets InsightsDatasetConfigExcludeCloudStorageBuckets
    Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
    ExcludeCloudStorageLocations InsightsDatasetConfigExcludeCloudStorageLocations
    Defines the options for excluding cloud storage locations for the DatasetConfig. Structure is documented below.
    IncludeCloudStorageBuckets InsightsDatasetConfigIncludeCloudStorageBuckets
    Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
    IncludeCloudStorageLocations InsightsDatasetConfigIncludeCloudStorageLocations
    Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
    IncludeNewlyCreatedBuckets bool
    If set to true, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.
    LinkDataset bool
    OrganizationNumber 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.
    OrganizationScope 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.
    SourceFolders InsightsDatasetConfigSourceFolders
    Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
    SourceProjects InsightsDatasetConfigSourceProjects
    Defines the options for providing source projects for the DatasetConfig. Structure is documented below.
    DatasetConfigId string
    The user-defined ID of the DatasetConfig
    Identity InsightsDatasetConfigIdentityArgs
    Identity used by DatasetConfig. Structure is documented below.
    Location string
    The location of the DatasetConfig.
    RetentionPeriodDays int
    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.
    ExcludeCloudStorageBuckets InsightsDatasetConfigExcludeCloudStorageBucketsArgs
    Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
    ExcludeCloudStorageLocations InsightsDatasetConfigExcludeCloudStorageLocationsArgs
    Defines the options for excluding cloud storage locations for the DatasetConfig. Structure is documented below.
    IncludeCloudStorageBuckets InsightsDatasetConfigIncludeCloudStorageBucketsArgs
    Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
    IncludeCloudStorageLocations InsightsDatasetConfigIncludeCloudStorageLocationsArgs
    Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
    IncludeNewlyCreatedBuckets bool
    If set to true, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.
    LinkDataset bool
    OrganizationNumber 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.
    OrganizationScope 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.
    SourceFolders InsightsDatasetConfigSourceFoldersArgs
    Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
    SourceProjects InsightsDatasetConfigSourceProjectsArgs
    Defines the options for providing source projects for the DatasetConfig. Structure is documented below.
    datasetConfigId String
    The user-defined ID of the DatasetConfig
    identity InsightsDatasetConfigIdentity
    Identity used by DatasetConfig. Structure is documented below.
    location String
    The location of the DatasetConfig.
    retentionPeriodDays Integer
    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.
    excludeCloudStorageBuckets InsightsDatasetConfigExcludeCloudStorageBuckets
    Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
    excludeCloudStorageLocations InsightsDatasetConfigExcludeCloudStorageLocations
    Defines the options for excluding cloud storage locations for the DatasetConfig. Structure is documented below.
    includeCloudStorageBuckets InsightsDatasetConfigIncludeCloudStorageBuckets
    Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
    includeCloudStorageLocations InsightsDatasetConfigIncludeCloudStorageLocations
    Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
    includeNewlyCreatedBuckets Boolean
    If set to true, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.
    linkDataset Boolean
    organizationNumber 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.
    organizationScope 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.
    sourceFolders InsightsDatasetConfigSourceFolders
    Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
    sourceProjects InsightsDatasetConfigSourceProjects
    Defines the options for providing source projects for the DatasetConfig. Structure is documented below.
    datasetConfigId string
    The user-defined ID of the DatasetConfig
    identity InsightsDatasetConfigIdentity
    Identity used by DatasetConfig. Structure is documented below.
    location string
    The location of the DatasetConfig.
    retentionPeriodDays number
    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.
    excludeCloudStorageBuckets InsightsDatasetConfigExcludeCloudStorageBuckets
    Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
    excludeCloudStorageLocations InsightsDatasetConfigExcludeCloudStorageLocations
    Defines the options for excluding cloud storage locations for the DatasetConfig. Structure is documented below.
    includeCloudStorageBuckets InsightsDatasetConfigIncludeCloudStorageBuckets
    Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
    includeCloudStorageLocations InsightsDatasetConfigIncludeCloudStorageLocations
    Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
    includeNewlyCreatedBuckets boolean
    If set to true, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.
    linkDataset boolean
    organizationNumber 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.
    organizationScope 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.
    sourceFolders InsightsDatasetConfigSourceFolders
    Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
    sourceProjects InsightsDatasetConfigSourceProjects
    Defines the options for providing source projects for the DatasetConfig. Structure is documented below.
    dataset_config_id str
    The user-defined ID of the DatasetConfig
    identity InsightsDatasetConfigIdentityArgs
    Identity used by DatasetConfig. Structure is documented below.
    location str
    The location of the DatasetConfig.
    retention_period_days int
    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_storage_buckets InsightsDatasetConfigExcludeCloudStorageBucketsArgs
    Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
    exclude_cloud_storage_locations InsightsDatasetConfigExcludeCloudStorageLocationsArgs
    Defines the options for excluding cloud storage locations for the DatasetConfig. Structure is documented below.
    include_cloud_storage_buckets InsightsDatasetConfigIncludeCloudStorageBucketsArgs
    Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
    include_cloud_storage_locations InsightsDatasetConfigIncludeCloudStorageLocationsArgs
    Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
    include_newly_created_buckets bool
    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 InsightsDatasetConfigSourceFoldersArgs
    Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
    source_projects InsightsDatasetConfigSourceProjectsArgs
    Defines the options for providing source projects for the DatasetConfig. Structure is documented below.
    datasetConfigId String
    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.
    retentionPeriodDays Number
    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.
    excludeCloudStorageBuckets Property Map
    Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
    excludeCloudStorageLocations Property Map
    Defines the options for excluding cloud storage locations for the DatasetConfig. Structure is documented below.
    includeCloudStorageBuckets Property Map
    Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
    includeCloudStorageLocations Property Map
    Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
    includeNewlyCreatedBuckets Boolean
    If set to true, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.
    linkDataset Boolean
    organizationNumber 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.
    organizationScope 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.
    sourceFolders Property Map
    Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
    sourceProjects 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:

    CreateTime string
    The UTC time at which the DatasetConfig was created. This is auto-populated.
    DatasetConfigState string
    State of the DatasetConfig.
    Id string
    The provider-assigned unique ID for this managed resource.
    Links List<InsightsDatasetConfigLink>
    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.
    UpdateTime string
    The UTC time at which the DatasetConfig was updated. This is auto-populated.
    CreateTime string
    The UTC time at which the DatasetConfig was created. This is auto-populated.
    DatasetConfigState string
    State of the DatasetConfig.
    Id string
    The provider-assigned unique ID for this managed resource.
    Links []InsightsDatasetConfigLink
    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.
    UpdateTime string
    The UTC time at which the DatasetConfig was updated. This is auto-populated.
    createTime String
    The UTC time at which the DatasetConfig was created. This is auto-populated.
    datasetConfigState String
    State of the DatasetConfig.
    id String
    The provider-assigned unique ID for this managed resource.
    links List<InsightsDatasetConfigLink>
    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.
    updateTime String
    The UTC time at which the DatasetConfig was updated. This is auto-populated.
    createTime string
    The UTC time at which the DatasetConfig was created. This is auto-populated.
    datasetConfigState string
    State of the DatasetConfig.
    id string
    The provider-assigned unique ID for this managed resource.
    links InsightsDatasetConfigLink[]
    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.
    updateTime 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_state str
    State of the DatasetConfig.
    id str
    The provider-assigned unique ID for this managed resource.
    links Sequence[InsightsDatasetConfigLink]
    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.
    createTime String
    The UTC time at which the DatasetConfig was created. This is auto-populated.
    datasetConfigState String
    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.
    updateTime 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.
    The following state arguments are supported:
    CreateTime string
    The UTC time at which the DatasetConfig was created. This is auto-populated.
    DatasetConfigId string
    The user-defined ID of the DatasetConfig
    DatasetConfigState string
    State of the DatasetConfig.
    Description string
    An optional user-provided description for the dataset configuration with a maximum length of 256 characters.
    ExcludeCloudStorageBuckets InsightsDatasetConfigExcludeCloudStorageBuckets
    Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
    ExcludeCloudStorageLocations InsightsDatasetConfigExcludeCloudStorageLocations
    Defines the options for excluding cloud storage locations for the DatasetConfig. Structure is documented below.
    Identity InsightsDatasetConfigIdentity
    Identity used by DatasetConfig. Structure is documented below.
    IncludeCloudStorageBuckets InsightsDatasetConfigIncludeCloudStorageBuckets
    Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
    IncludeCloudStorageLocations InsightsDatasetConfigIncludeCloudStorageLocations
    Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
    IncludeNewlyCreatedBuckets bool
    If set to true, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.
    LinkDataset bool
    Links List<InsightsDatasetConfigLink>
    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).
    OrganizationNumber 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.
    OrganizationScope 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.
    RetentionPeriodDays int
    Number of days of history that must be retained.
    SourceFolders InsightsDatasetConfigSourceFolders
    Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
    SourceProjects InsightsDatasetConfigSourceProjects
    Defines the options for providing source projects for the DatasetConfig. Structure is documented below.
    Uid string
    System generated unique identifier for the resource.
    UpdateTime string
    The UTC time at which the DatasetConfig was updated. This is auto-populated.
    CreateTime string
    The UTC time at which the DatasetConfig was created. This is auto-populated.
    DatasetConfigId string
    The user-defined ID of the DatasetConfig
    DatasetConfigState string
    State of the DatasetConfig.
    Description string
    An optional user-provided description for the dataset configuration with a maximum length of 256 characters.
    ExcludeCloudStorageBuckets InsightsDatasetConfigExcludeCloudStorageBucketsArgs
    Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
    ExcludeCloudStorageLocations InsightsDatasetConfigExcludeCloudStorageLocationsArgs
    Defines the options for excluding cloud storage locations for the DatasetConfig. Structure is documented below.
    Identity InsightsDatasetConfigIdentityArgs
    Identity used by DatasetConfig. Structure is documented below.
    IncludeCloudStorageBuckets InsightsDatasetConfigIncludeCloudStorageBucketsArgs
    Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
    IncludeCloudStorageLocations InsightsDatasetConfigIncludeCloudStorageLocationsArgs
    Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
    IncludeNewlyCreatedBuckets bool
    If set to true, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.
    LinkDataset bool
    Links []InsightsDatasetConfigLinkArgs
    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).
    OrganizationNumber 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.
    OrganizationScope 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.
    RetentionPeriodDays int
    Number of days of history that must be retained.
    SourceFolders InsightsDatasetConfigSourceFoldersArgs
    Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
    SourceProjects InsightsDatasetConfigSourceProjectsArgs
    Defines the options for providing source projects for the DatasetConfig. Structure is documented below.
    Uid string
    System generated unique identifier for the resource.
    UpdateTime string
    The UTC time at which the DatasetConfig was updated. This is auto-populated.
    createTime String
    The UTC time at which the DatasetConfig was created. This is auto-populated.
    datasetConfigId String
    The user-defined ID of the DatasetConfig
    datasetConfigState String
    State of the DatasetConfig.
    description String
    An optional user-provided description for the dataset configuration with a maximum length of 256 characters.
    excludeCloudStorageBuckets InsightsDatasetConfigExcludeCloudStorageBuckets
    Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
    excludeCloudStorageLocations InsightsDatasetConfigExcludeCloudStorageLocations
    Defines the options for excluding cloud storage locations for the DatasetConfig. Structure is documented below.
    identity InsightsDatasetConfigIdentity
    Identity used by DatasetConfig. Structure is documented below.
    includeCloudStorageBuckets InsightsDatasetConfigIncludeCloudStorageBuckets
    Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
    includeCloudStorageLocations InsightsDatasetConfigIncludeCloudStorageLocations
    Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
    includeNewlyCreatedBuckets Boolean
    If set to true, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.
    linkDataset Boolean
    links List<InsightsDatasetConfigLink>
    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).
    organizationNumber 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.
    organizationScope 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.
    retentionPeriodDays Integer
    Number of days of history that must be retained.
    sourceFolders InsightsDatasetConfigSourceFolders
    Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
    sourceProjects InsightsDatasetConfigSourceProjects
    Defines the options for providing source projects for the DatasetConfig. Structure is documented below.
    uid String
    System generated unique identifier for the resource.
    updateTime String
    The UTC time at which the DatasetConfig was updated. This is auto-populated.
    createTime string
    The UTC time at which the DatasetConfig was created. This is auto-populated.
    datasetConfigId string
    The user-defined ID of the DatasetConfig
    datasetConfigState string
    State of the DatasetConfig.
    description string
    An optional user-provided description for the dataset configuration with a maximum length of 256 characters.
    excludeCloudStorageBuckets InsightsDatasetConfigExcludeCloudStorageBuckets
    Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
    excludeCloudStorageLocations InsightsDatasetConfigExcludeCloudStorageLocations
    Defines the options for excluding cloud storage locations for the DatasetConfig. Structure is documented below.
    identity InsightsDatasetConfigIdentity
    Identity used by DatasetConfig. Structure is documented below.
    includeCloudStorageBuckets InsightsDatasetConfigIncludeCloudStorageBuckets
    Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
    includeCloudStorageLocations InsightsDatasetConfigIncludeCloudStorageLocations
    Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
    includeNewlyCreatedBuckets boolean
    If set to true, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.
    linkDataset boolean
    links InsightsDatasetConfigLink[]
    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).
    organizationNumber 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.
    organizationScope 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.
    retentionPeriodDays number
    Number of days of history that must be retained.
    sourceFolders InsightsDatasetConfigSourceFolders
    Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
    sourceProjects InsightsDatasetConfigSourceProjects
    Defines the options for providing source projects for the DatasetConfig. Structure is documented below.
    uid string
    System generated unique identifier for the resource.
    updateTime 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_id str
    The user-defined ID of the DatasetConfig
    dataset_config_state str
    State of the DatasetConfig.
    description str
    An optional user-provided description for the dataset configuration with a maximum length of 256 characters.
    exclude_cloud_storage_buckets InsightsDatasetConfigExcludeCloudStorageBucketsArgs
    Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
    exclude_cloud_storage_locations InsightsDatasetConfigExcludeCloudStorageLocationsArgs
    Defines the options for excluding cloud storage locations for the DatasetConfig. Structure is documented below.
    identity InsightsDatasetConfigIdentityArgs
    Identity used by DatasetConfig. Structure is documented below.
    include_cloud_storage_buckets InsightsDatasetConfigIncludeCloudStorageBucketsArgs
    Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
    include_cloud_storage_locations InsightsDatasetConfigIncludeCloudStorageLocationsArgs
    Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
    include_newly_created_buckets bool
    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[InsightsDatasetConfigLinkArgs]
    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_days int
    Number of days of history that must be retained.
    source_folders InsightsDatasetConfigSourceFoldersArgs
    Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
    source_projects InsightsDatasetConfigSourceProjectsArgs
    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.
    createTime String
    The UTC time at which the DatasetConfig was created. This is auto-populated.
    datasetConfigId String
    The user-defined ID of the DatasetConfig
    datasetConfigState String
    State of the DatasetConfig.
    description String
    An optional user-provided description for the dataset configuration with a maximum length of 256 characters.
    excludeCloudStorageBuckets Property Map
    Defined the options for excluding cloud storage buckets for the DatasetConfig. Structure is documented below.
    excludeCloudStorageLocations Property Map
    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.
    includeCloudStorageBuckets Property Map
    Defines the options for including cloud storage buckets for the DatasetConfig. Structure is documented below.
    includeCloudStorageLocations Property Map
    Defines the options for including cloud storage locations for the DatasetConfig. Structure is documented below.
    includeNewlyCreatedBuckets Boolean
    If set to true, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.
    linkDataset 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).
    organizationNumber 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.
    organizationScope 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.
    retentionPeriodDays Number
    Number of days of history that must be retained.
    sourceFolders Property Map
    Defines the options for providing source folders for the DatasetConfig. Structure is documented below.
    sourceProjects 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.
    updateTime String
    The UTC time at which the DatasetConfig was updated. This is auto-populated.

    Supporting Types

    InsightsDatasetConfigExcludeCloudStorageBuckets, InsightsDatasetConfigExcludeCloudStorageBucketsArgs

    CloudStorageBuckets List<InsightsDatasetConfigExcludeCloudStorageBucketsCloudStorageBucket>
    The list of cloud storage buckets/bucket prefix regexes to exclude in the DatasetConfig. Structure is documented below.
    CloudStorageBuckets []InsightsDatasetConfigExcludeCloudStorageBucketsCloudStorageBucket
    The list of cloud storage buckets/bucket prefix regexes to exclude in the DatasetConfig. Structure is documented below.
    cloudStorageBuckets List<InsightsDatasetConfigExcludeCloudStorageBucketsCloudStorageBucket>
    The list of cloud storage buckets/bucket prefix regexes to exclude in the DatasetConfig. Structure is documented below.
    cloudStorageBuckets InsightsDatasetConfigExcludeCloudStorageBucketsCloudStorageBucket[]
    The list of cloud storage buckets/bucket prefix regexes to exclude in the DatasetConfig. Structure is documented below.
    cloud_storage_buckets Sequence[InsightsDatasetConfigExcludeCloudStorageBucketsCloudStorageBucket]
    The list of cloud storage buckets/bucket prefix regexes to exclude in the DatasetConfig. Structure is documented below.
    cloudStorageBuckets List<Property Map>
    The list of cloud storage buckets/bucket prefix regexes to exclude in the DatasetConfig. Structure is documented below.

    InsightsDatasetConfigExcludeCloudStorageBucketsCloudStorageBucket, InsightsDatasetConfigExcludeCloudStorageBucketsCloudStorageBucketArgs

    BucketName 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.
    BucketPrefixRegex string
    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.
    BucketName 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.
    BucketPrefixRegex string
    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.
    bucketName 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.
    bucketPrefixRegex String
    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.
    bucketName 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.
    bucketPrefixRegex string
    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_regex str
    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.
    bucketName 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.
    bucketPrefixRegex String
    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

    Type string
    Type of identity to use for the DatasetConfig. Possible values are: IDENTITY_TYPE_PER_CONFIG, IDENTITY_TYPE_PER_PROJECT.
    Name string
    (Output) Name of the identity.
    Type string
    Type of identity to use for the DatasetConfig. Possible values are: IDENTITY_TYPE_PER_CONFIG, IDENTITY_TYPE_PER_PROJECT.
    Name string
    (Output) Name of the identity.
    type String
    Type of identity to use for the DatasetConfig. Possible values are: IDENTITY_TYPE_PER_CONFIG, IDENTITY_TYPE_PER_PROJECT.
    name String
    (Output) Name of the identity.
    type string
    Type of identity to use for the DatasetConfig. Possible values are: IDENTITY_TYPE_PER_CONFIG, IDENTITY_TYPE_PER_PROJECT.
    name string
    (Output) Name of the identity.
    type str
    Type of identity to use for the DatasetConfig. Possible values are: IDENTITY_TYPE_PER_CONFIG, IDENTITY_TYPE_PER_PROJECT.
    name str
    (Output) Name of the identity.
    type String
    Type of identity to use for the DatasetConfig. Possible values are: IDENTITY_TYPE_PER_CONFIG, IDENTITY_TYPE_PER_PROJECT.
    name String
    (Output) Name of the identity.

    InsightsDatasetConfigIncludeCloudStorageBuckets, InsightsDatasetConfigIncludeCloudStorageBucketsArgs

    CloudStorageBuckets List<InsightsDatasetConfigIncludeCloudStorageBucketsCloudStorageBucket>
    The list of cloud storage buckets/bucket prefix regexes to include in the DatasetConfig. Structure is documented below.
    CloudStorageBuckets []InsightsDatasetConfigIncludeCloudStorageBucketsCloudStorageBucket
    The list of cloud storage buckets/bucket prefix regexes to include in the DatasetConfig. Structure is documented below.
    cloudStorageBuckets List<InsightsDatasetConfigIncludeCloudStorageBucketsCloudStorageBucket>
    The list of cloud storage buckets/bucket prefix regexes to include in the DatasetConfig. Structure is documented below.
    cloudStorageBuckets InsightsDatasetConfigIncludeCloudStorageBucketsCloudStorageBucket[]
    The list of cloud storage buckets/bucket prefix regexes to include in the DatasetConfig. Structure is documented below.
    cloud_storage_buckets Sequence[InsightsDatasetConfigIncludeCloudStorageBucketsCloudStorageBucket]
    The list of cloud storage buckets/bucket prefix regexes to include in the DatasetConfig. Structure is documented below.
    cloudStorageBuckets List<Property Map>
    The list of cloud storage buckets/bucket prefix regexes to include in the DatasetConfig. Structure is documented below.

    InsightsDatasetConfigIncludeCloudStorageBucketsCloudStorageBucket, InsightsDatasetConfigIncludeCloudStorageBucketsCloudStorageBucketArgs

    BucketName 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.
    BucketPrefixRegex string
    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.
    BucketName 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.
    BucketPrefixRegex string
    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.
    bucketName 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.
    bucketPrefixRegex String
    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.
    bucketName 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.
    bucketPrefixRegex string
    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_regex str
    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.
    bucketName 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.
    bucketPrefixRegex String
    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.
    Dataset string
    (Output) Dataset name for the linked DatasetConfig.
    Linked bool
    (Output) State of the linked DatasetConfig.
    Dataset string
    (Output) Dataset name for the linked DatasetConfig.
    Linked bool
    (Output) State of the linked DatasetConfig.
    dataset String
    (Output) Dataset name for the linked DatasetConfig.
    linked Boolean
    (Output) State of the linked DatasetConfig.
    dataset string
    (Output) Dataset name for the linked DatasetConfig.
    linked boolean
    (Output) State of the linked DatasetConfig.
    dataset str
    (Output) Dataset name for the linked DatasetConfig.
    linked bool
    (Output) State of the linked DatasetConfig.
    dataset String
    (Output) Dataset name for the linked DatasetConfig.
    linked Boolean
    (Output) State of the linked DatasetConfig.

    InsightsDatasetConfigSourceFolders, InsightsDatasetConfigSourceFoldersArgs

    FolderNumbers List<string>
    The list of folder numbers to include in the DatasetConfig.
    FolderNumbers []string
    The list of folder numbers to include in the DatasetConfig.
    folderNumbers List<String>
    The list of folder numbers to include in the DatasetConfig.
    folderNumbers 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.
    folderNumbers List<String>
    The list of folder numbers to include in the DatasetConfig.

    InsightsDatasetConfigSourceProjects, InsightsDatasetConfigSourceProjectsArgs

    ProjectNumbers List<string>
    The list of project numbers to include in the DatasetConfig.
    ProjectNumbers []string
    The list of project numbers to include in the DatasetConfig.
    projectNumbers List<String>
    The list of project numbers to include in the DatasetConfig.
    projectNumbers 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.
    projectNumbers 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.
    gcp logo
    Google Cloud v8.41.1 published on Monday, Aug 25, 2025 by Pulumi