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. |
props
Optional
- 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.
x
Required
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. |
node
Required
public readonly node: Node;
The tree node.
outdir
Required
public readonly outdir: string;
root
Required
public readonly root: Construct;
- Type: constructs.Construct
stateFile
Optional
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. |
scope
Required
- Type: constructs.Construct
id
Required
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
consumer
Required
capture
Required
- Type: @monadahq/wingsdk.core.Capture
Static Functions
isConstruct
import { cloud } from '@monadahq/wingsdk'
cloud.Bucket.isConstruct(x: any)
Checks if x
is a construct.
x
Required
Any object.
Properties
Name | Type | Description |
---|
node | constructs.Node | The tree node. |
node
Required
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. |
scope
Required
- Type: constructs.Construct
id
Required
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
route
Required
proc
Required
- Type: @monadahq/wingsdk.core.Process
Static Functions
isConstruct
import { cloud } from '@monadahq/wingsdk'
cloud.Endpoint.isConstruct(x: any)
Checks if x
is a construct.
x
Required
Any object.
Properties
Name | Type | Description |
---|
node | constructs.Node | The tree node. |
node
Required
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. |
scope
Required
- Type: constructs.Construct
construct scope.
id
Required
construct id.
filePath
Required
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
outdir
Required
Static Functions
isConstruct
import { fs } from '@monadahq/wingsdk'
fs.FileBase.isConstruct(x: any)
Checks if x
is a construct.
x
Required
Any object.
Properties
Name | Type | Description |
---|
node | constructs.Node | The tree node. |
filePath | string | No description. |
node
Required
public readonly node: Node;
The tree node.
filePath
Required
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. |
scope
Required
- Type: constructs.Construct
id
Required
process
Required
- 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
name
Required
value
Required
addPolicyStatements
public addPolicyStatements(statements: PolicyStatement): void
statements
Required
- Type: @monadahq/wingsdk.cloud.PolicyStatement
Static Functions
isConstruct
import { cloud } from '@monadahq/wingsdk'
cloud.Function.isConstruct(x: any)
Checks if x
is a construct.
x
Required
Any object.
Properties
Name | Type | Description |
---|
node | constructs.Node | The tree node. |
node
Required
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. |
scope
Required
- Type: constructs.Construct
id
Required
filePath
Required
props
Required
- 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
outdir
Required
Static Functions
isConstruct
import { fs } from '@monadahq/wingsdk'
fs.JsonFile.isConstruct(x: any)
Checks if x
is a construct.
x
Required
Any object.
Properties
Name | Type | Description |
---|
node | constructs.Node | The tree node. |
filePath | string | No description. |
node
Required
public readonly node: Node;
The tree node.
filePath
Required
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. |
scope
Required
- Type: constructs.Construct
id
Required
props
Optional
- 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
fn
Required
- 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.
x
Required
Any object.
Properties
Name | Type | Description |
---|
node | constructs.Node | The tree node. |
node
Required
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. |
scope
Required
- Type: constructs.Construct
id
Required
filePath
Required
props
Optional
- 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
outdir
Required
addLine
public addLine(line: string): void
line
Required
Static Functions
isConstruct
import { fs } from '@monadahq/wingsdk'
fs.TextFile.isConstruct(x: any)
Checks if x
is a construct.
x
Required
Any object.
Properties
Name | Type | Description |
---|
node | constructs.Node | The tree node. |
filePath | string | No description. |
node
Required
public readonly node: Node;
The tree node.
filePath
Required
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. |
outdir
Optional
public readonly outdir: string;
The root output directory of the app.
stateFile
Optional
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. |
obj
Required
public readonly obj: any;
The captured object.
methods
Optional
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. |
obj
Required
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. |
action
Optional
public readonly action: string[];
effect
Optional
public readonly effect: string;
resource
Optional
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. |
path
Required
public readonly path: string;
captures
Optional
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. |
timeout
Optional
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. |
lines
Optional
public readonly lines: string[];
Classes
Duration
Static Functions
fromHours
import { core } from '@monadahq/wingsdk'
core.Duration.fromHours(amount: number)
amount
Required
fromMinutes
import { core } from '@monadahq/wingsdk'
core.Duration.fromMinutes(amount: number)
amount
Required
fromSeconds
import { core } from '@monadahq/wingsdk'
core.Duration.fromSeconds(amount: number)
amount
Required
Properties
Name | Type | Description |
---|
hours | number | No description. |
minutes | number | No description. |
seconds | number | No description. |
hours
Required
public readonly hours: number;
minutes
Required
public readonly minutes: number;
seconds
Required
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. |
props
Required
- Type: @monadahq/wingsdk.core.ProcessProps
Properties
Name | Type | Description |
---|
captures | {[ key: string ]: @monadahq/wingsdk.core.Capture} | No description. |
path | string | No description. |
captures
Required
public readonly captures: {[ key: string ]: Capture};
- Type: {[ key: string ]: @monadahq/wingsdk.core.Capture}
path
Required
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
consumer
Required
capture
Required
- Type: @monadahq/wingsdk.core.Capture