import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an AWS DMS (Database Migration) Data Provider. A data provider stores the database engine and connection settings for a database used in a migration project. Creating a data provider does not create a database. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.dms.DataProvider("example", { * settings: { * postgresqlSettings: { * serverName: "example.com", * port: 5432, * databaseName: "example", * sslMode: "none", * }, * }, * engine: "postgres", * }); * ``` * * ### MySQL Data Provider * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.dms.DataProvider("example", { * settings: { * mysqlSettings: { * serverName: "mysql.example.com", * port: 3306, * sslMode: "require", * }, * }, * name: "example-mysql", * description: "Example MySQL data provider", * engine: "mysql", * tags: { * Environment: "example", * }, * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `arn` (String) ARN of the data provider. * * Using `pulumi import`, import a DMS data provider using its full ARN. For example: * * ```sh * $ pulumi import aws:dms/dataProvider:DataProvider example arn:aws:dms:us-east-1:123456789012:data-provider:EXAMPLEABCDEFGHIJKLMNOPQRS * ``` */ export declare class DataProvider extends pulumi.CustomResource { /** * Get an existing DataProvider 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?: DataProviderState, opts?: pulumi.CustomResourceOptions): DataProvider; /** * Returns true if the given object is an instance of DataProvider. 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 DataProvider; /** * ARN of the data provider. */ readonly arn: pulumi.Output; /** * Creation time of the data provider in RFC3339 format. */ readonly creationTime: pulumi.Output; /** * Description of the data provider. */ readonly description: pulumi.Output; /** * Database engine for the data provider. Valid values: `aurora`, `aurora-postgresql`, `db2`, `db2-zos`, `docdb`, `mariadb`, `mongodb`, `mysql`, `oracle`, `postgres`, `redshift`, `sqlserver`, and `sybase`. Use `aurora` for Amazon Aurora MySQL-Compatible Edition. */ readonly engine: pulumi.Output; /** * Name of the data provider. AWS generates a name when omitted. */ 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; /** * Database connection settings. Configure exactly one block matching `engine`. See `settings` Block below. * * The following arguments are optional: */ readonly settings: 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; }>; /** * Whether to create a virtual data provider, which does not require a connection to a database. Defaults to `false`. */ readonly virtual: pulumi.Output; /** * Create a DataProvider 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: DataProviderArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DataProvider resources. */ export interface DataProviderState { /** * ARN of the data provider. */ arn?: pulumi.Input; /** * Creation time of the data provider in RFC3339 format. */ creationTime?: pulumi.Input; /** * Description of the data provider. */ description?: pulumi.Input; /** * Database engine for the data provider. Valid values: `aurora`, `aurora-postgresql`, `db2`, `db2-zos`, `docdb`, `mariadb`, `mongodb`, `mysql`, `oracle`, `postgres`, `redshift`, `sqlserver`, and `sybase`. Use `aurora` for Amazon Aurora MySQL-Compatible Edition. */ engine?: pulumi.Input; /** * Name of the data provider. AWS generates a name when omitted. */ 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; /** * Database connection settings. Configure exactly one block matching `engine`. See `settings` Block below. * * The following arguments are optional: */ settings?: 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>; /** * Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ tagsAll?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Whether to create a virtual data provider, which does not require a connection to a database. Defaults to `false`. */ virtual?: pulumi.Input; } /** * The set of arguments for constructing a DataProvider resource. */ export interface DataProviderArgs { /** * Description of the data provider. */ description?: pulumi.Input; /** * Database engine for the data provider. Valid values: `aurora`, `aurora-postgresql`, `db2`, `db2-zos`, `docdb`, `mariadb`, `mongodb`, `mysql`, `oracle`, `postgres`, `redshift`, `sqlserver`, and `sybase`. Use `aurora` for Amazon Aurora MySQL-Compatible Edition. */ engine: pulumi.Input; /** * Name of the data provider. AWS generates a name when omitted. */ 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; /** * Database connection settings. Configure exactly one block matching `engine`. See `settings` Block below. * * The following arguments are optional: */ settings: 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>; /** * Whether to create a virtual data provider, which does not require a connection to a database. Defaults to `false`. */ virtual?: pulumi.Input; } //# sourceMappingURL=dataProvider.d.ts.map