import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Use this data source to retrieve information about existing Datadog role users assignments. This data source is in beta and is subject to change. * * ## 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 users assigned to the API Key Manager role * const apiKeyManagers = apiKeyManager.then(apiKeyManager => datadog.getRoleUsers({ * roleId: apiKeyManager.id, * })); * ``` */ export declare function getRoleUsers(args: GetRoleUsersArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getRoleUsers. */ export interface GetRoleUsersArgs { /** * When true, `filterKeyword` string is exact matched against the user's `name`. */ exactMatch?: boolean; /** * Search query, can be user name. */ filter?: string; /** * The role's identifier. */ roleId: string; } /** * A collection of values returned by getRoleUsers. */ export interface GetRoleUsersResult { /** * When true, `filterKeyword` string is exact matched against the user's `name`. */ readonly exactMatch?: boolean; /** * Search query, can be user name. */ readonly filter?: string; /** * The ID of this resource. */ readonly id: string; /** * The role's identifier. */ readonly roleId: string; /** * List of users assigned to role. */ readonly roleUsers: outputs.GetRoleUsersRoleUser[]; } /** * Use this data source to retrieve information about existing Datadog role users assignments. This data source is in beta and is subject to change. * * ## 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 users assigned to the API Key Manager role * const apiKeyManagers = apiKeyManager.then(apiKeyManager => datadog.getRoleUsers({ * roleId: apiKeyManager.id, * })); * ``` */ export declare function getRoleUsersOutput(args: GetRoleUsersOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getRoleUsers. */ export interface GetRoleUsersOutputArgs { /** * When true, `filterKeyword` string is exact matched against the user's `name`. */ exactMatch?: pulumi.Input; /** * Search query, can be user name. */ filter?: pulumi.Input; /** * The role's identifier. */ roleId: pulumi.Input; }