@pierskarsenbarg/sdm
Version:
A Pulumi package for creating and managing StrongDM cloud resources.
116 lines • 4.28 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* Nodes make up the StrongDM network, and allow your users to connect securely to your resources.
* There are three types of nodes:
* 1. **Relay:** creates connectivity to your datasources, while maintaining the egress-only nature of your firewall
* 2. **Gateway:** a relay that also listens for connections from StrongDM clients
* 3. **Proxy Cluster:** a cluster of workers that together mediate access from clients to resources
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sdm from "@pierskarsenbarg/sdm";
*
* const gateway = new sdm.Node("gateway", {gateway: {
* name: "test-gateway",
* listenAddress: "165.23.40.1:21222",
* bindAddress: "0.0.0.0:21222",
* tags: {
* region: "us-west",
* env: "dev",
* },
* }});
* const relay = new sdm.Node("relay", {relay: {
* name: "test-relay",
* tags: {
* region: "us-west",
* env: "dev",
* },
* }});
* ```
* <!--End PulumiCodeChooser -->
* This resource can be imported using the import command.
*
* ## Import
*
* A Node can be imported using the id, e.g.,
*
* ```sh
* $ pulumi import sdm:index/node:Node example n-12345678
* ```
*/
export declare class Node extends pulumi.CustomResource {
/**
* Get an existing Node resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: NodeState, opts?: pulumi.CustomResourceOptions): Node;
/**
* Returns true if the given object is an instance of Node. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is Node;
/**
* Gateway represents a StrongDM CLI installation running in gateway mode.
*/
readonly gateway: pulumi.Output<outputs.NodeGateway | undefined>;
/**
* ProxyCluster represents a cluster of StrongDM proxies.
*/
readonly proxyCluster: pulumi.Output<outputs.NodeProxyCluster | undefined>;
/**
* Relay represents a StrongDM CLI installation running in relay mode.
*/
readonly relay: pulumi.Output<outputs.NodeRelay | undefined>;
/**
* Create a Node resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args?: NodeArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Node resources.
*/
export interface NodeState {
/**
* Gateway represents a StrongDM CLI installation running in gateway mode.
*/
gateway?: pulumi.Input<inputs.NodeGateway | undefined>;
/**
* ProxyCluster represents a cluster of StrongDM proxies.
*/
proxyCluster?: pulumi.Input<inputs.NodeProxyCluster | undefined>;
/**
* Relay represents a StrongDM CLI installation running in relay mode.
*/
relay?: pulumi.Input<inputs.NodeRelay | undefined>;
}
/**
* The set of arguments for constructing a Node resource.
*/
export interface NodeArgs {
/**
* Gateway represents a StrongDM CLI installation running in gateway mode.
*/
gateway?: pulumi.Input<inputs.NodeGateway | undefined>;
/**
* ProxyCluster represents a cluster of StrongDM proxies.
*/
proxyCluster?: pulumi.Input<inputs.NodeProxyCluster | undefined>;
/**
* Relay represents a StrongDM CLI installation running in relay mode.
*/
relay?: pulumi.Input<inputs.NodeRelay | undefined>;
}
//# sourceMappingURL=node.d.ts.map