UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

58 lines 2.01 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.getIamGroupOutput = exports.getIamGroup = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Gets information about an existing IAM group. For more information, please * check [the 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"; * * const findByName = scaleway.getIamGroup({ * name: "foobar", * }); * const findById = scaleway.getIamGroup({ * groupId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ function getIamGroup(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getIamGroup:getIamGroup", { "groupId": args.groupId, "name": args.name, "organizationId": args.organizationId, }, opts); } exports.getIamGroup = getIamGroup; /** * Gets information about an existing IAM group. For more information, please * check [the 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"; * * const findByName = scaleway.getIamGroup({ * name: "foobar", * }); * const findById = scaleway.getIamGroup({ * groupId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ function getIamGroupOutput(args, opts) { return pulumi.output(args).apply((a) => getIamGroup(a, opts)); } exports.getIamGroupOutput = getIamGroupOutput; //# sourceMappingURL=getIamGroup.js.map