Wing Console - 0.1.43
Constructs
App
Initializers
import { core } from '@monadahq/wingsdk'
new core.App(props?: AppProps)
| Name | Type | Description |
|---|
props | @monadahq/wingsdk.core.AppProps | No description. |
propsOptional
- Type: @monadahq/wingsdk.core.AppProps
Methods
| Name | Description |
|---|
toString | Returns a string representation of this construct. |
synth | No description. |
toString
public toString(): string
Returns a string representation of this construct.
synth
Static Functions
isConstruct
import { core } from '@monadahq/wingsdk'
core.App.isConstruct(x: any)
Checks if x is a construct.
xRequired
Any object.
Properties
| Name | Type | Description |
|---|
node | constructs.Node | The tree node. |
outdir | string | No description. |
root | constructs.Construct | No description. |
stateFile | string | No description. |
nodeRequired
public readonly node: Node;
The tree node.
outdirRequired
public readonly outdir: string;
rootRequired
public readonly root: Construct;
- Type: constructs.Construct
stateFileOptional
public readonly stateFile: string;
Bucket
- Implements: @monadahq/wingsdk.core.ICapturable
Initializers
import { cloud } from '@monadahq/wingsdk'
new cloud.Bucket(scope: Construct, id: string)
| Name | Type | Description |
|---|
scope | constructs.Construct | No description. |
id | string | No description. |
scopeRequired
- Type: constructs.Construct
idRequired
Methods
| Name | Description |
|---|
toString | Returns a string representation of this construct. |
capture | No description. |
toString
public toString(): string
Returns a string representation of this construct.
capture
public capture(consumer: any, capture: Capture): string
consumerRequired
captureRequired
- Type: @monadahq/wingsdk.core.Capture
Static Functions
isConstruct
import { cloud } from '@monadahq/wingsdk'
cloud.Bucket.isConstruct(x: any)
Checks if x is a construct.
xRequired
Any object.
Properties
| Name | Type | Description |
|---|
node | constructs.Node | The tree node. |
nodeRequired
public readonly node: Node;
The tree node.
Endpoint
Initializers
import { cloud } from '@monadahq/wingsdk'
new cloud.Endpoint(scope: Construct, id: string)
| Name | Type | Description |
|---|
scope | constructs.Construct | No description. |
id | string | No description. |
scopeRequired
- Type: constructs.Construct
idRequired
Methods
| Name | Description |
|---|
toString | Returns a string representation of this construct. |
onGet | No description. |
toString
public toString(): string
Returns a string representation of this construct.
onGet
public onGet(route: string, proc: Process): void
routeRequired
procRequired
- Type: @monadahq/wingsdk.core.Process
Static Functions
isConstruct
import { cloud } from '@monadahq/wingsdk'
cloud.Endpoint.isConstruct(x: any)
Checks if x is a construct.
xRequired
Any object.
Properties
| Name | Type | Description |
|---|
node | constructs.Node | The tree node. |
nodeRequired
public readonly node: Node;
The tree node.
FileBase
Initializers
import { fs } from '@monadahq/wingsdk'
new fs.FileBase(scope: Construct, id: string, filePath: string)
| Name | Type | Description |
|---|
scope | constructs.Construct | construct scope. |
id | string | construct id. |
filePath | string | relative file path. |
scopeRequired
- Type: constructs.Construct
construct scope.
idRequired
construct id.
filePathRequired
relative file path.
Methods
| Name | Description |
|---|
toString | Returns a string representation of this construct. |
save | No description. |
toString
public toString(): string
Returns a string representation of this construct.
save
public save(outdir: string): void
outdirRequired
Static Functions
isConstruct
import { fs } from '@monadahq/wingsdk'
fs.FileBase.isConstruct(x: any)
Checks if x is a construct.
xRequired
Any object.
Properties
| Name | Type | Description |
|---|
node | constructs.Node | The tree node. |
filePath | string | No description. |
nodeRequired
public readonly node: Node;
The tree node.
filePathRequired
public readonly filePath: string;
Function
Initializers
import { cloud } from '@monadahq/wingsdk'
new cloud.Function(scope: Construct, id: string, process: Process)
| Name | Type | Description |
|---|
scope | constructs.Construct | No description. |
id | string | No description. |
process | @monadahq/wingsdk.core.Process | No description. |
scopeRequired
- Type: constructs.Construct
idRequired
processRequired
- Type: @monadahq/wingsdk.core.Process
Methods
toString
public toString(): string
Returns a string representation of this construct.
addEnvironment
public addEnvironment(name: string, value: string): void
nameRequired
valueRequired
addPolicyStatements
public addPolicyStatements(statements: PolicyStatement): void
statementsRequired
- Type: @monadahq/wingsdk.cloud.PolicyStatement
Static Functions
isConstruct
import { cloud } from '@monadahq/wingsdk'
cloud.Function.isConstruct(x: any)
Checks if x is a construct.
xRequired
Any object.
Properties
| Name | Type | Description |
|---|
node | constructs.Node | The tree node. |
nodeRequired
public readonly node: Node;
The tree node.
JsonFile
Initializers
import { fs } from '@monadahq/wingsdk'
new fs.JsonFile(scope: Construct, id: string, filePath: string, props: JsonFileProps)
| Name | Type | Description |
|---|
scope | constructs.Construct | No description. |
id | string | No description. |
filePath | string | No description. |
props | @monadahq/wingsdk.fs.JsonFileProps | No description. |
scopeRequired
- Type: constructs.Construct
idRequired
filePathRequired
propsRequired
- Type: @monadahq/wingsdk.fs.JsonFileProps
Methods
| Name | Description |
|---|
toString | Returns a string representation of this construct. |
save | No description. |
toString
public toString(): string
Returns a string representation of this construct.
save
public save(outdir: string): void
outdirRequired
Static Functions
isConstruct
import { fs } from '@monadahq/wingsdk'
fs.JsonFile.isConstruct(x: any)
Checks if x is a construct.
xRequired
Any object.
Properties
| Name | Type | Description |
|---|
node | constructs.Node | The tree node. |
filePath | string | No description. |
nodeRequired
public readonly node: Node;
The tree node.
filePathRequired
public readonly filePath: string;
Queue
Initializers
import { cloud } from '@monadahq/wingsdk'
new cloud.Queue(scope: Construct, id: string, props?: QueueProps)
| Name | Type | Description |
|---|
scope | constructs.Construct | No description. |
id | string | No description. |
props | @monadahq/wingsdk.cloud.QueueProps | No description. |
scopeRequired
- Type: constructs.Construct
idRequired
propsOptional
- Type: @monadahq/wingsdk.cloud.QueueProps
Methods
| Name | Description |
|---|
toString | Returns a string representation of this construct. |
addWorker | No description. |
hello | No description. |
toString
public toString(): string
Returns a string representation of this construct.
addWorker
public addWorker(fn: Function): void
fnRequired
- Type: @monadahq/wingsdk.cloud.Function
hello
Static Functions
isConstruct
import { cloud } from '@monadahq/wingsdk'
cloud.Queue.isConstruct(x: any)
Checks if x is a construct.
xRequired
Any object.
Properties
| Name | Type | Description |
|---|
node | constructs.Node | The tree node. |
nodeRequired
public readonly node: Node;
The tree node.
TextFile
Initializers
import { fs } from '@monadahq/wingsdk'
new fs.TextFile(scope: Construct, id: string, filePath: string, props?: TextFileProps)
| Name | Type | Description |
|---|
scope | constructs.Construct | No description. |
id | string | No description. |
filePath | string | No description. |
props | @monadahq/wingsdk.fs.TextFileProps | No description. |
scopeRequired
- Type: constructs.Construct
idRequired
filePathRequired
propsOptional
- Type: @monadahq/wingsdk.fs.TextFileProps
Methods
| Name | Description |
|---|
toString | Returns a string representation of this construct. |
save | No description. |
addLine | No description. |
toString
public toString(): string
Returns a string representation of this construct.
save
public save(outdir: string): void
outdirRequired
addLine
public addLine(line: string): void
lineRequired
Static Functions
isConstruct
import { fs } from '@monadahq/wingsdk'
fs.TextFile.isConstruct(x: any)
Checks if x is a construct.
xRequired
Any object.
Properties
| Name | Type | Description |
|---|
node | constructs.Node | The tree node. |
filePath | string | No description. |
nodeRequired
public readonly node: Node;
The tree node.
filePathRequired
public readonly filePath: string;
Structs
AppProps
Initializer
import { core } from '@monadahq/wingsdk'
const appProps: core.AppProps = { ... }
Properties
| Name | Type | Description |
|---|
outdir | string | The root output directory of the app. |
stateFile | string | The path to a state file which will track all synthesized files. |
outdirOptional
public readonly outdir: string;
The root output directory of the app.
stateFileOptional
public readonly stateFile: string;
The path to a state file which will track all synthesized files.
If a
statefile is not specified, we won't be able to remove extrenous files.
Capture
Initializer
import { core } from '@monadahq/wingsdk'
const capture: core.Capture = { ... }
Properties
| Name | Type | Description |
|---|
obj | any | The captured object. |
methods | string[] | Which methods are called on the captured object. |
objRequired
public readonly obj: any;
The captured object.
methodsOptional
public readonly methods: string[];
Which methods are called on the captured object.
JsonFileProps
Initializer
import { fs } from '@monadahq/wingsdk'
const jsonFileProps: fs.JsonFileProps = { ... }
Properties
| Name | Type | Description |
|---|
obj | any | The object that will be serialized into the file during synthesis. |
objRequired
public readonly obj: any;
The object that will be serialized into the file during synthesis.
PolicyStatement
Initializer
import { cloud } from '@monadahq/wingsdk'
const policyStatement: cloud.PolicyStatement = { ... }
Properties
| Name | Type | Description |
|---|
action | string[] | No description. |
effect | string | No description. |
resource | string[] | No description. |
actionOptional
public readonly action: string[];
effectOptional
public readonly effect: string;
resourceOptional
public readonly resource: string[];
ProcessProps
Initializer
import { core } from '@monadahq/wingsdk'
const processProps: core.ProcessProps = { ... }
Properties
| Name | Type | Description |
|---|
path | string | No description. |
captures | {[ key: string ]: @monadahq/wingsdk.core.Capture} | No description. |
pathRequired
public readonly path: string;
capturesOptional
public readonly captures: {[ key: string ]: Capture};
- Type: {[ key: string ]: @monadahq/wingsdk.core.Capture}
QueueProps
Initializer
import { cloud } from '@monadahq/wingsdk'
const queueProps: cloud.QueueProps = { ... }
Properties
| Name | Type | Description |
|---|
timeout | @monadahq/wingsdk.core.Duration | No description. |
timeoutOptional
public readonly timeout: Duration;
- Type: @monadahq/wingsdk.core.Duration
TextFileProps
Initializer
import { fs } from '@monadahq/wingsdk'
const textFileProps: fs.TextFileProps = { ... }
Properties
| Name | Type | Description |
|---|
lines | string[] | No description. |
linesOptional
public readonly lines: string[];
Classes
Duration
Static Functions
fromHours
import { core } from '@monadahq/wingsdk'
core.Duration.fromHours(amount: number)
amountRequired
fromMinutes
import { core } from '@monadahq/wingsdk'
core.Duration.fromMinutes(amount: number)
amountRequired
fromSeconds
import { core } from '@monadahq/wingsdk'
core.Duration.fromSeconds(amount: number)
amountRequired
Properties
| Name | Type | Description |
|---|
hours | number | No description. |
minutes | number | No description. |
seconds | number | No description. |
hoursRequired
public readonly hours: number;
minutesRequired
public readonly minutes: number;
secondsRequired
public readonly seconds: number;
Process
Initializers
import { core } from '@monadahq/wingsdk'
new core.Process(props: ProcessProps)
| Name | Type | Description |
|---|
props | @monadahq/wingsdk.core.ProcessProps | No description. |
propsRequired
- Type: @monadahq/wingsdk.core.ProcessProps
Properties
| Name | Type | Description |
|---|
captures | {[ key: string ]: @monadahq/wingsdk.core.Capture} | No description. |
path | string | No description. |
capturesRequired
public readonly captures: {[ key: string ]: Capture};
- Type: {[ key: string ]: @monadahq/wingsdk.core.Capture}
pathRequired
public readonly path: string;
Protocols
ICapturable
- Implemented By: @monadahq/wingsdk.cloud.Bucket, @monadahq/wingsdk.core.ICapturable
Methods
| Name | Description |
|---|
capture | No description. |
capture
public capture(consumer: any, capture: Capture): string
consumerRequired
captureRequired
- Type: @monadahq/wingsdk.core.Capture