// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; import * as utilities from "./utilities"; export class DbMysql5 extends pulumi.CustomResource { /** * Get an existing DbMysql5 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. */ public static get(name: string, id: pulumi.Input, state?: DbMysql5State, opts?: pulumi.CustomResourceOptions): DbMysql5 { return new DbMysql5(name, state, { ...opts, id: id }); } /** @internal */ public static readonly __pulumiType = 'timeweb-cloud:index/dbMysql5:DbMysql5'; /** * Returns true if the given object is an instance of DbMysql5. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ public static isInstance(obj: any): obj is DbMysql5 { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === DbMysql5.__pulumiType; } /** * Interval between indices between rows for `AUTO_INCREMENT` columns */ declare public readonly autoIncrementIncrement: pulumi.Output; /** * Start value for `AUTO_INCREMENT` columns */ declare public readonly autoIncrementOffset: pulumi.Output; declare public readonly dbMysql5Id: pulumi.Output; /** * Information about database disk stats */ declare public /*out*/ readonly diskStats: pulumi.Output; /** * Hash type for database */ declare public readonly hashType: pulumi.Output; /** * Host for connection to database */ declare public /*out*/ readonly host: pulumi.Output; /** * IOPS count */ declare public readonly innodbIoCapacity: pulumi.Output; /** * Threads count for cleanup operation */ declare public readonly innodbPurgeThreads: pulumi.Output; /** * Threads count for read operation */ declare public readonly innodbReadIoThreads: pulumi.Output; /** * Maximum active threads count */ declare public readonly innodbThreadConcurrency: pulumi.Output; /** * Threads count for write operation */ declare public readonly innodbWriteIoThreads: pulumi.Output; /** * IP-address database of network interface */ declare public /*out*/ readonly ip: pulumi.Output; /** * Flag that shows allowability database only by external IP address */ declare public readonly isExternalIp: pulumi.Output; /** * Buffer size for JOIN operation */ declare public readonly joinBufferSize: pulumi.Output; /** * Local IP-address database of network interface */ declare public /*out*/ readonly localIp: pulumi.Output; /** * Flag that enables local network for DB */ declare public readonly localNetwork: pulumi.Output; /** * Login for database */ declare public readonly login: pulumi.Output; /** * Max allowed size for one packet or parameter that may be sent via `mysql_stmt_send_long_data()` */ declare public readonly maxAllowedPacket: pulumi.Output; /** * The maximum permitted number of simultaneous client connections */ declare public readonly maxConnections: pulumi.Output; /** * Max size for user MEMORY-tables */ declare public readonly maxHeapTableSize: pulumi.Output; /** * Name for database */ declare public readonly name: pulumi.Output; /** * Password for database */ declare public readonly password: pulumi.Output; /** * Port for connection to database */ declare public /*out*/ readonly port: pulumi.Output; /** * Preset ID for database */ declare public readonly presetId: pulumi.Output; /** * Project ID for created DB */ declare public readonly projectId: pulumi.Output; /** * The amount of memory allocated for caching query results */ declare public readonly queryCacheSize: pulumi.Output; /** * Set the query cache type */ declare public readonly queryCacheType: pulumi.Output; /** * The current server SQL mode */ declare public readonly sqlModes: pulumi.Output; /** * Current status of database (`started`, `starting`, `stoped`, `no_paid`) */ declare public /*out*/ readonly status: pulumi.Output; /** * Create a DbMysql5 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: DbMysql5Args, opts?: pulumi.CustomResourceOptions) constructor(name: string, argsOrState?: DbMysql5Args | DbMysql5State, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState as DbMysql5State | undefined; resourceInputs["autoIncrementIncrement"] = state?.autoIncrementIncrement; resourceInputs["autoIncrementOffset"] = state?.autoIncrementOffset; resourceInputs["dbMysql5Id"] = state?.dbMysql5Id; resourceInputs["diskStats"] = state?.diskStats; resourceInputs["hashType"] = state?.hashType; resourceInputs["host"] = state?.host; resourceInputs["innodbIoCapacity"] = state?.innodbIoCapacity; resourceInputs["innodbPurgeThreads"] = state?.innodbPurgeThreads; resourceInputs["innodbReadIoThreads"] = state?.innodbReadIoThreads; resourceInputs["innodbThreadConcurrency"] = state?.innodbThreadConcurrency; resourceInputs["innodbWriteIoThreads"] = state?.innodbWriteIoThreads; resourceInputs["ip"] = state?.ip; resourceInputs["isExternalIp"] = state?.isExternalIp; resourceInputs["joinBufferSize"] = state?.joinBufferSize; resourceInputs["localIp"] = state?.localIp; resourceInputs["localNetwork"] = state?.localNetwork; resourceInputs["login"] = state?.login; resourceInputs["maxAllowedPacket"] = state?.maxAllowedPacket; resourceInputs["maxConnections"] = state?.maxConnections; resourceInputs["maxHeapTableSize"] = state?.maxHeapTableSize; resourceInputs["name"] = state?.name; resourceInputs["password"] = state?.password; resourceInputs["port"] = state?.port; resourceInputs["presetId"] = state?.presetId; resourceInputs["projectId"] = state?.projectId; resourceInputs["queryCacheSize"] = state?.queryCacheSize; resourceInputs["queryCacheType"] = state?.queryCacheType; resourceInputs["sqlModes"] = state?.sqlModes; resourceInputs["status"] = state?.status; } else { const args = argsOrState as DbMysql5Args | undefined; if (args?.password === undefined && !opts.urn) { throw new Error("Missing required property 'password'"); } if (args?.presetId === undefined && !opts.urn) { throw new Error("Missing required property 'presetId'"); } resourceInputs["autoIncrementIncrement"] = args?.autoIncrementIncrement; resourceInputs["autoIncrementOffset"] = args?.autoIncrementOffset; resourceInputs["dbMysql5Id"] = args?.dbMysql5Id; resourceInputs["hashType"] = args?.hashType; resourceInputs["innodbIoCapacity"] = args?.innodbIoCapacity; resourceInputs["innodbPurgeThreads"] = args?.innodbPurgeThreads; resourceInputs["innodbReadIoThreads"] = args?.innodbReadIoThreads; resourceInputs["innodbThreadConcurrency"] = args?.innodbThreadConcurrency; resourceInputs["innodbWriteIoThreads"] = args?.innodbWriteIoThreads; resourceInputs["isExternalIp"] = args?.isExternalIp; resourceInputs["joinBufferSize"] = args?.joinBufferSize; resourceInputs["localNetwork"] = args?.localNetwork; resourceInputs["login"] = args?.login; resourceInputs["maxAllowedPacket"] = args?.maxAllowedPacket; resourceInputs["maxConnections"] = args?.maxConnections; resourceInputs["maxHeapTableSize"] = args?.maxHeapTableSize; resourceInputs["name"] = args?.name; resourceInputs["password"] = args?.password ? pulumi.secret(args.password) : undefined; resourceInputs["presetId"] = args?.presetId; resourceInputs["projectId"] = args?.projectId; resourceInputs["queryCacheSize"] = args?.queryCacheSize; resourceInputs["queryCacheType"] = args?.queryCacheType; resourceInputs["sqlModes"] = args?.sqlModes; resourceInputs["diskStats"] = undefined /*out*/; resourceInputs["host"] = undefined /*out*/; resourceInputs["ip"] = undefined /*out*/; resourceInputs["localIp"] = undefined /*out*/; resourceInputs["port"] = undefined /*out*/; resourceInputs["status"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["password"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(DbMysql5.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage()); } } /** * Input properties used for looking up and filtering DbMysql5 resources. */ export interface DbMysql5State { /** * Interval between indices between rows for `AUTO_INCREMENT` columns */ autoIncrementIncrement?: pulumi.Input; /** * Start value for `AUTO_INCREMENT` columns */ autoIncrementOffset?: pulumi.Input; dbMysql5Id?: pulumi.Input; /** * Information about database disk stats */ diskStats?: pulumi.Input[]>; /** * Hash type for database */ hashType?: pulumi.Input; /** * Host for connection to database */ host?: pulumi.Input; /** * IOPS count */ innodbIoCapacity?: pulumi.Input; /** * Threads count for cleanup operation */ innodbPurgeThreads?: pulumi.Input; /** * Threads count for read operation */ innodbReadIoThreads?: pulumi.Input; /** * Maximum active threads count */ innodbThreadConcurrency?: pulumi.Input; /** * Threads count for write operation */ innodbWriteIoThreads?: pulumi.Input; /** * IP-address database of network interface */ ip?: pulumi.Input; /** * Flag that shows allowability database only by external IP address */ isExternalIp?: pulumi.Input; /** * Buffer size for JOIN operation */ joinBufferSize?: pulumi.Input; /** * Local IP-address database of network interface */ localIp?: pulumi.Input; /** * Flag that enables local network for DB */ localNetwork?: pulumi.Input; /** * Login for database */ login?: pulumi.Input; /** * Max allowed size for one packet or parameter that may be sent via `mysql_stmt_send_long_data()` */ maxAllowedPacket?: pulumi.Input; /** * The maximum permitted number of simultaneous client connections */ maxConnections?: pulumi.Input; /** * Max size for user MEMORY-tables */ maxHeapTableSize?: pulumi.Input; /** * Name for database */ name?: pulumi.Input; /** * Password for database */ password?: pulumi.Input; /** * Port for connection to database */ port?: pulumi.Input; /** * Preset ID for database */ presetId?: pulumi.Input; /** * Project ID for created DB */ projectId?: pulumi.Input; /** * The amount of memory allocated for caching query results */ queryCacheSize?: pulumi.Input; /** * Set the query cache type */ queryCacheType?: pulumi.Input; /** * The current server SQL mode */ sqlModes?: pulumi.Input[]>; /** * Current status of database (`started`, `starting`, `stoped`, `no_paid`) */ status?: pulumi.Input; } /** * The set of arguments for constructing a DbMysql5 resource. */ export interface DbMysql5Args { /** * Interval between indices between rows for `AUTO_INCREMENT` columns */ autoIncrementIncrement?: pulumi.Input; /** * Start value for `AUTO_INCREMENT` columns */ autoIncrementOffset?: pulumi.Input; dbMysql5Id?: pulumi.Input; /** * Hash type for database */ hashType?: pulumi.Input; /** * IOPS count */ innodbIoCapacity?: pulumi.Input; /** * Threads count for cleanup operation */ innodbPurgeThreads?: pulumi.Input; /** * Threads count for read operation */ innodbReadIoThreads?: pulumi.Input; /** * Maximum active threads count */ innodbThreadConcurrency?: pulumi.Input; /** * Threads count for write operation */ innodbWriteIoThreads?: pulumi.Input; /** * Flag that shows allowability database only by external IP address */ isExternalIp?: pulumi.Input; /** * Buffer size for JOIN operation */ joinBufferSize?: pulumi.Input; /** * Flag that enables local network for DB */ localNetwork?: pulumi.Input; /** * Login for database */ login?: pulumi.Input; /** * Max allowed size for one packet or parameter that may be sent via `mysql_stmt_send_long_data()` */ maxAllowedPacket?: pulumi.Input; /** * The maximum permitted number of simultaneous client connections */ maxConnections?: pulumi.Input; /** * Max size for user MEMORY-tables */ maxHeapTableSize?: pulumi.Input; /** * Name for database */ name?: pulumi.Input; /** * Password for database */ password: pulumi.Input; /** * Preset ID for database */ presetId: pulumi.Input; /** * Project ID for created DB */ projectId?: pulumi.Input; /** * The amount of memory allocated for caching query results */ queryCacheSize?: pulumi.Input; /** * Set the query cache type */ queryCacheType?: pulumi.Input; /** * The current server SQL mode */ sqlModes?: pulumi.Input[]>; }