import { BaseStack } from 'cdktf-multi-stack-tfe'
new BaseStack(scope: Construct, organizationName: string, prefix: string, options?: BaseStackConfig)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
organizationName |
string |
No description. |
prefix |
string |
No description. |
options |
BaseStackConfig |
No description. |
- Type: constructs.Construct
- Type: string
- Type: string
- Type: BaseStackConfig
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
addDependency |
No description. |
addOverride |
No description. |
allProviders |
No description. |
dependsOn |
No description. |
ensureBackendExists |
No description. |
getLogicalId |
No description. |
hasResourceMove |
No description. |
prepareStack |
No description. |
registerIncomingCrossStackReference |
No description. |
registerOutgoingCrossStackReference |
No description. |
runAllValidations |
Run all validations on the stack. |
toHclTerraform |
No description. |
toTerraform |
No description. |
bootstrapWorkspace |
No description. |
createSecret |
No description. |
getRemoteBackendConfig |
No description. |
getWorkspaceName |
If you want to have more control over the workspace name, you can override this method. |
public toString(): string
Returns a string representation of this construct.
public addDependency(dependency: TerraformStack): void
- Type: cdktf.TerraformStack
public addOverride(path: string, value: any): void
- Type: string
- Type: any
public allProviders(): TerraformProvider[]
public dependsOn(stack: TerraformStack): boolean
- Type: cdktf.TerraformStack
public ensureBackendExists(): TerraformBackend
public getLogicalId(tfElement: Node | TerraformElement): string
- Type: constructs.Node | cdktf.TerraformElement
public hasResourceMove(): boolean
public prepareStack(): void
public registerIncomingCrossStackReference(fromStack: TerraformStack): TerraformRemoteState
- Type: cdktf.TerraformStack
public registerOutgoingCrossStackReference(identifier: string): TerraformOutput
- Type: string
public runAllValidations(): void
Run all validations on the stack.
public toHclTerraform(): {[ key: string ]: any}
public toTerraform(): any
public bootstrapWorkspace(stackName: string, stackConfig?: WorkspaceConfig): Workspace
- Type: string
- Type: WorkspaceConfig
public createSecret(targetStack: Stack, secretName: string, config: TerraformVariableConfig): void
- Type: Stack
- Type: string
- Type: cdktf.TerraformVariableConfig
public getRemoteBackendConfig(stackName: string): RemoteBackendConfig
- Type: string
public getWorkspaceName(stackName: string): string
If you want to have more control over the workspace name, you can override this method.
- Type: string
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
isStack |
No description. |
of |
No description. |
baseStackOf |
No description. |
isBaseStack |
No description. |
import { BaseStack } from 'cdktf-multi-stack-tfe'
BaseStack.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.
import { BaseStack } from 'cdktf-multi-stack-tfe'
BaseStack.isStack(x: any)
- Type: any
import { BaseStack } from 'cdktf-multi-stack-tfe'
BaseStack.of(construct: IConstruct)
- Type: constructs.IConstruct
import { BaseStack } from 'cdktf-multi-stack-tfe'
BaseStack.baseStackOf(construct: IConstruct)
- Type: constructs.IConstruct
import { BaseStack } from 'cdktf-multi-stack-tfe'
BaseStack.isBaseStack(x: any)
- Type: any
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
dependencies |
cdktf.TerraformStack[] |
No description. |
moveTargets |
cdktf.TerraformResourceTargets |
No description. |
synthesizer |
cdktf.IStackSynthesizer |
No description. |
prefix |
string |
No description. |
organization |
@cdktf/provider-tfe.dataTfeOrganization.DataTfeOrganization |
No description. |
tfeProvider |
@cdktf/provider-tfe.provider.TfeProvider |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly dependencies: TerraformStack[];
- Type: cdktf.TerraformStack[]
public readonly moveTargets: TerraformResourceTargets;
- Type: cdktf.TerraformResourceTargets
public readonly synthesizer: IStackSynthesizer;
- Type: cdktf.IStackSynthesizer
public readonly prefix: string;
- Type: string
public readonly organization: DataTfeOrganization;
- Type: @cdktf/provider-tfe.dataTfeOrganization.DataTfeOrganization
public readonly tfeProvider: TfeProvider;
- Type: @cdktf/provider-tfe.provider.TfeProvider
import { Stack } from 'cdktf-multi-stack-tfe'
new Stack(scope: Construct, stackName: string, config?: WorkspaceConfig)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
stackName |
string |
No description. |
config |
WorkspaceConfig |
No description. |
- Type: constructs.Construct
- Type: string
- Type: WorkspaceConfig
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
addDependency |
No description. |
addOverride |
No description. |
allProviders |
No description. |
dependsOn |
No description. |
ensureBackendExists |
No description. |
getLogicalId |
No description. |
hasResourceMove |
No description. |
prepareStack |
No description. |
registerIncomingCrossStackReference |
No description. |
registerOutgoingCrossStackReference |
No description. |
runAllValidations |
Run all validations on the stack. |
toHclTerraform |
No description. |
toTerraform |
No description. |
public toString(): string
Returns a string representation of this construct.
public addDependency(dependency: TerraformStack): void
- Type: cdktf.TerraformStack
public addOverride(path: string, value: any): void
- Type: string
- Type: any
public allProviders(): TerraformProvider[]
public dependsOn(stack: TerraformStack): boolean
- Type: cdktf.TerraformStack
public ensureBackendExists(): TerraformBackend
public getLogicalId(tfElement: Node | TerraformElement): string
- Type: constructs.Node | cdktf.TerraformElement
public hasResourceMove(): boolean
public prepareStack(): void
public registerIncomingCrossStackReference(fromStack: TerraformStack): TerraformRemoteState
- Type: cdktf.TerraformStack
public registerOutgoingCrossStackReference(identifier: string): TerraformOutput
- Type: string
public runAllValidations(): void
Run all validations on the stack.
public toHclTerraform(): {[ key: string ]: any}
public toTerraform(): any
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
isStack |
No description. |
of |
No description. |
isMultiStackStack |
No description. |
multiStackOf |
No description. |
import { Stack } from 'cdktf-multi-stack-tfe'
Stack.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.
import { Stack } from 'cdktf-multi-stack-tfe'
Stack.isStack(x: any)
- Type: any
import { Stack } from 'cdktf-multi-stack-tfe'
Stack.of(construct: IConstruct)
- Type: constructs.IConstruct
import { Stack } from 'cdktf-multi-stack-tfe'
Stack.isMultiStackStack(x: any)
- Type: any
import { Stack } from 'cdktf-multi-stack-tfe'
Stack.multiStackOf(construct: IConstruct)
- Type: constructs.IConstruct
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
dependencies |
cdktf.TerraformStack[] |
No description. |
moveTargets |
cdktf.TerraformResourceTargets |
No description. |
synthesizer |
cdktf.IStackSynthesizer |
No description. |
workspace |
@cdktf/provider-tfe.workspace.Workspace |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly dependencies: TerraformStack[];
- Type: cdktf.TerraformStack[]
public readonly moveTargets: TerraformResourceTargets;
- Type: cdktf.TerraformResourceTargets
public readonly synthesizer: IStackSynthesizer;
- Type: cdktf.IStackSynthesizer
public readonly workspace: Workspace;
- Type: @cdktf/provider-tfe.workspace.Workspace
import { TFVariable } from 'cdktf-multi-stack-tfe'
new TFVariable(scope: Construct, id: string, config: TerraformVariableConfig)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
config |
cdktf.TerraformVariableConfig |
No description. |
- Type: constructs.Construct
- Type: string
- Type: cdktf.TerraformVariableConfig
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
addOverride |
No description. |
overrideLogicalId |
Overrides the auto-generated logical ID with a specific ID. |
resetOverrideLogicalId |
Resets a previously passed logical Id to use the auto-generated logical id again. |
toHclTerraform |
No description. |
toMetadata |
No description. |
toTerraform |
No description. |
addValidation |
No description. |
synthesizeAttributes |
No description. |
synthesizeHclAttributes |
No description. |
public toString(): string
Returns a string representation of this construct.
public addOverride(path: string, value: any): void
- Type: string
- Type: any
public overrideLogicalId(newLogicalId: string): void
Overrides the auto-generated logical ID with a specific ID.
- Type: string
The new logical ID to use for this stack element.
public resetOverrideLogicalId(): void
Resets a previously passed logical Id to use the auto-generated logical id again.
public toHclTerraform(): any
public toMetadata(): any
public toTerraform(): any
public addValidation(validation: TerraformVariableValidationConfig): void
- Type: cdktf.TerraformVariableValidationConfig
public synthesizeAttributes(): {[ key: string ]: any}
public synthesizeHclAttributes(): {[ key: string ]: any}
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
isTerraformElement |
No description. |
import { TFVariable } from 'cdktf-multi-stack-tfe'
TFVariable.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.
import { TFVariable } from 'cdktf-multi-stack-tfe'
TFVariable.isTerraformElement(x: any)
- Type: any
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
cdktfStack |
cdktf.TerraformStack |
No description. |
fqn |
string |
No description. |
friendlyUniqueId |
string |
No description. |
booleanValue |
cdktf.IResolvable |
No description. |
listValue |
string[] |
No description. |
numberValue |
number |
No description. |
stringValue |
string |
No description. |
value |
any |
No description. |
default |
any |
No description. |
description |
string |
No description. |
nullable |
boolean |
No description. |
sensitive |
boolean |
No description. |
type |
string |
No description. |
validation |
cdktf.TerraformVariableValidationConfig[] |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly cdktfStack: TerraformStack;
- Type: cdktf.TerraformStack
public readonly fqn: string;
- Type: string
public readonly friendlyUniqueId: string;
- Type: string
public readonly booleanValue: IResolvable;
- Type: cdktf.IResolvable
public readonly listValue: string[];
- Type: string[]
public readonly numberValue: number;
- Type: number
public readonly stringValue: string;
- Type: string
public readonly value: any;
- Type: any
public readonly default: any;
- Type: any
public readonly description: string;
- Type: string
public readonly nullable: boolean;
- Type: boolean
public readonly sensitive: boolean;
- Type: boolean
public readonly type: string;
- Type: string
public readonly validation: TerraformVariableValidationConfig[];
- Type: cdktf.TerraformVariableValidationConfig[]
import { BaseStackConfig } from 'cdktf-multi-stack-tfe'
const baseStackConfig: BaseStackConfig = { ... }
Name | Type | Description |
---|---|---|
defaultWorkspaceConfig |
WorkspaceConfig |
No description. |
hostname |
string |
No description. |
sslSkipVerify |
boolean |
No description. |
token |
string |
No description. |
public readonly defaultWorkspaceConfig: WorkspaceConfig;
- Type: WorkspaceConfig
public readonly hostname: string;
- Type: string
public readonly sslSkipVerify: boolean;
- Type: boolean
public readonly token: string;
- Type: string
import { RemoteBackendConfig } from 'cdktf-multi-stack-tfe'
const remoteBackendConfig: RemoteBackendConfig = { ... }
Name | Type | Description |
---|---|---|
organization |
string |
No description. |
workspaces |
RemoteBackendConfigWorkspace |
No description. |
hostname |
string |
No description. |
token |
string |
No description. |
public readonly organization: string;
- Type: string
public readonly workspaces: RemoteBackendConfigWorkspace;
public readonly hostname: string;
- Type: string
public readonly token: string;
- Type: string
import { RemoteBackendConfigWorkspace } from 'cdktf-multi-stack-tfe'
const remoteBackendConfigWorkspace: RemoteBackendConfigWorkspace = { ... }
Name | Type | Description |
---|---|---|
name |
string |
No description. |
public readonly name: string;
- Type: string
import { WorkspaceConfig } from 'cdktf-multi-stack-tfe'
const workspaceConfig: WorkspaceConfig = { ... }
public readonly agentPoolId: string;
- Type: string
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#agent_pool_id Workspace#agent_pool_id}.
public readonly allowDestroyPlan: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#allow_destroy_plan Workspace#allow_destroy_plan}.
public readonly autoApply: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#auto_apply Workspace#auto_apply}.
public readonly description: string;
- Type: string
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#description Workspace#description}.
public readonly executionMode: string;
- Type: string
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#execution_mode Workspace#execution_mode}.
public readonly fileTriggersEnabled: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#file_triggers_enabled Workspace#file_triggers_enabled}.
public readonly globalRemoteState: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#global_remote_state Workspace#global_remote_state}.
public readonly queueAllRuns: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#queue_all_runs Workspace#queue_all_runs}.
public readonly remoteStateConsumerIds: string[];
- Type: string[]
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#remote_state_consumer_ids Workspace#remote_state_consumer_ids}.
public readonly speculativeEnabled: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#speculative_enabled Workspace#speculative_enabled}.
public readonly sshKeyId: string;
- Type: string
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#ssh_key_id Workspace#ssh_key_id}.
public readonly structuredRunOutputEnabled: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#structured_run_output_enabled Workspace#structured_run_output_enabled}.
public readonly tagNames: string[];
- Type: string[]
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#tag_names Workspace#tag_names}.
public readonly terraformVersion: string;
- Type: string
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#terraform_version Workspace#terraform_version}.
public readonly triggerPrefixes: string[];
- Type: string[]
Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#trigger_prefixes Workspace#trigger_prefixes}.