UNPKG

@pierskarsenbarg/sdm

Version:

A Pulumi package for creating and managing StrongDM cloud resources.

106 lines 2.76 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * A GroupRole assigns a Group to a Role. * ## Example Usage * * <!--Start PulumiCodeChooser --> * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sdm from "@pierskarsenbarg/sdm"; * * const securityTeamRoles = sdm.getGroupRole({ * groupId: securityTeam.id, * }); * const specificRelationship = sdm.getGroupRole({ * id: "grouprole-1234567890abcdef", * }); * const groupsWithRole = sdm.getGroupRole({ * roleId: adminRole.id, * }); * ``` * <!--End PulumiCodeChooser --> */ export declare function getGroupRole(args?: GetGroupRoleArgs, opts?: pulumi.InvokeOptions): Promise<GetGroupRoleResult>; /** * A collection of arguments for invoking getGroupRole. */ export interface GetGroupRoleArgs { /** * The assigned Group ID. */ groupId?: string; /** * Unique identifier of the GroupRole. */ id?: string; /** * The assigned Role ID. */ roleId?: string; } /** * A collection of values returned by getGroupRole. */ export interface GetGroupRoleResult { /** * The assigned Group ID. */ readonly groupId?: string; /** * A list where each element has the following attributes: */ readonly groupsRoles: outputs.GetGroupRoleGroupsRole[]; /** * Unique identifier of the GroupRole. */ readonly id?: string; /** * a list of strings of ids of data sources that match the given arguments. */ readonly ids: string[]; /** * The assigned Role ID. */ readonly roleId?: string; } /** * A GroupRole assigns a Group to a Role. * ## Example Usage * * <!--Start PulumiCodeChooser --> * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sdm from "@pierskarsenbarg/sdm"; * * const securityTeamRoles = sdm.getGroupRole({ * groupId: securityTeam.id, * }); * const specificRelationship = sdm.getGroupRole({ * id: "grouprole-1234567890abcdef", * }); * const groupsWithRole = sdm.getGroupRole({ * roleId: adminRole.id, * }); * ``` * <!--End PulumiCodeChooser --> */ export declare function getGroupRoleOutput(args?: GetGroupRoleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetGroupRoleResult>; /** * A collection of arguments for invoking getGroupRole. */ export interface GetGroupRoleOutputArgs { /** * The assigned Group ID. */ groupId?: pulumi.Input<string | undefined>; /** * Unique identifier of the GroupRole. */ id?: pulumi.Input<string | undefined>; /** * The assigned Role ID. */ roleId?: pulumi.Input<string | undefined>; } //# sourceMappingURL=getGroupRole.d.ts.map