UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

74 lines 2.91 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, 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", * }); * ``` */ /** @deprecated scaleway.index/getiamgroup.getIamGroup has been deprecated in favor of scaleway.iam/getgroup.getGroup */ function getIamGroup(args, opts) { pulumi.log.warn("getIamGroup is deprecated: scaleway.index/getiamgroup.getIamGroup has been deprecated in favor of scaleway.iam/getgroup.getGroup"); 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, 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", * }); * ``` */ /** @deprecated scaleway.index/getiamgroup.getIamGroup has been deprecated in favor of scaleway.iam/getgroup.getGroup */ function getIamGroupOutput(args, opts) { pulumi.log.warn("getIamGroup is deprecated: scaleway.index/getiamgroup.getIamGroup has been deprecated in favor of scaleway.iam/getgroup.getGroup"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:index/getIamGroup:getIamGroup", { "groupId": args.groupId, "name": args.name, "organizationId": args.organizationId, }, opts); } exports.getIamGroupOutput = getIamGroupOutput; //# sourceMappingURL=getIamGroup.js.map