UNPKG

@pierskarsenbarg/sdm

Version:

A Pulumi package for creating and managing StrongDM cloud resources.

106 lines (105 loc) 2.94 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * RemoteIdentities define the username to be used for a specific account * when connecting to a remote resource using that group. * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sdm from "@pierskarsenbarg/sdm"; * * const user = sdm.getRemoteIdentity({ * id: "i-0900909", * username: "user", * }); * ``` */ export declare function getRemoteIdentity(args?: GetRemoteIdentityArgs, opts?: pulumi.InvokeOptions): Promise<GetRemoteIdentityResult>; /** * A collection of arguments for invoking getRemoteIdentity. */ export interface GetRemoteIdentityArgs { /** * The account for this remote identity. */ accountId?: string; /** * Unique identifier of the RemoteIdentity. */ id?: string; /** * The remote identity group. */ remoteIdentityGroupId?: string; /** * The username to be used as the remote identity for this account. */ username?: string; } /** * A collection of values returned by getRemoteIdentity. */ export interface GetRemoteIdentityResult { /** * The account for this remote identity. */ readonly accountId?: string; /** * Unique identifier of the RemoteIdentity. */ readonly id?: string; /** * a list of strings of ids of data sources that match the given arguments. */ readonly ids: string[]; /** * A list where each element has the following attributes: */ readonly remoteIdentities: outputs.GetRemoteIdentityRemoteIdentity[]; /** * The remote identity group. */ readonly remoteIdentityGroupId?: string; /** * The username to be used as the remote identity for this account. */ readonly username?: string; } /** * RemoteIdentities define the username to be used for a specific account * when connecting to a remote resource using that group. * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sdm from "@pierskarsenbarg/sdm"; * * const user = sdm.getRemoteIdentity({ * id: "i-0900909", * username: "user", * }); * ``` */ export declare function getRemoteIdentityOutput(args?: GetRemoteIdentityOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRemoteIdentityResult>; /** * A collection of arguments for invoking getRemoteIdentity. */ export interface GetRemoteIdentityOutputArgs { /** * The account for this remote identity. */ accountId?: pulumi.Input<string>; /** * Unique identifier of the RemoteIdentity. */ id?: pulumi.Input<string>; /** * The remote identity group. */ remoteIdentityGroupId?: pulumi.Input<string>; /** * The username to be used as the remote identity for this account. */ username?: pulumi.Input<string>; }