UNPKG

@lbrlabs/pulumi-dynatrace

Version:

A Pulumi package for creating and managing Dynatrace cloud resources.

73 lines (72 loc) 3.12 kB
import * as pulumi from "@pulumi/pulumi"; /** * ## Dynatrace Documentation * * - Dynatrace IAM - https://www.dynatrace.com/support/help/how-to-use-dynatrace/user-management-and-sso/manage-groups-and-permissions * * - Settings API - https://www.dynatrace.com/support/help/how-to-use-dynatrace/user-management-and-sso/manage-groups-and-permissions/iam/iam-getting-started * * ## Prerequisites * * Using this resource requires an OAuth client to be configured within your account settings. * The scopes of the OAuth Client need to include `account-idm-read`, `account-idm-write`, `account-env-read`, `account-env-write`, `iam-policies-management`, `iam:policies:write`, `iam:policies:read`, `iam:bindings:write`, `iam:bindings:read` and `iam:effective-permissions:read`. * * Finally the provider configuration requires the credentials for that OAuth Client. * The configuration section of your provider needs to look like this. * ```typescript * import * as pulumi from "@pulumi/pulumi"; * ``` * * ## Resource Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@lbrlabs/pulumi-dynatrace"; * * const johnDoeGmailCom = new dynatrace.IamUser("johnDoeGmailCom", { * email: "john.doe@gmail.com", * groups: [data.dynatrace_iam_group.Restricted.id], * }); * ``` */ export declare class IamUser extends pulumi.CustomResource { /** * Get an existing IamUser resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: IamUserState, opts?: pulumi.CustomResourceOptions): IamUser; /** * Returns true if the given object is an instance of IamUser. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is IamUser; readonly email: pulumi.Output<string>; readonly groups: pulumi.Output<string[] | undefined>; /** * Create a IamUser resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: IamUserArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering IamUser resources. */ export interface IamUserState { email?: pulumi.Input<string>; groups?: pulumi.Input<pulumi.Input<string>[]>; } /** * The set of arguments for constructing a IamUser resource. */ export interface IamUserArgs { email: pulumi.Input<string>; groups?: pulumi.Input<pulumi.Input<string>[]>; }