Skip to content

Latest commit

 

History

History
357 lines (216 loc) · 13.3 KB

File metadata and controls

357 lines (216 loc) · 13.3 KB

API Reference

Constructs

TailscaleLambdaProxy

Initializers

import { TailscaleLambdaProxy } from 'tailscale-lambda-proxy'

new TailscaleLambdaProxy(scope: Construct, id: string, props: TailscaleLambdaProxyProps)
Name Type Description
scope constructs.Construct No description.
id string No description.
props TailscaleLambdaProxyProps No description.

scopeRequired
  • Type: constructs.Construct

idRequired
  • Type: string

propsRequired

Methods

Name Description
toString Returns a string representation of this construct.

toString
public toString(): string

Returns a string representation of this construct.

Static Functions

Name Description
isConstruct Checks if x is a construct.

isConstruct
import { TailscaleLambdaProxy } from 'tailscale-lambda-proxy'

TailscaleLambdaProxy.isConstruct(x: any)

Checks if x is a construct.

xRequired
  • Type: any

Any object.


Properties

Name Type Description
node constructs.Node The tree node.
extension tailscale-lambda-extension.TailscaleLambdaExtension No description.
lambda aws-cdk-lib.aws_lambda_nodejs.NodejsFunction No description.
lambdaFunctionUrl aws-cdk-lib.aws_lambda.FunctionUrl No description.
warmer aws-cdk-lib.aws_lambda_nodejs.NodejsFunction No description.
warmerRule aws-cdk-lib.aws_events.Rule No description.

nodeRequired
public readonly node: Node;
  • Type: constructs.Node

The tree node.


extensionRequired
public readonly extension: TailscaleLambdaExtension;
  • Type: tailscale-lambda-extension.TailscaleLambdaExtension

lambdaRequired
public readonly lambda: NodejsFunction;
  • Type: aws-cdk-lib.aws_lambda_nodejs.NodejsFunction

lambdaFunctionUrlRequired
public readonly lambdaFunctionUrl: FunctionUrl;
  • Type: aws-cdk-lib.aws_lambda.FunctionUrl

warmerOptional
public readonly warmer: NodejsFunction;
  • Type: aws-cdk-lib.aws_lambda_nodejs.NodejsFunction

warmerRuleOptional
public readonly warmerRule: Rule;
  • Type: aws-cdk-lib.aws_events.Rule

Structs

TailscaleLambdaProxyProps

Initializer

import { TailscaleLambdaProxyProps } from 'tailscale-lambda-proxy'

const tailscaleLambdaProxyProps: TailscaleLambdaProxyProps = { ... }

Properties

Name Type Description
tsHostname string The "Machine" name as shown in the Tailscale admin console that identifies the Lambda function.
tsSecretApiKey aws-cdk-lib.aws_secretsmanager.ISecret The name of the AWS Secrets Manager secret that contains the pure text Tailscale API Key.
debug boolean No description.
options TailscaleLambdaProxyPropsOptions No description.

tsHostnameRequired
public readonly tsHostname: string;
  • Type: string

The "Machine" name as shown in the Tailscale admin console that identifies the Lambda function.


tsSecretApiKeyRequired
public readonly tsSecretApiKey: ISecret;
  • Type: aws-cdk-lib.aws_secretsmanager.ISecret

The name of the AWS Secrets Manager secret that contains the pure text Tailscale API Key.


debugOptional
public readonly debug: boolean;
  • Type: boolean

optionsOptional
public readonly options: TailscaleLambdaProxyPropsOptions;

TailscaleLambdaProxyPropsLambdaOption

Initializer

import { TailscaleLambdaProxyPropsLambdaOption } from 'tailscale-lambda-proxy'

const tailscaleLambdaProxyPropsLambdaOption: TailscaleLambdaProxyPropsLambdaOption = { ... }

Properties

Name Type Description
functionName string No description.
nodeTlsRejectUnauthorized boolean No description.

functionNameOptional
public readonly functionName: string;
  • Type: string

nodeTlsRejectUnauthorizedOptional
public readonly nodeTlsRejectUnauthorized: boolean;
  • Type: boolean

TailscaleLambdaProxyPropsOptions

Initializer

import { TailscaleLambdaProxyPropsOptions } from 'tailscale-lambda-proxy'

const tailscaleLambdaProxyPropsOptions: TailscaleLambdaProxyPropsOptions = { ... }

Properties

Name Type Description
extension aws-cdk-lib.aws_lambda.LayerVersionOptions No description.
lambda TailscaleLambdaProxyPropsLambdaOption No description.
warmer TailscaleLambdaProxyPropsWarmerOption If provided, a separate Lambda function will be created to periodically invoke the Tailscale proxy Lambda function to keep it warm.

extensionOptional
public readonly extension: LayerVersionOptions;
  • Type: aws-cdk-lib.aws_lambda.LayerVersionOptions

lambdaOptional
public readonly lambda: TailscaleLambdaProxyPropsLambdaOption;

warmerOptional
public readonly warmer: TailscaleLambdaProxyPropsWarmerOption;

If provided, a separate Lambda function will be created to periodically invoke the Tailscale proxy Lambda function to keep it warm.


TailscaleLambdaProxyPropsWarmerOption

Initializer

import { TailscaleLambdaProxyPropsWarmerOption } from 'tailscale-lambda-proxy'

const tailscaleLambdaProxyPropsWarmerOption: TailscaleLambdaProxyPropsWarmerOption = { ... }

Properties

Name Type Description
concurrentInvocations number No description.
functionName string No description.

concurrentInvocationsOptional
public readonly concurrentInvocations: number;
  • Type: number

functionNameOptional
public readonly functionName: string;
  • Type: string