gcp.bigqueryanalyticshub.Listing
Explore with Pulumi AI
A Bigquery Analytics Hub data exchange listing
To get more information about Listing, see:
- API documentation
- How-to Guides
Example Usage
Bigquery Analyticshub Listing Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const listing = new gcp.bigqueryanalyticshub.DataExchange("listing", {
    location: "US",
    dataExchangeId: "my_data_exchange",
    displayName: "my_data_exchange",
    description: "example data exchange",
});
const listingDataset = new gcp.bigquery.Dataset("listing", {
    datasetId: "my_listing",
    friendlyName: "my_listing",
    description: "example data exchange",
    location: "US",
});
const listingListing = new gcp.bigqueryanalyticshub.Listing("listing", {
    location: "US",
    dataExchangeId: listing.dataExchangeId,
    listingId: "my_listing",
    displayName: "my_listing",
    description: "example data exchange",
    bigqueryDataset: {
        dataset: listingDataset.id,
    },
});
import pulumi
import pulumi_gcp as gcp
listing = gcp.bigqueryanalyticshub.DataExchange("listing",
    location="US",
    data_exchange_id="my_data_exchange",
    display_name="my_data_exchange",
    description="example data exchange")
listing_dataset = gcp.bigquery.Dataset("listing",
    dataset_id="my_listing",
    friendly_name="my_listing",
    description="example data exchange",
    location="US")
