UNPKG

@upcloud/pulumi-upcloud

Version:

A Pulumi package for creating and managing UpCloud resources.

78 lines 3.05 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.getManagedDatabaseValkeySessionsOutput = exports.getManagedDatabaseValkeySessions = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Current sessions of a Valkey managed database * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as upcloud from "@pulumi/upcloud"; * import * as upcloud from "@upcloud/pulumi-upcloud"; * * // Use data source to gather a list of the active sessions for a Managed Valkey Database * // Create a Managed Valkey resource * const exampleManagedDatabaseValkey = new upcloud.ManagedDatabaseValkey("example", { * name: "example", * title: "example", * plan: "1x1xCPU-2GB", * zone: "fi-hel2", * }); * // Read the active sessions of the newly created service * const example = upcloud.getManagedDatabaseValkeySessionsOutput({ * service: exampleManagedDatabaseValkey.id, * }); * ``` */ function getManagedDatabaseValkeySessions(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("upcloud:index/getManagedDatabaseValkeySessions:getManagedDatabaseValkeySessions", { "limit": args.limit, "offset": args.offset, "order": args.order, "service": args.service, "sessions": args.sessions, }, opts); } exports.getManagedDatabaseValkeySessions = getManagedDatabaseValkeySessions; /** * Current sessions of a Valkey managed database * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as upcloud from "@pulumi/upcloud"; * import * as upcloud from "@upcloud/pulumi-upcloud"; * * // Use data source to gather a list of the active sessions for a Managed Valkey Database * // Create a Managed Valkey resource * const exampleManagedDatabaseValkey = new upcloud.ManagedDatabaseValkey("example", { * name: "example", * title: "example", * plan: "1x1xCPU-2GB", * zone: "fi-hel2", * }); * // Read the active sessions of the newly created service * const example = upcloud.getManagedDatabaseValkeySessionsOutput({ * service: exampleManagedDatabaseValkey.id, * }); * ``` */ function getManagedDatabaseValkeySessionsOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("upcloud:index/getManagedDatabaseValkeySessions:getManagedDatabaseValkeySessions", { "limit": args.limit, "offset": args.offset, "order": args.order, "service": args.service, "sessions": args.sessions, }, opts); } exports.getManagedDatabaseValkeySessionsOutput = getManagedDatabaseValkeySessionsOutput; //# sourceMappingURL=getManagedDatabaseValkeySessions.js.map