Pulumi's Node.js SDK for infrastructure-as-code platform that allows you to create, deploy, and manage infrastructure using familiar programming languages and tools.
85
Compose connection details from deferred stack values while keeping sensitive data protected and unknown values intact during previews.
"undefined" segments; defaults port to 443 when omitted. @test@generates
// GraphValue represents deferred stack values that may be secret or unknown.
export type GraphValue<T> = unknown;
export interface ConnectionInputs {
host: GraphValue<string>;
port?: GraphValue<number>;
database: GraphValue<string>;
region?: GraphValue<string | undefined>;
credentials: {
username: GraphValue<string>;
password: GraphValue<string>;
sensitive?: boolean;
};
}
export interface ConnectionDetails {
uri: GraphValue<string>;
redacted: GraphValue<{
host: string;
port: number;
database: string;
region?: string;
username: string;
}>;
credentials: GraphValue<{ username: string; password: string }>;
}
export function buildConnectionDetails(
inputs: ConnectionInputs
): GraphValue<ConnectionDetails>;Provides graph-aware values, combination helpers, and secret handling.
Install with Tessl CLI
npx tessl i tessl/npm-pulumi--pulumidocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10