UNPKG

@pulumi/linode

Version:

A Pulumi package for creating and managing linode cloud resources.

100 lines 3.46 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getDatabaseMysqlV2Output = exports.getDatabaseMysqlV2 = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Provides information about a Linode MySQL Database. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-databases-mysql-instance). * * ## Example Usage * * Get information about a MySQL database: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * const my_db = linode.getDatabaseMysqlV2({ * id: "12345", * }); * ``` * * ## pendingUpdates * * The following arguments are exposed by each entry in the `pendingUpdates` attribute: * * * `deadline` - The time when a mandatory update needs to be applied. * * * `description` - A description of the update. * * * `plannedFor` - The date and time a maintenance update will be applied. * * ## updates * * The following arguments are supported in the `updates` specification block: * * * `dayOfWeek` - The day to perform maintenance. (`monday`, `tuesday`, ...) * * * `duration` - The maximum maintenance window time in hours. (`1`..`3`) * * * `frequency` - The frequency at which maintenance occurs. (`weekly`) * * * `hourOfDay` - The hour to begin maintenance based in UTC time. (`0`..`23`) */ function getDatabaseMysqlV2(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("linode:index/getDatabaseMysqlV2:getDatabaseMysqlV2", { "id": args.id, }, opts); } exports.getDatabaseMysqlV2 = getDatabaseMysqlV2; /** * Provides information about a Linode MySQL Database. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-databases-mysql-instance). * * ## Example Usage * * Get information about a MySQL database: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * const my_db = linode.getDatabaseMysqlV2({ * id: "12345", * }); * ``` * * ## pendingUpdates * * The following arguments are exposed by each entry in the `pendingUpdates` attribute: * * * `deadline` - The time when a mandatory update needs to be applied. * * * `description` - A description of the update. * * * `plannedFor` - The date and time a maintenance update will be applied. * * ## updates * * The following arguments are supported in the `updates` specification block: * * * `dayOfWeek` - The day to perform maintenance. (`monday`, `tuesday`, ...) * * * `duration` - The maximum maintenance window time in hours. (`1`..`3`) * * * `frequency` - The frequency at which maintenance occurs. (`weekly`) * * * `hourOfDay` - The hour to begin maintenance based in UTC time. (`0`..`23`) */ function getDatabaseMysqlV2Output(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("linode:index/getDatabaseMysqlV2:getDatabaseMysqlV2", { "id": args.id, }, opts); } exports.getDatabaseMysqlV2Output = getDatabaseMysqlV2Output; //# sourceMappingURL=getDatabaseMysqlV2.js.map