UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

112 lines (111 loc) 2.65 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data source for retrieving role assignment. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = harness.platform.getRoleAssignments({ * identifier: "identifier", * orgId: "org_id", * projectId: "project_id", * }); * ``` */ export declare function getRoleAssignments(args: GetRoleAssignmentsArgs, opts?: pulumi.InvokeOptions): Promise<GetRoleAssignmentsResult>; /** * A collection of arguments for invoking getRoleAssignments. */ export interface GetRoleAssignmentsArgs { /** * Identifier for role assignment. */ identifier: string; /** * Org identifier. */ orgId?: string; /** * Project Identifier */ projectId?: string; } /** * A collection of values returned by getRoleAssignments. */ export interface GetRoleAssignmentsResult { /** * Disabled or not. */ readonly disabled: boolean; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Identifier for role assignment. */ readonly identifier: string; /** * Managed or not. */ readonly managed: boolean; /** * Org identifier. */ readonly orgId?: string; /** * Principal. */ readonly principals: outputs.platform.GetRoleAssignmentsPrincipal[]; /** * Project Identifier */ readonly projectId?: string; /** * Resource group identifier. */ readonly resourceGroupIdentifier: string; /** * Role identifier. */ readonly roleIdentifier: string; } /** * Data source for retrieving role assignment. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = harness.platform.getRoleAssignments({ * identifier: "identifier", * orgId: "org_id", * projectId: "project_id", * }); * ``` */ export declare function getRoleAssignmentsOutput(args: GetRoleAssignmentsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRoleAssignmentsResult>; /** * A collection of arguments for invoking getRoleAssignments. */ export interface GetRoleAssignmentsOutputArgs { /** * Identifier for role assignment. */ identifier: pulumi.Input<string>; /** * Org identifier. */ orgId?: pulumi.Input<string>; /** * Project Identifier */ projectId?: pulumi.Input<string>; }