Represents the RemoteOutputs of the remote CDK stack.
import { RemoteOutputs } from '@doceight/cdk-remote-stack'
new RemoteOutputs(scope: Construct, id: string, props: RemoteOutputsProps)| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
RemoteOutputsProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: RemoteOutputsProps
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
get |
Get the attribute value from the outputs. |
public toString(): stringReturns a string representation of this construct.
public get(key: string): stringGet the attribute value from the outputs.
- Type: string
output key.
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
import { RemoteOutputs } from '@doceight/cdk-remote-stack'
RemoteOutputs.isConstruct(x: any)Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
- Type: any
Any object.
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
outputs |
aws-cdk-lib.CustomResource |
The outputs from the remote stack. |
public readonly node: Node;- Type: constructs.Node
The tree node.
public readonly outputs: CustomResource;- Type: aws-cdk-lib.CustomResource
The outputs from the remote stack.
Represents the RemoteParameters of the remote CDK stack.
import { RemoteParameters } from '@doceight/cdk-remote-stack'
new RemoteParameters(scope: Construct, id: string, props: RemoteParametersProps)| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
RemoteParametersProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: RemoteParametersProps
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
get |
Get the parameter. |
public toString(): stringReturns a string representation of this construct.
public get(key: string): stringGet the parameter.
- Type: string
output key.
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
import { RemoteParameters } from '@doceight/cdk-remote-stack'
RemoteParameters.isConstruct(x: any)Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
- Type: any
Any object.
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
parameters |
aws-cdk-lib.CustomResource |
The parameters in the SSM parameter store for the remote stack. |
public readonly node: Node;- Type: constructs.Node
The tree node.
public readonly parameters: CustomResource;- Type: aws-cdk-lib.CustomResource
The parameters in the SSM parameter store for the remote stack.
Properties of the RemoteOutputs.
import { RemoteOutputsProps } from '@doceight/cdk-remote-stack'
const remoteOutputsProps: RemoteOutputsProps = { ... }| Name | Type | Description |
|---|---|---|
stack |
aws-cdk-lib.Stack |
The remote CDK stack to get the outputs from. |
alwaysUpdate |
boolean |
Indicate whether always update the custom resource to get the new stack output. |
timeout |
aws-cdk-lib.Duration |
timeout for custom resource handler. |
public readonly stack: Stack;- Type: aws-cdk-lib.Stack
The remote CDK stack to get the outputs from.
public readonly alwaysUpdate: boolean;- Type: boolean
- Default: true
Indicate whether always update the custom resource to get the new stack output.
public readonly timeout: Duration;- Type: aws-cdk-lib.Duration
- Default: no timeout specified.
timeout for custom resource handler.
Properties of the RemoteParameters.
import { RemoteParametersProps } from '@doceight/cdk-remote-stack'
const remoteParametersProps: RemoteParametersProps = { ... }| Name | Type | Description |
|---|---|---|
path |
string |
The parameter path. |
region |
string |
The region code of the remote stack. |
alwaysUpdate |
boolean |
Indicate whether always update the custom resource to get the new stack output. |
role |
aws-cdk-lib.aws_iam.IRole |
The assumed role used to get remote parameters. |
timeout |
aws-cdk-lib.Duration |
timeout for custom resource handler. |
public readonly path: string;- Type: string
The parameter path.
public readonly region: string;- Type: string
The region code of the remote stack.
public readonly alwaysUpdate: boolean;- Type: boolean
- Default: true
Indicate whether always update the custom resource to get the new stack output.
public readonly role: IRole;- Type: aws-cdk-lib.aws_iam.IRole
The assumed role used to get remote parameters.
public readonly timeout: Duration;- Type: aws-cdk-lib.Duration
- Default: no timeout specified.
timeout for custom resource handler.