import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Use this data source to retrieve the list of permissions assigned to a Datadog role. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * // Get the API Key Manager role * const apiKeyManager = datadog.getRole({ * filter: "API Key Manager", * }); * // List permissions assigned to the API Key Manager role * const apiKeyManagerPermissions = apiKeyManager.then(apiKeyManager => datadog.getRolePermissions({ * roleId: apiKeyManager.id, * })); * ``` */ export declare function getRolePermissions(args: GetRolePermissionsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getRolePermissions. */ export interface GetRolePermissionsArgs { /** * The role's identifier. */ roleId: string; } /** * A collection of values returned by getRolePermissions. */ export interface GetRolePermissionsResult { /** * The ID of this resource. */ readonly id: string; /** * List of permissions assigned to the role. */ readonly permissions: outputs.GetRolePermissionsPermission[]; /** * The role's identifier. */ readonly roleId: string; } /** * Use this data source to retrieve the list of permissions assigned to a Datadog role. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * // Get the API Key Manager role * const apiKeyManager = datadog.getRole({ * filter: "API Key Manager", * }); * // List permissions assigned to the API Key Manager role * const apiKeyManagerPermissions = apiKeyManager.then(apiKeyManager => datadog.getRolePermissions({ * roleId: apiKeyManager.id, * })); * ``` */ export declare function getRolePermissionsOutput(args: GetRolePermissionsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getRolePermissions. */ export interface GetRolePermissionsOutputArgs { /** * The role's identifier. */ roleId: pulumi.Input; } //# sourceMappingURL=getRolePermissions.d.ts.map