@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
68 lines (67 loc) • 2.26 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* > **Dynatrace SaaS only**
*
* > To utilize this resource, please define the environment variables `DT_CLIENT_ID`, `DT_CLIENT_SECRET`, `DT_ACCOUNT_ID` with an OAuth client including the following permission: **Allow read access for identity resources (users and groups)** (`account-idm-read`).
*
* The IAM group data source allows the group ID to be retrieved by its name.
*
* - `name` (String) - The name of the IAM group
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dynatrace from "@pulumi/dynatrace";
*
* const example = dynatrace.getIamGroup({
* name: "Terraform Example",
* });
* export const groups = example.then(example => example.id);
* ```
*/
export declare function getIamGroup(args: GetIamGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetIamGroupResult>;
/**
* A collection of arguments for invoking getIamGroup.
*/
export interface GetIamGroupArgs {
name: string;
}
/**
* A collection of values returned by getIamGroup.
*/
export interface GetIamGroupResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name: string;
}
/**
* > **Dynatrace SaaS only**
*
* > To utilize this resource, please define the environment variables `DT_CLIENT_ID`, `DT_CLIENT_SECRET`, `DT_ACCOUNT_ID` with an OAuth client including the following permission: **Allow read access for identity resources (users and groups)** (`account-idm-read`).
*
* The IAM group data source allows the group ID to be retrieved by its name.
*
* - `name` (String) - The name of the IAM group
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dynatrace from "@pulumi/dynatrace";
*
* const example = dynatrace.getIamGroup({
* name: "Terraform Example",
* });
* export const groups = example.then(example => example.id);
* ```
*/
export declare function getIamGroupOutput(args: GetIamGroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetIamGroupResult>;
/**
* A collection of arguments for invoking getIamGroup.
*/
export interface GetIamGroupOutputArgs {
name: pulumi.Input<string>;
}