import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; import * as enums from "../../types/enums"; /** * Creates a new mapping rule for a given conversion workspace. */ export declare class MappingRule extends pulumi.CustomResource { /** * Get an existing MappingRule resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): MappingRule; /** * Returns true if the given object is an instance of MappingRule. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is MappingRule; /** * Optional. Rule to specify how the data contained in a column should be transformed (such as trimmed, rounded, etc) provided that the data meets certain criteria. */ readonly conditionalColumnSetValue: pulumi.Output; readonly conversionWorkspaceId: pulumi.Output; /** * Optional. Rule to specify how multiple tables should be converted with an additional rowid column. */ readonly convertRowidColumn: pulumi.Output; /** * Optional. A human readable name */ readonly displayName: pulumi.Output; /** * Optional. Rule to specify how multiple entities should be relocated into a different schema. */ readonly entityMove: pulumi.Output; /** * The rule filter */ readonly filter: pulumi.Output; /** * Optional. Rule to specify the list of columns to include or exclude from a table. */ readonly filterTableColumns: pulumi.Output; readonly location: pulumi.Output; /** * Required. The ID of the rule to create. */ readonly mappingRuleId: pulumi.Output; /** * Optional. Rule to specify how multiple columns should be converted to a different data type. */ readonly multiColumnDataTypeChange: pulumi.Output; /** * Optional. Rule to specify how multiple entities should be renamed. */ readonly multiEntityRename: pulumi.Output; /** * Full name of the mapping rule resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}. */ readonly name: pulumi.Output; readonly project: pulumi.Output; /** * 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. */ readonly requestId: pulumi.Output; /** * The timestamp that the revision was created. */ readonly revisionCreateTime: pulumi.Output; /** * The revision ID of the mapping rule. A new revision is committed whenever the mapping rule is changed in any way. The format is an 8-character hexadecimal string. */ readonly revisionId: pulumi.Output; /** * The order in which the rule is applied. Lower order rules are applied before higher value rules so they may end up being overridden. */ readonly ruleOrder: pulumi.Output; /** * The rule scope */ readonly ruleScope: pulumi.Output; /** * Optional. Rule to specify the primary key for a table */ readonly setTablePrimaryKey: pulumi.Output; /** * Optional. Rule to specify how a single column is converted. */ readonly singleColumnChange: pulumi.Output; /** * Optional. Rule to specify how a single entity should be renamed. */ readonly singleEntityRename: pulumi.Output; /** * Optional. Rule to specify how a single package is converted. */ readonly singlePackageChange: pulumi.Output; /** * Optional. Rule to change the sql code for an entity, for example, function, procedure. */ readonly sourceSqlChange: pulumi.Output; /** * Optional. The mapping rule state */ readonly state: pulumi.Output; /** * Create a MappingRule resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: MappingRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a MappingRule resource. */ export interface MappingRuleArgs { /** * Optional. Rule to specify how the data contained in a column should be transformed (such as trimmed, rounded, etc) provided that the data meets certain criteria. */ conditionalColumnSetValue?: pulumi.Input; conversionWorkspaceId: pulumi.Input; /** * Optional. Rule to specify how multiple tables should be converted with an additional rowid column. */ convertRowidColumn?: pulumi.Input; /** * Optional. A human readable name */ displayName?: pulumi.Input; /** * Optional. Rule to specify how multiple entities should be relocated into a different schema. */ entityMove?: pulumi.Input; /** * The rule filter */ filter: pulumi.Input; /** * Optional. Rule to specify the list of columns to include or exclude from a table. */ filterTableColumns?: pulumi.Input; location?: pulumi.Input; /** * Required. The ID of the rule to create. */ mappingRuleId: pulumi.Input; /** * Optional. Rule to specify how multiple columns should be converted to a different data type. */ multiColumnDataTypeChange?: pulumi.Input; /** * Optional. Rule to specify how multiple entities should be renamed. */ multiEntityRename?: pulumi.Input; /** * Full name of the mapping rule resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}. */ name?: pulumi.Input; project?: pulumi.Input; /** * 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. */ requestId?: pulumi.Input; /** * The order in which the rule is applied. Lower order rules are applied before higher value rules so they may end up being overridden. */ ruleOrder: pulumi.Input; /** * The rule scope */ ruleScope: pulumi.Input; /** * Optional. Rule to specify the primary key for a table */ setTablePrimaryKey?: pulumi.Input; /** * Optional. Rule to specify how a single column is converted. */ singleColumnChange?: pulumi.Input; /** * Optional. Rule to specify how a single entity should be renamed. */ singleEntityRename?: pulumi.Input; /** * Optional. Rule to specify how a single package is converted. */ singlePackageChange?: pulumi.Input; /** * Optional. Rule to change the sql code for an entity, for example, function, procedure. */ sourceSqlChange?: pulumi.Input; /** * Optional. The mapping rule state */ state?: pulumi.Input; }