@twingate/pulumi-twingate
Version:
A Pulumi package for creating and managing Twingate cloud resources.
110 lines (109 loc) • 3.98 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* Generates a Gateway configuration YAML from SSH and Kubernetes resources.
*/
export declare class TwingateGatewayConfig extends pulumi.CustomResource {
/**
* Get an existing TwingateGatewayConfig 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?: TwingateGatewayConfigState, opts?: pulumi.CustomResourceOptions): TwingateGatewayConfig;
/**
* Returns true if the given object is an instance of TwingateGatewayConfig. 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 TwingateGatewayConfig;
/**
* The generated YAML configuration content.
*/
readonly content: pulumi.Output<string>;
/**
* Kubernetes configuration block containing resource settings.
*/
readonly kubernetes: pulumi.Output<outputs.TwingateGatewayConfigKubernetes>;
/**
* Gateway metrics port. Default: 9090.
*/
readonly metricsPort: pulumi.Output<number>;
/**
* Gateway listen port. Default: 8443.
*/
readonly port: pulumi.Output<number>;
/**
* SSH configuration block containing gateway, CA, and resource settings.
*/
readonly ssh: pulumi.Output<outputs.TwingateGatewayConfigSsh>;
/**
* TLS configuration for the gateway.
*/
readonly tls: pulumi.Output<outputs.TwingateGatewayConfigTls>;
/**
* Create a TwingateGatewayConfig 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?: TwingateGatewayConfigArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering TwingateGatewayConfig resources.
*/
export interface TwingateGatewayConfigState {
/**
* The generated YAML configuration content.
*/
content?: pulumi.Input<string>;
/**
* Kubernetes configuration block containing resource settings.
*/
kubernetes?: pulumi.Input<inputs.TwingateGatewayConfigKubernetes>;
/**
* Gateway metrics port. Default: 9090.
*/
metricsPort?: pulumi.Input<number>;
/**
* Gateway listen port. Default: 8443.
*/
port?: pulumi.Input<number>;
/**
* SSH configuration block containing gateway, CA, and resource settings.
*/
ssh?: pulumi.Input<inputs.TwingateGatewayConfigSsh>;
/**
* TLS configuration for the gateway.
*/
tls?: pulumi.Input<inputs.TwingateGatewayConfigTls>;
}
/**
* The set of arguments for constructing a TwingateGatewayConfig resource.
*/
export interface TwingateGatewayConfigArgs {
/**
* Kubernetes configuration block containing resource settings.
*/
kubernetes?: pulumi.Input<inputs.TwingateGatewayConfigKubernetes>;
/**
* Gateway metrics port. Default: 9090.
*/
metricsPort?: pulumi.Input<number>;
/**
* Gateway listen port. Default: 8443.
*/
port?: pulumi.Input<number>;
/**
* SSH configuration block containing gateway, CA, and resource settings.
*/
ssh?: pulumi.Input<inputs.TwingateGatewayConfigSsh>;
/**
* TLS configuration for the gateway.
*/
tls?: pulumi.Input<inputs.TwingateGatewayConfigTls>;
}