API Reference for CSharp
Constructs
App
Represents a cdktf application.
Initializers
using HashiCorp.Cdktf;
new App(AppConfig Config = null);
Config
Optional
- Type: AppConfig
configuration.
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
CrossStackReference | Creates a reference from one stack to another, invoked on prepareStack since it creates extra resources. |
Synth | Synthesizes all resources to the output directory. |
ToString
private string ToString()
Returns a string representation of this construct.
CrossStackReference
private string CrossStackReference(TerraformStack FromStack, TerraformStack ToStack, string Identifier)
Creates a reference from one stack to another, invoked on prepareStack since it creates extra resources.
FromStack
Required
- Type: TerraformStack
ToStack
Required
- Type: TerraformStack
Identifier
Required
- Type: string
Synth
private void Synth()
Synthesizes all resources to the output directory.
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsApp | No description. |
Of | No description. |
IsConstruct
using HashiCorp.Cdktf;
App.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsApp
using HashiCorp.Cdktf;
App.IsApp(object X);
X
Required
- Type: object
Of
using HashiCorp.Cdktf;
App.Of(IConstruct Construct);
Construct
Required
- Type: Constructs.IConstruct
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
HclOutput | bool | No description. |
Manifest | Manifest | No description. |
Outdir | string | The output directory into which resources will be synthesized. |
SkipBackendValidation | bool | Whether to skip backend validation during synthesis of the app. |
SkipValidation | bool | Whether to skip all validations during synthesis of the app. |
TargetStackId | string | The stack which will be synthesized. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
HclOutput
Required
public bool HclOutput { get; }
- Type: bool
Manifest
Required
public Manifest Manifest { get; }
- Type: Manifest
Outdir
Required
public string Outdir { get; }
- Type: string
The output directory into which resources will be synthesized.
SkipBackendValidation
Required
public bool SkipBackendValidation { get; }
- Type: bool
Whether to skip backend validation during synthesis of the app.
SkipValidation
Required
public bool SkipValidation { get; }
- Type: bool
Whether to skip all validations during synthesis of the app.
TargetStackId
Optional
public string TargetStackId { get; }
- Type: string
The stack which will be synthesized.
If not set, all stacks will be synthesized.
AzurermBackend
Initializers
using HashiCorp.Cdktf;
new AzurermBackend(Construct Scope, AzurermBackendConfig Props);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Props | AzurermBackendConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Props
Required
- Type: AzurermBackendConfig
Methods
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 | Adds this resource to the terraform JSON output. |
GetRemoteStateDataSource | Creates a TerraformRemoteState resource that accesses this backend. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
private TerraformRemoteState GetRemoteStateDataSource(Construct Scope, string Name, string FromStack)
Creates a TerraformRemoteState resource that accesses this backend.
Scope
Required
- Type: Constructs.Construct
Name
Required
- Type: string
FromStack
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
using HashiCorp.Cdktf;
AzurermBackend.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
AzurermBackend.IsTerraformElement(object X);
X
Required
- Type: object
IsBackend
using HashiCorp.Cdktf;
AzurermBackend.IsBackend(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
CloudBackend
The Cloud Backend synthesizes a {@link https://developer.hashicorp.com/terraform/cli/cloud/settings#the-cloud-block cloud block}. The cloud block is a nested block within the top-level terraform settings block. It specifies which Terraform Cloud workspaces to use for the current working directory. The cloud block only affects Terraform CLI's behavior. When Terraform Cloud uses a configuration that contains a cloud block - for example, when a workspace is configured to use a VCS provider directly - it ignores the block and behaves according to its own workspace settings.
Initializers
using HashiCorp.Cdktf;
new CloudBackend(Construct Scope, CloudBackendConfig Props);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Props | CloudBackendConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Props
Required
- Type: CloudBackendConfig
Methods
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 | Adds this resource to the terraform JSON output. |
GetRemoteStateDataSource | Creates a TerraformRemoteState resource that accesses this backend. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
private TerraformRemoteState GetRemoteStateDataSource(Construct Scope, string Name, string FromStack)
Creates a TerraformRemoteState resource that accesses this backend.
Scope
Required
- Type: Constructs.Construct
Name
Required
- Type: string
FromStack
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
using HashiCorp.Cdktf;
CloudBackend.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
CloudBackend.IsTerraformElement(object X);
X
Required
- Type: object
IsBackend
using HashiCorp.Cdktf;
CloudBackend.IsBackend(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
ConsulBackend
Initializers
using HashiCorp.Cdktf;
new ConsulBackend(Construct Scope, ConsulBackendConfig Props);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Props | ConsulBackendConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Props
Required
- Type: ConsulBackendConfig
Methods
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 | Adds this resource to the terraform JSON output. |
GetRemoteStateDataSource | Creates a TerraformRemoteState resource that accesses this backend. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
private TerraformRemoteState GetRemoteStateDataSource(Construct Scope, string Name, string FromStack)
Creates a TerraformRemoteState resource that accesses this backend.
Scope
Required
- Type: Constructs.Construct
Name
Required
- Type: string
FromStack
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
using HashiCorp.Cdktf;
ConsulBackend.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
ConsulBackend.IsTerraformElement(object X);
X
Required
- Type: object
IsBackend
using HashiCorp.Cdktf;
ConsulBackend.IsBackend(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
CosBackend
Initializers
using HashiCorp.Cdktf;
new CosBackend(Construct Scope, CosBackendConfig Props);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Props | CosBackendConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Props
Required
- Type: CosBackendConfig
Methods
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 | Adds this resource to the terraform JSON output. |
GetRemoteStateDataSource | Creates a TerraformRemoteState resource that accesses this backend. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
private TerraformRemoteState GetRemoteStateDataSource(Construct Scope, string Name, string FromStack)
Creates a TerraformRemoteState resource that accesses this backend.
Scope
Required
- Type: Constructs.Construct
Name
Required
- Type: string
FromStack
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
using HashiCorp.Cdktf;
CosBackend.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
CosBackend.IsTerraformElement(object X);
X
Required
- Type: object
IsBackend
using HashiCorp.Cdktf;
CosBackend.IsBackend(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
DataResource
The DataResource implements the standard resource lifecycle, but does not directly take any other actions.
You can use the DataResource resource without requiring or configuring a provider.
The DataResource resource is useful for storing values which need to follow a manage resource lifecycle, and for triggering provisioners when there is no other logical managed resource in which to place them.
It requires Terraform 1.4 or later.
It is also possible to generate these bindings by adding "terraform.io/builtin/terraform" to the "terraformProviders" key in your cdktf.json file and running "cdktf get".
https://developer.hashicorp.com/terraform/language/resources/terraform-data
Initializers
using HashiCorp.Cdktf;
new DataResource(Construct Scope, string Id, DataConfig Config = null);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | The scope in which to define this construct. |
Id | string | The scoped construct ID. |
Config | DataConfig | No description. |
Scope
Required
- Type: Constructs.Construct
The scope in which to define this construct.
Id
Required
- Type: string
The scoped construct ID.
Must be unique amongst siblings in the same scope
Config
Optional
- Type: DataConfig
Methods
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 | Adds this resource to the terraform JSON output. |
AddMoveTarget | Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. |
GetAnyMapAttribute | No description. |
GetBooleanAttribute | No description. |
GetBooleanMapAttribute | No description. |
GetListAttribute | No description. |
GetNumberAttribute | No description. |
GetNumberListAttribute | No description. |
GetNumberMapAttribute | No description. |
GetStringAttribute | No description. |
GetStringMapAttribute | No description. |
HasResourceMove | No description. |
ImportFrom | No description. |
InterpolationForAttribute | No description. |
MoveFromId | Move the resource corresponding to "id" to this resource. |
MoveTo | Moves this resource to the target resource given by moveTarget. |
MoveToId | Moves this resource to the resource corresponding to "id". |
ResetInput | No description. |
ResetTriggersReplace | No description. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
AddMoveTarget
private void AddMoveTarget(string MoveTarget)
Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move.
MoveTarget
Required
- Type: string
The string move target that will correspond to this resource.
GetAnyMapAttribute
private System.Collections.Generic.IDictionary< string, object > GetAnyMapAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetBooleanAttribute
private IResolvable GetBooleanAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetBooleanMapAttribute
private System.Collections.Generic.IDictionary< string, bool > GetBooleanMapAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetListAttribute
private string[] GetListAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetNumberAttribute
private double GetNumberAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetNumberListAttribute
private double[] GetNumberListAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetNumberMapAttribute
private System.Collections.Generic.IDictionary< string, double > GetNumberMapAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetStringAttribute
private string GetStringAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetStringMapAttribute
private System.Collections.Generic.IDictionary< string, string > GetStringMapAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
HasResourceMove
private object HasResourceMove()
ImportFrom
private void ImportFrom(string Id, TerraformProvider Provider = null)
Id
Required
- Type: string
Provider
Optional
- Type: TerraformProvider
InterpolationForAttribute
private IResolvable InterpolationForAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
MoveFromId
private void MoveFromId(string Id)
Move the resource corresponding to "id" to this resource.
Note that the resource being moved from must be marked as moved using it's instance function.
Id
Required
- Type: string
Full id of resource being moved from, e.g. "aws_s3_bucket.example".
MoveTo
private void MoveTo(string MoveTarget, object Index = null)
Moves this resource to the target resource given by moveTarget.
MoveTarget
Required
- Type: string
The previously set user defined string set by .addMoveTarget() corresponding to the resource to move to.
Index
Optional
- Type: object
Optional The index corresponding to the key the resource is to appear in the foreach of a resource to move to.
MoveToId
private void MoveToId(string Id)
Moves this resource to the resource corresponding to "id".
Id
Required
- Type: string
Full id of resource to move to, e.g. "aws_s3_bucket.example".
ResetInput
private void ResetInput()
ResetTriggersReplace
private void ResetTriggersReplace()
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsTerraformResource | No description. |
GenerateConfigForImport | Generates CDKTF code for importing a Data resource upon running "cdktf plan < stack-name >". |
IsConstruct
using HashiCorp.Cdktf;
DataResource.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
DataResource.IsTerraformElement(object X);
X
Required
- Type: object
IsTerraformResource
using HashiCorp.Cdktf;
DataResource.IsTerraformResource(object X);
X
Required
- Type: object
GenerateConfigForImport
using HashiCorp.Cdktf;
DataResource.GenerateConfigForImport(Construct Scope, string ImportToId, string ImportFromId, TerraformProvider Provider = null);
Generates CDKTF code for importing a Data resource upon running "cdktf plan < stack-name >".
Scope
Required
- Type: Constructs.Construct
The scope in which to define this construct.
ImportToId
Required
- Type: string
The construct id used in the generated config for the Data to import.
ImportFromId
Required
- Type: string
The id of the existing Data that should be imported.
Refer to the {@link https://terraform.io/providers/builtin/terraform/latest/docs/resources/data#import import section} in the documentation of this resource for the id to use
Provider
Optional
- Type: TerraformProvider
? Optional instance of the provider where the Data to import is found.
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
TerraformMetaArguments | System.Collections.Generic.IDictionary< string, object > | No description. |
TerraformResourceType | string | No description. |
TerraformGeneratorMetadata | TerraformProviderGeneratorMetadata | No description. |
Connection | object | No description. |
Count | object | No description. |
DependsOn | string[] | No description. |
ForEach | ITerraformIterator | No description. |
Lifecycle | TerraformResourceLifecycle | No description. |
Provider | TerraformProvider | No description. |
Provisioners | object[] | No description. |
Id | string | No description. |
Output | AnyMap | No description. |
InputInput | System.Collections.Generic.IDictionary< string, object > | No description. |
TriggersReplaceInput | System.Collections.Generic.IDictionary< string, object > | No description. |
Input | System.Collections.Generic.IDictionary< string, object > | (Optional) A value which will be stored in the instance state, and reflected in the output attribute after apply. |
TriggersReplace | System.Collections.Generic.IDictionary< string, object > | (Optional) A value which is stored in the instance state, and will force replacement when the value changes. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
TerraformMetaArguments
Required
public System.Collections.Generic.IDictionary< string, object > TerraformMetaArguments { get; }
- Type: System.Collections.Generic.IDictionary< string, object >
TerraformResourceType
Required
public string TerraformResourceType { get; }
- Type: string
TerraformGeneratorMetadata
Optional
public TerraformProviderGeneratorMetadata TerraformGeneratorMetadata { get; }
Connection
Optional
public object Connection { get; }
- Type: object
Count
Optional
public object Count { get; }
- Type: object
DependsOn
Optional
public string[] DependsOn { get; }
- Type: string[]
ForEach
Optional
public ITerraformIterator ForEach { get; }
- Type: ITerraformIterator
Lifecycle
Optional
public TerraformResourceLifecycle Lifecycle { get; }
Provider
Optional
public TerraformProvider Provider { get; }
- Type: TerraformProvider
Provisioners
Optional
public object[] Provisioners { get; }
- Type: object[]
Id
Required
public string Id { get; }
- Type: string
Output
Required
public AnyMap Output { get; }
- Type: AnyMap
InputInput
Optional
public System.Collections.Generic.IDictionary< string, object > InputInput { get; }
- Type: System.Collections.Generic.IDictionary< string, object >
TriggersReplaceInput
Optional
public System.Collections.Generic.IDictionary< string, object > TriggersReplaceInput { get; }
- Type: System.Collections.Generic.IDictionary< string, object >
Input
Required
public System.Collections.Generic.IDictionary< string, object > Input { get; }
- Type: System.Collections.Generic.IDictionary< string, object >
(Optional) A value which will be stored in the instance state, and reflected in the output attribute after apply.
https://developer.hashicorp.com/terraform/language/resources/terraform-data#input
TriggersReplace
Required
public System.Collections.Generic.IDictionary< string, object > TriggersReplace { get; }
- Type: System.Collections.Generic.IDictionary< string, object >
(Optional) A value which is stored in the instance state, and will force replacement when the value changes.
https://developer.hashicorp.com/terraform/language/resources/terraform-data#triggers_replace
Constants
Name | Type | Description |
---|---|---|
TfResourceType | string | No description. |
TfResourceType
Required
public string TfResourceType { get; }
- Type: string
DataTerraformRemoteState
Initializers
using HashiCorp.Cdktf;
new DataTerraformRemoteState(Construct Scope, string Id, DataTerraformRemoteStateRemoteConfig Config);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Config | DataTerraformRemoteStateRemoteConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Config
Required
Methods
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 | Adds this resource to the terraform JSON output. |
ToMetadata | No description. |
ToTerraform | Adds this resource to the terraform JSON output. |
Get | No description. |
GetBoolean | No description. |
GetList | No description. |
GetNumber | No description. |
GetString | No description. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
Adds this resource to the terraform JSON output.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Get
private IResolvable Get(string Output)
Output
Required
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
Output
Required
- Type: string
GetList
private string[] GetList(string Output)
Output
Required
- Type: string
GetNumber
private double GetNumber(string Output)
Output
Required
- Type: string
GetString
private string GetString(string Output)
Output
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
using HashiCorp.Cdktf;
DataTerraformRemoteState.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
DataTerraformRemoteState.IsTerraformElement(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | string | No description. |
TfResourceType
Required
public string TfResourceType { get; }
- Type: string
DataTerraformRemoteStateAzurerm
Initializers
using HashiCorp.Cdktf;
new DataTerraformRemoteStateAzurerm(Construct Scope, string Id, DataTerraformRemoteStateAzurermConfig Config);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Config | DataTerraformRemoteStateAzurermConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Config
Required
Methods
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 | Adds this resource to the terraform JSON output. |
ToMetadata | No description. |
ToTerraform | Adds this resource to the terraform JSON output. |
Get | No description. |
GetBoolean | No description. |
GetList | No description. |
GetNumber | No description. |
GetString | No description. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
Adds this resource to the terraform JSON output.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Get
private IResolvable Get(string Output)
Output
Required
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
Output
Required
- Type: string
GetList
private string[] GetList(string Output)
Output
Required
- Type: string
GetNumber
private double GetNumber(string Output)
Output
Required
- Type: string
GetString
private string GetString(string Output)
Output
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
using HashiCorp.Cdktf;
DataTerraformRemoteStateAzurerm.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
DataTerraformRemoteStateAzurerm.IsTerraformElement(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | string | No description. |
TfResourceType
Required
public string TfResourceType { get; }
- Type: string
DataTerraformRemoteStateConsul
Initializers
using HashiCorp.Cdktf;
new DataTerraformRemoteStateConsul(Construct Scope, string Id, DataTerraformRemoteStateConsulConfig Config);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Config | DataTerraformRemoteStateConsulConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Config
Required
Methods
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 | Adds this resource to the terraform JSON output. |
ToMetadata | No description. |
ToTerraform | Adds this resource to the terraform JSON output. |
Get | No description. |
GetBoolean | No description. |
GetList | No description. |
GetNumber | No description. |
GetString | No description. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
Adds this resource to the terraform JSON output.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Get
private IResolvable Get(string Output)
Output
Required
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
Output
Required
- Type: string
GetList
private string[] GetList(string Output)
Output
Required
- Type: string
GetNumber
private double GetNumber(string Output)
Output
Required
- Type: string
GetString
private string GetString(string Output)
Output
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
using HashiCorp.Cdktf;
DataTerraformRemoteStateConsul.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
DataTerraformRemoteStateConsul.IsTerraformElement(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | string | No description. |
TfResourceType
Required
public string TfResourceType { get; }
- Type: string
DataTerraformRemoteStateCos
Initializers
using HashiCorp.Cdktf;
new DataTerraformRemoteStateCos(Construct Scope, string Id, DataTerraformRemoteStateCosConfig Config);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Config | DataTerraformRemoteStateCosConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Config
Required
Methods
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 | Adds this resource to the terraform JSON output. |
ToMetadata | No description. |
ToTerraform | Adds this resource to the terraform JSON output. |
Get | No description. |
GetBoolean | No description. |
GetList | No description. |
GetNumber | No description. |
GetString | No description. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
Adds this resource to the terraform JSON output.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Get
private IResolvable Get(string Output)
Output
Required
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
Output
Required
- Type: string
GetList
private string[] GetList(string Output)
Output
Required
- Type: string
GetNumber
private double GetNumber(string Output)
Output
Required
- Type: string
GetString
private string GetString(string Output)
Output
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
using HashiCorp.Cdktf;
DataTerraformRemoteStateCos.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
DataTerraformRemoteStateCos.IsTerraformElement(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | string | No description. |
TfResourceType
Required
public string TfResourceType { get; }
- Type: string
DataTerraformRemoteStateGcs
Initializers
using HashiCorp.Cdktf;
new DataTerraformRemoteStateGcs(Construct Scope, string Id, DataTerraformRemoteStateGcsConfig Config);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Config | DataTerraformRemoteStateGcsConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Config
Required
Methods
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 | Adds this resource to the terraform JSON output. |
ToMetadata | No description. |
ToTerraform | Adds this resource to the terraform JSON output. |
Get | No description. |
GetBoolean | No description. |
GetList | No description. |
GetNumber | No description. |
GetString | No description. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
Adds this resource to the terraform JSON output.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Get
private IResolvable Get(string Output)
Output
Required
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
Output
Required
- Type: string
GetList
private string[] GetList(string Output)
Output
Required
- Type: string
GetNumber
private double GetNumber(string Output)
Output
Required
- Type: string
GetString
private string GetString(string Output)
Output
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
using HashiCorp.Cdktf;
DataTerraformRemoteStateGcs.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
DataTerraformRemoteStateGcs.IsTerraformElement(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | string | No description. |
TfResourceType
Required
public string TfResourceType { get; }
- Type: string
DataTerraformRemoteStateHttp
Initializers
using HashiCorp.Cdktf;
new DataTerraformRemoteStateHttp(Construct Scope, string Id, DataTerraformRemoteStateHttpConfig Config);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Config | DataTerraformRemoteStateHttpConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Config
Required
Methods
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 | Adds this resource to the terraform JSON output. |
ToMetadata | No description. |
ToTerraform | Adds this resource to the terraform JSON output. |
Get | No description. |
GetBoolean | No description. |
GetList | No description. |
GetNumber | No description. |
GetString | No description. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
Adds this resource to the terraform JSON output.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Get
private IResolvable Get(string Output)
Output
Required
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
Output
Required
- Type: string
GetList
private string[] GetList(string Output)
Output
Required
- Type: string
GetNumber
private double GetNumber(string Output)
Output
Required
- Type: string
GetString
private string GetString(string Output)
Output
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
using HashiCorp.Cdktf;
DataTerraformRemoteStateHttp.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
DataTerraformRemoteStateHttp.IsTerraformElement(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | string | No description. |
TfResourceType
Required
public string TfResourceType { get; }
- Type: string
DataTerraformRemoteStateLocal
Initializers
using HashiCorp.Cdktf;
new DataTerraformRemoteStateLocal(Construct Scope, string Id, DataTerraformRemoteStateLocalConfig Config);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Config | DataTerraformRemoteStateLocalConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Config
Required
Methods
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 | Adds this resource to the terraform JSON output. |
ToMetadata | No description. |
ToTerraform | Adds this resource to the terraform JSON output. |
Get | No description. |
GetBoolean | No description. |
GetList | No description. |
GetNumber | No description. |
GetString | No description. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
Adds this resource to the terraform JSON output.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Get
private IResolvable Get(string Output)
Output
Required
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
Output
Required
- Type: string
GetList
private string[] GetList(string Output)
Output
Required
- Type: string
GetNumber
private double GetNumber(string Output)
Output
Required
- Type: string
GetString
private string GetString(string Output)
Output
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
using HashiCorp.Cdktf;
DataTerraformRemoteStateLocal.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
DataTerraformRemoteStateLocal.IsTerraformElement(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | string | No description. |
TfResourceType
Required
public string TfResourceType { get; }
- Type: string
DataTerraformRemoteStateOss
Initializers
using HashiCorp.Cdktf;
new DataTerraformRemoteStateOss(Construct Scope, string Id, DataTerraformRemoteStateOssConfig Config);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Config | DataTerraformRemoteStateOssConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Config
Required
Methods
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 | Adds this resource to the terraform JSON output. |
ToMetadata | No description. |
ToTerraform | Adds this resource to the terraform JSON output. |
Get | No description. |
GetBoolean | No description. |
GetList | No description. |
GetNumber | No description. |
GetString | No description. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
Adds this resource to the terraform JSON output.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Get
private IResolvable Get(string Output)
Output
Required
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
Output
Required
- Type: string
GetList
private string[] GetList(string Output)
Output
Required
- Type: string
GetNumber
private double GetNumber(string Output)
Output
Required
- Type: string
GetString
private string GetString(string Output)
Output
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
using HashiCorp.Cdktf;
DataTerraformRemoteStateOss.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
DataTerraformRemoteStateOss.IsTerraformElement(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | string | No description. |
TfResourceType
Required
public string TfResourceType { get; }
- Type: string
DataTerraformRemoteStatePg
Initializers
using HashiCorp.Cdktf;
new DataTerraformRemoteStatePg(Construct Scope, string Id, DataTerraformRemoteStatePgConfig Config);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Config | DataTerraformRemoteStatePgConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Config
Required
Methods
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 | Adds this resource to the terraform JSON output. |
ToMetadata | No description. |
ToTerraform | Adds this resource to the terraform JSON output. |
Get | No description. |
GetBoolean | No description. |
GetList | No description. |
GetNumber | No description. |
GetString | No description. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
Adds this resource to the terraform JSON output.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Get
private IResolvable Get(string Output)
Output
Required
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
Output
Required
- Type: string
GetList
private string[] GetList(string Output)
Output
Required
- Type: string
GetNumber
private double GetNumber(string Output)
Output
Required
- Type: string
GetString
private string GetString(string Output)
Output
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
using HashiCorp.Cdktf;
DataTerraformRemoteStatePg.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
DataTerraformRemoteStatePg.IsTerraformElement(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | string | No description. |
TfResourceType
Required
public string TfResourceType { get; }
- Type: string
DataTerraformRemoteStateS3
Initializers
using HashiCorp.Cdktf;
new DataTerraformRemoteStateS3(Construct Scope, string Id, DataTerraformRemoteStateS3Config Config);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Config | DataTerraformRemoteStateS3Config | No description. |
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Config
Required
Methods
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 | Adds this resource to the terraform JSON output. |
ToMetadata | No description. |
ToTerraform | Adds this resource to the terraform JSON output. |
Get | No description. |
GetBoolean | No description. |
GetList | No description. |
GetNumber | No description. |
GetString | No description. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
Adds this resource to the terraform JSON output.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Get
private IResolvable Get(string Output)
Output
Required
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
Output
Required
- Type: string
GetList
private string[] GetList(string Output)
Output
Required
- Type: string
GetNumber
private double GetNumber(string Output)
Output
Required
- Type: string
GetString
private string GetString(string Output)
Output
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
using HashiCorp.Cdktf;
DataTerraformRemoteStateS3.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
DataTerraformRemoteStateS3.IsTerraformElement(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | string | No description. |
TfResourceType
Required
public string TfResourceType { get; }
- Type: string
DataTerraformRemoteStateSwift
Initializers
using HashiCorp.Cdktf;
new DataTerraformRemoteStateSwift(Construct Scope, string Id, DataTerraformRemoteStateSwiftConfig Config);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Config | DataTerraformRemoteStateSwiftConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Config
Required
Methods
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 | Adds this resource to the terraform JSON output. |
ToMetadata | No description. |
ToTerraform | Adds this resource to the terraform JSON output. |
Get | No description. |
GetBoolean | No description. |
GetList | No description. |
GetNumber | No description. |
GetString | No description. |
ToString
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
ToHclTerraform
private object ToHclTerraform()
Adds this resource to the terraform JSON output.
ToMetadata
ToMetadata
private object ToMetadata()
ToTerraform
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Get
Get
private IResolvable Get(string Output)
Output
Required
- Type: string
GetBoolean
GetBoolean
private IResolvable GetBoolean(string Output)
Output
Required
- Type: string
GetList
GetList
private string[] GetList(string Output)
Output
Required
- Type: string
GetNumber
GetNumber
private double GetNumber(string Output)
Output
Required
- Type: string
GetString
GetString
private string GetString(string Output)
Output
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
IsConstruct
using HashiCorp.Cdktf;
DataTerraformRemoteStateSwift.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
IsTerraformElement
using HashiCorp.Cdktf;
DataTerraformRemoteStateSwift.IsTerraformElement(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
Node
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
CdktfStack
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
Fqn
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
FriendlyUniqueId
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string FriendlyUniqueId { get; }
- Type: string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | string | No description. |
TfResourceType
Required
TfResourceType
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string TfResourceType { get; }
- Type: string
GcsBackend
Initializers
using HashiCorp.Cdktf;
new GcsBackend(Construct Scope, GcsBackendConfig Props);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Props | GcsBackendConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Props
Required
- Type: GcsBackendConfig
Methods
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 | Adds this resource to the terraform JSON output. |
GetRemoteStateDataSource | Creates a TerraformRemoteState resource that accesses this backend. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
private TerraformRemoteState GetRemoteStateDataSource(Construct Scope, string Name, string FromStack)
Creates a TerraformRemoteState resource that accesses this backend.
Scope
Required
- Type: Constructs.Construct
Name
Required
- Type: string
FromStack
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
using HashiCorp.Cdktf;
GcsBackend.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
GcsBackend.IsTerraformElement(object X);
X
Required
- Type: object
IsBackend
using HashiCorp.Cdktf;
GcsBackend.IsBackend(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
HttpBackend
Initializers
using HashiCorp.Cdktf;
new HttpBackend(Construct Scope, HttpBackendConfig Props);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Props | HttpBackendConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Props
Required
- Type: HttpBackendConfig
Methods
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 | Adds this resource to the terraform JSON output. |
GetRemoteStateDataSource | Creates a TerraformRemoteState resource that accesses this backend. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
private TerraformRemoteState GetRemoteStateDataSource(Construct Scope, string Name, string FromStack)
Creates a TerraformRemoteState resource that accesses this backend.
Scope
Required
- Type: Constructs.Construct
Name
Required
- Type: string
FromStack
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
using HashiCorp.Cdktf;
HttpBackend.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
HttpBackend.IsTerraformElement(object X);
X
Required
- Type: object
IsBackend
using HashiCorp.Cdktf;
HttpBackend.IsBackend(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
ImportableResource
Class used to represent an importable resource.
Initializers
using HashiCorp.Cdktf;
new ImportableResource(Construct Scope, string Name, IImportableConfig Config);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Name | string | No description. |
Config | IImportableConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Name
Required
- Type: string
Config
Required
- Type: IImportableConfig
Methods
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. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
using HashiCorp.Cdktf;
ImportableResource.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
ImportableResource.IsTerraformElement(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
LocalBackend
Initializers
using HashiCorp.Cdktf;
new LocalBackend(Construct Scope, LocalBackendConfig Props = null);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Props | LocalBackendConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Props
Optional
- Type: LocalBackendConfig
Methods
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 | Adds this resource to the terraform JSON output. |
GetRemoteStateDataSource | Creates a TerraformRemoteState resource that accesses this backend. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
private TerraformRemoteState GetRemoteStateDataSource(Construct Scope, string Name, string FromStack)
Creates a TerraformRemoteState resource that accesses this backend.
Scope
Required
- Type: Constructs.Construct
Name
Required
- Type: string
FromStack
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
using HashiCorp.Cdktf;
LocalBackend.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
LocalBackend.IsTerraformElement(object X);
X
Required
- Type: object
IsBackend
using HashiCorp.Cdktf;
LocalBackend.IsBackend(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
OssBackend
Initializers
using HashiCorp.Cdktf;
new OssBackend(Construct Scope, OssBackendConfig Props);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Props | OssBackendConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Props
Required
- Type: OssBackendConfig
Methods
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 | Adds this resource to the terraform JSON output. |
GetRemoteStateDataSource | Creates a TerraformRemoteState resource that accesses this backend. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
private TerraformRemoteState GetRemoteStateDataSource(Construct Scope, string Name, string FromStack)
Creates a TerraformRemoteState resource that accesses this backend.
Scope
Required
- Type: Constructs.Construct
Name
Required
- Type: string
FromStack
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
using HashiCorp.Cdktf;
OssBackend.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
OssBackend.IsTerraformElement(object X);
X
Required
- Type: object
IsBackend
using HashiCorp.Cdktf;
OssBackend.IsBackend(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
PgBackend
Initializers
using HashiCorp.Cdktf;
new PgBackend(Construct Scope, PgBackendConfig Props);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Props | PgBackendConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Props
Required
- Type: PgBackendConfig
Methods
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 | Adds this resource to the terraform JSON output. |
GetRemoteStateDataSource | Creates a TerraformRemoteState resource that accesses this backend. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
private TerraformRemoteState GetRemoteStateDataSource(Construct Scope, string Name, string FromStack)
Creates a TerraformRemoteState resource that accesses this backend.
Scope
Required
- Type: Constructs.Construct
Name
Required
- Type: string
FromStack
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
using HashiCorp.Cdktf;
PgBackend.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
PgBackend.IsTerraformElement(object X);
X
Required
- Type: object
IsBackend
using HashiCorp.Cdktf;
PgBackend.IsBackend(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
RemoteBackend
Initializers
using HashiCorp.Cdktf;
new RemoteBackend(Construct Scope, RemoteBackendConfig Props);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Props | RemoteBackendConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Props
Required
- Type: RemoteBackendConfig
Methods
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 | Adds this resource to the terraform JSON output. |
GetRemoteStateDataSource | Creates a TerraformRemoteState resource that accesses this backend. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
private TerraformRemoteState GetRemoteStateDataSource(Construct Scope, string Name, string FromStack)
Creates a TerraformRemoteState resource that accesses this backend.
Scope
Required
- Type: Constructs.Construct
Name
Required
- Type: string
FromStack
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
using HashiCorp.Cdktf;
RemoteBackend.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
RemoteBackend.IsTerraformElement(object X);
X
Required
- Type: object
IsBackend
using HashiCorp.Cdktf;
RemoteBackend.IsBackend(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
Resource
- Implements: IResource
A construct which represents a resource.
Initializers
using HashiCorp.Cdktf;
new Resource(Construct Scope, string Id);
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
ToString
ToString
private string ToString()
Returns a string representation of this construct.
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsConstruct
IsConstruct
using HashiCorp.Cdktf;
Resource.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
Stack | TerraformStack | The stack in which this resource is defined. |
Node
Required
Node
- Deprecated: - Please use Construct from the constructs package instead.
public Node Node { get; }
- Type: Constructs.Node
The tree node.
Stack
Required
Stack
- Deprecated: - Please use Construct from the constructs package instead.
public TerraformStack Stack { get; }
- Type: TerraformStack
The stack in which this resource is defined.
S3Backend
Initializers
using HashiCorp.Cdktf;
new S3Backend(Construct Scope, S3BackendConfig Props);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Props | S3BackendConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Props
Required
- Type: S3BackendConfig
Methods
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 | Adds this resource to the terraform JSON output. |
GetRemoteStateDataSource | Creates a TerraformRemoteState resource that accesses this backend. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
private TerraformRemoteState GetRemoteStateDataSource(Construct Scope, string Name, string FromStack)
Creates a TerraformRemoteState resource that accesses this backend.
Scope
Required
- Type: Constructs.Construct
Name
Required
- Type: string
FromStack
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
using HashiCorp.Cdktf;
S3Backend.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
S3Backend.IsTerraformElement(object X);
X
Required
- Type: object
IsBackend
using HashiCorp.Cdktf;
S3Backend.IsBackend(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
SwiftBackend
Initializers
using HashiCorp.Cdktf;
new SwiftBackend(Construct Scope, SwiftBackendConfig Props);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Props | SwiftBackendConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Props
Required
- Type: SwiftBackendConfig
Methods
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 | Adds this resource to the terraform JSON output. |
GetRemoteStateDataSource | Creates a TerraformRemoteState resource that accesses this backend. |
ToString
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
ToHclTerraform
private object ToHclTerraform()
ToMetadata
ToMetadata
private object ToMetadata()
ToTerraform
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
GetRemoteStateDataSource
private TerraformRemoteState GetRemoteStateDataSource(Construct Scope, string Name, string FromStack)
Creates a TerraformRemoteState resource that accesses this backend.
Scope
Required
- Type: Constructs.Construct
Name
Required
- Type: string
FromStack
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
IsConstruct
using HashiCorp.Cdktf;
SwiftBackend.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
IsTerraformElement
using HashiCorp.Cdktf;
SwiftBackend.IsTerraformElement(object X);
X
Required
- Type: object
IsBackend
IsBackend
using HashiCorp.Cdktf;
SwiftBackend.IsBackend(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
Node
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
CdktfStack
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
Fqn
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
FriendlyUniqueId
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string FriendlyUniqueId { get; }
- Type: string
TerraformAsset
Initializers
using HashiCorp.Cdktf;
new TerraformAsset(Construct Scope, string Id, TerraformAssetConfig Config);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Config | TerraformAssetConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Config
Required
- Type: TerraformAssetConfig
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
ToString
private string ToString()
Returns a string representation of this construct.
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsConstruct
using HashiCorp.Cdktf;
TerraformAsset.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
FileName | string | Name of the asset. |
Path | string | The path relative to the root of the terraform directory in posix format Use this property to reference the asset. |
AssetHash | string | No description. |
Type | AssetType | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
FileName
Required
public string FileName { get; }
- Type: string
Name of the asset.
Path
Required
public string Path { get; }
- Type: string
The path relative to the root of the terraform directory in posix format Use this property to reference the asset.
AssetHash
Required
public string AssetHash { get; }
- Type: string
Type
Required
public AssetType Type { get; }
- Type: AssetType
TerraformBackend
Initializers
using HashiCorp.Cdktf;
new TerraformBackend(Construct Scope, string Id, string Name);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Name | string | No description. |
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Name
Required
- Type: string
Methods
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 | Adds this resource to the terraform JSON output. |
GetRemoteStateDataSource | Creates a TerraformRemoteState resource that accesses this backend. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
private TerraformRemoteState GetRemoteStateDataSource(Construct Scope, string Name, string FromStack)
Creates a TerraformRemoteState resource that accesses this backend.
Scope
Required
- Type: Constructs.Construct
Name
Required
- Type: string
FromStack
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
using HashiCorp.Cdktf;
TerraformBackend.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
TerraformBackend.IsTerraformElement(object X);
X
Required
- Type: object
IsBackend
using HashiCorp.Cdktf;
TerraformBackend.IsBackend(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
TerraformDataSource
- Implements: ITerraformResource, ITerraformDependable, IInterpolatingParent
Initializers
using HashiCorp.Cdktf;
new TerraformDataSource(Construct Scope, string Id, TerraformResourceConfig Config);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Config | TerraformResourceConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Config
Required
- Type: TerraformResourceConfig
Methods
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 | Adds this resource to the terraform JSON output. |
ToMetadata | No description. |
ToTerraform | Adds this resource to the terraform JSON output. |
GetAnyMapAttribute | No description. |
GetBooleanAttribute | No description. |
GetBooleanMapAttribute | No description. |
GetListAttribute | No description. |
GetNumberAttribute | No description. |
GetNumberListAttribute | No description. |
GetNumberMapAttribute | No description. |
GetStringAttribute | No description. |
GetStringMapAttribute | No description. |
InterpolationForAttribute | No description. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
Adds this resource to the terraform JSON output.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
GetAnyMapAttribute
private System.Collections.Generic.IDictionary< string, object > GetAnyMapAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetBooleanAttribute
private IResolvable GetBooleanAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetBooleanMapAttribute
private System.Collections.Generic.IDictionary< string, bool > GetBooleanMapAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetListAttribute
private string[] GetListAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetNumberAttribute
private double GetNumberAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetNumberListAttribute
private double[] GetNumberListAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetNumberMapAttribute
private System.Collections.Generic.IDictionary< string, double > GetNumberMapAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetStringAttribute
private string GetStringAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetStringMapAttribute
private System.Collections.Generic.IDictionary< string, string > GetStringMapAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
InterpolationForAttribute
private IResolvable InterpolationForAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsTerraformDataSource | No description. |
IsConstruct
using HashiCorp.Cdktf;
TerraformDataSource.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
TerraformDataSource.IsTerraformElement(object X);
X
Required
- Type: object
IsTerraformDataSource
using HashiCorp.Cdktf;
TerraformDataSource.IsTerraformDataSource(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
TerraformMetaArguments | System.Collections.Generic.IDictionary< string, object > | No description. |
TerraformResourceType | string | No description. |
TerraformGeneratorMetadata | TerraformProviderGeneratorMetadata | No description. |
Count | object | No description. |
DependsOn | string[] | No description. |
ForEach | ITerraformIterator | No description. |
Lifecycle | TerraformResourceLifecycle | No description. |
Provider | TerraformProvider | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
TerraformMetaArguments
Required
public System.Collections.Generic.IDictionary< string, object > TerraformMetaArguments { get; }
- Type: System.Collections.Generic.IDictionary< string, object >
TerraformResourceType
Required
public string TerraformResourceType { get; }
- Type: string
TerraformGeneratorMetadata
Optional
public TerraformProviderGeneratorMetadata TerraformGeneratorMetadata { get; }
Count
Optional
public object Count { get; }
- Type: object
DependsOn
Optional
public string[] DependsOn { get; }
- Type: string[]
ForEach
Optional
public ITerraformIterator ForEach { get; }
- Type: ITerraformIterator
Lifecycle
Optional
public TerraformResourceLifecycle Lifecycle { get; }
Provider
Optional
public TerraformProvider Provider { get; }
- Type: TerraformProvider
TerraformElement
Initializers
using HashiCorp.Cdktf;
new TerraformElement(Construct Scope, string Id, string ElementType = null);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
ElementType | string | No description. |
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
ElementType
Optional
- Type: string
Methods
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. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
using HashiCorp.Cdktf;
TerraformElement.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
TerraformElement.IsTerraformElement(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
TerraformHclModule
Initializers
using HashiCorp.Cdktf;
new TerraformHclModule(Construct Scope, string Id, TerraformHclModuleConfig Options);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Options | TerraformHclModuleConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Options
Required
- Type: TerraformHclModuleConfig
Methods
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. |
AddProvider | No description. |
GetString | No description. |
InterpolationForOutput | No description. |
Get | No description. |
GetBoolean | No description. |
GetList | No description. |
GetNumber | No description. |
Set | No description. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
AddProvider
private void AddProvider(object Provider)
Provider
Required
- Type: object
GetString
private string GetString(string Output)
Output
Required
- Type: string
InterpolationForOutput
private IResolvable InterpolationForOutput(string ModuleOutput)
ModuleOutput
Required
- Type: string
Get
private object Get(string Output)
Output
Required
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
Output
Required
- Type: string
GetList
private string[] GetList(string Output)
Output
Required
- Type: string
GetNumber
private double GetNumber(string Output)
Output
Required
- Type: string
Set
private void Set(string Variable, object Value)
Variable
Required
- Type: string
Value
Required
- Type: object
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
using HashiCorp.Cdktf;
TerraformHclModule.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
TerraformHclModule.IsTerraformElement(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Source | string | No description. |
Providers | object[] | No description. |
SkipAssetCreationFromLocalModules | bool | No description. |
Version | string | No description. |
DependsOn | string[] | No description. |
ForEach | ITerraformIterator | No description. |
Variables | System.Collections.Generic.IDictionary< string, object > | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
Source
Required
public string Source { get; }
- Type: string
Providers
Optional
public object[] Providers { get; }
- Type: object[]
SkipAssetCreationFromLocalModules
Optional
public bool SkipAssetCreationFromLocalModules { get; }
- Type: bool
Version
Optional
public string Version { get; }
- Type: string
DependsOn
Optional
public string[] DependsOn { get; }
- Type: string[]
ForEach
Optional
public ITerraformIterator ForEach { get; }
- Type: ITerraformIterator
Variables
Optional
public System.Collections.Generic.IDictionary< string, object > Variables { get; }
- Type: System.Collections.Generic.IDictionary< string, object >
TerraformLocal
- Implements: ITerraformAddressable
Initializers
using HashiCorp.Cdktf;
new TerraformLocal(Construct Scope, string Id, object Expression);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Expression | object | No description. |
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Expression
Required
- Type: object
Methods
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. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
using HashiCorp.Cdktf;
TerraformLocal.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
TerraformLocal.IsTerraformElement(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
AsAnyMap | System.Collections.Generic.IDictionary< string, object > | No description. |
AsBoolean | IResolvable | No description. |
AsBooleanMap | System.Collections.Generic.IDictionary< string, bool > | No description. |
AsList | string[] | No description. |
AsNumber | double | No description. |
AsNumberMap | System.Collections.Generic.IDictionary< string, double > | No description. |
AsString | string | No description. |
AsStringMap | System.Collections.Generic.IDictionary< string, string > | No description. |
Expression | object | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
AsAnyMap
Required
public System.Collections.Generic.IDictionary< string, object > AsAnyMap { get; }
- Type: System.Collections.Generic.IDictionary< string, object >
AsBoolean
Required
public IResolvable AsBoolean { get; }
- Type: IResolvable
AsBooleanMap
Required
public System.Collections.Generic.IDictionary< string, bool > AsBooleanMap { get; }
- Type: System.Collections.Generic.IDictionary< string, bool >
AsList
Required
public string[] AsList { get; }
- Type: string[]
AsNumber
Required
public double AsNumber { get; }
- Type: double
AsNumberMap
Required
public System.Collections.Generic.IDictionary< string, double > AsNumberMap { get; }
- Type: System.Collections.Generic.IDictionary< string, double >
AsString
Required
public string AsString { get; }
- Type: string
AsStringMap
Required
public System.Collections.Generic.IDictionary< string, string > AsStringMap { get; }
- Type: System.Collections.Generic.IDictionary< string, string >
Expression
Required
public object Expression { get; }
- Type: object
TerraformModule
- Implements: ITerraformDependable
TerraformModule can be used to reference a local terraform module or a module from the Terraform Registry.
It should be used if you can not use generated bindings for the module as you would get by adding the module to your cdktf.json files "terraformModules" array and running cdktf get.
This class is not creating a Terraform module to be used outside of CDKTF. If you want to bundle certain resources together like you would do with a Terraform module, you should use Constructs instead, see http://cdk.tf/constructs for more details.
Initializers
using HashiCorp.Cdktf;
new TerraformModule(Construct Scope, string Id, TerraformModuleConfig Options);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Options | TerraformModuleConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Options
Required
- Type: TerraformModuleConfig
Methods
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. |
AddProvider | No description. |
GetString | No description. |
InterpolationForOutput | No description. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
AddProvider
private void AddProvider(object Provider)
Provider
Required
- Type: object
GetString
private string GetString(string Output)
Output
Required
- Type: string
InterpolationForOutput
private IResolvable InterpolationForOutput(string ModuleOutput)
ModuleOutput
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
using HashiCorp.Cdktf;
TerraformModule.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
TerraformModule.IsTerraformElement(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Source | string | No description. |
Providers | object[] | No description. |
SkipAssetCreationFromLocalModules | bool | No description. |
Version | string | No description. |
DependsOn | string[] | No description. |
ForEach | ITerraformIterator | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
Source
Required
public string Source { get; }
- Type: string
Providers
Optional
public object[] Providers { get; }
- Type: object[]
SkipAssetCreationFromLocalModules
Optional
public bool SkipAssetCreationFromLocalModules { get; }
- Type: bool
Version
Optional
public string Version { get; }
- Type: string
DependsOn
Optional
public string[] DependsOn { get; }
- Type: string[]
ForEach
Optional
public ITerraformIterator ForEach { get; }
- Type: ITerraformIterator
TerraformOutput
Initializers
using HashiCorp.Cdktf;
new TerraformOutput(Construct Scope, string Id, TerraformOutputConfig Config);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Config | TerraformOutputConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Config
Required
- Type: TerraformOutputConfig
Methods
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. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsTerraformOutput | No description. |
IsConstruct
using HashiCorp.Cdktf;
TerraformOutput.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
TerraformOutput.IsTerraformElement(object X);
X
Required
- Type: object
IsTerraformOutput
using HashiCorp.Cdktf;
TerraformOutput.IsTerraformOutput(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
StaticId | bool | No description. |
Value | object | No description. |
DependsOn | ITerraformDependable[] | No description. |
Description | string | No description. |
Precondition | Precondition | No description. |
Sensitive | bool | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
StaticId
Required
public bool StaticId { get; }
- Type: bool
Value
Required
public object Value { get; }
- Type: object
DependsOn
Optional
public ITerraformDependable[] DependsOn { get; }
- Type: ITerraformDependable[]
Description
Optional
public string Description { get; }
- Type: string
Precondition
Optional
public Precondition Precondition { get; }
- Type: Precondition
Sensitive
Optional
public bool Sensitive { get; }
- Type: bool
TerraformProvider
Initializers
using HashiCorp.Cdktf;
new TerraformProvider(Construct Scope, string Id, TerraformProviderConfig Config);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Config | TerraformProviderConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Config
Required
- Type: TerraformProviderConfig
Methods
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 | Adds this resource to the terraform JSON output. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsTerraformProvider | No description. |
IsConstruct
using HashiCorp.Cdktf;
TerraformProvider.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
TerraformProvider.IsTerraformElement(object X);
X
Required
- Type: object
IsTerraformProvider
using HashiCorp.Cdktf;
TerraformProvider.IsTerraformProvider(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
MetaAttributes | System.Collections.Generic.IDictionary< string, object > | No description. |
TerraformResourceType | string | No description. |
TerraformGeneratorMetadata | TerraformProviderGeneratorMetadata | No description. |
TerraformProviderSource | string | No description. |
Alias | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
MetaAttributes
Required
public System.Collections.Generic.IDictionary< string, object > MetaAttributes { get; }
- Type: System.Collections.Generic.IDictionary< string, object >
TerraformResourceType
Required
public string TerraformResourceType { get; }
- Type: string
TerraformGeneratorMetadata
Optional
public TerraformProviderGeneratorMetadata TerraformGeneratorMetadata { get; }
TerraformProviderSource
Optional
public string TerraformProviderSource { get; }
- Type: string
Alias
Optional
public string Alias { get; }
- Type: string
TerraformRemoteState
- Implements: ITerraformAddressable
Initializers
using HashiCorp.Cdktf;
new TerraformRemoteState(Construct Scope, string Id, string Backend, DataTerraformRemoteStateConfig Config);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Backend | string | No description. |
Config | DataTerraformRemoteStateConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Backend
Required
- Type: string
Config
Required
Methods
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 | Adds this resource to the terraform JSON output. |
ToMetadata | No description. |
ToTerraform | Adds this resource to the terraform JSON output. |
Get | No description. |
GetBoolean | No description. |
GetList | No description. |
GetNumber | No description. |
GetString | No description. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
Adds this resource to the terraform JSON output.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Get
private IResolvable Get(string Output)
Output
Required
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
Output
Required
- Type: string
GetList
private string[] GetList(string Output)
Output
Required
- Type: string
GetNumber
private double GetNumber(string Output)
Output
Required
- Type: string
GetString
private string GetString(string Output)
Output
Required
- Type: string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
using HashiCorp.Cdktf;
TerraformRemoteState.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
TerraformRemoteState.IsTerraformElement(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | string | No description. |
TfResourceType
Required
public string TfResourceType { get; }
- Type: string
TerraformResource
- Implements: ITerraformResource, ITerraformDependable, IInterpolatingParent
Initializers
using HashiCorp.Cdktf;
new TerraformResource(Construct Scope, string Id, TerraformResourceConfig Config);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Config | TerraformResourceConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Config
Required
- Type: TerraformResourceConfig
Methods
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 | Adds this resource to the terraform JSON output. |
AddMoveTarget | Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. |
GetAnyMapAttribute | No description. |
GetBooleanAttribute | No description. |
GetBooleanMapAttribute | No description. |
GetListAttribute | No description. |
GetNumberAttribute | No description. |
GetNumberListAttribute | No description. |
GetNumberMapAttribute | No description. |
GetStringAttribute | No description. |
GetStringMapAttribute | No description. |
HasResourceMove | No description. |
ImportFrom | No description. |
InterpolationForAttribute | No description. |
MoveFromId | Move the resource corresponding to "id" to this resource. |
MoveTo | Moves this resource to the target resource given by moveTarget. |
MoveToId | Moves this resource to the resource corresponding to "id". |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
AddMoveTarget
private void AddMoveTarget(string MoveTarget)
Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move.
MoveTarget
Required
- Type: string
The string move target that will correspond to this resource.
GetAnyMapAttribute
private System.Collections.Generic.IDictionary< string, object > GetAnyMapAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetBooleanAttribute
private IResolvable GetBooleanAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetBooleanMapAttribute
private System.Collections.Generic.IDictionary< string, bool > GetBooleanMapAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetListAttribute
private string[] GetListAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetNumberAttribute
private double GetNumberAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetNumberListAttribute
private double[] GetNumberListAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetNumberMapAttribute
private System.Collections.Generic.IDictionary< string, double > GetNumberMapAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetStringAttribute
private string GetStringAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetStringMapAttribute
private System.Collections.Generic.IDictionary< string, string > GetStringMapAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
HasResourceMove
private object HasResourceMove()
ImportFrom
private void ImportFrom(string Id, TerraformProvider Provider = null)
Id
Required
- Type: string
Provider
Optional
- Type: TerraformProvider
InterpolationForAttribute
private IResolvable InterpolationForAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
MoveFromId
private void MoveFromId(string Id)
Move the resource corresponding to "id" to this resource.
Note that the resource being moved from must be marked as moved using it's instance function.
Id
Required
- Type: string
Full id of resource being moved from, e.g. "aws_s3_bucket.example".
MoveTo
private void MoveTo(string MoveTarget, object Index = null)
Moves this resource to the target resource given by moveTarget.
MoveTarget
Required
- Type: string
The previously set user defined string set by .addMoveTarget() corresponding to the resource to move to.
Index
Optional
- Type: object
Optional The index corresponding to the key the resource is to appear in the foreach of a resource to move to.
MoveToId
private void MoveToId(string Id)
Moves this resource to the resource corresponding to "id".
Id
Required
- Type: string
Full id of resource to move to, e.g. "aws_s3_bucket.example".
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsTerraformResource | No description. |
IsConstruct
using HashiCorp.Cdktf;
TerraformResource.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
TerraformResource.IsTerraformElement(object X);
X
Required
- Type: object
IsTerraformResource
using HashiCorp.Cdktf;
TerraformResource.IsTerraformResource(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
TerraformMetaArguments | System.Collections.Generic.IDictionary< string, object > | No description. |
TerraformResourceType | string | No description. |
TerraformGeneratorMetadata | TerraformProviderGeneratorMetadata | No description. |
Connection | object | No description. |
Count | object | No description. |
DependsOn | string[] | No description. |
ForEach | ITerraformIterator | No description. |
Lifecycle | TerraformResourceLifecycle | No description. |
Provider | TerraformProvider | No description. |
Provisioners | object[] | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
TerraformMetaArguments
Required
public System.Collections.Generic.IDictionary< string, object > TerraformMetaArguments { get; }
- Type: System.Collections.Generic.IDictionary< string, object >
TerraformResourceType
Required
public string TerraformResourceType { get; }
- Type: string
TerraformGeneratorMetadata
Optional
public TerraformProviderGeneratorMetadata TerraformGeneratorMetadata { get; }
Connection
Optional
public object Connection { get; }
- Type: object
Count
Optional
public object Count { get; }
- Type: object
DependsOn
Optional
public string[] DependsOn { get; }
- Type: string[]
ForEach
Optional
public ITerraformIterator ForEach { get; }
- Type: ITerraformIterator
Lifecycle
Optional
public TerraformResourceLifecycle Lifecycle { get; }
Provider
Optional
public TerraformProvider Provider { get; }
- Type: TerraformProvider
Provisioners
Optional
public object[] Provisioners { get; }
- Type: object[]
TerraformStack
Initializers
using HashiCorp.Cdktf;
new TerraformStack(Construct Scope, string Id);
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Methods
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. |
ToString
private string ToString()
Returns a string representation of this construct.
AddDependency
private void AddDependency(TerraformStack Dependency)
Dependency
Required
- Type: TerraformStack
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
AllProviders
private TerraformProvider[] AllProviders()
DependsOn
private bool DependsOn(TerraformStack Stack)
Stack
Required
- Type: TerraformStack
EnsureBackendExists
private TerraformBackend EnsureBackendExists()
GetLogicalId
private string GetLogicalId(object TfElement)
TfElement
Required
- Type: object
HasResourceMove
private bool HasResourceMove()
PrepareStack
private void PrepareStack()
RegisterIncomingCrossStackReference
private TerraformRemoteState RegisterIncomingCrossStackReference(TerraformStack FromStack)
FromStack
Required
- Type: TerraformStack
RegisterOutgoingCrossStackReference
private TerraformOutput RegisterOutgoingCrossStackReference(string Identifier)
Identifier
Required
- Type: string
RunAllValidations
private void RunAllValidations()
Run all validations on the stack.
ToHclTerraform
private System.Collections.Generic.IDictionary< string, object > ToHclTerraform()
ToTerraform
private object ToTerraform()
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsStack | No description. |
Of | No description. |
IsConstruct
using HashiCorp.Cdktf;
TerraformStack.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsStack
using HashiCorp.Cdktf;
TerraformStack.IsStack(object X);
X
Required
- Type: object
Of
using HashiCorp.Cdktf;
TerraformStack.Of(IConstruct Construct);
Construct
Required
- Type: Constructs.IConstruct
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
Dependencies | TerraformStack[] | No description. |
MoveTargets | TerraformResourceTargets | No description. |
Synthesizer | IStackSynthesizer | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
Dependencies
Required
public TerraformStack[] Dependencies { get; }
- Type: TerraformStack[]
MoveTargets
Required
public TerraformResourceTargets MoveTargets { get; }
- Type: TerraformResourceTargets
Synthesizer
Required
public IStackSynthesizer Synthesizer { get; }
- Type: IStackSynthesizer
TerraformVariable
- Implements: ITerraformAddressable
Initializers
using HashiCorp.Cdktf;
new TerraformVariable(Construct Scope, string Id, TerraformVariableConfig Config);
Name | Type | Description |
---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Config | TerraformVariableConfig | No description. |
Scope
Required
- Type: Constructs.Construct
Id
Required
- Type: string
Config
Required
- Type: TerraformVariableConfig
Methods
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. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
Path
Required
- Type: string
Value
Required
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalId
Required
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToHclTerraform
private object ToHclTerraform()
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
AddValidation
private void AddValidation(TerraformVariableValidationConfig Validation)
Validation
Required
SynthesizeAttributes
private System.Collections.Generic.IDictionary< string, object > SynthesizeAttributes()
SynthesizeHclAttributes
private System.Collections.Generic.IDictionary< string, object > SynthesizeHclAttributes()
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
using HashiCorp.Cdktf;
TerraformVariable.IsConstruct(object X);
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.
X
Required
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
TerraformVariable.IsTerraformElement(object X);
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
BooleanValue | IResolvable | No description. |
ListValue | string[] | No description. |
NumberValue | double | No description. |
StringValue | string | No description. |
Value | object | No description. |
Default | object | No description. |
Description | string | No description. |
Nullable | bool | No description. |
Sensitive | bool | No description. |
Type | string | No description. |
Validation | TerraformVariableValidationConfig[] | No description. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStack
Required
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
BooleanValue
Required
public IResolvable BooleanValue { get; }
- Type: IResolvable
ListValue
Required
public string[] ListValue { get; }
- Type: string[]
NumberValue
Required
public double NumberValue { get; }
- Type: double
StringValue
Required
public string StringValue { get; }
- Type: string
Value
Required
public object Value { get; }
- Type: object
Default
Optional
public object Default { get; }
- Type: object
Description
Optional
public string Description { get; }
- Type: string
Nullable
Optional
public bool Nullable { get; }
- Type: bool
Sensitive
Optional
public bool Sensitive { get; }
- Type: bool
Type
Optional
public string Type { get; }
- Type: string
Validation
Optional
public TerraformVariableValidationConfig[] Validation { get; }
Structs
AppConfig
Initializer
using HashiCorp.Cdktf;
new AppConfig {
System.Collections.Generic.IDictionary< string, object > Context = null,
bool HclOutput = null,
string Outdir = null,
bool SkipBackendValidation = null,
bool SkipValidation = null,
bool StackTraces = null
};
Properties
Name | Type | Description |
---|---|---|
Context | System.Collections.Generic.IDictionary< string, object > | Additional context values for the application. |
HclOutput | bool | No description. |
Outdir | string | The directory to output Terraform resources. |
SkipBackendValidation | bool | Whether to skip backend validation during synthesis of the app. |
SkipValidation | bool | Whether to skip all validations during synthesis of the app. |
StackTraces | bool | No description. |
Context
Optional
public System.Collections.Generic.IDictionary< string, object > Context { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
- Default: no additional context
Additional context values for the application.
Context set by the CLI or the context
key in cdktf.json
has precedence.
Context can be read from any construct using node.getContext(key)
.
HclOutput
Optional
public bool HclOutput { get; set; }
- Type: bool
Outdir
Optional
public string Outdir { get; set; }
- Type: string
- Default: CDKTF_OUTDIR if defined, otherwise "cdktf.out"
The directory to output Terraform resources.
If you are using the CDKTF CLI, this value is automatically set from one of the following three sources:
- The
-o
/--output
CLI option - The
CDKTF_OUTDIR
environment variable - The
outdir
key incdktf.json
If you are using the CDKTF CLI and want to set a different value here, you will also need to set the same value via one of the three ways specified above.
The most common case to set this value is when you are using the CDKTF library directly (e.g. when writing unit tests).
SkipBackendValidation
Optional
public bool SkipBackendValidation { get; set; }
- Type: bool
- Default: false
Whether to skip backend validation during synthesis of the app.
SkipValidation
Optional
public bool SkipValidation { get; set; }
- Type: bool
- Default: false
Whether to skip all validations during synthesis of the app.
StackTraces
Optional
public bool StackTraces { get; set; }
- Type: bool
AzurermBackendConfig
Stores the state as a Blob with the given Key within the Blob Container within the Blob Storage Account.
This backend supports state locking and consistency checking with Azure Blob Storage native capabilities.
Note: By default the Azure Backend uses ADAL for authentication which is deprecated in favour of MSAL - MSAL can be used by setting use_microsoft_graph to true. The default for this will change in Terraform 1.2, so that MSAL authentication is used by default.
Read more about this backend in the Terraform docs: https://developer.hashicorp.com/terraform/language/settings/backends/azurerm
Initializer
using HashiCorp.Cdktf;
new AzurermBackendConfig {
string ContainerName,
string Key,
string StorageAccountName,
string AccessKey = null,
string ClientCertificatePassword = null,
string ClientCertificatePath = null,
string ClientId = null,
string ClientSecret = null,
string Endpoint = null,
string Environment = null,
string MetadataHost = null,
string MsiEndpoint = null,
string OidcRequestToken = null,
string OidcRequestUrl = null,
string OidcToken = null,
string OidcTokenFilePath = null,
string ResourceGroupName = null,
string SasToken = null,
bool Snapshot = null,
string SubscriptionId = null,
string TenantId = null,
bool UseAzureadAuth = null,
bool UseMicrosoftGraph = null,
bool UseMsi = null,
bool UseOidc = null
};
Properties
Name | Type | Description |
---|---|---|
ContainerName | string | (Required) The Name of the Storage Container within the Storage Account. |
Key | string | (Required) The name of the Blob used to retrieve/store Terraform's State file inside the Storage Container. |
StorageAccountName | string | (Required) The Name of the Storage Account. |
AccessKey | string | access_key - (Optional) The Access Key used to access the Blob Storage Account. |
ClientCertificatePassword | string | (Optional) The password associated with the Client Certificate specified in client_certificate_path. |
ClientCertificatePath | string | (Optional) The path to the PFX file used as the Client Certificate when authenticating as a Service Principal. |
ClientId | string | (Optional) The Client ID of the Service Principal. |
ClientSecret | string | (Optional) The Client Secret of the Service Principal. |
Endpoint | string | (Optional) The Custom Endpoint for Azure Resource Manager. This can also be sourced from the ARM_ENDPOINT environment variable. |
Environment | string | (Optional) The Azure Environment which should be used. |
MetadataHost | string | (Optional) The Hostname of the Azure Metadata Service (for example management.azure.com), used to obtain the Cloud Environment when using a Custom Azure Environment. This can also be sourced from the ARM_METADATA_HOSTNAME Environment Variable.). |
MsiEndpoint | string | (Optional) The path to a custom Managed Service Identity endpoint which is automatically determined if not specified. |
OidcRequestToken | string | (Optional) The bearer token for the request to the OIDC provider. |
OidcRequestUrl | string | (Optional) The URL for the OIDC provider from which to request an ID token. |
OidcToken | string | (Optional) The ID token when authenticating using OpenID Connect (OIDC). |
OidcTokenFilePath | string | (Optional) The path to a file containing an ID token when authenticating using OpenID Connect (OIDC). |
ResourceGroupName | string | (Required) The Name of the Resource Group in which the Storage Account exists. |
SasToken | string | (Optional) The SAS Token used to access the Blob Storage Account. |
Snapshot | bool | (Optional) Should the Blob used to store the Terraform Statefile be snapshotted before use? |
SubscriptionId | string | (Optional) The Subscription ID in which the Storage Account exists. |
TenantId | string | (Optional) The Tenant ID in which the Subscription exists. |
UseAzureadAuth | bool | (Optional) Should AzureAD Authentication be used to access the Blob Storage Account. |
UseMicrosoftGraph | bool | (Optional) Should MSAL be used for authentication instead of ADAL, and should Microsoft Graph be used instead of Azure Active Directory Graph? |
UseMsi | bool | (Optional) Should Managed Service Identity authentication be used? |
UseOidc | bool | (Optional) Should OIDC authentication be used? This can also be sourced from the ARM_USE_OIDC environment variable. |
ContainerName
Required
public string ContainerName { get; set; }
- Type: string
(Required) The Name of the Storage Container within the Storage Account.
Key
Required
public string Key { get; set; }
- Type: string
(Required) The name of the Blob used to retrieve/store Terraform's State file inside the Storage Container.
StorageAccountName
Required
public string StorageAccountName { get; set; }
- Type: string
(Required) The Name of the Storage Account.
AccessKey
Optional
public string AccessKey { get; set; }
- Type: string
access_key - (Optional) The Access Key used to access the Blob Storage Account.
This can also be sourced from the ARM_ACCESS_KEY environment variable.
ClientCertificatePassword
Optional
public string ClientCertificatePassword { get; set; }
- Type: string
(Optional) The password associated with the Client Certificate specified in client_certificate_path.
This can also be sourced from the ARM_CLIENT_CERTIFICATE_PASSWORD environment variable.
ClientCertificatePath
Optional
public string ClientCertificatePath { get; set; }
- Type: string
(Optional) The path to the PFX file used as the Client Certificate when authenticating as a Service Principal.
This can also be sourced from the ARM_CLIENT_CERTIFICATE_PATH environment variable.
ClientId
Optional
public string ClientId { get; set; }
- Type: string
(Optional) The Client ID of the Service Principal.
This can also be sourced from the ARM_CLIENT_ID environment variable.
ClientSecret
Optional
public string ClientSecret { get; set; }
- Type: string
(Optional) The Client Secret of the Service Principal.
This can also be sourced from the ARM_CLIENT_SECRET environment variable.
Endpoint
Optional
public string Endpoint { get; set; }
- Type: string
(Optional) The Custom Endpoint for Azure Resource Manager. This can also be sourced from the ARM_ENDPOINT environment variable.
NOTE: An endpoint should only be configured when using Azure Stack.
Environment
Optional
public string Environment { get; set; }
- Type: string
(Optional) The Azure Environment which should be used.
This can also be sourced from the ARM_ENVIRONMENT environment variable. Possible values are public, china, german, stack and usgovernment. Defaults to public.
MetadataHost
Optional
public string MetadataHost { get; set; }
- Type: string
(Optional) The Hostname of the Azure Metadata Service (for example management.azure.com), used to obtain the Cloud Environment when using a Custom Azure Environment. This can also be sourced from the ARM_METADATA_HOSTNAME Environment Variable.).
MsiEndpoint
Optional
public string MsiEndpoint { get; set; }
- Type: string
(Optional) The path to a custom Managed Service Identity endpoint which is automatically determined if not specified.
This can also be sourced from the ARM_MSI_ENDPOINT environment variable.
OidcRequestToken
Optional
public string OidcRequestToken { get; set; }
- Type: string
(Optional) The bearer token for the request to the OIDC provider.
This can also be sourced from the ARM_OIDC_REQUEST_TOKEN or ACTIONS_ID_TOKEN_REQUEST_TOKEN environment variables.
OidcRequestUrl
Optional
public string OidcRequestUrl { get; set; }
- Type: string
(Optional) The URL for the OIDC provider from which to request an ID token.
This can also be sourced from the ARM_OIDC_REQUEST_URL or ACTIONS_ID_TOKEN_REQUEST_URL environment variables.
OidcToken
Optional
public string OidcToken { get; set; }
- Type: string
(Optional) The ID token when authenticating using OpenID Connect (OIDC).
This can also be sourced from the ARM_OIDC_TOKEN environment variable.
OidcTokenFilePath
Optional
public string OidcTokenFilePath { get; set; }
- Type: string
(Optional) The path to a file containing an ID token when authenticating using OpenID Connect (OIDC).
This can also be sourced from the ARM_OIDC_TOKEN_FILE_PATH environment variable.
ResourceGroupName
Optional
public string ResourceGroupName { get; set; }
- Type: string
(Required) The Name of the Resource Group in which the Storage Account exists.
SasToken
Optional
public string SasToken { get; set; }
- Type: string
(Optional) The SAS Token used to access the Blob Storage Account.
This can also be sourced from the ARM_SAS_TOKEN environment variable.
Snapshot
Optional
public bool Snapshot { get; set; }
- Type: bool
(Optional) Should the Blob used to store the Terraform Statefile be snapshotted before use?
Defaults to false. This value can also be sourced from the ARM_SNAPSHOT environment variable.
SubscriptionId
Optional
public string SubscriptionId { get; set; }
- Type: string
(Optional) The Subscription ID in which the Storage Account exists.
This can also be sourced from the ARM_SUBSCRIPTION_ID environment variable.
TenantId
Optional
public string TenantId { get; set; }
- Type: string
(Optional) The Tenant ID in which the Subscription exists.
This can also be sourced from the ARM_TENANT_ID environment variable.
UseAzureadAuth
Optional
public bool UseAzureadAuth { get; set; }
- Type: bool
(Optional) Should AzureAD Authentication be used to access the Blob Storage Account.
This can also be sourced from the ARM_USE_AZUREAD environment variable.
Note: When using AzureAD for Authentication to Storage you also need to ensure the Storage Blob Data Owner role is assigned.
UseMicrosoftGraph
Optional
public bool UseMicrosoftGraph { get; set; }
- Type: bool
(Optional) Should MSAL be used for authentication instead of ADAL, and should Microsoft Graph be used instead of Azure Active Directory Graph?
Defaults to true.
Note: In Terraform 1.2 the Azure Backend uses MSAL (and Microsoft Graph) rather than ADAL (and Azure Active Directory Graph) for authentication by default - you can disable this by setting use_microsoft_graph to false. This setting will be removed in Terraform 1.3, due to Microsoft's deprecation of ADAL.
UseMsi
Optional
public bool UseMsi { get; set; }
- Type: bool
(Optional) Should Managed Service Identity authentication be used?
This can also be sourced from the ARM_USE_MSI environment variable.
UseOidc
Optional
public bool UseOidc { get; set; }
- Type: bool
(Optional) Should OIDC authentication be used? This can also be sourced from the ARM_USE_OIDC environment variable.
Note: When using OIDC for authentication, use_microsoft_graph must be set to true (which is the default).
CloudBackendConfig
The Cloud Backend synthesizes a {@link https://developer.hashicorp.com/terraform/cli/cloud/settings#the-cloud-block cloud block}. The cloud block is a nested block within the top-level terraform settings block. It specifies which Terraform Cloud workspaces to use for the current working directory. The cloud block only affects Terraform CLI's behavior. When Terraform Cloud uses a configuration that contains a cloud block - for example, when a workspace is configured to use a VCS provider directly - it ignores the block and behaves according to its own workspace settings.
https://developer.hashicorp.com/terraform/cli/cloud/settings#arguments
Initializer
using HashiCorp.Cdktf;
new CloudBackendConfig {
string Organization,
object Workspaces,
string Hostname = null,
string Token = null
};
Properties
Name | Type | Description |
---|---|---|
Organization | string | The name of the organization containing the workspace(s) the current configuration should use. |
Workspaces | object | A nested block that specifies which remote Terraform Cloud workspaces to use for the current configuration. |
Hostname | string | The hostname of a Terraform Enterprise installation, if using Terraform Enterprise. |
Token | string | The token used to authenticate with Terraform Cloud. |
Organization
Required
public string Organization { get; set; }
- Type: string
The name of the organization containing the workspace(s) the current configuration should use.
Workspaces
Required
public object Workspaces { get; set; }
- Type: object
A nested block that specifies which remote Terraform Cloud workspaces to use for the current configuration.
The workspaces block must contain exactly one of the following arguments, each denoting a strategy for how workspaces should be mapped:
Hostname
Optional
public string Hostname { get; set; }
- Type: string
- Default: app.terraform.io
The hostname of a Terraform Enterprise installation, if using Terraform Enterprise.
Token
Optional
public string Token { get; set; }
- Type: string
The token used to authenticate with Terraform Cloud.
We recommend omitting the token from the configuration, and instead using terraform login or manually configuring credentials in the CLI config file.
ConsulBackendConfig
Stores the state in the Consul KV store at a given path. This backend supports state locking.
Read more about this backend in the Terraform docs: https://developer.hashicorp.com/terraform/language/settings/backends/consul
Initializer
using HashiCorp.Cdktf;
new ConsulBackendConfig {
string AccessToken,
string Path,
string Address = null,
string CaFile = null,
string CertFile = null,
string Datacenter = null,
bool Gzip = null,
string HttpAuth = null,
string KeyFile = null,
bool Lock = null,
string Scheme = null
};
Properties
Name | Type | Description |
---|---|---|
AccessToken | string | (Required) Access token. |
Path | string | (Required) Path in the Consul KV store. |
Address | string | (Optional) DNS name and port of your Consul endpoint specified in the format dnsname:port. |
CaFile | string | (Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate. |
CertFile | string | (Optional) A path to a PEM-encoded certificate provided to the remote agent; |
Datacenter | string | (Optional) The datacenter to use. |
Gzip | bool | (Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed. |
HttpAuth | string | (Optional) HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either user or user:pass. |
KeyFile | string | (Optional) A path to a PEM-encoded private key, required if cert_file is specified. |
Lock | bool | (Optional) false to disable locking. |
Scheme | string | (Optional) Specifies what protocol to use when talking to the given address,either http or https. |
AccessToken
Required
public string AccessToken { get; set; }
- Type: string
(Required) Access token.
Path
Required
public string Path { get; set; }
- Type: string
(Required) Path in the Consul KV store.
Address
Optional
public string Address { get; set; }
- Type: string
(Optional) DNS name and port of your Consul endpoint specified in the format dnsname:port.
Defaults to the local agent HTTP listener.
CaFile
Optional
public string CaFile { get; set; }
- Type: string
(Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.
CertFile
Optional
public string CertFile { get; set; }
- Type: string
(Optional) A path to a PEM-encoded certificate provided to the remote agent;
requires use of key_file.
Datacenter
Optional
public string Datacenter { get; set; }
- Type: string
(Optional) The datacenter to use.
Defaults to that of the agent.
Gzip
Optional
public bool Gzip { get; set; }
- Type: bool
(Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed.
HttpAuth
Optional
public string HttpAuth { get; set; }
- Type: string
(Optional) HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either user or user:pass.
KeyFile
Optional
public string KeyFile { get; set; }
- Type: string
(Optional) A path to a PEM-encoded private key, required if cert_file is specified.
Lock
Optional
public bool Lock { get; set; }
- Type: bool
(Optional) false to disable locking.
This defaults to true, but will require session permissions with Consul and at least kv write permissions on $path/.lock to perform locking.
Scheme
Optional
public string Scheme { get; set; }
- Type: string
(Optional) Specifies what protocol to use when talking to the given address,either http or https.
SSL support can also be triggered by setting then environment variable CONSUL_HTTP_SSL to true.
CosBackendAssumeRole
Initializer
using HashiCorp.Cdktf;
new CosBackendAssumeRole {
string RoleArn,
double SessionDuration,
string SessionName,
object Policy = null
};
Properties
Name | Type | Description |
---|---|---|
RoleArn | string | (Required) The ARN of the role to assume. |
SessionDuration | double | (Required) The duration of the session when making the AssumeRole call. |
SessionName | string | (Required) The session name to use when making the AssumeRole call. |
Policy | object | (Optional) A more restrictive policy when making the AssumeRole call. |
RoleArn
Required
public string RoleArn { get; set; }
- Type: string
(Required) The ARN of the role to assume.
It can be sourced from the TENCENTCLOUD_ASSUME_ROLE_ARN.
SessionDuration
Required
public double SessionDuration { get; set; }
- Type: double
(Required) The duration of the session when making the AssumeRole call.
Its value ranges from 0 to 43200(seconds), and default is 7200 seconds. It can be sourced from the TENCENTCLOUD_ASSUME_ROLE_SESSION_DURATION.
SessionName
Required
public string SessionName { get; set; }
- Type: string
(Required) The session name to use when making the AssumeRole call.
It can be sourced from the TENCENTCLOUD_ASSUME_ROLE_SESSION_NAME.
Policy
Optional
public object Policy { get; set; }
- Type: object
(Optional) A more restrictive policy when making the AssumeRole call.
Its content must not contains principal elements. Please refer to {@link https://www.tencentcloud.com/document/product/598/10603 policies syntax logic}.
CosBackendConfig
Stores the state as an object in a configurable prefix in a given bucket on Tencent Cloud Object Storage (COS).
This backend supports state locking.
Warning! It is highly recommended that you enable Object Versioning on the COS bucket to allow for state recovery in the case of accidental deletions and human error.
Read more about this backend in the Terraform docs: https://developer.hashicorp.com/terraform/language/settings/backends/cos
Initializer
using HashiCorp.Cdktf;
new CosBackendConfig {
string Bucket,
bool Accelerate = null,
string Acl = null,
CosBackendAssumeRole AssumeRole = null,
string Domain = null,
bool Encrypt = null,
string Endpoint = null,
string Key = null,
string Prefix = null,
string Region = null,
string SecretId = null,
string SecretKey = null,
string SecurityToken = null
};
Properties
Name | Type | Description |
---|---|---|
Bucket | string | (Required) The name of the COS bucket. |
Accelerate | bool | (Optional) Whether to enable global Acceleration. |
Acl | string | (Optional) Object ACL to be applied to the state file, allows private and public-read. |
AssumeRole | CosBackendAssumeRole | (Optional) The assume_role block. |
Domain | string | (Optional) The root domain of the API request. |
Encrypt | bool | (Optional) Whether to enable server side encryption of the state file. |
Endpoint | string | (Optional) The Custom Endpoint for the COS backend. |
Key | string | (Optional) The path for saving the state file in bucket. |
Prefix | string | (Optional) The directory for saving the state file in bucket. |
Region | string | (Optional) The region of the COS bucket. |
SecretId | string | (Optional) Secret id of Tencent Cloud. |
SecretKey | string | (Optional) Secret key of Tencent Cloud. |
SecurityToken | string | (Optional) TencentCloud Security Token of temporary access credentials. |
Bucket
Required
public string Bucket { get; set; }
- Type: string
(Required) The name of the COS bucket.
You shall manually create it first.
Accelerate
Optional
public bool Accelerate { get; set; }
- Type: bool
(Optional) Whether to enable global Acceleration.
Defaults to false.
Acl
Optional
public string Acl { get; set; }
- Type: string
(Optional) Object ACL to be applied to the state file, allows private and public-read.
Defaults to private.
AssumeRole
Optional
public CosBackendAssumeRole AssumeRole { get; set; }
- Type: CosBackendAssumeRole
(Optional) The assume_role block.
If provided, terraform will attempt to assume this role using the supplied credentials.
Domain
Optional
public string Domain { get; set; }
- Type: string
(Optional) The root domain of the API request.
Defaults to tencentcloudapi.com. It supports the environment variable TENCENTCLOUD_DOMAIN.
Encrypt
Optional
public bool Encrypt { get; set; }
- Type: bool
(Optional) Whether to enable server side encryption of the state file.
If it is true, COS will use 'AES256' encryption algorithm to encrypt state file.
Endpoint
Optional
public string Endpoint { get; set; }
- Type: string
(Optional) The Custom Endpoint for the COS backend.
It supports the environment variable TENCENTCLOUD_ENDPOINT.
Key
Optional
public string Key { get; set; }
- Type: string
(Optional) The path for saving the state file in bucket.
Defaults to terraform.tfstate.
Prefix
Optional
public string Prefix { get; set; }
- Type: string
(Optional) The directory for saving the state file in bucket.
Default to "env:".
Region
Optional
public string Region { get; set; }
- Type: string
(Optional) The region of the COS bucket.
It supports environment variables TENCENTCLOUD_REGION.
SecretId
Optional
public string SecretId { get; set; }
- Type: string
(Optional) Secret id of Tencent Cloud.
It supports environment variables TENCENTCLOUD_SECRET_ID.
SecretKey
Optional
public string SecretKey { get; set; }
- Type: string
(Optional) Secret key of Tencent Cloud.
It supports environment variables TENCENTCLOUD_SECRET_KEY.
SecurityToken
Optional
public string SecurityToken { get; set; }
- Type: string
(Optional) TencentCloud Security Token of temporary access credentials.
It supports environment variables TENCENTCLOUD_SECURITY_TOKEN.
DataConfig
Initializer
using HashiCorp.Cdktf;
new DataConfig {
object Connection = null,
object Count = null,
ITerraformDependable[] DependsOn = null,
ITerraformIterator ForEach = null,
TerraformResourceLifecycle Lifecycle = null,
TerraformProvider Provider = null,
object[] Provisioners = null,
System.Collections.Generic.IDictionary< string, object > Input = null,
System.Collections.Generic.IDictionary< string, object > TriggersReplace = null
};
Properties
Name | Type | Description |
---|---|---|
Connection | object | No description. |
Count | object | No description. |
DependsOn | ITerraformDependable[] | No description. |
ForEach | ITerraformIterator | No description. |
Lifecycle | TerraformResourceLifecycle | No description. |
Provider | TerraformProvider | No description. |
Provisioners | object[] | No description. |
Input | System.Collections.Generic.IDictionary< string, object > | (Optional) A value which will be stored in the instance state, and reflected in the output attribute after apply. |
TriggersReplace | System.Collections.Generic.IDictionary< string, object > | (Optional) A value which is stored in the instance state, and will force replacement when the value changes. |
Connection
Optional
public object Connection { get; set; }
- Type: object
Count
Optional
public object Count { get; set; }
- Type: object
DependsOn
Optional
public ITerraformDependable[] DependsOn { get; set; }
- Type: ITerraformDependable[]
ForEach
Optional
public ITerraformIterator ForEach { get; set; }
- Type: ITerraformIterator
Lifecycle
Optional
public TerraformResourceLifecycle Lifecycle { get; set; }
Provider
Optional
public TerraformProvider Provider { get; set; }
- Type: TerraformProvider
Provisioners
Optional
public object[] Provisioners { get; set; }
- Type: object[]
Input
Optional
public System.Collections.Generic.IDictionary< string, object > Input { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
(Optional) A value which will be stored in the instance state, and reflected in the output attribute after apply.
https://developer.hashicorp.com/terraform/language/resources/terraform-data#input
TriggersReplace
Optional
public System.Collections.Generic.IDictionary< string, object > TriggersReplace { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
(Optional) A value which is stored in the instance state, and will force replacement when the value changes.
https://developer.hashicorp.com/terraform/language/resources/terraform-data#triggers_replace
DataTerraformRemoteStateAzurermConfig
Initializer
using HashiCorp.Cdktf;
new DataTerraformRemoteStateAzurermConfig {
System.Collections.Generic.IDictionary< string, object > Defaults = null,
string Workspace = null,
string ContainerName,
string Key,
string StorageAccountName,
string AccessKey = null,
string ClientCertificatePassword = null,
string ClientCertificatePath = null,
string ClientId = null,
string ClientSecret = null,
string Endpoint = null,
string Environment = null,
string MetadataHost = null,
string MsiEndpoint = null,
string OidcRequestToken = null,
string OidcRequestUrl = null,
string OidcToken = null,
string OidcTokenFilePath = null,
string ResourceGroupName = null,
string SasToken = null,
bool Snapshot = null,
string SubscriptionId = null,
string TenantId = null,
bool UseAzureadAuth = null,
bool UseMicrosoftGraph = null,
bool UseMsi = null,
bool UseOidc = null
};
Properties
Name | Type | Description |
---|---|---|
Defaults | System.Collections.Generic.IDictionary< string, object > | No description. |
Workspace | string | No description. |
ContainerName | string | (Required) The Name of the Storage Container within the Storage Account. |
Key | string | (Required) The name of the Blob used to retrieve/store Terraform's State file inside the Storage Container. |
StorageAccountName | string | (Required) The Name of the Storage Account. |
AccessKey | string | access_key - (Optional) The Access Key used to access the Blob Storage Account. |
ClientCertificatePassword | string | (Optional) The password associated with the Client Certificate specified in client_certificate_path. |
ClientCertificatePath | string | (Optional) The path to the PFX file used as the Client Certificate when authenticating as a Service Principal. |
ClientId | string | (Optional) The Client ID of the Service Principal. |
ClientSecret | string | (Optional) The Client Secret of the Service Principal. |
Endpoint | string | (Optional) The Custom Endpoint for Azure Resource Manager. This can also be sourced from the ARM_ENDPOINT environment variable. |
Environment | string | (Optional) The Azure Environment which should be used. |
MetadataHost | string | (Optional) The Hostname of the Azure Metadata Service (for example management.azure.com), used to obtain the Cloud Environment when using a Custom Azure Environment. This can also be sourced from the ARM_METADATA_HOSTNAME Environment Variable.). |
MsiEndpoint | string | (Optional) The path to a custom Managed Service Identity endpoint which is automatically determined if not specified. |
OidcRequestToken | string | (Optional) The bearer token for the request to the OIDC provider. |
OidcRequestUrl | string | (Optional) The URL for the OIDC provider from which to request an ID token. |
OidcToken | string | (Optional) The ID token when authenticating using OpenID Connect (OIDC). |
OidcTokenFilePath | string | (Optional) The path to a file containing an ID token when authenticating using OpenID Connect (OIDC). |
ResourceGroupName | string | (Required) The Name of the Resource Group in which the Storage Account exists. |
SasToken | string | (Optional) The SAS Token used to access the Blob Storage Account. |
Snapshot | bool | (Optional) Should the Blob used to store the Terraform Statefile be snapshotted before use? |
SubscriptionId | string | (Optional) The Subscription ID in which the Storage Account exists. |
TenantId | string | (Optional) The Tenant ID in which the Subscription exists. |
UseAzureadAuth | bool | (Optional) Should AzureAD Authentication be used to access the Blob Storage Account. |
UseMicrosoftGraph | bool | (Optional) Should MSAL be used for authentication instead of ADAL, and should Microsoft Graph be used instead of Azure Active Directory Graph? |
UseMsi | bool | (Optional) Should Managed Service Identity authentication be used? |
UseOidc | bool | (Optional) Should OIDC authentication be used? This can also be sourced from the ARM_USE_OIDC environment variable. |
Defaults
Optional
public System.Collections.Generic.IDictionary< string, object > Defaults { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
Workspace
Optional
public string Workspace { get; set; }
- Type: string
ContainerName
Required
public string ContainerName { get; set; }
- Type: string
(Required) The Name of the Storage Container within the Storage Account.
Key
Required
public string Key { get; set; }
- Type: string
(Required) The name of the Blob used to retrieve/store Terraform's State file inside the Storage Container.
StorageAccountName
Required
public string StorageAccountName { get; set; }
- Type: string
(Required) The Name of the Storage Account.
AccessKey
Optional
public string AccessKey { get; set; }
- Type: string
access_key - (Optional) The Access Key used to access the Blob Storage Account.
This can also be sourced from the ARM_ACCESS_KEY environment variable.
ClientCertificatePassword
Optional
public string ClientCertificatePassword { get; set; }
- Type: string
(Optional) The password associated with the Client Certificate specified in client_certificate_path.
This can also be sourced from the ARM_CLIENT_CERTIFICATE_PASSWORD environment variable.
ClientCertificatePath
Optional
public string ClientCertificatePath { get; set; }
- Type: string
(Optional) The path to the PFX file used as the Client Certificate when authenticating as a Service Principal.
This can also be sourced from the ARM_CLIENT_CERTIFICATE_PATH environment variable.
ClientId
Optional
public string ClientId { get; set; }
- Type: string
(Optional) The Client ID of the Service Principal.
This can also be sourced from the ARM_CLIENT_ID environment variable.
ClientSecret
Optional
public string ClientSecret { get; set; }
- Type: string
(Optional) The Client Secret of the Service Principal.
This can also be sourced from the ARM_CLIENT_SECRET environment variable.
Endpoint
Optional
public string Endpoint { get; set; }
- Type: string
(Optional) The Custom Endpoint for Azure Resource Manager. This can also be sourced from the ARM_ENDPOINT environment variable.
NOTE: An endpoint should only be configured when using Azure Stack.
Environment
Optional
public string Environment { get; set; }
- Type: string
(Optional) The Azure Environment which should be used.
This can also be sourced from the ARM_ENVIRONMENT environment variable. Possible values are public, china, german, stack and usgovernment. Defaults to public.
MetadataHost
Optional
public string MetadataHost { get; set; }
- Type: string
(Optional) The Hostname of the Azure Metadata Service (for example management.azure.com), used to obtain the Cloud Environment when using a Custom Azure Environment. This can also be sourced from the ARM_METADATA_HOSTNAME Environment Variable.).
MsiEndpoint
Optional
public string MsiEndpoint { get; set; }
- Type: string
(Optional) The path to a custom Managed Service Identity endpoint which is automatically determined if not specified.
This can also be sourced from the ARM_MSI_ENDPOINT environment variable.
OidcRequestToken
Optional
public string OidcRequestToken { get; set; }
- Type: string
(Optional) The bearer token for the request to the OIDC provider.
This can also be sourced from the ARM_OIDC_REQUEST_TOKEN or ACTIONS_ID_TOKEN_REQUEST_TOKEN environment variables.
OidcRequestUrl
Optional
public string OidcRequestUrl { get; set; }
- Type: string
(Optional) The URL for the OIDC provider from which to request an ID token.
This can also be sourced from the ARM_OIDC_REQUEST_URL or ACTIONS_ID_TOKEN_REQUEST_URL environment variables.
OidcToken
Optional
public string OidcToken { get; set; }
- Type: string
(Optional) The ID token when authenticating using OpenID Connect (OIDC).
This can also be sourced from the ARM_OIDC_TOKEN environment variable.
OidcTokenFilePath
Optional
public string OidcTokenFilePath { get; set; }
- Type: string
(Optional) The path to a file containing an ID token when authenticating using OpenID Connect (OIDC).
This can also be sourced from the ARM_OIDC_TOKEN_FILE_PATH environment variable.
ResourceGroupName
Optional
public string ResourceGroupName { get; set; }
- Type: string
(Required) The Name of the Resource Group in which the Storage Account exists.
SasToken
Optional
public string SasToken { get; set; }
- Type: string
(Optional) The SAS Token used to access the Blob Storage Account.
This can also be sourced from the ARM_SAS_TOKEN environment variable.
Snapshot
Optional
public bool Snapshot { get; set; }
- Type: bool
(Optional) Should the Blob used to store the Terraform Statefile be snapshotted before use?
Defaults to false. This value can also be sourced from the ARM_SNAPSHOT environment variable.
SubscriptionId
Optional
public string SubscriptionId { get; set; }
- Type: string
(Optional) The Subscription ID in which the Storage Account exists.
This can also be sourced from the ARM_SUBSCRIPTION_ID environment variable.
TenantId
Optional
public string TenantId { get; set; }
- Type: string
(Optional) The Tenant ID in which the Subscription exists.
This can also be sourced from the ARM_TENANT_ID environment variable.
UseAzureadAuth
Optional
public bool UseAzureadAuth { get; set; }
- Type: bool
(Optional) Should AzureAD Authentication be used to access the Blob Storage Account.
This can also be sourced from the ARM_USE_AZUREAD environment variable.
Note: When using AzureAD for Authentication to Storage you also need to ensure the Storage Blob Data Owner role is assigned.
UseMicrosoftGraph
Optional
public bool UseMicrosoftGraph { get; set; }
- Type: bool
(Optional) Should MSAL be used for authentication instead of ADAL, and should Microsoft Graph be used instead of Azure Active Directory Graph?
Defaults to true.
Note: In Terraform 1.2 the Azure Backend uses MSAL (and Microsoft Graph) rather than ADAL (and Azure Active Directory Graph) for authentication by default - you can disable this by setting use_microsoft_graph to false. This setting will be removed in Terraform 1.3, due to Microsoft's deprecation of ADAL.
UseMsi
Optional
public bool UseMsi { get; set; }
- Type: bool
(Optional) Should Managed Service Identity authentication be used?
This can also be sourced from the ARM_USE_MSI environment variable.
UseOidc
Optional
public bool UseOidc { get; set; }
- Type: bool
(Optional) Should OIDC authentication be used? This can also be sourced from the ARM_USE_OIDC environment variable.
Note: When using OIDC for authentication, use_microsoft_graph must be set to true (which is the default).
DataTerraformRemoteStateConfig
Initializer
using HashiCorp.Cdktf;
new DataTerraformRemoteStateConfig {
System.Collections.Generic.IDictionary< string, object > Defaults = null,
string Workspace = null
};
Properties
Name | Type | Description |
---|---|---|
Defaults | System.Collections.Generic.IDictionary< string, object > | No description. |
Workspace | string | No description. |
Defaults
Optional
public System.Collections.Generic.IDictionary< string, object > Defaults { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
Workspace
Optional
public string Workspace { get; set; }
- Type: string
DataTerraformRemoteStateConsulConfig
Initializer
using HashiCorp.Cdktf;
new DataTerraformRemoteStateConsulConfig {
System.Collections.Generic.IDictionary< string, object > Defaults = null,
string Workspace = null,
string AccessToken,
string Path,
string Address = null,
string CaFile = null,
string CertFile = null,
string Datacenter = null,
bool Gzip = null,
string HttpAuth = null,
string KeyFile = null,
bool Lock = null,
string Scheme = null
};
Properties
Name | Type | Description |
---|---|---|
Defaults | System.Collections.Generic.IDictionary< string, object > | No description. |
Workspace | string | No description. |
AccessToken | string | (Required) Access token. |
Path | string | (Required) Path in the Consul KV store. |
Address | string | (Optional) DNS name and port of your Consul endpoint specified in the format dnsname:port. |
CaFile | string | (Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate. |
CertFile | string | (Optional) A path to a PEM-encoded certificate provided to the remote agent; |
Datacenter | string | (Optional) The datacenter to use. |
Gzip | bool | (Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed. |
HttpAuth | string | (Optional) HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either user or user:pass. |
KeyFile | string | (Optional) A path to a PEM-encoded private key, required if cert_file is specified. |
Lock | bool | (Optional) false to disable locking. |
Scheme | string | (Optional) Specifies what protocol to use when talking to the given address,either http or https. |
Defaults
Optional
public System.Collections.Generic.IDictionary< string, object > Defaults { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
Workspace
Optional
public string Workspace { get; set; }
- Type: string
AccessToken
Required
public string AccessToken { get; set; }
- Type: string
(Required) Access token.
Path
Required
public string Path { get; set; }
- Type: string
(Required) Path in the Consul KV store.
Address
Optional
public string Address { get; set; }
- Type: string
(Optional) DNS name and port of your Consul endpoint specified in the format dnsname:port.
Defaults to the local agent HTTP listener.
CaFile
Optional
public string CaFile { get; set; }
- Type: string
(Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.
CertFile
Optional
public string CertFile { get; set; }
- Type: string
(Optional) A path to a PEM-encoded certificate provided to the remote agent;
requires use of key_file.
Datacenter
Optional
public string Datacenter { get; set; }
- Type: string
(Optional) The datacenter to use.
Defaults to that of the agent.
Gzip
Optional
public bool Gzip { get; set; }
- Type: bool
(Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed.
HttpAuth
Optional
public string HttpAuth { get; set; }
- Type: string
(Optional) HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either user or user:pass.
KeyFile
Optional
public string KeyFile { get; set; }
- Type: string
(Optional) A path to a PEM-encoded private key, required if cert_file is specified.
Lock
Optional
public bool Lock { get; set; }
- Type: bool
(Optional) false to disable locking.
This defaults to true, but will require session permissions with Consul and at least kv write permissions on $path/.lock to perform locking.
Scheme
Optional
public string Scheme { get; set; }
- Type: string
(Optional) Specifies what protocol to use when talking to the given address,either http or https.
SSL support can also be triggered by setting then environment variable CONSUL_HTTP_SSL to true.
DataTerraformRemoteStateCosConfig
Initializer
using HashiCorp.Cdktf;
new DataTerraformRemoteStateCosConfig {
System.Collections.Generic.IDictionary< string, object > Defaults = null,
string Workspace = null,
string Bucket,
bool Accelerate = null,
string Acl = null,
CosBackendAssumeRole AssumeRole = null,
string Domain = null,
bool Encrypt = null,
string Endpoint = null,
string Key = null,
string Prefix = null,
string Region = null,
string SecretId = null,
string SecretKey = null,
string SecurityToken = null
};
Properties
Name | Type | Description |
---|---|---|
Defaults | System.Collections.Generic.IDictionary< string, object > | No description. |
Workspace | string | No description. |
Bucket | string | (Required) The name of the COS bucket. |
Accelerate | bool | (Optional) Whether to enable global Acceleration. |
Acl | string | (Optional) Object ACL to be applied to the state file, allows private and public-read. |
AssumeRole | CosBackendAssumeRole | (Optional) The assume_role block. |
Domain | string | (Optional) The root domain of the API request. |
Encrypt | bool | (Optional) Whether to enable server side encryption of the state file. |
Endpoint | string | (Optional) The Custom Endpoint for the COS backend. |
Key | string | (Optional) The path for saving the state file in bucket. |
Prefix | string | (Optional) The directory for saving the state file in bucket. |
Region | string | (Optional) The region of the COS bucket. |
SecretId | string | (Optional) Secret id of Tencent Cloud. |
SecretKey | string | (Optional) Secret key of Tencent Cloud. |
SecurityToken | string | (Optional) TencentCloud Security Token of temporary access credentials. |
Defaults
Optional
public System.Collections.Generic.IDictionary< string, object > Defaults { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
Workspace
Optional
public string Workspace { get; set; }
- Type: string
Bucket
Required
public string Bucket { get; set; }
- Type: string
(Required) The name of the COS bucket.
You shall manually create it first.
Accelerate
Optional
public bool Accelerate { get; set; }
- Type: bool
(Optional) Whether to enable global Acceleration.
Defaults to false.
Acl
Optional
public string Acl { get; set; }
- Type: string
(Optional) Object ACL to be applied to the state file, allows private and public-read.
Defaults to private.
AssumeRole
Optional
public CosBackendAssumeRole AssumeRole { get; set; }
- Type: CosBackendAssumeRole
(Optional) The assume_role block.
If provided, terraform will attempt to assume this role using the supplied credentials.
Domain
Optional
public string Domain { get; set; }
- Type: string
(Optional) The root domain of the API request.
Defaults to tencentcloudapi.com. It supports the environment variable TENCENTCLOUD_DOMAIN.
Encrypt
Optional
public bool Encrypt { get; set; }
- Type: bool
(Optional) Whether to enable server side encryption of the state file.
If it is true, COS will use 'AES256' encryption algorithm to encrypt state file.
Endpoint
Optional
public string Endpoint { get; set; }
- Type: string
(Optional) The Custom Endpoint for the COS backend.
It supports the environment variable TENCENTCLOUD_ENDPOINT.
Key
Optional
public string Key { get; set; }
- Type: string
(Optional) The path for saving the state file in bucket.
Defaults to terraform.tfstate.
Prefix
Optional
public string Prefix { get; set; }
- Type: string
(Optional) The directory for saving the state file in bucket.
Default to "env:".
Region
Optional
public string Region { get; set; }
- Type: string
(Optional) The region of the COS bucket.
It supports environment variables TENCENTCLOUD_REGION.
SecretId
Optional
public string SecretId { get; set; }
- Type: string
(Optional) Secret id of Tencent Cloud.
It supports environment variables TENCENTCLOUD_SECRET_ID.
SecretKey
Optional
public string SecretKey { get; set; }
- Type: string
(Optional) Secret key of Tencent Cloud.
It supports environment variables TENCENTCLOUD_SECRET_KEY.
SecurityToken
Optional
public string SecurityToken { get; set; }
- Type: string
(Optional) TencentCloud Security Token of temporary access credentials.
It supports environment variables TENCENTCLOUD_SECURITY_TOKEN.
DataTerraformRemoteStateGcsConfig
Initializer
using HashiCorp.Cdktf;
new DataTerraformRemoteStateGcsConfig {
System.Collections.Generic.IDictionary< string, object > Defaults = null,
string Workspace = null,
string Bucket,
string AccessToken = null,
string Credentials = null,
string EncryptionKey = null,
string ImpersonateServiceAccount = null,
string[] ImpersonateServiceAccountDelegates = null,
string KmsEncryptionKey = null,
string Prefix = null,
string StoreageCustomEndpoint = null
};
Properties
Name | Type | Description |
---|---|---|
Defaults | System.Collections.Generic.IDictionary< string, object > | No description. |
Workspace | string | No description. |
Bucket | string | (Required) The name of the GCS bucket. |
AccessToken | string | (Optional) A temporary [OAuth 2.0 access token] obtained from the Google Authorization server, i.e. the Authorization: Bearer token used to authenticate HTTP requests to GCP APIs. This is an alternative to credentials. If both are specified, access_token will be used over the credentials field. |
Credentials | string | (Optional) Local path to Google Cloud Platform account credentials in JSON format. |
EncryptionKey | string | (Optional) A 32 byte base64 encoded 'customer supplied encryption key' used to encrypt all state. |
ImpersonateServiceAccount | string | (Optional) The service account to impersonate for accessing the State Bucket. |
ImpersonateServiceAccountDelegates | string[] | (Optional) The delegation chain for an impersonating a service account. |
KmsEncryptionKey | string | (Optional) A Cloud KMS key ('customer-managed encryption key') used when reading and writing state files in the bucket. |
Prefix | string | (Optional) GCS prefix inside the bucket. |
StoreageCustomEndpoint | string | (Optional) A URL containing three parts: the protocol, the DNS name pointing to a Private Service Connect endpoint, and the path for the Cloud Storage API (/storage/v1/b). |
Defaults
Optional
public System.Collections.Generic.IDictionary< string, object > Defaults { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
Workspace
Optional
public string Workspace { get; set; }
- Type: string
Bucket
Required
public string Bucket { get; set; }
- Type: string
(Required) The name of the GCS bucket.
This name must be globally unique.
AccessToken
Optional
public string AccessToken { get; set; }
- Type: string
(Optional) A temporary [OAuth 2.0 access token] obtained from the Google Authorization server, i.e. the Authorization: Bearer token used to authenticate HTTP requests to GCP APIs. This is an alternative to credentials. If both are specified, access_token will be used over the credentials field.
Credentials
Optional
public string Credentials { get; set; }
- Type: string
(Optional) Local path to Google Cloud Platform account credentials in JSON format.
If unset, Google Application Default Credentials are used. The provided credentials must have Storage Object Admin role on the bucket.
Warning: if using the Google Cloud Platform provider as well, it will also pick up the GOOGLE_CREDENTIALS environment variable.
EncryptionKey
Optional
public string EncryptionKey { get; set; }
- Type: string
(Optional) A 32 byte base64 encoded 'customer supplied encryption key' used to encrypt all state.
ImpersonateServiceAccount
Optional
public string ImpersonateServiceAccount { get; set; }
- Type: string
(Optional) The service account to impersonate for accessing the State Bucket.
You must have roles/iam.serviceAccountTokenCreator role on that account for the impersonation to succeed. If you are using a delegation chain, you can specify that using the impersonate_service_account_delegates field. Alternatively, this can be specified using the GOOGLE_IMPERSONATE_SERVICE_ACCOUNT environment variable.
ImpersonateServiceAccountDelegates
Optional
public string[] ImpersonateServiceAccountDelegates { get; set; }
- Type: string[]
(Optional) The delegation chain for an impersonating a service account.
KmsEncryptionKey
Optional
public string KmsEncryptionKey { get; set; }
- Type: string
(Optional) A Cloud KMS key ('customer-managed encryption key') used when reading and writing state files in the bucket.
Format should be projects/{{project}}/locations/{{location}}/keyRings/{{keyRing}}/cryptoKeys/{{name}}. For more information, including IAM requirements, see {@link https://cloud.google.com/storage/docs/encryption/customer-managed-keys Customer-managed Encryption Keys}.
Prefix
Optional
public string Prefix { get; set; }
- Type: string
(Optional) GCS prefix inside the bucket.
Named states for workspaces are stored in an object called < prefix >/< name >.tfstate.
StoreageCustomEndpoint
Optional
public string StoreageCustomEndpoint { get; set; }
- Type: string
(Optional) A URL containing three parts: the protocol, the DNS name pointing to a Private Service Connect endpoint, and the path for the Cloud Storage API (/storage/v1/b).
{@link https://developer.hashicorp.com/terraform/language/settings/backends/gcs#storage_custom_endpoint See here for more details}
DataTerraformRemoteStateHttpConfig
Initializer
using HashiCorp.Cdktf;
new DataTerraformRemoteStateHttpConfig {
System.Collections.Generic.IDictionary< string, object > Defaults = null,
string Workspace = null,
string Address,
string ClientCaCertificatePem = null,
string ClientCertificatePem = null,
string ClientPrivateKeyPem = null,
string LockAddress = null,
string LockMethod = null,
string Password = null,
double RetryMax = null,
double RetryWaitMax = null,
double RetryWaitMin = null,
bool SkipCertVerification = null,
string UnlockAddress = null,
string UnlockMethod = null,
string UpdateMethod = null,
string Username = null
};
Properties
Name | Type | Description |
---|---|---|
Defaults | System.Collections.Generic.IDictionary< string, object > | No description. |
Workspace | string | No description. |
Address | string | (Required) The address of the REST endpoint. |
ClientCaCertificatePem | string | (Optional) A PEM-encoded CA certificate chain used by the client to verify server certificates during TLS authentication. |
ClientCertificatePem | string | (Optional) A PEM-encoded certificate used by the server to verify the client during mutual TLS (mTLS) authentication. |
ClientPrivateKeyPem | string | (Optional) A PEM-encoded private key, required if client_certificate_pem is specified. |
LockAddress | string | (Optional) The address of the lock REST endpoint. |
LockMethod | string | (Optional) The HTTP method to use when locking. |
Password | string | (Optional) The password for HTTP basic authentication. |
RetryMax | double | (Optional) The number of HTTP request retries. |
RetryWaitMax | double | (Optional) The maximum time in seconds to wait between HTTP request attempts. |
RetryWaitMin | double | (Optional) The minimum time in seconds to wait between HTTP request attempts. |
SkipCertVerification | bool | (Optional) Whether to skip TLS verification. |
UnlockAddress | string | (Optional) The address of the unlock REST endpoint. |
UnlockMethod | string | (Optional) The HTTP method to use when unlocking. |
UpdateMethod | string | (Optional) HTTP method to use when updating state. |
Username | string | (Optional) The username for HTTP basic authentication. |
Defaults
Optional
public System.Collections.Generic.IDictionary< string, object > Defaults { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
Workspace
Optional
public string Workspace { get; set; }
- Type: string
Address
Required
public string Address { get; set; }
- Type: string
(Required) The address of the REST endpoint.
ClientCaCertificatePem
Optional
public string ClientCaCertificatePem { get; set; }
- Type: string
(Optional) A PEM-encoded CA certificate chain used by the client to verify server certificates during TLS authentication.
ClientCertificatePem
Optional
public string ClientCertificatePem { get; set; }
- Type: string
(Optional) A PEM-encoded certificate used by the server to verify the client during mutual TLS (mTLS) authentication.
ClientPrivateKeyPem
Optional
public string ClientPrivateKeyPem { get; set; }
- Type: string
(Optional) A PEM-encoded private key, required if client_certificate_pem is specified.
LockAddress
Optional
public string LockAddress { get; set; }
- Type: string
(Optional) The address of the lock REST endpoint.
Defaults to disabled.
LockMethod
Optional
public string LockMethod { get; set; }
- Type: string
(Optional) The HTTP method to use when locking.
Defaults to LOCK.
Password
Optional
public string Password { get; set; }
- Type: string
(Optional) The password for HTTP basic authentication.
RetryMax
Optional
public double RetryMax { get; set; }
- Type: double
(Optional) The number of HTTP request retries.
Defaults to 2.
RetryWaitMax
Optional
public double RetryWaitMax { get; set; }
- Type: double
(Optional) The maximum time in seconds to wait between HTTP request attempts.
Defaults to 30.
RetryWaitMin
Optional
public double RetryWaitMin { get; set; }
- Type: double
(Optional) The minimum time in seconds to wait between HTTP request attempts.
Defaults to 1.
SkipCertVerification
Optional
public bool SkipCertVerification { get; set; }
- Type: bool
(Optional) Whether to skip TLS verification.
Defaults to false.
UnlockAddress
Optional
public string UnlockAddress { get; set; }
- Type: string
(Optional) The address of the unlock REST endpoint.
Defaults to disabled.
UnlockMethod
Optional
public string UnlockMethod { get; set; }
- Type: string
(Optional) The HTTP method to use when unlocking.
Defaults to UNLOCK.
UpdateMethod
Optional
public string UpdateMethod { get; set; }
- Type: string
(Optional) HTTP method to use when updating state.
Defaults to POST.
Username
Optional
public string Username { get; set; }
- Type: string
(Optional) The username for HTTP basic authentication.
DataTerraformRemoteStateLocalConfig
Initializer
using HashiCorp.Cdktf;
new DataTerraformRemoteStateLocalConfig {
System.Collections.Generic.IDictionary< string, object > Defaults = null,
string Workspace = null,
string Path = null,
string WorkspaceDir = null
};
Properties
Name | Type | Description |
---|---|---|
Defaults | System.Collections.Generic.IDictionary< string, object > | No description. |
Workspace | string | No description. |
Path | string | Path where the state file is stored. |
WorkspaceDir | string | (Optional) The path to non-default workspaces. |
Defaults
Optional
public System.Collections.Generic.IDictionary< string, object > Defaults { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
Workspace
Optional
public string Workspace { get; set; }
- Type: string
Path
Optional
public string Path { get; set; }
- Type: string
- Default: defaults to terraform.${stackId}.tfstate
Path where the state file is stored.
WorkspaceDir
Optional
public string WorkspaceDir { get; set; }
- Type: string
(Optional) The path to non-default workspaces.
DataTerraformRemoteStateOssConfig
Initializer
using HashiCorp.Cdktf;
new DataTerraformRemoteStateOssConfig {
System.Collections.Generic.IDictionary< string, object > Defaults = null,
string Workspace = null,
string Bucket,
string AccessKey = null,
string Acl = null,
OssAssumeRole AssumeRole = null,
string AssumeRolePolicy = null,
string AssumeRoleRoleArn = null,
double AssumeRoleSessionExpiration = null,
string AssumeRoleSessionName = null,
string EcsRoleName = null,
bool Encrypt = null,
string Endpoint = null,
string Key = null,
string Prefix = null,
string Profile = null,
string Region = null,
string SecretKey = null,
string SecurityToken = null,
string SharedCredentialsFile = null,
string StsEndpoint = null,
string TablestoreEndpoint = null,
string TablestoreTable = null
};
Properties
Name | Type | Description |
---|---|---|
Defaults | System.Collections.Generic.IDictionary< string, object > | No description. |
Workspace | string | No description. |
Bucket | string | (Required) The name of the OSS bucket. |
AccessKey | string | (Optional) Alibaba Cloud access key. |
Acl | string | (Optional) Object ACL to be applied to the state file. |
AssumeRole | OssAssumeRole | No description. |
AssumeRolePolicy | string | (Optional, Available in 1.1.0+) A more restrictive policy to apply to the temporary credentials. This gives you a way to further restrict the permissions for the resulting temporary security credentials. You cannot use this policy to grant permissions that exceed those of the role that is being assumed. |
AssumeRoleRoleArn | string | (Optional, Available in 1.1.0+) The ARN of the role to assume. If ARN is set to an empty string, it does not perform role switching. It supports the environment variable ALICLOUD_ASSUME_ROLE_ARN. Terraform executes configuration on account with provided credentials. |
AssumeRoleSessionExpiration | double | (Optional, Available in 1.1.0+) The time after which the established session for assuming role expires. Valid value range: [900-3600] seconds. Default to 3600 (in this case Alibaba Cloud uses its own default value). It supports environment variable ALICLOUD_ASSUME_ROLE_SESSION_EXPIRATION. |
AssumeRoleSessionName | string | (Optional, Available in 1.1.0+) The session name to use when assuming the role. If omitted, 'terraform' is passed to the AssumeRole call as session name. It supports environment variable ALICLOUD_ASSUME_ROLE_SESSION_NAME. |
EcsRoleName | string | (Optional, Available in 0.12.14+) The RAM Role Name attached on a ECS instance for API operations. You can retrieve this from the 'Access Control' section of the Alibaba Cloud console. |
Encrypt | bool | (Optional) Whether to enable server side encryption of the state file. |
Endpoint | string | (Optional) A custom endpoint for the OSS API. |
Key | string | (Optional) The name of the state file. |
Prefix | string | (Optional) The path directory of the state file will be stored. |
Profile | string | (Optional, Available in 0.12.8+) This is the Alibaba Cloud profile name as set in the shared credentials file. It can also be sourced from the ALICLOUD_PROFILE environment variable. |
Region | string | (Optional) The region of the OSS bucket. |
SecretKey | string | (Optional) Alibaba Cloud secret access key. |
SecurityToken | string | (Optional) STS access token. |
SharedCredentialsFile | string | (Optional, Available in 0.12.8+) This is the path to the shared credentials file. It can also be sourced from the ALICLOUD_SHARED_CREDENTIALS_FILE environment variable. If this is not set and a profile is specified, ~/.aliyun/config.json will be used. |
StsEndpoint | string | (Optional, Available in 1.0.11+) Custom endpoint for the AliCloud Security Token Service (STS) API. It supports environment variable ALICLOUD_STS_ENDPOINT. |
TablestoreEndpoint | string | (Optional) A custom endpoint for the TableStore API. |
TablestoreTable | string | (Optional) A TableStore table for state locking and consistency. |
Defaults
Optional
public System.Collections.Generic.IDictionary< string, object > Defaults { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
Workspace
Optional
public string Workspace { get; set; }
- Type: string
Bucket
Required
public string Bucket { get; set; }
- Type: string
(Required) The name of the OSS bucket.
AccessKey
Optional
public string AccessKey { get; set; }
- Type: string
(Optional) Alibaba Cloud access key.
It supports environment variables ALICLOUD_ACCESS_KEY and ALICLOUD_ACCESS_KEY_ID.
Acl
Optional
public string Acl { get; set; }
- Type: string
(Optional) Object ACL to be applied to the state file.
AssumeRole
Optional
AssumeRole
- Deprecated: Use flattened assume role options
public OssAssumeRole AssumeRole { get; set; }
- Type: OssAssumeRole
AssumeRolePolicy
Optional
public string AssumeRolePolicy { get; set; }
- Type: string
(Optional, Available in 1.1.0+) A more restrictive policy to apply to the temporary credentials. This gives you a way to further restrict the permissions for the resulting temporary security credentials. You cannot use this policy to grant permissions that exceed those of the role that is being assumed.
AssumeRoleRoleArn
Optional
public string AssumeRoleRoleArn { get; set; }
- Type: string
(Optional, Available in 1.1.0+) The ARN of the role to assume. If ARN is set to an empty string, it does not perform role switching. It supports the environment variable ALICLOUD_ASSUME_ROLE_ARN. Terraform executes configuration on account with provided credentials.
AssumeRoleSessionExpiration
Optional
public double AssumeRoleSessionExpiration { get; set; }
- Type: double
(Optional, Available in 1.1.0+) The time after which the established session for assuming role expires. Valid value range: [900-3600] seconds. Default to 3600 (in this case Alibaba Cloud uses its own default value). It supports environment variable ALICLOUD_ASSUME_ROLE_SESSION_EXPIRATION.
AssumeRoleSessionName
Optional
public string AssumeRoleSessionName { get; set; }
- Type: string
(Optional, Available in 1.1.0+) The session name to use when assuming the role. If omitted, 'terraform' is passed to the AssumeRole call as session name. It supports environment variable ALICLOUD_ASSUME_ROLE_SESSION_NAME.
EcsRoleName
Optional
public string EcsRoleName { get; set; }
- Type: string
(Optional, Available in 0.12.14+) The RAM Role Name attached on a ECS instance for API operations. You can retrieve this from the 'Access Control' section of the Alibaba Cloud console.
Encrypt
Optional
public bool Encrypt { get; set; }
- Type: bool
(Optional) Whether to enable server side encryption of the state file.
If it is true, OSS will use 'AES256' encryption algorithm to encrypt state file.
Endpoint
Optional
public string Endpoint { get; set; }
- Type: string
(Optional) A custom endpoint for the OSS API.
It supports environment variables ALICLOUD_OSS_ENDPOINT and OSS_ENDPOINT.
Key
Optional
public string Key { get; set; }
- Type: string
(Optional) The name of the state file.
Defaults to terraform.tfstate.
Prefix
Optional
public string Prefix { get; set; }
- Type: string
(Optional) The path directory of the state file will be stored.
Default to "env:".
Profile
Optional
public string Profile { get; set; }
- Type: string
(Optional, Available in 0.12.8+) This is the Alibaba Cloud profile name as set in the shared credentials file. It can also be sourced from the ALICLOUD_PROFILE environment variable.
Region
Optional
public string Region { get; set; }
- Type: string
(Optional) The region of the OSS bucket.
It supports environment variables ALICLOUD_REGION and ALICLOUD_DEFAULT_REGION.
SecretKey
Optional
public string SecretKey { get; set; }
- Type: string
(Optional) Alibaba Cloud secret access key.
It supports environment variables ALICLOUD_SECRET_KEY and ALICLOUD_ACCESS_KEY_SECRET.
SecurityToken
Optional
public string SecurityToken { get; set; }
- Type: string
(Optional) STS access token.
It supports environment variable ALICLOUD_SECURITY_TOKEN.
SharedCredentialsFile
Optional
public string SharedCredentialsFile { get; set; }
- Type: string
(Optional, Available in 0.12.8+) This is the path to the shared credentials file. It can also be sourced from the ALICLOUD_SHARED_CREDENTIALS_FILE environment variable. If this is not set and a profile is specified, ~/.aliyun/config.json will be used.
StsEndpoint
Optional
public string StsEndpoint { get; set; }
- Type: string
(Optional, Available in 1.0.11+) Custom endpoint for the AliCloud Security Token Service (STS) API. It supports environment variable ALICLOUD_STS_ENDPOINT.
TablestoreEndpoint
Optional
public string TablestoreEndpoint { get; set; }
- Type: string
(Optional) A custom endpoint for the TableStore API.
TablestoreTable
Optional
public string TablestoreTable { get; set; }
- Type: string
(Optional) A TableStore table for state locking and consistency.
The table must have a primary key named LockID of type String.
DataTerraformRemoteStatePgConfig
Initializer
using HashiCorp.Cdktf;
new DataTerraformRemoteStatePgConfig {
System.Collections.Generic.IDictionary< string, object > Defaults = null,
string Workspace = null,
string ConnStr,
string SchemaName = null,
bool SkipIndexCreation = null,
bool SkipSchemaCreation = null,
bool SkipTableCreation = null
};
Properties
Name | Type | Description |
---|---|---|
Defaults | System.Collections.Generic.IDictionary< string, object > | No description. |
Workspace | string | No description. |
ConnStr | string | Postgres connection string; |
SchemaName | string | Name of the automatically-managed Postgres schema, default to terraform_remote_state. |
SkipIndexCreation | bool | If set to true, the Postgres index must already exist. |
SkipSchemaCreation | bool | If set to true, the Postgres schema must already exist. |
SkipTableCreation | bool | If set to true, the Postgres table must already exist. |
Defaults
Optional
public System.Collections.Generic.IDictionary< string, object > Defaults { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
Workspace
Optional
public string Workspace { get; set; }
- Type: string
ConnStr
Required
public string ConnStr { get; set; }
- Type: string
Postgres connection string;
a postgres:// URL. The PG_CONN_STR and standard libpq environment variables can also be used to indicate how to connect to the PostgreSQL database.
SchemaName
Optional
public string SchemaName { get; set; }
- Type: string
Name of the automatically-managed Postgres schema, default to terraform_remote_state.
Can also be set using the PG_SCHEMA_NAME environment variable.
SkipIndexCreation
Optional
public bool SkipIndexCreation { get; set; }
- Type: bool
If set to true, the Postgres index must already exist.
Can also be set using the PG_SKIP_INDEX_CREATION environment variable. Terraform won't try to create the index, this is useful when it has already been created by a database administrator.
SkipSchemaCreation
Optional
public bool SkipSchemaCreation { get; set; }
- Type: bool
If set to true, the Postgres schema must already exist.
Can also be set using the PG_SKIP_SCHEMA_CREATION environment variable. Terraform won't try to create the schema, this is useful when it has already been created by a database administrator.
SkipTableCreation
Optional
public bool SkipTableCreation { get; set; }
- Type: bool
If set to true, the Postgres table must already exist.
Can also be set using the PG_SKIP_TABLE_CREATION environment variable. Terraform won't try to create the table, this is useful when it has already been created by a database administrator.
DataTerraformRemoteStateRemoteConfig
Initializer
using HashiCorp.Cdktf;
new DataTerraformRemoteStateRemoteConfig {
System.Collections.Generic.IDictionary< string, object > Defaults = null,
string Workspace = null,
string Organization,
IRemoteWorkspace Workspaces,
string Hostname = null,
string Token = null
};
Properties
Name | Type | Description |
---|---|---|
Defaults | System.Collections.Generic.IDictionary< string, object > | No description. |
Workspace | string | No description. |
Organization | string | No description. |
Workspaces | IRemoteWorkspace | No description. |
Hostname | string | No description. |
Token | string | No description. |
Defaults
Optional
public System.Collections.Generic.IDictionary< string, object > Defaults { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
Workspace
Optional
public string Workspace { get; set; }
- Type: string
Organization
Required
public string Organization { get; set; }
- Type: string
Workspaces
Required
public IRemoteWorkspace Workspaces { get; set; }
- Type: IRemoteWorkspace
Hostname
Optional
public string Hostname { get; set; }
- Type: string
Token
Optional
public string Token { get; set; }
- Type: string
DataTerraformRemoteStateS3Config
Initializer
using HashiCorp.Cdktf;
new DataTerraformRemoteStateS3Config {
System.Collections.Generic.IDictionary< string, object > Defaults = null,
string Workspace = null,
string Bucket,
string Key,
string AccessKey = null,
string Acl = null,
string AllowedAccountIds = null,
S3BackendAssumeRoleConfig AssumeRole = null,
string AssumeRolePolicy = null,
string[] AssumeRolePolicyArns = null,
System.Collections.Generic.IDictionary< string, string > AssumeRoleTags = null,
string[] AssumeRoleTransitiveTagKeys = null,
S3BackendAssumeRoleWithWebIdentityConfig AssumeRoleWithWebIdentity = null,
string CustomCaBundle = null,
string DynamodbEndpoint = null,
string DynamodbTable = null,
string Ec2MetadataServiceEndpoint = null,
string Ec2MetadataServiceEndpointMode = null,
bool Encrypt = null,
string Endpoint = null,
S3BackendEndpointConfig Endpoints = null,
string ExternalId = null,
string ForbiddenAccountIds = null,
bool ForcePathStyle = null,
string HttpProxy = null,
string HttpsProxy = null,
string IamEndpoint = null,
bool Insecure = null,
string KmsKeyId = null,
double MaxRetries = null,
string NoProxy = null,
string Profile = null,
string Region = null,
string RetryMode = null,
string RoleArn = null,
string SecretKey = null,
string SessionName = null,
string[] SharedConfigFiles = null,
string SharedCredentialsFile = null,
string[] SharedCredentialsFiles = null,
bool SkipCredentialsValidation = null,
bool SkipMetadataApiCheck = null,
bool SkipRegionValidation = null,
bool SkipRequestingAccountId = null,
bool SkipS3Checksum = null,
string SseCustomerKey = null,
string StsEndpoint = null,
string StsRegion = null,
string Token = null,
bool UseLegacyWorkflow = null,
bool UsePathStyle = null,
string WorkspaceKeyPrefix = null
};
Properties
Name | Type | Description |
---|---|---|
Defaults | System.Collections.Generic.IDictionary< string, object > | No description. |
Workspace | string | No description. |
Bucket | string | Name of the S3 Bucket. |
Key | string | Path to the state file inside the S3 Bucket. |
AccessKey | string | (Optional) AWS access key. |
Acl | string | (Optional) Canned ACL to be applied to the state file. |
AllowedAccountIds | string | (Optional) List of allowed AWS account IDs to prevent potential destruction of a live environment. |
AssumeRole | S3BackendAssumeRoleConfig | Assuming an IAM Role can be configured in two ways. |
AssumeRolePolicy | string | (Optional) IAM Policy JSON describing further restricting permissions for the IAM Role being assumed. |
AssumeRolePolicyArns | string[] | (Optional) Set of Amazon Resource Names (ARNs) of IAM Policies describing further restricting permissions for the IAM Role being assumed. |
AssumeRoleTags | System.Collections.Generic.IDictionary< string, string > | (Optional) Map of assume role session tags. |
AssumeRoleTransitiveTagKeys | string[] | (Optional) Set of assume role session tag keys to pass to any subsequent sessions. |
AssumeRoleWithWebIdentity | S3BackendAssumeRoleWithWebIdentityConfig | Assume Role With Web Identity Configuration. |
CustomCaBundle | string | (Optional) File containing custom root and intermediate certificates. |
DynamodbEndpoint | string | (Optional) Custom endpoint for the AWS DynamoDB API. |
DynamodbTable | string | (Optional) Name of DynamoDB Table to use for state locking and consistency. |
Ec2MetadataServiceEndpoint | string | Optional) Custom endpoint URL for the EC2 Instance Metadata Service (IMDS) API. |
Ec2MetadataServiceEndpointMode | string | (Optional) Mode to use in communicating with the metadata service. |
Encrypt | bool | (Optional) Enable server side encryption of the state file. |
Endpoint | string | (Optional) Custom endpoint for the AWS S3 API. |
Endpoints | S3BackendEndpointConfig | (Optional) The endpoint configuration block. |
ExternalId | string | (Optional) External identifier to use when assuming the role. |
ForbiddenAccountIds | string | (Optional) List of forbidden AWS account IDs to prevent potential destruction of a live environment. |
ForcePathStyle | bool | (Optional) Enable path-style S3 URLs (https://< HOST >/< BUCKET > instead of https://< BUCKET >.< HOST >). |
HttpProxy | string | (Optional) URL of a proxy to use for HTTP requests when accessing the AWS API. |
HttpsProxy | string | (Optional) URL of a proxy to use for HTTPS requests when accessing the AWS API. |
IamEndpoint | string | (Optional) Custom endpoint for the AWS Identity and Access Management (IAM) API. |
Insecure | bool | Optional) Whether to explicitly allow the backend to perform "insecure" SSL requests. |
KmsKeyId | string | (Optional) Amazon Resource Name (ARN) of a Key Management Service (KMS) Key to use for encrypting the state. |
MaxRetries | double | (Optional) The maximum number of times an AWS API request is retried on retryable failure. |
NoProxy | string | (Optional) Comma-separated list of hosts that should not use HTTP or HTTPS proxies. |
Profile | string | (Optional) Name of AWS profile in AWS shared credentials file (e.g. ~/.aws/credentials) or AWS shared configuration file (e.g. ~/.aws/config) to use for credentials and/or configuration. This can also be sourced from the AWS_PROFILE environment variable. |
Region | string | AWS Region of the S3 Bucket and DynamoDB Table (if used). |
RetryMode | string | (Optional) Specifies how retries are attempted. |
RoleArn | string | (Optional) Amazon Resource Name (ARN) of the IAM Role to assume. |
SecretKey | string | (Optional) AWS secret access key. |
SessionName | string | (Optional) Session name to use when assuming the role. |
SharedConfigFiles | string[] | (Optional) List of paths to AWS shared configuration files. |
SharedCredentialsFile | string | (Optional) Path to the AWS shared credentials file. |
SharedCredentialsFiles | string[] | (Optional) List of paths to AWS shared credentials files. |
SkipCredentialsValidation | bool | (Optional) Skip credentials validation via the STS API. |
SkipMetadataApiCheck | bool | (Optional) Skip usage of EC2 Metadata API. |
SkipRegionValidation | bool | (Optional) Skip validation of provided region name. |
SkipRequestingAccountId | bool | (Optional) Whether to skip requesting the account ID. |
SkipS3Checksum | bool | (Optional) Do not include checksum when uploading S3 Objects. |
SseCustomerKey | string | (Optional) The key to use for encrypting state with Server-Side Encryption with Customer-Provided Keys (SSE-C). |
StsEndpoint | string | (Optional) Custom endpoint for the AWS Security Token Service (STS) API. |
StsRegion | string | (Optional) AWS region for STS. |
Token | string | (Optional) Multi-Factor Authentication (MFA) token. |
UseLegacyWorkflow | bool | (Optional) Use the legacy authentication workflow, preferring environment variables over backend configuration. |
UsePathStyle | bool | (Optional) Enable path-style S3 URLs (https://< HOST >/< BUCKET > instead of https://< BUCKET >.< HOST >). |
WorkspaceKeyPrefix | string | (Optional) Prefix applied to the state path inside the bucket. |
Defaults
Optional
public System.Collections.Generic.IDictionary< string, object > Defaults { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
Workspace
Optional
public string Workspace { get; set; }
- Type: string
Bucket
Required
public string Bucket { get; set; }
- Type: string
Name of the S3 Bucket.
Key
Required
public string Key { get; set; }
- Type: string
Path to the state file inside the S3 Bucket.
When using a non-default workspace, the state path will be /workspace_key_prefix/workspace_name/key
AccessKey
Optional
public string AccessKey { get; set; }
- Type: string
(Optional) AWS access key.
If configured, must also configure secret_key. This can also be sourced from the AWS_ACCESS_KEY_ID environment variable, AWS shared credentials file (e.g. ~/.aws/credentials), or AWS shared configuration file (e.g. ~/.aws/config).
Acl
Optional
public string Acl { get; set; }
- Type: string
(Optional) Canned ACL to be applied to the state file.
AllowedAccountIds
Optional
public string AllowedAccountIds { get; set; }
- Type: string
(Optional) List of allowed AWS account IDs to prevent potential destruction of a live environment.
Conflicts with forbidden_account_ids.
AssumeRole
Optional
public S3BackendAssumeRoleConfig AssumeRole { get; set; }
Assuming an IAM Role can be configured in two ways.
The preferred way is to use the argument assume_role, the other, which is deprecated, is with arguments at the top level.
AssumeRolePolicy
Optional
AssumeRolePolicy
- Deprecated: Use assumeRole.policy instead.
public string AssumeRolePolicy { get; set; }
- Type: string
(Optional) IAM Policy JSON describing further restricting permissions for the IAM Role being assumed.
AssumeRolePolicyArns
Optional
AssumeRolePolicyArns
- Deprecated: Use assumeRole.policyArns instead.
public string[] AssumeRolePolicyArns { get; set; }
- Type: string[]
(Optional) Set of Amazon Resource Names (ARNs) of IAM Policies describing further restricting permissions for the IAM Role being assumed.
AssumeRoleTags
Optional
AssumeRoleTags
- Deprecated: Use assumeRole.tags instead.
public System.Collections.Generic.IDictionary< string, string > AssumeRoleTags { get; set; }
- Type: System.Collections.Generic.IDictionary< string, string >
(Optional) Map of assume role session tags.
AssumeRoleTransitiveTagKeys
Optional
AssumeRoleTransitiveTagKeys
- Deprecated: Use assumeRole.transitiveTagKeys instead.
public string[] AssumeRoleTransitiveTagKeys { get; set; }
- Type: string[]
(Optional) Set of assume role session tag keys to pass to any subsequent sessions.
AssumeRoleWithWebIdentity
Optional
public S3BackendAssumeRoleWithWebIdentityConfig AssumeRoleWithWebIdentity { get; set; }
Assume Role With Web Identity Configuration.
CustomCaBundle
Optional
public string CustomCaBundle { get; set; }
- Type: string
(Optional) File containing custom root and intermediate certificates.
Can also be set using the AWS_CA_BUNDLE environment variable. Setting ca_bundle in the shared config file is not supported.
DynamodbEndpoint
Optional
DynamodbEndpoint
- Deprecated: Use endpoints.dynamodb instead
public string DynamodbEndpoint { get; set; }
- Type: string
(Optional) Custom endpoint for the AWS DynamoDB API.
This can also be sourced from the AWS_DYNAMODB_ENDPOINT environment variable.
DynamodbTable
Optional
public string DynamodbTable { get; set; }
- Type: string
(Optional) Name of DynamoDB Table to use for state locking and consistency.
The table must have a partition key named LockID with type of String. If not configured, state locking will be disabled.
Ec2MetadataServiceEndpoint
Optional
public string Ec2MetadataServiceEndpoint { get; set; }
- Type: string
Optional) Custom endpoint URL for the EC2 Instance Metadata Service (IMDS) API.
Can also be set with the AWS_EC2_METADATA_SERVICE_ENDPOINT environment variable.
Ec2MetadataServiceEndpointMode
Optional
public string Ec2MetadataServiceEndpointMode { get; set; }
- Type: string
(Optional) Mode to use in communicating with the metadata service.
Valid values are IPv4 and IPv6. Can also be set with the AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE environment variable.
Encrypt
Optional
public bool Encrypt { get; set; }
- Type: bool
(Optional) Enable server side encryption of the state file.
Endpoint
Optional
Endpoint
- Deprecated: Use endpoints.s3 instead
public string Endpoint { get; set; }
- Type: string
(Optional) Custom endpoint for the AWS S3 API.
This can also be sourced from the AWS_S3_ENDPOINT environment variable.
Endpoints
Optional
public S3BackendEndpointConfig Endpoints { get; set; }
- Type: S3BackendEndpointConfig
(Optional) The endpoint configuration block.
ExternalId
Optional
ExternalId
- Deprecated: Use assume_role.external_id instead.
public string ExternalId { get; set; }
- Type: string
(Optional) External identifier to use when assuming the role.
ForbiddenAccountIds
Optional
public string ForbiddenAccountIds { get; set; }
- Type: string
(Optional) List of forbidden AWS account IDs to prevent potential destruction of a live environment.
Conflicts with allowed_account_ids.
ForcePathStyle
Optional
ForcePathStyle
- Deprecated: Use usePathStyle instead
public bool ForcePathStyle { get; set; }
- Type: bool
(Optional) Enable path-style S3 URLs (https://< HOST >/< BUCKET > instead of https://< BUCKET >.< HOST >).
HttpProxy
Optional
public string HttpProxy { get; set; }
- Type: string
(Optional) URL of a proxy to use for HTTP requests when accessing the AWS API.
Can also be set using the HTTP_PROXY or http_proxy environment variables.
HttpsProxy
Optional
public string HttpsProxy { get; set; }
- Type: string
(Optional) URL of a proxy to use for HTTPS requests when accessing the AWS API.
Can also be set using the HTTPS_PROXY or https_proxy environment variables.
IamEndpoint
Optional
IamEndpoint
- Deprecated: Use endpoints.iam instead
public string IamEndpoint { get; set; }
- Type: string
(Optional) Custom endpoint for the AWS Identity and Access Management (IAM) API.
This can also be sourced from the AWS_IAM_ENDPOINT environment variable.
Insecure
Optional
public bool Insecure { get; set; }
- Type: bool
Optional) Whether to explicitly allow the backend to perform "insecure" SSL requests.
If omitted, the default value is false.
KmsKeyId
Optional
public string KmsKeyId { get; set; }
- Type: string
(Optional) Amazon Resource Name (ARN) of a Key Management Service (KMS) Key to use for encrypting the state.
Note that if this value is specified, Terraform will need kms:Encrypt, kms:Decrypt and kms:GenerateDataKey permissions on this KMS key.
MaxRetries
Optional
public double MaxRetries { get; set; }
- Type: double
(Optional) The maximum number of times an AWS API request is retried on retryable failure.
Defaults to 5.
NoProxy
Optional
public string NoProxy { get; set; }
- Type: string
(Optional) Comma-separated list of hosts that should not use HTTP or HTTPS proxies.
Each value can be one of:
- A domain name
- An IP address
- A CIDR address
- An asterisk (*), to indicate that no proxying should be performed Domain name and IP address values can also include a port number. Can also be set using the NO_PROXY or no_proxy environment variables.
Profile
Optional
public string Profile { get; set; }
- Type: string
(Optional) Name of AWS profile in AWS shared credentials file (e.g. ~/.aws/credentials) or AWS shared configuration file (e.g. ~/.aws/config) to use for credentials and/or configuration. This can also be sourced from the AWS_PROFILE environment variable.
Region
Optional
public string Region { get; set; }
- Type: string
AWS Region of the S3 Bucket and DynamoDB Table (if used).
This can also be sourced from the AWS_DEFAULT_REGION and AWS_REGION environment variables.
RetryMode
Optional
public string RetryMode { get; set; }
- Type: string
(Optional) Specifies how retries are attempted.
Valid values are standard and adaptive. Can also be configured using the AWS_RETRY_MODE environment variable or the shared config file parameter retry_mode.
RoleArn
Optional
RoleArn
- Deprecated: Use assumeRole.roleArn instead.
public string RoleArn { get; set; }
- Type: string
(Optional) Amazon Resource Name (ARN) of the IAM Role to assume.
SecretKey
Optional
public string SecretKey { get; set; }
- Type: string
(Optional) AWS secret access key.
If configured, must also configure access_key. This can also be sourced from the AWS_SECRET_ACCESS_KEY environment variable, AWS shared credentials file (e.g. ~/.aws/credentials), or AWS shared configuration file (e.g. ~/.aws/config)
SessionName
Optional
SessionName
- Deprecated: Use assumeRole.sessionName instead.
public string SessionName { get; set; }
- Type: string
(Optional) Session name to use when assuming the role.
SharedConfigFiles
Optional
public string[] SharedConfigFiles { get; set; }
- Type: string[]
(Optional) List of paths to AWS shared configuration files.
Defaults to ~/.aws/config.
SharedCredentialsFile
Optional
public string SharedCredentialsFile { get; set; }
- Type: string
(Optional) Path to the AWS shared credentials file.
Defaults to ~/.aws/credentials.
SharedCredentialsFiles
Optional
public string[] SharedCredentialsFiles { get; set; }
- Type: string[]
(Optional) List of paths to AWS shared credentials files.
Defaults to ~/.aws/credentials.
SkipCredentialsValidation
Optional
public bool SkipCredentialsValidation { get; set; }
- Type: bool
(Optional) Skip credentials validation via the STS API.
SkipMetadataApiCheck
Optional
public bool SkipMetadataApiCheck { get; set; }
- Type: bool
(Optional) Skip usage of EC2 Metadata API.
SkipRegionValidation
Optional
public bool SkipRegionValidation { get; set; }
- Type: bool
(Optional) Skip validation of provided region name.
SkipRequestingAccountId
Optional
public bool SkipRequestingAccountId { get; set; }
- Type: bool
(Optional) Whether to skip requesting the account ID.
Useful for AWS API implementations that do not have the IAM, STS API, or metadata API.
SkipS3Checksum
Optional
public bool SkipS3Checksum { get; set; }
- Type: bool
(Optional) Do not include checksum when uploading S3 Objects.
Useful for some S3-Compatible APIs.
SseCustomerKey
Optional
public string SseCustomerKey { get; set; }
- Type: string
(Optional) The key to use for encrypting state with Server-Side Encryption with Customer-Provided Keys (SSE-C).
This is the base64-encoded value of the key, which must decode to 256 bits. This can also be sourced from the AWS_SSE_CUSTOMER_KEY environment variable, which is recommended due to the sensitivity of the value. Setting it inside a terraform file will cause it to be persisted to disk in terraform.tfstate.
StsEndpoint
Optional
StsEndpoint
- Deprecated: Use endpoints.sts instead
public string StsEndpoint { get; set; }
- Type: string
(Optional) Custom endpoint for the AWS Security Token Service (STS) API.
This can also be sourced from the AWS_STS_ENDPOINT environment variable.
StsRegion
Optional
public string StsRegion { get; set; }
- Type: string
(Optional) AWS region for STS.
If unset, AWS will use the same region for STS as other non-STS operations.
Token
Optional
public string Token { get; set; }
- Type: string
(Optional) Multi-Factor Authentication (MFA) token.
This can also be sourced from the AWS_SESSION_TOKEN environment variable.
UseLegacyWorkflow
Optional
public bool UseLegacyWorkflow { get; set; }
- Type: bool
(Optional) Use the legacy authentication workflow, preferring environment variables over backend configuration.
Defaults to true. This behavior does not align with the authentication flow of the AWS CLI or SDK's, and will be removed in the future.
UsePathStyle
Optional
public bool UsePathStyle { get; set; }
- Type: bool
(Optional) Enable path-style S3 URLs (https://< HOST >/< BUCKET > instead of https://< BUCKET >.< HOST >).
WorkspaceKeyPrefix
Optional
public string WorkspaceKeyPrefix { get; set; }
- Type: string
(Optional) Prefix applied to the state path inside the bucket.
This is only relevant when using a non-default workspace. Defaults to env:
DataTerraformRemoteStateSwiftConfig
Initializer
using HashiCorp.Cdktf;
new DataTerraformRemoteStateSwiftConfig {
System.Collections.Generic.IDictionary< string, object > Defaults = null,
string Workspace = null,
string Container,
string ApplicationCredentialId = null,
string ApplicationCredentialName = null,
string ApplicationCredentialSecret = null,
string ArchiveContainer = null,
string AuthUrl = null,
string CacertFile = null,
string Cert = null,
string Cloud = null,
string DefaultDomain = null,
string DomainId = null,
string DomainName = null,
string ExpireAfter = null,
bool Insecure = null,
string Key = null,
string Password = null,
string ProjectDomainId = null,
string ProjectDomainName = null,
string RegionName = null,
string StateName = null,
string TenantId = null,
string TenantName = null,
string Token = null,
string UserDomainId = null,
string UserDomainName = null,
string UserId = null,
string UserName = null
};
Properties
Name | Type | Description |
---|---|---|
Defaults | System.Collections.Generic.IDictionary< string, object > | No description. |
Workspace | string | No description. |
Container | string | No description. |
ApplicationCredentialId | string | No description. |
ApplicationCredentialName | string | No description. |
ApplicationCredentialSecret | string | No description. |
ArchiveContainer | string | No description. |
AuthUrl | string | No description. |
CacertFile | string | No description. |
Cert | string | No description. |
Cloud | string | No description. |
DefaultDomain | string | No description. |
DomainId | string | No description. |
DomainName | string | No description. |
ExpireAfter | string | No description. |
Insecure | bool | No description. |
Key | string | No description. |
Password | string | No description. |
ProjectDomainId | string | No description. |
ProjectDomainName | string | No description. |
RegionName | string | No description. |
StateName | string | No description. |
TenantId | string | No description. |
TenantName | string | No description. |
Token | string | No description. |
UserDomainId | string | No description. |
UserDomainName | string | No description. |
UserId | string | No description. |
UserName | string | No description. |
Defaults
Optional
Defaults
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public System.Collections.Generic.IDictionary< string, object > Defaults { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
Workspace
Optional
Workspace
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string Workspace { get; set; }
- Type: string
Container
Required
Container
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string Container { get; set; }
- Type: string
ApplicationCredentialId
Optional
ApplicationCredentialId
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string ApplicationCredentialId { get; set; }
- Type: string
ApplicationCredentialName
Optional
ApplicationCredentialName
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string ApplicationCredentialName { get; set; }
- Type: string
ApplicationCredentialSecret
Optional
ApplicationCredentialSecret
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string ApplicationCredentialSecret { get; set; }
- Type: string
ArchiveContainer
Optional
ArchiveContainer
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string ArchiveContainer { get; set; }
- Type: string
AuthUrl
Optional
AuthUrl
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string AuthUrl { get; set; }
- Type: string
CacertFile
Optional
CacertFile
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string CacertFile { get; set; }
- Type: string
Cert
Optional
Cert
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string Cert { get; set; }
- Type: string
Cloud
Optional
Cloud
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string Cloud { get; set; }
- Type: string
DefaultDomain
Optional
DefaultDomain
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string DefaultDomain { get; set; }
- Type: string
DomainId
Optional
DomainId
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string DomainId { get; set; }
- Type: string
DomainName
Optional
DomainName
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string DomainName { get; set; }
- Type: string
ExpireAfter
Optional
ExpireAfter
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string ExpireAfter { get; set; }
- Type: string
Insecure
Optional
Insecure
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public bool Insecure { get; set; }
- Type: bool
Key
Optional
Key
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string Key { get; set; }
- Type: string
Password
Optional
Password
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string Password { get; set; }
- Type: string
ProjectDomainId
Optional
ProjectDomainId
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string ProjectDomainId { get; set; }
- Type: string
ProjectDomainName
Optional
ProjectDomainName
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string ProjectDomainName { get; set; }
- Type: string
RegionName
Optional
RegionName
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string RegionName { get; set; }
- Type: string
StateName
Optional
StateName
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string StateName { get; set; }
- Type: string
TenantId
Optional
TenantId
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string TenantId { get; set; }
- Type: string
TenantName
Optional
TenantName
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string TenantName { get; set; }
- Type: string
Token
Optional
Token
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string Token { get; set; }
- Type: string
UserDomainId
Optional
UserDomainId
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string UserDomainId { get; set; }
- Type: string
UserDomainName
Optional
UserDomainName
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string UserDomainName { get; set; }
- Type: string
UserId
Optional
UserId
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string UserId { get; set; }
- Type: string
UserName
Optional
UserName
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string UserName { get; set; }
- Type: string
EncodingOptions
Properties to string encodings.
Initializer
using HashiCorp.Cdktf;
new EncodingOptions {
string DisplayHint = null
};
Properties
Name | Type | Description |
---|---|---|
DisplayHint | string | A hint for the Token's purpose when stringifying it. |
DisplayHint
Optional
public string DisplayHint { get; set; }
- Type: string
- Default: no display hint
A hint for the Token's purpose when stringifying it.
FileProvisioner
The file provisioner copies files or directories from the machine running Terraform to the newly created resource.
The file provisioner supports both ssh and winrm type connections.
See {@link https://developer.hashicorp.com/terraform/language/resources/provisioners/file file}
Initializer
using HashiCorp.Cdktf;
new FileProvisioner {
string Destination,
string Type,
object Connection = null,
string Content = null,
string Source = null
};
Properties
Name | Type | Description |
---|---|---|
Destination | string | The source file or directory. |
Type | string | No description. |
Connection | object | Most provisioners require access to the remote resource via SSH or WinRM and expect a nested connection block with details about how to connect. |
Content | string | The destination path to write to on the remote system. |
Source | string | The direct content to copy on the destination. |
Destination
Required
public string Destination { get; set; }
- Type: string
The source file or directory.
Specify it either relative to the current working directory or as an absolute path. This argument cannot be combined with content.
Type
Required
public string Type { get; set; }
- Type: string
Connection
Optional
public object Connection { get; set; }
- Type: object
Most provisioners require access to the remote resource via SSH or WinRM and expect a nested connection block with details about how to connect.
Content
Optional
public string Content { get; set; }
- Type: string
The destination path to write to on the remote system.
See Destination Paths below for more information.
Source
Optional
public string Source { get; set; }
- Type: string
The direct content to copy on the destination.
If destination is a file, the content will be written on that file. In case of a directory, a file named tf-file-content is created inside that directory. We recommend using a file as the destination when using content. This argument cannot be combined with source.
GcsBackendConfig
Stores the state as an object in a configurable prefix in a pre-existing bucket on Google Cloud Storage (GCS).
The bucket must exist prior to configuring the backend.
This backend supports state locking.
Warning! It is highly recommended that you enable Object Versioning on the GCS bucket to allow for state recovery in the case of accidental deletions and human error.
Read more about this backend in the Terraform docs: https://developer.hashicorp.com/terraform/language/settings/backends/gcs
Initializer
using HashiCorp.Cdktf;
new GcsBackendConfig {
string Bucket,
string AccessToken = null,
string Credentials = null,
string EncryptionKey = null,
string ImpersonateServiceAccount = null,
string[] ImpersonateServiceAccountDelegates = null,
string KmsEncryptionKey = null,
string Prefix = null,
string StoreageCustomEndpoint = null
};
Properties
Name | Type | Description |
---|---|---|
Bucket | string | (Required) The name of the GCS bucket. |
AccessToken | string | (Optional) A temporary [OAuth 2.0 access token] obtained from the Google Authorization server, i.e. the Authorization: Bearer token used to authenticate HTTP requests to GCP APIs. This is an alternative to credentials. If both are specified, access_token will be used over the credentials field. |
Credentials | string | (Optional) Local path to Google Cloud Platform account credentials in JSON format. |
EncryptionKey | string | (Optional) A 32 byte base64 encoded 'customer supplied encryption key' used to encrypt all state. |
ImpersonateServiceAccount | string | (Optional) The service account to impersonate for accessing the State Bucket. |
ImpersonateServiceAccountDelegates | string[] | (Optional) The delegation chain for an impersonating a service account. |
KmsEncryptionKey | string | (Optional) A Cloud KMS key ('customer-managed encryption key') used when reading and writing state files in the bucket. |
Prefix | string | (Optional) GCS prefix inside the bucket. |
StoreageCustomEndpoint | string | (Optional) A URL containing three parts: the protocol, the DNS name pointing to a Private Service Connect endpoint, and the path for the Cloud Storage API (/storage/v1/b). |
Bucket
Required
public string Bucket { get; set; }
- Type: string
(Required) The name of the GCS bucket.
This name must be globally unique.
AccessToken
Optional
public string AccessToken { get; set; }
- Type: string
(Optional) A temporary [OAuth 2.0 access token] obtained from the Google Authorization server, i.e. the Authorization: Bearer token used to authenticate HTTP requests to GCP APIs. This is an alternative to credentials. If both are specified, access_token will be used over the credentials field.
Credentials
Optional
public string Credentials { get; set; }
- Type: string
(Optional) Local path to Google Cloud Platform account credentials in JSON format.
If unset, Google Application Default Credentials are used. The provided credentials must have Storage Object Admin role on the bucket.
Warning: if using the Google Cloud Platform provider as well, it will also pick up the GOOGLE_CREDENTIALS environment variable.
EncryptionKey
Optional
public string EncryptionKey { get; set; }
- Type: string
(Optional) A 32 byte base64 encoded 'customer supplied encryption key' used to encrypt all state.
ImpersonateServiceAccount
Optional
public string ImpersonateServiceAccount { get; set; }
- Type: string
(Optional) The service account to impersonate for accessing the State Bucket.
You must have roles/iam.serviceAccountTokenCreator role on that account for the impersonation to succeed. If you are using a delegation chain, you can specify that using the impersonate_service_account_delegates field. Alternatively, this can be specified using the GOOGLE_IMPERSONATE_SERVICE_ACCOUNT environment variable.
ImpersonateServiceAccountDelegates
Optional
public string[] ImpersonateServiceAccountDelegates { get; set; }
- Type: string[]
(Optional) The delegation chain for an impersonating a service account.
KmsEncryptionKey
Optional
public string KmsEncryptionKey { get; set; }
- Type: string
(Optional) A Cloud KMS key ('customer-managed encryption key') used when reading and writing state files in the bucket.
Format should be projects/{{project}}/locations/{{location}}/keyRings/{{keyRing}}/cryptoKeys/{{name}}. For more information, including IAM requirements, see {@link https://cloud.google.com/storage/docs/encryption/customer-managed-keys Customer-managed Encryption Keys}.
Prefix
Optional
public string Prefix { get; set; }
- Type: string
(Optional) GCS prefix inside the bucket.
Named states for workspaces are stored in an object called < prefix >/< name >.tfstate.
StoreageCustomEndpoint
Optional
public string StoreageCustomEndpoint { get; set; }
- Type: string
(Optional) A URL containing three parts: the protocol, the DNS name pointing to a Private Service Connect endpoint, and the path for the Cloud Storage API (/storage/v1/b).
{@link https://developer.hashicorp.com/terraform/language/settings/backends/gcs#storage_custom_endpoint See here for more details}
HttpBackendConfig
Stores the state using a simple REST client.
State will be fetched via GET, updated via POST, and purged with DELETE. The method used for updating is configurable.
This backend optionally supports state locking. When locking support is enabled it will use LOCK and UNLOCK requests providing the lock info in the body. The endpoint should return a 423: Locked or 409: Conflict with the holding lock info when it's already taken, 200: OK for success. Any other status will be considered an error. The ID of the holding lock info will be added as a query parameter to state updates requests.
Read more about this backend in the Terraform docs: https://developer.hashicorp.com/terraform/language/settings/backends/http
Initializer
using HashiCorp.Cdktf;
new HttpBackendConfig {
string Address,
string ClientCaCertificatePem = null,
string ClientCertificatePem = null,
string ClientPrivateKeyPem = null,
string LockAddress = null,
string LockMethod = null,
string Password = null,
double RetryMax = null,
double RetryWaitMax = null,
double RetryWaitMin = null,
bool SkipCertVerification = null,
string UnlockAddress = null,
string UnlockMethod = null,
string UpdateMethod = null,
string Username = null
};
Properties
Name | Type | Description |
---|---|---|
Address | string | (Required) The address of the REST endpoint. |
ClientCaCertificatePem | string | (Optional) A PEM-encoded CA certificate chain used by the client to verify server certificates during TLS authentication. |
ClientCertificatePem | string | (Optional) A PEM-encoded certificate used by the server to verify the client during mutual TLS (mTLS) authentication. |
ClientPrivateKeyPem | string | (Optional) A PEM-encoded private key, required if client_certificate_pem is specified. |
LockAddress | string | (Optional) The address of the lock REST endpoint. |
LockMethod | string | (Optional) The HTTP method to use when locking. |
Password | string | (Optional) The password for HTTP basic authentication. |
RetryMax | double | (Optional) The number of HTTP request retries. |
RetryWaitMax | double | (Optional) The maximum time in seconds to wait between HTTP request attempts. |
RetryWaitMin | double | (Optional) The minimum time in seconds to wait between HTTP request attempts. |
SkipCertVerification | bool | (Optional) Whether to skip TLS verification. |
UnlockAddress | string | (Optional) The address of the unlock REST endpoint. |
UnlockMethod | string | (Optional) The HTTP method to use when unlocking. |
UpdateMethod | string | (Optional) HTTP method to use when updating state. |
Username | string | (Optional) The username for HTTP basic authentication. |
Address
Required
public string Address { get; set; }
- Type: string
(Required) The address of the REST endpoint.
ClientCaCertificatePem
Optional
public string ClientCaCertificatePem { get; set; }
- Type: string
(Optional) A PEM-encoded CA certificate chain used by the client to verify server certificates during TLS authentication.
ClientCertificatePem
Optional
public string ClientCertificatePem { get; set; }
- Type: string
(Optional) A PEM-encoded certificate used by the server to verify the client during mutual TLS (mTLS) authentication.
ClientPrivateKeyPem
Optional
public string ClientPrivateKeyPem { get; set; }
- Type: string
(Optional) A PEM-encoded private key, required if client_certificate_pem is specified.
LockAddress
Optional
public string LockAddress { get; set; }
- Type: string
(Optional) The address of the lock REST endpoint.
Defaults to disabled.
LockMethod
Optional
public string LockMethod { get; set; }
- Type: string
(Optional) The HTTP method to use when locking.
Defaults to LOCK.
Password
Optional
public string Password { get; set; }
- Type: string
(Optional) The password for HTTP basic authentication.
RetryMax
Optional
public double RetryMax { get; set; }
- Type: double
(Optional) The number of HTTP request retries.
Defaults to 2.
RetryWaitMax
Optional
public double RetryWaitMax { get; set; }
- Type: double
(Optional) The maximum time in seconds to wait between HTTP request attempts.
Defaults to 30.
RetryWaitMin
Optional
public double RetryWaitMin { get; set; }
- Type: double
(Optional) The minimum time in seconds to wait between HTTP request attempts.
Defaults to 1.
SkipCertVerification
Optional
public bool SkipCertVerification { get; set; }
- Type: bool
(Optional) Whether to skip TLS verification.
Defaults to false.
UnlockAddress
Optional
public string UnlockAddress { get; set; }
- Type: string
(Optional) The address of the unlock REST endpoint.
Defaults to disabled.
UnlockMethod
Optional
public string UnlockMethod { get; set; }
- Type: string
(Optional) The HTTP method to use when unlocking.
Defaults to UNLOCK.
UpdateMethod
Optional
public string UpdateMethod { get; set; }
- Type: string
(Optional) HTTP method to use when updating state.
Defaults to POST.
Username
Optional
public string Username { get; set; }
- Type: string
(Optional) The username for HTTP basic authentication.
LazyAnyValueOptions
Options for creating lazy untyped tokens.
Initializer
using HashiCorp.Cdktf;
new LazyAnyValueOptions {
string DisplayHint = null,
bool OmitEmptyArray = null
};
Properties
Name | Type | Description |
---|---|---|
DisplayHint | string | Use the given name as a display hint. |
OmitEmptyArray | bool | If the produced value is an array and it is empty, return 'undefined' instead. |
DisplayHint
Optional
public string DisplayHint { get; set; }
- Type: string
- Default: No hint
Use the given name as a display hint.
OmitEmptyArray
Optional
public bool OmitEmptyArray { get; set; }
- Type: bool
- Default: false
If the produced value is an array and it is empty, return 'undefined' instead.
LazyListValueOptions
Options for creating a lazy list token.
Initializer
using HashiCorp.Cdktf;
new LazyListValueOptions {
string DisplayHint = null,
bool OmitEmpty = null
};
Properties
Name | Type | Description |
---|---|---|
DisplayHint | string | Use the given name as a display hint. |
OmitEmpty | bool | If the produced list is empty, return 'undefined' instead. |
DisplayHint
Optional
public string DisplayHint { get; set; }
- Type: string
- Default: No hint
Use the given name as a display hint.
OmitEmpty
Optional
public bool OmitEmpty { get; set; }
- Type: bool
- Default: false
If the produced list is empty, return 'undefined' instead.
LazyStringValueOptions
Options for creating a lazy string token.
Initializer
using HashiCorp.Cdktf;
new LazyStringValueOptions {
string DisplayHint = null
};
Properties
Name | Type | Description |
---|---|---|
DisplayHint | string | Use the given name as a display hint. |
DisplayHint
Optional
public string DisplayHint { get; set; }
- Type: string
- Default: No hint
Use the given name as a display hint.
LocalBackendConfig
The local backend stores state on the local filesystem, locks that state using system APIs, and performs operations locally.
Read more about this backend in the Terraform docs: https://developer.hashicorp.com/terraform/language/settings/backends/local
Initializer
using HashiCorp.Cdktf;
new LocalBackendConfig {
string Path = null,
string WorkspaceDir = null
};
Properties
Name | Type | Description |
---|---|---|
Path | string | Path where the state file is stored. |
WorkspaceDir | string | (Optional) The path to non-default workspaces. |
Path
Optional
public string Path { get; set; }
- Type: string
- Default: defaults to terraform.${stackId}.tfstate
Path where the state file is stored.
WorkspaceDir
Optional
public string WorkspaceDir { get; set; }
- Type: string
(Optional) The path to non-default workspaces.
LocalExecProvisioner
The local-exec provisioner invokes a local executable after a resource is created.
This invokes a process on the machine running Terraform, not on the resource.
See {@link https://developer.hashicorp.com/terraform/language/resources/provisioners/local-exec local-exec}
Initializer
using HashiCorp.Cdktf;
new LocalExecProvisioner {
string Command,
string Type,
System.Collections.Generic.IDictionary< string, string > Environment = null,
string[] Interpreter = null,
string When = null,
string WorkingDir = null
};
Properties
Name | Type | Description |
---|---|---|
Command | string | This is the command to execute. |
Type | string | No description. |
Environment | System.Collections.Generic.IDictionary< string, string > | A record of key value pairs representing the environment of the executed command. |
Interpreter | string[] | If provided, this is a list of interpreter arguments used to execute the command. |
When | string | If provided, specifies when Terraform will execute the command. |
WorkingDir | string | If provided, specifies the working directory where command will be executed. |
Command
Required
public string Command { get; set; }
- Type: string
This is the command to execute.
It can be provided as a relative path to the current working directory or as an absolute path. It is evaluated in a shell, and can use environment variables or Terraform variables.
Type
Required
public string Type { get; set; }
- Type: string
Environment
Optional
public System.Collections.Generic.IDictionary< string, string > Environment { get; set; }
- Type: System.Collections.Generic.IDictionary< string, string >
A record of key value pairs representing the environment of the executed command.
It inherits the current process environment.
Interpreter
Optional
public string[] Interpreter { get; set; }
- Type: string[]
If provided, this is a list of interpreter arguments used to execute the command.
The first argument is the interpreter itself. It can be provided as a relative path to the current working directory or as an absolute path The remaining arguments are appended prior to the command. This allows building command lines of the form "/bin/bash", "-c", "echo foo". If interpreter is unspecified, sensible defaults will be chosen based on the system OS.
When
Optional
public string When { get; set; }
- Type: string
If provided, specifies when Terraform will execute the command.
For example, when = destroy specifies that the provisioner will run when the associated resource is destroyed
WorkingDir
Optional
public string WorkingDir { get; set; }
- Type: string
If provided, specifies the working directory where command will be executed.
It can be provided as a relative path to the current working directory or as an absolute path. The directory must exist.
OssAssumeRole
Initializer
using HashiCorp.Cdktf;
new OssAssumeRole {
string RoleArn,
string Policy = null,
double SessionExpiration = null,
string SessionName = null
};
Properties
Name | Type | Description |
---|---|---|
RoleArn | string | No description. |
Policy | string | No description. |
SessionExpiration | double | No description. |
SessionName | string | No description. |
RoleArn
Required
public string RoleArn { get; set; }
- Type: string
Policy
Optional
public string Policy { get; set; }
- Type: string
SessionExpiration
Optional
public double SessionExpiration { get; set; }
- Type: double
SessionName
Optional
public string SessionName { get; set; }
- Type: string
OssBackendConfig
Initializer
using HashiCorp.Cdktf;
new OssBackendConfig {
string Bucket,
string AccessKey = null,
string Acl = null,
OssAssumeRole AssumeRole = null,
string AssumeRolePolicy = null,
string AssumeRoleRoleArn = null,
double AssumeRoleSessionExpiration = null,
string AssumeRoleSessionName = null,
string EcsRoleName = null,
bool Encrypt = null,
string Endpoint = null,
string Key = null,
string Prefix = null,
string Profile = null,
string Region = null,
string SecretKey = null,
string SecurityToken = null,
string SharedCredentialsFile = null,
string StsEndpoint = null,
string TablestoreEndpoint = null,
string TablestoreTable = null
};
Properties
Name | Type | Description |
---|---|---|
Bucket | string | (Required) The name of the OSS bucket. |
AccessKey | string | (Optional) Alibaba Cloud access key. |
Acl | string | (Optional) Object ACL to be applied to the state file. |
AssumeRole | OssAssumeRole | No description. |
AssumeRolePolicy | string | (Optional, Available in 1.1.0+) A more restrictive policy to apply to the temporary credentials. This gives you a way to further restrict the permissions for the resulting temporary security credentials. You cannot use this policy to grant permissions that exceed those of the role that is being assumed. |
AssumeRoleRoleArn | string | (Optional, Available in 1.1.0+) The ARN of the role to assume. If ARN is set to an empty string, it does not perform role switching. It supports the environment variable ALICLOUD_ASSUME_ROLE_ARN. Terraform executes configuration on account with provided credentials. |
AssumeRoleSessionExpiration | double | (Optional, Available in 1.1.0+) The time after which the established session for assuming role expires. Valid value range: [900-3600] seconds. Default to 3600 (in this case Alibaba Cloud uses its own default value). It supports environment variable ALICLOUD_ASSUME_ROLE_SESSION_EXPIRATION. |
AssumeRoleSessionName | string | (Optional, Available in 1.1.0+) The session name to use when assuming the role. If omitted, 'terraform' is passed to the AssumeRole call as session name. It supports environment variable ALICLOUD_ASSUME_ROLE_SESSION_NAME. |
EcsRoleName | string | (Optional, Available in 0.12.14+) The RAM Role Name attached on a ECS instance for API operations. You can retrieve this from the 'Access Control' section of the Alibaba Cloud console. |
Encrypt | bool | (Optional) Whether to enable server side encryption of the state file. |
Endpoint | string | (Optional) A custom endpoint for the OSS API. |
Key | string | (Optional) The name of the state file. |
Prefix | string | (Optional) The path directory of the state file will be stored. |
Profile | string | (Optional, Available in 0.12.8+) This is the Alibaba Cloud profile name as set in the shared credentials file. It can also be sourced from the ALICLOUD_PROFILE environment variable. |
Region | string | (Optional) The region of the OSS bucket. |
SecretKey | string | (Optional) Alibaba Cloud secret access key. |
SecurityToken | string | (Optional) STS access token. |
SharedCredentialsFile | string | (Optional, Available in 0.12.8+) This is the path to the shared credentials file. It can also be sourced from the ALICLOUD_SHARED_CREDENTIALS_FILE environment variable. If this is not set and a profile is specified, ~/.aliyun/config.json will be used. |
StsEndpoint | string | (Optional, Available in 1.0.11+) Custom endpoint for the AliCloud Security Token Service (STS) API. It supports environment variable ALICLOUD_STS_ENDPOINT. |
TablestoreEndpoint | string | (Optional) A custom endpoint for the TableStore API. |
TablestoreTable | string | (Optional) A TableStore table for state locking and consistency. |
Bucket
Required
public string Bucket { get; set; }
- Type: string
(Required) The name of the OSS bucket.
AccessKey
Optional
public string AccessKey { get; set; }
- Type: string
(Optional) Alibaba Cloud access key.
It supports environment variables ALICLOUD_ACCESS_KEY and ALICLOUD_ACCESS_KEY_ID.
Acl
Optional
public string Acl { get; set; }
- Type: string
(Optional) Object ACL to be applied to the state file.
AssumeRole
Optional
AssumeRole
- Deprecated: Use flattened assume role options
public OssAssumeRole AssumeRole { get; set; }
- Type: OssAssumeRole
AssumeRolePolicy
Optional
public string AssumeRolePolicy { get; set; }
- Type: string
(Optional, Available in 1.1.0+) A more restrictive policy to apply to the temporary credentials. This gives you a way to further restrict the permissions for the resulting temporary security credentials. You cannot use this policy to grant permissions that exceed those of the role that is being assumed.
AssumeRoleRoleArn
Optional
public string AssumeRoleRoleArn { get; set; }
- Type: string
(Optional, Available in 1.1.0+) The ARN of the role to assume. If ARN is set to an empty string, it does not perform role switching. It supports the environment variable ALICLOUD_ASSUME_ROLE_ARN. Terraform executes configuration on account with provided credentials.
AssumeRoleSessionExpiration
Optional
public double AssumeRoleSessionExpiration { get; set; }
- Type: double
(Optional, Available in 1.1.0+) The time after which the established session for assuming role expires. Valid value range: [900-3600] seconds. Default to 3600 (in this case Alibaba Cloud uses its own default value). It supports environment variable ALICLOUD_ASSUME_ROLE_SESSION_EXPIRATION.
AssumeRoleSessionName
Optional
public string AssumeRoleSessionName { get; set; }
- Type: string
(Optional, Available in 1.1.0+) The session name to use when assuming the role. If omitted, 'terraform' is passed to the AssumeRole call as session name. It supports environment variable ALICLOUD_ASSUME_ROLE_SESSION_NAME.
EcsRoleName
Optional
public string EcsRoleName { get; set; }
- Type: string
(Optional, Available in 0.12.14+) The RAM Role Name attached on a ECS instance for API operations. You can retrieve this from the 'Access Control' section of the Alibaba Cloud console.
Encrypt
Optional
public bool Encrypt { get; set; }
- Type: bool
(Optional) Whether to enable server side encryption of the state file.
If it is true, OSS will use 'AES256' encryption algorithm to encrypt state file.
Endpoint
Optional
public string Endpoint { get; set; }
- Type: string
(Optional) A custom endpoint for the OSS API.
It supports environment variables ALICLOUD_OSS_ENDPOINT and OSS_ENDPOINT.
Key
Optional
public string Key { get; set; }
- Type: string
(Optional) The name of the state file.
Defaults to terraform.tfstate.
Prefix
Optional
public string Prefix { get; set; }
- Type: string
(Optional) The path directory of the state file will be stored.
Default to "env:".
Profile
Optional
public string Profile { get; set; }
- Type: string
(Optional, Available in 0.12.8+) This is the Alibaba Cloud profile name as set in the shared credentials file. It can also be sourced from the ALICLOUD_PROFILE environment variable.
Region
Optional
public string Region { get; set; }
- Type: string
(Optional) The region of the OSS bucket.
It supports environment variables ALICLOUD_REGION and ALICLOUD_DEFAULT_REGION.
SecretKey
Optional
public string SecretKey { get; set; }
- Type: string
(Optional) Alibaba Cloud secret access key.
It supports environment variables ALICLOUD_SECRET_KEY and ALICLOUD_ACCESS_KEY_SECRET.
SecurityToken
Optional
public string SecurityToken { get; set; }
- Type: string
(Optional) STS access token.
It supports environment variable ALICLOUD_SECURITY_TOKEN.
SharedCredentialsFile
Optional
public string SharedCredentialsFile { get; set; }
- Type: string
(Optional, Available in 0.12.8+) This is the path to the shared credentials file. It can also be sourced from the ALICLOUD_SHARED_CREDENTIALS_FILE environment variable. If this is not set and a profile is specified, ~/.aliyun/config.json will be used.
StsEndpoint
Optional
public string StsEndpoint { get; set; }
- Type: string
(Optional, Available in 1.0.11+) Custom endpoint for the AliCloud Security Token Service (STS) API. It supports environment variable ALICLOUD_STS_ENDPOINT.
TablestoreEndpoint
Optional
public string TablestoreEndpoint { get; set; }
- Type: string
(Optional) A custom endpoint for the TableStore API.
TablestoreTable
Optional
public string TablestoreTable { get; set; }
- Type: string
(Optional) A TableStore table for state locking and consistency.
The table must have a primary key named LockID of type String.
PgBackendConfig
Initializer
using HashiCorp.Cdktf;
new PgBackendConfig {
string ConnStr,
string SchemaName = null,
bool SkipIndexCreation = null,
bool SkipSchemaCreation = null,
bool SkipTableCreation = null
};
Properties
Name | Type | Description |
---|---|---|
ConnStr | string | Postgres connection string; |
SchemaName | string | Name of the automatically-managed Postgres schema, default to terraform_remote_state. |
SkipIndexCreation | bool | If set to true, the Postgres index must already exist. |
SkipSchemaCreation | bool | If set to true, the Postgres schema must already exist. |
SkipTableCreation | bool | If set to true, the Postgres table must already exist. |
ConnStr
Required
public string ConnStr { get; set; }
- Type: string
Postgres connection string;
a postgres:// URL. The PG_CONN_STR and standard libpq environment variables can also be used to indicate how to connect to the PostgreSQL database.
SchemaName
Optional
public string SchemaName { get; set; }
- Type: string
Name of the automatically-managed Postgres schema, default to terraform_remote_state.
Can also be set using the PG_SCHEMA_NAME environment variable.
SkipIndexCreation
Optional
public bool SkipIndexCreation { get; set; }
- Type: bool
If set to true, the Postgres index must already exist.
Can also be set using the PG_SKIP_INDEX_CREATION environment variable. Terraform won't try to create the index, this is useful when it has already been created by a database administrator.
SkipSchemaCreation
Optional
public bool SkipSchemaCreation { get; set; }
- Type: bool
If set to true, the Postgres schema must already exist.
Can also be set using the PG_SKIP_SCHEMA_CREATION environment variable. Terraform won't try to create the schema, this is useful when it has already been created by a database administrator.
SkipTableCreation
Optional
public bool SkipTableCreation { get; set; }
- Type: bool
If set to true, the Postgres table must already exist.
Can also be set using the PG_SKIP_TABLE_CREATION environment variable. Terraform won't try to create the table, this is useful when it has already been created by a database administrator.
Postcondition
Terraform checks a postcondition after evaluating the object it is associated with.
Initializer
using HashiCorp.Cdktf;
new Postcondition {
object Condition,
string ErrorMessage
};
Properties
Name | Type | Description |
---|---|---|
Condition | object | This is a boolean expression that should return true if the intended assumption or guarantee is fulfilled or false if it does not. |
ErrorMessage | string | This contains the text that Terraform will include as part of error messages when it detects an unmet condition. |
Condition
Required
public object Condition { get; set; }
- Type: object
This is a boolean expression that should return true if the intended assumption or guarantee is fulfilled or false if it does not.
ErrorMessage
Required
public string ErrorMessage { get; set; }
- Type: string
This contains the text that Terraform will include as part of error messages when it detects an unmet condition.
Precondition
Terraform checks a precondition before evaluating the object it is associated with.
Initializer
using HashiCorp.Cdktf;
new Precondition {
object Condition,
string ErrorMessage
};
Properties
Name | Type | Description |
---|---|---|
Condition | object | This is a boolean expression that should return true if the intended assumption or guarantee is fulfilled or false if it does not. |
ErrorMessage | string | This contains the text that Terraform will include as part of error messages when it detects an unmet condition. |
Condition
Required
public object Condition { get; set; }
- Type: object
This is a boolean expression that should return true if the intended assumption or guarantee is fulfilled or false if it does not.
ErrorMessage
Required
public string ErrorMessage { get; set; }
- Type: string
This contains the text that Terraform will include as part of error messages when it detects an unmet condition.
RemoteBackendConfig
Initializer
using HashiCorp.Cdktf;
new RemoteBackendConfig {
string Organization,
IRemoteWorkspace Workspaces,
string Hostname = null,
string Token = null
};
Properties
Name | Type | Description |
---|---|---|
Organization | string | No description. |
Workspaces | IRemoteWorkspace | No description. |
Hostname | string | No description. |
Token | string | No description. |
Organization
Required
public string Organization { get; set; }
- Type: string
Workspaces
Required
public IRemoteWorkspace Workspaces { get; set; }
- Type: IRemoteWorkspace
Hostname
Optional
public string Hostname { get; set; }
- Type: string
Token
Optional
public string Token { get; set; }
- Type: string
RemoteExecProvisioner
The remote-exec provisioner invokes a script on a remote resource after it is created.
This can be used to run a configuration management tool, bootstrap into a cluster, etc The remote-exec provisioner requires a connection and supports both ssh and winrm.
See {@link https://developer.hashicorp.com/terraform/language/resources/provisioners/remote-exec remote-exec}
Initializer
using HashiCorp.Cdktf;
new RemoteExecProvisioner {
string Type,
object Connection = null,
string[] Inline = null,
string Script = null,
string[] Scripts = null
};
Properties
Name | Type | Description |
---|---|---|
Type | string | No description. |
Connection | object | Most provisioners require access to the remote resource via SSH or WinRM and expect a nested connection block with details about how to connect. |
Inline | string[] | This is a list of command strings. |
Script | string | This is a path (relative or absolute) to a local script that will be copied to the remote resource and then executed. |
Scripts | string[] | This is a list of paths (relative or absolute) to local scripts that will be copied to the remote resource and then executed. |
Type
Required
public string Type { get; set; }
- Type: string
Connection
Optional
public object Connection { get; set; }
- Type: object
Most provisioners require access to the remote resource via SSH or WinRM and expect a nested connection block with details about how to connect.
A connection must be provided here or in the parent resource.
Inline
Optional
public string[] Inline { get; set; }
- Type: string[]
This is a list of command strings.
They are executed in the order they are provided. This cannot be provided with script or scripts.
Script
Optional
public string Script { get; set; }
- Type: string
This is a path (relative or absolute) to a local script that will be copied to the remote resource and then executed.
This cannot be provided with inline or scripts.
Scripts
Optional
public string[] Scripts { get; set; }
- Type: string[]
This is a list of paths (relative or absolute) to local scripts that will be copied to the remote resource and then executed.
They are executed in the order they are provided. This cannot be provided with inline or script.
ResolveOptions
Options to the resolve() operation.
NOT the same as the ResolveContext; ResolveContext is exposed to Token implementors and resolution hooks, whereas this struct is just to bundle a number of things that would otherwise be arguments to resolve() in a readable way.
Initializer
using HashiCorp.Cdktf;
new ResolveOptions {
ITokenResolver Resolver,
IConstruct Scope,
bool Preparing = null
};
Properties
Name | Type | Description |
---|---|---|
Resolver | ITokenResolver | The resolver to apply to any resolvable tokens found. |
Scope | Constructs.IConstruct | The scope from which resolution is performed. |
Preparing | bool | Whether the resolution is being executed during the prepare phase or not. |
Resolver
Required
public ITokenResolver Resolver { get; set; }
- Type: ITokenResolver
The resolver to apply to any resolvable tokens found.
Scope
Required
public IConstruct Scope { get; set; }
- Type: Constructs.IConstruct
The scope from which resolution is performed.
Preparing
Optional
public bool Preparing { get; set; }
- Type: bool
- Default: false
Whether the resolution is being executed during the prepare phase or not.
S3BackendAssumeRoleConfig
Initializer
using HashiCorp.Cdktf;
new S3BackendAssumeRoleConfig {
string RoleArn,
string Duration = null,
string ExternalId = null,
string Policy = null,
string[] PolicyArns = null,
string SessionName = null,
string SourceIdentity = null,
System.Collections.Generic.IDictionary< string, string > Tags = null,
string[] TransitiveTagKeys = null
};
Properties
Name | Type | Description |
---|---|---|
RoleArn | string | (Required) Amazon Resource Name (ARN) of the IAM Role to assume. |
Duration | string | (Optional) The duration individual credentials will be valid. |
ExternalId | string | (Optional) External identifier to use when assuming the role. |
Policy | string | (Optional) IAM Policy JSON describing further restricting permissions for the IAM Role being assumed. |
PolicyArns | string[] | (Optional) Set of Amazon Resource Names (ARNs) of IAM Policies describing further restricting permissions for the IAM Role being assumed. |
SessionName | string | (Optional) Session name to use when assuming the role. |
SourceIdentity | string | (Optional) Source identity specified by the principal assuming the. |
Tags | System.Collections.Generic.IDictionary< string, string > | (Optional) Map of assume role session tags. |
TransitiveTagKeys | string[] | (Optional) Set of assume role session tag keys to pass to any subsequent sessions. |
RoleArn
Required
public string RoleArn { get; set; }
- Type: string
(Required) Amazon Resource Name (ARN) of the IAM Role to assume.
Duration
Optional
public string Duration { get; set; }
- Type: string
(Optional) The duration individual credentials will be valid.
Credentials are automatically renewed up to the maximum defined by the AWS account. Specified using the format < hours >h< minutes >m< seconds >s with any unit being optional. For example, an hour and a half can be specified as 1h30m or 90m. Must be between 15 minutes (15m) and 12 hours (12h).
ExternalId
Optional
public string ExternalId { get; set; }
- Type: string
(Optional) External identifier to use when assuming the role.
Policy
Optional
public string Policy { get; set; }
- Type: string
(Optional) IAM Policy JSON describing further restricting permissions for the IAM Role being assumed.
PolicyArns
Optional
public string[] PolicyArns { get; set; }
- Type: string[]
(Optional) Set of Amazon Resource Names (ARNs) of IAM Policies describing further restricting permissions for the IAM Role being assumed.
SessionName
Optional
public string SessionName { get; set; }
- Type: string
(Optional) Session name to use when assuming the role.
SourceIdentity
Optional
public string SourceIdentity { get; set; }
- Type: string
(Optional) Source identity specified by the principal assuming the.
Tags
Optional
public System.Collections.Generic.IDictionary< string, string > Tags { get; set; }
- Type: System.Collections.Generic.IDictionary< string, string >
(Optional) Map of assume role session tags.
TransitiveTagKeys
Optional
public string[] TransitiveTagKeys { get; set; }
- Type: string[]
(Optional) Set of assume role session tag keys to pass to any subsequent sessions.
S3BackendAssumeRoleWithWebIdentityConfig
Initializer
using HashiCorp.Cdktf;
new S3BackendAssumeRoleWithWebIdentityConfig {
string Duration = null,
string Policy = null,
string[] PolicyArns = null,
string RoleArn = null,
string SessionName = null,
string WebIdentityToken = null,
string WebIdentityTokenFile = null
};
Properties
Name | Type | Description |
---|---|---|
Duration | string | (Optional) The duration individual credentials will be valid. |
Policy | string | (Optional) IAM Policy JSON describing further restricting permissions for the IAM Role being assumed. |
PolicyArns | string[] | (Optional) Set of Amazon Resource Names (ARNs) of IAM Policies describing further restricting permissions for the IAM Role being assumed. |
RoleArn | string | (Required) Amazon Resource Name (ARN) of the IAM Role to assume. |
SessionName | string | (Optional) Session name to use when assuming the role. |
WebIdentityToken | string | (Optional) The value of a web identity token from an OpenID Connect (OIDC) or OAuth provider. |
WebIdentityTokenFile | string | (Optional) File containing a web identity token from an OpenID Connect (OIDC) or OAuth provider. |
Duration
Optional
public string Duration { get; set; }
- Type: string
(Optional) The duration individual credentials will be valid.
Credentials are automatically renewed up to the maximum defined by the AWS account. Specified using the format < hours >h< minutes >m< seconds >s with any unit being optional. For example, an hour and a half can be specified as 1h30m or 90m. Must be between 15 minutes (15m) and 12 hours (12h).
Policy
Optional
public string Policy { get; set; }
- Type: string
(Optional) IAM Policy JSON describing further restricting permissions for the IAM Role being assumed.
PolicyArns
Optional
public string[] PolicyArns { get; set; }
- Type: string[]
(Optional) Set of Amazon Resource Names (ARNs) of IAM Policies describing further restricting permissions for the IAM Role being assumed.
RoleArn
Optional
public string RoleArn { get; set; }
- Type: string
(Required) Amazon Resource Name (ARN) of the IAM Role to assume.
Can also be set with the AWS_ROLE_ARN environment variable.
SessionName
Optional
public string SessionName { get; set; }
- Type: string
(Optional) Session name to use when assuming the role.
Can also be set with the AWS_ROLE_SESSION_NAME environment variable.
WebIdentityToken
Optional
public string WebIdentityToken { get; set; }
- Type: string
(Optional) The value of a web identity token from an OpenID Connect (OIDC) or OAuth provider.
One of web_identity_token or web_identity_token_file is required.
WebIdentityTokenFile
Optional
public string WebIdentityTokenFile { get; set; }
- Type: string
(Optional) File containing a web identity token from an OpenID Connect (OIDC) or OAuth provider.
One of web_identity_token_file or web_identity_token is required. Can also be set with the AWS_WEB_IDENTITY_TOKEN_FILE environment variable.
S3BackendConfig
Stores the state as a given key in a given bucket on Amazon S3.
This backend also supports state locking and consistency checking via Dynamo DB, which can be enabled by setting the dynamodb_table field to an existing DynamoDB table name. A single DynamoDB table can be used to lock multiple remote state files. Terraform generates key names that include the values of the bucket and key variables.
Warning! It is highly recommended that you enable Bucket Versioning on the S3 bucket to allow for state recovery in the case of accidental deletions and human error.
Read more about this backend in the Terraform docs: https://developer.hashicorp.com/terraform/language/settings/backends/s3
Initializer
using HashiCorp.Cdktf;
new S3BackendConfig {
string Bucket,
string Key,
string AccessKey = null,
string Acl = null,
string AllowedAccountIds = null,
S3BackendAssumeRoleConfig AssumeRole = null,
string AssumeRolePolicy = null,
string[] AssumeRolePolicyArns = null,
System.Collections.Generic.IDictionary< string, string > AssumeRoleTags = null,
string[] AssumeRoleTransitiveTagKeys = null,
S3BackendAssumeRoleWithWebIdentityConfig AssumeRoleWithWebIdentity = null,
string CustomCaBundle = null,
string DynamodbEndpoint = null,
string DynamodbTable = null,
string Ec2MetadataServiceEndpoint = null,
string Ec2MetadataServiceEndpointMode = null,
bool Encrypt = null,
string Endpoint = null,
S3BackendEndpointConfig Endpoints = null,
string ExternalId = null,
string ForbiddenAccountIds = null,
bool ForcePathStyle = null,
string HttpProxy = null,
string HttpsProxy = null,
string IamEndpoint = null,
bool Insecure = null,
string KmsKeyId = null,
double MaxRetries = null,
string NoProxy = null,
string Profile = null,
string Region = null,
string RetryMode = null,
string RoleArn = null,
string SecretKey = null,
string SessionName = null,
string[] SharedConfigFiles = null,
string SharedCredentialsFile = null,
string[] SharedCredentialsFiles = null,
bool SkipCredentialsValidation = null,
bool SkipMetadataApiCheck = null,
bool SkipRegionValidation = null,
bool SkipRequestingAccountId = null,
bool SkipS3Checksum = null,
string SseCustomerKey = null,
string StsEndpoint = null,
string StsRegion = null,
string Token = null,
bool UseLegacyWorkflow = null,
bool UsePathStyle = null,
string WorkspaceKeyPrefix = null
};
Properties
Name | Type | Description |
---|---|---|
Bucket | string | Name of the S3 Bucket. |
Key | string | Path to the state file inside the S3 Bucket. |
AccessKey | string | (Optional) AWS access key. |
Acl | string | (Optional) Canned ACL to be applied to the state file. |
AllowedAccountIds | string | (Optional) List of allowed AWS account IDs to prevent potential destruction of a live environment. |
AssumeRole | S3BackendAssumeRoleConfig | Assuming an IAM Role can be configured in two ways. |
AssumeRolePolicy | string | (Optional) IAM Policy JSON describing further restricting permissions for the IAM Role being assumed. |
AssumeRolePolicyArns | string[] | (Optional) Set of Amazon Resource Names (ARNs) of IAM Policies describing further restricting permissions for the IAM Role being assumed. |
AssumeRoleTags | System.Collections.Generic.IDictionary< string, string > | (Optional) Map of assume role session tags. |
AssumeRoleTransitiveTagKeys | string[] | (Optional) Set of assume role session tag keys to pass to any subsequent sessions. |
AssumeRoleWithWebIdentity | S3BackendAssumeRoleWithWebIdentityConfig | Assume Role With Web Identity Configuration. |
CustomCaBundle | string | (Optional) File containing custom root and intermediate certificates. |
DynamodbEndpoint | string | (Optional) Custom endpoint for the AWS DynamoDB API. |
DynamodbTable | string | (Optional) Name of DynamoDB Table to use for state locking and consistency. |
Ec2MetadataServiceEndpoint | string | Optional) Custom endpoint URL for the EC2 Instance Metadata Service (IMDS) API. |
Ec2MetadataServiceEndpointMode | string | (Optional) Mode to use in communicating with the metadata service. |
Encrypt | bool | (Optional) Enable server side encryption of the state file. |
Endpoint | string | (Optional) Custom endpoint for the AWS S3 API. |
Endpoints | S3BackendEndpointConfig | (Optional) The endpoint configuration block. |
ExternalId | string | (Optional) External identifier to use when assuming the role. |
ForbiddenAccountIds | string | (Optional) List of forbidden AWS account IDs to prevent potential destruction of a live environment. |
ForcePathStyle | bool | (Optional) Enable path-style S3 URLs (https://< HOST >/< BUCKET > instead of https://< BUCKET >.< HOST >). |
HttpProxy | string | (Optional) URL of a proxy to use for HTTP requests when accessing the AWS API. |
HttpsProxy | string | (Optional) URL of a proxy to use for HTTPS requests when accessing the AWS API. |
IamEndpoint | string | (Optional) Custom endpoint for the AWS Identity and Access Management (IAM) API. |
Insecure | bool | Optional) Whether to explicitly allow the backend to perform "insecure" SSL requests. |
KmsKeyId | string | (Optional) Amazon Resource Name (ARN) of a Key Management Service (KMS) Key to use for encrypting the state. |
MaxRetries | double | (Optional) The maximum number of times an AWS API request is retried on retryable failure. |
NoProxy | string | (Optional) Comma-separated list of hosts that should not use HTTP or HTTPS proxies. |
Profile | string | (Optional) Name of AWS profile in AWS shared credentials file (e.g. ~/.aws/credentials) or AWS shared configuration file (e.g. ~/.aws/config) to use for credentials and/or configuration. This can also be sourced from the AWS_PROFILE environment variable. |
Region | string | AWS Region of the S3 Bucket and DynamoDB Table (if used). |
RetryMode | string | (Optional) Specifies how retries are attempted. |
RoleArn | string | (Optional) Amazon Resource Name (ARN) of the IAM Role to assume. |
SecretKey | string | (Optional) AWS secret access key. |
SessionName | string | (Optional) Session name to use when assuming the role. |
SharedConfigFiles | string[] | (Optional) List of paths to AWS shared configuration files. |
SharedCredentialsFile | string | (Optional) Path to the AWS shared credentials file. |
SharedCredentialsFiles | string[] | (Optional) List of paths to AWS shared credentials files. |
SkipCredentialsValidation | bool | (Optional) Skip credentials validation via the STS API. |
SkipMetadataApiCheck | bool | (Optional) Skip usage of EC2 Metadata API. |
SkipRegionValidation | bool | (Optional) Skip validation of provided region name. |
SkipRequestingAccountId | bool | (Optional) Whether to skip requesting the account ID. |
SkipS3Checksum | bool | (Optional) Do not include checksum when uploading S3 Objects. |
SseCustomerKey | string | (Optional) The key to use for encrypting state with Server-Side Encryption with Customer-Provided Keys (SSE-C). |
StsEndpoint | string | (Optional) Custom endpoint for the AWS Security Token Service (STS) API. |
StsRegion | string | (Optional) AWS region for STS. |
Token | string | (Optional) Multi-Factor Authentication (MFA) token. |
UseLegacyWorkflow | bool | (Optional) Use the legacy authentication workflow, preferring environment variables over backend configuration. |
UsePathStyle | bool | (Optional) Enable path-style S3 URLs (https://< HOST >/< BUCKET > instead of https://< BUCKET >.< HOST >). |
WorkspaceKeyPrefix | string | (Optional) Prefix applied to the state path inside the bucket. |
Bucket
Required
public string Bucket { get; set; }
- Type: string
Name of the S3 Bucket.
Key
Required
public string Key { get; set; }
- Type: string
Path to the state file inside the S3 Bucket.
When using a non-default workspace, the state path will be /workspace_key_prefix/workspace_name/key
AccessKey
Optional
public string AccessKey { get; set; }
- Type: string
(Optional) AWS access key.
If configured, must also configure secret_key. This can also be sourced from the AWS_ACCESS_KEY_ID environment variable, AWS shared credentials file (e.g. ~/.aws/credentials), or AWS shared configuration file (e.g. ~/.aws/config).
Acl
Optional
public string Acl { get; set; }
- Type: string
(Optional) Canned ACL to be applied to the state file.
AllowedAccountIds
Optional
public string AllowedAccountIds { get; set; }
- Type: string
(Optional) List of allowed AWS account IDs to prevent potential destruction of a live environment.
Conflicts with forbidden_account_ids.
AssumeRole
Optional
public S3BackendAssumeRoleConfig AssumeRole { get; set; }
Assuming an IAM Role can be configured in two ways.
The preferred way is to use the argument assume_role, the other, which is deprecated, is with arguments at the top level.
AssumeRolePolicy
Optional
AssumeRolePolicy
- Deprecated: Use assumeRole.policy instead.
public string AssumeRolePolicy { get; set; }
- Type: string
(Optional) IAM Policy JSON describing further restricting permissions for the IAM Role being assumed.
AssumeRolePolicyArns
Optional
AssumeRolePolicyArns
- Deprecated: Use assumeRole.policyArns instead.
public string[] AssumeRolePolicyArns { get; set; }
- Type: string[]
(Optional) Set of Amazon Resource Names (ARNs) of IAM Policies describing further restricting permissions for the IAM Role being assumed.
AssumeRoleTags
Optional
AssumeRoleTags
- Deprecated: Use assumeRole.tags instead.
public System.Collections.Generic.IDictionary< string, string > AssumeRoleTags { get; set; }
- Type: System.Collections.Generic.IDictionary< string, string >
(Optional) Map of assume role session tags.
AssumeRoleTransitiveTagKeys
Optional
AssumeRoleTransitiveTagKeys
- Deprecated: Use assumeRole.transitiveTagKeys instead.
public string[] AssumeRoleTransitiveTagKeys { get; set; }
- Type: string[]
(Optional) Set of assume role session tag keys to pass to any subsequent sessions.
AssumeRoleWithWebIdentity
Optional
public S3BackendAssumeRoleWithWebIdentityConfig AssumeRoleWithWebIdentity { get; set; }
Assume Role With Web Identity Configuration.
CustomCaBundle
Optional
public string CustomCaBundle { get; set; }
- Type: string
(Optional) File containing custom root and intermediate certificates.
Can also be set using the AWS_CA_BUNDLE environment variable. Setting ca_bundle in the shared config file is not supported.
DynamodbEndpoint
Optional
DynamodbEndpoint
- Deprecated: Use endpoints.dynamodb instead
public string DynamodbEndpoint { get; set; }
- Type: string
(Optional) Custom endpoint for the AWS DynamoDB API.
This can also be sourced from the AWS_DYNAMODB_ENDPOINT environment variable.
DynamodbTable
Optional
public string DynamodbTable { get; set; }
- Type: string
(Optional) Name of DynamoDB Table to use for state locking and consistency.
The table must have a partition key named LockID with type of String. If not configured, state locking will be disabled.
Ec2MetadataServiceEndpoint
Optional
public string Ec2MetadataServiceEndpoint { get; set; }
- Type: string
Optional) Custom endpoint URL for the EC2 Instance Metadata Service (IMDS) API.
Can also be set with the AWS_EC2_METADATA_SERVICE_ENDPOINT environment variable.
Ec2MetadataServiceEndpointMode
Optional
public string Ec2MetadataServiceEndpointMode { get; set; }
- Type: string
(Optional) Mode to use in communicating with the metadata service.
Valid values are IPv4 and IPv6. Can also be set with the AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE environment variable.
Encrypt
Optional
public bool Encrypt { get; set; }
- Type: bool
(Optional) Enable server side encryption of the state file.
Endpoint
Optional
Endpoint
- Deprecated: Use endpoints.s3 instead
public string Endpoint { get; set; }
- Type: string
(Optional) Custom endpoint for the AWS S3 API.
This can also be sourced from the AWS_S3_ENDPOINT environment variable.
Endpoints
Optional
public S3BackendEndpointConfig Endpoints { get; set; }
- Type: S3BackendEndpointConfig
(Optional) The endpoint configuration block.
ExternalId
Optional
ExternalId
- Deprecated: Use assume_role.external_id instead.
public string ExternalId { get; set; }
- Type: string
(Optional) External identifier to use when assuming the role.
ForbiddenAccountIds
Optional
public string ForbiddenAccountIds { get; set; }
- Type: string
(Optional) List of forbidden AWS account IDs to prevent potential destruction of a live environment.
Conflicts with allowed_account_ids.
ForcePathStyle
Optional
ForcePathStyle
- Deprecated: Use usePathStyle instead
public bool ForcePathStyle { get; set; }
- Type: bool
(Optional) Enable path-style S3 URLs (https://< HOST >/< BUCKET > instead of https://< BUCKET >.< HOST >).
HttpProxy
Optional
public string HttpProxy { get; set; }
- Type: string
(Optional) URL of a proxy to use for HTTP requests when accessing the AWS API.
Can also be set using the HTTP_PROXY or http_proxy environment variables.
HttpsProxy
Optional
public string HttpsProxy { get; set; }
- Type: string
(Optional) URL of a proxy to use for HTTPS requests when accessing the AWS API.
Can also be set using the HTTPS_PROXY or https_proxy environment variables.
IamEndpoint
Optional
IamEndpoint
- Deprecated: Use endpoints.iam instead
public string IamEndpoint { get; set; }
- Type: string
(Optional) Custom endpoint for the AWS Identity and Access Management (IAM) API.
This can also be sourced from the AWS_IAM_ENDPOINT environment variable.
Insecure
Optional
public bool Insecure { get; set; }
- Type: bool
Optional) Whether to explicitly allow the backend to perform "insecure" SSL requests.
If omitted, the default value is false.
KmsKeyId
Optional
public string KmsKeyId { get; set; }
- Type: string
(Optional) Amazon Resource Name (ARN) of a Key Management Service (KMS) Key to use for encrypting the state.
Note that if this value is specified, Terraform will need kms:Encrypt, kms:Decrypt and kms:GenerateDataKey permissions on this KMS key.
MaxRetries
Optional
public double MaxRetries { get; set; }
- Type: double
(Optional) The maximum number of times an AWS API request is retried on retryable failure.
Defaults to 5.
NoProxy
Optional
public string NoProxy { get; set; }
- Type: string
(Optional) Comma-separated list of hosts that should not use HTTP or HTTPS proxies.
Each value can be one of:
- A domain name
- An IP address
- A CIDR address
- An asterisk (*), to indicate that no proxying should be performed Domain name and IP address values can also include a port number. Can also be set using the NO_PROXY or no_proxy environment variables.
Profile
Optional
public string Profile { get; set; }
- Type: string
(Optional) Name of AWS profile in AWS shared credentials file (e.g. ~/.aws/credentials) or AWS shared configuration file (e.g. ~/.aws/config) to use for credentials and/or configuration. This can also be sourced from the AWS_PROFILE environment variable.
Region
Optional
public string Region { get; set; }
- Type: string
AWS Region of the S3 Bucket and DynamoDB Table (if used).
This can also be sourced from the AWS_DEFAULT_REGION and AWS_REGION environment variables.
RetryMode
Optional
public string RetryMode { get; set; }
- Type: string
(Optional) Specifies how retries are attempted.
Valid values are standard and adaptive. Can also be configured using the AWS_RETRY_MODE environment variable or the shared config file parameter retry_mode.
RoleArn
Optional
RoleArn
- Deprecated: Use assumeRole.roleArn instead.
public string RoleArn { get; set; }
- Type: string
(Optional) Amazon Resource Name (ARN) of the IAM Role to assume.
SecretKey
Optional
public string SecretKey { get; set; }
- Type: string
(Optional) AWS secret access key.
If configured, must also configure access_key. This can also be sourced from the AWS_SECRET_ACCESS_KEY environment variable, AWS shared credentials file (e.g. ~/.aws/credentials), or AWS shared configuration file (e.g. ~/.aws/config)
SessionName
Optional
SessionName
- Deprecated: Use assumeRole.sessionName instead.
public string SessionName { get; set; }
- Type: string
(Optional) Session name to use when assuming the role.
SharedConfigFiles
Optional
public string[] SharedConfigFiles { get; set; }
- Type: string[]
(Optional) List of paths to AWS shared configuration files.
Defaults to ~/.aws/config.
SharedCredentialsFile
Optional
public string SharedCredentialsFile { get; set; }
- Type: string
(Optional) Path to the AWS shared credentials file.
Defaults to ~/.aws/credentials.
SharedCredentialsFiles
Optional
public string[] SharedCredentialsFiles { get; set; }
- Type: string[]
(Optional) List of paths to AWS shared credentials files.
Defaults to ~/.aws/credentials.
SkipCredentialsValidation
Optional
public bool SkipCredentialsValidation { get; set; }
- Type: bool
(Optional) Skip credentials validation via the STS API.
SkipMetadataApiCheck
Optional
public bool SkipMetadataApiCheck { get; set; }
- Type: bool
(Optional) Skip usage of EC2 Metadata API.
SkipRegionValidation
Optional
public bool SkipRegionValidation { get; set; }
- Type: bool
(Optional) Skip validation of provided region name.
SkipRequestingAccountId
Optional
public bool SkipRequestingAccountId { get; set; }
- Type: bool
(Optional) Whether to skip requesting the account ID.
Useful for AWS API implementations that do not have the IAM, STS API, or metadata API.
SkipS3Checksum
Optional
public bool SkipS3Checksum { get; set; }
- Type: bool
(Optional) Do not include checksum when uploading S3 Objects.
Useful for some S3-Compatible APIs.
SseCustomerKey
Optional
public string SseCustomerKey { get; set; }
- Type: string
(Optional) The key to use for encrypting state with Server-Side Encryption with Customer-Provided Keys (SSE-C).
This is the base64-encoded value of the key, which must decode to 256 bits. This can also be sourced from the AWS_SSE_CUSTOMER_KEY environment variable, which is recommended due to the sensitivity of the value. Setting it inside a terraform file will cause it to be persisted to disk in terraform.tfstate.
StsEndpoint
Optional
StsEndpoint
- Deprecated: Use endpoints.sts instead
public string StsEndpoint { get; set; }
- Type: string
(Optional) Custom endpoint for the AWS Security Token Service (STS) API.
This can also be sourced from the AWS_STS_ENDPOINT environment variable.
StsRegion
Optional
public string StsRegion { get; set; }
- Type: string
(Optional) AWS region for STS.
If unset, AWS will use the same region for STS as other non-STS operations.
Token
Optional
public string Token { get; set; }
- Type: string
(Optional) Multi-Factor Authentication (MFA) token.
This can also be sourced from the AWS_SESSION_TOKEN environment variable.
UseLegacyWorkflow
Optional
public bool UseLegacyWorkflow { get; set; }
- Type: bool
(Optional) Use the legacy authentication workflow, preferring environment variables over backend configuration.
Defaults to true. This behavior does not align with the authentication flow of the AWS CLI or SDK's, and will be removed in the future.
UsePathStyle
Optional
public bool UsePathStyle { get; set; }
- Type: bool
(Optional) Enable path-style S3 URLs (https://< HOST >/< BUCKET > instead of https://< BUCKET >.< HOST >).
WorkspaceKeyPrefix
Optional
public string WorkspaceKeyPrefix { get; set; }
- Type: string
(Optional) Prefix applied to the state path inside the bucket.
This is only relevant when using a non-default workspace. Defaults to env:
S3BackendEndpointConfig
Initializer
using HashiCorp.Cdktf;
new S3BackendEndpointConfig {
string Dynamodb = null,
string Iam = null,
string S3 = null,
string Sso = null,
string Sts = null
};
Properties
Name | Type | Description |
---|---|---|
Dynamodb | string | (Optional) Custom endpoint URL for the AWS DynamoDB API. |
Iam | string | (Optional) Custom endpoint URL for the AWS IAM API. |
S3 | string | (Optional) Custom endpoint URL for the AWS S3 API. |
Sso | string | (Optional) Custom endpoint URL for the AWS IAM Identity Center (formerly known as AWS SSO) API. |
Sts | string | (Optional) Custom endpoint URL for the AWS STS API. |
Dynamodb
Optional
public string Dynamodb { get; set; }
- Type: string
(Optional) Custom endpoint URL for the AWS DynamoDB API.
This can also be sourced from the environment variable AWS_ENDPOINT_URL_DYNAMODB or the deprecated environment variable AWS_DYNAMODB_ENDPOINT.
Iam
Optional
public string Iam { get; set; }
- Type: string
(Optional) Custom endpoint URL for the AWS IAM API.
This can also be sourced from the environment variable AWS_ENDPOINT_URL_IAM or the deprecated environment variable AWS_IAM_ENDPOINT.
S3
Optional
public string S3 { get; set; }
- Type: string
(Optional) Custom endpoint URL for the AWS S3 API.
This can also be sourced from the environment variable AWS_ENDPOINT_URL_S3 or the deprecated environment variable AWS_S3_ENDPOINT.
Sso
Optional
public string Sso { get; set; }
- Type: string
(Optional) Custom endpoint URL for the AWS IAM Identity Center (formerly known as AWS SSO) API.
This can also be sourced from the environment variable AWS_ENDPOINT_URL_SSO.
Sts
Optional
public string Sts { get; set; }
- Type: string
(Optional) Custom endpoint URL for the AWS STS API.
This can also be sourced from the environment variable AWS_ENDPOINT_URL_STS or the deprecated environment variable AWS_STS_ENDPOINT.
SSHProvisionerConnection
Most provisioners require access to the remote resource via SSH or WinRM and expect a nested connection block with details about how to connect.
Refer to {@link https://developer.hashicorp.com/terraform/language/resources/provisioners/connection connection}
Initializer
using HashiCorp.Cdktf;
new SSHProvisionerConnection {
string Host,
string Type,
string Agent = null,
string AgentIdentity = null,
string BastionCertificate = null,
string BastionHost = null,
string BastionHostKey = null,
string BastionPassword = null,
double BastionPort = null,
string BastionPrivateKey = null,
string BastionUser = null,
string Certificate = null,
string HostKey = null,
string Password = null,
double Port = null,
string PrivateKey = null,
string ProxyHost = null,
double ProxyPort = null,
string ProxyScheme = null,
string ProxyUserName = null,
string ProxyUserPassword = null,
string ScriptPath = null,
string TargetPlatform = null,
string Timeout = null,
string User = null
};
Properties
Name | Type | Description |
---|---|---|
Host | string | The address of the resource to connect to. |
Type | string | The connection type. |
Agent | string | Set to false to disable using ssh-agent to authenticate. |
AgentIdentity | string | The preferred identity from the ssh agent for authentication. |
BastionCertificate | string | The contents of a signed CA Certificate. |
BastionHost | string | Setting this enables the bastion Host connection. |
BastionHostKey | string | The public key from the remote host or the signing CA, used to verify the host connection. |
BastionPassword | string | The password to use for the bastion host. |
BastionPort | double | The port to use connect to the bastion host. |
BastionPrivateKey | string | The contents of an SSH key file to use for the bastion host. |
BastionUser | string | The user for the connection to the bastion host. |
Certificate | string | The contents of a signed CA Certificate. |
HostKey | string | The public key from the remote host or the signing CA, used to verify the connection. |
Password | string | The password to use for the connection. |
Port | double | The port to connect to. |
PrivateKey | string | The contents of an SSH key to use for the connection. |
ProxyHost | string | Setting this enables the SSH over HTTP connection. |
ProxyPort | double | The port to use connect to the proxy host. |
ProxyScheme | string | The ssh connection also supports the following fields to facilitate connections by SSH over HTTP proxy. |
ProxyUserName | string | The username to use connect to the private proxy host. |
ProxyUserPassword | string | The password to use connect to the private proxy host. |
ScriptPath | string | The path used to copy scripts meant for remote execution. |
TargetPlatform | string | The target platform to connect to. |
Timeout | string | The timeout to wait for the connection to become available. |
User | string | The user to use for the connection. |
Host
Required
public string Host { get; set; }
- Type: string
The address of the resource to connect to.
Type
Required
public string Type { get; set; }
- Type: string
The connection type.
Valid values are "ssh" and "winrm". Provisioners typically assume that the remote system runs Microsoft Windows when using WinRM. Behaviors based on the SSH target_platform will force Windows-specific behavior for WinRM, unless otherwise specified.
Agent
Optional
public string Agent { get; set; }
- Type: string
Set to false to disable using ssh-agent to authenticate.
On Windows the only supported SSH authentication agent is Pageant.
AgentIdentity
Optional
public string AgentIdentity { get; set; }
- Type: string
The preferred identity from the ssh agent for authentication.
BastionCertificate
Optional
public string BastionCertificate { get; set; }
- Type: string
The contents of a signed CA Certificate.
The certificate argument must be used in conjunction with a bastion_private_key. These can be loaded from a file on disk using the the file function.
BastionHost
Optional
public string BastionHost { get; set; }
- Type: string
Setting this enables the bastion Host connection.
The provisioner will connect to bastion_host first, and then connect from there to host.
BastionHostKey
Optional
public string BastionHostKey { get; set; }
- Type: string
The public key from the remote host or the signing CA, used to verify the host connection.
BastionPassword
Optional
public string BastionPassword { get; set; }
- Type: string
The password to use for the bastion host.
BastionPort
Optional
public double BastionPort { get; set; }
- Type: double
The port to use connect to the bastion host.
BastionPrivateKey
Optional
public string BastionPrivateKey { get; set; }
- Type: string
The contents of an SSH key file to use for the bastion host.
These can be loaded from a file on disk using the file function.
BastionUser
Optional
public string BastionUser { get; set; }
- Type: string
The user for the connection to the bastion host.
Certificate
Optional
public string Certificate { get; set; }
- Type: string
The contents of a signed CA Certificate.
The certificate argument must be used in conjunction with a private_key. These can be loaded from a file on disk using the the file function.
HostKey
Optional
public string HostKey { get; set; }
- Type: string
The public key from the remote host or the signing CA, used to verify the connection.
Password
Optional
public string Password { get; set; }
- Type: string
The password to use for the connection.
Port
Optional
public double Port { get; set; }
- Type: double
- Default: 22
The port to connect to.
PrivateKey
Optional
public string PrivateKey { get; set; }
- Type: string
The contents of an SSH key to use for the connection.
These can be loaded from a file on disk using the file function. This takes preference over password if provided.
ProxyHost
Optional
public string ProxyHost { get; set; }
- Type: string
Setting this enables the SSH over HTTP connection.
This host will be connected to first, and then the host or bastion_host connection will be made from there.
ProxyPort
Optional
public double ProxyPort { get; set; }
- Type: double
The port to use connect to the proxy host.
ProxyScheme
Optional
public string ProxyScheme { get; set; }
- Type: string
The ssh connection also supports the following fields to facilitate connections by SSH over HTTP proxy.
ProxyUserName
Optional
public string ProxyUserName { get; set; }
- Type: string
The username to use connect to the private proxy host.
This argument should be specified only if authentication is required for the HTTP Proxy server.
ProxyUserPassword
Optional
public string ProxyUserPassword { get; set; }
- Type: string
The password to use connect to the private proxy host.
This argument should be specified only if authentication is required for the HTTP Proxy server.
ScriptPath
Optional
public string ScriptPath { get; set; }
- Type: string
The path used to copy scripts meant for remote execution.
Refer to {@link https://developer.hashicorp.com/terraform/language/resources/provisioners/connection#how-provisioners-execute-remote-scripts How Provisioners Execute Remote Scripts below for more details}
TargetPlatform
Optional
public string TargetPlatform { get; set; }
- Type: string
- Default: unix
The target platform to connect to.
Valid values are "windows" and "unix". If the platform is set to windows, the default scriptpath is c:\windows\temp\terraform%RAND%.cmd, assuming the SSH default shell is cmd.exe. If the SSH default shell is PowerShell, set scriptpath to "c:/windows/temp/terraform%RAND%.ps1"
Timeout
Optional
public string Timeout { get; set; }
- Type: string
- Default: 5m
The timeout to wait for the connection to become available.
Should be provided as a string (e.g., "30s" or "5m".)
User
Optional
public string User { get; set; }
- Type: string
- Default: root
The user to use for the connection.
StackAnnotation
Initializer
using HashiCorp.Cdktf;
new StackAnnotation {
string ConstructPath,
AnnotationMetadataEntryType Level,
string Message,
string[] Stacktrace = null
};
Properties
Name | Type | Description |
---|---|---|
ConstructPath | string | No description. |
Level | AnnotationMetadataEntryType | No description. |
Message | string | No description. |
Stacktrace | string[] | No description. |
ConstructPath
Required
public string ConstructPath { get; set; }
- Type: string
Level
Required
public AnnotationMetadataEntryType Level { get; set; }
Message
Required
public string Message { get; set; }
- Type: string
Stacktrace
Optional
public string[] Stacktrace { get; set; }
- Type: string[]
StackManifest
Initializer
using HashiCorp.Cdktf;
new StackManifest {
StackAnnotation[] Annotations,
string ConstructPath,
string[] Dependencies,
string Name,
string StackMetadataPath,
string SynthesizedStackPath,
string WorkingDirectory
};
Properties
Name | Type | Description |
---|---|---|
Annotations | StackAnnotation[] | No description. |
ConstructPath | string | No description. |
Dependencies | string[] | No description. |
Name | string | No description. |
StackMetadataPath | string | No description. |
SynthesizedStackPath | string | No description. |
WorkingDirectory | string | No description. |
Annotations
Required
public StackAnnotation[] Annotations { get; set; }
- Type: StackAnnotation[]
ConstructPath
Required
public string ConstructPath { get; set; }
- Type: string
Dependencies
Required
public string[] Dependencies { get; set; }
- Type: string[]
Name
Required
public string Name { get; set; }
- Type: string
StackMetadataPath
Required
public string StackMetadataPath { get; set; }
- Type: string
SynthesizedStackPath
Required
public string SynthesizedStackPath { get; set; }
- Type: string
WorkingDirectory
Required
public string WorkingDirectory { get; set; }
- Type: string
SwiftBackendConfig
Initializer
using HashiCorp.Cdktf;
new SwiftBackendConfig {
string Container,
string ApplicationCredentialId = null,
string ApplicationCredentialName = null,
string ApplicationCredentialSecret = null,
string ArchiveContainer = null,
string AuthUrl = null,
string CacertFile = null,
string Cert = null,
string Cloud = null,
string DefaultDomain = null,
string DomainId = null,
string DomainName = null,
string ExpireAfter = null,
bool Insecure = null,
string Key = null,
string Password = null,
string ProjectDomainId = null,
string ProjectDomainName = null,
string RegionName = null,
string StateName = null,
string TenantId = null,
string TenantName = null,
string Token = null,
string UserDomainId = null,
string UserDomainName = null,
string UserId = null,
string UserName = null
};
Properties
Name | Type | Description |
---|---|---|
Container | string | No description. |
ApplicationCredentialId | string | No description. |
ApplicationCredentialName | string | No description. |
ApplicationCredentialSecret | string | No description. |
ArchiveContainer | string | No description. |
AuthUrl | string | No description. |
CacertFile | string | No description. |
Cert | string | No description. |
Cloud | string | No description. |
DefaultDomain | string | No description. |
DomainId | string | No description. |
DomainName | string | No description. |
ExpireAfter | string | No description. |
Insecure | bool | No description. |
Key | string | No description. |
Password | string | No description. |
ProjectDomainId | string | No description. |
ProjectDomainName | string | No description. |
RegionName | string | No description. |
StateName | string | No description. |
TenantId | string | No description. |
TenantName | string | No description. |
Token | string | No description. |
UserDomainId | string | No description. |
UserDomainName | string | No description. |
UserId | string | No description. |
UserName | string | No description. |
Container
Required
Container
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string Container { get; set; }
- Type: string
ApplicationCredentialId
Optional
ApplicationCredentialId
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string ApplicationCredentialId { get; set; }
- Type: string
ApplicationCredentialName
Optional
ApplicationCredentialName
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string ApplicationCredentialName { get; set; }
- Type: string
ApplicationCredentialSecret
Optional
ApplicationCredentialSecret
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string ApplicationCredentialSecret { get; set; }
- Type: string
ArchiveContainer
Optional
ArchiveContainer
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string ArchiveContainer { get; set; }
- Type: string
AuthUrl
Optional
AuthUrl
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string AuthUrl { get; set; }
- Type: string
CacertFile
Optional
CacertFile
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string CacertFile { get; set; }
- Type: string
Cert
Optional
Cert
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string Cert { get; set; }
- Type: string
Cloud
Optional
Cloud
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string Cloud { get; set; }
- Type: string
DefaultDomain
Optional
DefaultDomain
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string DefaultDomain { get; set; }
- Type: string
DomainId
Optional
DomainId
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string DomainId { get; set; }
- Type: string
DomainName
Optional
DomainName
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string DomainName { get; set; }
- Type: string
ExpireAfter
Optional
ExpireAfter
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string ExpireAfter { get; set; }
- Type: string
Insecure
Optional
Insecure
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public bool Insecure { get; set; }
- Type: bool
Key
Optional
Key
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string Key { get; set; }
- Type: string
Password
Optional
Password
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string Password { get; set; }
- Type: string
ProjectDomainId
Optional
ProjectDomainId
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string ProjectDomainId { get; set; }
- Type: string
ProjectDomainName
Optional
ProjectDomainName
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string ProjectDomainName { get; set; }
- Type: string
RegionName
Optional
RegionName
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string RegionName { get; set; }
- Type: string
StateName
Optional
StateName
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string StateName { get; set; }
- Type: string
TenantId
Optional
TenantId
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string TenantId { get; set; }
- Type: string
TenantName
Optional
TenantName
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string TenantName { get; set; }
- Type: string
Token
Optional
Token
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string Token { get; set; }
- Type: string
UserDomainId
Optional
UserDomainId
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string UserDomainId { get; set; }
- Type: string
UserDomainName
Optional
UserDomainName
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string UserDomainName { get; set; }
- Type: string
UserId
Optional
UserId
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string UserId { get; set; }
- Type: string
UserName
Optional
UserName
- Deprecated: CDK for Terraform no longer supports the swift backend. Terraform deprecated swift in v1.2.3 and removed it in v1.3.
public string UserName { get; set; }
- Type: string
TerraformAssetConfig
Initializer
using HashiCorp.Cdktf;
new TerraformAssetConfig {
string Path,
string AssetHash = null,
AssetType Type = null
};
Properties
Name | Type | Description |
---|---|---|
Path | string | No description. |
AssetHash | string | No description. |
Type | AssetType | No description. |
Path
Required
public string Path { get; set; }
- Type: string
AssetHash
Optional
public string AssetHash { get; set; }
- Type: string
Type
Optional
public AssetType Type { get; set; }
- Type: AssetType
TerraformCondition
Initializer
using HashiCorp.Cdktf;
new TerraformCondition {
object Condition,
string ErrorMessage
};
Properties
Name | Type | Description |
---|---|---|
Condition | object | This is a boolean expression that should return true if the intended assumption or guarantee is fulfilled or false if it does not. |
ErrorMessage | string | This contains the text that Terraform will include as part of error messages when it detects an unmet condition. |
Condition
Required
public object Condition { get; set; }
- Type: object
This is a boolean expression that should return true if the intended assumption or guarantee is fulfilled or false if it does not.
ErrorMessage
Required
public string ErrorMessage { get; set; }
- Type: string
This contains the text that Terraform will include as part of error messages when it detects an unmet condition.
TerraformConstructor
Initializer
using HashiCorp.Cdktf;
new TerraformConstructor {
string TfResourceType
};
Properties
Name | Type | Description |
---|---|---|
TfResourceType | string | No description. |
TfResourceType
Required
public string TfResourceType { get; set; }
- Type: string
TerraformElementMetadata
Initializer
using HashiCorp.Cdktf;
new TerraformElementMetadata {
string Path,
string[] StackTrace,
string UniqueId
};
Properties
Name | Type | Description |
---|---|---|
Path | string | No description. |
StackTrace | string[] | No description. |
UniqueId | string | No description. |
Path
Required
public string Path { get; set; }
- Type: string
StackTrace
Required
public string[] StackTrace { get; set; }
- Type: string[]
UniqueId
Required
public string UniqueId { get; set; }
- Type: string
TerraformHclModuleConfig
Initializer
using HashiCorp.Cdktf;
new TerraformHclModuleConfig {
ITerraformDependable[] DependsOn = null,
ITerraformIterator ForEach = null,
object[] Providers = null,
bool SkipAssetCreationFromLocalModules = null,
string Source,
string Version = null,
System.Collections.Generic.IDictionary< string, object > Variables = null
};
Properties
Name | Type | Description |
---|---|---|
DependsOn | ITerraformDependable[] | No description. |
ForEach | ITerraformIterator | No description. |
Providers | object[] | No description. |
SkipAssetCreationFromLocalModules | bool | No description. |
Source | string | No description. |
Version | string | No description. |
Variables | System.Collections.Generic.IDictionary< string, object > | No description. |
DependsOn
Optional
public ITerraformDependable[] DependsOn { get; set; }
- Type: ITerraformDependable[]
ForEach
Optional
public ITerraformIterator ForEach { get; set; }
- Type: ITerraformIterator
Providers
Optional
public object[] Providers { get; set; }
- Type: object[]
SkipAssetCreationFromLocalModules
Optional
public bool SkipAssetCreationFromLocalModules { get; set; }
- Type: bool
Source
Required
public string Source { get; set; }
- Type: string
Version
Optional
public string Version { get; set; }
- Type: string
Variables
Optional
public System.Collections.Generic.IDictionary< string, object > Variables { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
TerraformMetaArguments
Initializer
using HashiCorp.Cdktf;
new TerraformMetaArguments {
object Connection = null,
object Count = null,
ITerraformDependable[] DependsOn = null,
ITerraformIterator ForEach = null,
TerraformResourceLifecycle Lifecycle = null,
TerraformProvider Provider = null,
object[] Provisioners = null
};
Properties
Name | Type | Description |
---|---|---|
Connection | object | No description. |
Count | object | No description. |
DependsOn | ITerraformDependable[] | No description. |
ForEach | ITerraformIterator | No description. |
Lifecycle | TerraformResourceLifecycle | No description. |
Provider | TerraformProvider | No description. |
Provisioners | object[] | No description. |
Connection
Optional
public object Connection { get; set; }
- Type: object
Count
Optional
public object Count { get; set; }
- Type: object
DependsOn
Optional
public ITerraformDependable[] DependsOn { get; set; }
- Type: ITerraformDependable[]
ForEach
Optional
public ITerraformIterator ForEach { get; set; }
- Type: ITerraformIterator
Lifecycle
Optional
public TerraformResourceLifecycle Lifecycle { get; set; }
Provider
Optional
public TerraformProvider Provider { get; set; }
- Type: TerraformProvider
Provisioners
Optional
public object[] Provisioners { get; set; }
- Type: object[]
TerraformModuleConfig
Initializer
using HashiCorp.Cdktf;
new TerraformModuleConfig {
ITerraformDependable[] DependsOn = null,
ITerraformIterator ForEach = null,
object[] Providers = null,
bool SkipAssetCreationFromLocalModules = null,
string Source,
string Version = null
};
Properties
Name | Type | Description |
---|---|---|
DependsOn | ITerraformDependable[] | No description. |
ForEach | ITerraformIterator | No description. |
Providers | object[] | No description. |
SkipAssetCreationFromLocalModules | bool | No description. |
Source | string | No description. |
Version | string | No description. |
DependsOn
Optional
public ITerraformDependable[] DependsOn { get; set; }
- Type: ITerraformDependable[]
ForEach
Optional
public ITerraformIterator ForEach { get; set; }
- Type: ITerraformIterator
Providers
Optional
public object[] Providers { get; set; }
- Type: object[]
SkipAssetCreationFromLocalModules
Optional
public bool SkipAssetCreationFromLocalModules { get; set; }
- Type: bool
Source
Required
public string Source { get; set; }
- Type: string
Version
Optional
public string Version { get; set; }
- Type: string
TerraformModuleProvider
Initializer
using HashiCorp.Cdktf;
new TerraformModuleProvider {
string ModuleAlias,
TerraformProvider Provider
};
Properties
Name | Type | Description |
---|---|---|
ModuleAlias | string | No description. |
Provider | TerraformProvider | No description. |
ModuleAlias
Required
public string ModuleAlias { get; set; }
- Type: string
Provider
Required
public TerraformProvider Provider { get; set; }
- Type: TerraformProvider
TerraformModuleUserConfig
Initializer
using HashiCorp.Cdktf;
new TerraformModuleUserConfig {
ITerraformDependable[] DependsOn = null,
ITerraformIterator ForEach = null,
object[] Providers = null,
bool SkipAssetCreationFromLocalModules = null
};
Properties
Name | Type | Description |
---|---|---|
DependsOn | ITerraformDependable[] | No description. |
ForEach | ITerraformIterator | No description. |
Providers | object[] | No description. |
SkipAssetCreationFromLocalModules | bool | No description. |
DependsOn
Optional
public ITerraformDependable[] DependsOn { get; set; }
- Type: ITerraformDependable[]
ForEach
Optional
public ITerraformIterator ForEach { get; set; }
- Type: ITerraformIterator
Providers
Optional
public object[] Providers { get; set; }
- Type: object[]
SkipAssetCreationFromLocalModules
Optional
public bool SkipAssetCreationFromLocalModules { get; set; }
- Type: bool
TerraformOutputConfig
Initializer
using HashiCorp.Cdktf;
new TerraformOutputConfig {
object Value,
ITerraformDependable[] DependsOn = null,
string Description = null,
Precondition Precondition = null,
bool Sensitive = null,
bool StaticId = null
};
Properties
Name | Type | Description |
---|---|---|
Value | object | No description. |
DependsOn | ITerraformDependable[] | No description. |
Description | string | No description. |
Precondition | Precondition | No description. |
Sensitive | bool | No description. |
StaticId | bool | If set to true the synthesized Terraform Output will be named after the id passed to the constructor instead of the default (TerraformOutput.friendlyUniqueId). |
Value
Required
public object Value { get; set; }
- Type: object
DependsOn
Optional
public ITerraformDependable[] DependsOn { get; set; }
- Type: ITerraformDependable[]
Description
Optional
public string Description { get; set; }
- Type: string
Precondition
Optional
public Precondition Precondition { get; set; }
- Type: Precondition
Sensitive
Optional
public bool Sensitive { get; set; }
- Type: bool
StaticId
Optional
public bool StaticId { get; set; }
- Type: bool
- Default: false
If set to true the synthesized Terraform Output will be named after the id
passed to the constructor instead of the default (TerraformOutput.friendlyUniqueId).
TerraformProviderConfig
Initializer
using HashiCorp.Cdktf;
new TerraformProviderConfig {
string TerraformResourceType,
TerraformProviderGeneratorMetadata TerraformGeneratorMetadata = null,
string TerraformProviderSource = null
};
Properties
Name | Type | Description |
---|---|---|
TerraformResourceType | string | No description. |
TerraformGeneratorMetadata | TerraformProviderGeneratorMetadata | No description. |
TerraformProviderSource | string | No description. |
TerraformResourceType
Required
public string TerraformResourceType { get; set; }
- Type: string
TerraformGeneratorMetadata
Optional
public TerraformProviderGeneratorMetadata TerraformGeneratorMetadata { get; set; }
TerraformProviderSource
Optional
public string TerraformProviderSource { get; set; }
- Type: string
TerraformProviderGeneratorMetadata
Initializer
using HashiCorp.Cdktf;
new TerraformProviderGeneratorMetadata {
string ProviderName,
string ProviderVersion = null,
string ProviderVersionConstraint = null
};
Properties
Name | Type | Description |
---|---|---|
ProviderName | string | No description. |
ProviderVersion | string | No description. |
ProviderVersionConstraint | string | No description. |
ProviderName
Required
public string ProviderName { get; set; }
- Type: string
ProviderVersion
Optional
public string ProviderVersion { get; set; }
- Type: string
ProviderVersionConstraint
Optional
public string ProviderVersionConstraint { get; set; }
- Type: string
TerraformResourceConfig
Initializer
using HashiCorp.Cdktf;
new TerraformResourceConfig {
object Connection = null,
object Count = null,
ITerraformDependable[] DependsOn = null,
ITerraformIterator ForEach = null,
TerraformResourceLifecycle Lifecycle = null,
TerraformProvider Provider = null,
object[] Provisioners = null,
string TerraformResourceType,
TerraformProviderGeneratorMetadata TerraformGeneratorMetadata = null
};
Properties
Name | Type | Description |
---|---|---|
Connection | object | No description. |
Count | object | No description. |
DependsOn | ITerraformDependable[] | No description. |
ForEach | ITerraformIterator | No description. |
Lifecycle | TerraformResourceLifecycle | No description. |
Provider | TerraformProvider | No description. |
Provisioners | object[] | No description. |
TerraformResourceType | string | No description. |
TerraformGeneratorMetadata | TerraformProviderGeneratorMetadata | No description. |
Connection
Optional
public object Connection { get; set; }
- Type: object
Count
Optional
public object Count { get; set; }
- Type: object
DependsOn
Optional
public ITerraformDependable[] DependsOn { get; set; }
- Type: ITerraformDependable[]
ForEach
Optional
public ITerraformIterator ForEach { get; set; }
- Type: ITerraformIterator
Lifecycle
Optional
public TerraformResourceLifecycle Lifecycle { get; set; }
Provider
Optional
public TerraformProvider Provider { get; set; }
- Type: TerraformProvider
Provisioners
Optional
public object[] Provisioners { get; set; }
- Type: object[]
TerraformResourceType
Required
public string TerraformResourceType { get; set; }
- Type: string
TerraformGeneratorMetadata
Optional
public TerraformProviderGeneratorMetadata TerraformGeneratorMetadata { get; set; }
TerraformResourceImport
Initializer
using HashiCorp.Cdktf;
new TerraformResourceImport {
string Id,
TerraformProvider Provider = null
};
Properties
Name | Type | Description |
---|---|---|
Id | string | No description. |
Provider | TerraformProvider | No description. |
Id
Required
public string Id { get; set; }
- Type: string
Provider
Optional
public TerraformProvider Provider { get; set; }
- Type: TerraformProvider
TerraformResourceLifecycle
Initializer
using HashiCorp.Cdktf;
new TerraformResourceLifecycle {
bool CreateBeforeDestroy = null,
object IgnoreChanges = null,
Postcondition[] Postcondition = null,
Precondition[] Precondition = null,
bool PreventDestroy = null,
object[] ReplaceTriggeredBy = null
};
Properties
Name | Type | Description |
---|---|---|
CreateBeforeDestroy | bool | No description. |
IgnoreChanges | object | No description. |
Postcondition | Postcondition[] | No description. |
Precondition | Precondition[] | No description. |
PreventDestroy | bool | No description. |
ReplaceTriggeredBy | object[] | No description. |
CreateBeforeDestroy
Optional
public bool CreateBeforeDestroy { get; set; }
- Type: bool
IgnoreChanges
Optional
public object IgnoreChanges { get; set; }
- Type: object
Postcondition
Optional
public Postcondition[] Postcondition { get; set; }
- Type: Postcondition[]
Precondition
Optional
public Precondition[] Precondition { get; set; }
- Type: Precondition[]
PreventDestroy
Optional
public bool PreventDestroy { get; set; }
- Type: bool
ReplaceTriggeredBy
Optional
public object[] ReplaceTriggeredBy { get; set; }
- Type: object[]
TerraformResourceMoveById
Initializer
using HashiCorp.Cdktf;
new TerraformResourceMoveById {
string From,
string To
};
Properties
From
Required
public string From { get; set; }
- Type: string
To
Required
public string To { get; set; }
- Type: string
TerraformResourceMoveByTarget
Initializer
using HashiCorp.Cdktf;
new TerraformResourceMoveByTarget {
string MoveTarget,
object Index = null
};
Properties
Name | Type | Description |
---|---|---|
MoveTarget | string | No description. |
Index | object | No description. |
MoveTarget
Required
public string MoveTarget { get; set; }
- Type: string
Index
Optional
public object Index { get; set; }
- Type: object
TerraformStackMetadata
Initializer
using HashiCorp.Cdktf;
new TerraformStackMetadata {
string Backend,
string StackName,
string Version,
string Cloud = null
};
Properties
Name | Type | Description |
---|---|---|
Backend | string | No description. |
StackName | string | No description. |
Version | string | No description. |
Cloud | string | No description. |
Backend
Required
public string Backend { get; set; }
- Type: string
StackName
Required
public string StackName { get; set; }
- Type: string
Version
Required
public string Version { get; set; }
- Type: string
Cloud
Optional
public string Cloud { get; set; }
- Type: string
TerraformVariableConfig
Initializer
using HashiCorp.Cdktf;
new TerraformVariableConfig {
object Default = null,
string Description = null,
bool Nullable = null,
bool Sensitive = null,
string Type = null,
TerraformVariableValidationConfig[] Validation = null
};
Properties
Name | Type | Description |
---|---|---|
Default | object | No description. |
Description | string | No description. |
Nullable | bool | No description. |
Sensitive | bool | No description. |
Type | string | The type argument in a variable block allows you to restrict the type of value that will be accepted as the value for a variable. |
Validation | TerraformVariableValidationConfig[] | Specify arbitrary custom validation rules for a particular variable using a validation block nested within the corresponding variable block. |
Default
Optional
public object Default { get; set; }
- Type: object
Description
Optional
public string Description { get; set; }
- Type: string
Nullable
Optional
public bool Nullable { get; set; }
- Type: bool
Sensitive
Optional
public bool Sensitive { get; set; }
- Type: bool
Type
Optional
public string Type { get; set; }
- Type: string
The type argument in a variable block allows you to restrict the type of value that will be accepted as the value for a variable.
If no type constraint is set then a value of any type is accepted.
While type constraints are optional, we recommend specifying them; they serve as easy reminders for users of the module, and allow Terraform to return a helpful error message if the wrong type is used.
Type constraints are created from a mixture of type keywords and type constructors. The supported type keywords are:
- string
- number
- bool
The type constructors allow you to specify complex types such as collections:
- list(< TYPE >)
- set(< TYPE >)
- map(< TYPE >)
- object({< ATTR NAME > = < TYPE >, ... })
- tuple([< TYPE >, ...])
The keyword any may be used to indicate that any type is acceptable. For more information on the meaning and behavior of these different types, as well as detailed information about automatic conversion of complex types, refer to {@link https://developer.hashicorp.com/terraform/language/expressions/type-constraints Type Constraints}.
If both the type and default arguments are specified, the given default value must be convertible to the specified type.
Validation
Optional
public TerraformVariableValidationConfig[] Validation { get; set; }
Specify arbitrary custom validation rules for a particular variable using a validation block nested within the corresponding variable block.
TerraformVariableValidationConfig
Add one or more validation blocks within the variable block to specify custom conditions.
Initializer
using HashiCorp.Cdktf;
new TerraformVariableValidationConfig {
object Condition,
string ErrorMessage
};
Properties
Name | Type | Description |
---|---|---|
Condition | object | This is a boolean expression that should return true if the intended assumption or guarantee is fulfilled or false if it does not. |
ErrorMessage | string | This contains the text that Terraform will include as part of error messages when it detects an unmet condition. |
Condition
Required
public object Condition { get; set; }
- Type: object
This is a boolean expression that should return true if the intended assumption or guarantee is fulfilled or false if it does not.
ErrorMessage
Required
public string ErrorMessage { get; set; }
- Type: string
This contains the text that Terraform will include as part of error messages when it detects an unmet condition.
TestingAppConfig
Initializer
using HashiCorp.Cdktf;
new TestingAppConfig {
System.Collections.Generic.IDictionary< string, object > Context = null,
bool EnableFutureFlags = null,
bool FakeCdktfJsonPath = null,
string Outdir = null,
bool StackTraces = null,
bool StubVersion = null
};
Properties
Name | Type | Description |
---|---|---|
Context | System.Collections.Generic.IDictionary< string, object > | No description. |
EnableFutureFlags | bool | No description. |
FakeCdktfJsonPath | bool | No description. |
Outdir | string | No description. |
StackTraces | bool | No description. |
StubVersion | bool | No description. |
Context
Optional
public System.Collections.Generic.IDictionary< string, object > Context { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
EnableFutureFlags
Optional
public bool EnableFutureFlags { get; set; }
- Type: bool
FakeCdktfJsonPath
Optional
public bool FakeCdktfJsonPath { get; set; }
- Type: bool
Outdir
Optional
public string Outdir { get; set; }
- Type: string
StackTraces
Optional
public bool StackTraces { get; set; }
- Type: bool
StubVersion
Optional
public bool StubVersion { get; set; }
- Type: bool
WinrmProvisionerConnection
Most provisioners require access to the remote resource via SSH or WinRM and expect a nested connection block with details about how to connect.
See {@link https://developer.hashicorp.com/terraform/language/resources/provisioners/connection connection}
Initializer
using HashiCorp.Cdktf;
new WinrmProvisionerConnection {
string Host,
string Type,
string Cacert = null,
bool Https = null,
bool Insecure = null,
string Password = null,
double Port = null,
string ScriptPath = null,
string Timeout = null,
bool UseNtlm = null,
string User = null
};
Properties
Name | Type | Description |
---|---|---|
Host | string | The address of the resource to connect to. |
Type | string | The connection type. |
Cacert | string | The CA certificate to validate against. |
Https | bool | Set to true to connect using HTTPS instead of HTTP. |
Insecure | bool | Set to true to skip validating the HTTPS certificate chain. |
Password | string | The password to use for the connection. |
Port | double | The port to connect to. |
ScriptPath | string | The path used to copy scripts meant for remote execution. |
Timeout | string | The timeout to wait for the connection to become available. |
UseNtlm | bool | Set to true to use NTLM authentication rather than default (basic authentication), removing the requirement for basic authentication to be enabled within the target guest. |
User | string | The user to use for the connection. |
Host
Required
public string Host { get; set; }
- Type: string
The address of the resource to connect to.
Type
Required
public string Type { get; set; }
- Type: string
The connection type.
Valid values are "ssh" and "winrm". Provisioners typically assume that the remote system runs Microsoft Windows when using WinRM. Behaviors based on the SSH target_platform will force Windows-specific behavior for WinRM, unless otherwise specified.
Cacert
Optional
public string Cacert { get; set; }
- Type: string
The CA certificate to validate against.
Https
Optional
public bool Https { get; set; }
- Type: bool
Set to true to connect using HTTPS instead of HTTP.
Insecure
Optional
public bool Insecure { get; set; }
- Type: bool
Set to true to skip validating the HTTPS certificate chain.
Password
Optional
public string Password { get; set; }
- Type: string
The password to use for the connection.
Port
Optional
public double Port { get; set; }
- Type: double
- Default: 22
The port to connect to.
ScriptPath
Optional
public string ScriptPath { get; set; }
- Type: string
The path used to copy scripts meant for remote execution.
Refer to {@link https://developer.hashicorp.com/terraform/language/resources/provisioners/connection#how-provisioners-execute-remote-scripts How Provisioners Execute Remote Scripts below for more details}
Timeout
Optional
public string Timeout { get; set; }
- Type: string
- Default: 5m
The timeout to wait for the connection to become available.
Should be provided as a string (e.g., "30s" or "5m".)
UseNtlm
Optional
public bool UseNtlm { get; set; }
- Type: bool
Set to true to use NTLM authentication rather than default (basic authentication), removing the requirement for basic authentication to be enabled within the target guest.
Refer to Authentication for Remote Connections in the Windows App Development documentation for more details.
User
Optional
public string User { get; set; }
- Type: string
- Default: root
The user to use for the connection.
Classes
Annotations
Includes API for attaching annotations such as warning messages to constructs.
Methods
Name | Description |
---|---|
AddError | Adds an { "error": < message > } metadata entry to this construct. |
AddInfo | Adds an info metadata entry to this construct. |
AddWarning | Adds a warning metadata entry to this construct. |
AddError
private void AddError(string Message)
Adds an { "error": < message > } metadata entry to this construct.
The toolkit will fail synthesis when errors are reported.
Message
Required
- Type: string
The error message.
AddInfo
private void AddInfo(string Message)
Adds an info metadata entry to this construct.
The CLI will display the info message when apps are synthesized.
Message
Required
- Type: string
The info message.
AddWarning
private void AddWarning(string Message)
Adds a warning metadata entry to this construct.
The CLI will display the warning when an app is synthesized. In a future release the CLI might introduce a --strict flag which will then fail the synthesis if it encounters a warning.
Message
Required
- Type: string
The warning message.
Static Functions
Name | Description |
---|---|
Of | Returns the annotations API for a construct scope. |
Of
using HashiCorp.Cdktf;
Annotations.Of(IConstruct Scope);
Returns the annotations API for a construct scope.
Scope
Required
- Type: Constructs.IConstruct
The scope.
AnyListList
Initializers
using HashiCorp.Cdktf;
new AnyListList(IInterpolatingParent TerraformResource, string TerraformAttribute, bool WrapsSet);
Name | Type | Description |
---|---|---|
TerraformResource | IInterpolatingParent | No description. |
TerraformAttribute | string | No description. |
WrapsSet | bool | No description. |
TerraformResource
Required
- Type: IInterpolatingParent
TerraformAttribute
Required
- Type: string
WrapsSet
Required
- Type: bool
Methods
Name | Description |
---|---|
AllWithMapKey | Creating an iterator for this complex list. |
ComputeFqn | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
Get | No description. |
AllWithMapKey
private DynamicListTerraformIterator AllWithMapKey(string MapKeyAttributeName)
Creating an iterator for this complex list.
The list will be converted into a map with the mapKeyAttributeName as the key.
MapKeyAttributeName
Required
- Type: string
ComputeFqn
private string ComputeFqn()
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Get
private IResolvable Get(double Index)
Index
Required
- Type: double
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | string | No description. |
CreationStack
Required
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
public string Fqn { get; }
- Type: string
AnyListMap
Initializers
using HashiCorp.Cdktf;
new AnyListMap(IInterpolatingParent TerraformResource, string TerraformAttribute);
Name | Type | Description |
---|---|---|
TerraformResource | IInterpolatingParent | No description. |
TerraformAttribute | string | No description. |
TerraformResource
Required
- Type: IInterpolatingParent
TerraformAttribute
Required
- Type: string
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
InterpolationForAttribute | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
Get | No description. |
ComputeFqn
private string ComputeFqn()
InterpolationForAttribute
private IResolvable InterpolationForAttribute(string Property)
Property
Required
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Get
private IResolvable Get(string Key)
Key
Required
- Type: string
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | string | No description. |
CreationStack
Required
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
public string Fqn { get; }
- Type: string
AnyMap
- Implements: ITerraformAddressable, IResolvable
Initializers
using HashiCorp.Cdktf;
new AnyMap(IInterpolatingParent TerraformResource, string TerraformAttribute);
Name | Type | Description |
---|---|---|
TerraformResource | IInterpolatingParent | No description. |
TerraformAttribute | string | No description. |
TerraformResource
Required
- Type: IInterpolatingParent
TerraformAttribute
Required
- Type: string
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
Lookup | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
ComputeFqn
private string ComputeFqn()
Lookup
private object Lookup(string Key)
Key
Required
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | string | No description. |
CreationStack
Required
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
public string Fqn { get; }
- Type: string
AnyMapList
Initializers
using HashiCorp.Cdktf;
new AnyMapList(IInterpolatingParent TerraformResource, string TerraformAttribute, bool WrapsSet);
Name | Type | Description |
---|---|---|
TerraformResource | IInterpolatingParent | No description. |
TerraformAttribute | string | No description. |
WrapsSet | bool | No description. |
TerraformResource
Required
- Type: IInterpolatingParent
TerraformAttribute
Required
- Type: string
WrapsSet
Required
- Type: bool
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
InterpolationForAttribute | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
Get | No description. |
ComputeFqn
private string ComputeFqn()
InterpolationForAttribute
private IResolvable InterpolationForAttribute(string Property)
Property
Required
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Get
private AnyMap Get(double Index)
Index
Required
- Type: double
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | string | No description. |
CreationStack
Required
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
public string Fqn { get; }
- Type: string
Aspects
Aspects can be applied to CDK tree scopes and can operate on the tree before synthesis.
Methods
Name | Description |
---|---|
Add | Adds an aspect to apply this scope before synthesis. |
Add
private void Add(IAspect Aspect)
Adds an aspect to apply this scope before synthesis.
Aspect
Required
- Type: IAspect
The aspect to add.
Static Functions
Name | Description |
---|---|
Of | Returns the Aspects object associated with a construct scope. |
Of
using HashiCorp.Cdktf;
Aspects.Of(IConstruct Scope);
Returns the Aspects
object associated with a construct scope.
Scope
Required
- Type: Constructs.IConstruct
The scope for which these aspects will apply.
Properties
All
Required
public IAspect[] All { get; }
- Type: IAspect[]
The list of aspects which were directly applied on this scope.
AssertionReturn
Class representing the contents of a return by an assertion.
Initializers
using HashiCorp.Cdktf;
new AssertionReturn(string Message, bool Pass);
Name | Type | Description |
---|---|---|
Message | string | - String message containing information about the result of the assertion. |
Pass | bool | - Boolean pass denoting the success of the assertion. |
Message
Required
- Type: string
String message containing information about the result of the assertion.
Pass
Required
- Type: bool
Boolean pass denoting the success of the assertion.
Properties
Name | Type | Description |
---|---|---|
Message | string | - String message containing information about the result of the assertion. |
Pass | bool | - Boolean pass denoting the success of the assertion. |
Message
Required
public string Message { get; }
- Type: string
String message containing information about the result of the assertion.
Pass
Required
public bool Pass { get; }
- Type: bool
Boolean pass denoting the success of the assertion.
BooleanList
Initializers
using HashiCorp.Cdktf;
new BooleanList(IInterpolatingParent TerraformResource, string TerraformAttribute, bool WrapsSet);
Name | Type | Description |
---|---|---|
TerraformResource | IInterpolatingParent | No description. |
TerraformAttribute | string | No description. |
WrapsSet | bool | No description. |
TerraformResource
Required
- Type: IInterpolatingParent
TerraformAttribute
Required
- Type: string
WrapsSet
Required
- Type: bool
Methods
Name | Description |
---|---|
AllWithMapKey | Creating an iterator for this complex list. |
ComputeFqn | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
Get | No description. |
AllWithMapKey
private DynamicListTerraformIterator AllWithMapKey(string MapKeyAttributeName)
Creating an iterator for this complex list.
The list will be converted into a map with the mapKeyAttributeName as the key.
MapKeyAttributeName
Required
- Type: string
ComputeFqn
private string ComputeFqn()
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Get
private IResolvable Get(double Index)
Index
Required
- Type: double
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | string | No description. |
CreationStack
Required
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
public string Fqn { get; }
- Type: string
BooleanListList
Initializers
using HashiCorp.Cdktf;
new BooleanListList(IInterpolatingParent TerraformResource, string TerraformAttribute, bool WrapsSet);
Name | Type | Description |
---|---|---|
TerraformResource | IInterpolatingParent | No description. |
TerraformAttribute | string | No description. |
WrapsSet | bool | No description. |
TerraformResource
Required
- Type: IInterpolatingParent
TerraformAttribute
Required
- Type: string
WrapsSet
Required
- Type: bool
Methods
Name | Description |
---|---|
AllWithMapKey | Creating an iterator for this complex list. |
ComputeFqn | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
Get | No description. |
AllWithMapKey
private DynamicListTerraformIterator AllWithMapKey(string MapKeyAttributeName)
Creating an iterator for this complex list.
The list will be converted into a map with the mapKeyAttributeName as the key.
MapKeyAttributeName
Required
- Type: string
ComputeFqn
private string ComputeFqn()
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Get
private IResolvable Get(double Index)
Index
Required
- Type: double
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | string | No description. |
CreationStack
Required
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
public string Fqn { get; }
- Type: string
BooleanListMap
Initializers
using HashiCorp.Cdktf;
new BooleanListMap(IInterpolatingParent TerraformResource, string TerraformAttribute);
Name | Type | Description |
---|---|---|
TerraformResource | IInterpolatingParent | No description. |
TerraformAttribute | string | No description. |
TerraformResource
Required
- Type: IInterpolatingParent
TerraformAttribute
Required
- Type: string
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
InterpolationForAttribute | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
Get | No description. |
ComputeFqn
private string ComputeFqn()
InterpolationForAttribute
private IResolvable InterpolationForAttribute(string Property)
Property
Required
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Get
private IResolvable Get(string Key)
Key
Required
- Type: string
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | string | No description. |
CreationStack
Required
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
public string Fqn { get; }
- Type: string
BooleanMap
- Implements: ITerraformAddressable, IResolvable
Initializers
using HashiCorp.Cdktf;
new BooleanMap(IInterpolatingParent TerraformResource, string TerraformAttribute);
Name | Type | Description |
---|---|---|
TerraformResource | IInterpolatingParent | No description. |
TerraformAttribute | string | No description. |
TerraformResource
Required
- Type: IInterpolatingParent
TerraformAttribute
Required
- Type: string
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
Lookup | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
ComputeFqn
private string ComputeFqn()
Lookup
private IResolvable Lookup(string Key)
Key
Required
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | string | No description. |
CreationStack
Required
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
public string Fqn { get; }
- Type: string
BooleanMapList
Initializers
using HashiCorp.Cdktf;
new BooleanMapList(IInterpolatingParent TerraformResource, string TerraformAttribute, bool WrapsSet);
Name | Type | Description |
---|---|---|
TerraformResource | IInterpolatingParent | No description. |
TerraformAttribute | string | No description. |
WrapsSet | bool | No description. |
TerraformResource
Required
- Type: IInterpolatingParent
TerraformAttribute
Required
- Type: string
WrapsSet
Required
- Type: bool
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
InterpolationForAttribute | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
Get | No description. |
ComputeFqn
private string ComputeFqn()
InterpolationForAttribute
private IResolvable InterpolationForAttribute(string Property)
Property
Required
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Get
private BooleanMap Get(double Index)
Index
Required
- Type: double
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | string | No description. |
CreationStack
Required
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
public string Fqn { get; }
- Type: string
CloudWorkspace
A cloud workspace can either be a single named workspace, or a list of tagged workspaces.
Initializers
using HashiCorp.Cdktf;
new CloudWorkspace();
Name | Type | Description |
---|
Methods
Name | Description |
---|---|
ToTerraform | No description. |
ToTerraform
private object ToTerraform()
ComplexComputedList
- Implements: IInterpolatingParent, IResolvable, ITerraformAddressable
Initializers
using HashiCorp.Cdktf;
new ComplexComputedList(IInterpolatingParent TerraformResource, string TerraformAttribute, string ComplexComputedListIndex, bool WrapsSet = null);
Name | Type | Description |
---|---|---|
TerraformResource | IInterpolatingParent | No description. |
TerraformAttribute | string | No description. |
ComplexComputedListIndex | string | No description. |
WrapsSet | bool | No description. |
TerraformResource
Required
- Type: IInterpolatingParent
TerraformAttribute
Required
- Type: string
ComplexComputedListIndex
Required
- Type: string
WrapsSet
Optional
- Type: bool
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
GetAnyMapAttribute | No description. |
GetBooleanAttribute | No description. |
GetBooleanMapAttribute | No description. |
GetListAttribute | No description. |
GetNumberAttribute | No description. |
GetNumberListAttribute | No description. |
GetNumberMapAttribute | No description. |
GetStringAttribute | No description. |
GetStringMapAttribute | No description. |
InterpolationForAttribute | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
ComputeFqn
ComputeFqn
private string ComputeFqn()
GetAnyMapAttribute
GetAnyMapAttribute
private System.Collections.Generic.IDictionary< string, object > GetAnyMapAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetBooleanAttribute
GetBooleanAttribute
private IResolvable GetBooleanAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetBooleanMapAttribute
GetBooleanMapAttribute
private System.Collections.Generic.IDictionary< string, bool > GetBooleanMapAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetListAttribute
GetListAttribute
private string[] GetListAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetNumberAttribute
GetNumberAttribute
private double GetNumberAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetNumberListAttribute
GetNumberListAttribute
private double[] GetNumberListAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetNumberMapAttribute
GetNumberMapAttribute
private System.Collections.Generic.IDictionary< string, double > GetNumberMapAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetStringAttribute
GetStringAttribute
private string GetStringAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetStringMapAttribute
GetStringMapAttribute
private System.Collections.Generic.IDictionary< string, string > GetStringMapAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
InterpolationForAttribute
InterpolationForAttribute
private IResolvable InterpolationForAttribute(string Property)
Property
Required
- Type: string
Resolve
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToString
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | string | No description. |
CreationStack
Required
CreationStack
- Deprecated: Going to be replaced by Array of ComplexListItem and will be removed in the future
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
Fqn
- Deprecated: Going to be replaced by Array of ComplexListItem and will be removed in the future
public string Fqn { get; }
- Type: string
ComplexList
- Implements: ITerraformAddressable, IResolvable
Initializers
using HashiCorp.Cdktf;
new ComplexList(IInterpolatingParent TerraformResource, string TerraformAttribute, bool WrapsSet);
Name | Type | Description |
---|---|---|
TerraformResource | IInterpolatingParent | No description. |
TerraformAttribute | string | No description. |
WrapsSet | bool | No description. |
TerraformResource
Required
- Type: IInterpolatingParent
TerraformAttribute
Required
- Type: string
WrapsSet
Required
- Type: bool
Methods
Name | Description |
---|---|
AllWithMapKey | Creating an iterator for this complex list. |
ComputeFqn | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
AllWithMapKey
private DynamicListTerraformIterator AllWithMapKey(string MapKeyAttributeName)
Creating an iterator for this complex list.
The list will be converted into a map with the mapKeyAttributeName as the key.
MapKeyAttributeName
Required
- Type: string
ComputeFqn
private string ComputeFqn()
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | string | No description. |
CreationStack
Required
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
public string Fqn { get; }
- Type: string
ComplexMap
- Implements: ITerraformAddressable, IResolvable
Initializers
using HashiCorp.Cdktf;
new ComplexMap(IInterpolatingParent TerraformResource, string TerraformAttribute);
Name | Type | Description |
---|---|---|
TerraformResource | IInterpolatingParent | No description. |
TerraformAttribute | string | No description. |
TerraformResource
Required
- Type: IInterpolatingParent
TerraformAttribute
Required
- Type: string
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
InterpolationForAttribute | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
ComputeFqn
private string ComputeFqn()
InterpolationForAttribute
private IResolvable InterpolationForAttribute(string Property)
Property
Required
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | string | No description. |
CreationStack
Required
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
public string Fqn { get; }
- Type: string
ComplexObject
- Implements: IInterpolatingParent, IResolvable, ITerraformAddressable
Initializers
using HashiCorp.Cdktf;
new ComplexObject(IInterpolatingParent TerraformResource, string TerraformAttribute, bool ComplexObjectIsFromSet, object ComplexObjectIndex = null);
Name | Type | Description |
---|---|---|
TerraformResource | IInterpolatingParent | No description. |
TerraformAttribute | string | No description. |
ComplexObjectIsFromSet | bool | set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. |
ComplexObjectIndex | object | the index of the complex object in a list. |
TerraformResource
Required
- Type: IInterpolatingParent
TerraformAttribute
Required
- Type: string
ComplexObjectIsFromSet
Required
- Type: bool
set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items.
ComplexObjectIndex
Optional
- Type: object
the index of the complex object in a list.
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
GetAnyMapAttribute | No description. |
GetBooleanAttribute | No description. |
GetBooleanMapAttribute | No description. |
GetListAttribute | No description. |
GetNumberAttribute | No description. |
GetNumberListAttribute | No description. |
GetNumberMapAttribute | No description. |
GetStringAttribute | No description. |
GetStringMapAttribute | No description. |
InterpolationForAttribute | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
ComputeFqn
private string ComputeFqn()
GetAnyMapAttribute
private System.Collections.Generic.IDictionary< string, object > GetAnyMapAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetBooleanAttribute
private IResolvable GetBooleanAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetBooleanMapAttribute
private System.Collections.Generic.IDictionary< string, bool > GetBooleanMapAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetListAttribute
private string[] GetListAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetNumberAttribute
private double GetNumberAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetNumberListAttribute
private double[] GetNumberListAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetNumberMapAttribute
private System.Collections.Generic.IDictionary< string, double > GetNumberMapAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetStringAttribute
private string GetStringAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
GetStringMapAttribute
private System.Collections.Generic.IDictionary< string, string > GetStringMapAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
InterpolationForAttribute
private IResolvable InterpolationForAttribute(string Property)
Property
Required
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | string | No description. |
CreationStack
Required
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
public string Fqn { get; }
- Type: string
DefaultTokenResolver
- Implements: ITokenResolver
Default resolver implementation.
Initializers
using HashiCorp.Cdktf;
new DefaultTokenResolver(IFragmentConcatenator Concat);
Name | Type | Description |
---|---|---|
Concat | IFragmentConcatenator | No description. |
Concat
Required
- Type: IFragmentConcatenator
Methods
Name | Description |
---|---|
ResolveList | Resolves a list of string. |
ResolveMap | Resolves a map token. |
ResolveNumberList | Resolves a list of numbers. |
ResolveString | Resolve string fragments to Tokens. |
ResolveToken | Default Token resolution. |
ResolveList
private object ResolveList(string[] Xs, IResolveContext Context)
Resolves a list of string.
Xs
Required
- Type: string[]
Context
Required
- Type: IResolveContext
ResolveMap
private object ResolveMap(System.Collections.Generic.IDictionary< string, object > Xs, IResolveContext Context)
Resolves a map token.
Xs
Required
- Type: System.Collections.Generic.IDictionary< string, object >
Context
Required
- Type: IResolveContext
ResolveNumberList
private object ResolveNumberList(double[] Xs, IResolveContext Context)
Resolves a list of numbers.
Xs
Required
- Type: double[]
Context
Required
- Type: IResolveContext
ResolveString
private object ResolveString(TokenizedStringFragments Fragments, IResolveContext Context)
Resolve string fragments to Tokens.
Fragments
Required
- Type: TokenizedStringFragments
Context
Required
- Type: IResolveContext
ResolveToken
private object ResolveToken(IResolvable T, IResolveContext Context, IPostProcessor PostProcessor)
Default Token resolution.
Resolve the Token, recurse into whatever it returns, then finally post-process it.
T
Required
- Type: IResolvable
Context
Required
- Type: IResolveContext
PostProcessor
Required
- Type: IPostProcessor
DynamicListTerraformIterator
Initializers
using HashiCorp.Cdktf;
new DynamicListTerraformIterator(object List, string MapKeyAttributeName);
Name | Type | Description |
---|---|---|
List | object | No description. |
MapKeyAttributeName | string | No description. |
List
Required
- Type: object
MapKeyAttributeName
Required
- Type: string
Methods
Name | Description |
---|---|
Dynamic | Creates a dynamic expression that can be used to loop over this iterator in a dynamic block. |
ForExpressionForList | Creates a for expression that results in a list. |
ForExpressionForMap | Creates a for expression that results in a map. |
GetAny | No description. |
GetAnyMap | No description. |
GetBoolean | No description. |
GetBooleanMap | No description. |
GetList | No description. |
GetMap | No description. |
GetNumber | No description. |
GetNumberList | No description. |
GetNumberMap | No description. |
GetString | No description. |
GetStringMap | No description. |
Keys | Creates a for expression that maps the iterators to its keys. |
PluckProperty | Creates a for expression that accesses the key on each element of the iterator. |
Values | Creates a for expression that maps the iterators to its value in case it is a map. |
Dynamic
private IResolvable Dynamic(System.Collections.Generic.IDictionary< string, object > Attributes)
Creates a dynamic expression that can be used to loop over this iterator in a dynamic block.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
See https://developer.hashicorp.com/terraform/cdktf/concepts/iterators#using-iterators-for-list-attributes
Attributes
Required
- Type: System.Collections.Generic.IDictionary< string, object >
ForExpressionForList
private IResolvable ForExpressionForList(object Expression)
Creates a for expression that results in a list.
This method allows you to create every possible for expression, but requires more knowledge about Terraform's for expression syntax. For the most common use cases you can use keys(), values(), and pluckProperty() instead.
You may write any valid Terraform for each expression, e.g.
TerraformIterator.fromList(myIteratorSourceVar).forExpressionForList("val.foo if val.bar == true")
will result in [ for key, val in var.myIteratorSource: val.foo if val.bar == true ]
.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
Expression
Required
- Type: object
The expression to use in the for mapping.
ForExpressionForMap
private IResolvable ForExpressionForMap(object KeyExpression, object ValueExpression)
Creates a for expression that results in a map.
This method allows you to create every possible for expression, but requires more knowledge about Terraforms for expression syntax. For the most common use cases you can use keys(), values(), and pluckProperty instead.
You may write any valid Terraform for each expression, e.g.
TerraformIterator.fromMap(myIteratorSourceVar).forExpressionForMap("key", "val.foo if val.bar == true")
will result in { for key, val in var.myIteratorSource: key = > val.foo if val.bar == true }
.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
KeyExpression
Required
- Type: object
The expression to use as key in the for mapping.
ValueExpression
Required
- Type: object
The expression to use as value in the for mapping.
GetAny
private IResolvable GetAny(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetAnyMap
private System.Collections.Generic.IDictionary< string, object > GetAnyMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetBoolean
private IResolvable GetBoolean(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetBooleanMap
private System.Collections.Generic.IDictionary< string, bool > GetBooleanMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetList
private string[] GetList(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetMap
private System.Collections.Generic.IDictionary< string, object > GetMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetNumber
private double GetNumber(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetNumberList
private double[] GetNumberList(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetNumberMap
private System.Collections.Generic.IDictionary< string, double > GetNumberMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetString
private string GetString(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetStringMap
private System.Collections.Generic.IDictionary< string, string > GetStringMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
Keys
private IResolvable Keys()
Creates a for expression that maps the iterators to its keys.
For lists these would be the indices, for maps the keys.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
PluckProperty
private IResolvable PluckProperty(string Property)
Creates a for expression that accesses the key on each element of the iterator.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
Property
Required
- Type: string
The property of the iterators values to map to.
Values
private IResolvable Values()
Creates a for expression that maps the iterators to its value in case it is a map.
For lists these would stay the same.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
Static Functions
Name | Description |
---|---|
FromComplexList | Creates a new iterator from a complex list. |
FromDataSources | Creates a new iterator from a data source that has been created with the for_each argument. |
FromList | Creates a new iterator from a list. |
FromMap | Creates a new iterator from a map. |
FromResources | Creates a new iterator from a resource that has been created with the for_each argument. |
FromComplexList
using HashiCorp.Cdktf;
DynamicListTerraformIterator.FromComplexList(object List, string MapKeyAttributeName);
Creates a new iterator from a complex list.
One example for this would be a list of maps. The list will be converted into a map with the mapKeyAttributeName as the key.
Example
// Example automatically generated from non-compiling source. May contain errors.
var cert = new AcmCertificate(this, "cert", new Struct {
DomainName = "example.com",
ValidationMethod = "DNS"
});
var dvoIterator = TerraformIterator.FromComplexList(cert.DomainValidationOptions, "domain_name");
new Route53Record(this, "record", new Struct {
AllowOverwrite = true,
Name = dvoIterator.GetString("name"),
Records = new [] { dvoIterator.GetString("record") },
Ttl = 60,
Type = dvoIterator.GetString("type"),
ZoneId = Token.AsString(dataAwsRoute53ZoneExample.ZoneId),
ForEach = dvoIterator
});
List
Required
- Type: object
the list to iterate over.
MapKeyAttributeName
Required
- Type: string
the name of the attribute that should be used as the key in the map.
Visit https://developer.hashicorp.com/terraform/cdktf/concepts/iterators#using-iterators-on-complex-lists for more information.
FromDataSources
using HashiCorp.Cdktf;
DynamicListTerraformIterator.FromDataSources(ITerraformResource Resource);
Creates a new iterator from a data source that has been created with the for_each
argument.
Resource
Required
- Type: ITerraformResource
FromList
using HashiCorp.Cdktf;
DynamicListTerraformIterator.FromList(object List);
Creates a new iterator from a list.
List
Required
- Type: object
FromMap
using HashiCorp.Cdktf;
DynamicListTerraformIterator.FromMap(object Map);
Creates a new iterator from a map.
Map
Required
- Type: object
FromResources
using HashiCorp.Cdktf;
DynamicListTerraformIterator.FromResources(ITerraformResource Resource);
Creates a new iterator from a resource that has been created with the for_each
argument.
Resource
Required
- Type: ITerraformResource
Properties
Name | Type | Description |
---|---|---|
Key | string | Returns the key of the current entry in the map that is being iterated over. |
Value | object | Returns the value of the current item iterated over. |
Key
Required
public string Key { get; }
- Type: string
Returns the key of the current entry in the map that is being iterated over.
Value
Required
public object Value { get; }
- Type: object
Returns the value of the current item iterated over.
Fn
Initializers
using HashiCorp.Cdktf;
new Fn();
Name | Type | Description |
---|
Static Functions
Name | Description |
---|---|
Abs | {@link https://developer.hashicorp.com/terraform/language/functions/abs abs} returns the absolute value of the given number. In other words, if the number is zero or positive then it is returned as-is, but if it is negative then it is multiplied by -1 to make it positive before returning it. |
Abspath | {@link https://developer.hashicorp.com/terraform/language/functions/abspath abspath} takes a string containing a filesystem path and converts it to an absolute path. That is, if the path is not absolute, it will be joined with the current working directory. |
Alltrue | {@link https://developer.hashicorp.com/terraform/language/functions/alltrue alltrue} returns true if all elements in a given collection are true or "true" . It also returns true if the collection is empty. |
Anytrue | {@link https://developer.hashicorp.com/terraform/language/functions/anytrue anytrue} returns true if any element in a given collection is true or "true" . It also returns false if the collection is empty. |
Base64decode | {@link https://developer.hashicorp.com/terraform/language/functions/base64decode base64decode} takes a string containing a Base64 character sequence and returns the original string. |
Base64encode | {@link https://developer.hashicorp.com/terraform/language/functions/base64encode base64encode} applies Base64 encoding to a string. |
Base64gzip | {@link https://developer.hashicorp.com/terraform/language/functions/base64gzip base64gzip} compresses a string with gzip and then encodes the result in Base64 encoding. |
Base64sha256 | {@link https://developer.hashicorp.com/terraform/language/functions/base64sha256 base64sha256} computes the SHA256 hash of a given string and encodes it with Base64. This is not equivalent to base64encode(sha256("test")) since sha256() returns hexadecimal representation. |
Base64sha512 | {@link https://developer.hashicorp.com/terraform/language/functions/base64sha512 base64sha512} computes the SHA512 hash of a given string and encodes it with Base64. This is not equivalent to base64encode(sha512("test")) since sha512() returns hexadecimal representation. |
Basename | {@link https://developer.hashicorp.com/terraform/language/functions/basename basename} takes a string containing a filesystem path and removes all except the last portion from it. |
Can | {@link https://developer.hashicorp.com/terraform/language/functions/can can} evaluates the given expression and returns a boolean value indicating whether the expression produced a result without any errors. |
Ceil | {@link https://developer.hashicorp.com/terraform/language/functions/ceil ceil} returns the closest whole number that is greater than or equal to the given value, which may be a fraction. |
Chomp | {@link https://developer.hashicorp.com/terraform/language/functions/chomp chomp} removes newline characters at the end of a string. |
Chunklist | {@link https://developer.hashicorp.com/terraform/language/functions/chunklist chunklist} splits a single list into fixed-size chunks, returning a list of lists. |
Cidrhost | {@link https://developer.hashicorp.com/terraform/language/functions/cidrhost cidrhost} calculates a full host IP address for a given host number within a given IP network address prefix. |
Cidrnetmask | {@link https://developer.hashicorp.com/terraform/language/functions/cidrnetmask cidrnetmask} converts an IPv4 address prefix given in CIDR notation into a subnet mask address. |
Cidrsubnet | {@link https://developer.hashicorp.com/terraform/language/functions/cidrsubnet cidrsubnet} calculates a subnet address within given IP network address prefix. |
Cidrsubnets | {@link https://developer.hashicorp.com/terraform/language/functions/cidrsubnets cidrsubnets} calculates a sequence of consecutive IP address ranges within a particular CIDR prefix. |
Coalesce | {@link https://developer.hashicorp.com/terraform/language/functions/coalesce coalesce} takes any number of arguments and returns the first one that isn't null or an empty string. |
Coalescelist | {@link https://developer.hashicorp.com/terraform/language/functions/coalescelist coalescelist} takes any number of list arguments and returns the first one that isn't empty. |
Compact | {@link https://developer.hashicorp.com/terraform/language/functions/compact compact} takes a list of strings and returns a new list with any empty string elements removed. |
Concat | {@link https://developer.hashicorp.com/terraform/language/functions/concat concat} takes two or more lists and combines them into a single list. |
Contains | {@link https://developer.hashicorp.com/terraform/language/functions/contains contains} determines whether a given list or set contains a given single value as one of its elements. |
Csvdecode | {@link https://developer.hashicorp.com/terraform/language/functions/csvdecode csvdecode} decodes a string containing CSV-formatted data and produces a list of maps representing that data. |
Dirname | {@link https://developer.hashicorp.com/terraform/language/functions/dirname dirname} takes a string containing a filesystem path and removes the last portion from it. |
Distinct | {@link https://developer.hashicorp.com/terraform/language/functions/distinct distinct} takes a list and returns a new list with any duplicate elements removed. |
Element | {@link https://developer.hashicorp.com/terraform/language/functions/element element} retrieves a single element from a list. |
Endswith | {@link https://developer.hashicorp.com/terraform/language/functions/endswith endswith} takes two values: a string to check and a suffix string. The function returns true if the first string ends with that exact suffix. |
File | {@link https://developer.hashicorp.com/terraform/language/functions/file file} reads the contents of a file at the given path and returns them as a string. |
Filebase64 | {@link https://developer.hashicorp.com/terraform/language/functions/filebase64 filebase64} reads the contents of a file at the given path and returns them as a base64-encoded string. |
Filebase64sha256 | {@link https://developer.hashicorp.com/terraform/language/functions/filebase64sha256 filebase64sha256} is a variant of base64sha256 that hashes the contents of a given file rather than a literal string. |
Filebase64sha512 | {@link https://developer.hashicorp.com/terraform/language/functions/filebase64sha512 filebase64sha512} is a variant of base64sha512 that hashes the contents of a given file rather than a literal string. |
Fileexists | {@link https://developer.hashicorp.com/terraform/language/functions/fileexists fileexists} determines whether a file exists at a given path. |
Filemd5 | {@link https://developer.hashicorp.com/terraform/language/functions/filemd5 filemd5} is a variant of md5 that hashes the contents of a given file rather than a literal string. |
Fileset | {@link https://developer.hashicorp.com/terraform/language/functions/fileset fileset} enumerates a set of regular file names given a path and pattern. The path is automatically removed from the resulting set of file names and any result still containing path separators always returns forward slash (/ ) as the path separator for cross-system compatibility. |
Filesha1 | {@link https://developer.hashicorp.com/terraform/language/functions/filesha1 filesha1} is a variant of sha1 that hashes the contents of a given file rather than a literal string. |
Filesha256 | {@link https://developer.hashicorp.com/terraform/language/functions/filesha256 filesha256} is a variant of sha256 that hashes the contents of a given file rather than a literal string. |
Filesha512 | {@link https://developer.hashicorp.com/terraform/language/functions/filesha512 filesha512} is a variant of sha512 that hashes the contents of a given file rather than a literal string. |
Flatten | {@link https://developer.hashicorp.com/terraform/language/functions/flatten flatten} takes a list and replaces any elements that are lists with a flattened sequence of the list contents. |
Floor | {@link https://developer.hashicorp.com/terraform/language/functions/floor floor} returns the closest whole number that is less than or equal to the given value, which may be a fraction. |
Format | The {@link https://developer.hashicorp.com/terraform/language/functions/format format} function produces a string by formatting a number of other values according to a specification string. It is similar to the printf function in C, and other similar functions in other programming languages. |
Formatdate | {@link https://developer.hashicorp.com/terraform/language/functions/formatdate formatdate} converts a timestamp into a different time format. |
Formatlist | {@link https://developer.hashicorp.com/terraform/language/functions/formatlist formatlist} produces a list of strings by formatting a number of other values according to a specification string. |
Indent | {@link https://developer.hashicorp.com/terraform/language/functions/indent indent} adds a given number of spaces to the beginnings of all but the first line in a given multi-line string. |
Index | {@link https://developer.hashicorp.com/terraform/language/functions/index index} finds the element index for a given value in a list. |
Jsondecode | {@link https://developer.hashicorp.com/terraform/language/functions/jsondecode jsondecode} interprets a given string as JSON, returning a representation of the result of decoding that string. |
Jsonencode | {@link https://developer.hashicorp.com/terraform/language/functions/jsonencode jsonencode} encodes a given value to a string using JSON syntax. |
Keys | {@link https://developer.hashicorp.com/terraform/language/functions/keys keys} takes a map and returns a list containing the keys from that map. |
LengthOf | {@link https://developer.hashicorp.com/terraform/language/functions/length length} determines the length of a given list, map, or string. |
Log | {@link https://developer.hashicorp.com/terraform/language/functions/log log} returns the logarithm of a given number in a given base. |
Lower | {@link https://developer.hashicorp.com/terraform/language/functions/lower lower} converts all cased letters in the given string to lowercase. |
Matchkeys | {@link https://developer.hashicorp.com/terraform/language/functions/matchkeys matchkeys} constructs a new list by taking a subset of elements from one list whose indexes match the corresponding indexes of values in another list. |
Max | {@link https://developer.hashicorp.com/terraform/language/functions/max max} takes one or more numbers and returns the greatest number from the set. |
Md5 | {@link https://developer.hashicorp.com/terraform/language/functions/md5 md5} computes the MD5 hash of a given string and encodes it with hexadecimal digits. |
Merge | {@link https://developer.hashicorp.com/terraform/language/functions/merge merge} takes an arbitrary number of maps or objects, and returns a single map or object that contains a merged set of elements from all arguments. |
Min | {@link https://developer.hashicorp.com/terraform/language/functions/min min} takes one or more numbers and returns the smallest number from the set. |
Nonsensitive | {@link https://developer.hashicorp.com/terraform/language/functions/nonsensitive nonsensitive} takes a sensitive value and returns a copy of that value with the sensitive marking removed, thereby exposing the sensitive value. |
One | {@link https://developer.hashicorp.com/terraform/language/functions/one one} takes a list, set, or tuple value with either zero or one elements. If the collection is empty, one returns null . Otherwise, one returns the first element. If there are two or more elements then one will return an error. |
Parseint | {@link https://developer.hashicorp.com/terraform/language/functions/parseint parseint} parses the given string as a representation of an integer in the specified base and returns the resulting number. The base must be between 2 and 62 inclusive. |
Pathexpand | {@link https://developer.hashicorp.com/terraform/language/functions/pathexpand pathexpand} takes a filesystem path that might begin with a ~ segment, and if so it replaces that segment with the current user's home directory path. |
Plantimestamp | {@link https://developer.hashicorp.com/terraform/language/functions/plantimestamp plantimestamp} returns a UTC timestamp string in RFC 3339 format, fixed to a constant time representing the time of the plan. |
Pow | {@link https://developer.hashicorp.com/terraform/language/functions/pow pow} calculates an exponent, by raising its first argument to the power of the second argument. |
Regex | {@link https://developer.hashicorp.com/terraform/language/functions/regex regex} applies a regular expression to a string and returns the matching substrings. |
Regexall | {@link https://developer.hashicorp.com/terraform/language/functions/regexall regexall} applies a regular expression to a string and returns a list of all matches. |
Replace | {@link https://developer.hashicorp.com/terraform/language/functions/replace replace} searches a given string for another given substring, and replaces each occurrence with a given replacement string. |
Reverse | {@link https://developer.hashicorp.com/terraform/language/functions/reverse reverse} takes a sequence and produces a new sequence of the same length with all of the same elements as the given sequence but in reverse order. |
Rsadecrypt | {@link https://developer.hashicorp.com/terraform/language/functions/rsadecrypt rsadecrypt} decrypts an RSA-encrypted ciphertext, returning the corresponding cleartext. |
Sensitive | {@link https://developer.hashicorp.com/terraform/language/functions/sensitive sensitive} takes any value and returns a copy of it marked so that Terraform will treat it as sensitive, with the same meaning and behavior as for sensitive input variables. |
Setintersection | The {@link https://developer.hashicorp.com/terraform/language/functions/setintersection setintersection} function takes multiple sets and produces a single set containing only the elements that all of the given sets have in common. In other words, it computes the intersection of the sets. |
Setproduct | The {@link https://developer.hashicorp.com/terraform/language/functions/setproduct setproduct} function finds all of the possible combinations of elements from all of the given sets by computing the Cartesian product. |
Setsubtract | The {@link https://developer.hashicorp.com/terraform/language/functions/setsubtract setsubtract} function returns a new set containing the elements from the first set that are not present in the second set. In other words, it computes the relative complement of the second set. |
Setunion | The {@link https://developer.hashicorp.com/terraform/language/functions/setunion setunion} function takes multiple sets and produces a single set containing the elements from all of the given sets. In other words, it computes the union of the sets. |
Sha1 | {@link https://developer.hashicorp.com/terraform/language/functions/sha1 sha1} computes the SHA1 hash of a given string and encodes it with hexadecimal digits. |
Sha256 | {@link https://developer.hashicorp.com/terraform/language/functions/sha256 sha256} computes the SHA256 hash of a given string and encodes it with hexadecimal digits. |
Sha512 | {@link https://developer.hashicorp.com/terraform/language/functions/sha512 sha512} computes the SHA512 hash of a given string and encodes it with hexadecimal digits. |
Signum | {@link https://developer.hashicorp.com/terraform/language/functions/signum signum} determines the sign of a number, returning a number between -1 and 1 to represent the sign. |
Slice | {@link https://developer.hashicorp.com/terraform/language/functions/slice slice} extracts some consecutive elements from within a list. |
Sort | {@link https://developer.hashicorp.com/terraform/language/functions/sort sort} takes a list of strings and returns a new list with those strings sorted lexicographically. |
Split | {@link https://developer.hashicorp.com/terraform/language/functions/split split} produces a list by dividing a given string at all occurrences of a given separator. |
Startswith | {@link https://developer.hashicorp.com/terraform/language/functions/startswith startswith} takes two values: a string to check and a prefix string. The function returns true if the string begins with that exact prefix. |
Strcontains | {@link https://developer.hashicorp.com/terraform/language/functions/strcontains strcontains} takes two values: a string to check and an expected substring. The function returns true if the string has the substring contained within it. |
Strrev | {@link https://developer.hashicorp.com/terraform/language/functions/strrev strrev} reverses the characters in a string. Note that the characters are treated as Unicode characters (in technical terms, Unicode grapheme cluster boundaries are respected). |
Substr | {@link https://developer.hashicorp.com/terraform/language/functions/substr substr} extracts a substring from a given string by offset and (maximum) length. |
Sum | {@link https://developer.hashicorp.com/terraform/language/functions/sum sum} takes a list or set of numbers and returns the sum of those numbers. |
Templatefile | {@link https://developer.hashicorp.com/terraform/language/functions/templatefile templatefile} reads the file at the given path and renders its content as a template using a supplied set of template variables. |
Textdecodebase64 | {@link https://developer.hashicorp.com/terraform/language/functions/textdecodebase64 textdecodebase64} function decodes a string that was previously Base64-encoded, and then interprets the result as characters in a specified character encoding. |
Textencodebase64 | {@link https://developer.hashicorp.com/terraform/language/functions/textencodebase64 textencodebase64} encodes the unicode characters in a given string using a specified character encoding, returning the result base64 encoded because Terraform language strings are always sequences of unicode characters. |
Timeadd | {@link https://developer.hashicorp.com/terraform/language/functions/timeadd timeadd} adds a duration to a timestamp, returning a new timestamp. |
Timecmp | {@link https://developer.hashicorp.com/terraform/language/functions/timecmp timecmp} compares two timestamps and returns a number that represents the ordering of the instants those timestamps represent. |
Timestamp | {@link https://developer.hashicorp.com/terraform/language/functions/timestamp timestamp} returns a UTC timestamp string in RFC 3339 format. |
Title | {@link https://developer.hashicorp.com/terraform/language/functions/title title} converts the first letter of each word in the given string to uppercase. |
Tobool | {@link https://developer.hashicorp.com/terraform/language/functions/tobool tobool} converts its argument to a boolean value. |
Tolist | {@link https://developer.hashicorp.com/terraform/language/functions/tolist tolist} converts its argument to a list value. |
Tomap | {@link https://developer.hashicorp.com/terraform/language/functions/tomap tomap} converts its argument to a map value. |
Tonumber | {@link https://developer.hashicorp.com/terraform/language/functions/tonumber tonumber} converts its argument to a number value. |
Toset | {@link https://developer.hashicorp.com/terraform/language/functions/toset toset} converts its argument to a set value. |
Tostring | {@link https://developer.hashicorp.com/terraform/language/functions/tostring tostring} converts its argument to a string value. |
Transpose | {@link https://developer.hashicorp.com/terraform/language/functions/transpose transpose} takes a map of lists of strings and swaps the keys and values to produce a new map of lists of strings. |
Trim | {@link https://developer.hashicorp.com/terraform/language/functions/trim trim} removes the specified set of characters from the start and end of the given string. |
Trimprefix | {@link https://developer.hashicorp.com/terraform/language/functions/trimprefix trimprefix} removes the specified prefix from the start of the given string. If the string does not start with the prefix, the string is returned unchanged. |
Trimspace | {@link https://developer.hashicorp.com/terraform/language/functions/trimspace trimspace} removes any space characters from the start and end of the given string. |
Trimsuffix | {@link https://developer.hashicorp.com/terraform/language/functions/trimsuffix trimsuffix} removes the specified suffix from the end of the given string. |
Try | {@link https://developer.hashicorp.com/terraform/language/functions/try try} evaluates all of its argument expressions in turn and returns the result of the first one that does not produce any errors. |
Upper | {@link https://developer.hashicorp.com/terraform/language/functions/upper upper} converts all cased letters in the given string to uppercase. |
Urlencode | {@link https://developer.hashicorp.com/terraform/language/functions/urlencode urlencode} applies URL encoding to a given string. |
Uuid | {@link https://developer.hashicorp.com/terraform/language/functions/uuid uuid} generates a unique identifier string. |
Uuidv5 | {@link https://developer.hashicorp.com/terraform/language/functions/uuidv5 uuidv5} generates a name-based UUID, as described in RFC 4122 section 4.3, also known as a "version 5" UUID. |
Values | {@link https://developer.hashicorp.com/terraform/language/functions/values values} takes a map and returns a list containing the values of the elements in that map. |
Yamldecode | {@link https://developer.hashicorp.com/terraform/language/functions/yamldecode yamldecode} parses a string as a subset of YAML, and produces a representation of its value. |
Yamlencode | {@link https://developer.hashicorp.com/terraform/language/functions/yamlencode yamlencode} encodes a given value to a string using YAML 1.2 block syntax. |
Zipmap | {@link https://developer.hashicorp.com/terraform/language/functions/zipmap zipmap} constructs a map from a list of keys and a corresponding list of values. |
Bcrypt | {@link /terraform/docs/language/functions/bcrypt.html bcrypt} computes a hash of the given string using the Blowfish cipher, returning a string in the Modular Crypt Format usually expected in the shadow password file on many Unix systems. |
Conditional | {@link https://developer.hashicorp.com/terraform/language/expressions/conditionals} A conditional expression uses the value of a boolean expression to select one of two values. |
Join | {@link /terraform/docs/language/functions/join.html join} produces a string by concatenating together all elements of a given list of strings with the given delimiter. |
Lookup | {@link /terraform/docs/language/functions/lookup.html lookup} retrieves the value of a single element from a map, given its key. If the given key does not exist, the given default value is returned instead. |
LookupNested | returns a property access expression that accesses the property at the given path in the given inputMap. |
Range | {@link /terraform/docs/language/functions/range.html range} generates a list of numbers using a start value, a limit value, and a step value. |
RawString | Use this function to wrap a string and escape it properly for the use in Terraform This is only needed in certain scenarios (e.g., if you have unescaped double quotes in the string). |
Abs
using HashiCorp.Cdktf;
Fn.Abs(double Num);
{@link https://developer.hashicorp.com/terraform/language/functions/abs abs} returns the absolute value of the given number. In other words, if the number is zero or positive then it is returned as-is, but if it is negative then it is multiplied by -1 to make it positive before returning it.
Num
Required
- Type: double
Abspath
using HashiCorp.Cdktf;
Fn.Abspath(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/abspath abspath} takes a string containing a filesystem path and converts it to an absolute path. That is, if the path is not absolute, it will be joined with the current working directory.
Path
Required
- Type: string
Alltrue
using HashiCorp.Cdktf;
Fn.Alltrue(object[] List);
{@link https://developer.hashicorp.com/terraform/language/functions/alltrue alltrue} returns true
if all elements in a given collection are true
or "true"
. It also returns true
if the collection is empty.
List
Required
- Type: object[]
Anytrue
using HashiCorp.Cdktf;
Fn.Anytrue(object[] List);
{@link https://developer.hashicorp.com/terraform/language/functions/anytrue anytrue} returns true
if any element in a given collection is true
or "true"
. It also returns false
if the collection is empty.
List
Required
- Type: object[]
Base64decode
using HashiCorp.Cdktf;
Fn.Base64decode(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/base64decode base64decode} takes a string containing a Base64 character sequence and returns the original string.
Str
Required
- Type: string
Base64encode
using HashiCorp.Cdktf;
Fn.Base64encode(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/base64encode base64encode} applies Base64 encoding to a string.
Str
Required
- Type: string
Base64gzip
using HashiCorp.Cdktf;
Fn.Base64gzip(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/base64gzip base64gzip} compresses a string with gzip and then encodes the result in Base64 encoding.
Str
Required
- Type: string
Base64sha256
using HashiCorp.Cdktf;
Fn.Base64sha256(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/base64sha256 base64sha256} computes the SHA256 hash of a given string and encodes it with Base64. This is not equivalent to base64encode(sha256("test"))
since sha256()
returns hexadecimal representation.
Str
Required
- Type: string
Base64sha512
using HashiCorp.Cdktf;
Fn.Base64sha512(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/base64sha512 base64sha512} computes the SHA512 hash of a given string and encodes it with Base64. This is not equivalent to base64encode(sha512("test"))
since sha512()
returns hexadecimal representation.
Str
Required
- Type: string
Basename
using HashiCorp.Cdktf;
Fn.Basename(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/basename basename} takes a string containing a filesystem path and removes all except the last portion from it.
Path
Required
- Type: string
Can
using HashiCorp.Cdktf;
Fn.Can(object Expression);
{@link https://developer.hashicorp.com/terraform/language/functions/can can} evaluates the given expression and returns a boolean value indicating whether the expression produced a result without any errors.
Expression
Required
- Type: object
Ceil
using HashiCorp.Cdktf;
Fn.Ceil(double Num);
{@link https://developer.hashicorp.com/terraform/language/functions/ceil ceil} returns the closest whole number that is greater than or equal to the given value, which may be a fraction.
Num
Required
- Type: double
Chomp
using HashiCorp.Cdktf;
Fn.Chomp(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/chomp chomp} removes newline characters at the end of a string.
Str
Required
- Type: string
Chunklist
using HashiCorp.Cdktf;
Fn.Chunklist(object[] List, double Size);
{@link https://developer.hashicorp.com/terraform/language/functions/chunklist chunklist} splits a single list into fixed-size chunks, returning a list of lists.
List
Required
- Type: object[]
Size
Required
- Type: double
Cidrhost
using HashiCorp.Cdktf;
Fn.Cidrhost(string Prefix, double Hostnum);
{@link https://developer.hashicorp.com/terraform/language/functions/cidrhost cidrhost} calculates a full host IP address for a given host number within a given IP network address prefix.
Prefix
Required
- Type: string
Hostnum
Required
- Type: double
Cidrnetmask
using HashiCorp.Cdktf;
Fn.Cidrnetmask(string Prefix);
{@link https://developer.hashicorp.com/terraform/language/functions/cidrnetmask cidrnetmask} converts an IPv4 address prefix given in CIDR notation into a subnet mask address.
Prefix
Required
- Type: string
Cidrsubnet
using HashiCorp.Cdktf;
Fn.Cidrsubnet(string Prefix, double Newbits, double Netnum);
{@link https://developer.hashicorp.com/terraform/language/functions/cidrsubnet cidrsubnet} calculates a subnet address within given IP network address prefix.
Prefix
Required
- Type: string
Newbits
Required
- Type: double
Netnum
Required
- Type: double
Cidrsubnets
using HashiCorp.Cdktf;
Fn.Cidrsubnets(string Prefix, double[] Newbits);
{@link https://developer.hashicorp.com/terraform/language/functions/cidrsubnets cidrsubnets} calculates a sequence of consecutive IP address ranges within a particular CIDR prefix.
Prefix
Required
- Type: string
Newbits
Required
- Type: double[]
Coalesce
using HashiCorp.Cdktf;
Fn.Coalesce(object[] Vals);
{@link https://developer.hashicorp.com/terraform/language/functions/coalesce coalesce} takes any number of arguments and returns the first one that isn't null or an empty string.
Vals
Required
- Type: object[]
Coalescelist
using HashiCorp.Cdktf;
Fn.Coalescelist(object[] Vals);
{@link https://developer.hashicorp.com/terraform/language/functions/coalescelist coalescelist} takes any number of list arguments and returns the first one that isn't empty.
Vals
Required
- Type: object[]
Compact
using HashiCorp.Cdktf;
Fn.Compact(string[] List);
{@link https://developer.hashicorp.com/terraform/language/functions/compact compact} takes a list of strings and returns a new list with any empty string elements removed.
List
Required
- Type: string[]
Concat
using HashiCorp.Cdktf;
Fn.Concat(object[] Seqs);
{@link https://developer.hashicorp.com/terraform/language/functions/concat concat} takes two or more lists and combines them into a single list.
Seqs
Required
- Type: object[]
Contains
using HashiCorp.Cdktf;
Fn.Contains(object List, object Value);
{@link https://developer.hashicorp.com/terraform/language/functions/contains contains} determines whether a given list or set contains a given single value as one of its elements.
List
Required
- Type: object
Value
Required
- Type: object
Csvdecode
using HashiCorp.Cdktf;
Fn.Csvdecode(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/csvdecode csvdecode} decodes a string containing CSV-formatted data and produces a list of maps representing that data.
Str
Required
- Type: string
Dirname
using HashiCorp.Cdktf;
Fn.Dirname(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/dirname dirname} takes a string containing a filesystem path and removes the last portion from it.
Path
Required
- Type: string
Distinct
using HashiCorp.Cdktf;
Fn.Distinct(object[] List);
{@link https://developer.hashicorp.com/terraform/language/functions/distinct distinct} takes a list and returns a new list with any duplicate elements removed.
List
Required
- Type: object[]
Element
using HashiCorp.Cdktf;
Fn.Element(object List, double Index);
{@link https://developer.hashicorp.com/terraform/language/functions/element element} retrieves a single element from a list.
List
Required
- Type: object
Index
Required
- Type: double
Endswith
using HashiCorp.Cdktf;
Fn.Endswith(string Str, string Suffix);
{@link https://developer.hashicorp.com/terraform/language/functions/endswith endswith} takes two values: a string to check and a suffix string. The function returns true if the first string ends with that exact suffix.
Str
Required
- Type: string
Suffix
Required
- Type: string
File
using HashiCorp.Cdktf;
Fn.File(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/file file} reads the contents of a file at the given path and returns them as a string.
Path
Required
- Type: string
Filebase64
using HashiCorp.Cdktf;
Fn.Filebase64(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/filebase64 filebase64} reads the contents of a file at the given path and returns them as a base64-encoded string.
Path
Required
- Type: string
Filebase64sha256
using HashiCorp.Cdktf;
Fn.Filebase64sha256(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/filebase64sha256 filebase64sha256} is a variant of base64sha256
that hashes the contents of a given file rather than a literal string.
Path
Required
- Type: string
Filebase64sha512
using HashiCorp.Cdktf;
Fn.Filebase64sha512(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/filebase64sha512 filebase64sha512} is a variant of base64sha512
that hashes the contents of a given file rather than a literal string.
Path
Required
- Type: string
Fileexists
using HashiCorp.Cdktf;
Fn.Fileexists(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/fileexists fileexists} determines whether a file exists at a given path.
Path
Required
- Type: string
Filemd5
using HashiCorp.Cdktf;
Fn.Filemd5(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/filemd5 filemd5} is a variant of md5
that hashes the contents of a given file rather than a literal string.
Path
Required
- Type: string
Fileset
using HashiCorp.Cdktf;
Fn.Fileset(string Path, string Pattern);
{@link https://developer.hashicorp.com/terraform/language/functions/fileset fileset} enumerates a set of regular file names given a path and pattern. The path is automatically removed from the resulting set of file names and any result still containing path separators always returns forward slash (/
) as the path separator for cross-system compatibility.
Path
Required
- Type: string
Pattern
Required
- Type: string
Filesha1
using HashiCorp.Cdktf;
Fn.Filesha1(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/filesha1 filesha1} is a variant of sha1
that hashes the contents of a given file rather than a literal string.
Path
Required
- Type: string
Filesha256
using HashiCorp.Cdktf;
Fn.Filesha256(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/filesha256 filesha256} is a variant of sha256
that hashes the contents of a given file rather than a literal string.
Path
Required
- Type: string
Filesha512
using HashiCorp.Cdktf;
Fn.Filesha512(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/filesha512 filesha512} is a variant of sha512
that hashes the contents of a given file rather than a literal string.
Path
Required
- Type: string
Flatten
using HashiCorp.Cdktf;
Fn.Flatten(object List);
{@link https://developer.hashicorp.com/terraform/language/functions/flatten flatten} takes a list and replaces any elements that are lists with a flattened sequence of the list contents.
List
Required
- Type: object
Floor
using HashiCorp.Cdktf;
Fn.Floor(double Num);
{@link https://developer.hashicorp.com/terraform/language/functions/floor floor} returns the closest whole number that is less than or equal to the given value, which may be a fraction.
Num
Required
- Type: double
Format
using HashiCorp.Cdktf;
Fn.Format(string Format, object[] Args);
The {@link https://developer.hashicorp.com/terraform/language/functions/format format} function produces a string by formatting a number of other values according to a specification string. It is similar to the printf
function in C, and other similar functions in other programming languages.
Format
Required
- Type: string
Args
Required
- Type: object[]
Formatdate
using HashiCorp.Cdktf;
Fn.Formatdate(string Format, string Time);
{@link https://developer.hashicorp.com/terraform/language/functions/formatdate formatdate} converts a timestamp into a different time format.
Format
Required
- Type: string
Time
Required
- Type: string
Formatlist
using HashiCorp.Cdktf;
Fn.Formatlist(string Format, object[] Args);
{@link https://developer.hashicorp.com/terraform/language/functions/formatlist formatlist} produces a list of strings by formatting a number of other values according to a specification string.
Format
Required
- Type: string
Args
Required
- Type: object[]
Indent
using HashiCorp.Cdktf;
Fn.Indent(double Spaces, string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/indent indent} adds a given number of spaces to the beginnings of all but the first line in a given multi-line string.
Spaces
Required
- Type: double
Str
Required
- Type: string
Index
using HashiCorp.Cdktf;
Fn.Index(object List, object Value);
{@link https://developer.hashicorp.com/terraform/language/functions/index index} finds the element index for a given value in a list.
List
Required
- Type: object
Value
Required
- Type: object
Jsondecode
using HashiCorp.Cdktf;
Fn.Jsondecode(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/jsondecode jsondecode} interprets a given string as JSON, returning a representation of the result of decoding that string.
Str
Required
- Type: string
Jsonencode
using HashiCorp.Cdktf;
Fn.Jsonencode(object Val);
{@link https://developer.hashicorp.com/terraform/language/functions/jsonencode jsonencode} encodes a given value to a string using JSON syntax.
Val
Required
- Type: object
Keys
using HashiCorp.Cdktf;
Fn.Keys(object InputMap);
{@link https://developer.hashicorp.com/terraform/language/functions/keys keys} takes a map and returns a list containing the keys from that map.
InputMap
Required
- Type: object
LengthOf
using HashiCorp.Cdktf;
Fn.LengthOf(object Value);
{@link https://developer.hashicorp.com/terraform/language/functions/length length} determines the length of a given list, map, or string.
Value
Required
- Type: object
Log
using HashiCorp.Cdktf;
Fn.Log(double Num, double Base);
{@link https://developer.hashicorp.com/terraform/language/functions/log log} returns the logarithm of a given number in a given base.
Num
Required
- Type: double
Base
Required
- Type: double
Lower
using HashiCorp.Cdktf;
Fn.Lower(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/lower lower} converts all cased letters in the given string to lowercase.
Str
Required
- Type: string
Matchkeys
using HashiCorp.Cdktf;
Fn.Matchkeys(object[] Values, object[] Keys, object[] Searchset);
{@link https://developer.hashicorp.com/terraform/language/functions/matchkeys matchkeys} constructs a new list by taking a subset of elements from one list whose indexes match the corresponding indexes of values in another list.
Values
Required
- Type: object[]
Keys
Required
- Type: object[]
Searchset
Required
- Type: object[]
Max
using HashiCorp.Cdktf;
Fn.Max(double[] Numbers);
{@link https://developer.hashicorp.com/terraform/language/functions/max max} takes one or more numbers and returns the greatest number from the set.
Numbers
Required
- Type: double[]
Md5
using HashiCorp.Cdktf;
Fn.Md5(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/md5 md5} computes the MD5 hash of a given string and encodes it with hexadecimal digits.
Str
Required
- Type: string
Merge
using HashiCorp.Cdktf;
Fn.Merge(object[] Maps);
{@link https://developer.hashicorp.com/terraform/language/functions/merge merge} takes an arbitrary number of maps or objects, and returns a single map or object that contains a merged set of elements from all arguments.
Maps
Required
- Type: object[]
Min
using HashiCorp.Cdktf;
Fn.Min(double[] Numbers);
{@link https://developer.hashicorp.com/terraform/language/functions/min min} takes one or more numbers and returns the smallest number from the set.
Numbers
Required
- Type: double[]
Nonsensitive
using HashiCorp.Cdktf;
Fn.Nonsensitive(object Value);
{@link https://developer.hashicorp.com/terraform/language/functions/nonsensitive nonsensitive} takes a sensitive value and returns a copy of that value with the sensitive marking removed, thereby exposing the sensitive value.
Value
Required
- Type: object
One
using HashiCorp.Cdktf;
Fn.One(object List);
{@link https://developer.hashicorp.com/terraform/language/functions/one one} takes a list, set, or tuple value with either zero or one elements. If the collection is empty, one
returns null
. Otherwise, one
returns the first element. If there are two or more elements then one
will return an error.
List
Required
- Type: object
Parseint
using HashiCorp.Cdktf;
Fn.Parseint(object Number, double Base);
{@link https://developer.hashicorp.com/terraform/language/functions/parseint parseint} parses the given string as a representation of an integer in the specified base and returns the resulting number. The base must be between 2 and 62 inclusive.
Number
Required
- Type: object
Base
Required
- Type: double
Pathexpand
using HashiCorp.Cdktf;
Fn.Pathexpand(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/pathexpand pathexpand} takes a filesystem path that might begin with a ~
segment, and if so it replaces that segment with the current user's home directory path.
Path
Required
- Type: string
Plantimestamp
using HashiCorp.Cdktf;
Fn.Plantimestamp();
{@link https://developer.hashicorp.com/terraform/language/functions/plantimestamp plantimestamp} returns a UTC timestamp string in RFC 3339 format, fixed to a constant time representing the time of the plan.
Pow
using HashiCorp.Cdktf;
Fn.Pow(double Num, double Power);
{@link https://developer.hashicorp.com/terraform/language/functions/pow pow} calculates an exponent, by raising its first argument to the power of the second argument.
Num
Required
- Type: double
Power
Required
- Type: double
Regex
using HashiCorp.Cdktf;
Fn.Regex(string Pattern, string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/regex regex} applies a regular expression to a string and returns the matching substrings.
Pattern
Required
- Type: string
Str
Required
- Type: string
Regexall
using HashiCorp.Cdktf;
Fn.Regexall(string Pattern, string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/regexall regexall} applies a regular expression to a string and returns a list of all matches.
Pattern
Required
- Type: string
Str
Required
- Type: string
Replace
using HashiCorp.Cdktf;
Fn.Replace(string Str, string Substr, string Replace);
{@link https://developer.hashicorp.com/terraform/language/functions/replace replace} searches a given string for another given substring, and replaces each occurrence with a given replacement string.
Str
Required
- Type: string
Substr
Required
- Type: string
Replace
Required
- Type: string
Reverse
using HashiCorp.Cdktf;
Fn.Reverse(object List);
{@link https://developer.hashicorp.com/terraform/language/functions/reverse reverse} takes a sequence and produces a new sequence of the same length with all of the same elements as the given sequence but in reverse order.
List
Required
- Type: object
Rsadecrypt
using HashiCorp.Cdktf;
Fn.Rsadecrypt(string Ciphertext, string Privatekey);
{@link https://developer.hashicorp.com/terraform/language/functions/rsadecrypt rsadecrypt} decrypts an RSA-encrypted ciphertext, returning the corresponding cleartext.
Ciphertext
Required
- Type: string
Privatekey
Required
- Type: string
Sensitive
using HashiCorp.Cdktf;
Fn.Sensitive(object Value);
{@link https://developer.hashicorp.com/terraform/language/functions/sensitive sensitive} takes any value and returns a copy of it marked so that Terraform will treat it as sensitive, with the same meaning and behavior as for sensitive input variables.
Value
Required
- Type: object
Setintersection
using HashiCorp.Cdktf;
Fn.Setintersection(object[] FirstSet, object[][] OtherSets);
The {@link https://developer.hashicorp.com/terraform/language/functions/setintersection setintersection} function takes multiple sets and produces a single set containing only the elements that all of the given sets have in common. In other words, it computes the intersection of the sets.
FirstSet
Required
- Type: object[]
OtherSets
Required
- Type: object[][]
Setproduct
using HashiCorp.Cdktf;
Fn.Setproduct(object[] Sets);
The {@link https://developer.hashicorp.com/terraform/language/functions/setproduct setproduct} function finds all of the possible combinations of elements from all of the given sets by computing the Cartesian product.
Sets
Required
- Type: object[]
Setsubtract
using HashiCorp.Cdktf;
Fn.Setsubtract(object[] A, object[] B);
The {@link https://developer.hashicorp.com/terraform/language/functions/setsubtract setsubtract} function returns a new set containing the elements from the first set that are not present in the second set. In other words, it computes the relative complement of the second set.
A
Required
- Type: object[]
B
Required
- Type: object[]
Setunion
using HashiCorp.Cdktf;
Fn.Setunion(object[] FirstSet, object[][] OtherSets);
The {@link https://developer.hashicorp.com/terraform/language/functions/setunion setunion} function takes multiple sets and produces a single set containing the elements from all of the given sets. In other words, it computes the union of the sets.
FirstSet
Required
- Type: object[]
OtherSets
Required
- Type: object[][]
Sha1
using HashiCorp.Cdktf;
Fn.Sha1(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/sha1 sha1} computes the SHA1 hash of a given string and encodes it with hexadecimal digits.
Str
Required
- Type: string
Sha256
using HashiCorp.Cdktf;
Fn.Sha256(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/sha256 sha256} computes the SHA256 hash of a given string and encodes it with hexadecimal digits.
Str
Required
- Type: string
Sha512
using HashiCorp.Cdktf;
Fn.Sha512(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/sha512 sha512} computes the SHA512 hash of a given string and encodes it with hexadecimal digits.
Str
Required
- Type: string
Signum
using HashiCorp.Cdktf;
Fn.Signum(double Num);
{@link https://developer.hashicorp.com/terraform/language/functions/signum signum} determines the sign of a number, returning a number between -1 and 1 to represent the sign.
Num
Required
- Type: double
Slice
using HashiCorp.Cdktf;
Fn.Slice(object List, double StartIndex, double EndIndex);
{@link https://developer.hashicorp.com/terraform/language/functions/slice slice} extracts some consecutive elements from within a list.
List
Required
- Type: object
StartIndex
Required
- Type: double
EndIndex
Required
- Type: double
Sort
using HashiCorp.Cdktf;
Fn.Sort(string[] List);
{@link https://developer.hashicorp.com/terraform/language/functions/sort sort} takes a list of strings and returns a new list with those strings sorted lexicographically.
List
Required
- Type: string[]
Split
using HashiCorp.Cdktf;
Fn.Split(string Separator, string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/split split} produces a list by dividing a given string at all occurrences of a given separator.
Separator
Required
- Type: string
Str
Required
- Type: string
Startswith
using HashiCorp.Cdktf;
Fn.Startswith(string Str, string Prefix);
{@link https://developer.hashicorp.com/terraform/language/functions/startswith startswith} takes two values: a string to check and a prefix string. The function returns true if the string begins with that exact prefix.
Str
Required
- Type: string
Prefix
Required
- Type: string
Strcontains
using HashiCorp.Cdktf;
Fn.Strcontains(string Str, string Substr);
{@link https://developer.hashicorp.com/terraform/language/functions/strcontains strcontains} takes two values: a string to check and an expected substring. The function returns true if the string has the substring contained within it.
Str
Required
- Type: string
Substr
Required
- Type: string
Strrev
using HashiCorp.Cdktf;
Fn.Strrev(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/strrev strrev} reverses the characters in a string. Note that the characters are treated as Unicode characters (in technical terms, Unicode grapheme cluster boundaries are respected).
Str
Required
- Type: string
Substr
using HashiCorp.Cdktf;
Fn.Substr(string Str, double Offset, double Length);
{@link https://developer.hashicorp.com/terraform/language/functions/substr substr} extracts a substring from a given string by offset and (maximum) length.
Str
Required
- Type: string
Offset
Required
- Type: double
Length
Required
- Type: double
Sum
using HashiCorp.Cdktf;
Fn.Sum(object List);
{@link https://developer.hashicorp.com/terraform/language/functions/sum sum} takes a list or set of numbers and returns the sum of those numbers.
List
Required
- Type: object
Templatefile
using HashiCorp.Cdktf;
Fn.Templatefile(string Path, object Vars);
{@link https://developer.hashicorp.com/terraform/language/functions/templatefile templatefile} reads the file at the given path and renders its content as a template using a supplied set of template variables.
Path
Required
- Type: string
Vars
Required
- Type: object
Textdecodebase64
using HashiCorp.Cdktf;
Fn.Textdecodebase64(string Source, string Encoding);
{@link https://developer.hashicorp.com/terraform/language/functions/textdecodebase64 textdecodebase64} function decodes a string that was previously Base64-encoded, and then interprets the result as characters in a specified character encoding.
Source
Required
- Type: string
Encoding
Required
- Type: string
Textencodebase64
using HashiCorp.Cdktf;
Fn.Textencodebase64(string Str, string Encoding);
{@link https://developer.hashicorp.com/terraform/language/functions/textencodebase64 textencodebase64} encodes the unicode characters in a given string using a specified character encoding, returning the result base64 encoded because Terraform language strings are always sequences of unicode characters.
Str
Required
- Type: string
Encoding
Required
- Type: string
Timeadd
using HashiCorp.Cdktf;
Fn.Timeadd(string Timestamp, string Duration);
{@link https://developer.hashicorp.com/terraform/language/functions/timeadd timeadd} adds a duration to a timestamp, returning a new timestamp.
Timestamp
Required
- Type: string
Duration
Required
- Type: string
Timecmp
using HashiCorp.Cdktf;
Fn.Timecmp(string TimestampA, string TimestampB);
{@link https://developer.hashicorp.com/terraform/language/functions/timecmp timecmp} compares two timestamps and returns a number that represents the ordering of the instants those timestamps represent.
TimestampA
Required
- Type: string
TimestampB
Required
- Type: string
Timestamp
using HashiCorp.Cdktf;
Fn.Timestamp();
{@link https://developer.hashicorp.com/terraform/language/functions/timestamp timestamp} returns a UTC timestamp string in RFC 3339 format.
Title
using HashiCorp.Cdktf;
Fn.Title(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/title title} converts the first letter of each word in the given string to uppercase.
Str
Required
- Type: string
Tobool
using HashiCorp.Cdktf;
Fn.Tobool(object V);
{@link https://developer.hashicorp.com/terraform/language/functions/tobool tobool} converts its argument to a boolean value.
V
Required
- Type: object
Tolist
using HashiCorp.Cdktf;
Fn.Tolist(object V);
{@link https://developer.hashicorp.com/terraform/language/functions/tolist tolist} converts its argument to a list value.
V
Required
- Type: object
Tomap
using HashiCorp.Cdktf;
Fn.Tomap(object V);
{@link https://developer.hashicorp.com/terraform/language/functions/tomap tomap} converts its argument to a map value.
V
Required
- Type: object
Tonumber
using HashiCorp.Cdktf;
Fn.Tonumber(object V);
{@link https://developer.hashicorp.com/terraform/language/functions/tonumber tonumber} converts its argument to a number value.
V
Required
- Type: object
Toset
using HashiCorp.Cdktf;
Fn.Toset(object V);
{@link https://developer.hashicorp.com/terraform/language/functions/toset toset} converts its argument to a set value.
V
Required
- Type: object
Tostring
using HashiCorp.Cdktf;
Fn.Tostring(object V);
{@link https://developer.hashicorp.com/terraform/language/functions/tostring tostring} converts its argument to a string value.
V
Required
- Type: object
Transpose
using HashiCorp.Cdktf;
Fn.Transpose(object Values);
{@link https://developer.hashicorp.com/terraform/language/functions/transpose transpose} takes a map of lists of strings and swaps the keys and values to produce a new map of lists of strings.
Values
Required
- Type: object
Trim
using HashiCorp.Cdktf;
Fn.Trim(string Str, string Cutset);
{@link https://developer.hashicorp.com/terraform/language/functions/trim trim} removes the specified set of characters from the start and end of the given string.
Str
Required
- Type: string
Cutset
Required
- Type: string
Trimprefix
using HashiCorp.Cdktf;
Fn.Trimprefix(string Str, string Prefix);
{@link https://developer.hashicorp.com/terraform/language/functions/trimprefix trimprefix} removes the specified prefix from the start of the given string. If the string does not start with the prefix, the string is returned unchanged.
Str
Required
- Type: string
Prefix
Required
- Type: string
Trimspace
using HashiCorp.Cdktf;
Fn.Trimspace(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/trimspace trimspace} removes any space characters from the start and end of the given string.
Str
Required
- Type: string
Trimsuffix
using HashiCorp.Cdktf;
Fn.Trimsuffix(string Str, string Suffix);
{@link https://developer.hashicorp.com/terraform/language/functions/trimsuffix trimsuffix} removes the specified suffix from the end of the given string.
Str
Required
- Type: string
Suffix
Required
- Type: string
Try
using HashiCorp.Cdktf;
Fn.Try(object[] Expressions);
{@link https://developer.hashicorp.com/terraform/language/functions/try try} evaluates all of its argument expressions in turn and returns the result of the first one that does not produce any errors.
Expressions
Required
- Type: object[]
Upper
using HashiCorp.Cdktf;
Fn.Upper(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/upper upper} converts all cased letters in the given string to uppercase.
Str
Required
- Type: string
Urlencode
using HashiCorp.Cdktf;
Fn.Urlencode(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/urlencode urlencode} applies URL encoding to a given string.
Str
Required
- Type: string
Uuid
using HashiCorp.Cdktf;
Fn.Uuid();
{@link https://developer.hashicorp.com/terraform/language/functions/uuid uuid} generates a unique identifier string.
Uuidv5
using HashiCorp.Cdktf;
Fn.Uuidv5(string Namespace, string Name);
{@link https://developer.hashicorp.com/terraform/language/functions/uuidv5 uuidv5} generates a name-based UUID, as described in RFC 4122 section 4.3, also known as a "version 5" UUID.
Namespace
Required
- Type: string
Name
Required
- Type: string
Values
using HashiCorp.Cdktf;
Fn.Values(object Mapping);
{@link https://developer.hashicorp.com/terraform/language/functions/values values} takes a map and returns a list containing the values of the elements in that map.
Mapping
Required
- Type: object
Yamldecode
using HashiCorp.Cdktf;
Fn.Yamldecode(string Src);
{@link https://developer.hashicorp.com/terraform/language/functions/yamldecode yamldecode} parses a string as a subset of YAML, and produces a representation of its value.
Src
Required
- Type: string
Yamlencode
using HashiCorp.Cdktf;
Fn.Yamlencode(object Value);
{@link https://developer.hashicorp.com/terraform/language/functions/yamlencode yamlencode} encodes a given value to a string using YAML 1.2 block syntax.
Value
Required
- Type: object
Zipmap
using HashiCorp.Cdktf;
Fn.Zipmap(string[] Keys, object Values);
{@link https://developer.hashicorp.com/terraform/language/functions/zipmap zipmap} constructs a map from a list of keys and a corresponding list of values.
Keys
Required
- Type: string[]
Values
Required
- Type: object
Bcrypt
using HashiCorp.Cdktf;
Fn.Bcrypt(string Str, double Cost = null);
{@link /terraform/docs/language/functions/bcrypt.html bcrypt} computes a hash of the given string using the Blowfish cipher, returning a string in the Modular Crypt Format usually expected in the shadow password file on many Unix systems.
Str
Required
- Type: string
Cost
Optional
- Type: double
Conditional
using HashiCorp.Cdktf;
Fn.Conditional(object Condition, object TrueValue, object FalseValue);
{@link https://developer.hashicorp.com/terraform/language/expressions/conditionals} A conditional expression uses the value of a boolean expression to select one of two values.
Condition
Required
- Type: object
TrueValue
Required
- Type: object
FalseValue
Required
- Type: object
Join
using HashiCorp.Cdktf;
Fn.Join(string Separator, string[] List);
{@link /terraform/docs/language/functions/join.html join} produces a string by concatenating together all elements of a given list of strings with the given delimiter.
Separator
Required
- Type: string
List
Required
- Type: string[]
Lookup
using HashiCorp.Cdktf;
Fn.Lookup(object InputMap, string Key, object DefaultValue = null);
{@link /terraform/docs/language/functions/lookup.html lookup} retrieves the value of a single element from a map, given its key. If the given key does not exist, the given default value is returned instead.
InputMap
Required
- Type: object
Key
Required
- Type: string
DefaultValue
Optional
- Type: object
LookupNested
using HashiCorp.Cdktf;
Fn.LookupNested(object InputMap, object[] Path);
returns a property access expression that accesses the property at the given path in the given inputMap.
For example lookupNested(x, ["a", "b", "c"]) will return a Terraform expression like x["a"]["b"]["c"]
InputMap
Required
- Type: object
Path
Required
- Type: object[]
Range
using HashiCorp.Cdktf;
Fn.Range(double Start, double Limit, double Step = null);
{@link /terraform/docs/language/functions/range.html range} generates a list of numbers using a start value, a limit value, and a step value.
Start
Required
- Type: double
Limit
Required
- Type: double
Step
Optional
- Type: double
RawString
using HashiCorp.Cdktf;
Fn.RawString(string Str);
Use this function to wrap a string and escape it properly for the use in Terraform This is only needed in certain scenarios (e.g., if you have unescaped double quotes in the string).
Str
Required
- Type: string
FnGenerated
Initializers
using HashiCorp.Cdktf;
new FnGenerated();
Name | Type | Description |
---|
Static Functions
Name | Description |
---|---|
Abs | {@link https://developer.hashicorp.com/terraform/language/functions/abs abs} returns the absolute value of the given number. In other words, if the number is zero or positive then it is returned as-is, but if it is negative then it is multiplied by -1 to make it positive before returning it. |
Abspath | {@link https://developer.hashicorp.com/terraform/language/functions/abspath abspath} takes a string containing a filesystem path and converts it to an absolute path. That is, if the path is not absolute, it will be joined with the current working directory. |
Alltrue | {@link https://developer.hashicorp.com/terraform/language/functions/alltrue alltrue} returns true if all elements in a given collection are true or "true" . It also returns true if the collection is empty. |
Anytrue | {@link https://developer.hashicorp.com/terraform/language/functions/anytrue anytrue} returns true if any element in a given collection is true or "true" . It also returns false if the collection is empty. |
Base64decode | {@link https://developer.hashicorp.com/terraform/language/functions/base64decode base64decode} takes a string containing a Base64 character sequence and returns the original string. |
Base64encode | {@link https://developer.hashicorp.com/terraform/language/functions/base64encode base64encode} applies Base64 encoding to a string. |
Base64gzip | {@link https://developer.hashicorp.com/terraform/language/functions/base64gzip base64gzip} compresses a string with gzip and then encodes the result in Base64 encoding. |
Base64sha256 | {@link https://developer.hashicorp.com/terraform/language/functions/base64sha256 base64sha256} computes the SHA256 hash of a given string and encodes it with Base64. This is not equivalent to base64encode(sha256("test")) since sha256() returns hexadecimal representation. |
Base64sha512 | {@link https://developer.hashicorp.com/terraform/language/functions/base64sha512 base64sha512} computes the SHA512 hash of a given string and encodes it with Base64. This is not equivalent to base64encode(sha512("test")) since sha512() returns hexadecimal representation. |
Basename | {@link https://developer.hashicorp.com/terraform/language/functions/basename basename} takes a string containing a filesystem path and removes all except the last portion from it. |
Can | {@link https://developer.hashicorp.com/terraform/language/functions/can can} evaluates the given expression and returns a boolean value indicating whether the expression produced a result without any errors. |
Ceil | {@link https://developer.hashicorp.com/terraform/language/functions/ceil ceil} returns the closest whole number that is greater than or equal to the given value, which may be a fraction. |
Chomp | {@link https://developer.hashicorp.com/terraform/language/functions/chomp chomp} removes newline characters at the end of a string. |
Chunklist | {@link https://developer.hashicorp.com/terraform/language/functions/chunklist chunklist} splits a single list into fixed-size chunks, returning a list of lists. |
Cidrhost | {@link https://developer.hashicorp.com/terraform/language/functions/cidrhost cidrhost} calculates a full host IP address for a given host number within a given IP network address prefix. |
Cidrnetmask | {@link https://developer.hashicorp.com/terraform/language/functions/cidrnetmask cidrnetmask} converts an IPv4 address prefix given in CIDR notation into a subnet mask address. |
Cidrsubnet | {@link https://developer.hashicorp.com/terraform/language/functions/cidrsubnet cidrsubnet} calculates a subnet address within given IP network address prefix. |
Cidrsubnets | {@link https://developer.hashicorp.com/terraform/language/functions/cidrsubnets cidrsubnets} calculates a sequence of consecutive IP address ranges within a particular CIDR prefix. |
Coalesce | {@link https://developer.hashicorp.com/terraform/language/functions/coalesce coalesce} takes any number of arguments and returns the first one that isn't null or an empty string. |
Coalescelist | {@link https://developer.hashicorp.com/terraform/language/functions/coalescelist coalescelist} takes any number of list arguments and returns the first one that isn't empty. |
Compact | {@link https://developer.hashicorp.com/terraform/language/functions/compact compact} takes a list of strings and returns a new list with any empty string elements removed. |
Concat | {@link https://developer.hashicorp.com/terraform/language/functions/concat concat} takes two or more lists and combines them into a single list. |
Contains | {@link https://developer.hashicorp.com/terraform/language/functions/contains contains} determines whether a given list or set contains a given single value as one of its elements. |
Csvdecode | {@link https://developer.hashicorp.com/terraform/language/functions/csvdecode csvdecode} decodes a string containing CSV-formatted data and produces a list of maps representing that data. |
Dirname | {@link https://developer.hashicorp.com/terraform/language/functions/dirname dirname} takes a string containing a filesystem path and removes the last portion from it. |
Distinct | {@link https://developer.hashicorp.com/terraform/language/functions/distinct distinct} takes a list and returns a new list with any duplicate elements removed. |
Element | {@link https://developer.hashicorp.com/terraform/language/functions/element element} retrieves a single element from a list. |
Endswith | {@link https://developer.hashicorp.com/terraform/language/functions/endswith endswith} takes two values: a string to check and a suffix string. The function returns true if the first string ends with that exact suffix. |
File | {@link https://developer.hashicorp.com/terraform/language/functions/file file} reads the contents of a file at the given path and returns them as a string. |
Filebase64 | {@link https://developer.hashicorp.com/terraform/language/functions/filebase64 filebase64} reads the contents of a file at the given path and returns them as a base64-encoded string. |
Filebase64sha256 | {@link https://developer.hashicorp.com/terraform/language/functions/filebase64sha256 filebase64sha256} is a variant of base64sha256 that hashes the contents of a given file rather than a literal string. |
Filebase64sha512 | {@link https://developer.hashicorp.com/terraform/language/functions/filebase64sha512 filebase64sha512} is a variant of base64sha512 that hashes the contents of a given file rather than a literal string. |
Fileexists | {@link https://developer.hashicorp.com/terraform/language/functions/fileexists fileexists} determines whether a file exists at a given path. |
Filemd5 | {@link https://developer.hashicorp.com/terraform/language/functions/filemd5 filemd5} is a variant of md5 that hashes the contents of a given file rather than a literal string. |
Fileset | {@link https://developer.hashicorp.com/terraform/language/functions/fileset fileset} enumerates a set of regular file names given a path and pattern. The path is automatically removed from the resulting set of file names and any result still containing path separators always returns forward slash (/ ) as the path separator for cross-system compatibility. |
Filesha1 | {@link https://developer.hashicorp.com/terraform/language/functions/filesha1 filesha1} is a variant of sha1 that hashes the contents of a given file rather than a literal string. |
Filesha256 | {@link https://developer.hashicorp.com/terraform/language/functions/filesha256 filesha256} is a variant of sha256 that hashes the contents of a given file rather than a literal string. |
Filesha512 | {@link https://developer.hashicorp.com/terraform/language/functions/filesha512 filesha512} is a variant of sha512 that hashes the contents of a given file rather than a literal string. |
Flatten | {@link https://developer.hashicorp.com/terraform/language/functions/flatten flatten} takes a list and replaces any elements that are lists with a flattened sequence of the list contents. |
Floor | {@link https://developer.hashicorp.com/terraform/language/functions/floor floor} returns the closest whole number that is less than or equal to the given value, which may be a fraction. |
Format | The {@link https://developer.hashicorp.com/terraform/language/functions/format format} function produces a string by formatting a number of other values according to a specification string. It is similar to the printf function in C, and other similar functions in other programming languages. |
Formatdate | {@link https://developer.hashicorp.com/terraform/language/functions/formatdate formatdate} converts a timestamp into a different time format. |
Formatlist | {@link https://developer.hashicorp.com/terraform/language/functions/formatlist formatlist} produces a list of strings by formatting a number of other values according to a specification string. |
Indent | {@link https://developer.hashicorp.com/terraform/language/functions/indent indent} adds a given number of spaces to the beginnings of all but the first line in a given multi-line string. |
Index | {@link https://developer.hashicorp.com/terraform/language/functions/index index} finds the element index for a given value in a list. |
Jsondecode | {@link https://developer.hashicorp.com/terraform/language/functions/jsondecode jsondecode} interprets a given string as JSON, returning a representation of the result of decoding that string. |
Jsonencode | {@link https://developer.hashicorp.com/terraform/language/functions/jsonencode jsonencode} encodes a given value to a string using JSON syntax. |
Keys | {@link https://developer.hashicorp.com/terraform/language/functions/keys keys} takes a map and returns a list containing the keys from that map. |
LengthOf | {@link https://developer.hashicorp.com/terraform/language/functions/length length} determines the length of a given list, map, or string. |
Log | {@link https://developer.hashicorp.com/terraform/language/functions/log log} returns the logarithm of a given number in a given base. |
Lower | {@link https://developer.hashicorp.com/terraform/language/functions/lower lower} converts all cased letters in the given string to lowercase. |
Matchkeys | {@link https://developer.hashicorp.com/terraform/language/functions/matchkeys matchkeys} constructs a new list by taking a subset of elements from one list whose indexes match the corresponding indexes of values in another list. |
Max | {@link https://developer.hashicorp.com/terraform/language/functions/max max} takes one or more numbers and returns the greatest number from the set. |
Md5 | {@link https://developer.hashicorp.com/terraform/language/functions/md5 md5} computes the MD5 hash of a given string and encodes it with hexadecimal digits. |
Merge | {@link https://developer.hashicorp.com/terraform/language/functions/merge merge} takes an arbitrary number of maps or objects, and returns a single map or object that contains a merged set of elements from all arguments. |
Min | {@link https://developer.hashicorp.com/terraform/language/functions/min min} takes one or more numbers and returns the smallest number from the set. |
Nonsensitive | {@link https://developer.hashicorp.com/terraform/language/functions/nonsensitive nonsensitive} takes a sensitive value and returns a copy of that value with the sensitive marking removed, thereby exposing the sensitive value. |
One | {@link https://developer.hashicorp.com/terraform/language/functions/one one} takes a list, set, or tuple value with either zero or one elements. If the collection is empty, one returns null . Otherwise, one returns the first element. If there are two or more elements then one will return an error. |
Parseint | {@link https://developer.hashicorp.com/terraform/language/functions/parseint parseint} parses the given string as a representation of an integer in the specified base and returns the resulting number. The base must be between 2 and 62 inclusive. |
Pathexpand | {@link https://developer.hashicorp.com/terraform/language/functions/pathexpand pathexpand} takes a filesystem path that might begin with a ~ segment, and if so it replaces that segment with the current user's home directory path. |
Plantimestamp | {@link https://developer.hashicorp.com/terraform/language/functions/plantimestamp plantimestamp} returns a UTC timestamp string in RFC 3339 format, fixed to a constant time representing the time of the plan. |
Pow | {@link https://developer.hashicorp.com/terraform/language/functions/pow pow} calculates an exponent, by raising its first argument to the power of the second argument. |
Regex | {@link https://developer.hashicorp.com/terraform/language/functions/regex regex} applies a regular expression to a string and returns the matching substrings. |
Regexall | {@link https://developer.hashicorp.com/terraform/language/functions/regexall regexall} applies a regular expression to a string and returns a list of all matches. |
Replace | {@link https://developer.hashicorp.com/terraform/language/functions/replace replace} searches a given string for another given substring, and replaces each occurrence with a given replacement string. |
Reverse | {@link https://developer.hashicorp.com/terraform/language/functions/reverse reverse} takes a sequence and produces a new sequence of the same length with all of the same elements as the given sequence but in reverse order. |
Rsadecrypt | {@link https://developer.hashicorp.com/terraform/language/functions/rsadecrypt rsadecrypt} decrypts an RSA-encrypted ciphertext, returning the corresponding cleartext. |
Sensitive | {@link https://developer.hashicorp.com/terraform/language/functions/sensitive sensitive} takes any value and returns a copy of it marked so that Terraform will treat it as sensitive, with the same meaning and behavior as for sensitive input variables. |
Setintersection | The {@link https://developer.hashicorp.com/terraform/language/functions/setintersection setintersection} function takes multiple sets and produces a single set containing only the elements that all of the given sets have in common. In other words, it computes the intersection of the sets. |
Setproduct | The {@link https://developer.hashicorp.com/terraform/language/functions/setproduct setproduct} function finds all of the possible combinations of elements from all of the given sets by computing the Cartesian product. |
Setsubtract | The {@link https://developer.hashicorp.com/terraform/language/functions/setsubtract setsubtract} function returns a new set containing the elements from the first set that are not present in the second set. In other words, it computes the relative complement of the second set. |
Setunion | The {@link https://developer.hashicorp.com/terraform/language/functions/setunion setunion} function takes multiple sets and produces a single set containing the elements from all of the given sets. In other words, it computes the union of the sets. |
Sha1 | {@link https://developer.hashicorp.com/terraform/language/functions/sha1 sha1} computes the SHA1 hash of a given string and encodes it with hexadecimal digits. |
Sha256 | {@link https://developer.hashicorp.com/terraform/language/functions/sha256 sha256} computes the SHA256 hash of a given string and encodes it with hexadecimal digits. |
Sha512 | {@link https://developer.hashicorp.com/terraform/language/functions/sha512 sha512} computes the SHA512 hash of a given string and encodes it with hexadecimal digits. |
Signum | {@link https://developer.hashicorp.com/terraform/language/functions/signum signum} determines the sign of a number, returning a number between -1 and 1 to represent the sign. |
Slice | {@link https://developer.hashicorp.com/terraform/language/functions/slice slice} extracts some consecutive elements from within a list. |
Sort | {@link https://developer.hashicorp.com/terraform/language/functions/sort sort} takes a list of strings and returns a new list with those strings sorted lexicographically. |
Split | {@link https://developer.hashicorp.com/terraform/language/functions/split split} produces a list by dividing a given string at all occurrences of a given separator. |
Startswith | {@link https://developer.hashicorp.com/terraform/language/functions/startswith startswith} takes two values: a string to check and a prefix string. The function returns true if the string begins with that exact prefix. |
Strcontains | {@link https://developer.hashicorp.com/terraform/language/functions/strcontains strcontains} takes two values: a string to check and an expected substring. The function returns true if the string has the substring contained within it. |
Strrev | {@link https://developer.hashicorp.com/terraform/language/functions/strrev strrev} reverses the characters in a string. Note that the characters are treated as Unicode characters (in technical terms, Unicode grapheme cluster boundaries are respected). |
Substr | {@link https://developer.hashicorp.com/terraform/language/functions/substr substr} extracts a substring from a given string by offset and (maximum) length. |
Sum | {@link https://developer.hashicorp.com/terraform/language/functions/sum sum} takes a list or set of numbers and returns the sum of those numbers. |
Templatefile | {@link https://developer.hashicorp.com/terraform/language/functions/templatefile templatefile} reads the file at the given path and renders its content as a template using a supplied set of template variables. |
Textdecodebase64 | {@link https://developer.hashicorp.com/terraform/language/functions/textdecodebase64 textdecodebase64} function decodes a string that was previously Base64-encoded, and then interprets the result as characters in a specified character encoding. |
Textencodebase64 | {@link https://developer.hashicorp.com/terraform/language/functions/textencodebase64 textencodebase64} encodes the unicode characters in a given string using a specified character encoding, returning the result base64 encoded because Terraform language strings are always sequences of unicode characters. |
Timeadd | {@link https://developer.hashicorp.com/terraform/language/functions/timeadd timeadd} adds a duration to a timestamp, returning a new timestamp. |
Timecmp | {@link https://developer.hashicorp.com/terraform/language/functions/timecmp timecmp} compares two timestamps and returns a number that represents the ordering of the instants those timestamps represent. |
Timestamp | {@link https://developer.hashicorp.com/terraform/language/functions/timestamp timestamp} returns a UTC timestamp string in RFC 3339 format. |
Title | {@link https://developer.hashicorp.com/terraform/language/functions/title title} converts the first letter of each word in the given string to uppercase. |
Tobool | {@link https://developer.hashicorp.com/terraform/language/functions/tobool tobool} converts its argument to a boolean value. |
Tolist | {@link https://developer.hashicorp.com/terraform/language/functions/tolist tolist} converts its argument to a list value. |
Tomap | {@link https://developer.hashicorp.com/terraform/language/functions/tomap tomap} converts its argument to a map value. |
Tonumber | {@link https://developer.hashicorp.com/terraform/language/functions/tonumber tonumber} converts its argument to a number value. |
Toset | {@link https://developer.hashicorp.com/terraform/language/functions/toset toset} converts its argument to a set value. |
Tostring | {@link https://developer.hashicorp.com/terraform/language/functions/tostring tostring} converts its argument to a string value. |
Transpose | {@link https://developer.hashicorp.com/terraform/language/functions/transpose transpose} takes a map of lists of strings and swaps the keys and values to produce a new map of lists of strings. |
Trim | {@link https://developer.hashicorp.com/terraform/language/functions/trim trim} removes the specified set of characters from the start and end of the given string. |
Trimprefix | {@link https://developer.hashicorp.com/terraform/language/functions/trimprefix trimprefix} removes the specified prefix from the start of the given string. If the string does not start with the prefix, the string is returned unchanged. |
Trimspace | {@link https://developer.hashicorp.com/terraform/language/functions/trimspace trimspace} removes any space characters from the start and end of the given string. |
Trimsuffix | {@link https://developer.hashicorp.com/terraform/language/functions/trimsuffix trimsuffix} removes the specified suffix from the end of the given string. |
Try | {@link https://developer.hashicorp.com/terraform/language/functions/try try} evaluates all of its argument expressions in turn and returns the result of the first one that does not produce any errors. |
Upper | {@link https://developer.hashicorp.com/terraform/language/functions/upper upper} converts all cased letters in the given string to uppercase. |
Urlencode | {@link https://developer.hashicorp.com/terraform/language/functions/urlencode urlencode} applies URL encoding to a given string. |
Uuid | {@link https://developer.hashicorp.com/terraform/language/functions/uuid uuid} generates a unique identifier string. |
Uuidv5 | {@link https://developer.hashicorp.com/terraform/language/functions/uuidv5 uuidv5} generates a name-based UUID, as described in RFC 4122 section 4.3, also known as a "version 5" UUID. |
Values | {@link https://developer.hashicorp.com/terraform/language/functions/values values} takes a map and returns a list containing the values of the elements in that map. |
Yamldecode | {@link https://developer.hashicorp.com/terraform/language/functions/yamldecode yamldecode} parses a string as a subset of YAML, and produces a representation of its value. |
Yamlencode | {@link https://developer.hashicorp.com/terraform/language/functions/yamlencode yamlencode} encodes a given value to a string using YAML 1.2 block syntax. |
Zipmap | {@link https://developer.hashicorp.com/terraform/language/functions/zipmap zipmap} constructs a map from a list of keys and a corresponding list of values. |
Abs
using HashiCorp.Cdktf;
FnGenerated.Abs(double Num);
{@link https://developer.hashicorp.com/terraform/language/functions/abs abs} returns the absolute value of the given number. In other words, if the number is zero or positive then it is returned as-is, but if it is negative then it is multiplied by -1 to make it positive before returning it.
Num
Required
- Type: double
Abspath
using HashiCorp.Cdktf;
FnGenerated.Abspath(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/abspath abspath} takes a string containing a filesystem path and converts it to an absolute path. That is, if the path is not absolute, it will be joined with the current working directory.
Path
Required
- Type: string
Alltrue
using HashiCorp.Cdktf;
FnGenerated.Alltrue(object[] List);
{@link https://developer.hashicorp.com/terraform/language/functions/alltrue alltrue} returns true
if all elements in a given collection are true
or "true"
. It also returns true
if the collection is empty.
List
Required
- Type: object[]
Anytrue
using HashiCorp.Cdktf;
FnGenerated.Anytrue(object[] List);
{@link https://developer.hashicorp.com/terraform/language/functions/anytrue anytrue} returns true
if any element in a given collection is true
or "true"
. It also returns false
if the collection is empty.
List
Required
- Type: object[]
Base64decode
using HashiCorp.Cdktf;
FnGenerated.Base64decode(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/base64decode base64decode} takes a string containing a Base64 character sequence and returns the original string.
Str
Required
- Type: string
Base64encode
using HashiCorp.Cdktf;
FnGenerated.Base64encode(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/base64encode base64encode} applies Base64 encoding to a string.
Str
Required
- Type: string
Base64gzip
using HashiCorp.Cdktf;
FnGenerated.Base64gzip(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/base64gzip base64gzip} compresses a string with gzip and then encodes the result in Base64 encoding.
Str
Required
- Type: string
Base64sha256
using HashiCorp.Cdktf;
FnGenerated.Base64sha256(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/base64sha256 base64sha256} computes the SHA256 hash of a given string and encodes it with Base64. This is not equivalent to base64encode(sha256("test"))
since sha256()
returns hexadecimal representation.
Str
Required
- Type: string
Base64sha512
using HashiCorp.Cdktf;
FnGenerated.Base64sha512(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/base64sha512 base64sha512} computes the SHA512 hash of a given string and encodes it with Base64. This is not equivalent to base64encode(sha512("test"))
since sha512()
returns hexadecimal representation.
Str
Required
- Type: string
Basename
using HashiCorp.Cdktf;
FnGenerated.Basename(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/basename basename} takes a string containing a filesystem path and removes all except the last portion from it.
Path
Required
- Type: string
Can
using HashiCorp.Cdktf;
FnGenerated.Can(object Expression);
{@link https://developer.hashicorp.com/terraform/language/functions/can can} evaluates the given expression and returns a boolean value indicating whether the expression produced a result without any errors.
Expression
Required
- Type: object
Ceil
using HashiCorp.Cdktf;
FnGenerated.Ceil(double Num);
{@link https://developer.hashicorp.com/terraform/language/functions/ceil ceil} returns the closest whole number that is greater than or equal to the given value, which may be a fraction.
Num
Required
- Type: double
Chomp
using HashiCorp.Cdktf;
FnGenerated.Chomp(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/chomp chomp} removes newline characters at the end of a string.
Str
Required
- Type: string
Chunklist
using HashiCorp.Cdktf;
FnGenerated.Chunklist(object[] List, double Size);
{@link https://developer.hashicorp.com/terraform/language/functions/chunklist chunklist} splits a single list into fixed-size chunks, returning a list of lists.
List
Required
- Type: object[]
Size
Required
- Type: double
Cidrhost
using HashiCorp.Cdktf;
FnGenerated.Cidrhost(string Prefix, double Hostnum);
{@link https://developer.hashicorp.com/terraform/language/functions/cidrhost cidrhost} calculates a full host IP address for a given host number within a given IP network address prefix.
Prefix
Required
- Type: string
Hostnum
Required
- Type: double
Cidrnetmask
using HashiCorp.Cdktf;
FnGenerated.Cidrnetmask(string Prefix);
{@link https://developer.hashicorp.com/terraform/language/functions/cidrnetmask cidrnetmask} converts an IPv4 address prefix given in CIDR notation into a subnet mask address.
Prefix
Required
- Type: string
Cidrsubnet
using HashiCorp.Cdktf;
FnGenerated.Cidrsubnet(string Prefix, double Newbits, double Netnum);
{@link https://developer.hashicorp.com/terraform/language/functions/cidrsubnet cidrsubnet} calculates a subnet address within given IP network address prefix.
Prefix
Required
- Type: string
Newbits
Required
- Type: double
Netnum
Required
- Type: double
Cidrsubnets
using HashiCorp.Cdktf;
FnGenerated.Cidrsubnets(string Prefix, double[] Newbits);
{@link https://developer.hashicorp.com/terraform/language/functions/cidrsubnets cidrsubnets} calculates a sequence of consecutive IP address ranges within a particular CIDR prefix.
Prefix
Required
- Type: string
Newbits
Required
- Type: double[]
Coalesce
using HashiCorp.Cdktf;
FnGenerated.Coalesce(object[] Vals);
{@link https://developer.hashicorp.com/terraform/language/functions/coalesce coalesce} takes any number of arguments and returns the first one that isn't null or an empty string.
Vals
Required
- Type: object[]
Coalescelist
using HashiCorp.Cdktf;
FnGenerated.Coalescelist(object[] Vals);
{@link https://developer.hashicorp.com/terraform/language/functions/coalescelist coalescelist} takes any number of list arguments and returns the first one that isn't empty.
Vals
Required
- Type: object[]
Compact
using HashiCorp.Cdktf;
FnGenerated.Compact(string[] List);
{@link https://developer.hashicorp.com/terraform/language/functions/compact compact} takes a list of strings and returns a new list with any empty string elements removed.
List
Required
- Type: string[]
Concat
using HashiCorp.Cdktf;
FnGenerated.Concat(object[] Seqs);
{@link https://developer.hashicorp.com/terraform/language/functions/concat concat} takes two or more lists and combines them into a single list.
Seqs
Required
- Type: object[]
Contains
using HashiCorp.Cdktf;
FnGenerated.Contains(object List, object Value);
{@link https://developer.hashicorp.com/terraform/language/functions/contains contains} determines whether a given list or set contains a given single value as one of its elements.
List
Required
- Type: object
Value
Required
- Type: object
Csvdecode
using HashiCorp.Cdktf;
FnGenerated.Csvdecode(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/csvdecode csvdecode} decodes a string containing CSV-formatted data and produces a list of maps representing that data.
Str
Required
- Type: string
Dirname
using HashiCorp.Cdktf;
FnGenerated.Dirname(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/dirname dirname} takes a string containing a filesystem path and removes the last portion from it.
Path
Required
- Type: string
Distinct
using HashiCorp.Cdktf;
FnGenerated.Distinct(object[] List);
{@link https://developer.hashicorp.com/terraform/language/functions/distinct distinct} takes a list and returns a new list with any duplicate elements removed.
List
Required
- Type: object[]
Element
using HashiCorp.Cdktf;
FnGenerated.Element(object List, double Index);
{@link https://developer.hashicorp.com/terraform/language/functions/element element} retrieves a single element from a list.
List
Required
- Type: object
Index
Required
- Type: double
Endswith
using HashiCorp.Cdktf;
FnGenerated.Endswith(string Str, string Suffix);
{@link https://developer.hashicorp.com/terraform/language/functions/endswith endswith} takes two values: a string to check and a suffix string. The function returns true if the first string ends with that exact suffix.
Str
Required
- Type: string
Suffix
Required
- Type: string
File
using HashiCorp.Cdktf;
FnGenerated.File(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/file file} reads the contents of a file at the given path and returns them as a string.
Path
Required
- Type: string
Filebase64
using HashiCorp.Cdktf;
FnGenerated.Filebase64(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/filebase64 filebase64} reads the contents of a file at the given path and returns them as a base64-encoded string.
Path
Required
- Type: string
Filebase64sha256
using HashiCorp.Cdktf;
FnGenerated.Filebase64sha256(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/filebase64sha256 filebase64sha256} is a variant of base64sha256
that hashes the contents of a given file rather than a literal string.
Path
Required
- Type: string
Filebase64sha512
using HashiCorp.Cdktf;
FnGenerated.Filebase64sha512(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/filebase64sha512 filebase64sha512} is a variant of base64sha512
that hashes the contents of a given file rather than a literal string.
Path
Required
- Type: string
Fileexists
using HashiCorp.Cdktf;
FnGenerated.Fileexists(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/fileexists fileexists} determines whether a file exists at a given path.
Path
Required
- Type: string
Filemd5
using HashiCorp.Cdktf;
FnGenerated.Filemd5(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/filemd5 filemd5} is a variant of md5
that hashes the contents of a given file rather than a literal string.
Path
Required
- Type: string
Fileset
using HashiCorp.Cdktf;
FnGenerated.Fileset(string Path, string Pattern);
{@link https://developer.hashicorp.com/terraform/language/functions/fileset fileset} enumerates a set of regular file names given a path and pattern. The path is automatically removed from the resulting set of file names and any result still containing path separators always returns forward slash (/
) as the path separator for cross-system compatibility.
Path
Required
- Type: string
Pattern
Required
- Type: string
Filesha1
using HashiCorp.Cdktf;
FnGenerated.Filesha1(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/filesha1 filesha1} is a variant of sha1
that hashes the contents of a given file rather than a literal string.
Path
Required
- Type: string
Filesha256
using HashiCorp.Cdktf;
FnGenerated.Filesha256(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/filesha256 filesha256} is a variant of sha256
that hashes the contents of a given file rather than a literal string.
Path
Required
- Type: string
Filesha512
using HashiCorp.Cdktf;
FnGenerated.Filesha512(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/filesha512 filesha512} is a variant of sha512
that hashes the contents of a given file rather than a literal string.
Path
Required
- Type: string
Flatten
using HashiCorp.Cdktf;
FnGenerated.Flatten(object List);
{@link https://developer.hashicorp.com/terraform/language/functions/flatten flatten} takes a list and replaces any elements that are lists with a flattened sequence of the list contents.
List
Required
- Type: object
Floor
using HashiCorp.Cdktf;
FnGenerated.Floor(double Num);
{@link https://developer.hashicorp.com/terraform/language/functions/floor floor} returns the closest whole number that is less than or equal to the given value, which may be a fraction.
Num
Required
- Type: double
Format
using HashiCorp.Cdktf;
FnGenerated.Format(string Format, object[] Args);
The {@link https://developer.hashicorp.com/terraform/language/functions/format format} function produces a string by formatting a number of other values according to a specification string. It is similar to the printf
function in C, and other similar functions in other programming languages.
Format
Required
- Type: string
Args
Required
- Type: object[]
Formatdate
using HashiCorp.Cdktf;
FnGenerated.Formatdate(string Format, string Time);
{@link https://developer.hashicorp.com/terraform/language/functions/formatdate formatdate} converts a timestamp into a different time format.
Format
Required
- Type: string
Time
Required
- Type: string
Formatlist
using HashiCorp.Cdktf;
FnGenerated.Formatlist(string Format, object[] Args);
{@link https://developer.hashicorp.com/terraform/language/functions/formatlist formatlist} produces a list of strings by formatting a number of other values according to a specification string.
Format
Required
- Type: string
Args
Required
- Type: object[]
Indent
using HashiCorp.Cdktf;
FnGenerated.Indent(double Spaces, string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/indent indent} adds a given number of spaces to the beginnings of all but the first line in a given multi-line string.
Spaces
Required
- Type: double
Str
Required
- Type: string
Index
using HashiCorp.Cdktf;
FnGenerated.Index(object List, object Value);
{@link https://developer.hashicorp.com/terraform/language/functions/index index} finds the element index for a given value in a list.
List
Required
- Type: object
Value
Required
- Type: object
Jsondecode
using HashiCorp.Cdktf;
FnGenerated.Jsondecode(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/jsondecode jsondecode} interprets a given string as JSON, returning a representation of the result of decoding that string.
Str
Required
- Type: string
Jsonencode
using HashiCorp.Cdktf;
FnGenerated.Jsonencode(object Val);
{@link https://developer.hashicorp.com/terraform/language/functions/jsonencode jsonencode} encodes a given value to a string using JSON syntax.
Val
Required
- Type: object
Keys
using HashiCorp.Cdktf;
FnGenerated.Keys(object InputMap);
{@link https://developer.hashicorp.com/terraform/language/functions/keys keys} takes a map and returns a list containing the keys from that map.
InputMap
Required
- Type: object
LengthOf
using HashiCorp.Cdktf;
FnGenerated.LengthOf(object Value);
{@link https://developer.hashicorp.com/terraform/language/functions/length length} determines the length of a given list, map, or string.
Value
Required
- Type: object
Log
using HashiCorp.Cdktf;
FnGenerated.Log(double Num, double Base);
{@link https://developer.hashicorp.com/terraform/language/functions/log log} returns the logarithm of a given number in a given base.
Num
Required
- Type: double
Base
Required
- Type: double
Lower
using HashiCorp.Cdktf;
FnGenerated.Lower(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/lower lower} converts all cased letters in the given string to lowercase.
Str
Required
- Type: string
Matchkeys
using HashiCorp.Cdktf;
FnGenerated.Matchkeys(object[] Values, object[] Keys, object[] Searchset);
{@link https://developer.hashicorp.com/terraform/language/functions/matchkeys matchkeys} constructs a new list by taking a subset of elements from one list whose indexes match the corresponding indexes of values in another list.
Values
Required
- Type: object[]
Keys
Required
- Type: object[]
Searchset
Required
- Type: object[]
Max
using HashiCorp.Cdktf;
FnGenerated.Max(double[] Numbers);
{@link https://developer.hashicorp.com/terraform/language/functions/max max} takes one or more numbers and returns the greatest number from the set.
Numbers
Required
- Type: double[]
Md5
using HashiCorp.Cdktf;
FnGenerated.Md5(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/md5 md5} computes the MD5 hash of a given string and encodes it with hexadecimal digits.
Str
Required
- Type: string
Merge
using HashiCorp.Cdktf;
FnGenerated.Merge(object[] Maps);
{@link https://developer.hashicorp.com/terraform/language/functions/merge merge} takes an arbitrary number of maps or objects, and returns a single map or object that contains a merged set of elements from all arguments.
Maps
Required
- Type: object[]
Min
using HashiCorp.Cdktf;
FnGenerated.Min(double[] Numbers);
{@link https://developer.hashicorp.com/terraform/language/functions/min min} takes one or more numbers and returns the smallest number from the set.
Numbers
Required
- Type: double[]
Nonsensitive
using HashiCorp.Cdktf;
FnGenerated.Nonsensitive(object Value);
{@link https://developer.hashicorp.com/terraform/language/functions/nonsensitive nonsensitive} takes a sensitive value and returns a copy of that value with the sensitive marking removed, thereby exposing the sensitive value.
Value
Required
- Type: object
One
using HashiCorp.Cdktf;
FnGenerated.One(object List);
{@link https://developer.hashicorp.com/terraform/language/functions/one one} takes a list, set, or tuple value with either zero or one elements. If the collection is empty, one
returns null
. Otherwise, one
returns the first element. If there are two or more elements then one
will return an error.
List
Required
- Type: object
Parseint
using HashiCorp.Cdktf;
FnGenerated.Parseint(object Number, double Base);
{@link https://developer.hashicorp.com/terraform/language/functions/parseint parseint} parses the given string as a representation of an integer in the specified base and returns the resulting number. The base must be between 2 and 62 inclusive.
Number
Required
- Type: object
Base
Required
- Type: double
Pathexpand
using HashiCorp.Cdktf;
FnGenerated.Pathexpand(string Path);
{@link https://developer.hashicorp.com/terraform/language/functions/pathexpand pathexpand} takes a filesystem path that might begin with a ~
segment, and if so it replaces that segment with the current user's home directory path.
Path
Required
- Type: string
Plantimestamp
using HashiCorp.Cdktf;
FnGenerated.Plantimestamp();
{@link https://developer.hashicorp.com/terraform/language/functions/plantimestamp plantimestamp} returns a UTC timestamp string in RFC 3339 format, fixed to a constant time representing the time of the plan.
Pow
using HashiCorp.Cdktf;
FnGenerated.Pow(double Num, double Power);
{@link https://developer.hashicorp.com/terraform/language/functions/pow pow} calculates an exponent, by raising its first argument to the power of the second argument.
Num
Required
- Type: double
Power
Required
- Type: double
Regex
using HashiCorp.Cdktf;
FnGenerated.Regex(string Pattern, string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/regex regex} applies a regular expression to a string and returns the matching substrings.
Pattern
Required
- Type: string
Str
Required
- Type: string
Regexall
using HashiCorp.Cdktf;
FnGenerated.Regexall(string Pattern, string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/regexall regexall} applies a regular expression to a string and returns a list of all matches.
Pattern
Required
- Type: string
Str
Required
- Type: string
Replace
using HashiCorp.Cdktf;
FnGenerated.Replace(string Str, string Substr, string Replace);
{@link https://developer.hashicorp.com/terraform/language/functions/replace replace} searches a given string for another given substring, and replaces each occurrence with a given replacement string.
Str
Required
- Type: string
Substr
Required
- Type: string
Replace
Required
- Type: string
Reverse
using HashiCorp.Cdktf;
FnGenerated.Reverse(object List);
{@link https://developer.hashicorp.com/terraform/language/functions/reverse reverse} takes a sequence and produces a new sequence of the same length with all of the same elements as the given sequence but in reverse order.
List
Required
- Type: object
Rsadecrypt
using HashiCorp.Cdktf;
FnGenerated.Rsadecrypt(string Ciphertext, string Privatekey);
{@link https://developer.hashicorp.com/terraform/language/functions/rsadecrypt rsadecrypt} decrypts an RSA-encrypted ciphertext, returning the corresponding cleartext.
Ciphertext
Required
- Type: string
Privatekey
Required
- Type: string
Sensitive
using HashiCorp.Cdktf;
FnGenerated.Sensitive(object Value);
{@link https://developer.hashicorp.com/terraform/language/functions/sensitive sensitive} takes any value and returns a copy of it marked so that Terraform will treat it as sensitive, with the same meaning and behavior as for sensitive input variables.
Value
Required
- Type: object
Setintersection
using HashiCorp.Cdktf;
FnGenerated.Setintersection(object[] FirstSet, object[][] OtherSets);
The {@link https://developer.hashicorp.com/terraform/language/functions/setintersection setintersection} function takes multiple sets and produces a single set containing only the elements that all of the given sets have in common. In other words, it computes the intersection of the sets.
FirstSet
Required
- Type: object[]
OtherSets
Required
- Type: object[][]
Setproduct
using HashiCorp.Cdktf;
FnGenerated.Setproduct(object[] Sets);
The {@link https://developer.hashicorp.com/terraform/language/functions/setproduct setproduct} function finds all of the possible combinations of elements from all of the given sets by computing the Cartesian product.
Sets
Required
- Type: object[]
Setsubtract
using HashiCorp.Cdktf;
FnGenerated.Setsubtract(object[] A, object[] B);
The {@link https://developer.hashicorp.com/terraform/language/functions/setsubtract setsubtract} function returns a new set containing the elements from the first set that are not present in the second set. In other words, it computes the relative complement of the second set.
A
Required
- Type: object[]
B
Required
- Type: object[]
Setunion
using HashiCorp.Cdktf;
FnGenerated.Setunion(object[] FirstSet, object[][] OtherSets);
The {@link https://developer.hashicorp.com/terraform/language/functions/setunion setunion} function takes multiple sets and produces a single set containing the elements from all of the given sets. In other words, it computes the union of the sets.
FirstSet
Required
- Type: object[]
OtherSets
Required
- Type: object[][]
Sha1
using HashiCorp.Cdktf;
FnGenerated.Sha1(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/sha1 sha1} computes the SHA1 hash of a given string and encodes it with hexadecimal digits.
Str
Required
- Type: string
Sha256
using HashiCorp.Cdktf;
FnGenerated.Sha256(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/sha256 sha256} computes the SHA256 hash of a given string and encodes it with hexadecimal digits.
Str
Required
- Type: string
Sha512
using HashiCorp.Cdktf;
FnGenerated.Sha512(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/sha512 sha512} computes the SHA512 hash of a given string and encodes it with hexadecimal digits.
Str
Required
- Type: string
Signum
using HashiCorp.Cdktf;
FnGenerated.Signum(double Num);
{@link https://developer.hashicorp.com/terraform/language/functions/signum signum} determines the sign of a number, returning a number between -1 and 1 to represent the sign.
Num
Required
- Type: double
Slice
using HashiCorp.Cdktf;
FnGenerated.Slice(object List, double StartIndex, double EndIndex);
{@link https://developer.hashicorp.com/terraform/language/functions/slice slice} extracts some consecutive elements from within a list.
List
Required
- Type: object
StartIndex
Required
- Type: double
EndIndex
Required
- Type: double
Sort
using HashiCorp.Cdktf;
FnGenerated.Sort(string[] List);
{@link https://developer.hashicorp.com/terraform/language/functions/sort sort} takes a list of strings and returns a new list with those strings sorted lexicographically.
List
Required
- Type: string[]
Split
using HashiCorp.Cdktf;
FnGenerated.Split(string Separator, string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/split split} produces a list by dividing a given string at all occurrences of a given separator.
Separator
Required
- Type: string
Str
Required
- Type: string
Startswith
using HashiCorp.Cdktf;
FnGenerated.Startswith(string Str, string Prefix);
{@link https://developer.hashicorp.com/terraform/language/functions/startswith startswith} takes two values: a string to check and a prefix string. The function returns true if the string begins with that exact prefix.
Str
Required
- Type: string
Prefix
Required
- Type: string
Strcontains
using HashiCorp.Cdktf;
FnGenerated.Strcontains(string Str, string Substr);
{@link https://developer.hashicorp.com/terraform/language/functions/strcontains strcontains} takes two values: a string to check and an expected substring. The function returns true if the string has the substring contained within it.
Str
Required
- Type: string
Substr
Required
- Type: string
Strrev
using HashiCorp.Cdktf;
FnGenerated.Strrev(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/strrev strrev} reverses the characters in a string. Note that the characters are treated as Unicode characters (in technical terms, Unicode grapheme cluster boundaries are respected).
Str
Required
- Type: string
Substr
using HashiCorp.Cdktf;
FnGenerated.Substr(string Str, double Offset, double Length);
{@link https://developer.hashicorp.com/terraform/language/functions/substr substr} extracts a substring from a given string by offset and (maximum) length.
Str
Required
- Type: string
Offset
Required
- Type: double
Length
Required
- Type: double
Sum
using HashiCorp.Cdktf;
FnGenerated.Sum(object List);
{@link https://developer.hashicorp.com/terraform/language/functions/sum sum} takes a list or set of numbers and returns the sum of those numbers.
List
Required
- Type: object
Templatefile
using HashiCorp.Cdktf;
FnGenerated.Templatefile(string Path, object Vars);
{@link https://developer.hashicorp.com/terraform/language/functions/templatefile templatefile} reads the file at the given path and renders its content as a template using a supplied set of template variables.
Path
Required
- Type: string
Vars
Required
- Type: object
Textdecodebase64
using HashiCorp.Cdktf;
FnGenerated.Textdecodebase64(string Source, string Encoding);
{@link https://developer.hashicorp.com/terraform/language/functions/textdecodebase64 textdecodebase64} function decodes a string that was previously Base64-encoded, and then interprets the result as characters in a specified character encoding.
Source
Required
- Type: string
Encoding
Required
- Type: string
Textencodebase64
using HashiCorp.Cdktf;
FnGenerated.Textencodebase64(string Str, string Encoding);
{@link https://developer.hashicorp.com/terraform/language/functions/textencodebase64 textencodebase64} encodes the unicode characters in a given string using a specified character encoding, returning the result base64 encoded because Terraform language strings are always sequences of unicode characters.
Str
Required
- Type: string
Encoding
Required
- Type: string
Timeadd
using HashiCorp.Cdktf;
FnGenerated.Timeadd(string Timestamp, string Duration);
{@link https://developer.hashicorp.com/terraform/language/functions/timeadd timeadd} adds a duration to a timestamp, returning a new timestamp.
Timestamp
Required
- Type: string
Duration
Required
- Type: string
Timecmp
using HashiCorp.Cdktf;
FnGenerated.Timecmp(string TimestampA, string TimestampB);
{@link https://developer.hashicorp.com/terraform/language/functions/timecmp timecmp} compares two timestamps and returns a number that represents the ordering of the instants those timestamps represent.
TimestampA
Required
- Type: string
TimestampB
Required
- Type: string
Timestamp
using HashiCorp.Cdktf;
FnGenerated.Timestamp();
{@link https://developer.hashicorp.com/terraform/language/functions/timestamp timestamp} returns a UTC timestamp string in RFC 3339 format.
Title
using HashiCorp.Cdktf;
FnGenerated.Title(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/title title} converts the first letter of each word in the given string to uppercase.
Str
Required
- Type: string
Tobool
using HashiCorp.Cdktf;
FnGenerated.Tobool(object V);
{@link https://developer.hashicorp.com/terraform/language/functions/tobool tobool} converts its argument to a boolean value.
V
Required
- Type: object
Tolist
using HashiCorp.Cdktf;
FnGenerated.Tolist(object V);
{@link https://developer.hashicorp.com/terraform/language/functions/tolist tolist} converts its argument to a list value.
V
Required
- Type: object
Tomap
using HashiCorp.Cdktf;
FnGenerated.Tomap(object V);
{@link https://developer.hashicorp.com/terraform/language/functions/tomap tomap} converts its argument to a map value.
V
Required
- Type: object
Tonumber
using HashiCorp.Cdktf;
FnGenerated.Tonumber(object V);
{@link https://developer.hashicorp.com/terraform/language/functions/tonumber tonumber} converts its argument to a number value.
V
Required
- Type: object
Toset
using HashiCorp.Cdktf;
FnGenerated.Toset(object V);
{@link https://developer.hashicorp.com/terraform/language/functions/toset toset} converts its argument to a set value.
V
Required
- Type: object
Tostring
using HashiCorp.Cdktf;
FnGenerated.Tostring(object V);
{@link https://developer.hashicorp.com/terraform/language/functions/tostring tostring} converts its argument to a string value.
V
Required
- Type: object
Transpose
using HashiCorp.Cdktf;
FnGenerated.Transpose(object Values);
{@link https://developer.hashicorp.com/terraform/language/functions/transpose transpose} takes a map of lists of strings and swaps the keys and values to produce a new map of lists of strings.
Values
Required
- Type: object
Trim
using HashiCorp.Cdktf;
FnGenerated.Trim(string Str, string Cutset);
{@link https://developer.hashicorp.com/terraform/language/functions/trim trim} removes the specified set of characters from the start and end of the given string.
Str
Required
- Type: string
Cutset
Required
- Type: string
Trimprefix
using HashiCorp.Cdktf;
FnGenerated.Trimprefix(string Str, string Prefix);
{@link https://developer.hashicorp.com/terraform/language/functions/trimprefix trimprefix} removes the specified prefix from the start of the given string. If the string does not start with the prefix, the string is returned unchanged.
Str
Required
- Type: string
Prefix
Required
- Type: string
Trimspace
using HashiCorp.Cdktf;
FnGenerated.Trimspace(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/trimspace trimspace} removes any space characters from the start and end of the given string.
Str
Required
- Type: string
Trimsuffix
using HashiCorp.Cdktf;
FnGenerated.Trimsuffix(string Str, string Suffix);
{@link https://developer.hashicorp.com/terraform/language/functions/trimsuffix trimsuffix} removes the specified suffix from the end of the given string.
Str
Required
- Type: string
Suffix
Required
- Type: string
Try
using HashiCorp.Cdktf;
FnGenerated.Try(object[] Expressions);
{@link https://developer.hashicorp.com/terraform/language/functions/try try} evaluates all of its argument expressions in turn and returns the result of the first one that does not produce any errors.
Expressions
Required
- Type: object[]
Upper
using HashiCorp.Cdktf;
FnGenerated.Upper(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/upper upper} converts all cased letters in the given string to uppercase.
Str
Required
- Type: string
Urlencode
using HashiCorp.Cdktf;
FnGenerated.Urlencode(string Str);
{@link https://developer.hashicorp.com/terraform/language/functions/urlencode urlencode} applies URL encoding to a given string.
Str
Required
- Type: string
Uuid
using HashiCorp.Cdktf;
FnGenerated.Uuid();
{@link https://developer.hashicorp.com/terraform/language/functions/uuid uuid} generates a unique identifier string.
Uuidv5
using HashiCorp.Cdktf;
FnGenerated.Uuidv5(string Namespace, string Name);
{@link https://developer.hashicorp.com/terraform/language/functions/uuidv5 uuidv5} generates a name-based UUID, as described in RFC 4122 section 4.3, also known as a "version 5" UUID.
Namespace
Required
- Type: string
Name
Required
- Type: string
Values
using HashiCorp.Cdktf;
FnGenerated.Values(object Mapping);
{@link https://developer.hashicorp.com/terraform/language/functions/values values} takes a map and returns a list containing the values of the elements in that map.
Mapping
Required
- Type: object
Yamldecode
using HashiCorp.Cdktf;
FnGenerated.Yamldecode(string Src);
{@link https://developer.hashicorp.com/terraform/language/functions/yamldecode yamldecode} parses a string as a subset of YAML, and produces a representation of its value.
Src
Required
- Type: string
Yamlencode
using HashiCorp.Cdktf;
FnGenerated.Yamlencode(object Value);
{@link https://developer.hashicorp.com/terraform/language/functions/yamlencode yamlencode} encodes a given value to a string using YAML 1.2 block syntax.
Value
Required
- Type: object
Zipmap
using HashiCorp.Cdktf;
FnGenerated.Zipmap(string[] Keys, object Values);
{@link https://developer.hashicorp.com/terraform/language/functions/zipmap zipmap} constructs a map from a list of keys and a corresponding list of values.
Keys
Required
- Type: string[]
Values
Required
- Type: object
Lazy
Lazily produce a value.
Can be used to return a string, list or numeric value whose actual value will only be calculated later, during synthesis.
Initializers
using HashiCorp.Cdktf;
new Lazy();
Name | Type | Description |
---|
Static Functions
Name | Description |
---|---|
AnyValue | Produces a lazy token from an untyped value. |
ListValue | Returns a list-ified token for a lazy value. |
NumberValue | Returns a numberified token for a lazy value. |
StringValue | Returns a stringified token for a lazy value. |
AnyValue
using HashiCorp.Cdktf;
Lazy.AnyValue(IAnyProducer Producer, LazyAnyValueOptions Options = null);
Produces a lazy token from an untyped value.
Producer
Required
- Type: IAnyProducer
The lazy producer.
Options
Optional
- Type: LazyAnyValueOptions
Options.
ListValue
using HashiCorp.Cdktf;
Lazy.ListValue(IListProducer Producer, LazyListValueOptions Options = null);
Returns a list-ified token for a lazy value.
Producer
Required
- Type: IListProducer
The producer.
Options
Optional
- Type: LazyListValueOptions
Options.
NumberValue
using HashiCorp.Cdktf;
Lazy.NumberValue(INumberProducer Producer);
Returns a numberified token for a lazy value.
Producer
Required
- Type: INumberProducer
The producer.
StringValue
using HashiCorp.Cdktf;
Lazy.StringValue(IStringProducer Producer, LazyStringValueOptions Options = null);
Returns a stringified token for a lazy value.
Producer
Required
- Type: IStringProducer
The producer.
Options
Optional
- Type: LazyStringValueOptions
Options.
LazyBase
- Implements: IResolvable
Initializers
using HashiCorp.Cdktf;
new LazyBase();
Name | Type | Description |
---|
Methods
Name | Description |
---|---|
AddPostProcessor | No description. |
Resolve | Produce the Token's value at resolution time. |
ToJSON | Turn this Token into JSON. |
ToString | Return a string representation of this resolvable object. |
AddPostProcessor
private void AddPostProcessor(IPostProcessor PostProcessor)
PostProcessor
Required
- Type: IPostProcessor
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToJSON
private object ToJSON()
Turn this Token into JSON.
Called automatically when JSON.stringify() is called on a Token.
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
CreationStack
Required
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
ListTerraformIterator
Initializers
using HashiCorp.Cdktf;
new ListTerraformIterator(object List);
Name | Type | Description |
---|---|---|
List | object | No description. |
List
Required
- Type: object
Methods
Name | Description |
---|---|
Dynamic | Creates a dynamic expression that can be used to loop over this iterator in a dynamic block. |
ForExpressionForList | Creates a for expression that results in a list. |
ForExpressionForMap | Creates a for expression that results in a map. |
GetAny | No description. |
GetAnyMap | No description. |
GetBoolean | No description. |
GetBooleanMap | No description. |
GetList | No description. |
GetMap | No description. |
GetNumber | No description. |
GetNumberList | No description. |
GetNumberMap | No description. |
GetString | No description. |
GetStringMap | No description. |
Keys | Creates a for expression that maps the iterators to its keys. |
PluckProperty | Creates a for expression that accesses the key on each element of the iterator. |
Values | Creates a for expression that maps the iterators to its value in case it is a map. |
Dynamic
private IResolvable Dynamic(System.Collections.Generic.IDictionary< string, object > Attributes)
Creates a dynamic expression that can be used to loop over this iterator in a dynamic block.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
See https://developer.hashicorp.com/terraform/cdktf/concepts/iterators#using-iterators-for-list-attributes
Attributes
Required
- Type: System.Collections.Generic.IDictionary< string, object >
ForExpressionForList
private IResolvable ForExpressionForList(object Expression)
Creates a for expression that results in a list.
This method allows you to create every possible for expression, but requires more knowledge about Terraform's for expression syntax. For the most common use cases you can use keys(), values(), and pluckProperty() instead.
You may write any valid Terraform for each expression, e.g.
TerraformIterator.fromList(myIteratorSourceVar).forExpressionForList("val.foo if val.bar == true")
will result in [ for key, val in var.myIteratorSource: val.foo if val.bar == true ]
.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
Expression
Required
- Type: object
The expression to use in the for mapping.
ForExpressionForMap
private IResolvable ForExpressionForMap(object KeyExpression, object ValueExpression)
Creates a for expression that results in a map.
This method allows you to create every possible for expression, but requires more knowledge about Terraforms for expression syntax. For the most common use cases you can use keys(), values(), and pluckProperty instead.
You may write any valid Terraform for each expression, e.g.
TerraformIterator.fromMap(myIteratorSourceVar).forExpressionForMap("key", "val.foo if val.bar == true")
will result in { for key, val in var.myIteratorSource: key = > val.foo if val.bar == true }
.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
KeyExpression
Required
- Type: object
The expression to use as key in the for mapping.
ValueExpression
Required
- Type: object
The expression to use as value in the for mapping.
GetAny
private IResolvable GetAny(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetAnyMap
private System.Collections.Generic.IDictionary< string, object > GetAnyMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetBoolean
private IResolvable GetBoolean(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetBooleanMap
private System.Collections.Generic.IDictionary< string, bool > GetBooleanMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetList
private string[] GetList(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetMap
private System.Collections.Generic.IDictionary< string, object > GetMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetNumber
private double GetNumber(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetNumberList
private double[] GetNumberList(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetNumberMap
private System.Collections.Generic.IDictionary< string, double > GetNumberMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetString
private string GetString(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetStringMap
private System.Collections.Generic.IDictionary< string, string > GetStringMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
Keys
private IResolvable Keys()
Creates a for expression that maps the iterators to its keys.
For lists these would be the indices, for maps the keys.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
PluckProperty
private IResolvable PluckProperty(string Property)
Creates a for expression that accesses the key on each element of the iterator.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
Property
Required
- Type: string
The property of the iterators values to map to.
Values
private IResolvable Values()
Creates a for expression that maps the iterators to its value in case it is a map.
For lists these would stay the same.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
Static Functions
Name | Description |
---|---|
FromComplexList | Creates a new iterator from a complex list. |
FromDataSources | Creates a new iterator from a data source that has been created with the for_each argument. |
FromList | Creates a new iterator from a list. |
FromMap | Creates a new iterator from a map. |
FromResources | Creates a new iterator from a resource that has been created with the for_each argument. |
FromComplexList
using HashiCorp.Cdktf;
ListTerraformIterator.FromComplexList(object List, string MapKeyAttributeName);
Creates a new iterator from a complex list.
One example for this would be a list of maps. The list will be converted into a map with the mapKeyAttributeName as the key.
Example
// Example automatically generated from non-compiling source. May contain errors.
var cert = new AcmCertificate(this, "cert", new Struct {
DomainName = "example.com",
ValidationMethod = "DNS"
});
var dvoIterator = TerraformIterator.FromComplexList(cert.DomainValidationOptions, "domain_name");
new Route53Record(this, "record", new Struct {
AllowOverwrite = true,
Name = dvoIterator.GetString("name"),
Records = new [] { dvoIterator.GetString("record") },
Ttl = 60,
Type = dvoIterator.GetString("type"),
ZoneId = Token.AsString(dataAwsRoute53ZoneExample.ZoneId),
ForEach = dvoIterator
});
List
Required
- Type: object
the list to iterate over.
MapKeyAttributeName
Required
- Type: string
the name of the attribute that should be used as the key in the map.
Visit https://developer.hashicorp.com/terraform/cdktf/concepts/iterators#using-iterators-on-complex-lists for more information.
FromDataSources
using HashiCorp.Cdktf;
ListTerraformIterator.FromDataSources(ITerraformResource Resource);
Creates a new iterator from a data source that has been created with the for_each
argument.
Resource
Required
- Type: ITerraformResource
FromList
using HashiCorp.Cdktf;
ListTerraformIterator.FromList(object List);
Creates a new iterator from a list.
List
Required
- Type: object
FromMap
using HashiCorp.Cdktf;
ListTerraformIterator.FromMap(object Map);
Creates a new iterator from a map.
Map
Required
- Type: object
FromResources
using HashiCorp.Cdktf;
ListTerraformIterator.FromResources(ITerraformResource Resource);
Creates a new iterator from a resource that has been created with the for_each
argument.
Resource
Required
- Type: ITerraformResource
Properties
Name | Type | Description |
---|---|---|
Key | object | Returns the currently entry in the list or set that is being iterated over. |
Value | object | Returns the value of the current item iterated over. |
Key
Required
public object Key { get; }
- Type: object
Returns the currently entry in the list or set that is being iterated over.
For lists this is the same as iterator.value
. If you need the index,
use count via TerraformCount
:
https://developer.hashicorp.com/terraform/cdktf/concepts/iterators#using-count
Value
Required
public object Value { get; }
- Type: object
Returns the value of the current item iterated over.
Manifest
- Implements: IManifest
Initializers
using HashiCorp.Cdktf;
new Manifest(string Version, string Outdir, bool HclOutput);
Name | Type | Description |
---|---|---|
Version | string | No description. |
Outdir | string | No description. |
HclOutput | bool | No description. |
Version
Required
- Type: string
Outdir
Required
- Type: string
HclOutput
Required
- Type: bool
Methods
Name | Description |
---|---|
BuildManifest | No description. |
ForStack | No description. |
WriteToFile | No description. |
BuildManifest
private IManifest BuildManifest()
ForStack
private StackManifest ForStack(TerraformStack Stack)
Stack
Required
- Type: TerraformStack
WriteToFile
private void WriteToFile()
Properties
Name | Type | Description |
---|---|---|
HclOutput | bool | No description. |
Outdir | string | No description. |
StackFileName | string | No description. |
Stacks | System.Collections.Generic.IDictionary< string, StackManifest> | No description. |
Version | string | No description. |
HclOutput
Required
public bool HclOutput { get; }
- Type: bool
Outdir
Required
public string Outdir { get; }
- Type: string
StackFileName
Required
public string StackFileName { get; }
- Type: string
Stacks
Required
public System.Collections.Generic.IDictionary< string, StackManifest > Stacks { get; }
- Type: System.Collections.Generic.IDictionary< string, StackManifest>
Version
Required
public string Version { get; }
- Type: string
Constants
Name | Type | Description |
---|---|---|
FileName | string | No description. |
StackMetadataPath | string | No description. |
StacksFolder | string | No description. |
FileName
Required
public string FileName { get; }
- Type: string
StackMetadataPath
Required
public string StackMetadataPath { get; }
- Type: string
StacksFolder
Required
public string StacksFolder { get; }
- Type: string
MapList
- Implements: ITerraformAddressable, IInterpolatingParent, IResolvable
Initializers
using HashiCorp.Cdktf;
new MapList(IInterpolatingParent TerraformResource, string TerraformAttribute, bool WrapsSet);
Name | Type | Description |
---|---|---|
TerraformResource | IInterpolatingParent | No description. |
TerraformAttribute | string | No description. |
WrapsSet | bool | No description. |
TerraformResource
Required
- Type: IInterpolatingParent
TerraformAttribute
Required
- Type: string
WrapsSet
Required
- Type: bool
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
InterpolationForAttribute | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
ComputeFqn
private string ComputeFqn()
InterpolationForAttribute
private IResolvable InterpolationForAttribute(string Property)
Property
Required
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | string | No description. |
CreationStack
Required
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
public string Fqn { get; }
- Type: string
MapTerraformIterator
Initializers
using HashiCorp.Cdktf;
new MapTerraformIterator(object Map);
Name | Type | Description |
---|---|---|
Map | object | No description. |
Map
Required
- Type: object
Methods
Name | Description |
---|---|
Dynamic | Creates a dynamic expression that can be used to loop over this iterator in a dynamic block. |
ForExpressionForList | Creates a for expression that results in a list. |
ForExpressionForMap | Creates a for expression that results in a map. |
GetAny | No description. |
GetAnyMap | No description. |
GetBoolean | No description. |
GetBooleanMap | No description. |
GetList | No description. |
GetMap | No description. |
GetNumber | No description. |
GetNumberList | No description. |
GetNumberMap | No description. |
GetString | No description. |
GetStringMap | No description. |
Keys | Creates a for expression that maps the iterators to its keys. |
PluckProperty | Creates a for expression that accesses the key on each element of the iterator. |
Values | Creates a for expression that maps the iterators to its value in case it is a map. |
Dynamic
private IResolvable Dynamic(System.Collections.Generic.IDictionary< string, object > Attributes)
Creates a dynamic expression that can be used to loop over this iterator in a dynamic block.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
See https://developer.hashicorp.com/terraform/cdktf/concepts/iterators#using-iterators-for-list-attributes
Attributes
Required
- Type: System.Collections.Generic.IDictionary< string, object >
ForExpressionForList
private IResolvable ForExpressionForList(object Expression)
Creates a for expression that results in a list.
This method allows you to create every possible for expression, but requires more knowledge about Terraform's for expression syntax. For the most common use cases you can use keys(), values(), and pluckProperty() instead.
You may write any valid Terraform for each expression, e.g.
TerraformIterator.fromList(myIteratorSourceVar).forExpressionForList("val.foo if val.bar == true")
will result in [ for key, val in var.myIteratorSource: val.foo if val.bar == true ]
.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
Expression
Required
- Type: object
The expression to use in the for mapping.
ForExpressionForMap
private IResolvable ForExpressionForMap(object KeyExpression, object ValueExpression)
Creates a for expression that results in a map.
This method allows you to create every possible for expression, but requires more knowledge about Terraforms for expression syntax. For the most common use cases you can use keys(), values(), and pluckProperty instead.
You may write any valid Terraform for each expression, e.g.
TerraformIterator.fromMap(myIteratorSourceVar).forExpressionForMap("key", "val.foo if val.bar == true")
will result in { for key, val in var.myIteratorSource: key = > val.foo if val.bar == true }
.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
KeyExpression
Required
- Type: object
The expression to use as key in the for mapping.
ValueExpression
Required
- Type: object
The expression to use as value in the for mapping.
GetAny
private IResolvable GetAny(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetAnyMap
private System.Collections.Generic.IDictionary< string, object > GetAnyMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetBoolean
private IResolvable GetBoolean(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetBooleanMap
private System.Collections.Generic.IDictionary< string, bool > GetBooleanMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetList
private string[] GetList(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetMap
private System.Collections.Generic.IDictionary< string, object > GetMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetNumber
private double GetNumber(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetNumberList
private double[] GetNumberList(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetNumberMap
private System.Collections.Generic.IDictionary< string, double > GetNumberMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetString
private string GetString(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetStringMap
private System.Collections.Generic.IDictionary< string, string > GetStringMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
Keys
private IResolvable Keys()
Creates a for expression that maps the iterators to its keys.
For lists these would be the indices, for maps the keys.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
PluckProperty
private IResolvable PluckProperty(string Property)
Creates a for expression that accesses the key on each element of the iterator.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
Property
Required
- Type: string
The property of the iterators values to map to.
Values
private IResolvable Values()
Creates a for expression that maps the iterators to its value in case it is a map.
For lists these would stay the same.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
Static Functions
Name | Description |
---|---|
FromComplexList | Creates a new iterator from a complex list. |
FromDataSources | Creates a new iterator from a data source that has been created with the for_each argument. |
FromList | Creates a new iterator from a list. |
FromMap | Creates a new iterator from a map. |
FromResources | Creates a new iterator from a resource that has been created with the for_each argument. |
FromComplexList
using HashiCorp.Cdktf;
MapTerraformIterator.FromComplexList(object List, string MapKeyAttributeName);
Creates a new iterator from a complex list.
One example for this would be a list of maps. The list will be converted into a map with the mapKeyAttributeName as the key.
Example
// Example automatically generated from non-compiling source. May contain errors.
var cert = new AcmCertificate(this, "cert", new Struct {
DomainName = "example.com",
ValidationMethod = "DNS"
});
var dvoIterator = TerraformIterator.FromComplexList(cert.DomainValidationOptions, "domain_name");
new Route53Record(this, "record", new Struct {
AllowOverwrite = true,
Name = dvoIterator.GetString("name"),
Records = new [] { dvoIterator.GetString("record") },
Ttl = 60,
Type = dvoIterator.GetString("type"),
ZoneId = Token.AsString(dataAwsRoute53ZoneExample.ZoneId),
ForEach = dvoIterator
});
List
Required
- Type: object
the list to iterate over.
MapKeyAttributeName
Required
- Type: string
the name of the attribute that should be used as the key in the map.
Visit https://developer.hashicorp.com/terraform/cdktf/concepts/iterators#using-iterators-on-complex-lists for more information.
FromDataSources
using HashiCorp.Cdktf;
MapTerraformIterator.FromDataSources(ITerraformResource Resource);
Creates a new iterator from a data source that has been created with the for_each
argument.
Resource
Required
- Type: ITerraformResource
FromList
using HashiCorp.Cdktf;
MapTerraformIterator.FromList(object List);
Creates a new iterator from a list.
List
Required
- Type: object
FromMap
using HashiCorp.Cdktf;
MapTerraformIterator.FromMap(object Map);
Creates a new iterator from a map.
Map
Required
- Type: object
FromResources
using HashiCorp.Cdktf;
MapTerraformIterator.FromResources(ITerraformResource Resource);
Creates a new iterator from a resource that has been created with the for_each
argument.
Resource
Required
- Type: ITerraformResource
Properties
Name | Type | Description |
---|---|---|
Key | string | Returns the key of the current entry in the map that is being iterated over. |
Value | object | Returns the value of the current item iterated over. |
Key
Required
public string Key { get; }
- Type: string
Returns the key of the current entry in the map that is being iterated over.
Value
Required
public object Value { get; }
- Type: object
Returns the value of the current item iterated over.
MigrateIds
- Implements: IAspect
For migrating past 0.17 where the feature flag for the old id generation logic was removed after being deprecated since 0.15.
Initializers
using HashiCorp.Cdktf;
new MigrateIds();
Name | Type | Description |
---|
Methods
Name | Description |
---|---|
Visit | All aspects can visit an IConstruct. |
Visit
private void Visit(IConstruct Node)
All aspects can visit an IConstruct.
Node
Required
- Type: Constructs.IConstruct
NamedCloudWorkspace
The name of a single Terraform Cloud workspace.
You will only be able to use the workspace specified in the configuration with this working directory, and cannot manage workspaces from the CLI (e.g. terraform workspace select or terraform workspace new).
Initializers
using HashiCorp.Cdktf;
new NamedCloudWorkspace(string Name, string Project = null);
Name
Required
- Type: string
Project
Optional
- Type: string
Methods
Name | Description |
---|---|
ToTerraform | No description. |
ToHclTerraform | No description. |
ToTerraform
private object ToTerraform()
ToHclTerraform
private object ToHclTerraform()
Properties
Name
Required
public string Name { get; }
- Type: string
Project
Optional
public string Project { get; }
- Type: string
NamedRemoteWorkspace
- Implements: IRemoteWorkspace
Initializers
using HashiCorp.Cdktf;
new NamedRemoteWorkspace(string Name);
Name | Type | Description |
---|---|---|
Name | string | No description. |
Name
Required
- Type: string
Properties
Name | Type | Description |
---|---|---|
Name | string | No description. |
Name
Required
public string Name { get; }
- Type: string
NumberListList
Initializers
using HashiCorp.Cdktf;
new NumberListList(IInterpolatingParent TerraformResource, string TerraformAttribute, bool WrapsSet);
Name | Type | Description |
---|---|---|
TerraformResource | IInterpolatingParent | No description. |
TerraformAttribute | string | No description. |
WrapsSet | bool | No description. |
TerraformResource
Required
- Type: IInterpolatingParent
TerraformAttribute
Required
- Type: string
WrapsSet
Required
- Type: bool
Methods
Name | Description |
---|---|
AllWithMapKey | Creating an iterator for this complex list. |
ComputeFqn | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
Get | No description. |
AllWithMapKey
private DynamicListTerraformIterator AllWithMapKey(string MapKeyAttributeName)
Creating an iterator for this complex list.
The list will be converted into a map with the mapKeyAttributeName as the key.
MapKeyAttributeName
Required
- Type: string
ComputeFqn
private string ComputeFqn()
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Get
private double[] Get(double Index)
Index
Required
- Type: double
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | string | No description. |
CreationStack
Required
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
public string Fqn { get; }
- Type: string
NumberListMap
Initializers
using HashiCorp.Cdktf;
new NumberListMap(IInterpolatingParent TerraformResource, string TerraformAttribute);
Name | Type | Description |
---|---|---|
TerraformResource | IInterpolatingParent | No description. |
TerraformAttribute | string | No description. |
TerraformResource
Required
- Type: IInterpolatingParent
TerraformAttribute
Required
- Type: string
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
InterpolationForAttribute | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
Get | No description. |
ComputeFqn
private string ComputeFqn()
InterpolationForAttribute
private IResolvable InterpolationForAttribute(string Property)
Property
Required
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Get
private double[] Get(string Key)
Key
Required
- Type: string
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | string | No description. |
CreationStack
Required
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
public string Fqn { get; }
- Type: string
NumberMap
- Implements: ITerraformAddressable, IResolvable
Initializers
using HashiCorp.Cdktf;
new NumberMap(IInterpolatingParent TerraformResource, string TerraformAttribute);
Name | Type | Description |
---|---|---|
TerraformResource | IInterpolatingParent | No description. |
TerraformAttribute | string | No description. |
TerraformResource
Required
- Type: IInterpolatingParent
TerraformAttribute
Required
- Type: string
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
Lookup | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
ComputeFqn
private string ComputeFqn()
Lookup
private double Lookup(string Key)
Key
Required
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | string | No description. |
CreationStack
Required
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
public string Fqn { get; }
- Type: string
NumberMapList
Initializers
using HashiCorp.Cdktf;
new NumberMapList(IInterpolatingParent TerraformResource, string TerraformAttribute, bool WrapsSet);
Name | Type | Description |
---|---|---|
TerraformResource | IInterpolatingParent | No description. |
TerraformAttribute | string | No description. |
WrapsSet | bool | No description. |
TerraformResource
Required
- Type: IInterpolatingParent
TerraformAttribute
Required
- Type: string
WrapsSet
Required
- Type: bool
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
InterpolationForAttribute | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
Get | No description. |
ComputeFqn
private string ComputeFqn()
InterpolationForAttribute
private IResolvable InterpolationForAttribute(string Property)
Property
Required
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Get
private NumberMap Get(double Index)
Index
Required
- Type: double
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | string | No description. |
CreationStack
Required
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
public string Fqn { get; }
- Type: string
Op
This class contains static functions for all arithmetical and logical operators in the Terraform configuration language.
Initializers
using HashiCorp.Cdktf;
new Op();
Name | Type | Description |
---|
Static Functions
Name | Description |
---|---|
Add | Renders left + right. |
And | Renders left && right. |
Div | Renders left / right. |
Eq | Renders left == right. |
Gt | Renders left > right. |
Gte | Renders left >= right. |
Lt | Renders left < right. |
Lte | Renders left < = right. |
Mod | Renders left % right. |
Mul | Renders left * right. |
Negate | Renders -expression. |
Neq | Renders left != right. |
Not | Renders !expression. |
Or | Renders left || right. |
Sub | Renders left - right. |
Add
using HashiCorp.Cdktf;
Op.Add(object Left, object Right);
Renders left + right.
Left
Required
- Type: object
Right
Required
- Type: object
And
using HashiCorp.Cdktf;
Op.And(object Left, object Right);
Renders left && right.
Left
Required
- Type: object
Right
Required
- Type: object
Div
using HashiCorp.Cdktf;
Op.Div(object Left, object Right);
Renders left / right.
Left
Required
- Type: object
Right
Required
- Type: object
Eq
using HashiCorp.Cdktf;
Op.Eq(object Left, object Right);
Renders left == right.
Left
Required
- Type: object
Right
Required
- Type: object
Gt
using HashiCorp.Cdktf;
Op.Gt(object Left, object Right);
Renders left > right.
Left
Required
- Type: object
Right
Required
- Type: object
Gte
using HashiCorp.Cdktf;
Op.Gte(object Left, object Right);
Renders left >= right.
Left
Required
- Type: object
Right
Required
- Type: object
Lt
using HashiCorp.Cdktf;
Op.Lt(object Left, object Right);
Renders left < right.
Left
Required
- Type: object
Right
Required
- Type: object
Lte
using HashiCorp.Cdktf;
Op.Lte(object Left, object Right);
Renders left < = right.
Left
Required
- Type: object
Right
Required
- Type: object
Mod
using HashiCorp.Cdktf;
Op.Mod(object Left, object Right);
Renders left % right.
Left
Required
- Type: object
Right
Required
- Type: object
Mul
using HashiCorp.Cdktf;
Op.Mul(object Left, object Right);
Renders left * right.
Left
Required
- Type: object
Right
Required
- Type: object
Negate
using HashiCorp.Cdktf;
Op.Negate(object Expression);
Renders -expression.
Expression
Required
- Type: object
Neq
using HashiCorp.Cdktf;
Op.Neq(object Left, object Right);
Renders left != right.
Left
Required
- Type: object
Right
Required
- Type: object
Not
using HashiCorp.Cdktf;
Op.Not(object Expression);
Renders !expression.
Expression
Required
- Type: object
Or
using HashiCorp.Cdktf;
Op.Or(object Left, object Right);
Renders left || right.
Left
Required
- Type: object
Right
Required
- Type: object
Sub
using HashiCorp.Cdktf;
Op.Sub(object Left, object Right);
Renders left - right.
Left
Required
- Type: object
Right
Required
- Type: object
PrefixedRemoteWorkspaces
- Implements: IRemoteWorkspace
Initializers
using HashiCorp.Cdktf;
new PrefixedRemoteWorkspaces(string Prefix);
Name | Type | Description |
---|---|---|
Prefix | string | No description. |
Prefix
Required
- Type: string
Properties
Name | Type | Description |
---|---|---|
Prefix | string | No description. |
Prefix
Required
public string Prefix { get; }
- Type: string
ResourceTerraformIterator
Initializers
using HashiCorp.Cdktf;
new ResourceTerraformIterator(ITerraformResource Element);
Name | Type | Description |
---|---|---|
Element | ITerraformResource | No description. |
Element
Required
- Type: ITerraformResource
Methods
Name | Description |
---|---|
Dynamic | Creates a dynamic expression that can be used to loop over this iterator in a dynamic block. |
ForExpressionForList | Creates a for expression that results in a list. |
ForExpressionForMap | Creates a for expression that results in a map. |
GetAny | No description. |
GetAnyMap | No description. |
GetBoolean | No description. |
GetBooleanMap | No description. |
GetList | No description. |
GetMap | No description. |
GetNumber | No description. |
GetNumberList | No description. |
GetNumberMap | No description. |
GetString | No description. |
GetStringMap | No description. |
Keys | Creates a for expression that maps the iterators to its keys. |
PluckProperty | Creates a for expression that accesses the key on each element of the iterator. |
Values | Creates a for expression that maps the iterators to its value in case it is a map. |
Dynamic
private IResolvable Dynamic(System.Collections.Generic.IDictionary< string, object > Attributes)
Creates a dynamic expression that can be used to loop over this iterator in a dynamic block.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
See https://developer.hashicorp.com/terraform/cdktf/concepts/iterators#using-iterators-for-list-attributes
Attributes
Required
- Type: System.Collections.Generic.IDictionary< string, object >
ForExpressionForList
private IResolvable ForExpressionForList(object Expression)
Creates a for expression that results in a list.
This method allows you to create every possible for expression, but requires more knowledge about Terraform's for expression syntax. For the most common use cases you can use keys(), values(), and pluckProperty() instead.
You may write any valid Terraform for each expression, e.g.
TerraformIterator.fromList(myIteratorSourceVar).forExpressionForList("val.foo if val.bar == true")
will result in [ for key, val in var.myIteratorSource: val.foo if val.bar == true ]
.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
Expression
Required
- Type: object
The expression to use in the for mapping.
ForExpressionForMap
private IResolvable ForExpressionForMap(object KeyExpression, object ValueExpression)
Creates a for expression that results in a map.
This method allows you to create every possible for expression, but requires more knowledge about Terraforms for expression syntax. For the most common use cases you can use keys(), values(), and pluckProperty instead.
You may write any valid Terraform for each expression, e.g.
TerraformIterator.fromMap(myIteratorSourceVar).forExpressionForMap("key", "val.foo if val.bar == true")
will result in { for key, val in var.myIteratorSource: key = > val.foo if val.bar == true }
.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
KeyExpression
Required
- Type: object
The expression to use as key in the for mapping.
ValueExpression
Required
- Type: object
The expression to use as value in the for mapping.
GetAny
private IResolvable GetAny(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetAnyMap
private System.Collections.Generic.IDictionary< string, object > GetAnyMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetBoolean
private IResolvable GetBoolean(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetBooleanMap
private System.Collections.Generic.IDictionary< string, bool > GetBooleanMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetList
private string[] GetList(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetMap
private System.Collections.Generic.IDictionary< string, object > GetMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetNumber
private double GetNumber(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetNumberList
private double[] GetNumberList(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetNumberMap
private System.Collections.Generic.IDictionary< string, double > GetNumberMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetString
private string GetString(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetStringMap
private System.Collections.Generic.IDictionary< string, string > GetStringMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
Keys
private IResolvable Keys()
Creates a for expression that maps the iterators to its keys.
For lists these would be the indices, for maps the keys.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
PluckProperty
private IResolvable PluckProperty(string Property)
Creates a for expression that accesses the key on each element of the iterator.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
Property
Required
- Type: string
The property of the iterators values to map to.
Values
private IResolvable Values()
Creates a for expression that maps the iterators to its value in case it is a map.
For lists these would stay the same.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
Static Functions
Name | Description |
---|---|
FromComplexList | Creates a new iterator from a complex list. |
FromDataSources | Creates a new iterator from a data source that has been created with the for_each argument. |
FromList | Creates a new iterator from a list. |
FromMap | Creates a new iterator from a map. |
FromResources | Creates a new iterator from a resource that has been created with the for_each argument. |
FromComplexList
using HashiCorp.Cdktf;
ResourceTerraformIterator.FromComplexList(object List, string MapKeyAttributeName);
Creates a new iterator from a complex list.
One example for this would be a list of maps. The list will be converted into a map with the mapKeyAttributeName as the key.
Example
// Example automatically generated from non-compiling source. May contain errors.
var cert = new AcmCertificate(this, "cert", new Struct {
DomainName = "example.com",
ValidationMethod = "DNS"
});
var dvoIterator = TerraformIterator.FromComplexList(cert.DomainValidationOptions, "domain_name");
new Route53Record(this, "record", new Struct {
AllowOverwrite = true,
Name = dvoIterator.GetString("name"),
Records = new [] { dvoIterator.GetString("record") },
Ttl = 60,
Type = dvoIterator.GetString("type"),
ZoneId = Token.AsString(dataAwsRoute53ZoneExample.ZoneId),
ForEach = dvoIterator
});
List
Required
- Type: object
the list to iterate over.
MapKeyAttributeName
Required
- Type: string
the name of the attribute that should be used as the key in the map.
Visit https://developer.hashicorp.com/terraform/cdktf/concepts/iterators#using-iterators-on-complex-lists for more information.
FromDataSources
using HashiCorp.Cdktf;
ResourceTerraformIterator.FromDataSources(ITerraformResource Resource);
Creates a new iterator from a data source that has been created with the for_each
argument.
Resource
Required
- Type: ITerraformResource
FromList
using HashiCorp.Cdktf;
ResourceTerraformIterator.FromList(object List);
Creates a new iterator from a list.
List
Required
- Type: object
FromMap
using HashiCorp.Cdktf;
ResourceTerraformIterator.FromMap(object Map);
Creates a new iterator from a map.
Map
Required
- Type: object
FromResources
using HashiCorp.Cdktf;
ResourceTerraformIterator.FromResources(ITerraformResource Resource);
Creates a new iterator from a resource that has been created with the for_each
argument.
Resource
Required
- Type: ITerraformResource
Properties
Name | Type | Description |
---|---|---|
Key | object | Returns the current entry in the list or set that is being iterated over. |
Value | object | Returns the value of the current item iterated over. |
Key
Required
public object Key { get; }
- Type: object
Returns the current entry in the list or set that is being iterated over.
For lists this is the same as iterator.value
. If you need the index,
use count via TerraformCount
:
https://developer.hashicorp.com/terraform/cdktf/concepts/iterators#using-count
Value
Required
public object Value { get; }
- Type: object
Returns the value of the current item iterated over.
StringConcat
- Implements: IFragmentConcatenator
Converts all fragments to strings and concats those.
Drops 'undefined's.
Initializers
using HashiCorp.Cdktf;
new StringConcat();
Name | Type | Description |
---|
Methods
Name | Description |
---|---|
Join | Concatenates string fragments. |
Join
private object Join(object Left, object Right)
Concatenates string fragments.
Left
Required
- Type: object
Right
Required
- Type: object
StringListList
Initializers
using HashiCorp.Cdktf;
new StringListList(IInterpolatingParent TerraformResource, string TerraformAttribute, bool WrapsSet);
Name | Type | Description |
---|---|---|
TerraformResource | IInterpolatingParent | No description. |
TerraformAttribute | string | No description. |
WrapsSet | bool | No description. |
TerraformResource
Required
- Type: IInterpolatingParent
TerraformAttribute
Required
- Type: string
WrapsSet
Required
- Type: bool
Methods
Name | Description |
---|---|
AllWithMapKey | Creating an iterator for this complex list. |
ComputeFqn | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
Get | No description. |
AllWithMapKey
private DynamicListTerraformIterator AllWithMapKey(string MapKeyAttributeName)
Creating an iterator for this complex list.
The list will be converted into a map with the mapKeyAttributeName as the key.
MapKeyAttributeName
Required
- Type: string
ComputeFqn
private string ComputeFqn()
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Get
private string[] Get(double Index)
Index
Required
- Type: double
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | string | No description. |
CreationStack
Required
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
public string Fqn { get; }
- Type: string
StringListMap
Initializers
using HashiCorp.Cdktf;
new StringListMap(IInterpolatingParent TerraformResource, string TerraformAttribute);
Name | Type | Description |
---|---|---|
TerraformResource | IInterpolatingParent | No description. |
TerraformAttribute | string | No description. |
TerraformResource
Required
- Type: IInterpolatingParent
TerraformAttribute
Required
- Type: string
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
InterpolationForAttribute | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
Get | No description. |
ComputeFqn
private string ComputeFqn()
InterpolationForAttribute
private IResolvable InterpolationForAttribute(string Property)
Property
Required
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Get
private string[] Get(string Key)
Key
Required
- Type: string
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | string | No description. |
CreationStack
Required
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
public string Fqn { get; }
- Type: string
StringMap
- Implements: ITerraformAddressable, IResolvable
Initializers
using HashiCorp.Cdktf;
new StringMap(IInterpolatingParent TerraformResource, string TerraformAttribute);
Name | Type | Description |
---|---|---|
TerraformResource | IInterpolatingParent | No description. |
TerraformAttribute | string | No description. |
TerraformResource
Required
- Type: IInterpolatingParent
TerraformAttribute
Required
- Type: string
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
Lookup | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
ComputeFqn
private string ComputeFqn()
Lookup
private string Lookup(string Key)
Key
Required
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | string | No description. |
CreationStack
Required
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
public string Fqn { get; }
- Type: string
StringMapList
Initializers
using HashiCorp.Cdktf;
new StringMapList(IInterpolatingParent TerraformResource, string TerraformAttribute, bool WrapsSet);
Name | Type | Description |
---|---|---|
TerraformResource | IInterpolatingParent | No description. |
TerraformAttribute | string | No description. |
WrapsSet | bool | No description. |
TerraformResource
Required
- Type: IInterpolatingParent
TerraformAttribute
Required
- Type: string
WrapsSet
Required
- Type: bool
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
InterpolationForAttribute | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
Get | No description. |
ComputeFqn
private string ComputeFqn()
InterpolationForAttribute
private IResolvable InterpolationForAttribute(string Property)
Property
Required
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Get
private StringMap Get(double Index)
Index
Required
- Type: double
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | string | No description. |
CreationStack
Required
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
public string Fqn { get; }
- Type: string
TaggedCloudWorkspaces
A set of Terraform Cloud workspace tags.
You will be able to use this working directory with any workspaces that have all of the specified tags, and can use the terraform workspace commands to switch between them or create new workspaces. New workspaces will automatically have the specified tags. This option conflicts with name.
Initializers
using HashiCorp.Cdktf;
new TaggedCloudWorkspaces(string[] Tags, string Project = null);
Tags
Required
- Type: string[]
Project
Optional
- Type: string
Methods
Name | Description |
---|---|
ToTerraform | No description. |
ToHclTerraform | No description. |
ToTerraform
private object ToTerraform()
ToHclTerraform
private object ToHclTerraform()
Properties
Tags
Required
public string[] Tags { get; }
- Type: string[]
Project
Optional
public string Project { get; }
- Type: string
TerraformCount
Iterator for the Terraform count property.
Methods
Name | Description |
---|---|
ToString | No description. |
ToTerraform | No description. |
ToString
private string ToString()
ToTerraform
private double ToTerraform()
Static Functions
Name | Description |
---|---|
IsTerraformCount | No description. |
Of | No description. |
IsTerraformCount
using HashiCorp.Cdktf;
TerraformCount.IsTerraformCount(object X);
X
Required
- Type: object
Of
using HashiCorp.Cdktf;
TerraformCount.Of(double Count);
Count
Required
- Type: double
Properties
Name | Type | Description |
---|---|---|
Index | double | No description. |
Index
Required
public double Index { get; }
- Type: double
TerraformIterator
- Implements: ITerraformIterator
Initializers
using HashiCorp.Cdktf;
new TerraformIterator();
Name | Type | Description |
---|
Methods
Name | Description |
---|---|
Dynamic | Creates a dynamic expression that can be used to loop over this iterator in a dynamic block. |
ForExpressionForList | Creates a for expression that results in a list. |
ForExpressionForMap | Creates a for expression that results in a map. |
GetAny | No description. |
GetAnyMap | No description. |
GetBoolean | No description. |
GetBooleanMap | No description. |
GetList | No description. |
GetMap | No description. |
GetNumber | No description. |
GetNumberList | No description. |
GetNumberMap | No description. |
GetString | No description. |
GetStringMap | No description. |
Keys | Creates a for expression that maps the iterators to its keys. |
PluckProperty | Creates a for expression that accesses the key on each element of the iterator. |
Values | Creates a for expression that maps the iterators to its value in case it is a map. |
Dynamic
private IResolvable Dynamic(System.Collections.Generic.IDictionary< string, object > Attributes)
Creates a dynamic expression that can be used to loop over this iterator in a dynamic block.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
See https://developer.hashicorp.com/terraform/cdktf/concepts/iterators#using-iterators-for-list-attributes
Attributes
Required
- Type: System.Collections.Generic.IDictionary< string, object >
ForExpressionForList
private IResolvable ForExpressionForList(object Expression)
Creates a for expression that results in a list.
This method allows you to create every possible for expression, but requires more knowledge about Terraform's for expression syntax. For the most common use cases you can use keys(), values(), and pluckProperty() instead.
You may write any valid Terraform for each expression, e.g.
TerraformIterator.fromList(myIteratorSourceVar).forExpressionForList("val.foo if val.bar == true")
will result in [ for key, val in var.myIteratorSource: val.foo if val.bar == true ]
.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
Expression
Required
- Type: object
The expression to use in the for mapping.
ForExpressionForMap
private IResolvable ForExpressionForMap(object KeyExpression, object ValueExpression)
Creates a for expression that results in a map.
This method allows you to create every possible for expression, but requires more knowledge about Terraforms for expression syntax. For the most common use cases you can use keys(), values(), and pluckProperty instead.
You may write any valid Terraform for each expression, e.g.
TerraformIterator.fromMap(myIteratorSourceVar).forExpressionForMap("key", "val.foo if val.bar == true")
will result in { for key, val in var.myIteratorSource: key = > val.foo if val.bar == true }
.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
KeyExpression
Required
- Type: object
The expression to use as key in the for mapping.
ValueExpression
Required
- Type: object
The expression to use as value in the for mapping.
GetAny
private IResolvable GetAny(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetAnyMap
private System.Collections.Generic.IDictionary< string, object > GetAnyMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetBoolean
private IResolvable GetBoolean(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetBooleanMap
private System.Collections.Generic.IDictionary< string, bool > GetBooleanMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetList
private string[] GetList(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetMap
private System.Collections.Generic.IDictionary< string, object > GetMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetNumber
private double GetNumber(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetNumberList
private double[] GetNumberList(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetNumberMap
private System.Collections.Generic.IDictionary< string, double > GetNumberMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetString
private string GetString(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
GetStringMap
private System.Collections.Generic.IDictionary< string, string > GetStringMap(string Attribute)
Attribute
Required
- Type: string
name of the property to retrieve.
Keys
private IResolvable Keys()
Creates a for expression that maps the iterators to its keys.
For lists these would be the indices, for maps the keys.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
PluckProperty
private IResolvable PluckProperty(string Property)
Creates a for expression that accesses the key on each element of the iterator.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
Property
Required
- Type: string
The property of the iterators values to map to.
Values
private IResolvable Values()
Creates a for expression that maps the iterators to its value in case it is a map.
For lists these would stay the same.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString
.
Static Functions
Name | Description |
---|---|
FromComplexList | Creates a new iterator from a complex list. |
FromDataSources | Creates a new iterator from a data source that has been created with the for_each argument. |
FromList | Creates a new iterator from a list. |
FromMap | Creates a new iterator from a map. |
FromResources | Creates a new iterator from a resource that has been created with the for_each argument. |
FromComplexList
using HashiCorp.Cdktf;
TerraformIterator.FromComplexList(object List, string MapKeyAttributeName);
Creates a new iterator from a complex list.
One example for this would be a list of maps. The list will be converted into a map with the mapKeyAttributeName as the key.
Example
// Example automatically generated from non-compiling source. May contain errors.
var cert = new AcmCertificate(this, "cert", new Struct {
DomainName = "example.com",
ValidationMethod = "DNS"
});
var dvoIterator = TerraformIterator.FromComplexList(cert.DomainValidationOptions, "domain_name");
new Route53Record(this, "record", new Struct {
AllowOverwrite = true,
Name = dvoIterator.GetString("name"),
Records = new [] { dvoIterator.GetString("record") },
Ttl = 60,
Type = dvoIterator.GetString("type"),
ZoneId = Token.AsString(dataAwsRoute53ZoneExample.ZoneId),
ForEach = dvoIterator
});
List
Required
- Type: object
the list to iterate over.
MapKeyAttributeName
Required
- Type: string
the name of the attribute that should be used as the key in the map.
Visit https://developer.hashicorp.com/terraform/cdktf/concepts/iterators#using-iterators-on-complex-lists for more information.
FromDataSources
using HashiCorp.Cdktf;
TerraformIterator.FromDataSources(ITerraformResource Resource);
Creates a new iterator from a data source that has been created with the for_each
argument.
Resource
Required
- Type: ITerraformResource
FromList
using HashiCorp.Cdktf;
TerraformIterator.FromList(object List);
Creates a new iterator from a list.
List
Required
- Type: object
FromMap
using HashiCorp.Cdktf;
TerraformIterator.FromMap(object Map);
Creates a new iterator from a map.
Map
Required
- Type: object
FromResources
using HashiCorp.Cdktf;
TerraformIterator.FromResources(ITerraformResource Resource);
Creates a new iterator from a resource that has been created with the for_each
argument.
Resource
Required
- Type: ITerraformResource
TerraformResourceTargets
Initializers
using HashiCorp.Cdktf;
new TerraformResourceTargets();
Name | Type | Description |
---|
Methods
Name | Description |
---|---|
AddResourceTarget | No description. |
GetResourceByTarget | No description. |
AddResourceTarget
private void AddResourceTarget(TerraformResource Resource, string Target)
Resource
Required
- Type: TerraformResource
Target
Required
- Type: string
GetResourceByTarget
private TerraformResource GetResourceByTarget(string Target)
Target
Required
- Type: string
TerraformSelf
Expressions in connection blocks cannot refer to their parent resource by name.
References create dependencies, and referring to a resource by name within its own block would create a dependency cycle. Instead, expressions can use the self object, which represents the connection's parent resource and has all of that resource's attributes. For example, use self.public_ip to reference an aws_instance's public_ip attribute.
Initializers
using HashiCorp.Cdktf;
new TerraformSelf();
Name | Type | Description |
---|
Static Functions
Name | Description |
---|---|
GetAny | Only usable within a connection block to reference the connections parent resource. |
GetNumber | Only usable within a connection block to reference the connections parent resource. |
GetString | Only usable within a connection block to reference the connections parent resource. |
GetAny
using HashiCorp.Cdktf;
TerraformSelf.GetAny(string Key);
Only usable within a connection block to reference the connections parent resource.
Access a property on the resource like this: getAny("hostPort")
Key
Required
- Type: string
GetNumber
using HashiCorp.Cdktf;
TerraformSelf.GetNumber(string Key);
Only usable within a connection block to reference the connections parent resource.
Access a property on the resource like this: getNumber("hostPort")
Key
Required
- Type: string
GetString
using HashiCorp.Cdktf;
TerraformSelf.GetString(string Key);
Only usable within a connection block to reference the connections parent resource.
Access a property on the resource like this: getString("publicIp")
Key
Required
- Type: string
Testing
Testing utilities for cdktf applications.
Initializers
using HashiCorp.Cdktf;
new Testing();
Name | Type | Description |
---|
Static Functions
Name | Description |
---|---|
App | Returns an app for testing with the following properties: - Output directory is a temp dir. |
EnableFutureFlags | No description. |
FakeCdktfJsonPath | No description. |
FullSynth | No description. |
RenderConstructTree | No description. |
SetupJest | No description. |
StubVersion | No description. |
Synth | Returns the Terraform synthesized JSON. |
SynthHcl | Returns the Terraform synthesized JSON. |
SynthScope | No description. |
ToBeValidTerraform | No description. |
ToHaveDataSource | No description. |
ToHaveDataSourceWithProperties | No description. |
ToHaveProvider | No description. |
ToHaveProviderWithProperties | No description. |
ToHaveResource | No description. |
ToHaveResourceWithProperties | No description. |
App
using HashiCorp.Cdktf;
Testing.App(TestingAppConfig Options = null);
Returns an app for testing with the following properties: - Output directory is a temp dir.
Options
Optional
- Type: TestingAppConfig
EnableFutureFlags
using HashiCorp.Cdktf;
Testing.EnableFutureFlags(App App);
App
Required
- Type: App
FakeCdktfJsonPath
using HashiCorp.Cdktf;
Testing.FakeCdktfJsonPath(App App);
App
Required
- Type: App
FullSynth
using HashiCorp.Cdktf;
Testing.FullSynth(TerraformStack Stack);
Stack
Required
- Type: TerraformStack
RenderConstructTree
using HashiCorp.Cdktf;
Testing.RenderConstructTree(IConstruct Construct);
Construct
Required
- Type: Constructs.IConstruct
SetupJest
using HashiCorp.Cdktf;
Testing.SetupJest();
StubVersion
using HashiCorp.Cdktf;
Testing.StubVersion(App App);
App
Required
- Type: App
Synth
using HashiCorp.Cdktf;
Testing.Synth(TerraformStack Stack, bool RunValidations = null);
Returns the Terraform synthesized JSON.
Stack
Required
- Type: TerraformStack
RunValidations
Optional
- Type: bool
SynthHcl
using HashiCorp.Cdktf;
Testing.SynthHcl(TerraformStack Stack, bool RunValidations = null, bool ReturnMetadata = null);
Returns the Terraform synthesized JSON.
Stack
Required
- Type: TerraformStack
RunValidations
Optional
- Type: bool
ReturnMetadata
Optional
- Type: bool
SynthScope
using HashiCorp.Cdktf;
Testing.SynthScope(IScopeCallback Fn);
Fn
Required
- Type: IScopeCallback
ToBeValidTerraform
using HashiCorp.Cdktf;
Testing.ToBeValidTerraform(string Received);
Received
Required
- Type: string
ToHaveDataSource
using HashiCorp.Cdktf;
Testing.ToHaveDataSource(string Received, string ResourceType);
Received
Required
- Type: string
ResourceType
Required
- Type: string
ToHaveDataSourceWithProperties
using HashiCorp.Cdktf;
Testing.ToHaveDataSourceWithProperties(string Received, string ResourceType, System.Collections.Generic.IDictionary< string, object > Properties = null);
Received
Required
- Type: string
ResourceType
Required
- Type: string
Properties
Optional
- Type: System.Collections.Generic.IDictionary< string, object >
ToHaveProvider
using HashiCorp.Cdktf;
Testing.ToHaveProvider(string Received, string ResourceType);
Received
Required
- Type: string
ResourceType
Required
- Type: string
ToHaveProviderWithProperties
using HashiCorp.Cdktf;
Testing.ToHaveProviderWithProperties(string Received, string ResourceType, System.Collections.Generic.IDictionary< string, object > Properties = null);
Received
Required
- Type: string
ResourceType
Required
- Type: string
Properties
Optional
- Type: System.Collections.Generic.IDictionary< string, object >
ToHaveResource
using HashiCorp.Cdktf;
Testing.ToHaveResource(string Received, string ResourceType);
Received
Required
- Type: string
ResourceType
Required
- Type: string
ToHaveResourceWithProperties
using HashiCorp.Cdktf;
Testing.ToHaveResourceWithProperties(string Received, string ResourceType, System.Collections.Generic.IDictionary< string, object > Properties = null);
Received
Required
- Type: string
ResourceType
Required
- Type: string
Properties
Optional
- Type: System.Collections.Generic.IDictionary< string, object >
Token
Represents a special or lazily-evaluated value.
Can be used to delay evaluation of a certain value in case, for example, that it requires some context or late-bound data. Can also be used to mark values that need special processing at document rendering time.
Tokens can be embedded into strings while retaining their original semantics.
Initializers
using HashiCorp.Cdktf;
new Token();
Name | Type | Description |
---|
Static Functions
Name | Description |
---|---|
AsAny | Return a resolvable representation of the given value. |
AsAnyMap | Return a reversible map representation of this token. |
AsBooleanMap | Return a reversible map representation of this token. |
AsList | Return a reversible list representation of this token. |
AsMap | Return a reversible map representation of this token. |
AsNumber | Return a reversible number representation of this token. |
AsNumberList | Return a reversible list representation of this token. |
AsNumberMap | Return a reversible map representation of this token. |
AsString | Return a reversible string representation of this token. |
AsStringMap | Return a reversible map representation of this token. |
IsUnresolved | Returns true if obj represents an unresolved value. |
NullValue | Return a Token containing a null value. |
AsAny
using HashiCorp.Cdktf;
Token.AsAny(object Value);
Return a resolvable representation of the given value.
Value
Required
- Type: object
AsAnyMap
using HashiCorp.Cdktf;
Token.AsAnyMap(object Value, EncodingOptions Options = null);
Return a reversible map representation of this token.
Value
Required
- Type: object
Options
Optional
- Type: EncodingOptions
AsBooleanMap
using HashiCorp.Cdktf;
Token.AsBooleanMap(object Value, EncodingOptions Options = null);
Return a reversible map representation of this token.
Value
Required
- Type: object
Options
Optional
- Type: EncodingOptions
AsList
using HashiCorp.Cdktf;
Token.AsList(object Value, EncodingOptions Options = null);
Return a reversible list representation of this token.
Value
Required
- Type: object
Options
Optional
- Type: EncodingOptions
AsMap
using HashiCorp.Cdktf;
Token.AsMap(object Value, object MapValue, EncodingOptions Options = null);
Return a reversible map representation of this token.
Value
Required
- Type: object
MapValue
Required
- Type: object
Options
Optional
- Type: EncodingOptions
AsNumber
using HashiCorp.Cdktf;
Token.AsNumber(object Value);
Return a reversible number representation of this token.
Value
Required
- Type: object
AsNumberList
using HashiCorp.Cdktf;
Token.AsNumberList(object Value);
Return a reversible list representation of this token.
Value
Required
- Type: object
AsNumberMap
using HashiCorp.Cdktf;
Token.AsNumberMap(object Value, EncodingOptions Options = null);
Return a reversible map representation of this token.
Value
Required
- Type: object
Options
Optional
- Type: EncodingOptions
AsString
using HashiCorp.Cdktf;
Token.AsString(object Value, EncodingOptions Options = null);
Return a reversible string representation of this token.
If the Token is initialized with a literal, the stringified value of the literal is returned. Otherwise, a special quoted string representation of the Token is returned that can be embedded into other strings.
Strings with quoted Tokens in them can be restored back into
complex values with the Tokens restored by calling resolve()
on the string.
Value
Required
- Type: object
Options
Optional
- Type: EncodingOptions
AsStringMap
using HashiCorp.Cdktf;
Token.AsStringMap(object Value, EncodingOptions Options = null);
Return a reversible map representation of this token.
Value
Required
- Type: object
Options
Optional
- Type: EncodingOptions
IsUnresolved
using HashiCorp.Cdktf;
Token.IsUnresolved(object Obj);
Returns true if obj represents an unresolved value.
One of these must be true:
obj
is an IResolvableobj
is a string containing at least one encodedIResolvable
obj
is either an encoded number or list
This does NOT recurse into lists or objects to see if they containing resolvables.
Obj
Required
- Type: object
The object to test.
NullValue
using HashiCorp.Cdktf;
Token.NullValue();
Return a Token containing a null
value.
Note: This is different than undefined
, nil
, None
or similar
as it will end up in the Terraform config and can be used to explicitly
not set an attribute (which is sometimes required by Terraform providers)
Constants
Name | Type | Description |
---|---|---|
AnyMapTokenValue | string | Any map token representation. |
NumberMapTokenValue | double | Number Map token value representation. |
StringMapTokenValue | string | String Map token value representation. |
AnyMapTokenValue
Required
public string AnyMapTokenValue { get; }
- Type: string
Any map token representation.
NumberMapTokenValue
Required
public double NumberMapTokenValue { get; }
- Type: double
Number Map token value representation.
StringMapTokenValue
Required
public string StringMapTokenValue { get; }
- Type: string
String Map token value representation.
Tokenization
Less oft-needed functions to manipulate Tokens.
Initializers
using HashiCorp.Cdktf;
new Tokenization();
Name | Type | Description |
---|
Static Functions
Name | Description |
---|---|
IsResolvable | Return whether the given object is an IResolvable object. |
Resolve | Resolves an object by evaluating all tokens and removing any undefined or empty objects or arrays. |
Reverse | Reverse any value into Resolvables, if possible. |
ReverseList | Un-encode a Tokenized value from a list. |
ReverseMap | Un-encode a Tokenized value from a map. |
ReverseNumber | Un-encode a Tokenized value from a number. |
ReverseNumberList | Un-encode a Tokenized value from a list. |
ReverseString | Un-encode a string potentially containing encoded tokens. |
StringifyNumber | Stringify a number directly or lazily if it's a Token. |
IsResolvable
using HashiCorp.Cdktf;
Tokenization.IsResolvable(object Obj);
Return whether the given object is an IResolvable object.
This is different from Token.isUnresolved() which will also check for encoded Tokens, whereas this method will only do a type check on the given object.
Obj
Required
- Type: object
Resolve
using HashiCorp.Cdktf;
Tokenization.Resolve(object Obj, ResolveOptions Options);
Resolves an object by evaluating all tokens and removing any undefined or empty objects or arrays.
Values can only be primitives, arrays or tokens. Other objects (i.e. with methods) will be rejected.
Obj
Required
- Type: object
The object to resolve.
Options
Required
- Type: ResolveOptions
Prefix key path components for diagnostics.
Reverse
using HashiCorp.Cdktf;
Tokenization.Reverse(object X);
Reverse any value into Resolvables, if possible.
X
Required
- Type: object
ReverseList
using HashiCorp.Cdktf;
Tokenization.ReverseList(string[] L);
Un-encode a Tokenized value from a list.
L
Required
- Type: string[]
ReverseMap
using HashiCorp.Cdktf;
Tokenization.ReverseMap(System.Collections.Generic.IDictionary< string, object > M);
Un-encode a Tokenized value from a map.
M
Required
- Type: System.Collections.Generic.IDictionary< string, object >
ReverseNumber
using HashiCorp.Cdktf;
Tokenization.ReverseNumber(double N);
Un-encode a Tokenized value from a number.
N
Required
- Type: double
ReverseNumberList
using HashiCorp.Cdktf;
Tokenization.ReverseNumberList(double[] L);
Un-encode a Tokenized value from a list.
L
Required
- Type: double[]
ReverseString
using HashiCorp.Cdktf;
Tokenization.ReverseString(string S);
Un-encode a string potentially containing encoded tokens.
S
Required
- Type: string
StringifyNumber
using HashiCorp.Cdktf;
Tokenization.StringifyNumber(double X);
Stringify a number directly or lazily if it's a Token.
If it is an object (i.e., { Ref: 'SomeLogicalId' }), return it as-is.
X
Required
- Type: double
TokenizedStringFragments
Fragments of a concatenated string containing stringified Tokens.
Initializers
using HashiCorp.Cdktf;
new TokenizedStringFragments();
Name | Type | Description |
---|
Methods
Name | Description |
---|---|
AddEscape | No description. |
AddIntrinsic | Adds an intrinsic fragment. |
AddLiteral | Adds a literal fragment. |
AddToken | Adds a token fragment. |
Concat | No description. |
Join | Combine the string fragments using the given joiner. |
MapTokens | Apply a transformation function to all tokens in the string. |
AddEscape
private void AddEscape(string Kind)
Kind
Required
- Type: string
AddIntrinsic
private void AddIntrinsic(object Value)
Adds an intrinsic fragment.
Value
Required
- Type: object
the intrinsic value to add.
AddLiteral
private void AddLiteral(object Lit)
Adds a literal fragment.
Lit
Required
- Type: object
the literal to add.
AddToken
private void AddToken(IResolvable Token)
Adds a token fragment.
Token
Required
- Type: IResolvable
the token to add.
Concat
private void Concat(TokenizedStringFragments Other)
Other
Required
- Type: TokenizedStringFragments
Join
private object Join(IFragmentConcatenator Concat)
Combine the string fragments using the given joiner.
If there are any
Concat
Required
- Type: IFragmentConcatenator
MapTokens
private TokenizedStringFragments MapTokens(IResolveContext Context)
Apply a transformation function to all tokens in the string.
Context
Required
- Type: IResolveContext
Properties
Name | Type | Description |
---|---|---|
Escapes | IResolvable[] | Return all escape fragments from this string. |
FirstValue | object | Returns the first value. |
Intrinsic | IResolvable[] | Return all intrinsic fragments from this string. |
Length | double | Returns the number of fragments. |
Literals | IResolvable[] | Return all literals from this string. |
Tokens | IResolvable[] | Return all Tokens from this string. |
FirstToken | IResolvable | Returns the first token. |
Escapes
Required
public IResolvable[] Escapes { get; }
- Type: IResolvable[]
Return all escape fragments from this string.
FirstValue
Required
public object FirstValue { get; }
- Type: object
Returns the first value.
Intrinsic
Required
public IResolvable[] Intrinsic { get; }
- Type: IResolvable[]
Return all intrinsic fragments from this string.
Length
Required
public double Length { get; }
- Type: double
Returns the number of fragments.
Literals
Required
public IResolvable[] Literals { get; }
- Type: IResolvable[]
Return all literals from this string.
Tokens
Required
public IResolvable[] Tokens { get; }
- Type: IResolvable[]
Return all Tokens from this string.
FirstToken
Optional
public IResolvable FirstToken { get; }
- Type: IResolvable
Returns the first token.
VariableType
Initializers
using HashiCorp.Cdktf;
new VariableType();
Name | Type | Description |
---|
Static Functions
Name | Description |
---|---|
List | No description. |
Map | No description. |
Object | No description. |
Set | No description. |
Tuple | No description. |
List
using HashiCorp.Cdktf;
VariableType.List(string Type);
Type
Required
- Type: string
Map
using HashiCorp.Cdktf;
VariableType.Map(string Type);
Type
Required
- Type: string
Object
using HashiCorp.Cdktf;
VariableType.Object(System.Collections.Generic.IDictionary< string, string > Attributes);
Attributes
Required
- Type: System.Collections.Generic.IDictionary< string, string >
Set
using HashiCorp.Cdktf;
VariableType.Set(string Type);
Type
Required
- Type: string
Tuple
using HashiCorp.Cdktf;
VariableType.Tuple(string Elements);
Elements
Required
- Type: string
Constants
Name | Type | Description |
---|---|---|
Any | string | No description. |
Bool | string | No description. |
List | string | No description. |
ListBool | string | No description. |
ListNumber | string | No description. |
ListString | string | No description. |
Map | string | No description. |
MapBool | string | No description. |
MapNumber | string | No description. |
MapString | string | No description. |
Number | string | No description. |
Set | string | No description. |
SetBool | string | No description. |
SetNumber | string | No description. |
SetString | string | No description. |
String | string | No description. |
Any
Required
public string Any { get; }
- Type: string
Bool
Required
public string Bool { get; }
- Type: string
List
Required
public string List { get; }
- Type: string
ListBool
Required
public string ListBool { get; }
- Type: string
ListNumber
Required
public string ListNumber { get; }
- Type: string
ListString
Required
public string ListString { get; }
- Type: string
Map
Required
public string Map { get; }
- Type: string
MapBool
Required
public string MapBool { get; }
- Type: string
MapNumber
Required
public string MapNumber { get; }
- Type: string
MapString
Required
public string MapString { get; }
- Type: string
Number
Required
public string Number { get; }
- Type: string
Set
Required
public string Set { get; }
- Type: string
SetBool
Required
public string SetBool { get; }
- Type: string
SetNumber
Required
public string SetNumber { get; }
- Type: string
SetString
Required
public string SetString { get; }
- Type: string
String
Required
public string String { get; }
- Type: string
Protocols
IAnyProducer
- Implemented By: IAnyProducer
Interface for lazy untyped value producers.
Methods
Name | Description |
---|---|
Produce | Produce the value. |
Produce
private object Produce(IResolveContext Context)
Produce the value.
Context
Required
- Type: IResolveContext
IAspect
- Implemented By: MigrateIds, IAspect
Represents an Aspect.
Methods
Name | Description |
---|---|
Visit | All aspects can visit an IConstruct. |
Visit
private void Visit(IConstruct Node)
All aspects can visit an IConstruct.
Node
Required
- Type: Constructs.IConstruct
IFragmentConcatenator
- Implemented By: StringConcat, IFragmentConcatenator
Function used to concatenate symbols in the target document language.
Interface so it could potentially be exposed over jsii.
Methods
Name | Description |
---|---|
Join | Join the fragment on the left and on the right. |
Join
private object Join(object Left, object Right)
Join the fragment on the left and on the right.
Left
Required
- Type: object
Right
Required
- Type: object
IImportableConfig
- Implemented By: IImportableConfig
Properties
Name | Type | Description |
---|---|---|
ImportId | string | No description. |
TerraformResourceType | string | No description. |
Provider | TerraformProvider | No description. |
ImportId
Required
public string ImportId { get; set; }
- Type: string
TerraformResourceType
Required
public string TerraformResourceType { get; set; }
- Type: string
Provider
Optional
public TerraformProvider Provider { get; set; }
- Type: TerraformProvider
IInterpolatingParent
- Implemented By: AnyMapList, BooleanMapList, ComplexComputedList, ComplexObject, DataResource, MapList, NumberMapList, StringMapList, TerraformDataSource, TerraformResource, IInterpolatingParent
Methods
Name | Description |
---|---|
InterpolationForAttribute | No description. |
InterpolationForAttribute
private IResolvable InterpolationForAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
IListProducer
- Implemented By: IListProducer
Interface for lazy list producers.
Methods
Name | Description |
---|---|
Produce | Produce the list value. |
Produce
private string[] Produce(IResolveContext Context)
Produce the list value.
Context
Required
- Type: IResolveContext
IManifest
Properties
Name | Type | Description |
---|---|---|
Stacks | System.Collections.Generic.IDictionary< string, StackManifest> | No description. |
Version | string | No description. |
Stacks
Required
public System.Collections.Generic.IDictionary< string, StackManifest > Stacks { get; }
- Type: System.Collections.Generic.IDictionary< string, StackManifest>
Version
Required
public string Version { get; }
- Type: string
INumberProducer
- Implemented By: INumberProducer
Interface for lazy number producers.
Methods
Name | Description |
---|---|
Produce | Produce the number value. |
Produce
private double Produce(IResolveContext Context)
Produce the number value.
Context
Required
- Type: IResolveContext
IPostProcessor
- Implemented By: IPostProcessor
A Token that can post-process the complete resolved value, after resolve() has recursed over it.
Methods
Name | Description |
---|---|
PostProcess | Process the completely resolved value, after full recursion/resolution has happened. |
PostProcess
private object PostProcess(object Input, IResolveContext Context)
Process the completely resolved value, after full recursion/resolution has happened.
Input
Required
- Type: object
Context
Required
- Type: IResolveContext
IRemoteWorkspace
- Implemented By: NamedRemoteWorkspace, PrefixedRemoteWorkspaces, IRemoteWorkspace
IResolvable
- Implemented By: AnyListList, AnyListMap, AnyMap, AnyMapList, BooleanList, BooleanListList, BooleanListMap, BooleanMap, BooleanMapList, ComplexComputedList, ComplexList, ComplexMap, ComplexObject, LazyBase, MapList, NumberListList, NumberListMap, NumberMap, NumberMapList, StringListList, StringListMap, StringMap, StringMapList, IResolvable
Interface for values that can be resolvable later.
Tokens are special objects that participate in synthesis.
Methods
Name | Description |
---|---|
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
Context
Required
- Type: IResolveContext
ToString
private string ToString()
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
CreationStack
Required
public string[] CreationStack { get; }
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
IResolveContext
- Implemented By: IResolveContext
Current resolution context for tokens.
Methods
Name | Description |
---|---|
RegisterPostProcessor | Use this postprocessor after the entire token structure has been resolved. |
Resolve | Resolve an inner object. |
RegisterPostProcessor
private void RegisterPostProcessor(IPostProcessor PostProcessor)
Use this postprocessor after the entire token structure has been resolved.
PostProcessor
Required
- Type: IPostProcessor
Resolve
private object Resolve(object X)
Resolve an inner object.
X
Required
- Type: object
Properties
Name | Type | Description |
---|---|---|
Preparing | bool | True when we are still preparing, false if we're rendering the final output. |
Scope | Constructs.IConstruct | The scope from which resolution has been initiated. |
IgnoreEscapes | bool | True when ${} should not be parsed, and treated as literals. |
IteratorContext | string | TerraformIterators can be passed for block attributes and normal list attributes both require different handling when the iterable variable is accessed e.g. a dynamic block needs each.key while a for expression just needs key. |
SuppressBraces | bool | True when ${} should be ommitted (because already inside them), false otherwise. |
WarnEscapes | bool | True when ${} should not be included in the string to be resolved, outputs a warning. |
Preparing
Required
public bool Preparing { get; }
- Type: bool
True when we are still preparing, false if we're rendering the final output.
Scope
Required
public IConstruct Scope { get; }
- Type: Constructs.IConstruct
The scope from which resolution has been initiated.
IgnoreEscapes
Optional
public bool IgnoreEscapes { get; set; }
- Type: bool
True when ${} should not be parsed, and treated as literals.
IteratorContext
Optional
public string IteratorContext { get; set; }
- Type: string
TerraformIterators can be passed for block attributes and normal list attributes both require different handling when the iterable variable is accessed e.g. a dynamic block needs each.key while a for expression just needs key.
SuppressBraces
Optional
public bool SuppressBraces { get; set; }
- Type: bool
True when ${} should be ommitted (because already inside them), false otherwise.
WarnEscapes
Optional
public bool WarnEscapes { get; set; }
- Type: bool
True when ${} should not be included in the string to be resolved, outputs a warning.
Default: false
IResource
Properties
Name | Type | Description |
---|---|---|
Node | Constructs.Node | The tree node. |
Stack | TerraformStack | The stack in which this resource is defined. |
Node
Required
public Node Node { get; }
- Type: Constructs.Node
The tree node.
Stack
Required
public TerraformStack Stack { get; }
- Type: TerraformStack
The stack in which this resource is defined.
IResourceConstructor
- Implemented By: IResourceConstructor
IScopeCallback
- Implemented By: IScopeCallback
IStackSynthesizer
- Implemented By: IStackSynthesizer
Encodes information how a certain Stack should be deployed inspired by AWS CDK v2 implementation (synth functionality was removed in constructs v10).
Methods
Name | Description |
---|---|
Synthesize | Synthesize the associated stack to the session. |
Synthesize
private void Synthesize(ISynthesisSession Session)
Synthesize the associated stack to the session.
Session
Required
- Type: ISynthesisSession
IStringProducer
- Implemented By: IStringProducer
Interface for lazy string producers.
Methods
Name | Description |
---|---|
Produce | Produce the string value. |
Produce
private string Produce(IResolveContext Context)
Produce the string value.
Context
Required
- Type: IResolveContext
ISynthesisSession
- Implemented By: ISynthesisSession
Represents a single session of synthesis.
Passed into TerraformStack.onSynthesize()
methods.
originally from aws/constructs lib v3.3.126 (synth functionality was removed in constructs v10)
Properties
Name | Type | Description |
---|---|---|
Manifest | Manifest | No description. |
Outdir | string | The output directory for this synthesis session. |
SkipValidation | bool | No description. |
Manifest
Required
public Manifest Manifest { get; }
- Type: Manifest
Outdir
Required
public string Outdir { get; }
- Type: string
The output directory for this synthesis session.
SkipValidation
Optional
public bool SkipValidation { get; }
- Type: bool
ITerraformAddressable
- Implemented By: AnyListList, AnyListMap, AnyMap, AnyMapList, BooleanList, BooleanListList, BooleanListMap, BooleanMap, BooleanMapList, ComplexComputedList, ComplexList, ComplexMap, ComplexObject, DataResource, DataTerraformRemoteState, DataTerraformRemoteStateAzurerm, DataTerraformRemoteStateConsul, DataTerraformRemoteStateCos, DataTerraformRemoteStateGcs, DataTerraformRemoteStateHttp, DataTerraformRemoteStateLocal, DataTerraformRemoteStateOss, DataTerraformRemoteStatePg, DataTerraformRemoteStateS3, DataTerraformRemoteStateSwift, MapList, NumberListList, NumberListMap, NumberMap, NumberMapList, StringListList, StringListMap, StringMap, StringMapList, TerraformDataSource, TerraformHclModule, TerraformLocal, TerraformModule, TerraformRemoteState, TerraformResource, TerraformVariable, ITerraformAddressable, ITerraformDependable
Properties
Name | Type | Description |
---|---|---|
Fqn | string | No description. |
Fqn
Required
public string Fqn { get; }
- Type: string
ITerraformDependable
Extends: ITerraformAddressable
Implemented By: DataResource, TerraformDataSource, TerraformHclModule, TerraformModule, TerraformResource, ITerraformDependable
Properties
Name | Type | Description |
---|---|---|
Fqn | string | No description. |
Fqn
Required
public string Fqn { get; }
- Type: string
ITerraformIterator
- Implemented By: DynamicListTerraformIterator, ListTerraformIterator, MapTerraformIterator, ResourceTerraformIterator, TerraformIterator, ITerraformIterator
ITerraformResource
- Implemented By: DataResource, TerraformDataSource, TerraformResource, ITerraformResource
Methods
Name | Description |
---|---|
InterpolationForAttribute | No description. |
InterpolationForAttribute
private IResolvable InterpolationForAttribute(string TerraformAttribute)
TerraformAttribute
Required
- Type: string
Properties
Name | Type | Description |
---|---|---|
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
TerraformResourceType | string | No description. |
Count | object | No description. |
DependsOn | string[] | No description. |
ForEach | ITerraformIterator | No description. |
Lifecycle | TerraformResourceLifecycle | No description. |
Provider | TerraformProvider | No description. |
Fqn
Required
public string Fqn { get; }
- Type: string
FriendlyUniqueId
Required
public string FriendlyUniqueId { get; }
- Type: string
TerraformResourceType
Required
public string TerraformResourceType { get; }
- Type: string
Count
Optional
public object Count { get; set; }
- Type: object
DependsOn
Optional
public string[] DependsOn { get; set; }
- Type: string[]
ForEach
Optional
public ITerraformIterator ForEach { get; set; }
- Type: ITerraformIterator
Lifecycle
Optional
public TerraformResourceLifecycle Lifecycle { get; set; }
Provider
Optional
public TerraformProvider Provider { get; set; }
- Type: TerraformProvider
ITokenMapper
- Implemented By: ITokenMapper
Interface to apply operation to tokens in a string.
Interface so it can be exported via jsii.
Methods
Name | Description |
---|---|
MapToken | Replace a single token. |
MapToken
private object MapToken(IResolvable T)
Replace a single token.
T
Required
- Type: IResolvable
ITokenResolver
- Implemented By: DefaultTokenResolver, ITokenResolver
How to resolve tokens.
Methods
Name | Description |
---|---|
ResolveList | Resolve a tokenized list. |
ResolveMap | Resolve a tokenized map. |
ResolveNumberList | Resolve a tokenized number list. |
ResolveString | Resolve a string with at least one stringified token in it. |
ResolveToken | Resolve a single token. |
ResolveList
private object ResolveList(string[] L, IResolveContext Context)
Resolve a tokenized list.
L
Required
- Type: string[]
Context
Required
- Type: IResolveContext
ResolveMap
private object ResolveMap(System.Collections.Generic.IDictionary< string, object > M, IResolveContext Context)
Resolve a tokenized map.
M
Required
- Type: System.Collections.Generic.IDictionary< string, object >
Context
Required
- Type: IResolveContext
ResolveNumberList
private object ResolveNumberList(double[] L, IResolveContext Context)
Resolve a tokenized number list.
L
Required
- Type: double[]
Context
Required
- Type: IResolveContext
ResolveString
private object ResolveString(TokenizedStringFragments S, IResolveContext Context)
Resolve a string with at least one stringified token in it.
(May use concatenation)
S
Required
- Type: TokenizedStringFragments
Context
Required
- Type: IResolveContext
ResolveToken
private object ResolveToken(IResolvable T, IResolveContext Context, IPostProcessor PostProcessor)
Resolve a single token.
T
Required
- Type: IResolvable
Context
Required
- Type: IResolveContext
PostProcessor
Required
- Type: IPostProcessor