listing_listing = gcp.bigqueryanalyticshub.Listing("listing",
    location="US",
    data_exchange_id=listing.data_exchange_id,
    listing_id="my_listing",
    display_name="my_listing",
    description="example data exchange",
    bigquery_dataset={
        "dataset": listing_dataset.id,
    })
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/bigquery"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/bigqueryanalyticshub"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		listing, err := bigqueryanalyticshub.NewDataExchange(ctx, "listing", &bigqueryanalyticshub.DataExchangeArgs{
			Location:       pulumi.String("US"),
			DataExchangeId: pulumi.String("my_data_exchange"),
			DisplayName:    pulumi.String("my_data_exchange"),
			Description:    pulumi.String("example data exchange"),
		})
		if err != nil {
			return err
		}
		listingDataset, err := bigquery.NewDataset(ctx, "listing", &bigquery.DatasetArgs{
			DatasetId:    pulumi.String("my_listing"),
			FriendlyName: pulumi.String("my_listing"),
			Description:  pulumi.String("example data exchange"),
			Location:     pulumi.String("US"),
		})
		if err != nil {
			return err
		}
		_, err = bigqueryanalyticshub.NewListing(ctx, "listing", &bigqueryanalyticshub.ListingArgs{
			Location:       pulumi.String("US"),
			DataExchangeId: listing.DataExchangeId,
			ListingId:      pulumi.String("my_listing"),
			DisplayName:    pulumi.String("my_listing"),
			Description:    pulumi.String("example data exchange"),
			BigqueryDataset: &bigqueryanalyticshub.ListingBigqueryDatasetArgs{
				Dataset: listingDataset.ID(),
			},
		})
		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 listing = new Gcp.BigQueryAnalyticsHub.DataExchange("listing", new()
    {
        Location = "US",
        DataExchangeId = "my_data_exchange",
        DisplayName = "my_data_exchange",
        Description = "example data exchange",
    });
    var listingDataset = new Gcp.BigQuery.Dataset("listing", new()
    {
        DatasetId = "my_listing",
        FriendlyName = "my_listing",
        Description = "example data exchange",
        Location = "US",
    });
    var listingListing = new Gcp.BigQueryAnalyticsHub.Listing("listing", new()
    {
        Location = "US",
        DataExchangeId = listing.DataExchangeId,
        ListingId = "my_listing",
        DisplayName = "my_listing",
        Description = "example data exchange",
        BigqueryDataset = new Gcp.BigQueryAnalyticsHub.Inputs.ListingBigqueryDatasetArgs
        {
            Dataset = listingDataset.Id,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.bigqueryanalyticshub.DataExchange;
import com.pulumi.gcp.bigqueryanalyticshub.DataExchangeArgs;
import com.pulumi.gcp.bigquery.Dataset;
import com.pulumi.gcp.bigquery.DatasetArgs;
import com.pulumi.gcp.bigqueryanalyticshub.Listing;
import com.pulumi.gcp.bigqueryanalyticshub.ListingArgs;
import com.pulumi.gcp.bigqueryanalyticshub.inputs.ListingBigqueryDatasetArgs;
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 listing = new DataExchange("listing", DataExchangeArgs.builder()
            .location("US")
            .dataExchangeId("my_data_exchange")
            .displayName("my_data_exchange")
            .description("example data exchange")
            .build());
        var listingDataset = new Dataset("listingDataset", DatasetArgs.builder()
            .datasetId("my_listing")
            .friendlyName("my_listing")
            .description("example data exchange")
            .location("US")
            .build());
        var listingListing = new Listing("listingListing", ListingArgs.builder()
            .location("US")
            .dataExchangeId(listing.dataExchangeId())
            .listingId("my_listing")
            .displayName("my_listing")
            .description("example data exchange")
            .bigqueryDataset(ListingBigqueryDatasetArgs.builder()
                .dataset(listingDataset.id())
                .build())
            .build());
    }
}
resources:
  listing:
    type: gcp:bigqueryanalyticshub:DataExchange
    properties:
      location: US
      dataExchangeId: my_data_exchange
      displayName: my_data_exchange
      description: example data exchange
  listingListing:
    type: gcp:bigqueryanalyticshub:Listing
    name: listing
    properties:
      location: US
      dataExchangeId: ${listing.dataExchangeId}
      listingId: my_listing
      displayName: my_listing
      description: example data exchange
      bigqueryDataset:
        dataset: ${listingDataset.id}
  listingDataset:
    type: gcp:bigquery:Dataset
    name: listing
    properties:
      datasetId: my_listing
      friendlyName: my_listing
      description: example data exchange
      location: US
Bigquery Analyticshub Listing Restricted
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const listing = new gcp.bigqueryanalyticshub.DataExchange("listing", {
    location: "US",
    dataExchangeId: "my_data_exchange",
    displayName: "my_data_exchange",
    description: "example data exchange",
});
const listingDataset = new gcp.bigquery.Dataset("listing", {
    datasetId: "my_listing",
    friendlyName: "my_listing",
    description: "example data exchange",
    location: "US",
});
const listingListing = new gcp.bigqueryanalyticshub.Listing("listing", {
    location: "US",
    dataExchangeId: listing.dataExchangeId,
    listingId: "my_listing",
    displayName: "my_listing",
    description: "example data exchange",
    bigqueryDataset: {
        dataset: listingDataset.id,
    },
    restrictedExportConfig: {
        enabled: true,
        restrictQueryResult: true,
    },
});
import pulumi
import pulumi_gcp as gcp
listing = gcp.bigqueryanalyticshub.DataExchange("listing",
    location="US",
    data_exchange_id="my_data_exchange",
    display_name="my_data_exchange",
    description="example data exchange")
listing_dataset = gcp.bigquery.Dataset("listing",
    dataset_id="my_listing",
    friendly_name="my_listing",
    description="example data exchange",
    location="US")
listing_listing = gcp.bigqueryanalyticshub.Listing("listing",
    location="US",
    data_exchange_id=listing.data_exchange_id,
    listing_id="my_listing",
    display_name="my_listing",
    description="example data exchange",
    bigquery_dataset={
        "dataset": listing_dataset.id,
    },
    restricted_export_config={
        "enabled": True,
        "restrict_query_result": True,
    })
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/bigquery"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/bigqueryanalyticshub"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		listing, err := bigqueryanalyticshub.NewDataExchange(ctx, "listing", &bigqueryanalyticshub.DataExchangeArgs{
			Location:       pulumi.String("US"),
			DataExchangeId: pulumi.String("my_data_exchange"),
			DisplayName:    pulumi.String("my_data_exchange"),
			Description:    pulumi.String("example data exchange"),
		})
		if err != nil {
			return err
		}
		listingDataset, err := bigquery.NewDataset(ctx, "listing", &bigquery.DatasetArgs{
			DatasetId:    pulumi.String("my_listing"),
			FriendlyName: pulumi.String("my_listing"),
			Description:  pulumi.String("example data exchange"),
			Location:     pulumi.String("US"),
		})
		if err != nil {
			return err
		}
		_, err = bigqueryanalyticshub.NewListing(ctx, "listing", &bigqueryanalyticshub.ListingArgs{
			Location:       pulumi.String("US"),
			DataExchangeId: listing.DataExchangeId,
			ListingId:      pulumi.String("my_listing"),
			DisplayName:    pulumi.String("my_listing"),
			Description:    pulumi.String("example data exchange"),
			BigqueryDataset: &bigqueryanalyticshub.ListingBigqueryDatasetArgs{
				Dataset: listingDataset.ID(),
			},
			RestrictedExportConfig: &bigqueryanalyticshub.ListingRestrictedExportConfigArgs{
				Enabled:             pulumi.Bool(true),
				RestrictQueryResult: pulumi.Bool(true),
			},
		})
		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 listing = new Gcp.BigQueryAnalyticsHub.DataExchange("listing", new()
    {
        Location = "US",
        DataExchangeId = "my_data_exchange",
        DisplayName = "my_data_exchange",
        Description = "example data exchange",
    });
    var listingDataset = new Gcp.BigQuery.Dataset("listing", new()
    {
        DatasetId = "my_listing",
        FriendlyName = "my_listing",
        Description = "example data exchange",
        Location = "US",
    });
    var listingListing = new Gcp.BigQueryAnalyticsHub.Listing("listing", new()
    {
        Location = "US",
        DataExchangeId = listing.DataExchangeId,
        ListingId = "my_listing",
        DisplayName = "my_listing",
        Description = "example data exchange",
        BigqueryDataset = new Gcp.BigQueryAnalyticsHub.Inputs.ListingBigqueryDatasetArgs
        {
            Dataset = listingDataset.Id,
        },
        RestrictedExportConfig = new Gcp.BigQueryAnalyticsHub.Inputs.ListingRestrictedExportConfigArgs
        {
            Enabled = true,
            RestrictQueryResult = true,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.bigqueryanalyticshub.DataExchange;
import com.pulumi.gcp.bigqueryanalyticshub.DataExchangeArgs;
import com.pulumi.gcp.bigquery.Dataset;
import com.pulumi.gcp.bigquery.DatasetArgs;
import com.pulumi.gcp.bigqueryanalyticshub.Listing;
import com.pulumi.gcp.bigqueryanalyticshub.ListingArgs;
import com.pulumi.gcp.bigqueryanalyticshub.inputs.ListingBigqueryDatasetArgs;
import com.pulumi.gcp.bigqueryanalyticshub.inputs.ListingRestrictedExportConfigArgs;
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 listing = new DataExchange("listing", DataExchangeArgs.builder()
            .location("US")
            .dataExchangeId("my_data_exchange")
            .displayName("my_data_exchange")
            .description("example data exchange")
            .build());
        var listingDataset = new Dataset("listingDataset", DatasetArgs.builder()
            .datasetId("my_listing")
            .friendlyName("my_listing")
            .description("example data exchange")
            .location("US")
            .build());
        var listingListing = new Listing("listingListing", ListingArgs.builder()
            .location("US")
            .dataExchangeId(listing.dataExchangeId())
            .listingId("my_listing")
            .displayName("my_listing")
            .description("example data exchange")
            .bigqueryDataset(ListingBigqueryDatasetArgs.builder()
                .dataset(listingDataset.id())
                .build())
            .restrictedExportConfig(ListingRestrictedExportConfigArgs.builder()
                .enabled(true)
                .restrictQueryResult(true)
                .build())
            .build());
    }
}
resources:
  listing:
    type: gcp:bigqueryanalyticshub:DataExchange
    properties:
      location: US
      dataExchangeId: my_data_exchange
      displayName: my_data_exchange
      description: example data exchange
  listingListing:
    type: gcp:bigqueryanalyticshub:Listing
    name: listing
    properties:
      location: US
      dataExchangeId: ${listing.dataExchangeId}
      listingId: my_listing
      displayName: my_listing
      description: example data exchange
      bigqueryDataset:
        dataset: ${listingDataset.id}
      restrictedExportConfig:
        enabled: true
        restrictQueryResult: true
  listingDataset:
    type: gcp:bigquery:Dataset
    name: listing
    properties:
      datasetId: my_listing
      friendlyName: my_listing
      description: example data exchange
      location: US
Bigquery Analyticshub Listing Dcr
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const listing = new gcp.bigqueryanalyticshub.DataExchange("listing", {
    location: "US",
    dataExchangeId: "dcr_data_exchange",
    displayName: "dcr_data_exchange",
    description: "example dcr data exchange",
    sharingEnvironmentConfig: {
        dcrExchangeConfig: {},
    },
});
const listingDataset = new gcp.bigquery.Dataset("listing", {
    datasetId: "dcr_listing",
    friendlyName: "dcr_listing",
    description: "example dcr data exchange",
    location: "US",
});
const listingTable = new gcp.bigquery.Table("listing", {
    deletionProtection: false,
    tableId: "dcr_listing",
    datasetId: listingDataset.datasetId,
    schema: `[
  {
    "name": "name",
    "type": "STRING",
    "mode": "NULLABLE"
  },
  {
    "name": "post_abbr",
    "type": "STRING",
    "mode": "NULLABLE"
  },
  {
    "name": "date",
    "type": "DATE",
    "mode": "NULLABLE"
  }
]
`,
});
const listingListing = new gcp.bigqueryanalyticshub.Listing("listing", {
    location: "US",
    dataExchangeId: listing.dataExchangeId,
    listingId: "dcr_listing",
    displayName: "dcr_listing",
    description: "example dcr data exchange",
    bigqueryDataset: {
        dataset: listingDataset.id,
        selectedResources: [{
            table: listingTable.id,
        }],
    },
    restrictedExportConfig: {
        enabled: true,
    },
});
import pulumi
import pulumi_gcp as gcp
listing = gcp.bigqueryanalyticshub.DataExchange("listing",
    location="US",
    data_exchange_id="dcr_data_exchange",
    display_name="dcr_data_exchange",
    description="example dcr data exchange",
    sharing_environment_config={
        "dcr_exchange_config": {},
    })
listing_dataset = gcp.bigquery.Dataset("listing",
    dataset_id="dcr_listing",
    friendly_name="dcr_listing",
    description="example dcr data exchange",
    location="US")
listing_table = gcp.bigquery.Table("listing",
    deletion_protection=False,
    table_id="dcr_listing",
    dataset_id=listing_dataset.dataset_id,
    schema="""[
  {
    "name": "name",
    "type": "STRING",
    "mode": "NULLABLE"
  },
  {
    "name": "post_abbr",
    "type": "STRING",
    "mode": "NULLABLE"
  },
  {
    "name": "date",
    "type": "DATE",
    "mode": "NULLABLE"
  }
]
""")
listing_listing = gcp.bigqueryanalyticshub.Listing("listing",
    location="US",
    data_exchange_id=listing.data_exchange_id,
    listing_id="dcr_listing",
    display_name="dcr_listing",
    description="example dcr data exchange",
    bigquery_dataset={
        "dataset": listing_dataset.id,
        "selected_resources": [{
            "table": listing_table.id,
        }],
    },
    restricted_export_config={
        "enabled": True,
    })
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/bigquery"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/bigqueryanalyticshub"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		listing, err := bigqueryanalyticshub.NewDataExchange(ctx, "listing", &bigqueryanalyticshub.DataExchangeArgs{
			Location:       pulumi.String("US"),
			DataExchangeId: pulumi.String("dcr_data_exchange"),
			DisplayName:    pulumi.String("dcr_data_exchange"),
			Description:    pulumi.String("example dcr data exchange"),
			SharingEnvironmentConfig: &bigqueryanalyticshub.DataExchangeSharingEnvironmentConfigArgs{
				DcrExchangeConfig: &bigqueryanalyticshub.DataExchangeSharingEnvironmentConfigDcrExchangeConfigArgs{},
			},
		})
		if err != nil {
			return err
		}
		listingDataset, err := bigquery.NewDataset(ctx, "listing", &bigquery.DatasetArgs{
			DatasetId:    pulumi.String("dcr_listing"),
			FriendlyName: pulumi.String("dcr_listing"),
			Description:  pulumi.String("example dcr data exchange"),
			Location:     pulumi.String("US"),
		})
		if err != nil {
			return err
		}
		listingTable, err := bigquery.NewTable(ctx, "listing", &bigquery.TableArgs{
			DeletionProtection: pulumi.Bool(false),
			TableId:            pulumi.String("dcr_listing"),
			DatasetId:          listingDataset.DatasetId,
			Schema: pulumi.String(`[
  {
    "name": "name",
    "type": "STRING",
    "mode": "NULLABLE"
  },
  {
    "name": "post_abbr",
    "type": "STRING",
    "mode": "NULLABLE"
  },
  {
    "name": "date",
    "type": "DATE",
    "mode": "NULLABLE"
  }
]
`),
		})
		if err != nil {
			return err
		}
		_, err = bigqueryanalyticshub.NewListing(ctx, "listing", &bigqueryanalyticshub.ListingArgs{
			Location:       pulumi.String("US"),
			DataExchangeId: listing.DataExchangeId,
			ListingId:      pulumi.String("dcr_listing"),
			DisplayName:    pulumi.String("dcr_listing"),
			Description:    pulumi.String("example dcr data exchange"),
			BigqueryDataset: &bigqueryanalyticshub.ListingBigqueryDatasetArgs{
				Dataset: listingDataset.ID(),
				SelectedResources: bigqueryanalyticshub.ListingBigqueryDatasetSelectedResourceArray{
					&bigqueryanalyticshub.ListingBigqueryDatasetSelectedResourceArgs{
						Table: listingTable.ID(),
					},
				},
			},
			RestrictedExportConfig: &bigqueryanalyticshub.ListingRestrictedExportConfigArgs{
				Enabled: pulumi.Bool(true),
			},
		})
		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 listing = new Gcp.BigQueryAnalyticsHub.DataExchange("listing", new()
    {
        Location = "US",
        DataExchangeId = "dcr_data_exchange",
        DisplayName = "dcr_data_exchange",
        Description = "example dcr data exchange",
        SharingEnvironmentConfig = new Gcp.BigQueryAnalyticsHub.Inputs.DataExchangeSharingEnvironmentConfigArgs
        {
            DcrExchangeConfig = null,
        },
    });
    var listingDataset = new Gcp.BigQuery.Dataset("listing", new()
    {
        DatasetId = "dcr_listing",
        FriendlyName = "dcr_listing",
        Description = "example dcr data exchange",
        Location = "US",
    });
    var listingTable = new Gcp.BigQuery.Table("listing", new()
    {
        DeletionProtection = false,
        TableId = "dcr_listing",
        DatasetId = listingDataset.DatasetId,
        Schema = @"[
  {
    ""name"": ""name"",
    ""type"": ""STRING"",
    ""mode"": ""NULLABLE""
  },
  {
    ""name"": ""post_abbr"",
    ""type"": ""STRING"",
    ""mode"": ""NULLABLE""
  },
  {
    ""name"": ""date"",
    ""type"": ""DATE"",
    ""mode"": ""NULLABLE""
  }
]
",
    });
    var listingListing = new Gcp.BigQueryAnalyticsHub.Listing("listing", new()
    {
        Location = "US",
        DataExchangeId = listing.DataExchangeId,
        ListingId = "dcr_listing",
        DisplayName = "dcr_listing",
        Description = "example dcr data exchange",
        BigqueryDataset = new Gcp.BigQueryAnalyticsHub.Inputs.ListingBigqueryDatasetArgs
        {
            Dataset = listingDataset.Id,
            SelectedResources = new[]
            {
                new Gcp.BigQueryAnalyticsHub.Inputs.ListingBigqueryDatasetSelectedResourceArgs
                {
                    Table = listingTable.Id,
                },
            },
        },
        RestrictedExportConfig = new Gcp.BigQueryAnalyticsHub.Inputs.ListingRestrictedExportConfigArgs
        {
            Enabled = true,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.bigqueryanalyticshub.DataExchange;
import com.pulumi.gcp.bigqueryanalyticshub.DataExchangeArgs;
import com.pulumi.gcp.bigqueryanalyticshub.inputs.DataExchangeSharingEnvironmentConfigArgs;
import com.pulumi.gcp.bigqueryanalyticshub.inputs.DataExchangeSharingEnvironmentConfigDcrExchangeConfigArgs;
import com.pulumi.gcp.bigquery.Dataset;
import com.pulumi.gcp.bigquery.DatasetArgs;
import com.pulumi.gcp.bigquery.Table;
import com.pulumi.gcp.bigquery.TableArgs;
import com.pulumi.gcp.bigqueryanalyticshub.Listing;
import com.pulumi.gcp.bigqueryanalyticshub.ListingArgs;
import com.pulumi.gcp.bigqueryanalyticshub.inputs.ListingBigqueryDatasetArgs;
import com.pulumi.gcp.bigqueryanalyticshub.inputs.ListingRestrictedExportConfigArgs;
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 listing = new DataExchange("listing", DataExchangeArgs.builder()
            .location("US")
            .dataExchangeId("dcr_data_exchange")
            .displayName("dcr_data_exchange")
            .description("example dcr data exchange")
            .sharingEnvironmentConfig(DataExchangeSharingEnvironmentConfigArgs.builder()
                .dcrExchangeConfig()
                .build())
            .build());
        var listingDataset = new Dataset("listingDataset", DatasetArgs.builder()
            .datasetId("dcr_listing")
            .friendlyName("dcr_listing")
            .description("example dcr data exchange")
            .location("US")
            .build());
        var listingTable = new Table("listingTable", TableArgs.builder()
            .deletionProtection(false)
            .tableId("dcr_listing")
            .datasetId(listingDataset.datasetId())
            .schema("""
[
  {
    "name": "name",
    "type": "STRING",
    "mode": "NULLABLE"
  },
  {
    "name": "post_abbr",
    "type": "STRING",
    "mode": "NULLABLE"
  },
  {
    "name": "date",
    "type": "DATE",
    "mode": "NULLABLE"
  }
]
            """)
            .build());
        var listingListing = new Listing("listingListing", ListingArgs.builder()
            .location("US")
            .dataExchangeId(listing.dataExchangeId())
            .listingId("dcr_listing")
            .displayName("dcr_listing")
            .description("example dcr data exchange")
            .bigqueryDataset(ListingBigqueryDatasetArgs.builder()
                .dataset(listingDataset.id())
                .selectedResources(ListingBigqueryDatasetSelectedResourceArgs.builder()
                    .table(listingTable.id())
                    .build())
                .build())
            .restrictedExportConfig(ListingRestrictedExportConfigArgs.builder()
                .enabled(true)
                .build())
            .build());
    }
}
resources:
  listing:
    type: gcp:bigqueryanalyticshub:DataExchange
    properties:
      location: US
      dataExchangeId: dcr_data_exchange
      displayName: dcr_data_exchange
      description: example dcr data exchange
      sharingEnvironmentConfig:
        dcrExchangeConfig: {}
  listingListing:
    type: gcp:bigqueryanalyticshub:Listing
    name: listing
    properties:
      location: US
      dataExchangeId: ${listing.dataExchangeId}
      listingId: dcr_listing
      displayName: dcr_listing
      description: example dcr data exchange
      bigqueryDataset:
        dataset: ${listingDataset.id}
        selectedResources:
          - table: ${listingTable.id}
      restrictedExportConfig:
        enabled: true
  listingDataset:
    type: gcp:bigquery:Dataset
    name: listing
    properties:
      datasetId: dcr_listing
      friendlyName: dcr_listing
      description: example dcr data exchange
      location: US
  listingTable:
    type: gcp:bigquery:Table
    name: listing
    properties:
      deletionProtection: false
      tableId: dcr_listing
      datasetId: ${listingDataset.datasetId}
      schema: |
        [
          {
            "name": "name",
            "type": "STRING",
            "mode": "NULLABLE"
          },
          {
            "name": "post_abbr",
            "type": "STRING",
            "mode": "NULLABLE"
          },
          {
            "name": "date",
            "type": "DATE",
            "mode": "NULLABLE"
          }
        ]        
Create Listing Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Listing(name: string, args: ListingArgs, opts?: CustomResourceOptions);@overload
def Listing(resource_name: str,
            args: ListingArgs,
            opts: Optional[ResourceOptions] = None)
@overload
def Listing(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            display_name: Optional[str] = None,
            location: Optional[str] = None,
            data_exchange_id: Optional[str] = None,
            bigquery_dataset: Optional[ListingBigqueryDatasetArgs] = None,
            listing_id: Optional[str] = None,
            data_provider: Optional[ListingDataProviderArgs] = None,
            documentation: Optional[str] = None,
            icon: Optional[str] = None,
            description: Optional[str] = None,
            categories: Optional[Sequence[str]] = None,
            primary_contact: Optional[str] = None,
            project: Optional[str] = None,
            publisher: Optional[ListingPublisherArgs] = None,
            request_access: Optional[str] = None,
            restricted_export_config: Optional[ListingRestrictedExportConfigArgs] = None)func NewListing(ctx *Context, name string, args ListingArgs, opts ...ResourceOption) (*Listing, error)public Listing(string name, ListingArgs args, CustomResourceOptions? opts = null)
public Listing(String name, ListingArgs args)
public Listing(String name, ListingArgs args, CustomResourceOptions options)
type: gcp:bigqueryanalyticshub:Listing
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 ListingArgs
- 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 ListingArgs
- 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 ListingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ListingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ListingArgs
- 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 listingResource = new Gcp.BigQueryAnalyticsHub.Listing("listingResource", new()
{
    DisplayName = "string",
    Location = "string",
    DataExchangeId = "string",
    BigqueryDataset = new Gcp.BigQueryAnalyticsHub.Inputs.ListingBigqueryDatasetArgs
    {
        Dataset = "string",
        SelectedResources = new[]
        {
            new Gcp.BigQueryAnalyticsHub.Inputs.ListingBigqueryDatasetSelectedResourceArgs
            {
                Table = "string",
            },
        },
    },
    ListingId = "string",
    DataProvider = new Gcp.BigQueryAnalyticsHub.Inputs.ListingDataProviderArgs
    {
        Name = "string",
        PrimaryContact = "string",
    },
    Documentation = "string",
    Icon = "string",
    Description = "string",
    Categories = new[]
    {
        "string",
    },
    PrimaryContact = "string",
    Project = "string",
    Publisher = new Gcp.BigQueryAnalyticsHub.Inputs.ListingPublisherArgs
    {
        Name = "string",
        PrimaryContact = "string",
    },
    RequestAccess = "string",
    RestrictedExportConfig = new Gcp.BigQueryAnalyticsHub.Inputs.ListingRestrictedExportConfigArgs
    {
        Enabled = false,
        RestrictDirectTableAccess = false,
        RestrictQueryResult = false,
    },
});
example, err := bigqueryanalyticshub.NewListing(ctx, "listingResource", &bigqueryanalyticshub.ListingArgs{
	DisplayName:    pulumi.String("string"),
	Location:       pulumi.String("string"),
	DataExchangeId: pulumi.String("string"),
	BigqueryDataset: &bigqueryanalyticshub.ListingBigqueryDatasetArgs{
		Dataset: pulumi.String("string"),
		SelectedResources: bigqueryanalyticshub.ListingBigqueryDatasetSelectedResourceArray{
			&bigqueryanalyticshub.ListingBigqueryDatasetSelectedResourceArgs{
				Table: pulumi.String("string"),
			},
		},
	},
	ListingId: pulumi.String("string"),
	DataProvider: &bigqueryanalyticshub.ListingDataProviderArgs{
		Name:           pulumi.String("string"),
		PrimaryContact: pulumi.String("string"),
	},
	Documentation: pulumi.String("string"),
	Icon:          pulumi.String("string"),
	Description:   pulumi.String("string"),
	Categories: pulumi.StringArray{
		pulumi.String("string"),
	},
	PrimaryContact: pulumi.String("string"),
	Project:        pulumi.String("string"),
	Publisher: &bigqueryanalyticshub.ListingPublisherArgs{
		Name:           pulumi.String("string"),
		PrimaryContact: pulumi.String("string"),
	},
	RequestAccess: pulumi.String("string"),
	RestrictedExportConfig: &bigqueryanalyticshub.ListingRestrictedExportConfigArgs{
		Enabled:                   pulumi.Bool(false),
		RestrictDirectTableAccess: pulumi.Bool(false),
		RestrictQueryResult:       pulumi.Bool(false),
	},
})
var listingResource = new Listing("listingResource", ListingArgs.builder()
    .displayName("string")
    .location("string")
    .dataExchangeId("string")
    .bigqueryDataset(ListingBigqueryDatasetArgs.builder()
        .dataset("string")
        .selectedResources(ListingBigqueryDatasetSelectedResourceArgs.builder()
            .table("string")
            .build())
        .build())
    .listingId("string")
    .dataProvider(ListingDataProviderArgs.builder()
        .name("string")
        .primaryContact("string")
        .build())
    .documentation("string")
    .icon("string")
    .description("string")
    .categories("string")
    .primaryContact("string")
    .project("string")
    .publisher(ListingPublisherArgs.builder()
        .name("string")
        .primaryContact("string")
        .build())
    .requestAccess("string")
    .restrictedExportConfig(ListingRestrictedExportConfigArgs.builder()
        .enabled(false)
        .restrictDirectTableAccess(false)
        .restrictQueryResult(false)
        .build())
    .build());
listing_resource = gcp.bigqueryanalyticshub.Listing("listingResource",
    display_name="string",
    location="string",
    data_exchange_id="string",
    bigquery_dataset={
        "dataset": "string",
        "selected_resources": [{
            "table": "string",
        }],
    },
    listing_id="string",
    data_provider={
        "name": "string",
        "primary_contact": "string",
    },
    documentation="string",
    icon="string",
    description="string",
    categories=["string"],
    primary_contact="string",
    project="string",
    publisher={
        "name": "string",
        "primary_contact": "string",
    },
    request_access="string",
    restricted_export_config={
        "enabled": False,
        "restrict_direct_table_access": False,
        "restrict_query_result": False,
    })
const listingResource = new gcp.bigqueryanalyticshub.Listing("listingResource", {
    displayName: "string",
    location: "string",
    dataExchangeId: "string",
    bigqueryDataset: {
        dataset: "string",
        selectedResources: [{
            table: "string",
        }],
    },
    listingId: "string",
    dataProvider: {
        name: "string",
        primaryContact: "string",
    },
    documentation: "string",
    icon: "string",
    description: "string",
    categories: ["string"],
    primaryContact: "string",
    project: "string",
    publisher: {
        name: "string",
        primaryContact: "string",
    },
    requestAccess: "string",
    restrictedExportConfig: {
        enabled: false,
        restrictDirectTableAccess: false,
        restrictQueryResult: false,
    },
});
type: gcp:bigqueryanalyticshub:Listing
properties:
    bigqueryDataset:
        dataset: string
        selectedResources:
            - table: string
    categories:
        - string
    dataExchangeId: string
    dataProvider:
        name: string
        primaryContact: string
    description: string
    displayName: string
    documentation: string
    icon: string
    listingId: string
    location: string
    primaryContact: string
    project: string
    publisher:
        name: string
        primaryContact: string
    requestAccess: string
    restrictedExportConfig:
        enabled: false
        restrictDirectTableAccess: false
        restrictQueryResult: false
Listing 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 Listing resource accepts the following input properties:
- BigqueryDataset ListingBigquery Dataset 
- Shared dataset i.e. BigQuery dataset source. Structure is documented below.
- DataExchange stringId 
- The ID of the data exchange. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- DisplayName string
- Human-readable display name of the listing. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces.
- ListingId string
- The ID of the listing. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- Location string
- The name of the location this data exchange listing.
- Categories List<string>
- Categories of the listing. Up to two categories are allowed.
- DataProvider ListingData Provider 
- Details of the data provider who owns the source data.
- Description string
- Short description of the listing. The description must not contain Unicode non-characters and C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF).
- Documentation string
- Documentation describing the listing.
- Icon string
- Base64 encoded image representing the listing.
- PrimaryContact string
- Email or URL of the primary point of contact of the listing.
- Project string
- Publisher
ListingPublisher 
- Details of the publisher who owns the listing and who can share the source data.
- RequestAccess string
- Email or URL of the request access of the listing. Subscribers can use this reference to request access.
- RestrictedExport ListingConfig Restricted Export Config 
- If set, restricted export configuration will be propagated and enforced on the linked dataset.
- BigqueryDataset ListingBigquery Dataset Args 
- Shared dataset i.e. BigQuery dataset source. Structure is documented below.
- DataExchange stringId 
- The ID of the data exchange. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- DisplayName string
- Human-readable display name of the listing. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces.
- ListingId string
- The ID of the listing. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- Location string
- The name of the location this data exchange listing.
- Categories []string
- Categories of the listing. Up to two categories are allowed.
- DataProvider ListingData Provider Args 
- Details of the data provider who owns the source data.
- Description string
- Short description of the listing. The description must not contain Unicode non-characters and C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF).
- Documentation string
- Documentation describing the listing.
- Icon string
- Base64 encoded image representing the listing.
- PrimaryContact string
- Email or URL of the primary point of contact of the listing.
- Project string
- Publisher
ListingPublisher Args 
- Details of the publisher who owns the listing and who can share the source data.
- RequestAccess string
- Email or URL of the request access of the listing. Subscribers can use this reference to request access.
- RestrictedExport ListingConfig Restricted Export Config Args 
- If set, restricted export configuration will be propagated and enforced on the linked dataset.
- bigqueryDataset ListingBigquery Dataset 
- Shared dataset i.e. BigQuery dataset source. Structure is documented below.
- dataExchange StringId 
- The ID of the data exchange. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- displayName String
- Human-readable display name of the listing. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces.
- listingId String
- The ID of the listing. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- location String
- The name of the location this data exchange listing.
- categories List<String>
- Categories of the listing. Up to two categories are allowed.
- dataProvider ListingData Provider 
- Details of the data provider who owns the source data.
- description String
- Short description of the listing. The description must not contain Unicode non-characters and C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF).
- documentation String
- Documentation describing the listing.
- icon String
- Base64 encoded image representing the listing.
- primaryContact String
- Email or URL of the primary point of contact of the listing.
- project String
- publisher
ListingPublisher 
- Details of the publisher who owns the listing and who can share the source data.
- requestAccess String
- Email or URL of the request access of the listing. Subscribers can use this reference to request access.
- restrictedExport ListingConfig Restricted Export Config 
- If set, restricted export configuration will be propagated and enforced on the linked dataset.
- bigqueryDataset ListingBigquery Dataset 
- Shared dataset i.e. BigQuery dataset source. Structure is documented below.
- dataExchange stringId 
- The ID of the data exchange. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- displayName string
- Human-readable display name of the listing. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces.
- listingId string
- The ID of the listing. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- location string
- The name of the location this data exchange listing.
- categories string[]
- Categories of the listing. Up to two categories are allowed.
- dataProvider ListingData Provider 
- Details of the data provider who owns the source data.
- description string
- Short description of the listing. The description must not contain Unicode non-characters and C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF).
- documentation string
- Documentation describing the listing.
- icon string
- Base64 encoded image representing the listing.
- primaryContact string
- Email or URL of the primary point of contact of the listing.
- project string
- publisher
ListingPublisher 
- Details of the publisher who owns the listing and who can share the source data.
- requestAccess string
- Email or URL of the request access of the listing. Subscribers can use this reference to request access.
- restrictedExport ListingConfig Restricted Export Config 
- If set, restricted export configuration will be propagated and enforced on the linked dataset.
- bigquery_dataset ListingBigquery Dataset Args 
- Shared dataset i.e. BigQuery dataset source. Structure is documented below.
- data_exchange_ strid 
- The ID of the data exchange. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- display_name str
- Human-readable display name of the listing. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces.
- listing_id str
- The ID of the listing. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- location str
- The name of the location this data exchange listing.
- categories Sequence[str]
- Categories of the listing. Up to two categories are allowed.
- data_provider ListingData Provider Args 
- Details of the data provider who owns the source data.
- description str
- Short description of the listing. The description must not contain Unicode non-characters and C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF).
- documentation str
- Documentation describing the listing.
- icon str
- Base64 encoded image representing the listing.
- primary_contact str
- Email or URL of the primary point of contact of the listing.
- project str
- publisher
ListingPublisher Args 
- Details of the publisher who owns the listing and who can share the source data.
- request_access str
- Email or URL of the request access of the listing. Subscribers can use this reference to request access.
- restricted_export_ Listingconfig Restricted Export Config Args 
- If set, restricted export configuration will be propagated and enforced on the linked dataset.
- bigqueryDataset Property Map
- Shared dataset i.e. BigQuery dataset source. Structure is documented below.
- dataExchange StringId 
- The ID of the data exchange. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- displayName String
- Human-readable display name of the listing. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces.
- listingId String
- The ID of the listing. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- location String
- The name of the location this data exchange listing.
- categories List<String>
- Categories of the listing. Up to two categories are allowed.
- dataProvider Property Map
- Details of the data provider who owns the source data.
- description String
- Short description of the listing. The description must not contain Unicode non-characters and C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF).
- documentation String
- Documentation describing the listing.
- icon String
- Base64 encoded image representing the listing.
- primaryContact String
- Email or URL of the primary point of contact of the listing.
- project String
- publisher Property Map
- Details of the publisher who owns the listing and who can share the source data.
- requestAccess String
- Email or URL of the request access of the listing. Subscribers can use this reference to request access.
- restrictedExport Property MapConfig 
- If set, restricted export configuration will be propagated and enforced on the linked dataset.
Outputs
All input properties are implicitly available as output properties. Additionally, the Listing resource produces the following output properties:
Look up Existing Listing Resource
Get an existing Listing 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?: ListingState, opts?: CustomResourceOptions): Listing@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        bigquery_dataset: Optional[ListingBigqueryDatasetArgs] = None,
        categories: Optional[Sequence[str]] = None,
        data_exchange_id: Optional[str] = None,
        data_provider: Optional[ListingDataProviderArgs] = None,
        description: Optional[str] = None,
        display_name: Optional[str] = None,
        documentation: Optional[str] = None,
        icon: Optional[str] = None,
        listing_id: Optional[str] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        primary_contact: Optional[str] = None,
        project: Optional[str] = None,
        publisher: Optional[ListingPublisherArgs] = None,
        request_access: Optional[str] = None,
        restricted_export_config: Optional[ListingRestrictedExportConfigArgs] = None) -> Listingfunc GetListing(ctx *Context, name string, id IDInput, state *ListingState, opts ...ResourceOption) (*Listing, error)public static Listing Get(string name, Input<string> id, ListingState? state, CustomResourceOptions? opts = null)public static Listing get(String name, Output<String> id, ListingState state, CustomResourceOptions options)resources:  _:    type: gcp:bigqueryanalyticshub:Listing    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.
