UNPKG

@pulumi/linode

Version:

A Pulumi package for creating and managing linode cloud resources.

92 lines 3.49 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.getDatabaseMysqlOutput = exports.getDatabaseMysql = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * > **DEPRECATION NOTICE:** This data source has been deprecated. Please use linode.DatabaseMysqlV2 for all future implementations. * * Provides information about a Linode MySQL Database. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-databases-instances). * * ## 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.getDatabaseMysql({ * id: 12345, * }); * ``` * * ## updates * * The following arguments are exported by the `updates` specification block: * * * `dayOfWeek` - The day to perform maintenance. (`monday`, `tuesday`, ...) * * * `duration` - The maximum maintenance window time in hours. (`1`..`3`) * * * `frequency` - Whether maintenance occurs on a weekly or monthly basis. (`weekly`, `monthly`) * * * `hourOfDay` - The hour to begin maintenance based in UTC time. (`0`..`23`) * * * `weekOfMonth` - The week of the month to perform monthly frequency updates. Required for `monthly` frequency updates. (`1`..`4`) */ function getDatabaseMysql(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("linode:index/getDatabaseMysql:getDatabaseMysql", { "databaseId": args.databaseId, "id": args.id, }, opts); } exports.getDatabaseMysql = getDatabaseMysql; /** * > **DEPRECATION NOTICE:** This data source has been deprecated. Please use linode.DatabaseMysqlV2 for all future implementations. * * Provides information about a Linode MySQL Database. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-databases-instances). * * ## 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.getDatabaseMysql({ * id: 12345, * }); * ``` * * ## updates * * The following arguments are exported by the `updates` specification block: * * * `dayOfWeek` - The day to perform maintenance. (`monday`, `tuesday`, ...) * * * `duration` - The maximum maintenance window time in hours. (`1`..`3`) * * * `frequency` - Whether maintenance occurs on a weekly or monthly basis. (`weekly`, `monthly`) * * * `hourOfDay` - The hour to begin maintenance based in UTC time. (`0`..`23`) * * * `weekOfMonth` - The week of the month to perform monthly frequency updates. Required for `monthly` frequency updates. (`1`..`4`) */ function getDatabaseMysqlOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("linode:index/getDatabaseMysql:getDatabaseMysql", { "databaseId": args.databaseId, "id": args.id, }, opts); } exports.getDatabaseMysqlOutput = getDatabaseMysqlOutput; //# sourceMappingURL=getDatabaseMysql.js.map