Terraform
API Reference for CSharp
Constructs
App
Represents a cdktf application.
Initializers
using HashiCorp.Cdktf;
new App(AppConfig Config = null);
ConfigOptional
- 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.
FromStackRequired
- Type: TerraformStack
ToStackRequired
- Type: TerraformStack
IdentifierRequired
- 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.
XRequired
- Type: object
Any object.
IsApp
using HashiCorp.Cdktf;
App.IsApp(object X);
XRequired
- Type: object
Of
using HashiCorp.Cdktf;
App.Of(IConstruct Construct);
ConstructRequired
- Type: Constructs.IConstruct
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
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. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
ManifestRequired
public Manifest Manifest { get; }
- Type: Manifest
OutdirRequired
public string Outdir { get; }
- Type: string
The output directory into which resources will be synthesized.
SkipBackendValidationRequired
public bool SkipBackendValidation { get; }
- Type: bool
Whether to skip backend validation during synthesis of the app.
SkipValidationRequired
public bool SkipValidation { get; }
- Type: bool
Whether to skip all validations during synthesis of the app.
TargetStackIdOptional
public string TargetStackId { get; }
- Type: string
The stack which will be synthesized.
If not set, all stacks will be synthesized.
ArtifactoryBackend
Initializers
using HashiCorp.Cdktf;
new ArtifactoryBackend(Construct Scope, ArtifactoryBackendConfig Props);
| Name | Type | Description |
|---|---|---|
Scope | Constructs.Construct | No description. |
Props | ArtifactoryBackendConfig | No description. |
ScopeRequired
- Type: Constructs.Construct
PropsRequired
- Type: ArtifactoryBackendConfig
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. |
ToMetadata | No description. |
ToTerraform | Adds this resource to the terraform JSON output. |
GetRemoteStateDataSource | Creates a TerraformRemoteState resource that accesses this backend. |
ToString
ToStringprivate string ToString()
Returns a string representation of this construct.
AddOverride
AddOverrideprivate void AddOverride(string Path, object Value)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
OverrideLogicalIdprivate void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
ResetOverrideLogicalIdprivate void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
ToMetadataprivate object ToMetadata()
ToTerraform
ToTerraformprivate object ToTerraform()
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
GetRemoteStateDataSourceprivate TerraformRemoteState GetRemoteStateDataSource(Construct Scope, string Name, string FromStack)
Creates a TerraformRemoteState resource that accesses this backend.
ScopeRequired
- Type: Constructs.Construct
NameRequired
- Type: string
FromStackRequired
- Type: string
Static Functions
| Name | Description |
|---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
IsConstructusing HashiCorp.Cdktf;
ArtifactoryBackend.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.
XRequired
- Type: object
Any object.
IsTerraformElement
IsTerraformElementusing HashiCorp.Cdktf;
ArtifactoryBackend.IsTerraformElement(object X);
XRequired
- Type: object
IsBackend
IsBackendusing HashiCorp.Cdktf;
ArtifactoryBackend.IsBackend(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
Node- Deprecated: CDK for Terraform no longer supports the artifactory backend. Terraform deprecated artifactory in v1.2.3 and removed it in v1.3.
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
CdktfStack- Deprecated: CDK for Terraform no longer supports the artifactory backend. Terraform deprecated artifactory in v1.2.3 and removed it in v1.3.
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
Fqn- Deprecated: CDK for Terraform no longer supports the artifactory backend. Terraform deprecated artifactory in v1.2.3 and removed it in v1.3.
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
FriendlyUniqueId- Deprecated: CDK for Terraform no longer supports the artifactory backend. Terraform deprecated artifactory in v1.2.3 and removed it in v1.3.
public string FriendlyUniqueId { get; }
- Type: string
AzurermBackend
Initializers
using HashiCorp.Cdktf;
new AzurermBackend(Construct Scope, AzurermBackendConfig Props);
| Name | Type | Description |
|---|---|---|
Scope | Constructs.Construct | No description. |
Props | AzurermBackendConfig | No description. |
ScopeRequired
- Type: Constructs.Construct
PropsRequired
- 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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
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.
ScopeRequired
- Type: Constructs.Construct
NameRequired
- Type: string
FromStackRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
AzurermBackend.IsTerraformElement(object X);
XRequired
- Type: object
IsBackend
using HashiCorp.Cdktf;
AzurermBackend.IsBackend(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
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. |
ScopeRequired
- Type: Constructs.Construct
PropsRequired
- 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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
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.
ScopeRequired
- Type: Constructs.Construct
NameRequired
- Type: string
FromStackRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
CloudBackend.IsTerraformElement(object X);
XRequired
- Type: object
IsBackend
using HashiCorp.Cdktf;
CloudBackend.IsBackend(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
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. |
ScopeRequired
- Type: Constructs.Construct
PropsRequired
- 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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
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.
ScopeRequired
- Type: Constructs.Construct
NameRequired
- Type: string
FromStackRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
ConsulBackend.IsTerraformElement(object X);
XRequired
- Type: object
IsBackend
using HashiCorp.Cdktf;
ConsulBackend.IsBackend(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
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. |
ScopeRequired
- Type: Constructs.Construct
PropsRequired
- 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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
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.
ScopeRequired
- Type: Constructs.Construct
NameRequired
- Type: string
FromStackRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
CosBackend.IsTerraformElement(object X);
XRequired
- Type: object
IsBackend
using HashiCorp.Cdktf;
CosBackend.IsBackend(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
public string FriendlyUniqueId { 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. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
ConfigRequired
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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Get
private IResolvable Get(string Output)
OutputRequired
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
OutputRequired
- Type: string
GetList
private string[] GetList(string Output)
OutputRequired
- Type: string
GetNumber
private double GetNumber(string Output)
OutputRequired
- Type: string
GetString
private string GetString(string Output)
OutputRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
DataTerraformRemoteState.IsTerraformElement(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
public string FriendlyUniqueId { get; }
- Type: string
Constants
| Name | Type | Description |
|---|---|---|
TfResourceType | string | No description. |
TfResourceTypeRequired
public string TfResourceType { get; }
- Type: string
DataTerraformRemoteStateArtifactory
Initializers
using HashiCorp.Cdktf;
new DataTerraformRemoteStateArtifactory(Construct Scope, string Id, DataTerraformRemoteStateArtifactoryConfig Config);
| Name | Type | Description |
|---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Config | DataTerraformRemoteStateArtifactoryConfig | No description. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
ConfigRequired
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. |
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
ToStringprivate string ToString()
Returns a string representation of this construct.
AddOverride
AddOverrideprivate void AddOverride(string Path, object Value)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
OverrideLogicalIdprivate void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
ResetOverrideLogicalIdprivate void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
ToMetadataprivate object ToMetadata()
ToTerraform
ToTerraformprivate object ToTerraform()
Adds this resource to the terraform JSON output.
Get
Getprivate IResolvable Get(string Output)
OutputRequired
- Type: string
GetBoolean
GetBooleanprivate IResolvable GetBoolean(string Output)
OutputRequired
- Type: string
GetList
GetListprivate string[] GetList(string Output)
OutputRequired
- Type: string
GetNumber
GetNumberprivate double GetNumber(string Output)
OutputRequired
- Type: string
GetString
GetStringprivate string GetString(string Output)
OutputRequired
- Type: string
Static Functions
| Name | Description |
|---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
IsConstructusing HashiCorp.Cdktf;
DataTerraformRemoteStateArtifactory.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.
XRequired
- Type: object
Any object.
IsTerraformElement
IsTerraformElementusing HashiCorp.Cdktf;
DataTerraformRemoteStateArtifactory.IsTerraformElement(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
Node- Deprecated: CDK for Terraform no longer supports the artifactory backend. Terraform deprecated artifactory in v1.2.3 and removed it in v1.3.
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
CdktfStack- Deprecated: CDK for Terraform no longer supports the artifactory backend. Terraform deprecated artifactory in v1.2.3 and removed it in v1.3.
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
Fqn- Deprecated: CDK for Terraform no longer supports the artifactory backend. Terraform deprecated artifactory in v1.2.3 and removed it in v1.3.
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
FriendlyUniqueId- Deprecated: CDK for Terraform no longer supports the artifactory backend. Terraform deprecated artifactory in v1.2.3 and removed it in v1.3.
public string FriendlyUniqueId { get; }
- Type: string
Constants
| Name | Type | Description |
|---|---|---|
TfResourceType | string | No description. |
TfResourceTypeRequired
TfResourceType- Deprecated: CDK for Terraform no longer supports the artifactory backend. Terraform deprecated artifactory in v1.2.3 and removed it in v1.3.
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. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
ConfigRequired
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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Get
private IResolvable Get(string Output)
OutputRequired
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
OutputRequired
- Type: string
GetList
private string[] GetList(string Output)
OutputRequired
- Type: string
GetNumber
private double GetNumber(string Output)
OutputRequired
- Type: string
GetString
private string GetString(string Output)
OutputRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
DataTerraformRemoteStateAzurerm.IsTerraformElement(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
public string FriendlyUniqueId { get; }
- Type: string
Constants
| Name | Type | Description |
|---|---|---|
TfResourceType | string | No description. |
TfResourceTypeRequired
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. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
ConfigRequired
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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Get
private IResolvable Get(string Output)
OutputRequired
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
OutputRequired
- Type: string
GetList
private string[] GetList(string Output)
OutputRequired
- Type: string
GetNumber
private double GetNumber(string Output)
OutputRequired
- Type: string
GetString
private string GetString(string Output)
OutputRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
DataTerraformRemoteStateConsul.IsTerraformElement(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
public string FriendlyUniqueId { get; }
- Type: string
Constants
| Name | Type | Description |
|---|---|---|
TfResourceType | string | No description. |
TfResourceTypeRequired
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. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
ConfigRequired
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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Get
private IResolvable Get(string Output)
OutputRequired
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
OutputRequired
- Type: string
GetList
private string[] GetList(string Output)
OutputRequired
- Type: string
GetNumber
private double GetNumber(string Output)
OutputRequired
- Type: string
GetString
private string GetString(string Output)
OutputRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
DataTerraformRemoteStateCos.IsTerraformElement(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
public string FriendlyUniqueId { get; }
- Type: string
Constants
| Name | Type | Description |
|---|---|---|
TfResourceType | string | No description. |
TfResourceTypeRequired
public string TfResourceType { get; }
- Type: string
DataTerraformRemoteStateEtcd
Initializers
using HashiCorp.Cdktf;
new DataTerraformRemoteStateEtcd(Construct Scope, string Id, DataTerraformRemoteStateEtcdConfig Config);
| Name | Type | Description |
|---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Config | DataTerraformRemoteStateEtcdConfig | No description. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
ConfigRequired
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. |
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
ToStringprivate string ToString()
Returns a string representation of this construct.
AddOverride
AddOverrideprivate void AddOverride(string Path, object Value)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
OverrideLogicalIdprivate void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
ResetOverrideLogicalIdprivate void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
ToMetadataprivate object ToMetadata()
ToTerraform
ToTerraformprivate object ToTerraform()
Adds this resource to the terraform JSON output.
Get
Getprivate IResolvable Get(string Output)
OutputRequired
- Type: string
GetBoolean
GetBooleanprivate IResolvable GetBoolean(string Output)
OutputRequired
- Type: string
GetList
GetListprivate string[] GetList(string Output)
OutputRequired
- Type: string
GetNumber
GetNumberprivate double GetNumber(string Output)
OutputRequired
- Type: string
GetString
GetStringprivate string GetString(string Output)
OutputRequired
- Type: string
Static Functions
| Name | Description |
|---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
IsConstructusing HashiCorp.Cdktf;
DataTerraformRemoteStateEtcd.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.
XRequired
- Type: object
Any object.
IsTerraformElement
IsTerraformElementusing HashiCorp.Cdktf;
DataTerraformRemoteStateEtcd.IsTerraformElement(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
Node- Deprecated: CDK for Terraform no longer supports the etcd backend. Terraform deprecated etcd in v1.2.3 and removed it in v1.3.
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
CdktfStack- Deprecated: CDK for Terraform no longer supports the etcd backend. Terraform deprecated etcd in v1.2.3 and removed it in v1.3.
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
Fqn- Deprecated: CDK for Terraform no longer supports the etcd backend. Terraform deprecated etcd in v1.2.3 and removed it in v1.3.
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
FriendlyUniqueId- Deprecated: CDK for Terraform no longer supports the etcd backend. Terraform deprecated etcd in v1.2.3 and removed it in v1.3.
public string FriendlyUniqueId { get; }
- Type: string
Constants
| Name | Type | Description |
|---|---|---|
TfResourceType | string | No description. |
TfResourceTypeRequired
TfResourceType- Deprecated: CDK for Terraform no longer supports the etcd backend. Terraform deprecated etcd in v1.2.3 and removed it in v1.3.
public string TfResourceType { get; }
- Type: string
DataTerraformRemoteStateEtcdV3
Initializers
using HashiCorp.Cdktf;
new DataTerraformRemoteStateEtcdV3(Construct Scope, string Id, DataTerraformRemoteStateEtcdV3Config Config);
| Name | Type | Description |
|---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Config | DataTerraformRemoteStateEtcdV3Config | No description. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
ConfigRequired
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. |
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
ToStringprivate string ToString()
Returns a string representation of this construct.
AddOverride
AddOverrideprivate void AddOverride(string Path, object Value)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
OverrideLogicalIdprivate void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
ResetOverrideLogicalIdprivate void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
ToMetadataprivate object ToMetadata()
ToTerraform
ToTerraformprivate object ToTerraform()
Adds this resource to the terraform JSON output.
Get
Getprivate IResolvable Get(string Output)
OutputRequired
- Type: string
GetBoolean
GetBooleanprivate IResolvable GetBoolean(string Output)
OutputRequired
- Type: string
GetList
GetListprivate string[] GetList(string Output)
OutputRequired
- Type: string
GetNumber
GetNumberprivate double GetNumber(string Output)
OutputRequired
- Type: string
GetString
GetStringprivate string GetString(string Output)
OutputRequired
- Type: string
Static Functions
| Name | Description |
|---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
IsConstructusing HashiCorp.Cdktf;
DataTerraformRemoteStateEtcdV3.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.
XRequired
- Type: object
Any object.
IsTerraformElement
IsTerraformElementusing HashiCorp.Cdktf;
DataTerraformRemoteStateEtcdV3.IsTerraformElement(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
Node- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
CdktfStack- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
Fqn- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
FriendlyUniqueId- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public string FriendlyUniqueId { get; }
- Type: string
Constants
| Name | Type | Description |
|---|---|---|
TfResourceType | string | No description. |
TfResourceTypeRequired
TfResourceType- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
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. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
ConfigRequired
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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Get
private IResolvable Get(string Output)
OutputRequired
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
OutputRequired
- Type: string
GetList
private string[] GetList(string Output)
OutputRequired
- Type: string
GetNumber
private double GetNumber(string Output)
OutputRequired
- Type: string
GetString
private string GetString(string Output)
OutputRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
DataTerraformRemoteStateGcs.IsTerraformElement(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
public string FriendlyUniqueId { get; }
- Type: string
Constants
| Name | Type | Description |
|---|---|---|
TfResourceType | string | No description. |
TfResourceTypeRequired
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. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
ConfigRequired
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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Get
private IResolvable Get(string Output)
OutputRequired
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
OutputRequired
- Type: string
GetList
private string[] GetList(string Output)
OutputRequired
- Type: string
GetNumber
private double GetNumber(string Output)
OutputRequired
- Type: string
GetString
private string GetString(string Output)
OutputRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
DataTerraformRemoteStateHttp.IsTerraformElement(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
public string FriendlyUniqueId { get; }
- Type: string
Constants
| Name | Type | Description |
|---|---|---|
TfResourceType | string | No description. |
TfResourceTypeRequired
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. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
ConfigRequired
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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Get
private IResolvable Get(string Output)
OutputRequired
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
OutputRequired
- Type: string
GetList
private string[] GetList(string Output)
OutputRequired
- Type: string
GetNumber
private double GetNumber(string Output)
OutputRequired
- Type: string
GetString
private string GetString(string Output)
OutputRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
DataTerraformRemoteStateLocal.IsTerraformElement(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
public string FriendlyUniqueId { get; }
- Type: string
Constants
| Name | Type | Description |
|---|---|---|
TfResourceType | string | No description. |
TfResourceTypeRequired
public string TfResourceType { get; }
- Type: string
DataTerraformRemoteStateManta
Initializers
using HashiCorp.Cdktf;
new DataTerraformRemoteStateManta(Construct Scope, string Id, DataTerraformRemoteStateMantaConfig Config);
| Name | Type | Description |
|---|---|---|
Scope | Constructs.Construct | No description. |
Id | string | No description. |
Config | DataTerraformRemoteStateMantaConfig | No description. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
ConfigRequired
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. |
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
ToStringprivate string ToString()
Returns a string representation of this construct.
AddOverride
AddOverrideprivate void AddOverride(string Path, object Value)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
OverrideLogicalIdprivate void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
ResetOverrideLogicalIdprivate void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
ToMetadataprivate object ToMetadata()
ToTerraform
ToTerraformprivate object ToTerraform()
Adds this resource to the terraform JSON output.
Get
Getprivate IResolvable Get(string Output)
OutputRequired
- Type: string
GetBoolean
GetBooleanprivate IResolvable GetBoolean(string Output)
OutputRequired
- Type: string
GetList
GetListprivate string[] GetList(string Output)
OutputRequired
- Type: string
GetNumber
GetNumberprivate double GetNumber(string Output)
OutputRequired
- Type: string
GetString
GetStringprivate string GetString(string Output)
OutputRequired
- Type: string
Static Functions
| Name | Description |
|---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
IsConstructusing HashiCorp.Cdktf;
DataTerraformRemoteStateManta.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.
XRequired
- Type: object
Any object.
IsTerraformElement
IsTerraformElementusing HashiCorp.Cdktf;
DataTerraformRemoteStateManta.IsTerraformElement(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
Node- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
CdktfStack- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
Fqn- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
FriendlyUniqueId- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public string FriendlyUniqueId { get; }
- Type: string
Constants
| Name | Type | Description |
|---|---|---|
TfResourceType | string | No description. |
TfResourceTypeRequired
TfResourceType- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
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. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
ConfigRequired
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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Get
private IResolvable Get(string Output)
OutputRequired
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
OutputRequired
- Type: string
GetList
private string[] GetList(string Output)
OutputRequired
- Type: string
GetNumber
private double GetNumber(string Output)
OutputRequired
- Type: string
GetString
private string GetString(string Output)
OutputRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
DataTerraformRemoteStateOss.IsTerraformElement(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
public string FriendlyUniqueId { get; }
- Type: string
Constants
| Name | Type | Description |
|---|---|---|
TfResourceType | string | No description. |
TfResourceTypeRequired
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. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
ConfigRequired
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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Get
private IResolvable Get(string Output)
OutputRequired
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
OutputRequired
- Type: string
GetList
private string[] GetList(string Output)
OutputRequired
- Type: string
GetNumber
private double GetNumber(string Output)
OutputRequired
- Type: string
GetString
private string GetString(string Output)
OutputRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
DataTerraformRemoteStatePg.IsTerraformElement(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
public string FriendlyUniqueId { get; }
- Type: string
Constants
| Name | Type | Description |
|---|---|---|
TfResourceType | string | No description. |
TfResourceTypeRequired
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. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
ConfigRequired
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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Get
private IResolvable Get(string Output)
OutputRequired
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
OutputRequired
- Type: string
GetList
private string[] GetList(string Output)
OutputRequired
- Type: string
GetNumber
private double GetNumber(string Output)
OutputRequired
- Type: string
GetString
private string GetString(string Output)
OutputRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
DataTerraformRemoteStateS3.IsTerraformElement(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
public string FriendlyUniqueId { get; }
- Type: string
Constants
| Name | Type | Description |
|---|---|---|
TfResourceType | string | No description. |
TfResourceTypeRequired
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. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
ConfigRequired
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. |
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
ToStringprivate string ToString()
Returns a string representation of this construct.
AddOverride
AddOverrideprivate void AddOverride(string Path, object Value)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
OverrideLogicalIdprivate void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
ResetOverrideLogicalIdprivate void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
ToMetadataprivate object ToMetadata()
ToTerraform
ToTerraformprivate object ToTerraform()
Adds this resource to the terraform JSON output.
Get
Getprivate IResolvable Get(string Output)
OutputRequired
- Type: string
GetBoolean
GetBooleanprivate IResolvable GetBoolean(string Output)
OutputRequired
- Type: string
GetList
GetListprivate string[] GetList(string Output)
OutputRequired
- Type: string
GetNumber
GetNumberprivate double GetNumber(string Output)
OutputRequired
- Type: string
GetString
GetStringprivate string GetString(string Output)
OutputRequired
- Type: string
Static Functions
| Name | Description |
|---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
IsConstructusing 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.
XRequired
- Type: object
Any object.
IsTerraformElement
IsTerraformElementusing HashiCorp.Cdktf;
DataTerraformRemoteStateSwift.IsTerraformElement(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
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.
CdktfStackRequired
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
FqnRequired
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
FriendlyUniqueIdRequired
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. |
TfResourceTypeRequired
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
EtcdBackend
Initializers
using HashiCorp.Cdktf;
new EtcdBackend(Construct Scope, EtcdBackendConfig Props);
| Name | Type | Description |
|---|---|---|
Scope | Constructs.Construct | No description. |
Props | EtcdBackendConfig | No description. |
ScopeRequired
- Type: Constructs.Construct
PropsRequired
- Type: EtcdBackendConfig
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. |
ToMetadata | No description. |
ToTerraform | Adds this resource to the terraform JSON output. |
GetRemoteStateDataSource | Creates a TerraformRemoteState resource that accesses this backend. |
ToString
ToStringprivate string ToString()
Returns a string representation of this construct.
AddOverride
AddOverrideprivate void AddOverride(string Path, object Value)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
OverrideLogicalIdprivate void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
ResetOverrideLogicalIdprivate void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
ToMetadataprivate object ToMetadata()
ToTerraform
ToTerraformprivate object ToTerraform()
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
GetRemoteStateDataSourceprivate TerraformRemoteState GetRemoteStateDataSource(Construct Scope, string Name, string FromStack)
Creates a TerraformRemoteState resource that accesses this backend.
ScopeRequired
- Type: Constructs.Construct
NameRequired
- Type: string
FromStackRequired
- Type: string
Static Functions
| Name | Description |
|---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
IsConstructusing HashiCorp.Cdktf;
EtcdBackend.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.
XRequired
- Type: object
Any object.
IsTerraformElement
IsTerraformElementusing HashiCorp.Cdktf;
EtcdBackend.IsTerraformElement(object X);
XRequired
- Type: object
IsBackend
IsBackendusing HashiCorp.Cdktf;
EtcdBackend.IsBackend(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
Node- Deprecated: CDK for Terraform no longer supports the etcd backend. Terraform deprecated etcd in v1.2.3 and removed it in v1.3.
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
CdktfStack- Deprecated: CDK for Terraform no longer supports the etcd backend. Terraform deprecated etcd in v1.2.3 and removed it in v1.3.
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
Fqn- Deprecated: CDK for Terraform no longer supports the etcd backend. Terraform deprecated etcd in v1.2.3 and removed it in v1.3.
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
FriendlyUniqueId- Deprecated: CDK for Terraform no longer supports the etcd backend. Terraform deprecated etcd in v1.2.3 and removed it in v1.3.
public string FriendlyUniqueId { get; }
- Type: string
EtcdV3Backend
Initializers
using HashiCorp.Cdktf;
new EtcdV3Backend(Construct Scope, EtcdV3BackendConfig Props);
| Name | Type | Description |
|---|---|---|
Scope | Constructs.Construct | No description. |
Props | EtcdV3BackendConfig | No description. |
ScopeRequired
- Type: Constructs.Construct
PropsRequired
- Type: EtcdV3BackendConfig
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. |
ToMetadata | No description. |
ToTerraform | Adds this resource to the terraform JSON output. |
GetRemoteStateDataSource | Creates a TerraformRemoteState resource that accesses this backend. |
ToString
ToStringprivate string ToString()
Returns a string representation of this construct.
AddOverride
AddOverrideprivate void AddOverride(string Path, object Value)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
OverrideLogicalIdprivate void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
ResetOverrideLogicalIdprivate void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
ToMetadataprivate object ToMetadata()
ToTerraform
ToTerraformprivate object ToTerraform()
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
GetRemoteStateDataSourceprivate TerraformRemoteState GetRemoteStateDataSource(Construct Scope, string Name, string FromStack)
Creates a TerraformRemoteState resource that accesses this backend.
ScopeRequired
- Type: Constructs.Construct
NameRequired
- Type: string
FromStackRequired
- Type: string
Static Functions
| Name | Description |
|---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
IsConstructusing HashiCorp.Cdktf;
EtcdV3Backend.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.
XRequired
- Type: object
Any object.
IsTerraformElement
IsTerraformElementusing HashiCorp.Cdktf;
EtcdV3Backend.IsTerraformElement(object X);
XRequired
- Type: object
IsBackend
IsBackendusing HashiCorp.Cdktf;
EtcdV3Backend.IsBackend(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
Node- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
CdktfStack- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
Fqn- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
FriendlyUniqueId- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public string FriendlyUniqueId { 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. |
ScopeRequired
- Type: Constructs.Construct
PropsRequired
- 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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
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.
ScopeRequired
- Type: Constructs.Construct
NameRequired
- Type: string
FromStackRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
GcsBackend.IsTerraformElement(object X);
XRequired
- Type: object
IsBackend
using HashiCorp.Cdktf;
GcsBackend.IsBackend(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
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. |
ScopeRequired
- Type: Constructs.Construct
PropsRequired
- 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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
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.
ScopeRequired
- Type: Constructs.Construct
NameRequired
- Type: string
FromStackRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
HttpBackend.IsTerraformElement(object X);
XRequired
- Type: object
IsBackend
using HashiCorp.Cdktf;
HttpBackend.IsBackend(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
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. |
ScopeRequired
- Type: Constructs.Construct
PropsOptional
- 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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
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.
ScopeRequired
- Type: Constructs.Construct
NameRequired
- Type: string
FromStackRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
LocalBackend.IsTerraformElement(object X);
XRequired
- Type: object
IsBackend
using HashiCorp.Cdktf;
LocalBackend.IsBackend(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
public string FriendlyUniqueId { get; }
- Type: string
MantaBackend
Initializers
using HashiCorp.Cdktf;
new MantaBackend(Construct Scope, MantaBackendConfig Props);
| Name | Type | Description |
|---|---|---|
Scope | Constructs.Construct | No description. |
Props | MantaBackendConfig | No description. |
ScopeRequired
- Type: Constructs.Construct
PropsRequired
- Type: MantaBackendConfig
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. |
ToMetadata | No description. |
ToTerraform | Adds this resource to the terraform JSON output. |
GetRemoteStateDataSource | Creates a TerraformRemoteState resource that accesses this backend. |
ToString
ToStringprivate string ToString()
Returns a string representation of this construct.
AddOverride
AddOverrideprivate void AddOverride(string Path, object Value)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
OverrideLogicalIdprivate void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
ResetOverrideLogicalIdprivate void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
ToMetadataprivate object ToMetadata()
ToTerraform
ToTerraformprivate object ToTerraform()
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
GetRemoteStateDataSourceprivate TerraformRemoteState GetRemoteStateDataSource(Construct Scope, string Name, string FromStack)
Creates a TerraformRemoteState resource that accesses this backend.
ScopeRequired
- Type: Constructs.Construct
NameRequired
- Type: string
FromStackRequired
- Type: string
Static Functions
| Name | Description |
|---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
IsConstructusing HashiCorp.Cdktf;
MantaBackend.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.
XRequired
- Type: object
Any object.
IsTerraformElement
IsTerraformElementusing HashiCorp.Cdktf;
MantaBackend.IsTerraformElement(object X);
XRequired
- Type: object
IsBackend
IsBackendusing HashiCorp.Cdktf;
MantaBackend.IsBackend(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
Node- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
CdktfStack- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
Fqn- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
FriendlyUniqueId- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
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. |
ScopeRequired
- Type: Constructs.Construct
PropsRequired
- 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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
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.
ScopeRequired
- Type: Constructs.Construct
NameRequired
- Type: string
FromStackRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
OssBackend.IsTerraformElement(object X);
XRequired
- Type: object
IsBackend
using HashiCorp.Cdktf;
OssBackend.IsBackend(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
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. |
ScopeRequired
- Type: Constructs.Construct
PropsRequired
- 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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
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.
ScopeRequired
- Type: Constructs.Construct
NameRequired
- Type: string
FromStackRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
PgBackend.IsTerraformElement(object X);
XRequired
- Type: object
IsBackend
using HashiCorp.Cdktf;
PgBackend.IsBackend(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
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. |
ScopeRequired
- Type: Constructs.Construct
PropsRequired
- 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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
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.
ScopeRequired
- Type: Constructs.Construct
NameRequired
- Type: string
FromStackRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
RemoteBackend.IsTerraformElement(object X);
XRequired
- Type: object
IsBackend
using HashiCorp.Cdktf;
RemoteBackend.IsBackend(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
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);
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
Methods
| Name | Description |
|---|---|
ToString | Returns a string representation of this construct. |
ToString
ToStringprivate string ToString()
Returns a string representation of this construct.
Static Functions
| Name | Description |
|---|---|
IsConstruct | Checks if x is a construct. |
IsConstruct
IsConstructusing 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.
XRequired
- Type: object
Any object.
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
Stack | TerraformStack | The stack in which this resource is defined. |
NodeRequired
Node- Deprecated: - Please use Construct from the constructs package instead.
public Node Node { get; }
- Type: Constructs.Node
The tree node.
StackRequired
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. |
ScopeRequired
- Type: Constructs.Construct
PropsRequired
- 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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
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.
ScopeRequired
- Type: Constructs.Construct
NameRequired
- Type: string
FromStackRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
S3Backend.IsTerraformElement(object X);
XRequired
- Type: object
IsBackend
using HashiCorp.Cdktf;
S3Backend.IsBackend(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
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. |
ScopeRequired
- Type: Constructs.Construct
PropsRequired
- 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. |
ToMetadata | No description. |
ToTerraform | Adds this resource to the terraform JSON output. |
GetRemoteStateDataSource | Creates a TerraformRemoteState resource that accesses this backend. |
ToString
ToStringprivate string ToString()
Returns a string representation of this construct.
AddOverride
AddOverrideprivate void AddOverride(string Path, object Value)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
OverrideLogicalIdprivate void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- Type: string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
ResetOverrideLogicalIdprivate void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
ToMetadataprivate object ToMetadata()
ToTerraform
ToTerraformprivate object ToTerraform()
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
GetRemoteStateDataSourceprivate TerraformRemoteState GetRemoteStateDataSource(Construct Scope, string Name, string FromStack)
Creates a TerraformRemoteState resource that accesses this backend.
ScopeRequired
- Type: Constructs.Construct
NameRequired
- Type: string
FromStackRequired
- Type: string
Static Functions
| Name | Description |
|---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
IsConstructusing 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.
XRequired
- Type: object
Any object.
IsTerraformElement
IsTerraformElementusing HashiCorp.Cdktf;
SwiftBackend.IsTerraformElement(object X);
XRequired
- Type: object
IsBackend
IsBackendusing HashiCorp.Cdktf;
SwiftBackend.IsBackend(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
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.
CdktfStackRequired
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
FqnRequired
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
FriendlyUniqueIdRequired
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. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
ConfigRequired
- 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.
XRequired
- 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. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
FileNameRequired
public string FileName { get; }
- Type: string
Name of the asset.
PathRequired
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.
AssetHashRequired
public string AssetHash { get; }
- Type: string
TypeRequired
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. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
NameRequired
- 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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
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.
ScopeRequired
- Type: Constructs.Construct
NameRequired
- Type: string
FromStackRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
TerraformBackend.IsTerraformElement(object X);
XRequired
- Type: object
IsBackend
using HashiCorp.Cdktf;
TerraformBackend.IsBackend(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
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. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
ConfigRequired
- 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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
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)
TerraformAttributeRequired
- Type: string
GetBooleanAttribute
private IResolvable GetBooleanAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetBooleanMapAttribute
private System.Collections.Generic.IDictionary< string, bool > GetBooleanMapAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetListAttribute
private string[] GetListAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetNumberAttribute
private double GetNumberAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetNumberListAttribute
private double[] GetNumberListAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetNumberMapAttribute
private System.Collections.Generic.IDictionary< string, double > GetNumberMapAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetStringAttribute
private string GetStringAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetStringMapAttribute
private System.Collections.Generic.IDictionary< string, string > GetStringMapAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
InterpolationForAttribute
private IResolvable InterpolationForAttribute(string TerraformAttribute)
TerraformAttributeRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
TerraformDataSource.IsTerraformElement(object X);
XRequired
- Type: object
IsTerraformDataSource
using HashiCorp.Cdktf;
TerraformDataSource.IsTerraformDataSource(object X);
XRequired
- 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. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
public string FriendlyUniqueId { get; }
- Type: string
TerraformMetaArgumentsRequired
public System.Collections.Generic.IDictionary< string, object > TerraformMetaArguments { get; }
- Type: System.Collections.Generic.IDictionary< string, object >
TerraformResourceTypeRequired
public string TerraformResourceType { get; }
- Type: string
TerraformGeneratorMetadataOptional
public TerraformProviderGeneratorMetadata TerraformGeneratorMetadata { get; }
CountOptional
public object Count { get; }
- Type: object
DependsOnOptional
public string[] DependsOn { get; }
- Type: string[]
ForEachOptional
public ITerraformIterator ForEach { get; }
- Type: ITerraformIterator
LifecycleOptional
public TerraformResourceLifecycle Lifecycle { get; }
ProviderOptional
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. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
ElementTypeOptional
- 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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
TerraformElement.IsTerraformElement(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
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. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
OptionsRequired
- 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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
AddProvider
private void AddProvider(object Provider)
ProviderRequired
- Type: object
GetString
private string GetString(string Output)
OutputRequired
- Type: string
InterpolationForOutput
private IResolvable InterpolationForOutput(string ModuleOutput)
ModuleOutputRequired
- Type: string
Get
private object Get(string Output)
OutputRequired
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
OutputRequired
- Type: string
GetList
private string[] GetList(string Output)
OutputRequired
- Type: string
GetNumber
private double GetNumber(string Output)
OutputRequired
- Type: string
Set
private void Set(string Variable, object Value)
VariableRequired
- Type: string
ValueRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
TerraformHclModule.IsTerraformElement(object X);
XRequired
- 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. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
public string FriendlyUniqueId { get; }
- Type: string
SourceRequired
public string Source { get; }
- Type: string
ProvidersOptional
public object[] Providers { get; }
- Type: object[]
SkipAssetCreationFromLocalModulesOptional
public bool SkipAssetCreationFromLocalModules { get; }
- Type: bool
VersionOptional
public string Version { get; }
- Type: string
DependsOnOptional
public string[] DependsOn { get; }
- Type: string[]
ForEachOptional
public ITerraformIterator ForEach { get; }
- Type: ITerraformIterator
VariablesOptional
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. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
ExpressionRequired
- 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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
TerraformLocal.IsTerraformElement(object X);
XRequired
- 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. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
public string FriendlyUniqueId { get; }
- Type: string
AsAnyMapRequired
public System.Collections.Generic.IDictionary< string, object > AsAnyMap { get; }
- Type: System.Collections.Generic.IDictionary< string, object >
AsBooleanRequired
public IResolvable AsBoolean { get; }
- Type: IResolvable
AsBooleanMapRequired
public System.Collections.Generic.IDictionary< string, bool > AsBooleanMap { get; }
- Type: System.Collections.Generic.IDictionary< string, bool >
AsListRequired
public string[] AsList { get; }
- Type: string[]
AsNumberRequired
public double AsNumber { get; }
- Type: double
AsNumberMapRequired
public System.Collections.Generic.IDictionary< string, double > AsNumberMap { get; }
- Type: System.Collections.Generic.IDictionary< string, double >
AsStringRequired
public string AsString { get; }
- Type: string
AsStringMapRequired
public System.Collections.Generic.IDictionary< string, string > AsStringMap { get; }
- Type: System.Collections.Generic.IDictionary< string, string >
ExpressionRequired
public object Expression { get; }
- Type: object
TerraformModule
- Implements: ITerraformDependable
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. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
OptionsRequired
- 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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
AddProvider
private void AddProvider(object Provider)
ProviderRequired
- Type: object
GetString
private string GetString(string Output)
OutputRequired
- Type: string
InterpolationForOutput
private IResolvable InterpolationForOutput(string ModuleOutput)
ModuleOutputRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
TerraformModule.IsTerraformElement(object X);
XRequired
- 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. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
public string FriendlyUniqueId { get; }
- Type: string
SourceRequired
public string Source { get; }
- Type: string
ProvidersOptional
public object[] Providers { get; }
- Type: object[]
SkipAssetCreationFromLocalModulesOptional
public bool SkipAssetCreationFromLocalModules { get; }
- Type: bool
VersionOptional
public string Version { get; }
- Type: string
DependsOnOptional
public string[] DependsOn { get; }
- Type: string[]
ForEachOptional
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. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
ConfigRequired
- 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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
TerraformOutput.IsTerraformElement(object X);
XRequired
- Type: object
IsTerraformOutput
using HashiCorp.Cdktf;
TerraformOutput.IsTerraformOutput(object X);
XRequired
- 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. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
public string FriendlyUniqueId { get; }
- Type: string
StaticIdRequired
public bool StaticId { get; }
- Type: bool
ValueRequired
public object Value { get; }
- Type: object
DependsOnOptional
public ITerraformDependable[] DependsOn { get; }
- Type: ITerraformDependable[]
DescriptionOptional
public string Description { get; }
- Type: string
PreconditionOptional
public Precondition Precondition { get; }
- Type: Precondition
SensitiveOptional
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. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
ConfigRequired
- 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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
TerraformProvider.IsTerraformElement(object X);
XRequired
- Type: object
IsTerraformProvider
using HashiCorp.Cdktf;
TerraformProvider.IsTerraformProvider(object X);
XRequired
- 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. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
public string FriendlyUniqueId { get; }
- Type: string
MetaAttributesRequired
public System.Collections.Generic.IDictionary< string, object > MetaAttributes { get; }
- Type: System.Collections.Generic.IDictionary< string, object >
TerraformResourceTypeRequired
public string TerraformResourceType { get; }
- Type: string
TerraformGeneratorMetadataOptional
public TerraformProviderGeneratorMetadata TerraformGeneratorMetadata { get; }
TerraformProviderSourceOptional
public string TerraformProviderSource { get; }
- Type: string
AliasOptional
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. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
BackendRequired
- Type: string
ConfigRequired
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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
Adds this resource to the terraform JSON output.
Get
private IResolvable Get(string Output)
OutputRequired
- Type: string
GetBoolean
private IResolvable GetBoolean(string Output)
OutputRequired
- Type: string
GetList
private string[] GetList(string Output)
OutputRequired
- Type: string
GetNumber
private double GetNumber(string Output)
OutputRequired
- Type: string
GetString
private string GetString(string Output)
OutputRequired
- 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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
TerraformRemoteState.IsTerraformElement(object X);
XRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | string | No description. |
FriendlyUniqueId | string | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
public string FriendlyUniqueId { get; }
- Type: string
Constants
| Name | Type | Description |
|---|---|---|
TfResourceType | string | No description. |
TfResourceTypeRequired
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. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
ConfigRequired
- 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. |
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)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
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)
TerraformAttributeRequired
- Type: string
GetBooleanAttribute
private IResolvable GetBooleanAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetBooleanMapAttribute
private System.Collections.Generic.IDictionary< string, bool > GetBooleanMapAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetListAttribute
private string[] GetListAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetNumberAttribute
private double GetNumberAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetNumberListAttribute
private double[] GetNumberListAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetNumberMapAttribute
private System.Collections.Generic.IDictionary< string, double > GetNumberMapAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetStringAttribute
private string GetStringAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetStringMapAttribute
private System.Collections.Generic.IDictionary< string, string > GetStringMapAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
InterpolationForAttribute
private IResolvable InterpolationForAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
TerraformResource.IsTerraformElement(object X);
XRequired
- Type: object
IsTerraformResource
using HashiCorp.Cdktf;
TerraformResource.IsTerraformResource(object X);
XRequired
- 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. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
public string FriendlyUniqueId { get; }
- Type: string
TerraformMetaArgumentsRequired
public System.Collections.Generic.IDictionary< string, object > TerraformMetaArguments { get; }
- Type: System.Collections.Generic.IDictionary< string, object >
TerraformResourceTypeRequired
public string TerraformResourceType { get; }
- Type: string
TerraformGeneratorMetadataOptional
public TerraformProviderGeneratorMetadata TerraformGeneratorMetadata { get; }
ConnectionOptional
public object Connection { get; }
- Type: object
CountOptional
public object Count { get; }
- Type: object
DependsOnOptional
public string[] DependsOn { get; }
- Type: string[]
ForEachOptional
public ITerraformIterator ForEach { get; }
- Type: ITerraformIterator
LifecycleOptional
public TerraformResourceLifecycle Lifecycle { get; }
ProviderOptional
public TerraformProvider Provider { get; }
- Type: TerraformProvider
ProvisionersOptional
public object[] Provisioners { get; }
- Type: object[]
TerraformStack
Initializers
using HashiCorp.Cdktf;
new TerraformStack(Construct Scope, string Id);
ScopeRequired
- Type: Constructs.Construct
IdRequired
- 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. |
PrepareStack | No description. |
RegisterIncomingCrossStackReference | No description. |
RegisterOutgoingCrossStackReference | No description. |
RunAllValidations | Run all validations on the stack. |
ToTerraform | No description. |
ToString
private string ToString()
Returns a string representation of this construct.
AddDependency
private void AddDependency(TerraformStack Dependency)
DependencyRequired
- Type: TerraformStack
AddOverride
private void AddOverride(string Path, object Value)
PathRequired
- Type: string
ValueRequired
- Type: object
AllProviders
private TerraformProvider[] AllProviders()
DependsOn
private bool DependsOn(TerraformStack Stack)
StackRequired
- Type: TerraformStack
EnsureBackendExists
private TerraformBackend EnsureBackendExists()
GetLogicalId
private string GetLogicalId(object TfElement)
TfElementRequired
- Type: object
PrepareStack
private void PrepareStack()
RegisterIncomingCrossStackReference
private TerraformRemoteState RegisterIncomingCrossStackReference(TerraformStack FromStack)
FromStackRequired
- Type: TerraformStack
RegisterOutgoingCrossStackReference
private TerraformOutput RegisterOutgoingCrossStackReference(string Identifier)
IdentifierRequired
- Type: string
RunAllValidations
private void RunAllValidations()
Run all validations on the stack.
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.
XRequired
- Type: object
Any object.
IsStack
using HashiCorp.Cdktf;
TerraformStack.IsStack(object X);
XRequired
- Type: object
Of
using HashiCorp.Cdktf;
TerraformStack.Of(IConstruct Construct);
ConstructRequired
- Type: Constructs.IConstruct
Properties
| Name | Type | Description |
|---|---|---|
Node | Constructs.Node | The tree node. |
Dependencies | TerraformStack[] | No description. |
Synthesizer | IStackSynthesizer | No description. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
DependenciesRequired
public TerraformStack[] Dependencies { get; }
- Type: TerraformStack[]
SynthesizerRequired
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. |
ScopeRequired
- Type: Constructs.Construct
IdRequired
- Type: string
ConfigRequired
- 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. |
ToMetadata | No description. |
ToTerraform | No description. |
AddValidation | No description. |
SynthesizeAttributes | No description. |
ToString
private string ToString()
Returns a string representation of this construct.
AddOverride
private void AddOverride(string Path, object Value)
PathRequired
- Type: string
ValueRequired
- Type: object
OverrideLogicalId
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
NewLogicalIdRequired
- 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.
ToMetadata
private object ToMetadata()
ToTerraform
private object ToTerraform()
AddValidation
private void AddValidation(TerraformVariableValidationConfig Validation)
ValidationRequired
SynthesizeAttributes
private System.Collections.Generic.IDictionary< string, object > SynthesizeAttributes()
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.
XRequired
- Type: object
Any object.
IsTerraformElement
using HashiCorp.Cdktf;
TerraformVariable.IsTerraformElement(object X);
XRequired
- 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. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
CdktfStackRequired
public TerraformStack CdktfStack { get; }
- Type: TerraformStack
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
public string FriendlyUniqueId { get; }
- Type: string
BooleanValueRequired
public IResolvable BooleanValue { get; }
- Type: IResolvable
ListValueRequired
public string[] ListValue { get; }
- Type: string[]
NumberValueRequired
public double NumberValue { get; }
- Type: double
StringValueRequired
public string StringValue { get; }
- Type: string
ValueRequired
public object Value { get; }
- Type: object
DefaultOptional
public object Default { get; }
- Type: object
DescriptionOptional
public string Description { get; }
- Type: string
NullableOptional
public bool Nullable { get; }
- Type: bool
SensitiveOptional
public bool Sensitive { get; }
- Type: bool
TypeOptional
public string Type { get; }
- Type: string
ValidationOptional
public TerraformVariableValidationConfig[] Validation { get; }
Structs
AppConfig
Initializer
using HashiCorp.Cdktf;
new AppConfig {
System.Collections.Generic.IDictionary< string, object > Context = 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. |
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. |
ContextOptional
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).
OutdirOptional
public string Outdir { get; set; }
- Type: string
- Default: CDKTF_OUTDIR if defined, otherwise "cdktf.out"
The directory to output Terraform resources.
SkipBackendValidationOptional
public bool SkipBackendValidation { get; set; }
- Type: bool
- Default: false
Whether to skip backend validation during synthesis of the app.
SkipValidationOptional
public bool SkipValidation { get; set; }
- Type: bool
- Default: false
Whether to skip all validations during synthesis of the app.
StackTracesOptional
public bool StackTraces { get; set; }
- Type: bool
ArtifactoryBackendConfig
Stores the state as an artifact in a given repository in Artifactory.
Generic HTTP repositories are supported, and state from different configurations may be kept at different subpaths within the repository.
Note: The URL must include the path to the Artifactory installation. It will likely end in /artifactory.
This backend does not support state locking.
Read more about this backend in the Terraform docs: https://developer.hashicorp.com/terraform/language/v1.2.x/settings/backends/artifactory
Initializer
using HashiCorp.Cdktf;
new ArtifactoryBackendConfig {
string Password,
string Repo,
string Subpath,
string Url,
string Username
};
Properties
| Name | Type | Description |
|---|---|---|
Password | string | (Required) - The password. |
Repo | string | (Required) - The repository name. |
Subpath | string | (Required) - Path within the repository. |
Url | string | (Required) - The URL. |
Username | string | (Required) - The username. |
PasswordRequired
Password- Deprecated: CDK for Terraform no longer supports the artifactory backend. Terraform deprecated artifactory in v1.2.3 and removed it in v1.3.
public string Password { get; set; }
- Type: string
(Required) - The password.
RepoRequired
Repo- Deprecated: CDK for Terraform no longer supports the artifactory backend. Terraform deprecated artifactory in v1.2.3 and removed it in v1.3.
public string Repo { get; set; }
- Type: string
(Required) - The repository name.
SubpathRequired
Subpath- Deprecated: CDK for Terraform no longer supports the artifactory backend. Terraform deprecated artifactory in v1.2.3 and removed it in v1.3.
public string Subpath { get; set; }
- Type: string
(Required) - Path within the repository.
UrlRequired
Url- Deprecated: CDK for Terraform no longer supports the artifactory backend. Terraform deprecated artifactory in v1.2.3 and removed it in v1.3.
public string Url { get; set; }
- Type: string
(Required) - The URL.
Note that this is the base url to artifactory not the full repo and subpath.
UsernameRequired
Username- Deprecated: CDK for Terraform no longer supports the artifactory backend. Terraform deprecated artifactory in v1.2.3 and removed it in v1.3.
public string Username { get; set; }
- Type: string
(Required) - The username.
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 MsiEndpoint = null,
string OidcRequestToken = null,
string OidcRequestUrl = 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. |
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. |
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. |
ContainerNameRequired
public string ContainerName { get; set; }
- Type: string
(Required) The Name of the Storage Container within the Storage Account.
KeyRequired
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.
StorageAccountNameRequired
public string StorageAccountName { get; set; }
- Type: string
(Required) The Name of the Storage Account.
AccessKeyOptional
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.
ClientCertificatePasswordOptional
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.
ClientCertificatePathOptional
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.
ClientIdOptional
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.
ClientSecretOptional
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.
EndpointOptional
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.
EnvironmentOptional
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.
MsiEndpointOptional
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.
OidcRequestTokenOptional
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.
OidcRequestUrlOptional
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.
ResourceGroupNameOptional
public string ResourceGroupName { get; set; }
- Type: string
(Required) The Name of the Resource Group in which the Storage Account exists.
SasTokenOptional
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.
SnapshotOptional
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.
SubscriptionIdOptional
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.
TenantIdOptional
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.
UseAzureadAuthOptional
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.
UseMicrosoftGraphOptional
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.
UseMsiOptional
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.
UseOidcOptional
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. |
OrganizationRequired
public string Organization { get; set; }
- Type: string
The name of the organization containing the workspace(s) the current configuration should use.
WorkspacesRequired
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:
HostnameOptional
public string Hostname { get; set; }
- Type: string
- Default: app.terraform.io
The hostname of a Terraform Enterprise installation, if using Terraform Enterprise.
TokenOptional
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. |
AccessTokenRequired
public string AccessToken { get; set; }
- Type: string
(Required) Access token.
PathRequired
public string Path { get; set; }
- Type: string
(Required) Path in the Consul KV store.
AddressOptional
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.
CaFileOptional
public string CaFile { get; set; }
- Type: string
(Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.
CertFileOptional
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.
DatacenterOptional
public string Datacenter { get; set; }
- Type: string
(Optional) The datacenter to use.
Defaults to that of the agent.
GzipOptional
public bool Gzip { get; set; }
- Type: bool
(Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed.
HttpAuthOptional
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.
KeyFileOptional
public string KeyFile { get; set; }
- Type: string
(Optional) A path to a PEM-encoded private key, required if cert_file is specified.
LockOptional
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.
SchemeOptional
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.
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,
string Acl = null,
bool Encrypt = null,
string Key = null,
string Prefix = null,
string Region = null,
string SecretId = null,
string SecretKey = null
};
Properties
| Name | Type | Description |
|---|---|---|
Bucket | string | (Required) The name of the COS bucket. |
Acl | string | (Optional) Object ACL to be applied to the state file, allows private and public-read. |
Encrypt | bool | (Optional) Whether to enable server side encryption of the state file. |
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. |
BucketRequired
public string Bucket { get; set; }
- Type: string
(Required) The name of the COS bucket.
You shall manually create it first.
AclOptional
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.
EncryptOptional
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.
KeyOptional
public string Key { get; set; }
- Type: string
(Optional) The path for saving the state file in bucket.
Defaults to terraform.tfstate.
PrefixOptional
public string Prefix { get; set; }
- Type: string
(Optional) The directory for saving the state file in bucket.
Default to "env:".
RegionOptional
public string Region { get; set; }
- Type: string
(Optional) The region of the COS bucket.
It supports environment variables TENCENTCLOUD_REGION.
SecretIdOptional
public string SecretId { get; set; }
- Type: string
(Optional) Secret id of Tencent Cloud.
It supports environment variables TENCENTCLOUD_SECRET_ID.
SecretKeyOptional
public string SecretKey { get; set; }
- Type: string
(Optional) Secret key of Tencent Cloud.
It supports environment variables TENCENTCLOUD_SECRET_KEY.
DataTerraformRemoteStateArtifactoryConfig
Initializer
using HashiCorp.Cdktf;
new DataTerraformRemoteStateArtifactoryConfig {
System.Collections.Generic.IDictionary< string, object > Defaults = null,
string Workspace = null,
string Password,
string Repo,
string Subpath,
string Url,
string Username
};
Properties
| Name | Type | Description |
|---|---|---|
Defaults | System.Collections.Generic.IDictionary< string, object > | No description. |
Workspace | string | No description. |
Password | string | (Required) - The password. |
Repo | string | (Required) - The repository name. |
Subpath | string | (Required) - Path within the repository. |
Url | string | (Required) - The URL. |
Username | string | (Required) - The username. |
DefaultsOptional
Defaults- Deprecated: CDK for Terraform no longer supports the artifactory backend. Terraform deprecated artifactory 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 >
WorkspaceOptional
Workspace- Deprecated: CDK for Terraform no longer supports the artifactory backend. Terraform deprecated artifactory in v1.2.3 and removed it in v1.3.
public string Workspace { get; set; }
- Type: string
PasswordRequired
Password- Deprecated: CDK for Terraform no longer supports the artifactory backend. Terraform deprecated artifactory in v1.2.3 and removed it in v1.3.
public string Password { get; set; }
- Type: string
(Required) - The password.
RepoRequired
Repo- Deprecated: CDK for Terraform no longer supports the artifactory backend. Terraform deprecated artifactory in v1.2.3 and removed it in v1.3.
public string Repo { get; set; }
- Type: string
(Required) - The repository name.
SubpathRequired
Subpath- Deprecated: CDK for Terraform no longer supports the artifactory backend. Terraform deprecated artifactory in v1.2.3 and removed it in v1.3.
public string Subpath { get; set; }
- Type: string
(Required) - Path within the repository.
UrlRequired
Url- Deprecated: CDK for Terraform no longer supports the artifactory backend. Terraform deprecated artifactory in v1.2.3 and removed it in v1.3.
public string Url { get; set; }
- Type: string
(Required) - The URL.
Note that this is the base url to artifactory not the full repo and subpath.
UsernameRequired
Username- Deprecated: CDK for Terraform no longer supports the artifactory backend. Terraform deprecated artifactory in v1.2.3 and removed it in v1.3.
public string Username { get; set; }
- Type: string
(Required) - The username.
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 MsiEndpoint = null,
string OidcRequestToken = null,
string OidcRequestUrl = 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. |
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. |
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. |
DefaultsOptional
public System.Collections.Generic.IDictionary< string, object > Defaults { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
WorkspaceOptional
public string Workspace { get; set; }
- Type: string
ContainerNameRequired
public string ContainerName { get; set; }
- Type: string
(Required) The Name of the Storage Container within the Storage Account.
KeyRequired
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.
StorageAccountNameRequired
public string StorageAccountName { get; set; }
- Type: string
(Required) The Name of the Storage Account.
AccessKeyOptional
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.
ClientCertificatePasswordOptional
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.
ClientCertificatePathOptional
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.
ClientIdOptional
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.
ClientSecretOptional
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.
EndpointOptional
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.
EnvironmentOptional
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.
MsiEndpointOptional
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.
OidcRequestTokenOptional
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.
OidcRequestUrlOptional
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.
ResourceGroupNameOptional
public string ResourceGroupName { get; set; }
- Type: string
(Required) The Name of the Resource Group in which the Storage Account exists.
SasTokenOptional
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.
SnapshotOptional
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.
SubscriptionIdOptional
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.
TenantIdOptional
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.
UseAzureadAuthOptional
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.
UseMicrosoftGraphOptional
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.
UseMsiOptional
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.
UseOidcOptional
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. |
DefaultsOptional
public System.Collections.Generic.IDictionary< string, object > Defaults { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
WorkspaceOptional
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. |
DefaultsOptional
public System.Collections.Generic.IDictionary< string, object > Defaults { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
WorkspaceOptional
public string Workspace { get; set; }
- Type: string
AccessTokenRequired
public string AccessToken { get; set; }
- Type: string
(Required) Access token.
PathRequired
public string Path { get; set; }
- Type: string
(Required) Path in the Consul KV store.
AddressOptional
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.
CaFileOptional
public string CaFile { get; set; }
- Type: string
(Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.
CertFileOptional
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.
DatacenterOptional
public string Datacenter { get; set; }
- Type: string
(Optional) The datacenter to use.
Defaults to that of the agent.
GzipOptional
public bool Gzip { get; set; }
- Type: bool
(Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed.
HttpAuthOptional
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.
KeyFileOptional
public string KeyFile { get; set; }
- Type: string
(Optional) A path to a PEM-encoded private key, required if cert_file is specified.
LockOptional
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.
SchemeOptional
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,
string Acl = null,
bool Encrypt = null,
string Key = null,
string Prefix = null,
string Region = null,
string SecretId = null,
string SecretKey = 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. |
Acl | string | (Optional) Object ACL to be applied to the state file, allows private and public-read. |
Encrypt | bool | (Optional) Whether to enable server side encryption of the state file. |
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. |
DefaultsOptional
public System.Collections.Generic.IDictionary< string, object > Defaults { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
WorkspaceOptional
public string Workspace { get; set; }
- Type: string
BucketRequired
public string Bucket { get; set; }
- Type: string
(Required) The name of the COS bucket.
You shall manually create it first.
AclOptional
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.
EncryptOptional
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.
KeyOptional
public string Key { get; set; }
- Type: string
(Optional) The path for saving the state file in bucket.
Defaults to terraform.tfstate.
PrefixOptional
public string Prefix { get; set; }
- Type: string
(Optional) The directory for saving the state file in bucket.
Default to "env:".
RegionOptional
public string Region { get; set; }
- Type: string
(Optional) The region of the COS bucket.
It supports environment variables TENCENTCLOUD_REGION.
SecretIdOptional
public string SecretId { get; set; }
- Type: string
(Optional) Secret id of Tencent Cloud.
It supports environment variables TENCENTCLOUD_SECRET_ID.
SecretKeyOptional
public string SecretKey { get; set; }
- Type: string
(Optional) Secret key of Tencent Cloud.
It supports environment variables TENCENTCLOUD_SECRET_KEY.
DataTerraformRemoteStateEtcdConfig
Initializer
using HashiCorp.Cdktf;
new DataTerraformRemoteStateEtcdConfig {
System.Collections.Generic.IDictionary< string, object > Defaults = null,
string Workspace = null,
string Endpoints,
string Path,
string Password = null,
string Username = null
};
Properties
| Name | Type | Description |
|---|---|---|
Defaults | System.Collections.Generic.IDictionary< string, object > | No description. |
Workspace | string | No description. |
Endpoints | string | (Required) A space-separated list of the etcd endpoints. |
Path | string | (Required) The path where to store the state. |
Password | string | (Optional) The password. |
Username | string | (Optional) The username. |
DefaultsOptional
Defaults- Deprecated: CDK for Terraform no longer supports the etcd backend. Terraform deprecated etcd 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 >
WorkspaceOptional
Workspace- Deprecated: CDK for Terraform no longer supports the etcd backend. Terraform deprecated etcd in v1.2.3 and removed it in v1.3.
public string Workspace { get; set; }
- Type: string
EndpointsRequired
Endpoints- Deprecated: CDK for Terraform no longer supports the etcd backend. Terraform deprecated etcd in v1.2.3 and removed it in v1.3.
public string Endpoints { get; set; }
- Type: string
(Required) A space-separated list of the etcd endpoints.
PathRequired
Path- Deprecated: CDK for Terraform no longer supports the etcd backend. Terraform deprecated etcd in v1.2.3 and removed it in v1.3.
public string Path { get; set; }
- Type: string
(Required) The path where to store the state.
PasswordOptional
Password- Deprecated: CDK for Terraform no longer supports the etcd backend. Terraform deprecated etcd in v1.2.3 and removed it in v1.3.
public string Password { get; set; }
- Type: string
(Optional) The password.
UsernameOptional
Username- Deprecated: CDK for Terraform no longer supports the etcd backend. Terraform deprecated etcd in v1.2.3 and removed it in v1.3.
public string Username { get; set; }
- Type: string
(Optional) The username.
DataTerraformRemoteStateEtcdV3Config
Initializer
using HashiCorp.Cdktf;
new DataTerraformRemoteStateEtcdV3Config {
System.Collections.Generic.IDictionary< string, object > Defaults = null,
string Workspace = null,
string[] Endpoints,
string CacertPath = null,
string CertPath = null,
string KeyPath = null,
bool Lock = null,
string Password = null,
string Prefix = null,
string Username = null
};
Properties
| Name | Type | Description |
|---|---|---|
Defaults | System.Collections.Generic.IDictionary< string, object > | No description. |
Workspace | string | No description. |
Endpoints | string[] | (Required) The list of 'etcd' endpoints which to connect to. |
CacertPath | string | (Optional) The path to a PEM-encoded CA bundle with which to verify certificates of TLS-enabled etcd servers. |
CertPath | string | (Optional) The path to a PEM-encoded certificate to provide to etcd for secure client identification. |
KeyPath | string | (Optional) The path to a PEM-encoded key to provide to etcd for secure client identification. |
Lock | bool | (Optional) Whether to lock state access. |
Password | string | (Optional) Password used to connect to the etcd cluster. |
Prefix | string | (Optional) An optional prefix to be added to keys when to storing state in etcd. |
Username | string | (Optional) Username used to connect to the etcd cluster. |
DefaultsOptional
Defaults- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 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 >
WorkspaceOptional
Workspace- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public string Workspace { get; set; }
- Type: string
EndpointsRequired
Endpoints- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public string[] Endpoints { get; set; }
- Type: string[]
(Required) The list of 'etcd' endpoints which to connect to.
CacertPathOptional
CacertPath- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public string CacertPath { get; set; }
- Type: string
(Optional) The path to a PEM-encoded CA bundle with which to verify certificates of TLS-enabled etcd servers.
CertPathOptional
CertPath- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public string CertPath { get; set; }
- Type: string
(Optional) The path to a PEM-encoded certificate to provide to etcd for secure client identification.
KeyPathOptional
KeyPath- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public string KeyPath { get; set; }
- Type: string
(Optional) The path to a PEM-encoded key to provide to etcd for secure client identification.
LockOptional
Lock- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public bool Lock { get; set; }
- Type: bool
(Optional) Whether to lock state access.
Defaults to true.
PasswordOptional
Password- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public string Password { get; set; }
- Type: string
(Optional) Password used to connect to the etcd cluster.
PrefixOptional
Prefix- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public string Prefix { get; set; }
- Type: string
(Optional) An optional prefix to be added to keys when to storing state in etcd.
Defaults to "".
UsernameOptional
Username- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public string Username { get; set; }
- Type: string
(Optional) Username used to connect to the etcd cluster.
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 Prefix = 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. |
Prefix | string | (Optional) GCS prefix inside the bucket. |
DefaultsOptional
public System.Collections.Generic.IDictionary< string, object > Defaults { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
WorkspaceOptional
public string Workspace { get; set; }
- Type: string
BucketRequired
public string Bucket { get; set; }
- Type: string
(Required) The name of the GCS bucket.
This name must be globally unique.
AccessTokenOptional
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.
CredentialsOptional
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.
EncryptionKeyOptional
public string EncryptionKey { get; set; }
- Type: string
(Optional) A 32 byte base64 encoded 'customer supplied encryption key' used to encrypt all state.
ImpersonateServiceAccountOptional
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.
ImpersonateServiceAccountDelegatesOptional
public string[] ImpersonateServiceAccountDelegates { get; set; }
- Type: string[]
(Optional) The delegation chain for an impersonating a service account.
PrefixOptional
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.
DataTerraformRemoteStateHttpConfig
Initializer
using HashiCorp.Cdktf;
new DataTerraformRemoteStateHttpConfig {
System.Collections.Generic.IDictionary< string, object > Defaults = null,
string Workspace = null,
string Address,
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. |
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. |
DefaultsOptional
public System.Collections.Generic.IDictionary< string, object > Defaults { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
WorkspaceOptional
public string Workspace { get; set; }
- Type: string
AddressRequired
public string Address { get; set; }
- Type: string
(Required) The address of the REST endpoint.
LockAddressOptional
public string LockAddress { get; set; }
- Type: string
(Optional) The address of the lock REST endpoint.
Defaults to disabled.
LockMethodOptional
public string LockMethod { get; set; }
- Type: string
(Optional) The HTTP method to use when locking.
Defaults to LOCK.
PasswordOptional
public string Password { get; set; }
- Type: string
(Optional) The password for HTTP basic authentication.
RetryMaxOptional
public double RetryMax { get; set; }
- Type: double
(Optional) The number of HTTP request retries.
Defaults to 2.
RetryWaitMaxOptional
public double RetryWaitMax { get; set; }
- Type: double
(Optional) The maximum time in seconds to wait between HTTP request attempts.
Defaults to 30.
RetryWaitMinOptional
public double RetryWaitMin { get; set; }
- Type: double
(Optional) The minimum time in seconds to wait between HTTP request attempts.
Defaults to 1.
SkipCertVerificationOptional
public bool SkipCertVerification { get; set; }
- Type: bool
(Optional) Whether to skip TLS verification.
Defaults to false.
UnlockAddressOptional
public string UnlockAddress { get; set; }
- Type: string
(Optional) The address of the unlock REST endpoint.
Defaults to disabled.
UnlockMethodOptional
public string UnlockMethod { get; set; }
- Type: string
(Optional) The HTTP method to use when unlocking.
Defaults to UNLOCK.
UpdateMethodOptional
public string UpdateMethod { get; set; }
- Type: string
(Optional) HTTP method to use when updating state.
Defaults to POST.
UsernameOptional
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. |
DefaultsOptional
public System.Collections.Generic.IDictionary< string, object > Defaults { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
WorkspaceOptional
public string Workspace { get; set; }
- Type: string
PathOptional
public string Path { get; set; }
- Type: string
- Default: defaults to terraform.${stackId}.tfstate
Path where the state file is stored.
WorkspaceDirOptional
public string WorkspaceDir { get; set; }
- Type: string
(Optional) The path to non-default workspaces.
DataTerraformRemoteStateMantaConfig
Initializer
using HashiCorp.Cdktf;
new DataTerraformRemoteStateMantaConfig {
System.Collections.Generic.IDictionary< string, object > Defaults = null,
string Workspace = null,
string Account,
string KeyId,
string Path,
bool InsecureSkipTlsVerify = null,
string KeyMaterial = null,
string ObjectName = null,
string Url = null,
string User = null
};
Properties
| Name | Type | Description |
|---|---|---|
Defaults | System.Collections.Generic.IDictionary< string, object > | No description. |
Workspace | string | No description. |
Account | string | No description. |
KeyId | string | No description. |
Path | string | No description. |
InsecureSkipTlsVerify | bool | No description. |
KeyMaterial | string | No description. |
ObjectName | string | No description. |
Url | string | No description. |
User | string | No description. |
DefaultsOptional
Defaults- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta 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 >
WorkspaceOptional
Workspace- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public string Workspace { get; set; }
- Type: string
AccountRequired
Account- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public string Account { get; set; }
- Type: string
KeyIdRequired
KeyId- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public string KeyId { get; set; }
- Type: string
PathRequired
Path- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public string Path { get; set; }
- Type: string
InsecureSkipTlsVerifyOptional
InsecureSkipTlsVerify- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public bool InsecureSkipTlsVerify { get; set; }
- Type: bool
KeyMaterialOptional
KeyMaterial- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public string KeyMaterial { get; set; }
- Type: string
ObjectNameOptional
ObjectName- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public string ObjectName { get; set; }
- Type: string
UrlOptional
Url- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public string Url { get; set; }
- Type: string
UserOptional
User- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public string User { get; set; }
- Type: string
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 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 TablestoreEndpoint = null,
string TablestoreTable = null
};
Properties
| Name | Type | Description |
|---|---|---|
Defaults | System.Collections.Generic.IDictionary< string, object > | No description. |
Workspace | string | No description. |
Bucket | string | No description. |
AccessKey | string | No description. |
Acl | string | No description. |
AssumeRole | OssAssumeRole | No description. |
EcsRoleName | string | No description. |
Encrypt | bool | No description. |
Endpoint | string | No description. |
Key | string | No description. |
Prefix | string | No description. |
Profile | string | No description. |
Region | string | No description. |
SecretKey | string | No description. |
SecurityToken | string | No description. |
SharedCredentialsFile | string | No description. |
TablestoreEndpoint | string | No description. |
TablestoreTable | string | No description. |
DefaultsOptional
public System.Collections.Generic.IDictionary< string, object > Defaults { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
WorkspaceOptional
public string Workspace { get; set; }
- Type: string
BucketRequired
public string Bucket { get; set; }
- Type: string
AccessKeyOptional
public string AccessKey { get; set; }
- Type: string
AclOptional
public string Acl { get; set; }
- Type: string
AssumeRoleOptional
public OssAssumeRole AssumeRole { get; set; }
- Type: OssAssumeRole
EcsRoleNameOptional
public string EcsRoleName { get; set; }
- Type: string
EncryptOptional
public bool Encrypt { get; set; }
- Type: bool
EndpointOptional
public string Endpoint { get; set; }
- Type: string
KeyOptional
public string Key { get; set; }
- Type: string
PrefixOptional
public string Prefix { get; set; }
- Type: string
ProfileOptional
public string Profile { get; set; }
- Type: string
RegionOptional
public string Region { get; set; }
- Type: string
SecretKeyOptional
public string SecretKey { get; set; }
- Type: string
SecurityTokenOptional
public string SecurityToken { get; set; }
- Type: string
SharedCredentialsFileOptional
public string SharedCredentialsFile { get; set; }
- Type: string
TablestoreEndpointOptional
public string TablestoreEndpoint { get; set; }
- Type: string
TablestoreTableOptional
public string TablestoreTable { get; set; }
- 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 SkipSchemaCreation = null
};
Properties
| Name | Type | Description |
|---|---|---|
Defaults | System.Collections.Generic.IDictionary< string, object > | No description. |
Workspace | string | No description. |
ConnStr | string | No description. |
SchemaName | string | No description. |
SkipSchemaCreation | bool | No description. |
DefaultsOptional
public System.Collections.Generic.IDictionary< string, object > Defaults { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
WorkspaceOptional
public string Workspace { get; set; }
- Type: string
ConnStrRequired
public string ConnStr { get; set; }
- Type: string
SchemaNameOptional
public string SchemaName { get; set; }
- Type: string
SkipSchemaCreationOptional
public bool SkipSchemaCreation { get; set; }
- Type: bool
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. |
DefaultsOptional
public System.Collections.Generic.IDictionary< string, object > Defaults { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
WorkspaceOptional
public string Workspace { get; set; }
- Type: string
OrganizationRequired
public string Organization { get; set; }
- Type: string
WorkspacesRequired
public IRemoteWorkspace Workspaces { get; set; }
- Type: IRemoteWorkspace
HostnameOptional
public string Hostname { get; set; }
- Type: string
TokenOptional
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 AssumeRolePolicy = null,
string[] AssumeRolePolicyArns = null,
System.Collections.Generic.IDictionary< string, string > AssumeRoleTags = null,
string[] AssumeRoleTransitiveTagKeys = null,
string DynamodbEndpoint = null,
string DynamodbTable = null,
bool Encrypt = null,
string Endpoint = null,
string ExternalId = null,
bool ForcePathStyle = null,
string IamEndpoint = null,
string KmsKeyId = null,
double MaxRetries = null,
string Profile = null,
string Region = null,
string RoleArn = null,
string SecretKey = null,
string SessionName = null,
string SharedCredentialsFile = null,
bool SkipCredentialsValidation = null,
bool SkipMetadataApiCheck = null,
bool SkipRegionValidation = null,
string SseCustomerKey = null,
string StsEndpoint = null,
string Token = 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. |
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. |
DynamodbEndpoint | string | (Optional) Custom endpoint for the AWS DynamoDB API. |
DynamodbTable | string | (Optional) Name of DynamoDB Table to use for state locking and consistency. |
Encrypt | bool | (Optional) Enable server side encryption of the state file. |
Endpoint | string | (Optional) Custom endpoint for the AWS S3 API. |
ExternalId | string | (Optional) External identifier to use when assuming the role. |
ForcePathStyle | bool | (Optional) Enable path-style S3 URLs (https://< HOST >/< BUCKET > instead of https://< BUCKET >.< HOST >). |
IamEndpoint | string | (Optional) Custom endpoint for the AWS Identity and Access Management (IAM) API. |
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. |
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). |
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. |
SharedCredentialsFile | string | (Optional) Path to the AWS shared credentials file. |
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. |
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. |
Token | string | (Optional) Multi-Factor Authentication (MFA) token. |
WorkspaceKeyPrefix | string | (Optional) Prefix applied to the state path inside the bucket. |
DefaultsOptional
public System.Collections.Generic.IDictionary< string, object > Defaults { get; set; }
- Type: System.Collections.Generic.IDictionary< string, object >
WorkspaceOptional
public string Workspace { get; set; }
- Type: string
BucketRequired
public string Bucket { get; set; }
- Type: string
Name of the S3 Bucket.
KeyRequired
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
AccessKeyOptional
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).
AclOptional
public string Acl { get; set; }
- Type: string
(Optional) Canned ACL to be applied to the state file.
AssumeRolePolicyOptional
public string AssumeRolePolicy { get; set; }
- Type: string
(Optional) IAM Policy JSON describing further restricting permissions for the IAM Role being assumed.
AssumeRolePolicyArnsOptional
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.
AssumeRoleTagsOptional
public System.Collections.Generic.IDictionary< string, string > AssumeRoleTags { get; set; }
- Type: System.Collections.Generic.IDictionary< string, string >
(Optional) Map of assume role session tags.
AssumeRoleTransitiveTagKeysOptional
public string[] AssumeRoleTransitiveTagKeys { get; set; }
- Type: string[]
(Optional) Set of assume role session tag keys to pass to any subsequent sessions.
DynamodbEndpointOptional
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.
DynamodbTableOptional
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.
EncryptOptional
public bool Encrypt { get; set; }
- Type: bool
(Optional) Enable server side encryption of the state file.
EndpointOptional
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.
ExternalIdOptional
public string ExternalId { get; set; }
- Type: string
(Optional) External identifier to use when assuming the role.
ForcePathStyleOptional
public bool ForcePathStyle { get; set; }
- Type: bool
(Optional) Enable path-style S3 URLs (https://< HOST >/< BUCKET > instead of https://< BUCKET >.< HOST >).
IamEndpointOptional
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.
KmsKeyIdOptional
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.
MaxRetriesOptional
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.
ProfileOptional
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.
RegionOptional
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.
RoleArnOptional
public string RoleArn { get; set; }
- Type: string
(Optional) Amazon Resource Name (ARN) of the IAM Role to assume.
SecretKeyOptional
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)
SessionNameOptional
public string SessionName { get; set; }
- Type: string
(Optional) Session name to use when assuming the role.
SharedCredentialsFileOptional
public string SharedCredentialsFile { get; set; }
- Type: string
(Optional) Path to the AWS shared credentials file.
Defaults to ~/.aws/credentials.
SkipCredentialsValidationOptional
public bool SkipCredentialsValidation { get; set; }
- Type: bool
(Optional) Skip credentials validation via the STS API.
SkipMetadataApiCheckOptional
public bool SkipMetadataApiCheck { get; set; }
- Type: bool
(Optional) Skip usage of EC2 Metadata API.
SkipRegionValidationOptional
public bool SkipRegionValidation { get; set; }
- Type: bool
(Optional) Skip validation of provided region name.
SseCustomerKeyOptional
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.
StsEndpointOptional
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.
TokenOptional
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.
WorkspaceKeyPrefixOptional
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. |
DefaultsOptional
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 >
WorkspaceOptional
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
ContainerRequired
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
ApplicationCredentialIdOptional
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
ApplicationCredentialNameOptional
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
ApplicationCredentialSecretOptional
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
ArchiveContainerOptional
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
AuthUrlOptional
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
CacertFileOptional
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
CertOptional
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
CloudOptional
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
DefaultDomainOptional
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
DomainIdOptional
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
DomainNameOptional
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
ExpireAfterOptional
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
InsecureOptional
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
KeyOptional
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
PasswordOptional
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
ProjectDomainIdOptional
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
ProjectDomainNameOptional
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
RegionNameOptional
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
StateNameOptional
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
TenantIdOptional
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
TenantNameOptional
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
TokenOptional
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
UserDomainIdOptional
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
UserDomainNameOptional
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
UserIdOptional
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
UserNameOptional
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. |
DisplayHintOptional
public string DisplayHint { get; set; }
- Type: string
- Default: no display hint
A hint for the Token's purpose when stringifying it.
EtcdBackendConfig
Stores the state in etcd 2.x at a given path.
This backend does not support state locking.
Read more about this backend in the Terraform docs: https://developer.hashicorp.com/terraform/language/v1.2.x/settings/backends/etcd
Initializer
using HashiCorp.Cdktf;
new EtcdBackendConfig {
string Endpoints,
string Path,
string Password = null,
string Username = null
};
Properties
| Name | Type | Description |
|---|---|---|
Endpoints | string | (Required) A space-separated list of the etcd endpoints. |
Path | string | (Required) The path where to store the state. |
Password | string | (Optional) The password. |
Username | string | (Optional) The username. |
EndpointsRequired
Endpoints- Deprecated: CDK for Terraform no longer supports the etcd backend. Terraform deprecated etcd in v1.2.3 and removed it in v1.3.
public string Endpoints { get; set; }
- Type: string
(Required) A space-separated list of the etcd endpoints.
PathRequired
Path- Deprecated: CDK for Terraform no longer supports the etcd backend. Terraform deprecated etcd in v1.2.3 and removed it in v1.3.
public string Path { get; set; }
- Type: string
(Required) The path where to store the state.
PasswordOptional
Password- Deprecated: CDK for Terraform no longer supports the etcd backend. Terraform deprecated etcd in v1.2.3 and removed it in v1.3.
public string Password { get; set; }
- Type: string
(Optional) The password.
UsernameOptional
Username- Deprecated: CDK for Terraform no longer supports the etcd backend. Terraform deprecated etcd in v1.2.3 and removed it in v1.3.
public string Username { get; set; }
- Type: string
(Optional) The username.
EtcdV3BackendConfig
Stores the state in the etcd KV store with a given prefix.
This backend supports state locking.
Read more about this backend in the Terraform docs: https://developer.hashicorp.com/terraform/language/v1.2.x/settings/backends/etcdv3
Initializer
using HashiCorp.Cdktf;
new EtcdV3BackendConfig {
string[] Endpoints,
string CacertPath = null,
string CertPath = null,
string KeyPath = null,
bool Lock = null,
string Password = null,
string Prefix = null,
string Username = null
};
Properties
| Name | Type | Description |
|---|---|---|
Endpoints | string[] | (Required) The list of 'etcd' endpoints which to connect to. |
CacertPath | string | (Optional) The path to a PEM-encoded CA bundle with which to verify certificates of TLS-enabled etcd servers. |
CertPath | string | (Optional) The path to a PEM-encoded certificate to provide to etcd for secure client identification. |
KeyPath | string | (Optional) The path to a PEM-encoded key to provide to etcd for secure client identification. |
Lock | bool | (Optional) Whether to lock state access. |
Password | string | (Optional) Password used to connect to the etcd cluster. |
Prefix | string | (Optional) An optional prefix to be added to keys when to storing state in etcd. |
Username | string | (Optional) Username used to connect to the etcd cluster. |
EndpointsRequired
Endpoints- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public string[] Endpoints { get; set; }
- Type: string[]
(Required) The list of 'etcd' endpoints which to connect to.
CacertPathOptional
CacertPath- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public string CacertPath { get; set; }
- Type: string
(Optional) The path to a PEM-encoded CA bundle with which to verify certificates of TLS-enabled etcd servers.
CertPathOptional
CertPath- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public string CertPath { get; set; }
- Type: string
(Optional) The path to a PEM-encoded certificate to provide to etcd for secure client identification.
KeyPathOptional
KeyPath- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public string KeyPath { get; set; }
- Type: string
(Optional) The path to a PEM-encoded key to provide to etcd for secure client identification.
LockOptional
Lock- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public bool Lock { get; set; }
- Type: bool
(Optional) Whether to lock state access.
Defaults to true.
PasswordOptional
Password- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public string Password { get; set; }
- Type: string
(Optional) Password used to connect to the etcd cluster.
PrefixOptional
Prefix- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public string Prefix { get; set; }
- Type: string
(Optional) An optional prefix to be added to keys when to storing state in etcd.
Defaults to "".
UsernameOptional
Username- Deprecated: CDK for Terraform no longer supports the etcdv3 backend. Terraform deprecated etcdv3 in v1.2.3 and removed it in v1.3.
public string Username { get; set; }
- Type: string
(Optional) Username used to connect to the etcd cluster.
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. |
DestinationRequired
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.
TypeRequired
public string Type { get; set; }
- Type: string
ConnectionOptional
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.
ContentOptional
public string Content { get; set; }
- Type: string
The destination path to write to on the remote system.
See Destination Paths below for more information.
SourceOptional
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 Prefix = 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. |
Prefix | string | (Optional) GCS prefix inside the bucket. |
BucketRequired
public string Bucket { get; set; }
- Type: string
(Required) The name of the GCS bucket.
This name must be globally unique.
AccessTokenOptional
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.
CredentialsOptional
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.
EncryptionKeyOptional
public string EncryptionKey { get; set; }
- Type: string
(Optional) A 32 byte base64 encoded 'customer supplied encryption key' used to encrypt all state.
ImpersonateServiceAccountOptional
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.
ImpersonateServiceAccountDelegatesOptional
public string[] ImpersonateServiceAccountDelegates { get; set; }
- Type: string[]
(Optional) The delegation chain for an impersonating a service account.
PrefixOptional
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.
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 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. |
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. |
AddressRequired
public string Address { get; set; }
- Type: string
(Required) The address of the REST endpoint.
LockAddressOptional
public string LockAddress { get; set; }
- Type: string
(Optional) The address of the lock REST endpoint.
Defaults to disabled.
LockMethodOptional
public string LockMethod { get; set; }
- Type: string
(Optional) The HTTP method to use when locking.
Defaults to LOCK.
PasswordOptional
public string Password { get; set; }
- Type: string
(Optional) The password for HTTP basic authentication.
RetryMaxOptional
public double RetryMax { get; set; }
- Type: double
(Optional) The number of HTTP request retries.
Defaults to 2.
RetryWaitMaxOptional
public double RetryWaitMax { get; set; }
- Type: double
(Optional) The maximum time in seconds to wait between HTTP request attempts.
Defaults to 30.
RetryWaitMinOptional
public double RetryWaitMin { get; set; }
- Type: double
(Optional) The minimum time in seconds to wait between HTTP request attempts.
Defaults to 1.
SkipCertVerificationOptional
public bool SkipCertVerification { get; set; }
- Type: bool
(Optional) Whether to skip TLS verification.
Defaults to false.
UnlockAddressOptional
public string UnlockAddress { get; set; }
- Type: string
(Optional) The address of the unlock REST endpoint.
Defaults to disabled.
UnlockMethodOptional
public string UnlockMethod { get; set; }
- Type: string
(Optional) The HTTP method to use when unlocking.
Defaults to UNLOCK.
UpdateMethodOptional
public string UpdateMethod { get; set; }
- Type: string
(Optional) HTTP method to use when updating state.
Defaults to POST.
UsernameOptional
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. |
DisplayHintOptional
public string DisplayHint { get; set; }
- Type: string
- Default: No hint
Use the given name as a display hint.
OmitEmptyArrayOptional
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. |
DisplayHintOptional
public string DisplayHint { get; set; }
- Type: string
- Default: No hint
Use the given name as a display hint.
OmitEmptyOptional
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. |
DisplayHintOptional
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. |
PathOptional
public string Path { get; set; }
- Type: string
- Default: defaults to terraform.${stackId}.tfstate
Path where the state file is stored.
WorkspaceDirOptional
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. |
CommandRequired
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.
TypeRequired
public string Type { get; set; }
- Type: string
EnvironmentOptional
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.
InterpreterOptional
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.
WhenOptional
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
WorkingDirOptional
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.
MantaBackendConfig
Initializer
using HashiCorp.Cdktf;
new MantaBackendConfig {
string Account,
string KeyId,
string Path,
bool InsecureSkipTlsVerify = null,
string KeyMaterial = null,
string ObjectName = null,
string Url = null,
string User = null
};
Properties
| Name | Type | Description |
|---|---|---|
Account | string | No description. |
KeyId | string | No description. |
Path | string | No description. |
InsecureSkipTlsVerify | bool | No description. |
KeyMaterial | string | No description. |
ObjectName | string | No description. |
Url | string | No description. |
User | string | No description. |
AccountRequired
Account- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public string Account { get; set; }
- Type: string
KeyIdRequired
KeyId- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public string KeyId { get; set; }
- Type: string
PathRequired
Path- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public string Path { get; set; }
- Type: string
InsecureSkipTlsVerifyOptional
InsecureSkipTlsVerify- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public bool InsecureSkipTlsVerify { get; set; }
- Type: bool
KeyMaterialOptional
KeyMaterial- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public string KeyMaterial { get; set; }
- Type: string
ObjectNameOptional
ObjectName- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public string ObjectName { get; set; }
- Type: string
UrlOptional
Url- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public string Url { get; set; }
- Type: string
UserOptional
User- Deprecated: CDK for Terraform no longer supports the manta backend. Terraform deprecated manta in v1.2.3 and removed it in v1.3.
public string User { get; set; }
- Type: string
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. |
RoleArnRequired
public string RoleArn { get; set; }
- Type: string
PolicyOptional
public string Policy { get; set; }
- Type: string
SessionExpirationOptional
public double SessionExpiration { get; set; }
- Type: double
SessionNameOptional
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 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 TablestoreEndpoint = null,
string TablestoreTable = null
};
Properties
| Name | Type | Description |
|---|---|---|
Bucket | string | No description. |
AccessKey | string | No description. |
Acl | string | No description. |
AssumeRole | OssAssumeRole | No description. |
EcsRoleName | string | No description. |
Encrypt | bool | No description. |
Endpoint | string | No description. |
Key | string | No description. |
Prefix | string | No description. |
Profile | string | No description. |
Region | string | No description. |
SecretKey | string | No description. |
SecurityToken | string | No description. |
SharedCredentialsFile | string | No description. |
TablestoreEndpoint | string | No description. |
TablestoreTable | string | No description. |
BucketRequired
public string Bucket { get; set; }
- Type: string
AccessKeyOptional
public string AccessKey { get; set; }
- Type: string
AclOptional
public string Acl { get; set; }
- Type: string
AssumeRoleOptional
public OssAssumeRole AssumeRole { get; set; }
- Type: OssAssumeRole
EcsRoleNameOptional
public string EcsRoleName { get; set; }
- Type: string
EncryptOptional
public bool Encrypt { get; set; }
- Type: bool
EndpointOptional
public string Endpoint { get; set; }
- Type: string
KeyOptional
public string Key { get; set; }
- Type: string
PrefixOptional
public string Prefix { get; set; }
- Type: string
ProfileOptional
public string Profile { get; set; }
- Type: string
RegionOptional
public string Region { get; set; }
- Type: string
SecretKeyOptional
public string SecretKey { get; set; }
- Type: string
SecurityTokenOptional
public string SecurityToken { get; set; }
- Type: string
SharedCredentialsFileOptional
public string SharedCredentialsFile { get; set; }
- Type: string
TablestoreEndpointOptional
public string TablestoreEndpoint { get; set; }
- Type: string
TablestoreTableOptional
public string TablestoreTable { get; set; }
- Type: string
PgBackendConfig
Initializer
using HashiCorp.Cdktf;
new PgBackendConfig {
string ConnStr,
string SchemaName = null,
bool SkipSchemaCreation = null
};
Properties
| Name | Type | Description |
|---|---|---|
ConnStr | string | No description. |
SchemaName | string | No description. |
SkipSchemaCreation | bool | No description. |
ConnStrRequired
public string ConnStr { get; set; }
- Type: string
SchemaNameOptional
public string SchemaName { get; set; }
- Type: string
SkipSchemaCreationOptional
public bool SkipSchemaCreation { get; set; }
- Type: bool
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. |
ConditionRequired
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.
ErrorMessageRequired
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. |
ConditionRequired
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.
ErrorMessageRequired
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. |
OrganizationRequired
public string Organization { get; set; }
- Type: string
WorkspacesRequired
public IRemoteWorkspace Workspaces { get; set; }
- Type: IRemoteWorkspace
HostnameOptional
public string Hostname { get; set; }
- Type: string
TokenOptional
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. |
TypeRequired
public string Type { get; set; }
- Type: string
ConnectionOptional
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.
InlineOptional
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.
ScriptOptional
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.
ScriptsOptional
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. |
ResolverRequired
public ITokenResolver Resolver { get; set; }
- Type: ITokenResolver
The resolver to apply to any resolvable tokens found.
ScopeRequired
public IConstruct Scope { get; set; }
- Type: Constructs.IConstruct
The scope from which resolution is performed.
PreparingOptional
public bool Preparing { get; set; }
- Type: bool
- Default: false
Whether the resolution is being executed during the prepare phase or not.
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 AssumeRolePolicy = null,
string[] AssumeRolePolicyArns = null,
System.Collections.Generic.IDictionary< string, string > AssumeRoleTags = null,
string[] AssumeRoleTransitiveTagKeys = null,
string DynamodbEndpoint = null,
string DynamodbTable = null,
bool Encrypt = null,
string Endpoint = null,
string ExternalId = null,
bool ForcePathStyle = null,
string IamEndpoint = null,
string KmsKeyId = null,
double MaxRetries = null,
string Profile = null,
string Region = null,
string RoleArn = null,
string SecretKey = null,
string SessionName = null,
string SharedCredentialsFile = null,
bool SkipCredentialsValidation = null,
bool SkipMetadataApiCheck = null,
bool SkipRegionValidation = null,
string SseCustomerKey = null,
string StsEndpoint = null,
string Token = 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. |
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. |
DynamodbEndpoint | string | (Optional) Custom endpoint for the AWS DynamoDB API. |
DynamodbTable | string | (Optional) Name of DynamoDB Table to use for state locking and consistency. |
Encrypt | bool | (Optional) Enable server side encryption of the state file. |
Endpoint | string | (Optional) Custom endpoint for the AWS S3 API. |
ExternalId | string | (Optional) External identifier to use when assuming the role. |
ForcePathStyle | bool | (Optional) Enable path-style S3 URLs (https://< HOST >/< BUCKET > instead of https://< BUCKET >.< HOST >). |
IamEndpoint | string | (Optional) Custom endpoint for the AWS Identity and Access Management (IAM) API. |
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. |
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). |
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. |
SharedCredentialsFile | string | (Optional) Path to the AWS shared credentials file. |
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. |
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. |
Token | string | (Optional) Multi-Factor Authentication (MFA) token. |
WorkspaceKeyPrefix | string | (Optional) Prefix applied to the state path inside the bucket. |
BucketRequired
public string Bucket { get; set; }
- Type: string
Name of the S3 Bucket.
KeyRequired
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
AccessKeyOptional
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).
AclOptional
public string Acl { get; set; }
- Type: string
(Optional) Canned ACL to be applied to the state file.
AssumeRolePolicyOptional
public string AssumeRolePolicy { get; set; }
- Type: string
(Optional) IAM Policy JSON describing further restricting permissions for the IAM Role being assumed.
AssumeRolePolicyArnsOptional
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.
AssumeRoleTagsOptional
public System.Collections.Generic.IDictionary< string, string > AssumeRoleTags { get; set; }
- Type: System.Collections.Generic.IDictionary< string, string >
(Optional) Map of assume role session tags.
AssumeRoleTransitiveTagKeysOptional
public string[] AssumeRoleTransitiveTagKeys { get; set; }
- Type: string[]
(Optional) Set of assume role session tag keys to pass to any subsequent sessions.
DynamodbEndpointOptional
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.
DynamodbTableOptional
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.
EncryptOptional
public bool Encrypt { get; set; }
- Type: bool
(Optional) Enable server side encryption of the state file.
EndpointOptional
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.
ExternalIdOptional
public string ExternalId { get; set; }
- Type: string
(Optional) External identifier to use when assuming the role.
ForcePathStyleOptional
public bool ForcePathStyle { get; set; }
- Type: bool
(Optional) Enable path-style S3 URLs (https://< HOST >/< BUCKET > instead of https://< BUCKET >.< HOST >).
IamEndpointOptional
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.
KmsKeyIdOptional
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.
MaxRetriesOptional
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.
ProfileOptional
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.
RegionOptional
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.
RoleArnOptional
public string RoleArn { get; set; }
- Type: string
(Optional) Amazon Resource Name (ARN) of the IAM Role to assume.
SecretKeyOptional
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)
SessionNameOptional
public string SessionName { get; set; }
- Type: string
(Optional) Session name to use when assuming the role.
SharedCredentialsFileOptional
public string SharedCredentialsFile { get; set; }
- Type: string
(Optional) Path to the AWS shared credentials file.
Defaults to ~/.aws/credentials.
SkipCredentialsValidationOptional
public bool SkipCredentialsValidation { get; set; }
- Type: bool
(Optional) Skip credentials validation via the STS API.
SkipMetadataApiCheckOptional
public bool SkipMetadataApiCheck { get; set; }
- Type: bool
(Optional) Skip usage of EC2 Metadata API.
SkipRegionValidationOptional
public bool SkipRegionValidation { get; set; }
- Type: bool
(Optional) Skip validation of provided region name.
SseCustomerKeyOptional
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.
StsEndpointOptional
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.
TokenOptional
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.
WorkspaceKeyPrefixOptional
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:
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. |
HostRequired
public string Host { get; set; }
- Type: string
The address of the resource to connect to.
TypeRequired
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.
AgentOptional
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.
AgentIdentityOptional
public string AgentIdentity { get; set; }
- Type: string
The preferred identity from the ssh agent for authentication.
BastionCertificateOptional
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.
BastionHostOptional
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.
BastionHostKeyOptional
public string BastionHostKey { get; set; }
- Type: string
The public key from the remote host or the signing CA, used to verify the host connection.
BastionPasswordOptional
public string BastionPassword { get; set; }
- Type: string
The password to use for the bastion host.
BastionPortOptional
public double BastionPort { get; set; }
- Type: double
The port to use connect to the bastion host.
BastionPrivateKeyOptional
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.
BastionUserOptional
public string BastionUser { get; set; }
- Type: string
The user for the connection to the bastion host.
CertificateOptional
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.
HostKeyOptional
public string HostKey { get; set; }
- Type: string
The public key from the remote host or the signing CA, used to verify the connection.
PasswordOptional
public string Password { get; set; }
- Type: string
The password to use for the connection.
PortOptional
public double Port { get; set; }
- Type: double
- Default: 22
The port to connect to.
PrivateKeyOptional
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.
ProxyHostOptional
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.
ProxyPortOptional
public double ProxyPort { get; set; }
- Type: double
The port to use connect to the proxy host.
ProxySchemeOptional
public string ProxyScheme { get; set; }
- Type: string
The ssh connection also supports the following fields to facilitate connections by SSH over HTTP proxy.
ProxyUserNameOptional
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.
ProxyUserPasswordOptional
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.
ScriptPathOptional
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}
TargetPlatformOptional
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"
TimeoutOptional
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".)
UserOptional
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. |
ConstructPathRequired
public string ConstructPath { get; set; }
- Type: string
LevelRequired
public AnnotationMetadataEntryType Level { get; set; }
MessageRequired
public string Message { get; set; }
- Type: string
StacktraceOptional
public string[] Stacktrace { get; set; }
- Type: string[]
StackManifest
Initializer
using HashiCorp.Cdktf;
new StackManifest {
StackAnnotation[] Annotations,
string ConstructPath,
string[] Dependencies,
string Name,
string SynthesizedStackPath,
string WorkingDirectory
};
Properties
| Name | Type | Description |
|---|---|---|
Annotations | StackAnnotation[] | No description. |
ConstructPath | string | No description. |
Dependencies | string[] | No description. |
Name | string | No description. |
SynthesizedStackPath | string | No description. |
WorkingDirectory | string | No description. |
AnnotationsRequired
public StackAnnotation[] Annotations { get; set; }
- Type: StackAnnotation[]
ConstructPathRequired
public string ConstructPath { get; set; }
- Type: string
DependenciesRequired
public string[] Dependencies { get; set; }
- Type: string[]
NameRequired
public string Name { get; set; }
- Type: string
SynthesizedStackPathRequired
public string SynthesizedStackPath { get; set; }
- Type: string
WorkingDirectoryRequired
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. |
ContainerRequired
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
ApplicationCredentialIdOptional
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
ApplicationCredentialNameOptional
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
ApplicationCredentialSecretOptional
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
ArchiveContainerOptional
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
AuthUrlOptional
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
CacertFileOptional
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
CertOptional
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
CloudOptional
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
DefaultDomainOptional
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
DomainIdOptional
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
DomainNameOptional
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
ExpireAfterOptional
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
InsecureOptional
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
KeyOptional
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
PasswordOptional
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
ProjectDomainIdOptional
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
ProjectDomainNameOptional
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
RegionNameOptional
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
StateNameOptional
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
TenantIdOptional
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
TenantNameOptional
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
TokenOptional
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
UserDomainIdOptional
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
UserDomainNameOptional
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
UserIdOptional
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
UserNameOptional
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. |
PathRequired
public string Path { get; set; }
- Type: string
AssetHashOptional
public string AssetHash { get; set; }
- Type: string
TypeOptional
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. |
ConditionRequired
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.
ErrorMessageRequired
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. |
TfResourceTypeRequired
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. |
PathRequired
public string Path { get; set; }
- Type: string
StackTraceRequired
public string[] StackTrace { get; set; }
- Type: string[]
UniqueIdRequired
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. |
DependsOnOptional
public ITerraformDependable[] DependsOn { get; set; }
- Type: ITerraformDependable[]
ForEachOptional
public ITerraformIterator ForEach { get; set; }
- Type: ITerraformIterator
ProvidersOptional
public object[] Providers { get; set; }
- Type: object[]
SkipAssetCreationFromLocalModulesOptional
public bool SkipAssetCreationFromLocalModules { get; set; }
- Type: bool
SourceRequired
public string Source { get; set; }
- Type: string
VersionOptional
public string Version { get; set; }
- Type: string
VariablesOptional
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. |
ConnectionOptional
public object Connection { get; set; }
- Type: object
CountOptional
public object Count { get; set; }
- Type: object
DependsOnOptional
public ITerraformDependable[] DependsOn { get; set; }
- Type: ITerraformDependable[]
ForEachOptional
public ITerraformIterator ForEach { get; set; }
- Type: ITerraformIterator
LifecycleOptional
public TerraformResourceLifecycle Lifecycle { get; set; }
ProviderOptional
public TerraformProvider Provider { get; set; }
- Type: TerraformProvider
ProvisionersOptional
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. |
DependsOnOptional
public ITerraformDependable[] DependsOn { get; set; }
- Type: ITerraformDependable[]
ForEachOptional
public ITerraformIterator ForEach { get; set; }
- Type: ITerraformIterator
ProvidersOptional
public object[] Providers { get; set; }
- Type: object[]
SkipAssetCreationFromLocalModulesOptional
public bool SkipAssetCreationFromLocalModules { get; set; }
- Type: bool
SourceRequired
public string Source { get; set; }
- Type: string
VersionOptional
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. |
ModuleAliasRequired
public string ModuleAlias { get; set; }
- Type: string
ProviderRequired
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. |
DependsOnOptional
public ITerraformDependable[] DependsOn { get; set; }
- Type: ITerraformDependable[]
ForEachOptional
public ITerraformIterator ForEach { get; set; }
- Type: ITerraformIterator
ProvidersOptional
public object[] Providers { get; set; }
- Type: object[]
SkipAssetCreationFromLocalModulesOptional
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). |
ValueRequired
public object Value { get; set; }
- Type: object
DependsOnOptional
public ITerraformDependable[] DependsOn { get; set; }
- Type: ITerraformDependable[]
DescriptionOptional
public string Description { get; set; }
- Type: string
PreconditionOptional
public Precondition Precondition { get; set; }
- Type: Precondition
SensitiveOptional
public bool Sensitive { get; set; }
- Type: bool
StaticIdOptional
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. |
TerraformResourceTypeRequired
public string TerraformResourceType { get; set; }
- Type: string
TerraformGeneratorMetadataOptional
public TerraformProviderGeneratorMetadata TerraformGeneratorMetadata { get; set; }
TerraformProviderSourceOptional
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. |
ProviderNameRequired
public string ProviderName { get; set; }
- Type: string
ProviderVersionOptional
public string ProviderVersion { get; set; }
- Type: string
ProviderVersionConstraintOptional
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. |
ConnectionOptional
public object Connection { get; set; }
- Type: object
CountOptional
public object Count { get; set; }
- Type: object
DependsOnOptional
public ITerraformDependable[] DependsOn { get; set; }
- Type: ITerraformDependable[]
ForEachOptional
public ITerraformIterator ForEach { get; set; }
- Type: ITerraformIterator
LifecycleOptional
public TerraformResourceLifecycle Lifecycle { get; set; }
ProviderOptional
public TerraformProvider Provider { get; set; }
- Type: TerraformProvider
ProvisionersOptional
public object[] Provisioners { get; set; }
- Type: object[]
TerraformResourceTypeRequired
public string TerraformResourceType { get; set; }
- Type: string
TerraformGeneratorMetadataOptional
public TerraformProviderGeneratorMetadata TerraformGeneratorMetadata { get; set; }
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. |
CreateBeforeDestroyOptional
public bool CreateBeforeDestroy { get; set; }
- Type: bool
IgnoreChangesOptional
public object IgnoreChanges { get; set; }
- Type: object
PostconditionOptional
public Postcondition[] Postcondition { get; set; }
- Type: Postcondition[]
PreconditionOptional
public Precondition[] Precondition { get; set; }
- Type: Precondition[]
PreventDestroyOptional
public bool PreventDestroy { get; set; }
- Type: bool
ReplaceTriggeredByOptional
public object[] ReplaceTriggeredBy { 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. |
BackendRequired
public string Backend { get; set; }
- Type: string
StackNameRequired
public string StackName { get; set; }
- Type: string
VersionRequired
public string Version { get; set; }
- Type: string
CloudOptional
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. |
DefaultOptional
public object Default { get; set; }
- Type: object
DescriptionOptional
public string Description { get; set; }
- Type: string
NullableOptional
public bool Nullable { get; set; }
- Type: bool
SensitiveOptional
public bool Sensitive { get; set; }
- Type: bool
TypeOptional
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.
ValidationOptional
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. |
ConditionRequired
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.
ErrorMessageRequired
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 {
bool EnableFutureFlags = null,
bool FakeCdktfJsonPath = null,
string Outdir = null,
bool StackTraces = null,
bool StubVersion = null
};
Properties
| Name | Type | Description |
|---|---|---|
EnableFutureFlags | bool | No description. |
FakeCdktfJsonPath | bool | No description. |
Outdir | string | No description. |
StackTraces | bool | No description. |
StubVersion | bool | No description. |
EnableFutureFlagsOptional
public bool EnableFutureFlags { get; set; }
- Type: bool
FakeCdktfJsonPathOptional
public bool FakeCdktfJsonPath { get; set; }
- Type: bool
OutdirOptional
public string Outdir { get; set; }
- Type: string
StackTracesOptional
public bool StackTraces { get; set; }
- Type: bool
StubVersionOptional
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. |
HostRequired
public string Host { get; set; }
- Type: string
The address of the resource to connect to.
TypeRequired
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.
CacertOptional
public string Cacert { get; set; }
- Type: string
The CA certificate to validate against.
HttpsOptional
public bool Https { get; set; }
- Type: bool
Set to true to connect using HTTPS instead of HTTP.
InsecureOptional
public bool Insecure { get; set; }
- Type: bool
Set to true to skip validating the HTTPS certificate chain.
PasswordOptional
public string Password { get; set; }
- Type: string
The password to use for the connection.
PortOptional
public double Port { get; set; }
- Type: double
- Default: 22
The port to connect to.
ScriptPathOptional
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}
TimeoutOptional
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".)
UseNtlmOptional
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.
UserOptional
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.
MessageRequired
- 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.
MessageRequired
- 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.
MessageRequired
- 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.
ScopeRequired
- 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. |
TerraformResourceRequired
- Type: IInterpolatingParent
TerraformAttributeRequired
- Type: string
WrapsSetRequired
- Type: bool
Methods
| Name | Description |
|---|---|
ComputeFqn | 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()
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
ContextRequired
- 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)
IndexRequired
- 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. |
CreationStackRequired
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.
FqnRequired
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. |
TerraformResourceRequired
- Type: IInterpolatingParent
TerraformAttributeRequired
- 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)
PropertyRequired
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
ContextRequired
- 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)
KeyRequired
- 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. |
CreationStackRequired
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.
FqnRequired
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. |
TerraformResourceRequired
- Type: IInterpolatingParent
TerraformAttributeRequired
- 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)
KeyRequired
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
ContextRequired
- 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. |
CreationStackRequired
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.
FqnRequired
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. |
TerraformResourceRequired
- Type: IInterpolatingParent
TerraformAttributeRequired
- Type: string
WrapsSetRequired
- 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)
PropertyRequired
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
ContextRequired
- 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)
IndexRequired
- 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. |
CreationStackRequired
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.
FqnRequired
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.
AspectRequired
- 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.
ScopeRequired
- Type: Constructs.IConstruct
The scope for which these aspects will apply.
Properties
AllRequired
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. |
MessageRequired
- Type: string
String message containing information about the result of the assertion.
PassRequired
- 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. |
MessageRequired
public string Message { get; }
- Type: string
String message containing information about the result of the assertion.
PassRequired
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. |
TerraformResourceRequired
- Type: IInterpolatingParent
TerraformAttributeRequired
- Type: string
WrapsSetRequired
- Type: bool
Methods
| Name | Description |
|---|---|
ComputeFqn | 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()
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
ContextRequired
- 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)
IndexRequired
- 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. |
CreationStackRequired
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.
FqnRequired
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. |
TerraformResourceRequired
- Type: IInterpolatingParent
TerraformAttributeRequired
- Type: string
WrapsSetRequired
- Type: bool
Methods
| Name | Description |
|---|---|
ComputeFqn | 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()
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
ContextRequired
- 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)
IndexRequired
- 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. |
CreationStackRequired
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.
FqnRequired
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. |
TerraformResourceRequired
- Type: IInterpolatingParent
TerraformAttributeRequired
- 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)
PropertyRequired
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
ContextRequired
- 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)
KeyRequired
- 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. |
CreationStackRequired
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.
FqnRequired
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. |
TerraformResourceRequired
- Type: IInterpolatingParent
TerraformAttributeRequired
- 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)
KeyRequired
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
ContextRequired
- 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. |
CreationStackRequired
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.
FqnRequired
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. |
TerraformResourceRequired
- Type: IInterpolatingParent
TerraformAttributeRequired
- Type: string
WrapsSetRequired
- 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)
PropertyRequired
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
ContextRequired
- 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)
IndexRequired
- 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. |
CreationStackRequired
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.
FqnRequired
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. |
TerraformResourceRequired
- Type: IInterpolatingParent
TerraformAttributeRequired
- Type: string
ComplexComputedListIndexRequired
- Type: string
WrapsSetOptional
- 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
ComputeFqnprivate string ComputeFqn()
GetAnyMapAttribute
GetAnyMapAttributeprivate System.Collections.Generic.IDictionary< string, object > GetAnyMapAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetBooleanAttribute
GetBooleanAttributeprivate IResolvable GetBooleanAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetBooleanMapAttribute
GetBooleanMapAttributeprivate System.Collections.Generic.IDictionary< string, bool > GetBooleanMapAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetListAttribute
GetListAttributeprivate string[] GetListAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetNumberAttribute
GetNumberAttributeprivate double GetNumberAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetNumberListAttribute
GetNumberListAttributeprivate double[] GetNumberListAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetNumberMapAttribute
GetNumberMapAttributeprivate System.Collections.Generic.IDictionary< string, double > GetNumberMapAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetStringAttribute
GetStringAttributeprivate string GetStringAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetStringMapAttribute
GetStringMapAttributeprivate System.Collections.Generic.IDictionary< string, string > GetStringMapAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
InterpolationForAttribute
InterpolationForAttributeprivate IResolvable InterpolationForAttribute(string Property)
PropertyRequired
- Type: string
Resolve
Resolveprivate object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
ContextRequired
- Type: IResolveContext
ToString
ToStringprivate 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. |
CreationStackRequired
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.
FqnRequired
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. |
TerraformResourceRequired
- Type: IInterpolatingParent
TerraformAttributeRequired
- Type: string
WrapsSetRequired
- Type: bool
Methods
| Name | Description |
|---|---|
ComputeFqn | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
ComputeFqn
private string ComputeFqn()
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
ContextRequired
- 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. |
CreationStackRequired
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.
FqnRequired
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. |
TerraformResourceRequired
- Type: IInterpolatingParent
TerraformAttributeRequired
- 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)
PropertyRequired
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
ContextRequired
- 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. |
CreationStackRequired
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.
FqnRequired
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. |
TerraformResourceRequired
- Type: IInterpolatingParent
TerraformAttributeRequired
- Type: string
ComplexObjectIsFromSetRequired
- 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.
ComplexObjectIndexOptional
- 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)
TerraformAttributeRequired
- Type: string
GetBooleanAttribute
private IResolvable GetBooleanAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetBooleanMapAttribute
private System.Collections.Generic.IDictionary< string, bool > GetBooleanMapAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetListAttribute
private string[] GetListAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetNumberAttribute
private double GetNumberAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetNumberListAttribute
private double[] GetNumberListAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetNumberMapAttribute
private System.Collections.Generic.IDictionary< string, double > GetNumberMapAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetStringAttribute
private string GetStringAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
GetStringMapAttribute
private System.Collections.Generic.IDictionary< string, string > GetStringMapAttribute(string TerraformAttribute)
TerraformAttributeRequired
- Type: string
InterpolationForAttribute
private IResolvable InterpolationForAttribute(string Property)
PropertyRequired
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
ContextRequired
- 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. |
CreationStackRequired
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.
FqnRequired
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. |
ConcatRequired
- 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.
XsRequired
- Type: string[]
ContextRequired
- Type: IResolveContext
ResolveMap
private object ResolveMap(System.Collections.Generic.IDictionary< string, object > Xs, IResolveContext Context)
Resolves a map token.
XsRequired
- Type: System.Collections.Generic.IDictionary< string, object >
ContextRequired
- Type: IResolveContext
ResolveNumberList
private object ResolveNumberList(double[] Xs, IResolveContext Context)
Resolves a list of numbers.
XsRequired
- Type: double[]
ContextRequired
- Type: IResolveContext
ResolveString
private object ResolveString(TokenizedStringFragments Fragments, IResolveContext Context)
Resolve string fragments to Tokens.
FragmentsRequired
- Type: TokenizedStringFragments
ContextRequired
- 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.
TRequired
- Type: IResolvable
ContextRequired
- Type: IResolveContext
PostProcessorRequired
- Type: IPostProcessor
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. |
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. |
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. |
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.
NumRequired
- 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.
PathRequired
- 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.
ListRequired
- 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.
ListRequired
- 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.
StrRequired
- 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.
StrRequired
- 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.
StrRequired
- 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.
StrRequired
- 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.
StrRequired
- 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.
PathRequired
- 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.
ExpressionRequired
- 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.
NumRequired
- 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.
StrRequired
- 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.
ListRequired
- Type: object[]
SizeRequired
- 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.
PrefixRequired
- Type: string
HostnumRequired
- 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.
PrefixRequired
- 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.
PrefixRequired
- Type: string
NewbitsRequired
- Type: double
NetnumRequired
- 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.
PrefixRequired
- Type: string
NewbitsRequired
- 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.
ValsRequired
- 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.
ValsRequired
- 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.
ListRequired
- 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.
SeqsRequired
- 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.
ListRequired
- Type: object
ValueRequired
- 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.
StrRequired
- 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.
PathRequired
- 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.
ListRequired
- 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.
ListRequired
- Type: object
IndexRequired
- 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.
StrRequired
- Type: string
SuffixRequired
- 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.
PathRequired
- 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.
PathRequired
- 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.
PathRequired
- 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.
PathRequired
- 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.
PathRequired
- 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.
PathRequired
- 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.
PathRequired
- Type: string
PatternRequired
- 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.
PathRequired
- 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.
PathRequired
- 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.
PathRequired
- 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.
ListRequired
- 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.
NumRequired
- 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.
FormatRequired
- Type: string
ArgsRequired
- 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.
FormatRequired
- Type: string
TimeRequired
- 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.
FormatRequired
- Type: string
ArgsRequired
- 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.
SpacesRequired
- Type: double
StrRequired
- 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.
ListRequired
- Type: object
ValueRequired
- 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.
StrRequired
- 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.
ValRequired
- 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.
InputMapRequired
- 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.
ValueRequired
- 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.
NumRequired
- Type: double
BaseRequired
- 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.
StrRequired
- 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.
ValuesRequired
- Type: object[]
KeysRequired
- Type: object[]
SearchsetRequired
- 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.
NumbersRequired
- 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.
StrRequired
- 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.
MapsRequired
- 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.
NumbersRequired
- 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.
ValueRequired
- 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.
ListRequired
- 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.
NumberRequired
- Type: object
BaseRequired
- 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.
PathRequired
- Type: string
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.
NumRequired
- Type: double
PowerRequired
- 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.
PatternRequired
- Type: string
StrRequired
- 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.
PatternRequired
- Type: string
StrRequired
- 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.
StrRequired
- Type: string
SubstrRequired
- Type: string
ReplaceRequired
- 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.
ListRequired
- 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.
CiphertextRequired
- Type: string
PrivatekeyRequired
- 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.
ValueRequired
- 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.
FirstSetRequired
- Type: object[]
OtherSetsRequired
- 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.
SetsRequired
- 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.
ARequired
- Type: object[]
BRequired
- 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.
FirstSetRequired
- Type: object[]
OtherSetsRequired
- 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.
StrRequired
- 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.
StrRequired
- 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.
StrRequired
- 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.
NumRequired
- 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.
ListRequired
- Type: object
StartIndexRequired
- Type: double
EndIndexRequired
- 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.
ListRequired
- 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.
SeparatorRequired
- Type: string
StrRequired
- 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.
StrRequired
- Type: string
PrefixRequired
- 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).
StrRequired
- 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.
StrRequired
- Type: string
OffsetRequired
- Type: double
LengthRequired
- 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.
ListRequired
- 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.
PathRequired
- Type: string
VarsRequired
- 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.
SourceRequired
- Type: string
EncodingRequired
- 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.
StrRequired
- Type: string
EncodingRequired
- 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.
TimestampRequired
- Type: string
DurationRequired
- 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.
TimestampARequired
- Type: string
TimestampBRequired
- 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.
StrRequired
- 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.
VRequired
- 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.
VRequired
- 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.
VRequired
- 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.
VRequired
- 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.
VRequired
- 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.
VRequired
- 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.
ValuesRequired
- 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.
StrRequired
- Type: string
CutsetRequired
- 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.
StrRequired
- Type: string
PrefixRequired
- 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.
StrRequired
- 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.
StrRequired
- Type: string
SuffixRequired
- 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.
ExpressionsRequired
- 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.
StrRequired
- 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.
StrRequired
- 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.
NamespaceRequired
- Type: string
NameRequired
- 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.
MappingRequired
- 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.
SrcRequired
- 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.
ValueRequired
- 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.
KeysRequired
- Type: string[]
ValuesRequired
- 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.
StrRequired
- Type: string
CostOptional
- Type: double
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.
SeparatorRequired
- Type: string
ListRequired
- 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.
InputMapRequired
- Type: object
KeyRequired
- Type: string
DefaultValueOptional
- 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"]
InputMapRequired
- Type: object
PathRequired
- 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.
StartRequired
- Type: double
LimitRequired
- Type: double
StepOptional
- 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).
StrRequired
- 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. |
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. |
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.
NumRequired
- 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.
PathRequired
- 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.
ListRequired
- 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.
ListRequired
- 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.
StrRequired
- 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.
StrRequired
- 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.
StrRequired
- 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.
StrRequired
- 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.
StrRequired
- 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.
PathRequired
- 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.
ExpressionRequired
- 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.
NumRequired
- 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.
StrRequired
- 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.
ListRequired
- Type: object[]
SizeRequired
- 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.
PrefixRequired
- Type: string
HostnumRequired
- 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.
PrefixRequired
- 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.
PrefixRequired
- Type: string
NewbitsRequired
- Type: double
NetnumRequired
- 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.
PrefixRequired
- Type: string
NewbitsRequired
- 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.
ValsRequired
- 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.
ValsRequired
- 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.
ListRequired
- 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.
SeqsRequired
- 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.
ListRequired
- Type: object
ValueRequired
- 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.
StrRequired
- 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.
PathRequired
- 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.
ListRequired
- 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.
ListRequired
- Type: object
IndexRequired
- 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.
StrRequired
- Type: string
SuffixRequired
- 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.
PathRequired
- 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.
PathRequired
- 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.
PathRequired
- 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.
PathRequired
- 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.
PathRequired
- 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.
PathRequired
- 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.
PathRequired
- Type: string
PatternRequired
- 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.
PathRequired
- 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.
PathRequired
- 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.
PathRequired
- 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.
ListRequired
- 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.
NumRequired
- 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.
FormatRequired
- Type: string
ArgsRequired
- 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.
FormatRequired
- Type: string
TimeRequired
- 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.
FormatRequired
- Type: string
ArgsRequired
- 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.
SpacesRequired
- Type: double
StrRequired
- 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.
ListRequired
- Type: object
ValueRequired
- 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.
StrRequired
- 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.
ValRequired
- 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.
InputMapRequired
- 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.
ValueRequired
- 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.
NumRequired
- Type: double
BaseRequired
- 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.
StrRequired
- 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.
ValuesRequired
- Type: object[]
KeysRequired
- Type: object[]
SearchsetRequired
- 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.
NumbersRequired
- 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.
StrRequired
- 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.
MapsRequired
- 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.
NumbersRequired
- 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.
ValueRequired
- 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.
ListRequired
- 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.
NumberRequired
- Type: object
BaseRequired
- 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.
PathRequired
- Type: string
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.
NumRequired
- Type: double
PowerRequired
- 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.
PatternRequired
- Type: string
StrRequired
- 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.
PatternRequired
- Type: string
StrRequired
- 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.
StrRequired
- Type: string
SubstrRequired
- Type: string
ReplaceRequired
- 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.
ListRequired
- 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.
CiphertextRequired
- Type: string
PrivatekeyRequired
- 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.
ValueRequired
- 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.
FirstSetRequired
- Type: object[]
OtherSetsRequired
- 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.
SetsRequired
- 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.
ARequired
- Type: object[]
BRequired
- 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.
FirstSetRequired
- Type: object[]
OtherSetsRequired
- 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.
StrRequired
- 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.
StrRequired
- 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.
StrRequired
- 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.
NumRequired
- 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.
ListRequired
- Type: object
StartIndexRequired
- Type: double
EndIndexRequired
- 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.
ListRequired
- 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.
SeparatorRequired
- Type: string
StrRequired
- 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.
StrRequired
- Type: string
PrefixRequired
- 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).
StrRequired
- 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.
StrRequired
- Type: string
OffsetRequired
- Type: double
LengthRequired
- 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.
ListRequired
- 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.
PathRequired
- Type: string
VarsRequired
- 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.
SourceRequired
- Type: string
EncodingRequired
- 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.
StrRequired
- Type: string
EncodingRequired
- 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.
TimestampRequired
- Type: string
DurationRequired
- 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.
TimestampARequired
- Type: string
TimestampBRequired
- 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.
StrRequired
- 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.
VRequired
- 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.
VRequired
- 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.
VRequired
- 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.
VRequired
- 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.
VRequired
- 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.
VRequired
- 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.
ValuesRequired
- 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.
StrRequired
- Type: string
CutsetRequired
- 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.
StrRequired
- Type: string
PrefixRequired
- 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.
StrRequired
- 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.
StrRequired
- Type: string
SuffixRequired
- 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.
ExpressionsRequired
- 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.
StrRequired
- 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.
StrRequired
- 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.
NamespaceRequired
- Type: string
NameRequired
- 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.
MappingRequired
- 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.
SrcRequired
- 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.
ValueRequired
- 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.
KeysRequired
- Type: string[]
ValuesRequired
- 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.
ProducerRequired
- Type: IAnyProducer
The lazy producer.
OptionsOptional
- Type: LazyAnyValueOptions
Options.
ListValue
using HashiCorp.Cdktf;
Lazy.ListValue(IListProducer Producer, LazyListValueOptions Options = null);
Returns a list-ified token for a lazy value.
ProducerRequired
- Type: IListProducer
The producer.
OptionsOptional
- Type: LazyListValueOptions
Options.
NumberValue
using HashiCorp.Cdktf;
Lazy.NumberValue(INumberProducer Producer);
Returns a numberified token for a lazy value.
ProducerRequired
- Type: INumberProducer
The producer.
StringValue
using HashiCorp.Cdktf;
Lazy.StringValue(IStringProducer Producer, LazyStringValueOptions Options = null);
Returns a stringified token for a lazy value.
ProducerRequired
- Type: IStringProducer
The producer.
OptionsOptional
- 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)
PostProcessorRequired
- Type: IPostProcessor
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
ContextRequired
- 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. |
CreationStackRequired
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. |
ListRequired
- Type: object
Methods
| Name | Description |
|---|---|
Dynamic | No description. |
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. |
Dynamic
private IResolvable Dynamic(System.Collections.Generic.IDictionary< string, object > Attributes)
AttributesRequired
- Type: System.Collections.Generic.IDictionary< string, object >
GetAny
private IResolvable GetAny(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetAnyMap
private System.Collections.Generic.IDictionary< string, object > GetAnyMap(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetBoolean
private IResolvable GetBoolean(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetBooleanMap
private System.Collections.Generic.IDictionary< string, bool > GetBooleanMap(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetList
private string[] GetList(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetMap
private System.Collections.Generic.IDictionary< string, object > GetMap(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetNumber
private double GetNumber(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetNumberList
private double[] GetNumberList(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetNumberMap
private System.Collections.Generic.IDictionary< string, double > GetNumberMap(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetString
private string GetString(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetStringMap
private System.Collections.Generic.IDictionary< string, string > GetStringMap(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
Static Functions
FromList
using HashiCorp.Cdktf;
ListTerraformIterator.FromList(object List);
Creates a new iterator from a list.
ListRequired
- Type: object
FromMap
using HashiCorp.Cdktf;
ListTerraformIterator.FromMap(object Map);
Creates a new iterator from a map.
MapRequired
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Key | object | Returns the currenty entry in the list or set that is being iterated over. |
Value | object | Returns the value of the current item iterated over. |
KeyRequired
public object Key { get; }
- Type: object
Returns the currenty 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 using the escape hatch:
https://developer.hashicorp.com/terraform/cdktf/concepts/resources#escape-hatch
ValueRequired
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);
VersionRequired
- Type: string
OutdirRequired
- Type: string
Methods
| Name | Description |
|---|---|
BuildManifest | No description. |
ForStack | No description. |
WriteToFile | No description. |
BuildManifest
private IManifest BuildManifest()
ForStack
private StackManifest ForStack(TerraformStack Stack)
StackRequired
- Type: TerraformStack
WriteToFile
private void WriteToFile()
Properties
| Name | Type | Description |
|---|---|---|
Outdir | string | No description. |
Stacks | System.Collections.Generic.IDictionary< string, StackManifest> | No description. |
Version | string | No description. |
OutdirRequired
public string Outdir { get; }
- Type: string
StacksRequired
public System.Collections.Generic.IDictionary< string, StackManifest > Stacks { get; }
- Type: System.Collections.Generic.IDictionary< string, StackManifest>
VersionRequired
public string Version { get; }
- Type: string
Constants
| Name | Type | Description |
|---|---|---|
FileName | string | No description. |
StackFileName | string | No description. |
StacksFolder | string | No description. |
FileNameRequired
public string FileName { get; }
- Type: string
StackFileNameRequired
public string StackFileName { get; }
- Type: string
StacksFolderRequired
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. |
TerraformResourceRequired
- Type: IInterpolatingParent
TerraformAttributeRequired
- Type: string
WrapsSetRequired
- 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)
PropertyRequired
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
ContextRequired
- 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. |
CreationStackRequired
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.
FqnRequired
public string Fqn { get; }
- Type: string
MapTerraformIterator
Initializers
using HashiCorp.Cdktf;
new MapTerraformIterator(object Map);
| Name | Type | Description |
|---|---|---|
Map | object | No description. |
MapRequired
- Type: object
Methods
| Name | Description |
|---|---|
Dynamic | No description. |
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. |
Dynamic
private IResolvable Dynamic(System.Collections.Generic.IDictionary< string, object > Attributes)
AttributesRequired
- Type: System.Collections.Generic.IDictionary< string, object >
GetAny
private IResolvable GetAny(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetAnyMap
private System.Collections.Generic.IDictionary< string, object > GetAnyMap(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetBoolean
private IResolvable GetBoolean(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetBooleanMap
private System.Collections.Generic.IDictionary< string, bool > GetBooleanMap(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetList
private string[] GetList(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetMap
private System.Collections.Generic.IDictionary< string, object > GetMap(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetNumber
private double GetNumber(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetNumberList
private double[] GetNumberList(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetNumberMap
private System.Collections.Generic.IDictionary< string, double > GetNumberMap(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetString
private string GetString(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetStringMap
private System.Collections.Generic.IDictionary< string, string > GetStringMap(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
Static Functions
FromList
using HashiCorp.Cdktf;
MapTerraformIterator.FromList(object List);
Creates a new iterator from a list.
ListRequired
- Type: object
FromMap
using HashiCorp.Cdktf;
MapTerraformIterator.FromMap(object Map);
Creates a new iterator from a map.
MapRequired
- Type: object
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. |
KeyRequired
public string Key { get; }
- Type: string
Returns the key of the current entry in the map that is being iterated over.
ValueRequired
public object Value { get; }
- Type: object
Returns the value of the current item iterated over.
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);
| Name | Type | Description |
|---|---|---|
Name | string | No description. |
NameRequired
- Type: string
Methods
| Name | Description |
|---|---|
ToTerraform | No description. |
ToTerraform
private object ToTerraform()
Properties
| Name | Type | Description |
|---|---|---|
Name | string | No description. |
NameRequired
public string Name { get; }
- Type: string
NamedRemoteWorkspace
- Implements: IRemoteWorkspace
Initializers
using HashiCorp.Cdktf;
new NamedRemoteWorkspace(string Name);
| Name | Type | Description |
|---|---|---|
Name | string | No description. |
NameRequired
- Type: string
Properties
| Name | Type | Description |
|---|---|---|
Name | string | No description. |
NameRequired
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. |
TerraformResourceRequired
- Type: IInterpolatingParent
TerraformAttributeRequired
- Type: string
WrapsSetRequired
- Type: bool
Methods
| Name | Description |
|---|---|
ComputeFqn | 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()
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
ContextRequired
- 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)
IndexRequired
- 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. |
CreationStackRequired
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.
FqnRequired
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. |
TerraformResourceRequired
- Type: IInterpolatingParent
TerraformAttributeRequired
- 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)
PropertyRequired
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
ContextRequired
- 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)
KeyRequired
- 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. |
CreationStackRequired
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.
FqnRequired
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. |
TerraformResourceRequired
- Type: IInterpolatingParent
TerraformAttributeRequired
- 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)
KeyRequired
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
ContextRequired
- 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. |
CreationStackRequired
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.
FqnRequired
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. |
TerraformResourceRequired
- Type: IInterpolatingParent
TerraformAttributeRequired
- Type: string
WrapsSetRequired
- 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)
PropertyRequired
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
ContextRequired
- 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)
IndexRequired
- 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. |
CreationStackRequired
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.
FqnRequired
public string Fqn { get; }
- Type: string
Op
This class contains static functions for all arithmetical and logical operators in the Terraform configutation 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.
LeftRequired
- Type: object
RightRequired
- Type: object
And
using HashiCorp.Cdktf;
Op.And(object Left, object Right);
Renders left && right.
LeftRequired
- Type: object
RightRequired
- Type: object
Div
using HashiCorp.Cdktf;
Op.Div(object Left, object Right);
Renders left / right.
LeftRequired
- Type: object
RightRequired
- Type: object
Eq
using HashiCorp.Cdktf;
Op.Eq(object Left, object Right);
Renders left == right.
LeftRequired
- Type: object
RightRequired
- Type: object
Gt
using HashiCorp.Cdktf;
Op.Gt(object Left, object Right);
Renders left > right.
LeftRequired
- Type: object
RightRequired
- Type: object
Gte
using HashiCorp.Cdktf;
Op.Gte(object Left, object Right);
Renders left >= right.
LeftRequired
- Type: object
RightRequired
- Type: object
Lt
using HashiCorp.Cdktf;
Op.Lt(object Left, object Right);
Renders left < right.
LeftRequired
- Type: object
RightRequired
- Type: object
Lte
using HashiCorp.Cdktf;
Op.Lte(object Left, object Right);
Renders left < = right.
LeftRequired
- Type: object
RightRequired
- Type: object
Mod
using HashiCorp.Cdktf;
Op.Mod(object Left, object Right);
Renders left % right.
LeftRequired
- Type: object
RightRequired
- Type: object
Mul
using HashiCorp.Cdktf;
Op.Mul(object Left, object Right);
Renders left * right.
LeftRequired
- Type: object
RightRequired
- Type: object
Negate
using HashiCorp.Cdktf;
Op.Negate(object Expression);
Renders -expression.
ExpressionRequired
- Type: object
Neq
using HashiCorp.Cdktf;
Op.Neq(object Left, object Right);
Renders left != right.
LeftRequired
- Type: object
RightRequired
- Type: object
Not
using HashiCorp.Cdktf;
Op.Not(object Expression);
Renders !expression.
ExpressionRequired
- Type: object
Or
using HashiCorp.Cdktf;
Op.Or(object Left, object Right);
Renders left || right.
LeftRequired
- Type: object
RightRequired
- Type: object
Sub
using HashiCorp.Cdktf;
Op.Sub(object Left, object Right);
Renders left - right.
LeftRequired
- Type: object
RightRequired
- Type: object
PrefixedRemoteWorkspaces
- Implements: IRemoteWorkspace
Initializers
using HashiCorp.Cdktf;
new PrefixedRemoteWorkspaces(string Prefix);
| Name | Type | Description |
|---|---|---|
Prefix | string | No description. |
PrefixRequired
- Type: string
Properties
| Name | Type | Description |
|---|---|---|
Prefix | string | No description. |
PrefixRequired
public string Prefix { get; }
- Type: string
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.
LeftRequired
- Type: object
RightRequired
- 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. |
TerraformResourceRequired
- Type: IInterpolatingParent
TerraformAttributeRequired
- Type: string
WrapsSetRequired
- Type: bool
Methods
| Name | Description |
|---|---|
ComputeFqn | 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()
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
ContextRequired
- 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)
IndexRequired
- 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. |
CreationStackRequired
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.
FqnRequired
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. |
TerraformResourceRequired
- Type: IInterpolatingParent
TerraformAttributeRequired
- 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)
PropertyRequired
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
ContextRequired
- 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)
KeyRequired
- 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. |
CreationStackRequired
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.
FqnRequired
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. |
TerraformResourceRequired
- Type: IInterpolatingParent
TerraformAttributeRequired
- 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)
KeyRequired
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
ContextRequired
- 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. |
CreationStackRequired
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.
FqnRequired
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. |
TerraformResourceRequired
- Type: IInterpolatingParent
TerraformAttributeRequired
- Type: string
WrapsSetRequired
- 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)
PropertyRequired
- Type: string
Resolve
private object Resolve(IResolveContext Context)
Produce the Token's value at resolution time.
ContextRequired
- 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)
IndexRequired
- 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. |
CreationStackRequired
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.
FqnRequired
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);
| Name | Type | Description |
|---|---|---|
Tags | string[] | No description. |
TagsRequired
- Type: string[]
Methods
| Name | Description |
|---|---|
ToTerraform | No description. |
ToTerraform
private object ToTerraform()
Properties
| Name | Type | Description |
|---|---|---|
Tags | string[] | No description. |
TagsRequired
public string[] Tags { 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);
XRequired
- Type: object
Of
using HashiCorp.Cdktf;
TerraformCount.Of(double Count);
CountRequired
- Type: double
Properties
| Name | Type | Description |
|---|---|---|
Index | double | No description. |
IndexRequired
public double Index { get; }
- Type: double
TerraformIterator
- Implements: ITerraformIterator
Initializers
using HashiCorp.Cdktf;
new TerraformIterator();
| Name | Type | Description |
|---|
Methods
| Name | Description |
|---|---|
Dynamic | No description. |
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. |
Dynamic
private IResolvable Dynamic(System.Collections.Generic.IDictionary< string, object > Attributes)
AttributesRequired
- Type: System.Collections.Generic.IDictionary< string, object >
GetAny
private IResolvable GetAny(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetAnyMap
private System.Collections.Generic.IDictionary< string, object > GetAnyMap(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetBoolean
private IResolvable GetBoolean(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetBooleanMap
private System.Collections.Generic.IDictionary< string, bool > GetBooleanMap(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetList
private string[] GetList(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetMap
private System.Collections.Generic.IDictionary< string, object > GetMap(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetNumber
private double GetNumber(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetNumberList
private double[] GetNumberList(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetNumberMap
private System.Collections.Generic.IDictionary< string, double > GetNumberMap(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetString
private string GetString(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
GetStringMap
private System.Collections.Generic.IDictionary< string, string > GetStringMap(string Attribute)
AttributeRequired
- Type: string
name of the property to retrieve.
Static Functions
FromList
using HashiCorp.Cdktf;
TerraformIterator.FromList(object List);
Creates a new iterator from a list.
ListRequired
- Type: object
FromMap
using HashiCorp.Cdktf;
TerraformIterator.FromMap(object Map);
Creates a new iterator from a map.
MapRequired
- Type: object
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")
KeyRequired
- 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")
KeyRequired
- 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")
KeyRequired
- 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. |
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.
OptionsOptional
- Type: TestingAppConfig
EnableFutureFlags
using HashiCorp.Cdktf;
Testing.EnableFutureFlags(App App);
AppRequired
- Type: App
FakeCdktfJsonPath
using HashiCorp.Cdktf;
Testing.FakeCdktfJsonPath(App App);
AppRequired
- Type: App
FullSynth
using HashiCorp.Cdktf;
Testing.FullSynth(TerraformStack Stack);
StackRequired
- Type: TerraformStack
RenderConstructTree
using HashiCorp.Cdktf;
Testing.RenderConstructTree(IConstruct Construct);
ConstructRequired
- Type: Constructs.IConstruct
SetupJest
using HashiCorp.Cdktf;
Testing.SetupJest();
StubVersion
using HashiCorp.Cdktf;
Testing.StubVersion(App App);
AppRequired
- Type: App
Synth
using HashiCorp.Cdktf;
Testing.Synth(TerraformStack Stack, bool RunValidations = null);
Returns the Terraform synthesized JSON.
StackRequired
- Type: TerraformStack
RunValidationsOptional
- Type: bool
SynthScope
using HashiCorp.Cdktf;
Testing.SynthScope(IScopeCallback Fn);
FnRequired
- Type: IScopeCallback
ToBeValidTerraform
using HashiCorp.Cdktf;
Testing.ToBeValidTerraform(string Received);
ReceivedRequired
- Type: string
ToHaveDataSource
using HashiCorp.Cdktf;
Testing.ToHaveDataSource(string Received, string ResourceType);
ReceivedRequired
- Type: string
ResourceTypeRequired
- Type: string
ToHaveDataSourceWithProperties
using HashiCorp.Cdktf;
Testing.ToHaveDataSourceWithProperties(string Received, string ResourceType, System.Collections.Generic.IDictionary< string, object > Properties = null);
ReceivedRequired
- Type: string
ResourceTypeRequired
- Type: string
PropertiesOptional
- Type: System.Collections.Generic.IDictionary< string, object >
ToHaveProvider
using HashiCorp.Cdktf;
Testing.ToHaveProvider(string Received, string ResourceType);
ReceivedRequired
- Type: string
ResourceTypeRequired
- Type: string
ToHaveProviderWithProperties
using HashiCorp.Cdktf;
Testing.ToHaveProviderWithProperties(string Received, string ResourceType, System.Collections.Generic.IDictionary< string, object > Properties = null);
ReceivedRequired
- Type: string
ResourceTypeRequired
- Type: string
PropertiesOptional
- Type: System.Collections.Generic.IDictionary< string, object >
ToHaveResource
using HashiCorp.Cdktf;
Testing.ToHaveResource(string Received, string ResourceType);
ReceivedRequired
- Type: string
ResourceTypeRequired
- Type: string
ToHaveResourceWithProperties
using HashiCorp.Cdktf;
Testing.ToHaveResourceWithProperties(string Received, string ResourceType, System.Collections.Generic.IDictionary< string, object > Properties = null);
ReceivedRequired
- Type: string
ResourceTypeRequired
- Type: string
PropertiesOptional
- 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.
ValueRequired
- Type: object
AsAnyMap
using HashiCorp.Cdktf;
Token.AsAnyMap(object Value, EncodingOptions Options = null);
Return a reversible map representation of this token.
ValueRequired
- Type: object
OptionsOptional
- Type: EncodingOptions
AsBooleanMap
using HashiCorp.Cdktf;
Token.AsBooleanMap(object Value, EncodingOptions Options = null);
Return a reversible map representation of this token.
ValueRequired
- Type: object
OptionsOptional
- Type: EncodingOptions
AsList
using HashiCorp.Cdktf;
Token.AsList(object Value, EncodingOptions Options = null);
Return a reversible list representation of this token.
ValueRequired
- Type: object
OptionsOptional
- Type: EncodingOptions
AsMap
using HashiCorp.Cdktf;
Token.AsMap(object Value, object MapValue, EncodingOptions Options = null);
Return a reversible map representation of this token.
ValueRequired
- Type: object
MapValueRequired
- Type: object
OptionsOptional
- Type: EncodingOptions
AsNumber
using HashiCorp.Cdktf;
Token.AsNumber(object Value);
Return a reversible number representation of this token.
ValueRequired
- Type: object
AsNumberList
using HashiCorp.Cdktf;
Token.AsNumberList(object Value);
Return a reversible list representation of this token.
ValueRequired
- Type: object
AsNumberMap
using HashiCorp.Cdktf;
Token.AsNumberMap(object Value, EncodingOptions Options = null);
Return a reversible map representation of this token.
ValueRequired
- Type: object
OptionsOptional
- 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.
ValueRequired
- Type: object
OptionsOptional
- Type: EncodingOptions
AsStringMap
using HashiCorp.Cdktf;
Token.AsStringMap(object Value, EncodingOptions Options = null);
Return a reversible map representation of this token.
ValueRequired
- Type: object
OptionsOptional
- Type: EncodingOptions
IsUnresolved
using HashiCorp.Cdktf;
Token.IsUnresolved(object Obj);
Returns true if obj represents an unresolved value.
One of these must be true:
objis an IResolvableobjis a string containing at least one encodedIResolvableobjis either an encoded number or list
This does NOT recurse into lists or objects to see if they containing resolvables.
ObjRequired
- 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. |
AnyMapTokenValueRequired
public string AnyMapTokenValue { get; }
- Type: string
Any map token representation.
NumberMapTokenValueRequired
public double NumberMapTokenValue { get; }
- Type: double
Number Map token value representation.
StringMapTokenValueRequired
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.
ObjRequired
- 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.
ObjRequired
- Type: object
The object to resolve.
OptionsRequired
- Type: ResolveOptions
Prefix key path components for diagnostics.
Reverse
using HashiCorp.Cdktf;
Tokenization.Reverse(object X);
Reverse any value into Resolvables, if possible.
XRequired
- Type: object
ReverseList
using HashiCorp.Cdktf;
Tokenization.ReverseList(string[] L);
Un-encode a Tokenized value from a list.
LRequired
- Type: string[]
ReverseMap
using HashiCorp.Cdktf;
Tokenization.ReverseMap(System.Collections.Generic.IDictionary< string, object > M);
Un-encode a Tokenized value from a map.
MRequired
- Type: System.Collections.Generic.IDictionary< string, object >
ReverseNumber
using HashiCorp.Cdktf;
Tokenization.ReverseNumber(double N);
Un-encode a Tokenized value from a number.
NRequired
- Type: double
ReverseNumberList
using HashiCorp.Cdktf;
Tokenization.ReverseNumberList(double[] L);
Un-encode a Tokenized value from a list.
LRequired
- Type: double[]
ReverseString
using HashiCorp.Cdktf;
Tokenization.ReverseString(string S);
Un-encode a string potentially containing encoded tokens.
SRequired
- 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.
XRequired
- 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)
KindRequired
- Type: string
AddIntrinsic
private void AddIntrinsic(object Value)
Adds an intrinsic fragment.
ValueRequired
- Type: object
the intrinsic value to add.
AddLiteral
private void AddLiteral(object Lit)
Adds a literal fragment.
LitRequired
- Type: object
the literal to add.
AddToken
private void AddToken(IResolvable Token)
Adds a token fragment.
TokenRequired
- Type: IResolvable
the token to add.
Concat
private void Concat(TokenizedStringFragments Other)
OtherRequired
- Type: TokenizedStringFragments
Join
private object Join(IFragmentConcatenator Concat)
Combine the string fragments using the given joiner.
If there are any
ConcatRequired
- Type: IFragmentConcatenator
MapTokens
private TokenizedStringFragments MapTokens(IResolveContext Context)
Apply a transformation function to all tokens in the string.
ContextRequired
- 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. |
EscapesRequired
public IResolvable[] Escapes { get; }
- Type: IResolvable[]
Return all escape fragments from this string.
FirstValueRequired
public object FirstValue { get; }
- Type: object
Returns the first value.
IntrinsicRequired
public IResolvable[] Intrinsic { get; }
- Type: IResolvable[]
Return all intrinsic fragments from this string.
LengthRequired
public double Length { get; }
- Type: double
Returns the number of fragments.
LiteralsRequired
public IResolvable[] Literals { get; }
- Type: IResolvable[]
Return all literals from this string.
TokensRequired
public IResolvable[] Tokens { get; }
- Type: IResolvable[]
Return all Tokens from this string.
FirstTokenOptional
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);
TypeRequired
- Type: string
Map
using HashiCorp.Cdktf;
VariableType.Map(string Type);
TypeRequired
- Type: string
Object
using HashiCorp.Cdktf;
VariableType.Object(System.Collections.Generic.IDictionary< string, string > Attributes);
AttributesRequired
- Type: System.Collections.Generic.IDictionary< string, string >
Set
using HashiCorp.Cdktf;
VariableType.Set(string Type);
TypeRequired
- Type: string
Tuple
using HashiCorp.Cdktf;
VariableType.Tuple(string Elements);
ElementsRequired
- 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. |
AnyRequired
public string Any { get; }
- Type: string
BoolRequired
public string Bool { get; }
- Type: string
ListRequired
public string List { get; }
- Type: string
ListBoolRequired
public string ListBool { get; }
- Type: string
ListNumberRequired
public string ListNumber { get; }
- Type: string
ListStringRequired
public string ListString { get; }
- Type: string
MapRequired
public string Map { get; }
- Type: string
MapBoolRequired
public string MapBool { get; }
- Type: string
MapNumberRequired
public string MapNumber { get; }
- Type: string
MapStringRequired
public string MapString { get; }
- Type: string
NumberRequired
public string Number { get; }
- Type: string
SetRequired
public string Set { get; }
- Type: string
SetBoolRequired
public string SetBool { get; }
- Type: string
SetNumberRequired
public string SetNumber { get; }
- Type: string
SetStringRequired
public string SetString { get; }
- Type: string
StringRequired
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.
ContextRequired
- Type: IResolveContext
IAspect
- Implemented By: 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.
NodeRequired
- 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.
LeftRequired
- Type: object
RightRequired
- Type: object
IInterpolatingParent
- Implemented By: AnyMapList, BooleanMapList, ComplexComputedList, ComplexObject, MapList, NumberMapList, StringMapList, TerraformDataSource, TerraformResource, IInterpolatingParent
Methods
| Name | Description |
|---|---|
InterpolationForAttribute | No description. |
InterpolationForAttribute
private IResolvable InterpolationForAttribute(string TerraformAttribute)
TerraformAttributeRequired
- 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.
ContextRequired
- Type: IResolveContext
IManifest
Properties
| Name | Type | Description |
|---|---|---|
Stacks | System.Collections.Generic.IDictionary< string, StackManifest> | No description. |
Version | string | No description. |
StacksRequired
public System.Collections.Generic.IDictionary< string, StackManifest > Stacks { get; }
- Type: System.Collections.Generic.IDictionary< string, StackManifest>
VersionRequired
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.
ContextRequired
- 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.
InputRequired
- Type: object
ContextRequired
- 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.
ContextRequired
- 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. |
CreationStackRequired
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.
PostProcessorRequired
- Type: IPostProcessor
Resolve
private object Resolve(object X)
Resolve an inner object.
XRequired
- 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. |
PreparingRequired
public bool Preparing { get; }
- Type: bool
True when we are still preparing, false if we're rendering the final output.
ScopeRequired
public IConstruct Scope { get; }
- Type: Constructs.IConstruct
The scope from which resolution has been initiated.
IgnoreEscapesOptional
public bool IgnoreEscapes { get; set; }
- Type: bool
True when ${} should not be parsed, and treated as literals.
IteratorContextOptional
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.
SuppressBracesOptional
public bool SuppressBraces { get; set; }
- Type: bool
True when ${} should be ommitted (because already inside them), false otherwise.
WarnEscapesOptional
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. |
NodeRequired
public Node Node { get; }
- Type: Constructs.Node
The tree node.
StackRequired
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.
SessionRequired
- 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.
ContextRequired
- 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. |
ManifestRequired
public Manifest Manifest { get; }
- Type: Manifest
OutdirRequired
public string Outdir { get; }
- Type: string
The output directory for this synthesis session.
SkipValidationOptional
public bool SkipValidation { get; }
- Type: bool
ITerraformAddressable
- Implemented By: AnyListList, AnyListMap, AnyMap, AnyMapList, BooleanList, BooleanListList, BooleanListMap, BooleanMap, BooleanMapList, ComplexComputedList, ComplexList, ComplexMap, ComplexObject, DataTerraformRemoteState, DataTerraformRemoteStateArtifactory, DataTerraformRemoteStateAzurerm, DataTerraformRemoteStateConsul, DataTerraformRemoteStateCos, DataTerraformRemoteStateEtcd, DataTerraformRemoteStateEtcdV3, DataTerraformRemoteStateGcs, DataTerraformRemoteStateHttp, DataTerraformRemoteStateLocal, DataTerraformRemoteStateManta, 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. |
FqnRequired
public string Fqn { get; }
- Type: string
ITerraformDependable
Extends: ITerraformAddressable
Implemented By: TerraformDataSource, TerraformHclModule, TerraformModule, TerraformResource, ITerraformDependable
Properties
| Name | Type | Description |
|---|---|---|
Fqn | string | No description. |
FqnRequired
public string Fqn { get; }
- Type: string
ITerraformIterator
- Implemented By: ListTerraformIterator, MapTerraformIterator, TerraformIterator, ITerraformIterator
ITerraformResource
- Implemented By: TerraformDataSource, TerraformResource, ITerraformResource
Methods
| Name | Description |
|---|---|
InterpolationForAttribute | No description. |
InterpolationForAttribute
private IResolvable InterpolationForAttribute(string TerraformAttribute)
TerraformAttributeRequired
- 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. |
FqnRequired
public string Fqn { get; }
- Type: string
FriendlyUniqueIdRequired
public string FriendlyUniqueId { get; }
- Type: string
TerraformResourceTypeRequired
public string TerraformResourceType { get; }
- Type: string
CountOptional
public object Count { get; set; }
- Type: object
DependsOnOptional
public string[] DependsOn { get; set; }
- Type: string[]
ForEachOptional
public ITerraformIterator ForEach { get; set; }
- Type: ITerraformIterator
LifecycleOptional
public TerraformResourceLifecycle Lifecycle { get; set; }
ProviderOptional
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.
TRequired
- 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.
LRequired
- Type: string[]
ContextRequired
- Type: IResolveContext
ResolveMap
private object ResolveMap(System.Collections.Generic.IDictionary< string, object > M, IResolveContext Context)
Resolve a tokenized map.
MRequired
- Type: System.Collections.Generic.IDictionary< string, object >
ContextRequired
- Type: IResolveContext
ResolveNumberList
private object ResolveNumberList(double[] L, IResolveContext Context)
Resolve a tokenized number list.
LRequired
- Type: double[]
ContextRequired
- Type: IResolveContext
ResolveString
private object ResolveString(TokenizedStringFragments S, IResolveContext Context)
Resolve a string with at least one stringified token in it.
(May use concatenation)
SRequired
- Type: TokenizedStringFragments
ContextRequired
- Type: IResolveContext
ResolveToken
private object ResolveToken(IResolvable T, IResolveContext Context, IPostProcessor PostProcessor)
Resolve a single token.
TRequired
- Type: IResolvable
ContextRequired
- Type: IResolveContext
PostProcessorRequired
- Type: IPostProcessor