- BigqueryDataset ListingBigquery Dataset 
- Shared dataset i.e. BigQuery dataset source. Structure is documented below.
- Categories List<string>
- Categories of the listing. Up to two categories are allowed.
- DataExchange stringId 
- The ID of the data exchange. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- DataProvider ListingData Provider 
- Details of the data provider who owns the source data.
- Description string
- Short description of the listing. The description must not contain Unicode non-characters and C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF).
- DisplayName string
- Human-readable display name of the listing. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces.
- Documentation string
- Documentation describing the listing.
- Icon string
- Base64 encoded image representing the listing.
- ListingId string
- The ID of the listing. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- Location string
- The name of the location this data exchange listing.
- Name string
- The resource name of the listing. e.g. "projects/myproject/locations/US/dataExchanges/123/listings/456"
- PrimaryContact string
- Email or URL of the primary point of contact of the listing.
- Project string
- Publisher
ListingPublisher 
- Details of the publisher who owns the listing and who can share the source data.
- RequestAccess string
- Email or URL of the request access of the listing. Subscribers can use this reference to request access.
- RestrictedExport ListingConfig Restricted Export Config 
- If set, restricted export configuration will be propagated and enforced on the linked dataset.
- BigqueryDataset ListingBigquery Dataset Args 
- Shared dataset i.e. BigQuery dataset source. Structure is documented below.
- Categories []string
- Categories of the listing. Up to two categories are allowed.
- DataExchange stringId 
- The ID of the data exchange. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- DataProvider ListingData Provider Args 
- Details of the data provider who owns the source data.
- Description string
- Short description of the listing. The description must not contain Unicode non-characters and C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF).
- DisplayName string
- Human-readable display name of the listing. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces.
- Documentation string
- Documentation describing the listing.
- Icon string
- Base64 encoded image representing the listing.
- ListingId string
- The ID of the listing. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- Location string
- The name of the location this data exchange listing.
- Name string
- The resource name of the listing. e.g. "projects/myproject/locations/US/dataExchanges/123/listings/456"
- PrimaryContact string
- Email or URL of the primary point of contact of the listing.
- Project string
- Publisher
ListingPublisher Args 
- Details of the publisher who owns the listing and who can share the source data.
- RequestAccess string
- Email or URL of the request access of the listing. Subscribers can use this reference to request access.
- RestrictedExport ListingConfig Restricted Export Config Args 
- If set, restricted export configuration will be propagated and enforced on the linked dataset.
- bigqueryDataset ListingBigquery Dataset 
- Shared dataset i.e. BigQuery dataset source. Structure is documented below.
- categories List<String>
- Categories of the listing. Up to two categories are allowed.
- dataExchange StringId 
- The ID of the data exchange. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- dataProvider ListingData Provider 
- Details of the data provider who owns the source data.
- description String
- Short description of the listing. The description must not contain Unicode non-characters and C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF).
- displayName String
- Human-readable display name of the listing. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces.
- documentation String
- Documentation describing the listing.
- icon String
- Base64 encoded image representing the listing.
- listingId String
- The ID of the listing. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- location String
- The name of the location this data exchange listing.
- name String
- The resource name of the listing. e.g. "projects/myproject/locations/US/dataExchanges/123/listings/456"
- primaryContact String
- Email or URL of the primary point of contact of the listing.
- project String
- publisher
ListingPublisher 
- Details of the publisher who owns the listing and who can share the source data.
- requestAccess String
- Email or URL of the request access of the listing. Subscribers can use this reference to request access.
- restrictedExport ListingConfig Restricted Export Config 
- If set, restricted export configuration will be propagated and enforced on the linked dataset.
- bigqueryDataset ListingBigquery Dataset 
- Shared dataset i.e. BigQuery dataset source. Structure is documented below.
- categories string[]
- Categories of the listing. Up to two categories are allowed.
- dataExchange stringId 
- The ID of the data exchange. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- dataProvider ListingData Provider 
- Details of the data provider who owns the source data.
- description string
- Short description of the listing. The description must not contain Unicode non-characters and C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF).
- displayName string
- Human-readable display name of the listing. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces.
- documentation string
- Documentation describing the listing.
- icon string
- Base64 encoded image representing the listing.
- listingId string
- The ID of the listing. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- location string
- The name of the location this data exchange listing.
- name string
- The resource name of the listing. e.g. "projects/myproject/locations/US/dataExchanges/123/listings/456"
- primaryContact string
- Email or URL of the primary point of contact of the listing.
- project string
- publisher
ListingPublisher 
- Details of the publisher who owns the listing and who can share the source data.
- requestAccess string
- Email or URL of the request access of the listing. Subscribers can use this reference to request access.
- restrictedExport ListingConfig Restricted Export Config 
- If set, restricted export configuration will be propagated and enforced on the linked dataset.
- bigquery_dataset ListingBigquery Dataset Args 
- Shared dataset i.e. BigQuery dataset source. Structure is documented below.
- categories Sequence[str]
- Categories of the listing. Up to two categories are allowed.
- data_exchange_ strid 
- The ID of the data exchange. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- data_provider ListingData Provider Args 
- Details of the data provider who owns the source data.
- description str
- Short description of the listing. The description must not contain Unicode non-characters and C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF).
- display_name str
- Human-readable display name of the listing. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces.
- documentation str
- Documentation describing the listing.
- icon str
- Base64 encoded image representing the listing.
- listing_id str
- The ID of the listing. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- location str
- The name of the location this data exchange listing.
- name str
- The resource name of the listing. e.g. "projects/myproject/locations/US/dataExchanges/123/listings/456"
- primary_contact str
- Email or URL of the primary point of contact of the listing.
- project str
- publisher
ListingPublisher Args 
- Details of the publisher who owns the listing and who can share the source data.
- request_access str
- Email or URL of the request access of the listing. Subscribers can use this reference to request access.
- restricted_export_ Listingconfig Restricted Export Config Args 
- If set, restricted export configuration will be propagated and enforced on the linked dataset.
- bigqueryDataset Property Map
- Shared dataset i.e. BigQuery dataset source. Structure is documented below.
- categories List<String>
- Categories of the listing. Up to two categories are allowed.
- dataExchange StringId 
- The ID of the data exchange. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- dataProvider Property Map
- Details of the data provider who owns the source data.
- description String
- Short description of the listing. The description must not contain Unicode non-characters and C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF).
- displayName String
- Human-readable display name of the listing. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces.
- documentation String
- Documentation describing the listing.
- icon String
- Base64 encoded image representing the listing.
- listingId String
- The ID of the listing. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
- location String
- The name of the location this data exchange listing.
- name String
- The resource name of the listing. e.g. "projects/myproject/locations/US/dataExchanges/123/listings/456"
- primaryContact String
- Email or URL of the primary point of contact of the listing.
- project String
- publisher Property Map
- Details of the publisher who owns the listing and who can share the source data.
- requestAccess String
- Email or URL of the request access of the listing. Subscribers can use this reference to request access.
- restrictedExport Property MapConfig 
- If set, restricted export configuration will be propagated and enforced on the linked dataset.
Supporting Types
ListingBigqueryDataset, ListingBigqueryDatasetArgs      
- Dataset string
- Resource name of the dataset source for this listing. e.g. projects/myproject/datasets/123
- SelectedResources List<ListingBigquery Dataset Selected Resource> 
- Resource in this dataset that is selectively shared. This field is required for data clean room exchanges. Structure is documented below.
- Dataset string
- Resource name of the dataset source for this listing. e.g. projects/myproject/datasets/123
- SelectedResources []ListingBigquery Dataset Selected Resource 
- Resource in this dataset that is selectively shared. This field is required for data clean room exchanges. Structure is documented below.
- dataset String
- Resource name of the dataset source for this listing. e.g. projects/myproject/datasets/123
- selectedResources List<ListingBigquery Dataset Selected Resource> 
- Resource in this dataset that is selectively shared. This field is required for data clean room exchanges. Structure is documented below.
- dataset string
- Resource name of the dataset source for this listing. e.g. projects/myproject/datasets/123
- selectedResources ListingBigquery Dataset Selected Resource[] 
- Resource in this dataset that is selectively shared. This field is required for data clean room exchanges. Structure is documented below.
- dataset str
- Resource name of the dataset source for this listing. e.g. projects/myproject/datasets/123
- selected_resources Sequence[ListingBigquery Dataset Selected Resource] 
- Resource in this dataset that is selectively shared. This field is required for data clean room exchanges. Structure is documented below.
- dataset String
- Resource name of the dataset source for this listing. e.g. projects/myproject/datasets/123
- selectedResources List<Property Map>
- Resource in this dataset that is selectively shared. This field is required for data clean room exchanges. Structure is documented below.
ListingBigqueryDatasetSelectedResource, ListingBigqueryDatasetSelectedResourceArgs          
- Table string
- Format: For table: projects/{projectId}/datasets/{datasetId}/tables/{tableId} Example:"projects/test_project/datasets/test_dataset/tables/test_table"
- Table string
- Format: For table: projects/{projectId}/datasets/{datasetId}/tables/{tableId} Example:"projects/test_project/datasets/test_dataset/tables/test_table"
- table String
- Format: For table: projects/{projectId}/datasets/{datasetId}/tables/{tableId} Example:"projects/test_project/datasets/test_dataset/tables/test_table"
- table string
- Format: For table: projects/{projectId}/datasets/{datasetId}/tables/{tableId} Example:"projects/test_project/datasets/test_dataset/tables/test_table"
- table str
- Format: For table: projects/{projectId}/datasets/{datasetId}/tables/{tableId} Example:"projects/test_project/datasets/test_dataset/tables/test_table"
- table String
- Format: For table: projects/{projectId}/datasets/{datasetId}/tables/{tableId} Example:"projects/test_project/datasets/test_dataset/tables/test_table"
ListingDataProvider, ListingDataProviderArgs      
- Name string
- Name of the data provider.
- PrimaryContact string
- Email or URL of the data provider.
- Name string
- Name of the data provider.
- PrimaryContact string
- Email or URL of the data provider.
- name String
- Name of the data provider.
- primaryContact String
- Email or URL of the data provider.
- name string
- Name of the data provider.
- primaryContact string
- Email or URL of the data provider.
- name str
- Name of the data provider.
- primary_contact str
- Email or URL of the data provider.
- name String
- Name of the data provider.
- primaryContact String
- Email or URL of the data provider.
ListingPublisher, ListingPublisherArgs    
- Name string
- Name of the listing publisher.
- PrimaryContact string
- Email or URL of the listing publisher.
- Name string
- Name of the listing publisher.
- PrimaryContact string
- Email or URL of the listing publisher.
- name String
- Name of the listing publisher.
- primaryContact String
- Email or URL of the listing publisher.
- name string
- Name of the listing publisher.
- primaryContact string
- Email or URL of the listing publisher.
- name str
- Name of the listing publisher.
- primary_contact str
- Email or URL of the listing publisher.
- name String
- Name of the listing publisher.
- primaryContact String
- Email or URL of the listing publisher.
ListingRestrictedExportConfig, ListingRestrictedExportConfigArgs        
- Enabled bool
- If true, enable restricted export.
- RestrictDirect boolTable Access 
- (Output) If true, restrict direct table access(read api/tabledata.list) on linked table.
- RestrictQuery boolResult 
- If true, restrict export of query result derived from restricted linked dataset table.
- Enabled bool
- If true, enable restricted export.
- RestrictDirect boolTable Access 
- (Output) If true, restrict direct table access(read api/tabledata.list) on linked table.
- RestrictQuery boolResult 
- If true, restrict export of query result derived from restricted linked dataset table.
- enabled Boolean
- If true, enable restricted export.
- restrictDirect BooleanTable Access 
- (Output) If true, restrict direct table access(read api/tabledata.list) on linked table.
- restrictQuery BooleanResult 
- If true, restrict export of query result derived from restricted linked dataset table.
- enabled boolean
- If true, enable restricted export.
- restrictDirect booleanTable Access 
- (Output) If true, restrict direct table access(read api/tabledata.list) on linked table.
- restrictQuery booleanResult 
- If true, restrict export of query result derived from restricted linked dataset table.
- enabled bool
- If true, enable restricted export.
- restrict_direct_ booltable_ access 
- (Output) If true, restrict direct table access(read api/tabledata.list) on linked table.
- restrict_query_ boolresult 
- If true, restrict export of query result derived from restricted linked dataset table.
- enabled Boolean
- If true, enable restricted export.
- restrictDirect BooleanTable Access 
- (Output) If true, restrict direct table access(read api/tabledata.list) on linked table.
- restrictQuery BooleanResult 
- If true, restrict export of query result derived from restricted linked dataset table.
Import
Listing can be imported using any of these accepted formats:
- projects/{{project}}/locations/{{location}}/dataExchanges/{{data_exchange_id}}/listings/{{listing_id}}
- {{project}}/{{location}}/{{data_exchange_id}}/{{listing_id}}
- {{location}}/{{data_exchange_id}}/{{listing_id}}
When using the pulumi import command, Listing can be imported using one of the formats above. For example:
$ pulumi import gcp:bigqueryanalyticshub/listing:Listing default projects/{{project}}/locations/{{location}}/dataExchanges/{{data_exchange_id}}/listings/{{listing_id}}
$ pulumi import gcp:bigqueryanalyticshub/listing:Listing default {{project}}/{{location}}/{{data_exchange_id}}/{{listing_id}}
$ pulumi import gcp:bigqueryanalyticshub/listing:Listing default {{location}}/{{data_exchange_id}}/{{listing_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-betaTerraform Provider.