import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Migration resource in Oracle Cloud Infrastructure Cloud Migrations service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/ocm/latest/Migration * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/cloudMigrations * * Creates a migration. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testMigration = new oci.cloudmigrations.Migration("test_migration", { * compartmentId: compartmentId, * displayName: migrationDisplayName, * definedTags: { * "foo-namespace.bar-key": "value", * }, * freeformTags: { * "bar-key": "value", * }, * isCompleted: migrationIsCompleted === "true", * migrationConfig: { * subnetId: testSubnet.id, * }, * migrationType: migrationMigrationType, * replicationScheduleId: testReplicationSchedule.id, * securityAttributes: migrationSecurityAttributes, * }); * ``` * * ## Import * * Migrations can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:CloudMigrations/migration:Migration test_migration "id" * ``` */ export declare class Migration extends pulumi.CustomResource { /** * Get an existing Migration 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 state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: MigrationState, opts?: pulumi.CustomResourceOptions): Migration; /** * Returns true if the given object is an instance of Migration. 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 Migration; /** * (Updatable) Compartment identifier */ readonly compartmentId: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) Migration identifier */ readonly displayName: pulumi.Output; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example: `{"bar-key": "value"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) Indicates whether migration is marked as complete. */ readonly isCompleted: pulumi.Output; /** * A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state. */ readonly lifecycleDetails: pulumi.Output; /** * (Updatable) Configuration for a Migration Project. */ readonly migrationConfig: pulumi.Output; /** * (Updatable) Type of migration project (OCI/OLVM). This determines the target environment for the migration. */ readonly migrationType: pulumi.Output; /** * (Updatable) Replication schedule identifier */ readonly replicationScheduleId: pulumi.Output; /** * (Updatable) Security attributes for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}` * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ readonly securityAttributes: pulumi.Output<{ [key: string]: string; }>; /** * The current state of migration. */ readonly state: pulumi.Output; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The time when the migration project was created. An RFC3339 formatted datetime string */ readonly timeCreated: pulumi.Output; /** * The time when the migration project was updated. An RFC3339 formatted datetime string */ readonly timeUpdated: pulumi.Output; /** * Create a Migration 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: MigrationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Migration resources. */ export interface MigrationState { /** * (Updatable) Compartment identifier */ compartmentId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Migration identifier */ displayName?: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Indicates whether migration is marked as complete. */ isCompleted?: pulumi.Input; /** * A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state. */ lifecycleDetails?: pulumi.Input; /** * (Updatable) Configuration for a Migration Project. */ migrationConfig?: pulumi.Input; /** * (Updatable) Type of migration project (OCI/OLVM). This determines the target environment for the migration. */ migrationType?: pulumi.Input; /** * (Updatable) Replication schedule identifier */ replicationScheduleId?: pulumi.Input; /** * (Updatable) Security attributes for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}` * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ securityAttributes?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The current state of migration. */ state?: pulumi.Input; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The time when the migration project was created. An RFC3339 formatted datetime string */ timeCreated?: pulumi.Input; /** * The time when the migration project was updated. An RFC3339 formatted datetime string */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a Migration resource. */ export interface MigrationArgs { /** * (Updatable) Compartment identifier */ compartmentId: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Migration identifier */ displayName: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. It exists only for cross-compatibility. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Indicates whether migration is marked as complete. */ isCompleted?: pulumi.Input; /** * (Updatable) Configuration for a Migration Project. */ migrationConfig?: pulumi.Input; /** * (Updatable) Type of migration project (OCI/OLVM). This determines the target environment for the migration. */ migrationType?: pulumi.Input; /** * (Updatable) Replication schedule identifier */ replicationScheduleId?: pulumi.Input; /** * (Updatable) Security attributes for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}` * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ securityAttributes?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; } //# sourceMappingURL=migration.d.ts.map