Class DataExchange


  • public class DataExchange
    extends com.pulumi.resources.CustomResource
    A Bigquery Analytics Hub data exchange To get more information about DataExchange, see: * [API documentation](https://cloud.google.com/bigquery/docs/reference/analytics-hub/rest/v1/projects.locations.dataExchanges) * How-to Guides * [Official Documentation](https://cloud.google.com/bigquery/docs/analytics-hub-introduction) ## Example Usage ### Bigquery Analyticshub Data Exchange Basic ```java 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 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 dataExchange = new DataExchange("dataExchange", DataExchangeArgs.builder() .dataExchangeId("my_data_exchange") .description("example data exchange") .displayName("my_data_exchange") .location("US") .build()); } } ``` ## Import DataExchange can be imported using any of these accepted formats* `projects/{{project}}/locations/{{location}}/dataExchanges/{{data_exchange_id}}` * `{{project}}/{{location}}/{{data_exchange_id}}` * `{{location}}/{{data_exchange_id}}` * `{{data_exchange_id}}` In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import DataExchange using one of the formats above. For exampletf import { id = "projects/{{project}}/locations/{{location}}/dataExchanges/{{data_exchange_id}}" to = google_bigquery_analytics_hub_data_exchange.default } ```sh $ pulumi import gcp:bigqueryanalyticshub/dataExchange:DataExchange When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), DataExchange can be imported using one of the formats above. For example ``` ```sh $ pulumi import gcp:bigqueryanalyticshub/dataExchange:DataExchange default projects/{{project}}/locations/{{location}}/dataExchanges/{{data_exchange_id}} ``` ```sh $ pulumi import gcp:bigqueryanalyticshub/dataExchange:DataExchange default {{project}}/{{location}}/{{data_exchange_id}} ``` ```sh $ pulumi import gcp:bigqueryanalyticshub/dataExchange:DataExchange default {{location}}/{{data_exchange_id}} ``` ```sh $ pulumi import gcp:bigqueryanalyticshub/dataExchange:DataExchange default {{data_exchange_id}} ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.lang.String> dataExchangeId()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()  
      com.pulumi.core.Output<java.lang.String> displayName()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> documentation()  
      static DataExchange get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, DataExchangeState state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> icon()  
      com.pulumi.core.Output<java.lang.Integer> listingCount()  
      com.pulumi.core.Output<java.lang.String> location()  
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> primaryContact()  
      com.pulumi.core.Output<java.lang.String> project()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataExchange

        public DataExchange​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • DataExchange

        public DataExchange​(java.lang.String name,
                            DataExchangeArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • DataExchange

        public DataExchange​(java.lang.String name,
                            DataExchangeArgs args,
                            @Nullable
                            com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • dataExchangeId

        public com.pulumi.core.Output<java.lang.String> dataExchangeId()
        Returns:
        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.
      • description

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
        Returns:
        Description of the data exchange.
      • displayName

        public com.pulumi.core.Output<java.lang.String> displayName()
        Returns:
        Human-readable display name of the data exchange. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and must not start or end with spaces. ***
      • documentation

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> documentation()
        Returns:
        Documentation describing the data exchange.
      • icon

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> icon()
        Returns:
        Base64 encoded image representing the data exchange.
      • listingCount

        public com.pulumi.core.Output<java.lang.Integer> listingCount()
        Returns:
        Number of listings contained in the data exchange.
      • location

        public com.pulumi.core.Output<java.lang.String> location()
        Returns:
        The name of the location this data exchange.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        The resource name of the data exchange, for example: "projects/myproject/locations/US/dataExchanges/123"
      • primaryContact

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> primaryContact()
        Returns:
        Email or URL of the primary point of contact of the data exchange.
      • project

        public com.pulumi.core.Output<java.lang.String> project()
        Returns:
        The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
      • get

        public static DataExchange get​(java.lang.String name,
                                       com.pulumi.core.Output<java.lang.String> id,
                                       @Nullable
                                       DataExchangeState state,
                                       @Nullable
                                       com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.