import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an AWS DMS (Database Migration) Migration Project. A migration project groups the instance profile and data providers used together in a DMS Schema Conversion or homogeneous data migration. * * Create an instance profile and data providers before creating a migration project. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.dms.MigrationProject("example", { * sourceDataProviderDescriptors: [{ * dataProviderArn: source.arn, * }], * targetDataProviderDescriptors: [{ * dataProviderArn: target.arn, * }], * instanceProfileArn: exampleAwsDmsInstanceProfile.arn, * }); * ``` * * ### With Secrets Manager Credentials * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.dms.MigrationProject("example", { * schemaConversionApplicationAttributes: { * s3BucketPath: "s3://example-bucket", * s3BucketRoleArn: exampleAwsIamRole.arn, * }, * sourceDataProviderDescriptors: [{ * dataProviderArn: source.arn, * secretsManagerAccessRoleArn: exampleAwsIamRole.arn, * secretsManagerSecretId: sourceAwsSecretsmanagerSecret.arn, * }], * targetDataProviderDescriptors: [{ * dataProviderArn: target.arn, * secretsManagerAccessRoleArn: exampleAwsIamRole.arn, * secretsManagerSecretId: targetAwsSecretsmanagerSecret.arn, * }], * name: "example", * description: "Example migration project", * instanceProfileArn: exampleAwsDmsInstanceProfile.arn, * tags: { * Environment: "example", * }, * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `arn` (String) ARN of the migration project. * * Using `pulumi import`, import a DMS migration project using its full ARN. For example: * * ```sh * $ pulumi import aws:dms/migrationProject:MigrationProject example arn:aws:dms:us-east-1:123456789012:migration-project:EXAMPLEABCDEFGHIJKLMNOPQRS * ``` */ export declare class MigrationProject extends pulumi.CustomResource { /** * Get an existing MigrationProject 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?: MigrationProjectState, opts?: pulumi.CustomResourceOptions): MigrationProject; /** * Returns true if the given object is an instance of MigrationProject. 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 MigrationProject; /** * ARN of the migration project. */ readonly arn: pulumi.Output; /** * Time the migration project was created, in RFC3339 format. */ readonly creationTime: pulumi.Output; /** * User-friendly description of the migration project. */ readonly description: pulumi.Output; /** * ARN of the instance profile associated with the migration project. */ readonly instanceProfileArn: pulumi.Output; /** * Name of the associated instance profile. */ readonly instanceProfileName: pulumi.Output; /** * User-friendly name for the migration project. */ readonly name: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * Schema conversion application attributes, including the S3 bucket path and S3 role ARN. See `schemaConversionApplicationAttributes` Block below. */ readonly schemaConversionApplicationAttributes: pulumi.Output; /** * Information about the source data provider. See `sourceDataProviderDescriptor` Block below. */ readonly sourceDataProviderDescriptors: pulumi.Output; /** * Map of tags assigned to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ readonly tagsAll: pulumi.Output<{ [key: string]: string; }>; /** * Information about the target data provider. See `targetDataProviderDescriptor` Block below. * * The following arguments are optional: */ readonly targetDataProviderDescriptors: pulumi.Output; readonly timeouts: pulumi.Output; /** * JSON string that specifies the transformation rules for the migration project. Homogeneous data migrations do not support transformation rules. */ readonly transformationRules: pulumi.Output; /** * Create a MigrationProject 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: MigrationProjectArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MigrationProject resources. */ export interface MigrationProjectState { /** * ARN of the migration project. */ arn?: pulumi.Input; /** * Time the migration project was created, in RFC3339 format. */ creationTime?: pulumi.Input; /** * User-friendly description of the migration project. */ description?: pulumi.Input; /** * ARN of the instance profile associated with the migration project. */ instanceProfileArn?: pulumi.Input; /** * Name of the associated instance profile. */ instanceProfileName?: pulumi.Input; /** * User-friendly name for the migration project. */ name?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Schema conversion application attributes, including the S3 bucket path and S3 role ARN. See `schemaConversionApplicationAttributes` Block below. */ schemaConversionApplicationAttributes?: pulumi.Input; /** * Information about the source data provider. See `sourceDataProviderDescriptor` Block below. */ sourceDataProviderDescriptors?: pulumi.Input[] | undefined>; /** * Map of tags assigned to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ tagsAll?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Information about the target data provider. See `targetDataProviderDescriptor` Block below. * * The following arguments are optional: */ targetDataProviderDescriptors?: pulumi.Input[] | undefined>; timeouts?: pulumi.Input; /** * JSON string that specifies the transformation rules for the migration project. Homogeneous data migrations do not support transformation rules. */ transformationRules?: pulumi.Input; } /** * The set of arguments for constructing a MigrationProject resource. */ export interface MigrationProjectArgs { /** * User-friendly description of the migration project. */ description?: pulumi.Input; /** * ARN of the instance profile associated with the migration project. */ instanceProfileArn: pulumi.Input; /** * User-friendly name for the migration project. */ name?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Schema conversion application attributes, including the S3 bucket path and S3 role ARN. See `schemaConversionApplicationAttributes` Block below. */ schemaConversionApplicationAttributes?: pulumi.Input; /** * Information about the source data provider. See `sourceDataProviderDescriptor` Block below. */ sourceDataProviderDescriptors: pulumi.Input[]>; /** * Map of tags assigned to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Information about the target data provider. See `targetDataProviderDescriptor` Block below. * * The following arguments are optional: */ targetDataProviderDescriptors: pulumi.Input[]>; timeouts?: pulumi.Input; /** * JSON string that specifies the transformation rules for the migration project. Homogeneous data migrations do not support transformation rules. */ transformationRules?: pulumi.Input; } //# sourceMappingURL=migrationProject.d.ts.map