@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
72 lines • 2.55 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** 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");
/**
* Use this data source to get an Identity Store Group.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.ssoadmin.getInstances({});
* const exampleGetGroup = example.then(example => aws.identitystore.getGroup({
* identityStoreId: example.identityStoreIds?.[0],
* alternateIdentifier: {
* uniqueAttribute: {
* attributePath: "DisplayName",
* attributeValue: "ExampleGroup",
* },
* },
* }));
* export const groupId = exampleGetGroup.then(exampleGetGroup => exampleGetGroup.groupId);
* ```
*/
function getGroup(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:identitystore/getGroup:getGroup", {
"alternateIdentifier": args.alternateIdentifier,
"groupId": args.groupId,
"identityStoreId": args.identityStoreId,
"region": args.region,
}, opts);
}
exports.getGroup = getGroup;
/**
* Use this data source to get an Identity Store Group.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.ssoadmin.getInstances({});
* const exampleGetGroup = example.then(example => aws.identitystore.getGroup({
* identityStoreId: example.identityStoreIds?.[0],
* alternateIdentifier: {
* uniqueAttribute: {
* attributePath: "DisplayName",
* attributeValue: "ExampleGroup",
* },
* },
* }));
* export const groupId = exampleGetGroup.then(exampleGetGroup => exampleGetGroup.groupId);
* ```
*/
function getGroupOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:identitystore/getGroup:getGroup", {
"alternateIdentifier": args.alternateIdentifier,
"groupId": args.groupId,
"identityStoreId": args.identityStoreId,
"region": args.region,
}, opts);
}
exports.getGroupOutput = getGroupOutput;
//# sourceMappingURL=getGroup.js.map