UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

70 lines 2.32 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.getGroupOutput = exports.getGroup = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Gets information about an existing IAM group. * * For more information, refer to the [IAM API documentation](https://developers.scaleway.com/en/products/iam/api/v1alpha1/#applications-83ce5e) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Get info by name * const findByName = scaleway.iam.getGroup({ * name: "foobar", * }); * // Get info by group ID * const findById = scaleway.iam.getGroup({ * groupId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ function getGroup(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:iam/getGroup:getGroup", { "groupId": args.groupId, "name": args.name, "organizationId": args.organizationId, }, opts); } exports.getGroup = getGroup; /** * Gets information about an existing IAM group. * * For more information, refer to the [IAM API documentation](https://developers.scaleway.com/en/products/iam/api/v1alpha1/#applications-83ce5e) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Get info by name * const findByName = scaleway.iam.getGroup({ * name: "foobar", * }); * // Get info by group ID * const findById = scaleway.iam.getGroup({ * groupId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ function getGroupOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:iam/getGroup:getGroup", { "groupId": args.groupId, "name": args.name, "organizationId": args.organizationId, }, opts); } exports.getGroupOutput = getGroupOutput; //# sourceMappingURL=getGroup.js.map