Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.metastore/v1beta.MetadataImport
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new MetadataImport in a given project and location. Note - this resource’s API doesn’t support deletion. When deleted, the resource will persist on Google Cloud even though it will be deleted from Pulumi state.
Create MetadataImport Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MetadataImport(name: string, args: MetadataImportArgs, opts?: CustomResourceOptions);
@overload
def MetadataImport(resource_name: str,
args: MetadataImportArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MetadataImport(resource_name: str,
opts: Optional[ResourceOptions] = None,
metadata_import_id: Optional[str] = None,
service_id: Optional[str] = None,
database_dump: Optional[DatabaseDumpArgs] = None,
description: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
request_id: Optional[str] = None)
func NewMetadataImport(ctx *Context, name string, args MetadataImportArgs, opts ...ResourceOption) (*MetadataImport, error)
public MetadataImport(string name, MetadataImportArgs args, CustomResourceOptions? opts = null)
public MetadataImport(String name, MetadataImportArgs args)
public MetadataImport(String name, MetadataImportArgs args, CustomResourceOptions options)
type: google-native:metastore/v1beta:MetadataImport
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 MetadataImportArgs
- 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 MetadataImportArgs
- 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 MetadataImportArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MetadataImportArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MetadataImportArgs
- 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 examplemetadataImportResourceResourceFromMetastorev1beta = new GoogleNative.Metastore.V1Beta.MetadataImport("examplemetadataImportResourceResourceFromMetastorev1beta", new()
{
MetadataImportId = "string",
ServiceId = "string",
DatabaseDump = new GoogleNative.Metastore.V1Beta.Inputs.DatabaseDumpArgs
{
DatabaseType = GoogleNative.Metastore.V1Beta.DatabaseDumpDatabaseType.DatabaseTypeUnspecified,
GcsUri = "string",
SourceDatabase = "string",
Type = GoogleNative.Metastore.V1Beta.DatabaseDumpType.TypeUnspecified,
},
Description = "string",
Location = "string",
Name = "string",
Project = "string",
RequestId = "string",
});
example, err := metastorev1beta.NewMetadataImport(ctx, "examplemetadataImportResourceResourceFromMetastorev1beta", &metastorev1beta.MetadataImportArgs{
MetadataImportId: pulumi.String("string"),
ServiceId: pulumi.String("string"),
DatabaseDump: &metastore.DatabaseDumpArgs{
DatabaseType: metastorev1beta.DatabaseDumpDatabaseTypeDatabaseTypeUnspecified,
GcsUri: pulumi.String("string"),
SourceDatabase: pulumi.String("string"),
Type: metastorev1beta.DatabaseDumpTypeTypeUnspecified,
},
Description: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
RequestId: pulumi.String("string"),
})
var examplemetadataImportResourceResourceFromMetastorev1beta = new MetadataImport("examplemetadataImportResourceResourceFromMetastorev1beta", MetadataImportArgs.builder()
.metadataImportId("string")
.serviceId("string")
.databaseDump(DatabaseDumpArgs.builder()
.databaseType("DATABASE_TYPE_UNSPECIFIED")
.gcsUri("string")
.sourceDatabase("string")
.type("TYPE_UNSPECIFIED")
.build())
.description("string")
.location("string")
.name("string")
.project("string")
.requestId("string")
.build());
examplemetadata_import_resource_resource_from_metastorev1beta = google_native.metastore.v1beta.MetadataImport("examplemetadataImportResourceResourceFromMetastorev1beta",
metadata_import_id="string",
service_id="string",
database_dump=google_native.metastore.v1beta.DatabaseDumpArgs(
database_type=google_native.metastore.v1beta.DatabaseDumpDatabaseType.DATABASE_TYPE_UNSPECIFIED,
gcs_uri="string",
source_database="string",
type=google_native.metastore.v1beta.DatabaseDumpType.TYPE_UNSPECIFIED,
),
description="string",
location="string",
name="string",
project="string",
request_id="string")
const examplemetadataImportResourceResourceFromMetastorev1beta = new google_native.metastore.v1beta.MetadataImport("examplemetadataImportResourceResourceFromMetastorev1beta", {
metadataImportId: "string",
serviceId: "string",
databaseDump: {
databaseType: google_native.metastore.v1beta.DatabaseDumpDatabaseType.DatabaseTypeUnspecified,
gcsUri: "string",
sourceDatabase: "string",
type: google_native.metastore.v1beta.DatabaseDumpType.TypeUnspecified,
},
description: "string",
location: "string",
name: "string",
project: "string",
requestId: "string",
});
type: google-native:metastore/v1beta:MetadataImport
properties:
databaseDump:
databaseType: DATABASE_TYPE_UNSPECIFIED
gcsUri: string
sourceDatabase: string
type: TYPE_UNSPECIFIED
description: string
location: string
metadataImportId: string
name: string
project: string
requestId: string
serviceId: string
MetadataImport Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The MetadataImport resource accepts the following input properties:
- Metadata
Import stringId - Required. The ID of the metadata import, which is used as the final component of the metadata import's name.This value must be between 1 and 64 characters long, begin with a letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.
- Service
Id string - Database
Dump Pulumi.Google Native. Metastore. V1Beta. Inputs. Database Dump - Immutable. A database dump from a pre-existing metastore's database.
- Description string
- The description of the metadata import.
- Location string
- Name string
- Immutable. The relative resource name of the metadata import, of the form:projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}.
- Project string
- Request
Id string - Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
- Metadata
Import stringId - Required. The ID of the metadata import, which is used as the final component of the metadata import's name.This value must be between 1 and 64 characters long, begin with a letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.
- Service
Id string - Database
Dump DatabaseDump Args - Immutable. A database dump from a pre-existing metastore's database.
- Description string
- The description of the metadata import.
- Location string
- Name string
- Immutable. The relative resource name of the metadata import, of the form:projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}.
- Project string
- Request
Id string - Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
- metadata
Import StringId - Required. The ID of the metadata import, which is used as the final component of the metadata import's name.This value must be between 1 and 64 characters long, begin with a letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.
- service
Id String - database
Dump DatabaseDump - Immutable. A database dump from a pre-existing metastore's database.
- description String
- The description of the metadata import.
- location String
- name String
- Immutable. The relative resource name of the metadata import, of the form:projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}.
- project String
- request
Id String - Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
- metadata
Import stringId - Required. The ID of the metadata import, which is used as the final component of the metadata import's name.This value must be between 1 and 64 characters long, begin with a letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.
- service
Id string - database
Dump DatabaseDump - Immutable. A database dump from a pre-existing metastore's database.
- description string
- The description of the metadata import.
- location string
- name string
- Immutable. The relative resource name of the metadata import, of the form:projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}.
- project string
- request
Id string - Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
- metadata_
import_ strid - Required. The ID of the metadata import, which is used as the final component of the metadata import's name.This value must be between 1 and 64 characters long, begin with a letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.
- service_
id str - database_
dump DatabaseDump Args - Immutable. A database dump from a pre-existing metastore's database.
- description str
- The description of the metadata import.
- location str
- name str
- Immutable. The relative resource name of the metadata import, of the form:projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}.
- project str
- request_
id str - Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
- metadata
Import StringId - Required. The ID of the metadata import, which is used as the final component of the metadata import's name.This value must be between 1 and 64 characters long, begin with a letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.
- service
Id String - database
Dump Property Map - Immutable. A database dump from a pre-existing metastore's database.
- description String
- The description of the metadata import.
- location String
- name String
- Immutable. The relative resource name of the metadata import, of the form:projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}.
- project String
- request
Id String - Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
Outputs
All input properties are implicitly available as output properties. Additionally, the MetadataImport resource produces the following output properties:
- Create
Time string - The time when the metadata import was started.
- End
Time string - The time when the metadata import finished.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current state of the metadata import.
- Update
Time string - The time when the metadata import was last updated.
- Create
Time string - The time when the metadata import was started.
- End
Time string - The time when the metadata import finished.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current state of the metadata import.
- Update
Time string - The time when the metadata import was last updated.
- create
Time String - The time when the metadata import was started.
- end
Time String - The time when the metadata import finished.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The current state of the metadata import.
- update
Time String - The time when the metadata import was last updated.
- create
Time string - The time when the metadata import was started.
- end
Time string - The time when the metadata import finished.
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- The current state of the metadata import.
- update
Time string - The time when the metadata import was last updated.
- create_
time str - The time when the metadata import was started.
- end_
time str - The time when the metadata import finished.
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- The current state of the metadata import.
- update_
time str - The time when the metadata import was last updated.
- create
Time String - The time when the metadata import was started.
- end
Time String - The time when the metadata import finished.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The current state of the metadata import.
- update
Time String - The time when the metadata import was last updated.
Supporting Types
DatabaseDump, DatabaseDumpArgs
- Database
Type Pulumi.Google Native. Metastore. V1Beta. Database Dump Database Type - The type of the database.
- Gcs
Uri string - A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.
- Source
Database string - The name of the source database.
- Type
Pulumi.
Google Native. Metastore. V1Beta. Database Dump Type - Optional. The type of the database dump. If unspecified, defaults to MYSQL.
- Database
Type DatabaseDump Database Type - The type of the database.
- Gcs
Uri string - A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.
- Source
Database string - The name of the source database.
- Type
Database
Dump Type - Optional. The type of the database dump. If unspecified, defaults to MYSQL.
- database
Type DatabaseDump Database Type - The type of the database.
- gcs
Uri String - A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.
- source
Database String - The name of the source database.
- type
Database
Dump Type - Optional. The type of the database dump. If unspecified, defaults to MYSQL.
- database
Type DatabaseDump Database Type - The type of the database.
- gcs
Uri string - A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.
- source
Database string - The name of the source database.
- type
Database
Dump Type - Optional. The type of the database dump. If unspecified, defaults to MYSQL.
- database_
type DatabaseDump Database Type - The type of the database.
- gcs_
uri str - A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.
- source_
database str - The name of the source database.
- type
Database
Dump Type - Optional. The type of the database dump. If unspecified, defaults to MYSQL.
- database
Type "DATABASE_TYPE_UNSPECIFIED" | "MYSQL" - The type of the database.
- gcs
Uri String - A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.
- source
Database String - The name of the source database.
- type "TYPE_UNSPECIFIED" | "MYSQL" | "AVRO"
- Optional. The type of the database dump. If unspecified, defaults to MYSQL.
DatabaseDumpDatabaseType, DatabaseDumpDatabaseTypeArgs
- Database
Type Unspecified - DATABASE_TYPE_UNSPECIFIEDThe type of the source database is unknown.
- Mysql
- MYSQLThe type of the source database is MySQL.
- Database
Dump Database Type Database Type Unspecified - DATABASE_TYPE_UNSPECIFIEDThe type of the source database is unknown.
- Database
Dump Database Type Mysql - MYSQLThe type of the source database is MySQL.
- Database
Type Unspecified - DATABASE_TYPE_UNSPECIFIEDThe type of the source database is unknown.
- Mysql
- MYSQLThe type of the source database is MySQL.
- Database
Type Unspecified - DATABASE_TYPE_UNSPECIFIEDThe type of the source database is unknown.
- Mysql
- MYSQLThe type of the source database is MySQL.
- DATABASE_TYPE_UNSPECIFIED
- DATABASE_TYPE_UNSPECIFIEDThe type of the source database is unknown.
- MYSQL
- MYSQLThe type of the source database is MySQL.
- "DATABASE_TYPE_UNSPECIFIED"
- DATABASE_TYPE_UNSPECIFIEDThe type of the source database is unknown.
- "MYSQL"
- MYSQLThe type of the source database is MySQL.
DatabaseDumpResponse, DatabaseDumpResponseArgs
- Database
Type string - The type of the database.
- Gcs
Uri string - A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.
- Source
Database string - The name of the source database.
- Type string
- Optional. The type of the database dump. If unspecified, defaults to MYSQL.
- Database
Type string - The type of the database.
- Gcs
Uri string - A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.
- Source
Database string - The name of the source database.
- Type string
- Optional. The type of the database dump. If unspecified, defaults to MYSQL.
- database
Type String - The type of the database.
- gcs
Uri String - A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.
- source
Database String - The name of the source database.
- type String
- Optional. The type of the database dump. If unspecified, defaults to MYSQL.
- database
Type string - The type of the database.
- gcs
Uri string - A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.
- source
Database string - The name of the source database.
- type string
- Optional. The type of the database dump. If unspecified, defaults to MYSQL.
- database_
type str - The type of the database.
- gcs_
uri str - A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.
- source_
database str - The name of the source database.
- type str
- Optional. The type of the database dump. If unspecified, defaults to MYSQL.
- database
Type String - The type of the database.
- gcs
Uri String - A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.
- source
Database String - The name of the source database.
- type String
- Optional. The type of the database dump. If unspecified, defaults to MYSQL.
DatabaseDumpType, DatabaseDumpTypeArgs
- Type
Unspecified - TYPE_UNSPECIFIEDThe type of the database dump is unknown.
- Mysql
- MYSQLDatabase dump is a MySQL dump file.
- Avro
- AVRODatabase dump contains Avro files.
- Database
Dump Type Type Unspecified - TYPE_UNSPECIFIEDThe type of the database dump is unknown.
- Database
Dump Type Mysql - MYSQLDatabase dump is a MySQL dump file.
- Database
Dump Type Avro - AVRODatabase dump contains Avro files.
- Type
Unspecified - TYPE_UNSPECIFIEDThe type of the database dump is unknown.
- Mysql
- MYSQLDatabase dump is a MySQL dump file.
- Avro
- AVRODatabase dump contains Avro files.
- Type
Unspecified - TYPE_UNSPECIFIEDThe type of the database dump is unknown.
- Mysql
- MYSQLDatabase dump is a MySQL dump file.
- Avro
- AVRODatabase dump contains Avro files.
- TYPE_UNSPECIFIED
- TYPE_UNSPECIFIEDThe type of the database dump is unknown.
- MYSQL
- MYSQLDatabase dump is a MySQL dump file.
- AVRO
- AVRODatabase dump contains Avro files.
- "TYPE_UNSPECIFIED"
- TYPE_UNSPECIFIEDThe type of the database dump is unknown.
- "MYSQL"
- MYSQLDatabase dump is a MySQL dump file.
- "AVRO"
- AVRODatabase dump contains Avro files.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.