Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.datamigration/v1.ConversionWorkspace
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new conversion workspace in a given project and location.
Create ConversionWorkspace Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ConversionWorkspace(name: string, args: ConversionWorkspaceArgs, opts?: CustomResourceOptions);
@overload
def ConversionWorkspace(resource_name: str,
args: ConversionWorkspaceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ConversionWorkspace(resource_name: str,
opts: Optional[ResourceOptions] = None,
conversion_workspace_id: Optional[str] = None,
destination: Optional[DatabaseEngineInfoArgs] = None,
source: Optional[DatabaseEngineInfoArgs] = None,
display_name: Optional[str] = None,
global_settings: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
request_id: Optional[str] = None)
func NewConversionWorkspace(ctx *Context, name string, args ConversionWorkspaceArgs, opts ...ResourceOption) (*ConversionWorkspace, error)
public ConversionWorkspace(string name, ConversionWorkspaceArgs args, CustomResourceOptions? opts = null)
public ConversionWorkspace(String name, ConversionWorkspaceArgs args)
public ConversionWorkspace(String name, ConversionWorkspaceArgs args, CustomResourceOptions options)
type: google-native:datamigration/v1:ConversionWorkspace
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 ConversionWorkspaceArgs
- 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 ConversionWorkspaceArgs
- 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 ConversionWorkspaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConversionWorkspaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConversionWorkspaceArgs
- 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 conversionWorkspaceResource = new GoogleNative.Datamigration.V1.ConversionWorkspace("conversionWorkspaceResource", new()
{
ConversionWorkspaceId = "string",
Destination = new GoogleNative.Datamigration.V1.Inputs.DatabaseEngineInfoArgs
{
Engine = GoogleNative.Datamigration.V1.DatabaseEngineInfoEngine.DatabaseEngineUnspecified,
Version = "string",
},
Source = new GoogleNative.Datamigration.V1.Inputs.DatabaseEngineInfoArgs
{
Engine = GoogleNative.Datamigration.V1.DatabaseEngineInfoEngine.DatabaseEngineUnspecified,
Version = "string",
},
DisplayName = "string",
GlobalSettings =
{
{ "string", "string" },
},
Location = "string",
Name = "string",
Project = "string",
RequestId = "string",
});
example, err := datamigration.NewConversionWorkspace(ctx, "conversionWorkspaceResource", &datamigration.ConversionWorkspaceArgs{
ConversionWorkspaceId: pulumi.String("string"),
Destination: &datamigration.DatabaseEngineInfoArgs{
Engine: datamigration.DatabaseEngineInfoEngineDatabaseEngineUnspecified,
Version: pulumi.String("string"),
},
Source: &datamigration.DatabaseEngineInfoArgs{
Engine: datamigration.DatabaseEngineInfoEngineDatabaseEngineUnspecified,
Version: pulumi.String("string"),
},
DisplayName: pulumi.String("string"),
GlobalSettings: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
RequestId: pulumi.String("string"),
})
var conversionWorkspaceResource = new ConversionWorkspace("conversionWorkspaceResource", ConversionWorkspaceArgs.builder()
.conversionWorkspaceId("string")
.destination(DatabaseEngineInfoArgs.builder()
.engine("DATABASE_ENGINE_UNSPECIFIED")
.version("string")
.build())
.source(DatabaseEngineInfoArgs.builder()
.engine("DATABASE_ENGINE_UNSPECIFIED")
.version("string")
.build())
.displayName("string")
.globalSettings(Map.of("string", "string"))
.location("string")
.name("string")
.project("string")
.requestId("string")
.build());
conversion_workspace_resource = google_native.datamigration.v1.ConversionWorkspace("conversionWorkspaceResource",
conversion_workspace_id="string",
destination={
"engine": google_native.datamigration.v1.DatabaseEngineInfoEngine.DATABASE_ENGINE_UNSPECIFIED,
"version": "string",
},
source={
"engine": google_native.datamigration.v1.DatabaseEngineInfoEngine.DATABASE_ENGINE_UNSPECIFIED,
"version": "string",
},
display_name="string",
global_settings={
"string": "string",
},
location="string",
name="string",
project="string",
request_id="string")
const conversionWorkspaceResource = new google_native.datamigration.v1.ConversionWorkspace("conversionWorkspaceResource", {
conversionWorkspaceId: "string",
destination: {
engine: google_native.datamigration.v1.DatabaseEngineInfoEngine.DatabaseEngineUnspecified,
version: "string",
},
source: {
engine: google_native.datamigration.v1.DatabaseEngineInfoEngine.DatabaseEngineUnspecified,
version: "string",
},
displayName: "string",
globalSettings: {
string: "string",
},
location: "string",
name: "string",
project: "string",
requestId: "string",
});
type: google-native:datamigration/v1:ConversionWorkspace
properties:
conversionWorkspaceId: string
destination:
engine: DATABASE_ENGINE_UNSPECIFIED
version: string
displayName: string
globalSettings:
string: string
location: string
name: string
project: string
requestId: string
source:
engine: DATABASE_ENGINE_UNSPECIFIED
version: string
ConversionWorkspace 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 ConversionWorkspace resource accepts the following input properties:
- Conversion
Workspace stringId - Required. The ID of the conversion workspace to create.
- Destination
Pulumi.
Google Native. Datamigration. V1. Inputs. Database Engine Info - The destination engine details.
- Source
Pulumi.
Google Native. Datamigration. V1. Inputs. Database Engine Info - The source engine details.
- Display
Name string - Optional. The display name for the workspace.
- Global
Settings Dictionary<string, string> - Optional. A generic list of settings for the workspace. The settings are database pair dependant and can indicate default behavior for the mapping rules engine or turn on or off specific features. Such examples can be: convert_foreign_key_to_interleave=true, skip_triggers=false, ignore_non_table_synonyms=true
- Location string
- Name string
- Full name of the workspace resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
- Project string
- Request
Id string - A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
- Conversion
Workspace stringId - Required. The ID of the conversion workspace to create.
- Destination
Database
Engine Info Args - The destination engine details.
- Source
Database
Engine Info Args - The source engine details.
- Display
Name string - Optional. The display name for the workspace.
- Global
Settings map[string]string - Optional. A generic list of settings for the workspace. The settings are database pair dependant and can indicate default behavior for the mapping rules engine or turn on or off specific features. Such examples can be: convert_foreign_key_to_interleave=true, skip_triggers=false, ignore_non_table_synonyms=true
- Location string
- Name string
- Full name of the workspace resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
- Project string
- Request
Id string - A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
- conversion
Workspace StringId - Required. The ID of the conversion workspace to create.
- destination
Database
Engine Info - The destination engine details.
- source
Database
Engine Info - The source engine details.
- display
Name String - Optional. The display name for the workspace.
- global
Settings Map<String,String> - Optional. A generic list of settings for the workspace. The settings are database pair dependant and can indicate default behavior for the mapping rules engine or turn on or off specific features. Such examples can be: convert_foreign_key_to_interleave=true, skip_triggers=false, ignore_non_table_synonyms=true
- location String
- name String
- Full name of the workspace resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
- project String
- request
Id String - A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
- conversion
Workspace stringId - Required. The ID of the conversion workspace to create.
- destination
Database
Engine Info - The destination engine details.
- source
Database
Engine Info - The source engine details.
- display
Name string - Optional. The display name for the workspace.
- global
Settings {[key: string]: string} - Optional. A generic list of settings for the workspace. The settings are database pair dependant and can indicate default behavior for the mapping rules engine or turn on or off specific features. Such examples can be: convert_foreign_key_to_interleave=true, skip_triggers=false, ignore_non_table_synonyms=true
- location string
- name string
- Full name of the workspace resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
- project string
- request
Id string - A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
- conversion_
workspace_ strid - Required. The ID of the conversion workspace to create.
- destination
Database
Engine Info Args - The destination engine details.
- source
Database
Engine Info Args - The source engine details.
- display_
name str - Optional. The display name for the workspace.
- global_
settings Mapping[str, str] - Optional. A generic list of settings for the workspace. The settings are database pair dependant and can indicate default behavior for the mapping rules engine or turn on or off specific features. Such examples can be: convert_foreign_key_to_interleave=true, skip_triggers=false, ignore_non_table_synonyms=true
- location str
- name str
- Full name of the workspace resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
- project str
- request_
id str - A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
- conversion
Workspace StringId - Required. The ID of the conversion workspace to create.
- destination Property Map
- The destination engine details.
- source Property Map
- The source engine details.
- display
Name String - Optional. The display name for the workspace.
- global
Settings Map<String> - Optional. A generic list of settings for the workspace. The settings are database pair dependant and can indicate default behavior for the mapping rules engine or turn on or off specific features. Such examples can be: convert_foreign_key_to_interleave=true, skip_triggers=false, ignore_non_table_synonyms=true
- location String
- name String
- Full name of the workspace resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
- project String
- request
Id String - A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
Outputs
All input properties are implicitly available as output properties. Additionally, the ConversionWorkspace resource produces the following output properties:
- Create
Time string - The timestamp when the workspace resource was created.
- Has
Uncommitted boolChanges - Whether the workspace has uncommitted changes (changes which were made after the workspace was committed).
- Id string
- The provider-assigned unique ID for this managed resource.
- Latest
Commit stringId - The latest commit ID.
- Latest
Commit stringTime - The timestamp when the workspace was committed.
- Update
Time string - The timestamp when the workspace resource was last updated.
- Create
Time string - The timestamp when the workspace resource was created.
- Has
Uncommitted boolChanges - Whether the workspace has uncommitted changes (changes which were made after the workspace was committed).
- Id string
- The provider-assigned unique ID for this managed resource.
- Latest
Commit stringId - The latest commit ID.
- Latest
Commit stringTime - The timestamp when the workspace was committed.
- Update
Time string - The timestamp when the workspace resource was last updated.
- create
Time String - The timestamp when the workspace resource was created.
- has
Uncommitted BooleanChanges - Whether the workspace has uncommitted changes (changes which were made after the workspace was committed).
- id String
- The provider-assigned unique ID for this managed resource.
- latest
Commit StringId - The latest commit ID.
- latest
Commit StringTime - The timestamp when the workspace was committed.
- update
Time String - The timestamp when the workspace resource was last updated.
- create
Time string - The timestamp when the workspace resource was created.
- has
Uncommitted booleanChanges - Whether the workspace has uncommitted changes (changes which were made after the workspace was committed).
- id string
- The provider-assigned unique ID for this managed resource.
- latest
Commit stringId - The latest commit ID.
- latest
Commit stringTime - The timestamp when the workspace was committed.
- update
Time string - The timestamp when the workspace resource was last updated.
- create_
time str - The timestamp when the workspace resource was created.
- has_
uncommitted_ boolchanges - Whether the workspace has uncommitted changes (changes which were made after the workspace was committed).
- id str
- The provider-assigned unique ID for this managed resource.
- latest_
commit_ strid - The latest commit ID.
- latest_
commit_ strtime - The timestamp when the workspace was committed.
- update_
time str - The timestamp when the workspace resource was last updated.
- create
Time String - The timestamp when the workspace resource was created.
- has
Uncommitted BooleanChanges - Whether the workspace has uncommitted changes (changes which were made after the workspace was committed).
- id String
- The provider-assigned unique ID for this managed resource.
- latest
Commit StringId - The latest commit ID.
- latest
Commit StringTime - The timestamp when the workspace was committed.
- update
Time String - The timestamp when the workspace resource was last updated.
Supporting Types
DatabaseEngineInfo, DatabaseEngineInfoArgs
- Engine
Pulumi.
Google Native. Datamigration. V1. Database Engine Info Engine - Engine type.
- Version string
- Engine version, for example "12.c.1".
- Engine
Database
Engine Info Engine - Engine type.
- Version string
- Engine version, for example "12.c.1".
- engine
Database
Engine Info Engine - Engine type.
- version String
- Engine version, for example "12.c.1".
- engine
Database
Engine Info Engine - Engine type.
- version string
- Engine version, for example "12.c.1".
- engine
Database
Engine Info Engine - Engine type.
- version str
- Engine version, for example "12.c.1".
- engine "DATABASE_ENGINE_UNSPECIFIED" | "MYSQL" | "POSTGRESQL" | "ORACLE"
- Engine type.
- version String
- Engine version, for example "12.c.1".
DatabaseEngineInfoEngine, DatabaseEngineInfoEngineArgs
- Database
Engine Unspecified - DATABASE_ENGINE_UNSPECIFIEDThe source database engine of the migration job is unknown.
- Mysql
- MYSQLThe source engine is MySQL.
- Postgresql
- POSTGRESQLThe source engine is PostgreSQL.
- Oracle
- ORACLEThe source engine is Oracle.
- Database
Engine Info Engine Database Engine Unspecified - DATABASE_ENGINE_UNSPECIFIEDThe source database engine of the migration job is unknown.
- Database
Engine Info Engine Mysql - MYSQLThe source engine is MySQL.
- Database
Engine Info Engine Postgresql - POSTGRESQLThe source engine is PostgreSQL.
- Database
Engine Info Engine Oracle - ORACLEThe source engine is Oracle.
- Database
Engine Unspecified - DATABASE_ENGINE_UNSPECIFIEDThe source database engine of the migration job is unknown.
- Mysql
- MYSQLThe source engine is MySQL.
- Postgresql
- POSTGRESQLThe source engine is PostgreSQL.
- Oracle
- ORACLEThe source engine is Oracle.
- Database
Engine Unspecified - DATABASE_ENGINE_UNSPECIFIEDThe source database engine of the migration job is unknown.
- Mysql
- MYSQLThe source engine is MySQL.
- Postgresql
- POSTGRESQLThe source engine is PostgreSQL.
- Oracle
- ORACLEThe source engine is Oracle.
- DATABASE_ENGINE_UNSPECIFIED
- DATABASE_ENGINE_UNSPECIFIEDThe source database engine of the migration job is unknown.
- MYSQL
- MYSQLThe source engine is MySQL.
- POSTGRESQL
- POSTGRESQLThe source engine is PostgreSQL.
- ORACLE
- ORACLEThe source engine is Oracle.
- "DATABASE_ENGINE_UNSPECIFIED"
- DATABASE_ENGINE_UNSPECIFIEDThe source database engine of the migration job is unknown.
- "MYSQL"
- MYSQLThe source engine is MySQL.
- "POSTGRESQL"
- POSTGRESQLThe source engine is PostgreSQL.
- "ORACLE"
- ORACLEThe source engine is Oracle.
DatabaseEngineInfoResponse, DatabaseEngineInfoResponseArgs
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.