Terraform
API Reference for Go
Constructs
App
Represents a cdktf application.
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewApp(options AppOptions) App
Name | Type | Description |
---|---|---|
options | AppOptions | configuration options. |
options
Optional
- Type: AppOptions
configuration options.
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
func ToString() *string
Returns a string representation of this construct.
CrossStackReference
func CrossStackReference(fromStack TerraformStack, toStack TerraformStack, identifier *string) *string
Creates a reference from one stack to another, invoked on prepareStack since it creates extra resources.
fromStack
Required
- Type: TerraformStack
toStack
Required
- Type: TerraformStack
identifier
Required
- Type: *string
Synth
func 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
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.App_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsApp
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.App_IsApp(x interface{}) *bool
x
Required
- Type: interface{}
Of
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.App_Of(construct IConstruct) App
construct
Required
- Type: github.com/aws/constructs-go/constructs/v10.IConstruct
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
Manifest | Manifest | No description. |
Outdir | *string | The output directory into which resources will be synthesized. |
SkipValidation | *bool | Whether to skip the validation during synthesis of the app. |
TargetStackId | *string | The stack which will be synthesized. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
Manifest
Required
func Manifest() Manifest
- Type: Manifest
Outdir
Required
func Outdir() *string
- Type: *string
The output directory into which resources will be synthesized.
SkipValidation
Optional
func SkipValidation() *bool
- Type: *bool
Whether to skip the validation during synthesis of the app.
TargetStackId
Optional
func TargetStackId() *string
- Type: *string
The stack which will be synthesized.
If not set, all stacks will be synthesized.
ArtifactoryBackend
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewArtifactoryBackend(scope Construct, props ArtifactoryBackendProps) ArtifactoryBackend
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
props | ArtifactoryBackendProps | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
props
Required
- Type: ArtifactoryBackendProps
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
func GetRemoteStateDataSource(scope Construct, name *string, _fromStack *string) TerraformRemoteState
Creates a TerraformRemoteState resource that accesses this backend.
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
name
Required
- Type: *string
_fromStack
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.ArtifactoryBackend_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.ArtifactoryBackend_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
IsBackend
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.ArtifactoryBackend_IsBackend(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
AzurermBackend
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewAzurermBackend(scope Construct, props AzurermBackendProps) AzurermBackend
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
props | AzurermBackendProps | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
props
Required
- Type: AzurermBackendProps
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
func GetRemoteStateDataSource(scope Construct, name *string, _fromStack *string) TerraformRemoteState
Creates a TerraformRemoteState resource that accesses this backend.
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
name
Required
- Type: *string
_fromStack
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.AzurermBackend_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.AzurermBackend_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
IsBackend
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.AzurermBackend_IsBackend(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
CloudBackend
The Cloud Backend synthesizes a {@link https://www.terraform.io/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
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewCloudBackend(scope Construct, props CloudBackendProps) CloudBackend
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
props | CloudBackendProps | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
props
Required
- Type: CloudBackendProps
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
func GetRemoteStateDataSource(scope Construct, name *string, _fromStack *string) TerraformRemoteState
Creates a TerraformRemoteState resource that accesses this backend.
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
name
Required
- Type: *string
_fromStack
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.CloudBackend_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.CloudBackend_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
IsBackend
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.CloudBackend_IsBackend(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
ConsulBackend
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewConsulBackend(scope Construct, props ConsulBackendProps) ConsulBackend
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
props | ConsulBackendProps | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
props
Required
- Type: ConsulBackendProps
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
func GetRemoteStateDataSource(scope Construct, name *string, _fromStack *string) TerraformRemoteState
Creates a TerraformRemoteState resource that accesses this backend.
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
name
Required
- Type: *string
_fromStack
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.ConsulBackend_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.ConsulBackend_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
IsBackend
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.ConsulBackend_IsBackend(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
CosBackend
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewCosBackend(scope Construct, props CosBackendProps) CosBackend
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
props | CosBackendProps | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
props
Required
- Type: CosBackendProps
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
func GetRemoteStateDataSource(scope Construct, name *string, _fromStack *string) TerraformRemoteState
Creates a TerraformRemoteState resource that accesses this backend.
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
name
Required
- Type: *string
_fromStack
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.CosBackend_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.CosBackend_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
IsBackend
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.CosBackend_IsBackend(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
DataTerraformRemoteState
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewDataTerraformRemoteState(scope Construct, id *string, config DataTerraformRemoteStateRemoteConfig) DataTerraformRemoteState
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
config | DataTerraformRemoteStateRemoteConfig | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
config
Required
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
Get
func Get(output *string) IResolvable
output
Required
- Type: *string
GetBoolean
func GetBoolean(output *string) IResolvable
output
Required
- Type: *string
GetList
func GetList(output *string) *[]*string
output
Required
- Type: *string
GetNumber
func GetNumber(output *string) *f64
output
Required
- Type: *string
GetString
func GetString(output *string) *string
output
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteState_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteState_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | *string | No description. |
TfResourceType
Required
func TfResourceType() *string
- Type: *string
DataTerraformRemoteStateArtifactory
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewDataTerraformRemoteStateArtifactory(scope Construct, id *string, config DataTerraformRemoteStateArtifactoryConfig) DataTerraformRemoteStateArtifactory
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
config | DataTerraformRemoteStateArtifactoryConfig | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
config
Required
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
Get
func Get(output *string) IResolvable
output
Required
- Type: *string
GetBoolean
func GetBoolean(output *string) IResolvable
output
Required
- Type: *string
GetList
func GetList(output *string) *[]*string
output
Required
- Type: *string
GetNumber
func GetNumber(output *string) *f64
output
Required
- Type: *string
GetString
func GetString(output *string) *string
output
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateArtifactory_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateArtifactory_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | *string | No description. |
TfResourceType
Required
func TfResourceType() *string
- Type: *string
DataTerraformRemoteStateAzurerm
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewDataTerraformRemoteStateAzurerm(scope Construct, id *string, config DataTerraformRemoteStateAzurermConfig) DataTerraformRemoteStateAzurerm
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
config | DataTerraformRemoteStateAzurermConfig | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
config
Required
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
Get
func Get(output *string) IResolvable
output
Required
- Type: *string
GetBoolean
func GetBoolean(output *string) IResolvable
output
Required
- Type: *string
GetList
func GetList(output *string) *[]*string
output
Required
- Type: *string
GetNumber
func GetNumber(output *string) *f64
output
Required
- Type: *string
GetString
func GetString(output *string) *string
output
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateAzurerm_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateAzurerm_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | *string | No description. |
TfResourceType
Required
func TfResourceType() *string
- Type: *string
DataTerraformRemoteStateConsul
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewDataTerraformRemoteStateConsul(scope Construct, id *string, config DataTerraformRemoteStateConsulConfig) DataTerraformRemoteStateConsul
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
config | DataTerraformRemoteStateConsulConfig | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
config
Required
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
Get
func Get(output *string) IResolvable
output
Required
- Type: *string
GetBoolean
func GetBoolean(output *string) IResolvable
output
Required
- Type: *string
GetList
func GetList(output *string) *[]*string
output
Required
- Type: *string
GetNumber
func GetNumber(output *string) *f64
output
Required
- Type: *string
GetString
func GetString(output *string) *string
output
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateConsul_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateConsul_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | *string | No description. |
TfResourceType
Required
func TfResourceType() *string
- Type: *string
DataTerraformRemoteStateCos
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewDataTerraformRemoteStateCos(scope Construct, id *string, config DataTerraformRemoteStateCosConfig) DataTerraformRemoteStateCos
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
config | DataTerraformRemoteStateCosConfig | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
config
Required
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
Get
func Get(output *string) IResolvable
output
Required
- Type: *string
GetBoolean
func GetBoolean(output *string) IResolvable
output
Required
- Type: *string
GetList
func GetList(output *string) *[]*string
output
Required
- Type: *string
GetNumber
func GetNumber(output *string) *f64
output
Required
- Type: *string
GetString
func GetString(output *string) *string
output
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateCos_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateCos_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | *string | No description. |
TfResourceType
Required
func TfResourceType() *string
- Type: *string
DataTerraformRemoteStateEtcd
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewDataTerraformRemoteStateEtcd(scope Construct, id *string, config DataTerraformRemoteStateEtcdConfig) DataTerraformRemoteStateEtcd
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
config | DataTerraformRemoteStateEtcdConfig | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
config
Required
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
Get
func Get(output *string) IResolvable
output
Required
- Type: *string
GetBoolean
func GetBoolean(output *string) IResolvable
output
Required
- Type: *string
GetList
func GetList(output *string) *[]*string
output
Required
- Type: *string
GetNumber
func GetNumber(output *string) *f64
output
Required
- Type: *string
GetString
func GetString(output *string) *string
output
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateEtcd_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateEtcd_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | *string | No description. |
TfResourceType
Required
func TfResourceType() *string
- Type: *string
DataTerraformRemoteStateEtcdV3
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewDataTerraformRemoteStateEtcdV3(scope Construct, id *string, config DataTerraformRemoteStateEtcdV3Config) DataTerraformRemoteStateEtcdV3
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
config | DataTerraformRemoteStateEtcdV3Config | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
config
Required
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
Get
func Get(output *string) IResolvable
output
Required
- Type: *string
GetBoolean
func GetBoolean(output *string) IResolvable
output
Required
- Type: *string
GetList
func GetList(output *string) *[]*string
output
Required
- Type: *string
GetNumber
func GetNumber(output *string) *f64
output
Required
- Type: *string
GetString
func GetString(output *string) *string
output
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateEtcdV3_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateEtcdV3_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | *string | No description. |
TfResourceType
Required
func TfResourceType() *string
- Type: *string
DataTerraformRemoteStateGcs
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewDataTerraformRemoteStateGcs(scope Construct, id *string, config DataTerraformRemoteStateGcsConfig) DataTerraformRemoteStateGcs
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
config | DataTerraformRemoteStateGcsConfig | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
config
Required
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
Get
func Get(output *string) IResolvable
output
Required
- Type: *string
GetBoolean
func GetBoolean(output *string) IResolvable
output
Required
- Type: *string
GetList
func GetList(output *string) *[]*string
output
Required
- Type: *string
GetNumber
func GetNumber(output *string) *f64
output
Required
- Type: *string
GetString
func GetString(output *string) *string
output
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateGcs_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateGcs_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | *string | No description. |
TfResourceType
Required
func TfResourceType() *string
- Type: *string
DataTerraformRemoteStateHttp
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewDataTerraformRemoteStateHttp(scope Construct, id *string, config DataTerraformRemoteStateHttpConfig) DataTerraformRemoteStateHttp
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
config | DataTerraformRemoteStateHttpConfig | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
config
Required
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
Get
func Get(output *string) IResolvable
output
Required
- Type: *string
GetBoolean
func GetBoolean(output *string) IResolvable
output
Required
- Type: *string
GetList
func GetList(output *string) *[]*string
output
Required
- Type: *string
GetNumber
func GetNumber(output *string) *f64
output
Required
- Type: *string
GetString
func GetString(output *string) *string
output
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateHttp_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateHttp_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | *string | No description. |
TfResourceType
Required
func TfResourceType() *string
- Type: *string
DataTerraformRemoteStateLocal
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewDataTerraformRemoteStateLocal(scope Construct, id *string, config DataTerraformRemoteStateLocalConfig) DataTerraformRemoteStateLocal
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
config | DataTerraformRemoteStateLocalConfig | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
config
Required
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
Get
func Get(output *string) IResolvable
output
Required
- Type: *string
GetBoolean
func GetBoolean(output *string) IResolvable
output
Required
- Type: *string
GetList
func GetList(output *string) *[]*string
output
Required
- Type: *string
GetNumber
func GetNumber(output *string) *f64
output
Required
- Type: *string
GetString
func GetString(output *string) *string
output
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateLocal_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateLocal_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | *string | No description. |
TfResourceType
Required
func TfResourceType() *string
- Type: *string
DataTerraformRemoteStateManta
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewDataTerraformRemoteStateManta(scope Construct, id *string, config DataTerraformRemoteStateMantaConfig) DataTerraformRemoteStateManta
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
config | DataTerraformRemoteStateMantaConfig | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
config
Required
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
Get
func Get(output *string) IResolvable
output
Required
- Type: *string
GetBoolean
func GetBoolean(output *string) IResolvable
output
Required
- Type: *string
GetList
func GetList(output *string) *[]*string
output
Required
- Type: *string
GetNumber
func GetNumber(output *string) *f64
output
Required
- Type: *string
GetString
func GetString(output *string) *string
output
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateManta_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateManta_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | *string | No description. |
TfResourceType
Required
func TfResourceType() *string
- Type: *string
DataTerraformRemoteStateOss
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewDataTerraformRemoteStateOss(scope Construct, id *string, config DataTerraformRemoteStateOssConfig) DataTerraformRemoteStateOss
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
config | DataTerraformRemoteStateOssConfig | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
config
Required
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
Get
func Get(output *string) IResolvable
output
Required
- Type: *string
GetBoolean
func GetBoolean(output *string) IResolvable
output
Required
- Type: *string
GetList
func GetList(output *string) *[]*string
output
Required
- Type: *string
GetNumber
func GetNumber(output *string) *f64
output
Required
- Type: *string
GetString
func GetString(output *string) *string
output
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateOss_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateOss_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | *string | No description. |
TfResourceType
Required
func TfResourceType() *string
- Type: *string
DataTerraformRemoteStatePg
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewDataTerraformRemoteStatePg(scope Construct, id *string, config DataTerraformRemoteStatePgConfig) DataTerraformRemoteStatePg
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
config | DataTerraformRemoteStatePgConfig | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
config
Required
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
Get
func Get(output *string) IResolvable
output
Required
- Type: *string
GetBoolean
func GetBoolean(output *string) IResolvable
output
Required
- Type: *string
GetList
func GetList(output *string) *[]*string
output
Required
- Type: *string
GetNumber
func GetNumber(output *string) *f64
output
Required
- Type: *string
GetString
func GetString(output *string) *string
output
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStatePg_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStatePg_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | *string | No description. |
TfResourceType
Required
func TfResourceType() *string
- Type: *string
DataTerraformRemoteStateS3
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewDataTerraformRemoteStateS3(scope Construct, id *string, config DataTerraformRemoteStateS3Config) DataTerraformRemoteStateS3
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
config | DataTerraformRemoteStateS3Config | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
config
Required
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
Get
func Get(output *string) IResolvable
output
Required
- Type: *string
GetBoolean
func GetBoolean(output *string) IResolvable
output
Required
- Type: *string
GetList
func GetList(output *string) *[]*string
output
Required
- Type: *string
GetNumber
func GetNumber(output *string) *f64
output
Required
- Type: *string
GetString
func GetString(output *string) *string
output
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateS3_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateS3_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | *string | No description. |
TfResourceType
Required
func TfResourceType() *string
- Type: *string
DataTerraformRemoteStateSwift
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewDataTerraformRemoteStateSwift(scope Construct, id *string, config DataTerraformRemoteStateSwiftConfig) DataTerraformRemoteStateSwift
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
config | DataTerraformRemoteStateSwiftConfig | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
config
Required
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
Get
func Get(output *string) IResolvable
output
Required
- Type: *string
GetBoolean
func GetBoolean(output *string) IResolvable
output
Required
- Type: *string
GetList
func GetList(output *string) *[]*string
output
Required
- Type: *string
GetNumber
func GetNumber(output *string) *f64
output
Required
- Type: *string
GetString
func GetString(output *string) *string
output
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateSwift_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.DataTerraformRemoteStateSwift_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | *string | No description. |
TfResourceType
Required
func TfResourceType() *string
- Type: *string
EtcdBackend
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewEtcdBackend(scope Construct, props EtcdBackendProps) EtcdBackend
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
props | EtcdBackendProps | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
props
Required
- Type: EtcdBackendProps
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
func GetRemoteStateDataSource(scope Construct, name *string, _fromStack *string) TerraformRemoteState
Creates a TerraformRemoteState resource that accesses this backend.
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
name
Required
- Type: *string
_fromStack
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.EtcdBackend_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.EtcdBackend_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
IsBackend
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.EtcdBackend_IsBackend(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
EtcdV3Backend
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewEtcdV3Backend(scope Construct, props EtcdV3BackendProps) EtcdV3Backend
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
props | EtcdV3BackendProps | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
props
Required
- Type: EtcdV3BackendProps
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
func GetRemoteStateDataSource(scope Construct, name *string, _fromStack *string) TerraformRemoteState
Creates a TerraformRemoteState resource that accesses this backend.
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
name
Required
- Type: *string
_fromStack
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.EtcdV3Backend_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.EtcdV3Backend_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
IsBackend
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.EtcdV3Backend_IsBackend(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
GcsBackend
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewGcsBackend(scope Construct, props GcsBackendProps) GcsBackend
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
props | GcsBackendProps | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
props
Required
- Type: GcsBackendProps
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
func GetRemoteStateDataSource(scope Construct, name *string, _fromStack *string) TerraformRemoteState
Creates a TerraformRemoteState resource that accesses this backend.
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
name
Required
- Type: *string
_fromStack
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.GcsBackend_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.GcsBackend_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
IsBackend
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.GcsBackend_IsBackend(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
HttpBackend
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewHttpBackend(scope Construct, props HttpBackendProps) HttpBackend
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
props | HttpBackendProps | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
props
Required
- Type: HttpBackendProps
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
func GetRemoteStateDataSource(scope Construct, name *string, _fromStack *string) TerraformRemoteState
Creates a TerraformRemoteState resource that accesses this backend.
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
name
Required
- Type: *string
_fromStack
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.HttpBackend_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.HttpBackend_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
IsBackend
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.HttpBackend_IsBackend(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
LocalBackend
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewLocalBackend(scope Construct, props LocalBackendProps) LocalBackend
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
props | LocalBackendProps | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
props
Optional
- Type: LocalBackendProps
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
func GetRemoteStateDataSource(scope Construct, name *string, fromStack *string) TerraformRemoteState
Creates a TerraformRemoteState resource that accesses this backend.
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
name
Required
- Type: *string
fromStack
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.LocalBackend_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.LocalBackend_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
IsBackend
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.LocalBackend_IsBackend(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
MantaBackend
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewMantaBackend(scope Construct, props MantaBackendProps) MantaBackend
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
props | MantaBackendProps | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
props
Required
- Type: MantaBackendProps
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
func GetRemoteStateDataSource(scope Construct, name *string, _fromStack *string) TerraformRemoteState
Creates a TerraformRemoteState resource that accesses this backend.
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
name
Required
- Type: *string
_fromStack
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.MantaBackend_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.MantaBackend_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
IsBackend
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.MantaBackend_IsBackend(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
OssBackend
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewOssBackend(scope Construct, props OssBackendProps) OssBackend
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
props | OssBackendProps | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
props
Required
- Type: OssBackendProps
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
func GetRemoteStateDataSource(scope Construct, name *string, _fromStack *string) TerraformRemoteState
Creates a TerraformRemoteState resource that accesses this backend.
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
name
Required
- Type: *string
_fromStack
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.OssBackend_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.OssBackend_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
IsBackend
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.OssBackend_IsBackend(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
PgBackend
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewPgBackend(scope Construct, props PgBackendProps) PgBackend
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
props | PgBackendProps | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
props
Required
- Type: PgBackendProps
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
func GetRemoteStateDataSource(scope Construct, name *string, _fromStack *string) TerraformRemoteState
Creates a TerraformRemoteState resource that accesses this backend.
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
name
Required
- Type: *string
_fromStack
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.PgBackend_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.PgBackend_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
IsBackend
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.PgBackend_IsBackend(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
RemoteBackend
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewRemoteBackend(scope Construct, props RemoteBackendProps) RemoteBackend
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
props | RemoteBackendProps | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
props
Required
- Type: RemoteBackendProps
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
func GetRemoteStateDataSource(scope Construct, name *string, _fromStack *string) TerraformRemoteState
Creates a TerraformRemoteState resource that accesses this backend.
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
name
Required
- Type: *string
_fromStack
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.RemoteBackend_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.RemoteBackend_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
IsBackend
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.RemoteBackend_IsBackend(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
Resource
- Implements: IResource
A construct which represents a resource.
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewResource(scope Construct, id *string) Resource
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
ToString
ToString
func ToString() *string
Returns a string representation of this construct.
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsConstruct
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Resource_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
Stack | TerraformStack | The stack in which this resource is defined. |
Node
Required
Node
- Deprecated: - Please use Construct from the constructs package instead.
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
Stack
Required
Stack
- Deprecated: - Please use Construct from the constructs package instead.
func Stack() TerraformStack
- Type: TerraformStack
The stack in which this resource is defined.
S3Backend
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewS3Backend(scope Construct, props S3BackendProps) S3Backend
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
props | S3BackendProps | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
props
Required
- Type: S3BackendProps
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
func GetRemoteStateDataSource(scope Construct, name *string, _fromStack *string) TerraformRemoteState
Creates a TerraformRemoteState resource that accesses this backend.
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
name
Required
- Type: *string
_fromStack
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.S3Backend_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.S3Backend_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
IsBackend
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.S3Backend_IsBackend(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
SwiftBackend
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewSwiftBackend(scope Construct, props SwiftBackendProps) SwiftBackend
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
props | SwiftBackendProps | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
props
Required
- Type: SwiftBackendProps
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
func GetRemoteStateDataSource(scope Construct, name *string, _fromStack *string) TerraformRemoteState
Creates a TerraformRemoteState resource that accesses this backend.
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
name
Required
- Type: *string
_fromStack
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.SwiftBackend_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.SwiftBackend_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
IsBackend
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.SwiftBackend_IsBackend(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
TerraformAsset
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewTerraformAsset(scope Construct, id *string, config TerraformAssetConfig) TerraformAsset
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
config | TerraformAssetConfig | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
config
Required
- Type: TerraformAssetConfig
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
ToString
func ToString() *string
Returns a string representation of this construct.
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformAsset_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
FileName | *string | Name of the asset. |
Path | *string | The path relative to the root of the terraform directory in posix format Use this property to reference the asset. |
AssetHash | *string | No description. |
Type | AssetType | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
FileName
Required
func FileName() *string
- Type: *string
Name of the asset.
Path
Required
func Path() *string
- Type: *string
The path relative to the root of the terraform directory in posix format Use this property to reference the asset.
AssetHash
Required
func AssetHash() *string
- Type: *string
Type
Required
func Type() AssetType
- Type: AssetType
TerraformBackend
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewTerraformBackend(scope Construct, id *string, name *string) TerraformBackend
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
name | *string | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
name
Required
- Type: *string
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
ToMetadata | No description. |
ToTerraform | Adds this resource to the terraform JSON output. |
GetRemoteStateDataSource | Creates a TerraformRemoteState resource that accesses this backend. |
ToString
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
GetRemoteStateDataSource
func GetRemoteStateDataSource(scope Construct, name *string, fromStack *string) TerraformRemoteState
Creates a TerraformRemoteState resource that accesses this backend.
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
name
Required
- Type: *string
fromStack
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsBackend | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformBackend_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformBackend_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
IsBackend
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformBackend_IsBackend(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
TerraformDataSource
- Implements: ITerraformResource, ITerraformDependable, IInterpolatingParent
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewTerraformDataSource(scope Construct, id *string, config TerraformResourceConfig) TerraformDataSource
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
config | TerraformResourceConfig | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
config
Required
- Type: TerraformResourceConfig
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
GetAnyMapAttribute
func GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{}
terraformAttribute
Required
- Type: *string
GetBooleanAttribute
func GetBooleanAttribute(terraformAttribute *string) IResolvable
terraformAttribute
Required
- Type: *string
GetBooleanMapAttribute
func GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool
terraformAttribute
Required
- Type: *string
GetListAttribute
func GetListAttribute(terraformAttribute *string) *[]*string
terraformAttribute
Required
- Type: *string
GetNumberAttribute
func GetNumberAttribute(terraformAttribute *string) *f64
terraformAttribute
Required
- Type: *string
GetNumberListAttribute
func GetNumberListAttribute(terraformAttribute *string) *[]*f64
terraformAttribute
Required
- Type: *string
GetNumberMapAttribute
func GetNumberMapAttribute(terraformAttribute *string) *map[string]*f64
terraformAttribute
Required
- Type: *string
GetStringAttribute
func GetStringAttribute(terraformAttribute *string) *string
terraformAttribute
Required
- Type: *string
GetStringMapAttribute
func GetStringMapAttribute(terraformAttribute *string) *map[string]*string
terraformAttribute
Required
- Type: *string
InterpolationForAttribute
func InterpolationForAttribute(terraformAttribute *string) IResolvable
terraformAttribute
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsTerraformDataSource | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformDataSource_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformDataSource_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
IsTerraformDataSource
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformDataSource_IsTerraformDataSource(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
TerraformMetaArguments | *map[string]interface{} | No description. |
TerraformResourceType | *string | No description. |
TerraformGeneratorMetadata | TerraformProviderGeneratorMetadata | No description. |
Count | *f64 | No description. |
DependsOn | _[]_string | No description. |
ForEach | ITerraformIterator | No description. |
Lifecycle | TerraformResourceLifecycle | No description. |
Provider | TerraformProvider | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
TerraformMetaArguments
Required
func TerraformMetaArguments() *map[string]interface{}
- Type: *map[string]interface{}
TerraformResourceType
Required
func TerraformResourceType() *string
- Type: *string
TerraformGeneratorMetadata
Optional
func TerraformGeneratorMetadata() TerraformProviderGeneratorMetadata
Count
Optional
func Count() *f64
- Type: *f64
DependsOn
Optional
func DependsOn() *[]*string
- Type: _[]_string
ForEach
Optional
func ForEach() ITerraformIterator
- Type: ITerraformIterator
Lifecycle
Optional
func Lifecycle() TerraformResourceLifecycle
Provider
Optional
func Provider() TerraformProvider
- Type: TerraformProvider
TerraformElement
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewTerraformElement(scope Construct, id *string, elementType *string) TerraformElement
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
elementType | *string | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
elementType
Optional
- Type: *string
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
ToMetadata | No description. |
ToTerraform | No description. |
ToString
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformElement_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformElement_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
TerraformHclModule
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewTerraformHclModule(scope Construct, id *string, options TerraformHclModuleOptions) TerraformHclModule
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
options | TerraformHclModuleOptions | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
options
Required
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
AddProvider
func AddProvider(provider interface{})
provider
Required
- Type: interface{}
GetString
func GetString(output *string) *string
output
Required
- Type: *string
InterpolationForOutput
func InterpolationForOutput(moduleOutput *string) IResolvable
moduleOutput
Required
- Type: *string
Get
func Get(output *string) interface{}
output
Required
- Type: *string
GetBoolean
func GetBoolean(output *string) IResolvable
output
Required
- Type: *string
GetList
func GetList(output *string) *[]*string
output
Required
- Type: *string
GetNumber
func GetNumber(output *string) *f64
output
Required
- Type: *string
Set
func Set(variable *string, value interface{})
variable
Required
- Type: *string
value
Required
- Type: interface{}
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformHclModule_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformHclModule_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Source | *string | No description. |
Providers | *[]interface{} | No description. |
SkipAssetCreationFromLocalModules | *bool | No description. |
Version | *string | No description. |
DependsOn | _[]_string | No description. |
ForEach | ITerraformIterator | No description. |
Variables | *map[string]interface{} | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
Source
Required
func Source() *string
- Type: *string
Providers
Optional
func Providers() *[]interface{}
- Type: *[]interface{}
SkipAssetCreationFromLocalModules
Optional
func SkipAssetCreationFromLocalModules() *bool
- Type: *bool
Version
Optional
func Version() *string
- Type: *string
DependsOn
Optional
func DependsOn() *[]*string
- Type: _[]_string
ForEach
Optional
func ForEach() ITerraformIterator
- Type: ITerraformIterator
Variables
Optional
func Variables() *map[string]interface{}
- Type: *map[string]interface{}
TerraformLocal
- Implements: ITerraformAddressable
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewTerraformLocal(scope Construct, id *string, expression interface{}) TerraformLocal
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
expression | interface{} | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
expression
Required
- Type: interface{}
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformLocal_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformLocal_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
AsBoolean | IResolvable | No description. |
AsList | _[]_string | No description. |
AsNumber | *f64 | No description. |
AsString | *string | No description. |
Expression | interface{} | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
AsBoolean
Required
func AsBoolean() IResolvable
- Type: IResolvable
AsList
Required
func AsList() *[]*string
- Type: _[]_string
AsNumber
Required
func AsNumber() *f64
- Type: *f64
AsString
Required
func AsString() *string
- Type: *string
Expression
Required
func Expression() interface{}
- Type: interface{}
TerraformModule
- Implements: ITerraformDependable
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewTerraformModule(scope Construct, id *string, options TerraformModuleOptions) TerraformModule
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
options | TerraformModuleOptions | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
options
Required
- Type: TerraformModuleOptions
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
AddProvider
func AddProvider(provider interface{})
provider
Required
- Type: interface{}
GetString
func GetString(output *string) *string
output
Required
- Type: *string
InterpolationForOutput
func InterpolationForOutput(moduleOutput *string) IResolvable
moduleOutput
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformModule_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformModule_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Source | *string | No description. |
Providers | *[]interface{} | No description. |
SkipAssetCreationFromLocalModules | *bool | No description. |
Version | *string | No description. |
DependsOn | _[]_string | No description. |
ForEach | ITerraformIterator | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
Source
Required
func Source() *string
- Type: *string
Providers
Optional
func Providers() *[]interface{}
- Type: *[]interface{}
SkipAssetCreationFromLocalModules
Optional
func SkipAssetCreationFromLocalModules() *bool
- Type: *bool
Version
Optional
func Version() *string
- Type: *string
DependsOn
Optional
func DependsOn() *[]*string
- Type: _[]_string
ForEach
Optional
func ForEach() ITerraformIterator
- Type: ITerraformIterator
TerraformOutput
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewTerraformOutput(scope Construct, id *string, config TerraformOutputConfig) TerraformOutput
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
config | TerraformOutputConfig | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
config
Required
- Type: TerraformOutputConfig
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
ToMetadata | No description. |
ToTerraform | No description. |
ToString
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsTerrafromOutput | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformOutput_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformOutput_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
IsTerrafromOutput
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformOutput_IsTerrafromOutput(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
StaticId | *bool | No description. |
Value | interface{} | No description. |
DependsOn | *[]ITerraformDependable | No description. |
Description | *string | No description. |
Sensitive | *bool | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
StaticId
Required
func StaticId() *bool
- Type: *bool
Value
Required
func Value() interface{}
- Type: interface{}
DependsOn
Optional
func DependsOn() *[]ITerraformDependable
- Type: *[]ITerraformDependable
Description
Optional
func Description() *string
- Type: *string
Sensitive
Optional
func Sensitive() *bool
- Type: *bool
TerraformProvider
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewTerraformProvider(scope Construct, id *string, config TerraformProviderConfig) TerraformProvider
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
config | TerraformProviderConfig | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
config
Required
- Type: TerraformProviderConfig
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
ToMetadata | No description. |
ToTerraform | Adds this resource to the terraform JSON output. |
ToString
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
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
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformProvider_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformProvider_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
IsTerraformProvider
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformProvider_IsTerraformProvider(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
MetaAttributes | *map[string]interface{} | No description. |
TerraformResourceType | *string | No description. |
TerraformGeneratorMetadata | TerraformProviderGeneratorMetadata | No description. |
TerraformProviderSource | *string | No description. |
Alias | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
MetaAttributes
Required
func MetaAttributes() *map[string]interface{}
- Type: *map[string]interface{}
TerraformResourceType
Required
func TerraformResourceType() *string
- Type: *string
TerraformGeneratorMetadata
Optional
func TerraformGeneratorMetadata() TerraformProviderGeneratorMetadata
TerraformProviderSource
Optional
func TerraformProviderSource() *string
- Type: *string
Alias
Optional
func Alias() *string
- Type: *string
TerraformRemoteState
- Implements: ITerraformAddressable
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewTerraformRemoteState(scope Construct, id *string, backend *string, config DataTerraformRemoteStateConfig) TerraformRemoteState
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
backend | *string | No description. |
config | DataTerraformRemoteStateConfig | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
backend
Required
- Type: *string
config
Required
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
Get
func Get(output *string) IResolvable
output
Required
- Type: *string
GetBoolean
func GetBoolean(output *string) IResolvable
output
Required
- Type: *string
GetList
func GetList(output *string) *[]*string
output
Required
- Type: *string
GetNumber
func GetNumber(output *string) *f64
output
Required
- Type: *string
GetString
func GetString(output *string) *string
output
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformRemoteState_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformRemoteState_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
Constants
Name | Type | Description |
---|---|---|
TfResourceType | *string | No description. |
TfResourceType
Required
func TfResourceType() *string
- Type: *string
TerraformResource
- Implements: ITerraformResource, ITerraformDependable, IInterpolatingParent
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewTerraformResource(scope Construct, id *string, config TerraformResourceConfig) TerraformResource
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
config | TerraformResourceConfig | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
config
Required
- Type: TerraformResourceConfig
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
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
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
Adds this resource to the terraform JSON output.
GetAnyMapAttribute
func GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{}
terraformAttribute
Required
- Type: *string
GetBooleanAttribute
func GetBooleanAttribute(terraformAttribute *string) IResolvable
terraformAttribute
Required
- Type: *string
GetBooleanMapAttribute
func GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool
terraformAttribute
Required
- Type: *string
GetListAttribute
func GetListAttribute(terraformAttribute *string) *[]*string
terraformAttribute
Required
- Type: *string
GetNumberAttribute
func GetNumberAttribute(terraformAttribute *string) *f64
terraformAttribute
Required
- Type: *string
GetNumberListAttribute
func GetNumberListAttribute(terraformAttribute *string) *[]*f64
terraformAttribute
Required
- Type: *string
GetNumberMapAttribute
func GetNumberMapAttribute(terraformAttribute *string) *map[string]*f64
terraformAttribute
Required
- Type: *string
GetStringAttribute
func GetStringAttribute(terraformAttribute *string) *string
terraformAttribute
Required
- Type: *string
GetStringMapAttribute
func GetStringMapAttribute(terraformAttribute *string) *map[string]*string
terraformAttribute
Required
- Type: *string
InterpolationForAttribute
func InterpolationForAttribute(terraformAttribute *string) IResolvable
terraformAttribute
Required
- Type: *string
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsTerraformResource | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformResource_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformResource_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
IsTerraformResource
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformResource_IsTerraformResource(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
CdktfStack | TerraformStack | No description. |
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
TerraformMetaArguments | *map[string]interface{} | No description. |
TerraformResourceType | *string | No description. |
TerraformGeneratorMetadata | TerraformProviderGeneratorMetadata | No description. |
Connection | interface{} | No description. |
Count | *f64 | No description. |
DependsOn | _[]_string | No description. |
ForEach | ITerraformIterator | No description. |
Lifecycle | TerraformResourceLifecycle | No description. |
Provider | TerraformProvider | No description. |
Provisioners | *[]interface{} | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
TerraformMetaArguments
Required
func TerraformMetaArguments() *map[string]interface{}
- Type: *map[string]interface{}
TerraformResourceType
Required
func TerraformResourceType() *string
- Type: *string
TerraformGeneratorMetadata
Optional
func TerraformGeneratorMetadata() TerraformProviderGeneratorMetadata
Connection
Optional
func Connection() interface{}
- Type: interface{}
Count
Optional
func Count() *f64
- Type: *f64
DependsOn
Optional
func DependsOn() *[]*string
- Type: _[]_string
ForEach
Optional
func ForEach() ITerraformIterator
- Type: ITerraformIterator
Lifecycle
Optional
func Lifecycle() TerraformResourceLifecycle
Provider
Optional
func Provider() TerraformProvider
- Type: TerraformProvider
Provisioners
Optional
func Provisioners() *[]interface{}
- Type: *[]interface{}
TerraformStack
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewTerraformStack(scope Construct, id *string) TerraformStack
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddDependency | No description. |
AddOverride | No description. |
AllProviders | No description. |
DependsOn | No description. |
EnsureBackendExists | No description. |
GetLogicalId | No description. |
PrepareStack | No description. |
RegisterIncomingCrossStackReference | No description. |
RegisterOutgoingCrossStackReference | No description. |
RunAllValidations | Run all validations on the stack. |
ToTerraform | No description. |
ToString
func ToString() *string
Returns a string representation of this construct.
AddDependency
func AddDependency(dependency TerraformStack)
dependency
Required
- Type: TerraformStack
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
AllProviders
func AllProviders() *[]TerraformProvider
DependsOn
func DependsOn(stack TerraformStack) *bool
stack
Required
- Type: TerraformStack
EnsureBackendExists
func EnsureBackendExists() TerraformBackend
GetLogicalId
func GetLogicalId(tfElement interface{}) *string
tfElement
Required
- Type: interface{}
PrepareStack
func PrepareStack()
RegisterIncomingCrossStackReference
func RegisterIncomingCrossStackReference(fromStack TerraformStack) TerraformRemoteState
fromStack
Required
- Type: TerraformStack
RegisterOutgoingCrossStackReference
func RegisterOutgoingCrossStackReference(identifier *string) TerraformOutput
identifier
Required
- Type: *string
RunAllValidations
func RunAllValidations()
Run all validations on the stack.
ToTerraform
func ToTerraform() interface{}
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsStack | No description. |
Of | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformStack_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsStack
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformStack_IsStack(x interface{}) *bool
x
Required
- Type: interface{}
Of
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformStack_Of(construct IConstruct) TerraformStack
construct
Required
- Type: github.com/aws/constructs-go/constructs/v10.IConstruct
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
Dependencies | *[]TerraformStack | No description. |
Synthesizer | IStackSynthesizer | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
Dependencies
Required
func Dependencies() *[]TerraformStack
- Type: *[]TerraformStack
Synthesizer
Required
func Synthesizer() IStackSynthesizer
- Type: IStackSynthesizer
TerraformVariable
- Implements: ITerraformAddressable
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewTerraformVariable(scope Construct, id *string, config TerraformVariableConfig) TerraformVariable
Name | Type | Description |
---|---|---|
scope | github.com/aws/constructs-go/constructs/v10.Construct | No description. |
id | *string | No description. |
config | TerraformVariableConfig | No description. |
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.Construct
id
Required
- Type: *string
config
Required
- Type: TerraformVariableConfig
Methods
Name | Description |
---|---|
ToString | Returns a string representation of this construct. |
AddOverride | No description. |
OverrideLogicalId | Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. |
ToMetadata | No description. |
ToTerraform | No description. |
AddValidation | No description. |
SynthesizeAttributes | No description. |
ToString
func ToString() *string
Returns a string representation of this construct.
AddOverride
func AddOverride(path *string, value interface{})
path
Required
- Type: *string
value
Required
- Type: interface{}
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
newLogicalId
Required
- Type: *string
The new logical ID to use for this stack element.
ResetOverrideLogicalId
func ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}
AddValidation
func AddValidation(validation TerraformVariableValidationConfig)
validation
Required
SynthesizeAttributes
func SynthesizeAttributes() *map[string]interface{}
Static Functions
Name | Description |
---|---|
IsConstruct | Checks if x is a construct. |
IsTerraformElement | No description. |
IsConstruct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformVariable_IsConstruct(x interface{}) *bool
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
x
Required
- Type: interface{}
Any object.
IsTerraformElement
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformVariable_IsTerraformElement(x interface{}) *bool
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.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 | *f64 | No description. |
StringValue | *string | No description. |
Value | interface{} | No description. |
Default | interface{} | No description. |
Description | *string | No description. |
Nullable | *bool | No description. |
Sensitive | *bool | No description. |
Type | *string | No description. |
Validation | *[]TerraformVariableValidationConfig | No description. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
CdktfStack
Required
func CdktfStack() TerraformStack
- Type: TerraformStack
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
BooleanValue
Required
func BooleanValue() IResolvable
- Type: IResolvable
ListValue
Required
func ListValue() *[]*string
- Type: _[]_string
NumberValue
Required
func NumberValue() *f64
- Type: *f64
StringValue
Required
func StringValue() *string
- Type: *string
Value
Required
func Value() interface{}
- Type: interface{}
Default
Optional
func Default() interface{}
- Type: interface{}
Description
Optional
func Description() *string
- Type: *string
Nullable
Optional
func Nullable() *bool
- Type: *bool
Sensitive
Optional
func Sensitive() *bool
- Type: *bool
Type
Optional
func Type() *string
- Type: *string
Validation
Optional
func Validation() *[]TerraformVariableValidationConfig
- Type: *[]TerraformVariableValidationConfig
Structs
AppOptions
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.AppOptions {
Context: *map[string]interface{},
Outdir: *string,
SkipValidation: *bool,
StackTraces: *bool,
}
Properties
Name | Type | Description |
---|---|---|
Context | *map[string]interface{} | Additional context values for the application. |
Outdir | *string | The directory to output Terraform resources. |
SkipValidation | *bool | Whether to skip the validation during synthesis of the app. |
StackTraces | *bool | No description. |
Context
Optional
Context *map[string]interface{}
- Type: *map[string]interface{}
- 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)
.
Outdir
Optional
Outdir *string
- Type: *string
- Default: CDKTF_OUTDIR if defined, otherwise "cdktf.out"
The directory to output Terraform resources.
SkipValidation
Optional
SkipValidation *bool
- Type: *bool
- Default: false
Whether to skip the validation during synthesis of the app.
StackTraces
Optional
StackTraces *bool
- Type: *bool
ArtifactoryBackendProps
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://www.terraform.io/language/settings/backends/artifactory
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.ArtifactoryBackendProps {
Password: *string,
Repo: *string,
Subpath: *string,
Url: *string,
Username: *string,
}
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. |
Password
Required
Password *string
- Type: *string
(Required) - The password.
Repo
Required
Repo *string
- Type: *string
(Required) - The repository name.
Subpath
Required
Subpath *string
- Type: *string
(Required) - Path within the repository.
Url
Required
Url *string
- Type: *string
(Required) - The URL.
Note that this is the base url to artifactory not the full repo and subpath.
Username
Required
Username *string
- Type: *string
(Required) - The username.
AzurermBackendProps
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://www.terraform.io/language/settings/backends/azurerm
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.AzurermBackendProps {
ContainerName: *string,
Key: *string,
StorageAccountName: *string,
AccessKey: *string,
ClientCertificatePassword: *string,
ClientCertificatePath: *string,
ClientId: *string,
ClientSecret: *string,
Endpoint: *string,
Environment: *string,
MsiEndpoint: *string,
OidcRequestToken: *string,
OidcRequestUrl: *string,
ResourceGroupName: *string,
SasToken: *string,
Snapshot: *bool,
SubscriptionId: *string,
TenantId: *string,
UseAzureadAuth: *bool,
UseMicrosoftGraph: *bool,
UseMsi: *bool,
UseOidc: *bool,
}
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. |
ContainerName
Required
ContainerName *string
- Type: *string
(Required) The Name of the Storage Container within the Storage Account.
Key
Required
Key *string
- Type: *string
(Required) The name of the Blob used to retrieve/store Terraform's State file inside the Storage Container.
StorageAccountName
Required
StorageAccountName *string
- Type: *string
(Required) The Name of the Storage Account.
AccessKey
Optional
AccessKey *string
- Type: *string
access_key - (Optional) The Access Key used to access the Blob Storage Account.
This can also be sourced from the ARM_ACCESS_KEY environment variable.
ClientCertificatePassword
Optional
ClientCertificatePassword *string
- Type: *string
(Optional) The password associated with the Client Certificate specified in client_certificate_path.
This can also be sourced from the ARM_CLIENT_CERTIFICATE_PASSWORD environment variable.
ClientCertificatePath
Optional
ClientCertificatePath *string
- Type: *string
(Optional) The path to the PFX file used as the Client Certificate when authenticating as a Service Principal.
This can also be sourced from the ARM_CLIENT_CERTIFICATE_PATH environment variable.
ClientId
Optional
ClientId *string
- Type: *string
(Optional) The Client ID of the Service Principal.
This can also be sourced from the ARM_CLIENT_ID environment variable.
ClientSecret
Optional
ClientSecret *string
- Type: *string
(Optional) The Client Secret of the Service Principal.
This can also be sourced from the ARM_CLIENT_SECRET environment variable.
Endpoint
Optional
Endpoint *string
- Type: *string
(Optional) The Custom Endpoint for Azure Resource Manager. This can also be sourced from the ARM_ENDPOINT environment variable.
NOTE: An endpoint should only be configured when using Azure Stack.
Environment
Optional
Environment *string
- 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.
MsiEndpoint
Optional
MsiEndpoint *string
- Type: *string
(Optional) The path to a custom Managed Service Identity endpoint which is automatically determined if not specified.
This can also be sourced from the ARM_MSI_ENDPOINT environment variable.
OidcRequestToken
Optional
OidcRequestToken *string
- Type: *string
(Optional) The bearer token for the request to the OIDC provider.
This can also be sourced from the ARM_OIDC_REQUEST_TOKEN or ACTIONS_ID_TOKEN_REQUEST_TOKEN environment variables.
OidcRequestUrl
Optional
OidcRequestUrl *string
- 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.
ResourceGroupName
Optional
ResourceGroupName *string
- Type: *string
(Required) The Name of the Resource Group in which the Storage Account exists.
SasToken
Optional
SasToken *string
- Type: *string
(Optional) The SAS Token used to access the Blob Storage Account.
This can also be sourced from the ARM_SAS_TOKEN environment variable.
Snapshot
Optional
Snapshot *bool
- Type: *bool
(Optional) Should the Blob used to store the Terraform Statefile be snapshotted before use?
Defaults to false. This value can also be sourced from the ARM_SNAPSHOT environment variable.
SubscriptionId
Optional
SubscriptionId *string
- Type: *string
(Optional) The Subscription ID in which the Storage Account exists.
This can also be sourced from the ARM_SUBSCRIPTION_ID environment variable.
TenantId
Optional
TenantId *string
- Type: *string
(Optional) The Tenant ID in which the Subscription exists.
This can also be sourced from the ARM_TENANT_ID environment variable.
UseAzureadAuth
Optional
UseAzureadAuth *bool
- Type: *bool
(Optional) Should AzureAD Authentication be used to access the Blob Storage Account.
This can also be sourced from the ARM_USE_AZUREAD environment variable.
Note: When using AzureAD for Authentication to Storage you also need to ensure the Storage Blob Data Owner role is assigned.
UseMicrosoftGraph
Optional
UseMicrosoftGraph *bool
- Type: *bool
(Optional) Should MSAL be used for authentication instead of ADAL, and should Microsoft Graph be used instead of Azure Active Directory Graph?
Defaults to true.
Note: In Terraform 1.2 the Azure Backend uses MSAL (and Microsoft Graph) rather than ADAL (and Azure Active Directory Graph) for authentication by default - you can disable this by setting use_microsoft_graph to false. This setting will be removed in Terraform 1.3, due to Microsoft's deprecation of ADAL.
UseMsi
Optional
UseMsi *bool
- Type: *bool
(Optional) Should Managed Service Identity authentication be used?
This can also be sourced from the ARM_USE_MSI environment variable.
UseOidc
Optional
UseOidc *bool
- 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).
CloudBackendProps
The Cloud Backend synthesizes a {@link https://www.terraform.io/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://www.terraform.io/cli/cloud/settings#arguments
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.CloudBackendProps {
Organization: *string,
Workspaces: interface{},
Hostname: *string,
Token: *string,
}
Properties
Name | Type | Description |
---|---|---|
Organization | *string | The name of the organization containing the workspace(s) the current configuration should use. |
Workspaces | interface{} | A nested block that specifies which remote Terraform Cloud workspaces to use for the current configuration. |
Hostname | *string | The hostname of a Terraform Enterprise installation, if using Terraform Enterprise. |
Token | *string | The token used to authenticate with Terraform Cloud. |
Organization
Required
Organization *string
- Type: *string
The name of the organization containing the workspace(s) the current configuration should use.
Workspaces
Required
Workspaces interface{}
- Type: interface{}
A nested block that specifies which remote Terraform Cloud workspaces to use for the current configuration.
The workspaces block must contain exactly one of the following arguments, each denoting a strategy for how workspaces should be mapped:
Hostname
Optional
Hostname *string
- Type: *string
- Default: app.terraform.io
The hostname of a Terraform Enterprise installation, if using Terraform Enterprise.
Token
Optional
Token *string
- 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.
ConsulBackendProps
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://www.terraform.io/language/settings/backends/consul
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.ConsulBackendProps {
AccessToken: *string,
Path: *string,
Address: *string,
CaFile: *string,
CertFile: *string,
Datacenter: *string,
Gzip: *bool,
HttpAuth: *string,
KeyFile: *string,
Lock: *bool,
Scheme: *string,
}
Properties
Name | Type | Description |
---|---|---|
AccessToken | *string | (Required) Access token. |
Path | *string | (Required) Path in the Consul KV store. |
Address | *string | (Optional) DNS name and port of your Consul endpoint specified in the format dnsname:port. |
CaFile | *string | (Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate. |
CertFile | *string | (Optional) A path to a PEM-encoded certificate provided to the remote agent; |
Datacenter | *string | (Optional) The datacenter to use. |
Gzip | *bool | (Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed. |
HttpAuth | *string | (Optional) HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either user or user:pass. |
KeyFile | *string | (Optional) A path to a PEM-encoded private key, required if cert_file is specified. |
Lock | *bool | (Optional) false to disable locking. |
Scheme | *string | (Optional) Specifies what protocol to use when talking to the given address,either http or https. |
AccessToken
Required
AccessToken *string
- Type: *string
(Required) Access token.
Path
Required
Path *string
- Type: *string
(Required) Path in the Consul KV store.
Address
Optional
Address *string
- Type: *string
(Optional) DNS name and port of your Consul endpoint specified in the format dnsname:port.
Defaults to the local agent HTTP listener.
CaFile
Optional
CaFile *string
- Type: *string
(Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.
CertFile
Optional
CertFile *string
- Type: *string
(Optional) A path to a PEM-encoded certificate provided to the remote agent;
requires use of key_file.
Datacenter
Optional
Datacenter *string
- Type: *string
(Optional) The datacenter to use.
Defaults to that of the agent.
Gzip
Optional
Gzip *bool
- Type: *bool
(Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed.
HttpAuth
Optional
HttpAuth *string
- Type: *string
(Optional) HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either user or user:pass.
KeyFile
Optional
KeyFile *string
- Type: *string
(Optional) A path to a PEM-encoded private key, required if cert_file is specified.
Lock
Optional
Lock *bool
- Type: *bool
(Optional) false to disable locking.
This defaults to true, but will require session permissions with Consul and at least kv write permissions on $path/.lock to perform locking.
Scheme
Optional
Scheme *string
- 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.
CosBackendProps
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://www.terraform.io/language/settings/backends/cos
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.CosBackendProps {
Bucket: *string,
Acl: *string,
Encrypt: *bool,
Key: *string,
Prefix: *string,
Region: *string,
SecretId: *string,
SecretKey: *string,
}
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. |
Bucket
Required
Bucket *string
- Type: *string
(Required) The name of the COS bucket.
You shall manually create it first.
Acl
Optional
Acl *string
- Type: *string
(Optional) Object ACL to be applied to the state file, allows private and public-read.
Defaults to private.
Encrypt
Optional
Encrypt *bool
- 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.
Key
Optional
Key *string
- Type: *string
(Optional) The path for saving the state file in bucket.
Defaults to terraform.tfstate.
Prefix
Optional
Prefix *string
- Type: *string
(Optional) The directory for saving the state file in bucket.
Default to "env:".
Region
Optional
Region *string
- Type: *string
(Optional) The region of the COS bucket.
It supports environment variables TENCENTCLOUD_REGION.
SecretId
Optional
SecretId *string
- Type: *string
(Optional) Secret id of Tencent Cloud.
It supports environment variables TENCENTCLOUD_SECRET_ID.
SecretKey
Optional
SecretKey *string
- Type: *string
(Optional) Secret key of Tencent Cloud.
It supports environment variables TENCENTCLOUD_SECRET_KEY.
DataTerraformRemoteStateArtifactoryConfig
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.DataTerraformRemoteStateArtifactoryConfig {
Defaults: *map[string]interface{},
Workspace: *string,
Password: *string,
Repo: *string,
Subpath: *string,
Url: *string,
Username: *string,
}
Properties
Name | Type | Description |
---|---|---|
Defaults | *map[string]interface{} | 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. |
Defaults
Optional
Defaults *map[string]interface{}
- Type: *map[string]interface{}
Workspace
Optional
Workspace *string
- Type: *string
Password
Required
Password *string
- Type: *string
(Required) - The password.
Repo
Required
Repo *string
- Type: *string
(Required) - The repository name.
Subpath
Required
Subpath *string
- Type: *string
(Required) - Path within the repository.
Url
Required
Url *string
- Type: *string
(Required) - The URL.
Note that this is the base url to artifactory not the full repo and subpath.
Username
Required
Username *string
- Type: *string
(Required) - The username.
DataTerraformRemoteStateAzurermConfig
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.DataTerraformRemoteStateAzurermConfig {
Defaults: *map[string]interface{},
Workspace: *string,
ContainerName: *string,
Key: *string,
StorageAccountName: *string,
AccessKey: *string,
ClientCertificatePassword: *string,
ClientCertificatePath: *string,
ClientId: *string,
ClientSecret: *string,
Endpoint: *string,
Environment: *string,
MsiEndpoint: *string,
OidcRequestToken: *string,
OidcRequestUrl: *string,
ResourceGroupName: *string,
SasToken: *string,
Snapshot: *bool,
SubscriptionId: *string,
TenantId: *string,
UseAzureadAuth: *bool,
UseMicrosoftGraph: *bool,
UseMsi: *bool,
UseOidc: *bool,
}
Properties
Name | Type | Description |
---|---|---|
Defaults | *map[string]interface{} | 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. |
Defaults
Optional
Defaults *map[string]interface{}
- Type: *map[string]interface{}
Workspace
Optional
Workspace *string
- Type: *string
ContainerName
Required
ContainerName *string
- Type: *string
(Required) The Name of the Storage Container within the Storage Account.
Key
Required
Key *string
- Type: *string
(Required) The name of the Blob used to retrieve/store Terraform's State file inside the Storage Container.
StorageAccountName
Required
StorageAccountName *string
- Type: *string
(Required) The Name of the Storage Account.
AccessKey
Optional
AccessKey *string
- Type: *string
access_key - (Optional) The Access Key used to access the Blob Storage Account.
This can also be sourced from the ARM_ACCESS_KEY environment variable.
ClientCertificatePassword
Optional
ClientCertificatePassword *string
- Type: *string
(Optional) The password associated with the Client Certificate specified in client_certificate_path.
This can also be sourced from the ARM_CLIENT_CERTIFICATE_PASSWORD environment variable.
ClientCertificatePath
Optional
ClientCertificatePath *string
- Type: *string
(Optional) The path to the PFX file used as the Client Certificate when authenticating as a Service Principal.
This can also be sourced from the ARM_CLIENT_CERTIFICATE_PATH environment variable.
ClientId
Optional
ClientId *string
- Type: *string
(Optional) The Client ID of the Service Principal.
This can also be sourced from the ARM_CLIENT_ID environment variable.
ClientSecret
Optional
ClientSecret *string
- Type: *string
(Optional) The Client Secret of the Service Principal.
This can also be sourced from the ARM_CLIENT_SECRET environment variable.
Endpoint
Optional
Endpoint *string
- Type: *string
(Optional) The Custom Endpoint for Azure Resource Manager. This can also be sourced from the ARM_ENDPOINT environment variable.
NOTE: An endpoint should only be configured when using Azure Stack.
Environment
Optional
Environment *string
- 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.
MsiEndpoint
Optional
MsiEndpoint *string
- Type: *string
(Optional) The path to a custom Managed Service Identity endpoint which is automatically determined if not specified.
This can also be sourced from the ARM_MSI_ENDPOINT environment variable.
OidcRequestToken
Optional
OidcRequestToken *string
- Type: *string
(Optional) The bearer token for the request to the OIDC provider.
This can also be sourced from the ARM_OIDC_REQUEST_TOKEN or ACTIONS_ID_TOKEN_REQUEST_TOKEN environment variables.
OidcRequestUrl
Optional
OidcRequestUrl *string
- 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.
ResourceGroupName
Optional
ResourceGroupName *string
- Type: *string
(Required) The Name of the Resource Group in which the Storage Account exists.
SasToken
Optional
SasToken *string
- Type: *string
(Optional) The SAS Token used to access the Blob Storage Account.
This can also be sourced from the ARM_SAS_TOKEN environment variable.
Snapshot
Optional
Snapshot *bool
- Type: *bool
(Optional) Should the Blob used to store the Terraform Statefile be snapshotted before use?
Defaults to false. This value can also be sourced from the ARM_SNAPSHOT environment variable.
SubscriptionId
Optional
SubscriptionId *string
- Type: *string
(Optional) The Subscription ID in which the Storage Account exists.
This can also be sourced from the ARM_SUBSCRIPTION_ID environment variable.
TenantId
Optional
TenantId *string
- Type: *string
(Optional) The Tenant ID in which the Subscription exists.
This can also be sourced from the ARM_TENANT_ID environment variable.
UseAzureadAuth
Optional
UseAzureadAuth *bool
- Type: *bool
(Optional) Should AzureAD Authentication be used to access the Blob Storage Account.
This can also be sourced from the ARM_USE_AZUREAD environment variable.
Note: When using AzureAD for Authentication to Storage you also need to ensure the Storage Blob Data Owner role is assigned.
UseMicrosoftGraph
Optional
UseMicrosoftGraph *bool
- Type: *bool
(Optional) Should MSAL be used for authentication instead of ADAL, and should Microsoft Graph be used instead of Azure Active Directory Graph?
Defaults to true.
Note: In Terraform 1.2 the Azure Backend uses MSAL (and Microsoft Graph) rather than ADAL (and Azure Active Directory Graph) for authentication by default - you can disable this by setting use_microsoft_graph to false. This setting will be removed in Terraform 1.3, due to Microsoft's deprecation of ADAL.
UseMsi
Optional
UseMsi *bool
- Type: *bool
(Optional) Should Managed Service Identity authentication be used?
This can also be sourced from the ARM_USE_MSI environment variable.
UseOidc
Optional
UseOidc *bool
- 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
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.DataTerraformRemoteStateConfig {
Defaults: *map[string]interface{},
Workspace: *string,
}
Properties
Defaults
Optional
Defaults *map[string]interface{}
- Type: *map[string]interface{}
Workspace
Optional
Workspace *string
- Type: *string
DataTerraformRemoteStateConsulConfig
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.DataTerraformRemoteStateConsulConfig {
Defaults: *map[string]interface{},
Workspace: *string,
AccessToken: *string,
Path: *string,
Address: *string,
CaFile: *string,
CertFile: *string,
Datacenter: *string,
Gzip: *bool,
HttpAuth: *string,
KeyFile: *string,
Lock: *bool,
Scheme: *string,
}
Properties
Name | Type | Description |
---|---|---|
Defaults | *map[string]interface{} | No description. |
Workspace | *string | No description. |
AccessToken | *string | (Required) Access token. |
Path | *string | (Required) Path in the Consul KV store. |
Address | *string | (Optional) DNS name and port of your Consul endpoint specified in the format dnsname:port. |
CaFile | *string | (Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate. |
CertFile | *string | (Optional) A path to a PEM-encoded certificate provided to the remote agent; |
Datacenter | *string | (Optional) The datacenter to use. |
Gzip | *bool | (Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed. |
HttpAuth | *string | (Optional) HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either user or user:pass. |
KeyFile | *string | (Optional) A path to a PEM-encoded private key, required if cert_file is specified. |
Lock | *bool | (Optional) false to disable locking. |
Scheme | *string | (Optional) Specifies what protocol to use when talking to the given address,either http or https. |
Defaults
Optional
Defaults *map[string]interface{}
- Type: *map[string]interface{}
Workspace
Optional
Workspace *string
- Type: *string
AccessToken
Required
AccessToken *string
- Type: *string
(Required) Access token.
Path
Required
Path *string
- Type: *string
(Required) Path in the Consul KV store.
Address
Optional
Address *string
- Type: *string
(Optional) DNS name and port of your Consul endpoint specified in the format dnsname:port.
Defaults to the local agent HTTP listener.
CaFile
Optional
CaFile *string
- Type: *string
(Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.
CertFile
Optional
CertFile *string
- Type: *string
(Optional) A path to a PEM-encoded certificate provided to the remote agent;
requires use of key_file.
Datacenter
Optional
Datacenter *string
- Type: *string
(Optional) The datacenter to use.
Defaults to that of the agent.
Gzip
Optional
Gzip *bool
- Type: *bool
(Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed.
HttpAuth
Optional
HttpAuth *string
- Type: *string
(Optional) HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either user or user:pass.
KeyFile
Optional
KeyFile *string
- Type: *string
(Optional) A path to a PEM-encoded private key, required if cert_file is specified.
Lock
Optional
Lock *bool
- Type: *bool
(Optional) false to disable locking.
This defaults to true, but will require session permissions with Consul and at least kv write permissions on $path/.lock to perform locking.
Scheme
Optional
Scheme *string
- 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
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.DataTerraformRemoteStateCosConfig {
Defaults: *map[string]interface{},
Workspace: *string,
Bucket: *string,
Acl: *string,
Encrypt: *bool,
Key: *string,
Prefix: *string,
Region: *string,
SecretId: *string,
SecretKey: *string,
}
Properties
Name | Type | Description |
---|---|---|
Defaults | *map[string]interface{} | 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. |
Defaults
Optional
Defaults *map[string]interface{}
- Type: *map[string]interface{}
Workspace
Optional
Workspace *string
- Type: *string
Bucket
Required
Bucket *string
- Type: *string
(Required) The name of the COS bucket.
You shall manually create it first.
Acl
Optional
Acl *string
- Type: *string
(Optional) Object ACL to be applied to the state file, allows private and public-read.
Defaults to private.
Encrypt
Optional
Encrypt *bool
- 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.
Key
Optional
Key *string
- Type: *string
(Optional) The path for saving the state file in bucket.
Defaults to terraform.tfstate.
Prefix
Optional
Prefix *string
- Type: *string
(Optional) The directory for saving the state file in bucket.
Default to "env:".
Region
Optional
Region *string
- Type: *string
(Optional) The region of the COS bucket.
It supports environment variables TENCENTCLOUD_REGION.
SecretId
Optional
SecretId *string
- Type: *string
(Optional) Secret id of Tencent Cloud.
It supports environment variables TENCENTCLOUD_SECRET_ID.
SecretKey
Optional
SecretKey *string
- Type: *string
(Optional) Secret key of Tencent Cloud.
It supports environment variables TENCENTCLOUD_SECRET_KEY.
DataTerraformRemoteStateEtcdConfig
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.DataTerraformRemoteStateEtcdConfig {
Defaults: *map[string]interface{},
Workspace: *string,
Endpoints: *string,
Path: *string,
Password: *string,
Username: *string,
}
Properties
Name | Type | Description |
---|---|---|
Defaults | *map[string]interface{} | 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. |
Defaults
Optional
Defaults *map[string]interface{}
- Type: *map[string]interface{}
Workspace
Optional
Workspace *string
- Type: *string
Endpoints
Required
Endpoints *string
- Type: *string
(Required) A space-separated list of the etcd endpoints.
Path
Required
Path *string
- Type: *string
(Required) The path where to store the state.
Password
Optional
Password *string
- Type: *string
(Optional) The password.
Username
Optional
Username *string
- Type: *string
(Optional) The username.
DataTerraformRemoteStateEtcdV3Config
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.DataTerraformRemoteStateEtcdV3Config {
Defaults: *map[string]interface{},
Workspace: *string,
Endpoints: *[]*string,
CacertPath: *string,
CertPath: *string,
KeyPath: *string,
Lock: *bool,
Password: *string,
Prefix: *string,
Username: *string,
}
Properties
Name | Type | Description |
---|---|---|
Defaults | *map[string]interface{} | 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. |
Defaults
Optional
Defaults *map[string]interface{}
- Type: *map[string]interface{}
Workspace
Optional
Workspace *string
- Type: *string
Endpoints
Required
Endpoints *[]*string
- Type: _[]_string
(Required) The list of 'etcd' endpoints which to connect to.
CacertPath
Optional
CacertPath *string
- Type: *string
(Optional) The path to a PEM-encoded CA bundle with which to verify certificates of TLS-enabled etcd servers.
CertPath
Optional
CertPath *string
- Type: *string
(Optional) The path to a PEM-encoded certificate to provide to etcd for secure client identification.
KeyPath
Optional
KeyPath *string
- Type: *string
(Optional) The path to a PEM-encoded key to provide to etcd for secure client identification.
Lock
Optional
Lock *bool
- Type: *bool
(Optional) Whether to lock state access.
Defaults to true.
Password
Optional
Password *string
- Type: *string
(Optional) Password used to connect to the etcd cluster.
Prefix
Optional
Prefix *string
- Type: *string
(Optional) An optional prefix to be added to keys when to storing state in etcd.
Defaults to "".
Username
Optional
Username *string
- Type: *string
(Optional) Username used to connect to the etcd cluster.
DataTerraformRemoteStateGcsConfig
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.DataTerraformRemoteStateGcsConfig {
Defaults: *map[string]interface{},
Workspace: *string,
Bucket: *string,
AccessToken: *string,
Credentials: *string,
EncryptionKey: *string,
ImpersonateServiceAccount: *string,
ImpersonateServiceAccountDelegates: *[]*string,
Prefix: *string,
}
Properties
Name | Type | Description |
---|---|---|
Defaults | *map[string]interface{} | 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. |
Defaults
Optional
Defaults *map[string]interface{}
- Type: *map[string]interface{}
Workspace
Optional
Workspace *string
- Type: *string
Bucket
Required
Bucket *string
- Type: *string
(Required) The name of the GCS bucket.
This name must be globally unique.
AccessToken
Optional
AccessToken *string
- Type: *string
(Optional) A temporary [OAuth 2.0 access token] obtained from the Google Authorization server, i.e. the Authorization: Bearer token used to authenticate HTTP requests to GCP APIs. This is an alternative to credentials. If both are specified, access_token will be used over the credentials field.
Credentials
Optional
Credentials *string
- Type: *string
(Optional) Local path to Google Cloud Platform account credentials in JSON format.
If unset, Google Application Default Credentials are used. The provided credentials must have Storage Object Admin role on the bucket.
Warning: if using the Google Cloud Platform provider as well, it will also pick up the GOOGLE_CREDENTIALS environment variable.
EncryptionKey
Optional
EncryptionKey *string
- Type: *string
(Optional) A 32 byte base64 encoded 'customer supplied encryption key' used to encrypt all state.
ImpersonateServiceAccount
Optional
ImpersonateServiceAccount *string
- Type: *string
(Optional) The service account to impersonate for accessing the State Bucket.
You must have roles/iam.serviceAccountTokenCreator role on that account for the impersonation to succeed. If you are using a delegation chain, you can specify that using the impersonate_service_account_delegates field. Alternatively, this can be specified using the GOOGLE_IMPERSONATE_SERVICE_ACCOUNT environment variable.
ImpersonateServiceAccountDelegates
Optional
ImpersonateServiceAccountDelegates *[]*string
- Type: _[]_string
(Optional) The delegation chain for an impersonating a service account.
Prefix
Optional
Prefix *string
- Type: *string
(Optional) GCS prefix inside the bucket.
Named states for workspaces are stored in an object called < prefix >/< name >.tfstate.
DataTerraformRemoteStateHttpConfig
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.DataTerraformRemoteStateHttpConfig {
Defaults: *map[string]interface{},
Workspace: *string,
Address: *string,
LockAddress: *string,
LockMethod: *string,
Password: *string,
RetryMax: *f64,
RetryWaitMax: *f64,
RetryWaitMin: *f64,
SkipCertVerification: *bool,
UnlockAddress: *string,
UnlockMethod: *string,
UpdateMethod: *string,
Username: *string,
}
Properties
Name | Type | Description |
---|---|---|
Defaults | *map[string]interface{} | 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 | *f64 | (Optional) The number of HTTP request retries. |
RetryWaitMax | *f64 | (Optional) The maximum time in seconds to wait between HTTP request attempts. |
RetryWaitMin | *f64 | (Optional) The minimum time in seconds to wait between HTTP request attempts. |
SkipCertVerification | *bool | (Optional) Whether to skip TLS verification. |
UnlockAddress | *string | (Optional) The address of the unlock REST endpoint. |
UnlockMethod | *string | (Optional) The HTTP method to use when unlocking. |
UpdateMethod | *string | (Optional) HTTP method to use when updating state. |
Username | *string | (Optional) The username for HTTP basic authentication. |
Defaults
Optional
Defaults *map[string]interface{}
- Type: *map[string]interface{}
Workspace
Optional
Workspace *string
- Type: *string
Address
Required
Address *string
- Type: *string
(Required) The address of the REST endpoint.
LockAddress
Optional
LockAddress *string
- Type: *string
(Optional) The address of the lock REST endpoint.
Defaults to disabled.
LockMethod
Optional
LockMethod *string
- Type: *string
(Optional) The HTTP method to use when locking.
Defaults to LOCK.
Password
Optional
Password *string
- Type: *string
(Optional) The password for HTTP basic authentication.
RetryMax
Optional
RetryMax *f64
- Type: *f64
(Optional) The number of HTTP request retries.
Defaults to 2.
RetryWaitMax
Optional
RetryWaitMax *f64
- Type: *f64
(Optional) The maximum time in seconds to wait between HTTP request attempts.
Defaults to 30.
RetryWaitMin
Optional
RetryWaitMin *f64
- Type: *f64
(Optional) The minimum time in seconds to wait between HTTP request attempts.
Defaults to 1.
SkipCertVerification
Optional
SkipCertVerification *bool
- Type: *bool
(Optional) Whether to skip TLS verification.
Defaults to false.
UnlockAddress
Optional
UnlockAddress *string
- Type: *string
(Optional) The address of the unlock REST endpoint.
Defaults to disabled.
UnlockMethod
Optional
UnlockMethod *string
- Type: *string
(Optional) The HTTP method to use when unlocking.
Defaults to UNLOCK.
UpdateMethod
Optional
UpdateMethod *string
- Type: *string
(Optional) HTTP method to use when updating state.
Defaults to POST.
Username
Optional
Username *string
- Type: *string
(Optional) The username for HTTP basic authentication.
DataTerraformRemoteStateLocalConfig
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.DataTerraformRemoteStateLocalConfig {
Defaults: *map[string]interface{},
Workspace: *string,
Path: *string,
WorkspaceDir: *string,
}
Properties
Name | Type | Description |
---|---|---|
Defaults | *map[string]interface{} | No description. |
Workspace | *string | No description. |
Path | *string | Path where the state file is stored. |
WorkspaceDir | *string | (Optional) The path to non-default workspaces. |
Defaults
Optional
Defaults *map[string]interface{}
- Type: *map[string]interface{}
Workspace
Optional
Workspace *string
- Type: *string
Path
Optional
Path *string
- Type: *string
- Default: defaults to terraform.${stackId}.tfstate
Path where the state file is stored.
WorkspaceDir
Optional
WorkspaceDir *string
- Type: *string
(Optional) The path to non-default workspaces.
DataTerraformRemoteStateMantaConfig
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.DataTerraformRemoteStateMantaConfig {
Defaults: *map[string]interface{},
Workspace: *string,
Account: *string,
KeyId: *string,
Path: *string,
InsecureSkipTlsVerify: *bool,
KeyMaterial: *string,
ObjectName: *string,
Url: *string,
User: *string,
}
Properties
Name | Type | Description |
---|---|---|
Defaults | *map[string]interface{} | 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. |
Defaults
Optional
Defaults *map[string]interface{}
- Type: *map[string]interface{}
Workspace
Optional
Workspace *string
- Type: *string
Account
Required
Account *string
- Type: *string
KeyId
Required
KeyId *string
- Type: *string
Path
Required
Path *string
- Type: *string
InsecureSkipTlsVerify
Optional
InsecureSkipTlsVerify *bool
- Type: *bool
KeyMaterial
Optional
KeyMaterial *string
- Type: *string
ObjectName
Optional
ObjectName *string
- Type: *string
Url
Optional
Url *string
- Type: *string
User
Optional
User *string
- Type: *string
DataTerraformRemoteStateOssConfig
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.DataTerraformRemoteStateOssConfig {
Defaults: *map[string]interface{},
Workspace: *string,
Bucket: *string,
AccessKey: *string,
Acl: *string,
AssumeRole: github.com/hashicorp/terraform-cdk-go/cdktf.OssAssumeRole,
EcsRoleName: *string,
Encrypt: *bool,
Endpoint: *string,
Key: *string,
Prefix: *string,
Profile: *string,
Region: *string,
SecretKey: *string,
SecurityToken: *string,
SharedCredentialsFile: *string,
TablestoreEndpoint: *string,
TablestoreTable: *string,
}
Properties
Name | Type | Description |
---|---|---|
Defaults | *map[string]interface{} | 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. |
Defaults
Optional
Defaults *map[string]interface{}
- Type: *map[string]interface{}
Workspace
Optional
Workspace *string
- Type: *string
Bucket
Required
Bucket *string
- Type: *string
AccessKey
Optional
AccessKey *string
- Type: *string
Acl
Optional
Acl *string
- Type: *string
AssumeRole
Optional
AssumeRole OssAssumeRole
- Type: OssAssumeRole
EcsRoleName
Optional
EcsRoleName *string
- Type: *string
Encrypt
Optional
Encrypt *bool
- Type: *bool
Endpoint
Optional
Endpoint *string
- Type: *string
Key
Optional
Key *string
- Type: *string
Prefix
Optional
Prefix *string
- Type: *string
Profile
Optional
Profile *string
- Type: *string
Region
Optional
Region *string
- Type: *string
SecretKey
Optional
SecretKey *string
- Type: *string
SecurityToken
Optional
SecurityToken *string
- Type: *string
SharedCredentialsFile
Optional
SharedCredentialsFile *string
- Type: *string
TablestoreEndpoint
Optional
TablestoreEndpoint *string
- Type: *string
TablestoreTable
Optional
TablestoreTable *string
- Type: *string
DataTerraformRemoteStatePgConfig
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.DataTerraformRemoteStatePgConfig {
Defaults: *map[string]interface{},
Workspace: *string,
ConnStr: *string,
SchemaName: *string,
SkipSchemaCreation: *bool,
}
Properties
Name | Type | Description |
---|---|---|
Defaults | *map[string]interface{} | No description. |
Workspace | *string | No description. |
ConnStr | *string | No description. |
SchemaName | *string | No description. |
SkipSchemaCreation | *bool | No description. |
Defaults
Optional
Defaults *map[string]interface{}
- Type: *map[string]interface{}
Workspace
Optional
Workspace *string
- Type: *string
ConnStr
Required
ConnStr *string
- Type: *string
SchemaName
Optional
SchemaName *string
- Type: *string
SkipSchemaCreation
Optional
SkipSchemaCreation *bool
- Type: *bool
DataTerraformRemoteStateRemoteConfig
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.DataTerraformRemoteStateRemoteConfig {
Defaults: *map[string]interface{},
Workspace: *string,
Organization: *string,
Workspaces: github.com/hashicorp/terraform-cdk-go/cdktf.IRemoteWorkspace,
Hostname: *string,
Token: *string,
}
Properties
Name | Type | Description |
---|---|---|
Defaults | *map[string]interface{} | No description. |
Workspace | *string | No description. |
Organization | *string | No description. |
Workspaces | IRemoteWorkspace | No description. |
Hostname | *string | No description. |
Token | *string | No description. |
Defaults
Optional
Defaults *map[string]interface{}
- Type: *map[string]interface{}
Workspace
Optional
Workspace *string
- Type: *string
Organization
Required
Organization *string
- Type: *string
Workspaces
Required
Workspaces IRemoteWorkspace
- Type: IRemoteWorkspace
Hostname
Optional
Hostname *string
- Type: *string
Token
Optional
Token *string
- Type: *string
DataTerraformRemoteStateS3Config
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.DataTerraformRemoteStateS3Config {
Defaults: *map[string]interface{},
Workspace: *string,
Bucket: *string,
Key: *string,
AccessKey: *string,
Acl: *string,
AssumeRolePolicy: *string,
AssumeRolePolicyArns: *[]*string,
AssumeRoleTags: *map[string]*string,
AssumeRoleTransitiveTagKeys: *[]*string,
DynamodbEndpoint: *string,
DynamodbTable: *string,
Encrypt: *bool,
Endpoint: *string,
ExternalId: *string,
ForcePathStyle: *bool,
IamEndpoint: *string,
KmsKeyId: *string,
MaxRetries: *f64,
Profile: *string,
Region: *string,
RoleArn: *string,
SecretKey: *string,
SessionName: *string,
SharedCredentialsFile: *string,
SkipCredentialsValidation: *bool,
SkipMetadataApiCheck: *bool,
SkipRegionValidation: *bool,
SseCustomerKey: *string,
StsEndpoint: *string,
Token: *string,
WorkspaceKeyPrefix: *string,
}
Properties
Name | Type | Description |
---|---|---|
Defaults | *map[string]interface{} | 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 | _map[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 | *f64 | (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. |
Defaults
Optional
Defaults *map[string]interface{}
- Type: *map[string]interface{}
Workspace
Optional
Workspace *string
- Type: *string
Bucket
Required
Bucket *string
- Type: *string
Name of the S3 Bucket.
Key
Required
Key *string
- Type: *string
Path to the state file inside the S3 Bucket.
When using a non-default workspace, the state path will be /workspace_key_prefix/workspace_name/key
AccessKey
Optional
AccessKey *string
- Type: *string
(Optional) AWS access key.
If configured, must also configure secret_key. This can also be sourced from the AWS_ACCESS_KEY_ID environment variable, AWS shared credentials file (e.g. ~/.aws/credentials), or AWS shared configuration file (e.g. ~/.aws/config).
Acl
Optional
Acl *string
- Type: *string
(Optional) Canned ACL to be applied to the state file.
AssumeRolePolicy
Optional
AssumeRolePolicy *string
- Type: *string
(Optional) IAM Policy JSON describing further restricting permissions for the IAM Role being assumed.
AssumeRolePolicyArns
Optional
AssumeRolePolicyArns *[]*string
- Type: _[]_string
(Optional) Set of Amazon Resource Names (ARNs) of IAM Policies describing further restricting permissions for the IAM Role being assumed.
AssumeRoleTags
Optional
AssumeRoleTags *map[string]*string
- Type: _map[string]_string
(Optional) Map of assume role session tags.
AssumeRoleTransitiveTagKeys
Optional
AssumeRoleTransitiveTagKeys *[]*string
- Type: _[]_string
(Optional) Set of assume role session tag keys to pass to any subsequent sessions.
DynamodbEndpoint
Optional
DynamodbEndpoint *string
- Type: *string
(Optional) Custom endpoint for the AWS DynamoDB API.
This can also be sourced from the AWS_DYNAMODB_ENDPOINT environment variable.
DynamodbTable
Optional
DynamodbTable *string
- 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.
Encrypt
Optional
Encrypt *bool
- Type: *bool
(Optional) Enable server side encryption of the state file.
Endpoint
Optional
Endpoint *string
- Type: *string
(Optional) Custom endpoint for the AWS S3 API.
This can also be sourced from the AWS_S3_ENDPOINT environment variable.
ExternalId
Optional
ExternalId *string
- Type: *string
(Optional) External identifier to use when assuming the role.
ForcePathStyle
Optional
ForcePathStyle *bool
- Type: *bool
(Optional) Enable path-style S3 URLs (https://< HOST >/< BUCKET > instead of https://< BUCKET >.< HOST >).
IamEndpoint
Optional
IamEndpoint *string
- 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.
KmsKeyId
Optional
KmsKeyId *string
- Type: *string
(Optional) Amazon Resource Name (ARN) of a Key Management Service (KMS) Key to use for encrypting the state.
Note that if this value is specified, Terraform will need kms:Encrypt, kms:Decrypt and kms:GenerateDataKey permissions on this KMS key.
MaxRetries
Optional
MaxRetries *f64
- Type: *f64
(Optional) The maximum number of times an AWS API request is retried on retryable failure.
Defaults to 5.
Profile
Optional
Profile *string
- Type: *string
(Optional) Name of AWS profile in AWS shared credentials file (e.g. ~/.aws/credentials) or AWS shared configuration file (e.g. ~/.aws/config) to use for credentials and/or configuration. This can also be sourced from the AWS_PROFILE environment variable.
Region
Optional
Region *string
- 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.
RoleArn
Optional
RoleArn *string
- Type: *string
(Optional) Amazon Resource Name (ARN) of the IAM Role to assume.
SecretKey
Optional
SecretKey *string
- Type: *string
(Optional) AWS secret access key.
If configured, must also configure access_key. This can also be sourced from the AWS_SECRET_ACCESS_KEY environment variable, AWS shared credentials file (e.g. ~/.aws/credentials), or AWS shared configuration file (e.g. ~/.aws/config)
SessionName
Optional
SessionName *string
- Type: *string
(Optional) Session name to use when assuming the role.
SharedCredentialsFile
Optional
SharedCredentialsFile *string
- Type: *string
(Optional) Path to the AWS shared credentials file.
Defaults to ~/.aws/credentials.
SkipCredentialsValidation
Optional
SkipCredentialsValidation *bool
- Type: *bool
(Optional) Skip credentials validation via the STS API.
SkipMetadataApiCheck
Optional
SkipMetadataApiCheck *bool
- Type: *bool
(Optional) Skip usage of EC2 Metadata API.
SkipRegionValidation
Optional
SkipRegionValidation *bool
- Type: *bool
(Optional) Skip validation of provided region name.
SseCustomerKey
Optional
SseCustomerKey *string
- Type: *string
(Optional) The key to use for encrypting state with Server-Side Encryption with Customer-Provided Keys (SSE-C).
This is the base64-encoded value of the key, which must decode to 256 bits. This can also be sourced from the AWS_SSE_CUSTOMER_KEY environment variable, which is recommended due to the sensitivity of the value. Setting it inside a terraform file will cause it to be persisted to disk in terraform.tfstate.
StsEndpoint
Optional
StsEndpoint *string
- 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.
Token
Optional
Token *string
- Type: *string
(Optional) Multi-Factor Authentication (MFA) token.
This can also be sourced from the AWS_SESSION_TOKEN environment variable.
WorkspaceKeyPrefix
Optional
WorkspaceKeyPrefix *string
- 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
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.DataTerraformRemoteStateSwiftConfig {
Defaults: *map[string]interface{},
Workspace: *string,
Container: *string,
ApplicationCredentialId: *string,
ApplicationCredentialName: *string,
ApplicationCredentialSecret: *string,
ArchiveContainer: *string,
AuthUrl: *string,
CacertFile: *string,
Cert: *string,
Cloud: *string,
DefaultDomain: *string,
DomainId: *string,
DomainName: *string,
ExpireAfter: *string,
Insecure: *bool,
Key: *string,
Password: *string,
ProjectDomainId: *string,
ProjectDomainName: *string,
RegionName: *string,
StateName: *string,
TenantId: *string,
TenantName: *string,
Token: *string,
UserDomainId: *string,
UserDomainName: *string,
UserId: *string,
UserName: *string,
}
Properties
Name | Type | Description |
---|---|---|
Defaults | *map[string]interface{} | No description. |
Workspace | *string | No description. |
Container | *string | No description. |
ApplicationCredentialId | *string | No description. |
ApplicationCredentialName | *string | No description. |
ApplicationCredentialSecret | *string | No description. |
ArchiveContainer | *string | No description. |
AuthUrl | *string | No description. |
CacertFile | *string | No description. |
Cert | *string | No description. |
Cloud | *string | No description. |
DefaultDomain | *string | No description. |
DomainId | *string | No description. |
DomainName | *string | No description. |
ExpireAfter | *string | No description. |
Insecure | *bool | No description. |
Key | *string | No description. |
Password | *string | No description. |
ProjectDomainId | *string | No description. |
ProjectDomainName | *string | No description. |
RegionName | *string | No description. |
StateName | *string | No description. |
TenantId | *string | No description. |
TenantName | *string | No description. |
Token | *string | No description. |
UserDomainId | *string | No description. |
UserDomainName | *string | No description. |
UserId | *string | No description. |
UserName | *string | No description. |
Defaults
Optional
Defaults *map[string]interface{}
- Type: *map[string]interface{}
Workspace
Optional
Workspace *string
- Type: *string
Container
Required
Container *string
- Type: *string
ApplicationCredentialId
Optional
ApplicationCredentialId *string
- Type: *string
ApplicationCredentialName
Optional
ApplicationCredentialName *string
- Type: *string
ApplicationCredentialSecret
Optional
ApplicationCredentialSecret *string
- Type: *string
ArchiveContainer
Optional
ArchiveContainer *string
- Type: *string
AuthUrl
Optional
AuthUrl *string
- Type: *string
CacertFile
Optional
CacertFile *string
- Type: *string
Cert
Optional
Cert *string
- Type: *string
Cloud
Optional
Cloud *string
- Type: *string
DefaultDomain
Optional
DefaultDomain *string
- Type: *string
DomainId
Optional
DomainId *string
- Type: *string
DomainName
Optional
DomainName *string
- Type: *string
ExpireAfter
Optional
ExpireAfter *string
- Type: *string
Insecure
Optional
Insecure *bool
- Type: *bool
Key
Optional
Key *string
- Type: *string
Password
Optional
Password *string
- Type: *string
ProjectDomainId
Optional
ProjectDomainId *string
- Type: *string
ProjectDomainName
Optional
ProjectDomainName *string
- Type: *string
RegionName
Optional
RegionName *string
- Type: *string
StateName
Optional
StateName *string
- Type: *string
TenantId
Optional
TenantId *string
- Type: *string
TenantName
Optional
TenantName *string
- Type: *string
Token
Optional
Token *string
- Type: *string
UserDomainId
Optional
UserDomainId *string
- Type: *string
UserDomainName
Optional
UserDomainName *string
- Type: *string
UserId
Optional
UserId *string
- Type: *string
UserName
Optional
UserName *string
- Type: *string
EncodingOptions
Properties to string encodings.
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.EncodingOptions {
DisplayHint: *string,
}
Properties
Name | Type | Description |
---|---|---|
DisplayHint | *string | A hint for the Token's purpose when stringifying it. |
DisplayHint
Optional
DisplayHint *string
- Type: *string
- Default: no display hint
A hint for the Token's purpose when stringifying it.
EtcdBackendProps
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://www.terraform.io/language/settings/backends/etcd
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.EtcdBackendProps {
Endpoints: *string,
Path: *string,
Password: *string,
Username: *string,
}
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. |
Endpoints
Required
Endpoints *string
- Type: *string
(Required) A space-separated list of the etcd endpoints.
Path
Required
Path *string
- Type: *string
(Required) The path where to store the state.
Password
Optional
Password *string
- Type: *string
(Optional) The password.
Username
Optional
Username *string
- Type: *string
(Optional) The username.
EtcdV3BackendProps
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://www.terraform.io/language/settings/backends/etcdv3
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.EtcdV3BackendProps {
Endpoints: *[]*string,
CacertPath: *string,
CertPath: *string,
KeyPath: *string,
Lock: *bool,
Password: *string,
Prefix: *string,
Username: *string,
}
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. |
Endpoints
Required
Endpoints *[]*string
- Type: _[]_string
(Required) The list of 'etcd' endpoints which to connect to.
CacertPath
Optional
CacertPath *string
- Type: *string
(Optional) The path to a PEM-encoded CA bundle with which to verify certificates of TLS-enabled etcd servers.
CertPath
Optional
CertPath *string
- Type: *string
(Optional) The path to a PEM-encoded certificate to provide to etcd for secure client identification.
KeyPath
Optional
KeyPath *string
- Type: *string
(Optional) The path to a PEM-encoded key to provide to etcd for secure client identification.
Lock
Optional
Lock *bool
- Type: *bool
(Optional) Whether to lock state access.
Defaults to true.
Password
Optional
Password *string
- Type: *string
(Optional) Password used to connect to the etcd cluster.
Prefix
Optional
Prefix *string
- Type: *string
(Optional) An optional prefix to be added to keys when to storing state in etcd.
Defaults to "".
Username
Optional
Username *string
- 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://www.terraform.io/language/resources/provisioners/file file}
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.FileProvisioner {
Destination: *string,
Type: *string,
Connection: interface{},
Content: *string,
Source: *string,
}
Properties
Name | Type | Description |
---|---|---|
Destination | *string | The source file or directory. |
Type | *string | No description. |
Connection | interface{} | Most provisioners require access to the remote resource via SSH or WinRM and expect a nested connection block with details about how to connect. |
Content | *string | The destination path to write to on the remote system. |
Source | *string | The direct content to copy on the destination. |
Destination
Required
Destination *string
- Type: *string
The source file or directory.
Specify it either relative to the current working directory or as an absolute path. This argument cannot be combined with content.
Type
Required
Type *string
- Type: *string
Connection
Optional
Connection interface{}
- Type: interface{}
Most provisioners require access to the remote resource via SSH or WinRM and expect a nested connection block with details about how to connect.
Content
Optional
Content *string
- Type: *string
The destination path to write to on the remote system.
See Destination Paths below for more information.
Source
Optional
Source *string
- 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.
GcsBackendProps
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://www.terraform.io/language/settings/backends/gcs
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.GcsBackendProps {
Bucket: *string,
AccessToken: *string,
Credentials: *string,
EncryptionKey: *string,
ImpersonateServiceAccount: *string,
ImpersonateServiceAccountDelegates: *[]*string,
Prefix: *string,
}
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. |
Bucket
Required
Bucket *string
- Type: *string
(Required) The name of the GCS bucket.
This name must be globally unique.
AccessToken
Optional
AccessToken *string
- Type: *string
(Optional) A temporary [OAuth 2.0 access token] obtained from the Google Authorization server, i.e. the Authorization: Bearer token used to authenticate HTTP requests to GCP APIs. This is an alternative to credentials. If both are specified, access_token will be used over the credentials field.
Credentials
Optional
Credentials *string
- Type: *string
(Optional) Local path to Google Cloud Platform account credentials in JSON format.
If unset, Google Application Default Credentials are used. The provided credentials must have Storage Object Admin role on the bucket.
Warning: if using the Google Cloud Platform provider as well, it will also pick up the GOOGLE_CREDENTIALS environment variable.
EncryptionKey
Optional
EncryptionKey *string
- Type: *string
(Optional) A 32 byte base64 encoded 'customer supplied encryption key' used to encrypt all state.
ImpersonateServiceAccount
Optional
ImpersonateServiceAccount *string
- Type: *string
(Optional) The service account to impersonate for accessing the State Bucket.
You must have roles/iam.serviceAccountTokenCreator role on that account for the impersonation to succeed. If you are using a delegation chain, you can specify that using the impersonate_service_account_delegates field. Alternatively, this can be specified using the GOOGLE_IMPERSONATE_SERVICE_ACCOUNT environment variable.
ImpersonateServiceAccountDelegates
Optional
ImpersonateServiceAccountDelegates *[]*string
- Type: _[]_string
(Optional) The delegation chain for an impersonating a service account.
Prefix
Optional
Prefix *string
- Type: *string
(Optional) GCS prefix inside the bucket.
Named states for workspaces are stored in an object called < prefix >/< name >.tfstate.
HttpBackendProps
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://www.terraform.io/language/settings/backends/http
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.HttpBackendProps {
Address: *string,
LockAddress: *string,
LockMethod: *string,
Password: *string,
RetryMax: *f64,
RetryWaitMax: *f64,
RetryWaitMin: *f64,
SkipCertVerification: *bool,
UnlockAddress: *string,
UnlockMethod: *string,
UpdateMethod: *string,
Username: *string,
}
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 | *f64 | (Optional) The number of HTTP request retries. |
RetryWaitMax | *f64 | (Optional) The maximum time in seconds to wait between HTTP request attempts. |
RetryWaitMin | *f64 | (Optional) The minimum time in seconds to wait between HTTP request attempts. |
SkipCertVerification | *bool | (Optional) Whether to skip TLS verification. |
UnlockAddress | *string | (Optional) The address of the unlock REST endpoint. |
UnlockMethod | *string | (Optional) The HTTP method to use when unlocking. |
UpdateMethod | *string | (Optional) HTTP method to use when updating state. |
Username | *string | (Optional) The username for HTTP basic authentication. |
Address
Required
Address *string
- Type: *string
(Required) The address of the REST endpoint.
LockAddress
Optional
LockAddress *string
- Type: *string
(Optional) The address of the lock REST endpoint.
Defaults to disabled.
LockMethod
Optional
LockMethod *string
- Type: *string
(Optional) The HTTP method to use when locking.
Defaults to LOCK.
Password
Optional
Password *string
- Type: *string
(Optional) The password for HTTP basic authentication.
RetryMax
Optional
RetryMax *f64
- Type: *f64
(Optional) The number of HTTP request retries.
Defaults to 2.
RetryWaitMax
Optional
RetryWaitMax *f64
- Type: *f64
(Optional) The maximum time in seconds to wait between HTTP request attempts.
Defaults to 30.
RetryWaitMin
Optional
RetryWaitMin *f64
- Type: *f64
(Optional) The minimum time in seconds to wait between HTTP request attempts.
Defaults to 1.
SkipCertVerification
Optional
SkipCertVerification *bool
- Type: *bool
(Optional) Whether to skip TLS verification.
Defaults to false.
UnlockAddress
Optional
UnlockAddress *string
- Type: *string
(Optional) The address of the unlock REST endpoint.
Defaults to disabled.
UnlockMethod
Optional
UnlockMethod *string
- Type: *string
(Optional) The HTTP method to use when unlocking.
Defaults to UNLOCK.
UpdateMethod
Optional
UpdateMethod *string
- Type: *string
(Optional) HTTP method to use when updating state.
Defaults to POST.
Username
Optional
Username *string
- Type: *string
(Optional) The username for HTTP basic authentication.
LazyAnyValueOptions
Options for creating lazy untyped tokens.
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.LazyAnyValueOptions {
DisplayHint: *string,
OmitEmptyArray: *bool,
}
Properties
Name | Type | Description |
---|---|---|
DisplayHint | *string | Use the given name as a display hint. |
OmitEmptyArray | *bool | If the produced value is an array and it is empty, return 'undefined' instead. |
DisplayHint
Optional
DisplayHint *string
- Type: *string
- Default: No hint
Use the given name as a display hint.
OmitEmptyArray
Optional
OmitEmptyArray *bool
- 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
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.LazyListValueOptions {
DisplayHint: *string,
OmitEmpty: *bool,
}
Properties
Name | Type | Description |
---|---|---|
DisplayHint | *string | Use the given name as a display hint. |
OmitEmpty | *bool | If the produced list is empty, return 'undefined' instead. |
DisplayHint
Optional
DisplayHint *string
- Type: *string
- Default: No hint
Use the given name as a display hint.
OmitEmpty
Optional
OmitEmpty *bool
- Type: *bool
- Default: false
If the produced list is empty, return 'undefined' instead.
LazyStringValueOptions
Options for creating a lazy string token.
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.LazyStringValueOptions {
DisplayHint: *string,
}
Properties
Name | Type | Description |
---|---|---|
DisplayHint | *string | Use the given name as a display hint. |
DisplayHint
Optional
DisplayHint *string
- Type: *string
- Default: No hint
Use the given name as a display hint.
LocalBackendProps
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://www.terraform.io/language/settings/backends/local
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.LocalBackendProps {
Path: *string,
WorkspaceDir: *string,
}
Properties
Name | Type | Description |
---|---|---|
Path | *string | Path where the state file is stored. |
WorkspaceDir | *string | (Optional) The path to non-default workspaces. |
Path
Optional
Path *string
- Type: *string
- Default: defaults to terraform.${stackId}.tfstate
Path where the state file is stored.
WorkspaceDir
Optional
WorkspaceDir *string
- 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://www.terraform.io/language/resources/provisioners/local-exec local-exec}
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.LocalExecProvisioner {
Command: *string,
Type: *string,
Environment: *map[string]*string,
Interpreter: *[]*string,
When: *string,
WorkingDir: *string,
}
Properties
Name | Type | Description |
---|---|---|
Command | *string | This is the command to execute. |
Type | *string | No description. |
Environment | _map[string]_string | A record of key value pairs representing the environment of the executed command. |
Interpreter | _[]_string | If provided, this is a list of interpreter arguments used to execute the command. |
When | *string | If provided, specifies when Terraform will execute the command. |
WorkingDir | *string | If provided, specifies the working directory where command will be executed. |
Command
Required
Command *string
- Type: *string
This is the command to execute.
It can be provided as a relative path to the current working directory or as an absolute path. It is evaluated in a shell, and can use environment variables or Terraform variables.
Type
Required
Type *string
- Type: *string
Environment
Optional
Environment *map[string]*string
- Type: _map[string]_string
A record of key value pairs representing the environment of the executed command.
It inherits the current process environment.
Interpreter
Optional
Interpreter *[]*string
- Type: _[]_string
If provided, this is a list of interpreter arguments used to execute the command.
The first argument is the interpreter itself. It can be provided as a relative path to the current working directory or as an absolute path The remaining arguments are appended prior to the command. This allows building command lines of the form "/bin/bash", "-c", "echo foo". If interpreter is unspecified, sensible defaults will be chosen based on the system OS.
When
Optional
When *string
- Type: *string
If provided, specifies when Terraform will execute the command.
For example, when = destroy specifies that the provisioner will run when the associated resource is destroyed
WorkingDir
Optional
WorkingDir *string
- 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.
MantaBackendProps
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.MantaBackendProps {
Account: *string,
KeyId: *string,
Path: *string,
InsecureSkipTlsVerify: *bool,
KeyMaterial: *string,
ObjectName: *string,
Url: *string,
User: *string,
}
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. |
Account
Required
Account *string
- Type: *string
KeyId
Required
KeyId *string
- Type: *string
Path
Required
Path *string
- Type: *string
InsecureSkipTlsVerify
Optional
InsecureSkipTlsVerify *bool
- Type: *bool
KeyMaterial
Optional
KeyMaterial *string
- Type: *string
ObjectName
Optional
ObjectName *string
- Type: *string
Url
Optional
Url *string
- Type: *string
User
Optional
User *string
- Type: *string
OssAssumeRole
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.OssAssumeRole {
RoleArn: *string,
Policy: *string,
SessionExpiration: *f64,
SessionName: *string,
}
Properties
Name | Type | Description |
---|---|---|
RoleArn | *string | No description. |
Policy | *string | No description. |
SessionExpiration | *f64 | No description. |
SessionName | *string | No description. |
RoleArn
Required
RoleArn *string
- Type: *string
Policy
Optional
Policy *string
- Type: *string
SessionExpiration
Optional
SessionExpiration *f64
- Type: *f64
SessionName
Optional
SessionName *string
- Type: *string
OssBackendProps
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.OssBackendProps {
Bucket: *string,
AccessKey: *string,
Acl: *string,
AssumeRole: github.com/hashicorp/terraform-cdk-go/cdktf.OssAssumeRole,
EcsRoleName: *string,
Encrypt: *bool,
Endpoint: *string,
Key: *string,
Prefix: *string,
Profile: *string,
Region: *string,
SecretKey: *string,
SecurityToken: *string,
SharedCredentialsFile: *string,
TablestoreEndpoint: *string,
TablestoreTable: *string,
}
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. |
Bucket
Required
Bucket *string
- Type: *string
AccessKey
Optional
AccessKey *string
- Type: *string
Acl
Optional
Acl *string
- Type: *string
AssumeRole
Optional
AssumeRole OssAssumeRole
- Type: OssAssumeRole
EcsRoleName
Optional
EcsRoleName *string
- Type: *string
Encrypt
Optional
Encrypt *bool
- Type: *bool
Endpoint
Optional
Endpoint *string
- Type: *string
Key
Optional
Key *string
- Type: *string
Prefix
Optional
Prefix *string
- Type: *string
Profile
Optional
Profile *string
- Type: *string
Region
Optional
Region *string
- Type: *string
SecretKey
Optional
SecretKey *string
- Type: *string
SecurityToken
Optional
SecurityToken *string
- Type: *string
SharedCredentialsFile
Optional
SharedCredentialsFile *string
- Type: *string
TablestoreEndpoint
Optional
TablestoreEndpoint *string
- Type: *string
TablestoreTable
Optional
TablestoreTable *string
- Type: *string
PgBackendProps
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.PgBackendProps {
ConnStr: *string,
SchemaName: *string,
SkipSchemaCreation: *bool,
}
Properties
Name | Type | Description |
---|---|---|
ConnStr | *string | No description. |
SchemaName | *string | No description. |
SkipSchemaCreation | *bool | No description. |
ConnStr
Required
ConnStr *string
- Type: *string
SchemaName
Optional
SchemaName *string
- Type: *string
SkipSchemaCreation
Optional
SkipSchemaCreation *bool
- Type: *bool
RemoteBackendProps
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.RemoteBackendProps {
Organization: *string,
Workspaces: github.com/hashicorp/terraform-cdk-go/cdktf.IRemoteWorkspace,
Hostname: *string,
Token: *string,
}
Properties
Name | Type | Description |
---|---|---|
Organization | *string | No description. |
Workspaces | IRemoteWorkspace | No description. |
Hostname | *string | No description. |
Token | *string | No description. |
Organization
Required
Organization *string
- Type: *string
Workspaces
Required
Workspaces IRemoteWorkspace
- Type: IRemoteWorkspace
Hostname
Optional
Hostname *string
- Type: *string
Token
Optional
Token *string
- 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://www.terraform.io/language/resources/provisioners/remote-exec remote-exec}
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.RemoteExecProvisioner {
Type: *string,
Connection: interface{},
Inline: *[]*string,
Script: *string,
Scripts: *[]*string,
}
Properties
Name | Type | Description |
---|---|---|
Type | *string | No description. |
Connection | interface{} | Most provisioners require access to the remote resource via SSH or WinRM and expect a nested connection block with details about how to connect. |
Inline | _[]_string | This is a list of command strings. |
Script | *string | This is a path (relative or absolute) to a local script that will be copied to the remote resource and then executed. |
Scripts | _[]_string | This is a list of paths (relative or absolute) to local scripts that will be copied to the remote resource and then executed. |
Type
Required
Type *string
- Type: *string
Connection
Optional
Connection interface{}
- Type: interface{}
Most provisioners require access to the remote resource via SSH or WinRM and expect a nested connection block with details about how to connect.
A connection must be provided here or in the parent resource.
Inline
Optional
Inline *[]*string
- Type: _[]_string
This is a list of command strings.
They are executed in the order they are provided. This cannot be provided with script or scripts.
Script
Optional
Script *string
- Type: *string
This is a path (relative or absolute) to a local script that will be copied to the remote resource and then executed.
This cannot be provided with inline or scripts.
Scripts
Optional
Scripts *[]*string
- 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
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.ResolveOptions {
Resolver: github.com/hashicorp/terraform-cdk-go/cdktf.ITokenResolver,
Scope: github.com/aws/constructs-go/constructs/v10.IConstruct,
Preparing: *bool,
}
Properties
Name | Type | Description |
---|---|---|
Resolver | ITokenResolver | The resolver to apply to any resolvable tokens found. |
Scope | github.com/aws/constructs-go/constructs/v10.IConstruct | The scope from which resolution is performed. |
Preparing | *bool | Whether the resolution is being executed during the prepare phase or not. |
Resolver
Required
Resolver ITokenResolver
- Type: ITokenResolver
The resolver to apply to any resolvable tokens found.
Scope
Required
Scope IConstruct
- Type: github.com/aws/constructs-go/constructs/v10.IConstruct
The scope from which resolution is performed.
Preparing
Optional
Preparing *bool
- Type: *bool
- Default: false
Whether the resolution is being executed during the prepare phase or not.
S3BackendProps
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://www.terraform.io/language/settings/backends/s3
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.S3BackendProps {
Bucket: *string,
Key: *string,
AccessKey: *string,
Acl: *string,
AssumeRolePolicy: *string,
AssumeRolePolicyArns: *[]*string,
AssumeRoleTags: *map[string]*string,
AssumeRoleTransitiveTagKeys: *[]*string,
DynamodbEndpoint: *string,
DynamodbTable: *string,
Encrypt: *bool,
Endpoint: *string,
ExternalId: *string,
ForcePathStyle: *bool,
IamEndpoint: *string,
KmsKeyId: *string,
MaxRetries: *f64,
Profile: *string,
Region: *string,
RoleArn: *string,
SecretKey: *string,
SessionName: *string,
SharedCredentialsFile: *string,
SkipCredentialsValidation: *bool,
SkipMetadataApiCheck: *bool,
SkipRegionValidation: *bool,
SseCustomerKey: *string,
StsEndpoint: *string,
Token: *string,
WorkspaceKeyPrefix: *string,
}
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 | _map[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 | *f64 | (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. |
Bucket
Required
Bucket *string
- Type: *string
Name of the S3 Bucket.
Key
Required
Key *string
- Type: *string
Path to the state file inside the S3 Bucket.
When using a non-default workspace, the state path will be /workspace_key_prefix/workspace_name/key
AccessKey
Optional
AccessKey *string
- Type: *string
(Optional) AWS access key.
If configured, must also configure secret_key. This can also be sourced from the AWS_ACCESS_KEY_ID environment variable, AWS shared credentials file (e.g. ~/.aws/credentials), or AWS shared configuration file (e.g. ~/.aws/config).
Acl
Optional
Acl *string
- Type: *string
(Optional) Canned ACL to be applied to the state file.
AssumeRolePolicy
Optional
AssumeRolePolicy *string
- Type: *string
(Optional) IAM Policy JSON describing further restricting permissions for the IAM Role being assumed.
AssumeRolePolicyArns
Optional
AssumeRolePolicyArns *[]*string
- Type: _[]_string
(Optional) Set of Amazon Resource Names (ARNs) of IAM Policies describing further restricting permissions for the IAM Role being assumed.
AssumeRoleTags
Optional
AssumeRoleTags *map[string]*string
- Type: _map[string]_string
(Optional) Map of assume role session tags.
AssumeRoleTransitiveTagKeys
Optional
AssumeRoleTransitiveTagKeys *[]*string
- Type: _[]_string
(Optional) Set of assume role session tag keys to pass to any subsequent sessions.
DynamodbEndpoint
Optional
DynamodbEndpoint *string
- Type: *string
(Optional) Custom endpoint for the AWS DynamoDB API.
This can also be sourced from the AWS_DYNAMODB_ENDPOINT environment variable.
DynamodbTable
Optional
DynamodbTable *string
- 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.
Encrypt
Optional
Encrypt *bool
- Type: *bool
(Optional) Enable server side encryption of the state file.
Endpoint
Optional
Endpoint *string
- Type: *string
(Optional) Custom endpoint for the AWS S3 API.
This can also be sourced from the AWS_S3_ENDPOINT environment variable.
ExternalId
Optional
ExternalId *string
- Type: *string
(Optional) External identifier to use when assuming the role.
ForcePathStyle
Optional
ForcePathStyle *bool
- Type: *bool
(Optional) Enable path-style S3 URLs (https://< HOST >/< BUCKET > instead of https://< BUCKET >.< HOST >).
IamEndpoint
Optional
IamEndpoint *string
- 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.
KmsKeyId
Optional
KmsKeyId *string
- Type: *string
(Optional) Amazon Resource Name (ARN) of a Key Management Service (KMS) Key to use for encrypting the state.
Note that if this value is specified, Terraform will need kms:Encrypt, kms:Decrypt and kms:GenerateDataKey permissions on this KMS key.
MaxRetries
Optional
MaxRetries *f64
- Type: *f64
(Optional) The maximum number of times an AWS API request is retried on retryable failure.
Defaults to 5.
Profile
Optional
Profile *string
- Type: *string
(Optional) Name of AWS profile in AWS shared credentials file (e.g. ~/.aws/credentials) or AWS shared configuration file (e.g. ~/.aws/config) to use for credentials and/or configuration. This can also be sourced from the AWS_PROFILE environment variable.
Region
Optional
Region *string
- 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.
RoleArn
Optional
RoleArn *string
- Type: *string
(Optional) Amazon Resource Name (ARN) of the IAM Role to assume.
SecretKey
Optional
SecretKey *string
- Type: *string
(Optional) AWS secret access key.
If configured, must also configure access_key. This can also be sourced from the AWS_SECRET_ACCESS_KEY environment variable, AWS shared credentials file (e.g. ~/.aws/credentials), or AWS shared configuration file (e.g. ~/.aws/config)
SessionName
Optional
SessionName *string
- Type: *string
(Optional) Session name to use when assuming the role.
SharedCredentialsFile
Optional
SharedCredentialsFile *string
- Type: *string
(Optional) Path to the AWS shared credentials file.
Defaults to ~/.aws/credentials.
SkipCredentialsValidation
Optional
SkipCredentialsValidation *bool
- Type: *bool
(Optional) Skip credentials validation via the STS API.
SkipMetadataApiCheck
Optional
SkipMetadataApiCheck *bool
- Type: *bool
(Optional) Skip usage of EC2 Metadata API.
SkipRegionValidation
Optional
SkipRegionValidation *bool
- Type: *bool
(Optional) Skip validation of provided region name.
SseCustomerKey
Optional
SseCustomerKey *string
- Type: *string
(Optional) The key to use for encrypting state with Server-Side Encryption with Customer-Provided Keys (SSE-C).
This is the base64-encoded value of the key, which must decode to 256 bits. This can also be sourced from the AWS_SSE_CUSTOMER_KEY environment variable, which is recommended due to the sensitivity of the value. Setting it inside a terraform file will cause it to be persisted to disk in terraform.tfstate.
StsEndpoint
Optional
StsEndpoint *string
- 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.
Token
Optional
Token *string
- Type: *string
(Optional) Multi-Factor Authentication (MFA) token.
This can also be sourced from the AWS_SESSION_TOKEN environment variable.
WorkspaceKeyPrefix
Optional
WorkspaceKeyPrefix *string
- 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.
See {@link https://www.terraform.io/language/resources/provisioners/connection connection}
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.SSHProvisionerConnection {
Host: *string,
Type: *string,
Agent: *string,
AgentIdentity: *string,
BastionCertificate: *string,
BastionHost: *string,
BastionHostKey: *string,
BastionPassword: *string,
BastionPort: *f64,
BastionPrivateKey: *string,
BastionUser: *string,
Certificate: *string,
HostKey: *string,
Password: *string,
Port: *f64,
PrivateKey: *string,
ProxyHost: *string,
ProxyPort: *f64,
ProxyScheme: *string,
ProxyUserName: *string,
ProxyUserPassword: *string,
ScriptPath: *string,
TargetPlatform: *string,
Timeout: *string,
User: *string,
}
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 | *f64 | 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 | *f64 | 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 | *f64 | The port to use connect to the proxy host. |
ProxyScheme | *string | The ssh connection also supports the following fields to facilitate connections by SSH over HTTP proxy. |
ProxyUserName | *string | The username to use connect to the private proxy host. |
ProxyUserPassword | *string | The password to use connect to the private proxy host. |
ScriptPath | *string | The path used to copy scripts meant for remote execution. |
TargetPlatform | *string | The target platform to connect to. |
Timeout | *string | The timeout to wait for the connection to become available. |
User | *string | The user to use for the connection. |
Host
Required
Host *string
- Type: *string
The address of the resource to connect to.
Type
Required
Type *string
- Type: *string
The connection type.
Valid values are "ssh" and "winrm". Provisioners typically assume that the remote system runs Microsoft Windows when using WinRM. Behaviors based on the SSH target_platform will force Windows-specific behavior for WinRM, unless otherwise specified.
Agent
Optional
Agent *string
- Type: *string
Set to false to disable using ssh-agent to authenticate.
On Windows the only supported SSH authentication agent is Pageant.
AgentIdentity
Optional
AgentIdentity *string
- Type: *string
The preferred identity from the ssh agent for authentication.
BastionCertificate
Optional
BastionCertificate *string
- Type: *string
The contents of a signed CA Certificate.
The certificate argument must be used in conjunction with a bastion_private_key. These can be loaded from a file on disk using the the file function.
BastionHost
Optional
BastionHost *string
- Type: *string
Setting this enables the bastion Host connection.
The provisioner will connect to bastion_host first, and then connect from there to host.
BastionHostKey
Optional
BastionHostKey *string
- Type: *string
The public key from the remote host or the signing CA, used to verify the host connection.
BastionPassword
Optional
BastionPassword *string
- Type: *string
The password to use for the bastion host.
BastionPort
Optional
BastionPort *f64
- Type: *f64
The port to use connect to the bastion host.
BastionPrivateKey
Optional
BastionPrivateKey *string
- Type: *string
The contents of an SSH key file to use for the bastion host.
These can be loaded from a file on disk using the file function.
BastionUser
Optional
BastionUser *string
- Type: *string
The user for the connection to the bastion host.
Certificate
Optional
Certificate *string
- Type: *string
The contents of a signed CA Certificate.
The certificate argument must be used in conjunction with a private_key. These can be loaded from a file on disk using the the file function.
HostKey
Optional
HostKey *string
- Type: *string
The public key from the remote host or the signing CA, used to verify the connection.
Password
Optional
Password *string
- Type: *string
The password to use for the connection.
Port
Optional
Port *f64
- Type: *f64
- Default: 22
The port to connect to.
PrivateKey
Optional
PrivateKey *string
- Type: *string
The contents of an SSH key to use for the connection.
These can be loaded from a file on disk using the file function. This takes preference over password if provided.
ProxyHost
Optional
ProxyHost *string
- Type: *string
Setting this enables the SSH over HTTP connection.
This host will be connected to first, and then the host or bastion_host connection will be made from there.
ProxyPort
Optional
ProxyPort *f64
- Type: *f64
The port to use connect to the proxy host.
ProxyScheme
Optional
ProxyScheme *string
- Type: *string
The ssh connection also supports the following fields to facilitate connections by SSH over HTTP proxy.
ProxyUserName
Optional
ProxyUserName *string
- Type: *string
The username to use connect to the private proxy host.
This argument should be specified only if authentication is required for the HTTP Proxy server.
ProxyUserPassword
Optional
ProxyUserPassword *string
- Type: *string
The password to use connect to the private proxy host.
This argument should be specified only if authentication is required for the HTTP Proxy server.
ScriptPath
Optional
ScriptPath *string
- Type: *string
The path used to copy scripts meant for remote execution.
Refer to {@link https://www.terraform.io/language/resources/provisioners/connection#how-provisioners-execute-remote-scripts How Provisioners Execute Remote Scripts below for more details}
TargetPlatform
Optional
TargetPlatform *string
- Type: *string
- Default: unix
The target platform to connect to.
Valid values are "windows" and "unix". If the platform is set to windows, the default scriptpath is c:\windows\temp\terraform%RAND%.cmd, assuming the SSH default shell is cmd.exe. If the SSH default shell is PowerShell, set scriptpath to "c:/windows/temp/terraform%RAND%.ps1"
Timeout
Optional
Timeout *string
- Type: *string
- Default: 5m
The timeout to wait for the connection to become available.
Should be provided as a string (e.g., "30s" or "5m".)
User
Optional
User *string
- Type: *string
- Default: root
The user to use for the connection.
StackAnnotation
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.StackAnnotation {
ConstructPath: *string,
Level: github.com/hashicorp/terraform-cdk-go/cdktf.AnnotationMetadataEntryType,
Message: *string,
Stacktrace: *[]*string,
}
Properties
Name | Type | Description |
---|---|---|
ConstructPath | *string | No description. |
Level | AnnotationMetadataEntryType | No description. |
Message | *string | No description. |
Stacktrace | _[]_string | No description. |
ConstructPath
Required
ConstructPath *string
- Type: *string
Level
Required
Level AnnotationMetadataEntryType
Message
Required
Message *string
- Type: *string
Stacktrace
Optional
Stacktrace *[]*string
- Type: _[]_string
StackManifest
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.StackManifest {
Annotations: *[]github.com/hashicorp/terraform-cdk-go/cdktf.StackAnnotation,
ConstructPath: *string,
Dependencies: *[]*string,
Name: *string,
SynthesizedStackPath: *string,
WorkingDirectory: *string,
}
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. |
Annotations
Required
Annotations *[]StackAnnotation
- Type: *[]StackAnnotation
ConstructPath
Required
ConstructPath *string
- Type: *string
Dependencies
Required
Dependencies *[]*string
- Type: _[]_string
Name
Required
Name *string
- Type: *string
SynthesizedStackPath
Required
SynthesizedStackPath *string
- Type: *string
WorkingDirectory
Required
WorkingDirectory *string
- Type: *string
SwiftBackendProps
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.SwiftBackendProps {
Container: *string,
ApplicationCredentialId: *string,
ApplicationCredentialName: *string,
ApplicationCredentialSecret: *string,
ArchiveContainer: *string,
AuthUrl: *string,
CacertFile: *string,
Cert: *string,
Cloud: *string,
DefaultDomain: *string,
DomainId: *string,
DomainName: *string,
ExpireAfter: *string,
Insecure: *bool,
Key: *string,
Password: *string,
ProjectDomainId: *string,
ProjectDomainName: *string,
RegionName: *string,
StateName: *string,
TenantId: *string,
TenantName: *string,
Token: *string,
UserDomainId: *string,
UserDomainName: *string,
UserId: *string,
UserName: *string,
}
Properties
Name | Type | Description |
---|---|---|
Container | *string | No description. |
ApplicationCredentialId | *string | No description. |
ApplicationCredentialName | *string | No description. |
ApplicationCredentialSecret | *string | No description. |
ArchiveContainer | *string | No description. |
AuthUrl | *string | No description. |
CacertFile | *string | No description. |
Cert | *string | No description. |
Cloud | *string | No description. |
DefaultDomain | *string | No description. |
DomainId | *string | No description. |
DomainName | *string | No description. |
ExpireAfter | *string | No description. |
Insecure | *bool | No description. |
Key | *string | No description. |
Password | *string | No description. |
ProjectDomainId | *string | No description. |
ProjectDomainName | *string | No description. |
RegionName | *string | No description. |
StateName | *string | No description. |
TenantId | *string | No description. |
TenantName | *string | No description. |
Token | *string | No description. |
UserDomainId | *string | No description. |
UserDomainName | *string | No description. |
UserId | *string | No description. |
UserName | *string | No description. |
Container
Required
Container *string
- Type: *string
ApplicationCredentialId
Optional
ApplicationCredentialId *string
- Type: *string
ApplicationCredentialName
Optional
ApplicationCredentialName *string
- Type: *string
ApplicationCredentialSecret
Optional
ApplicationCredentialSecret *string
- Type: *string
ArchiveContainer
Optional
ArchiveContainer *string
- Type: *string
AuthUrl
Optional
AuthUrl *string
- Type: *string
CacertFile
Optional
CacertFile *string
- Type: *string
Cert
Optional
Cert *string
- Type: *string
Cloud
Optional
Cloud *string
- Type: *string
DefaultDomain
Optional
DefaultDomain *string
- Type: *string
DomainId
Optional
DomainId *string
- Type: *string
DomainName
Optional
DomainName *string
- Type: *string
ExpireAfter
Optional
ExpireAfter *string
- Type: *string
Insecure
Optional
Insecure *bool
- Type: *bool
Key
Optional
Key *string
- Type: *string
Password
Optional
Password *string
- Type: *string
ProjectDomainId
Optional
ProjectDomainId *string
- Type: *string
ProjectDomainName
Optional
ProjectDomainName *string
- Type: *string
RegionName
Optional
RegionName *string
- Type: *string
StateName
Optional
StateName *string
- Type: *string
TenantId
Optional
TenantId *string
- Type: *string
TenantName
Optional
TenantName *string
- Type: *string
Token
Optional
Token *string
- Type: *string
UserDomainId
Optional
UserDomainId *string
- Type: *string
UserDomainName
Optional
UserDomainName *string
- Type: *string
UserId
Optional
UserId *string
- Type: *string
UserName
Optional
UserName *string
- Type: *string
TerraformAssetConfig
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.TerraformAssetConfig {
Path: *string,
AssetHash: *string,
Type: github.com/hashicorp/terraform-cdk-go/cdktf.AssetType,
}
Properties
Name | Type | Description |
---|---|---|
Path | *string | No description. |
AssetHash | *string | No description. |
Type | AssetType | No description. |
Path
Required
Path *string
- Type: *string
AssetHash
Optional
AssetHash *string
- Type: *string
Type
Optional
Type AssetType
- Type: AssetType
TerraformConstructor
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf/testingmatchers"
&testingmatchers.TerraformConstructor {
TfResourceType: *string,
}
Properties
Name | Type | Description |
---|---|---|
TfResourceType | *string | No description. |
TfResourceType
Required
TfResourceType *string
- Type: *string
TerraformElementMetadata
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.TerraformElementMetadata {
Path: *string,
StackTrace: *[]*string,
UniqueId: *string,
}
Properties
Name | Type | Description |
---|---|---|
Path | *string | No description. |
StackTrace | _[]_string | No description. |
UniqueId | *string | No description. |
Path
Required
Path *string
- Type: *string
StackTrace
Required
StackTrace *[]*string
- Type: _[]_string
UniqueId
Required
UniqueId *string
- Type: *string
TerraformHclModuleOptions
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.TerraformHclModuleOptions {
DependsOn: *[]github.com/hashicorp/terraform-cdk-go/cdktf.ITerraformDependable,
ForEach: github.com/hashicorp/terraform-cdk-go/cdktf.ITerraformIterator,
Providers: *[]interface{},
SkipAssetCreationFromLocalModules: *bool,
Source: *string,
Version: *string,
Variables: *map[string]interface{},
}
Properties
Name | Type | Description |
---|---|---|
DependsOn | *[]ITerraformDependable | No description. |
ForEach | ITerraformIterator | No description. |
Providers | *[]interface{} | No description. |
SkipAssetCreationFromLocalModules | *bool | No description. |
Source | *string | No description. |
Version | *string | No description. |
Variables | *map[string]interface{} | No description. |
DependsOn
Optional
DependsOn *[]ITerraformDependable
- Type: *[]ITerraformDependable
ForEach
Optional
ForEach ITerraformIterator
- Type: ITerraformIterator
Providers
Optional
Providers *[]interface{}
- Type: *[]interface{}
SkipAssetCreationFromLocalModules
Optional
SkipAssetCreationFromLocalModules *bool
- Type: *bool
Source
Required
Source *string
- Type: *string
Version
Optional
Version *string
- Type: *string
Variables
Optional
Variables *map[string]interface{}
- Type: *map[string]interface{}
TerraformMetaArguments
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.TerraformMetaArguments {
Connection: interface{},
Count: *f64,
DependsOn: *[]github.com/hashicorp/terraform-cdk-go/cdktf.ITerraformDependable,
ForEach: github.com/hashicorp/terraform-cdk-go/cdktf.ITerraformIterator,
Lifecycle: github.com/hashicorp/terraform-cdk-go/cdktf.TerraformResourceLifecycle,
Provider: github.com/hashicorp/terraform-cdk-go/cdktf.TerraformProvider,
Provisioners: *[]interface{},
}
Properties
Name | Type | Description |
---|---|---|
Connection | interface{} | No description. |
Count | *f64 | No description. |
DependsOn | *[]ITerraformDependable | No description. |
ForEach | ITerraformIterator | No description. |
Lifecycle | TerraformResourceLifecycle | No description. |
Provider | TerraformProvider | No description. |
Provisioners | *[]interface{} | No description. |
Connection
Optional
Connection interface{}
- Type: interface{}
Count
Optional
Count *f64
- Type: *f64
DependsOn
Optional
DependsOn *[]ITerraformDependable
- Type: *[]ITerraformDependable
ForEach
Optional
ForEach ITerraformIterator
- Type: ITerraformIterator
Lifecycle
Optional
Lifecycle TerraformResourceLifecycle
Provider
Optional
Provider TerraformProvider
- Type: TerraformProvider
Provisioners
Optional
Provisioners *[]interface{}
- Type: *[]interface{}
TerraformModuleOptions
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.TerraformModuleOptions {
DependsOn: *[]github.com/hashicorp/terraform-cdk-go/cdktf.ITerraformDependable,
ForEach: github.com/hashicorp/terraform-cdk-go/cdktf.ITerraformIterator,
Providers: *[]interface{},
SkipAssetCreationFromLocalModules: *bool,
Source: *string,
Version: *string,
}
Properties
Name | Type | Description |
---|---|---|
DependsOn | *[]ITerraformDependable | No description. |
ForEach | ITerraformIterator | No description. |
Providers | *[]interface{} | No description. |
SkipAssetCreationFromLocalModules | *bool | No description. |
Source | *string | No description. |
Version | *string | No description. |
DependsOn
Optional
DependsOn *[]ITerraformDependable
- Type: *[]ITerraformDependable
ForEach
Optional
ForEach ITerraformIterator
- Type: ITerraformIterator
Providers
Optional
Providers *[]interface{}
- Type: *[]interface{}
SkipAssetCreationFromLocalModules
Optional
SkipAssetCreationFromLocalModules *bool
- Type: *bool
Source
Required
Source *string
- Type: *string
Version
Optional
Version *string
- Type: *string
TerraformModuleProvider
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.TerraformModuleProvider {
ModuleAlias: *string,
Provider: github.com/hashicorp/terraform-cdk-go/cdktf.TerraformProvider,
}
Properties
Name | Type | Description |
---|---|---|
ModuleAlias | *string | No description. |
Provider | TerraformProvider | No description. |
ModuleAlias
Required
ModuleAlias *string
- Type: *string
Provider
Required
Provider TerraformProvider
- Type: TerraformProvider
TerraformModuleUserOptions
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.TerraformModuleUserOptions {
DependsOn: *[]github.com/hashicorp/terraform-cdk-go/cdktf.ITerraformDependable,
ForEach: github.com/hashicorp/terraform-cdk-go/cdktf.ITerraformIterator,
Providers: *[]interface{},
SkipAssetCreationFromLocalModules: *bool,
}
Properties
Name | Type | Description |
---|---|---|
DependsOn | *[]ITerraformDependable | No description. |
ForEach | ITerraformIterator | No description. |
Providers | *[]interface{} | No description. |
SkipAssetCreationFromLocalModules | *bool | No description. |
DependsOn
Optional
DependsOn *[]ITerraformDependable
- Type: *[]ITerraformDependable
ForEach
Optional
ForEach ITerraformIterator
- Type: ITerraformIterator
Providers
Optional
Providers *[]interface{}
- Type: *[]interface{}
SkipAssetCreationFromLocalModules
Optional
SkipAssetCreationFromLocalModules *bool
- Type: *bool
TerraformOutputConfig
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.TerraformOutputConfig {
Value: interface{},
DependsOn: *[]github.com/hashicorp/terraform-cdk-go/cdktf.ITerraformDependable,
Description: *string,
Sensitive: *bool,
StaticId: *bool,
}
Properties
Name | Type | Description |
---|---|---|
Value | interface{} | No description. |
DependsOn | *[]ITerraformDependable | No description. |
Description | *string | No description. |
Sensitive | *bool | No description. |
StaticId | *bool | If set to true the synthesized Terraform Output will be named after the id passed to the constructor instead of the default (TerraformOutput.friendlyUniqueId). |
Value
Required
Value interface{}
- Type: interface{}
DependsOn
Optional
DependsOn *[]ITerraformDependable
- Type: *[]ITerraformDependable
Description
Optional
Description *string
- Type: *string
Sensitive
Optional
Sensitive *bool
- Type: *bool
StaticId
Optional
StaticId *bool
- 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
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.TerraformProviderConfig {
TerraformResourceType: *string,
TerraformGeneratorMetadata: github.com/hashicorp/terraform-cdk-go/cdktf.TerraformProviderGeneratorMetadata,
TerraformProviderSource: *string,
}
Properties
Name | Type | Description |
---|---|---|
TerraformResourceType | *string | No description. |
TerraformGeneratorMetadata | TerraformProviderGeneratorMetadata | No description. |
TerraformProviderSource | *string | No description. |
TerraformResourceType
Required
TerraformResourceType *string
- Type: *string
TerraformGeneratorMetadata
Optional
TerraformGeneratorMetadata TerraformProviderGeneratorMetadata
TerraformProviderSource
Optional
TerraformProviderSource *string
- Type: *string
TerraformProviderGeneratorMetadata
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.TerraformProviderGeneratorMetadata {
ProviderName: *string,
ProviderVersion: *string,
ProviderVersionConstraint: *string,
}
Properties
Name | Type | Description |
---|---|---|
ProviderName | *string | No description. |
ProviderVersion | *string | No description. |
ProviderVersionConstraint | *string | No description. |
ProviderName
Required
ProviderName *string
- Type: *string
ProviderVersion
Optional
ProviderVersion *string
- Type: *string
ProviderVersionConstraint
Optional
ProviderVersionConstraint *string
- Type: *string
TerraformResourceConfig
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.TerraformResourceConfig {
Connection: interface{},
Count: *f64,
DependsOn: *[]github.com/hashicorp/terraform-cdk-go/cdktf.ITerraformDependable,
ForEach: github.com/hashicorp/terraform-cdk-go/cdktf.ITerraformIterator,
Lifecycle: github.com/hashicorp/terraform-cdk-go/cdktf.TerraformResourceLifecycle,
Provider: github.com/hashicorp/terraform-cdk-go/cdktf.TerraformProvider,
Provisioners: *[]interface{},
TerraformResourceType: *string,
TerraformGeneratorMetadata: github.com/hashicorp/terraform-cdk-go/cdktf.TerraformProviderGeneratorMetadata,
}
Properties
Name | Type | Description |
---|---|---|
Connection | interface{} | No description. |
Count | *f64 | No description. |
DependsOn | *[]ITerraformDependable | No description. |
ForEach | ITerraformIterator | No description. |
Lifecycle | TerraformResourceLifecycle | No description. |
Provider | TerraformProvider | No description. |
Provisioners | *[]interface{} | No description. |
TerraformResourceType | *string | No description. |
TerraformGeneratorMetadata | TerraformProviderGeneratorMetadata | No description. |
Connection
Optional
Connection interface{}
- Type: interface{}
Count
Optional
Count *f64
- Type: *f64
DependsOn
Optional
DependsOn *[]ITerraformDependable
- Type: *[]ITerraformDependable
ForEach
Optional
ForEach ITerraformIterator
- Type: ITerraformIterator
Lifecycle
Optional
Lifecycle TerraformResourceLifecycle
Provider
Optional
Provider TerraformProvider
- Type: TerraformProvider
Provisioners
Optional
Provisioners *[]interface{}
- Type: *[]interface{}
TerraformResourceType
Required
TerraformResourceType *string
- Type: *string
TerraformGeneratorMetadata
Optional
TerraformGeneratorMetadata TerraformProviderGeneratorMetadata
TerraformResourceLifecycle
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.TerraformResourceLifecycle {
CreateBeforeDestroy: *bool,
IgnoreChanges: interface{},
PreventDestroy: *bool,
}
Properties
Name | Type | Description |
---|---|---|
CreateBeforeDestroy | *bool | No description. |
IgnoreChanges | interface{} | No description. |
PreventDestroy | *bool | No description. |
CreateBeforeDestroy
Optional
CreateBeforeDestroy *bool
- Type: *bool
IgnoreChanges
Optional
IgnoreChanges interface{}
- Type: interface{}
PreventDestroy
Optional
PreventDestroy *bool
- Type: *bool
TerraformStackMetadata
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.TerraformStackMetadata {
Backend: *string,
StackName: *string,
Version: *string,
Cloud: *string,
}
Properties
Name | Type | Description |
---|---|---|
Backend | *string | No description. |
StackName | *string | No description. |
Version | *string | No description. |
Cloud | *string | No description. |
Backend
Required
Backend *string
- Type: *string
StackName
Required
StackName *string
- Type: *string
Version
Required
Version *string
- Type: *string
Cloud
Optional
Cloud *string
- Type: *string
TerraformVariableConfig
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.TerraformVariableConfig {
Default: interface{},
Description: *string,
Nullable: *bool,
Sensitive: *bool,
Type: *string,
Validation: *[]github.com/hashicorp/terraform-cdk-go/cdktf.TerraformVariableValidationConfig,
}
Properties
Name | Type | Description |
---|---|---|
Default | interface{} | No description. |
Description | *string | No description. |
Nullable | *bool | No description. |
Sensitive | *bool | No description. |
Type | *string | The type argument in a variable block allows you to restrict the type of value that will be accepted as the value for a variable. |
Validation | *[]TerraformVariableValidationConfig | Specify arbitrary custom validation rules for a particular variable using a validation block nested within the corresponding variable block. |
Default
Optional
Default interface{}
- Type: interface{}
Description
Optional
Description *string
- Type: *string
Nullable
Optional
Nullable *bool
- Type: *bool
Sensitive
Optional
Sensitive *bool
- Type: *bool
Type
Optional
Type *string
- 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, see {@link https://www.terraform.io/docs/configuration/types.html|Type Constraints}.
If both the type and default arguments are specified, the given default value must be convertible to the specified type.
Validation
Optional
Validation *[]TerraformVariableValidationConfig
- Type: *[]TerraformVariableValidationConfig
Specify arbitrary custom validation rules for a particular variable using a validation block nested within the corresponding variable block.
TerraformVariableValidationConfig
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.TerraformVariableValidationConfig {
Condition: interface{},
ErrorMessage: *string,
}
Properties
Name | Type | Description |
---|---|---|
Condition | interface{} | No description. |
ErrorMessage | *string | No description. |
Condition
Required
Condition interface{}
- Type: interface{}
ErrorMessage
Required
ErrorMessage *string
- Type: *string
TestingAppOptions
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.TestingAppOptions {
EnableFutureFlags: *bool,
FakeCdktfJsonPath: *bool,
Outdir: *string,
StackTraces: *bool,
StubVersion: *bool,
}
Properties
Name | Type | Description |
---|---|---|
EnableFutureFlags | *bool | No description. |
FakeCdktfJsonPath | *bool | No description. |
Outdir | *string | No description. |
StackTraces | *bool | No description. |
StubVersion | *bool | No description. |
EnableFutureFlags
Optional
EnableFutureFlags *bool
- Type: *bool
FakeCdktfJsonPath
Optional
FakeCdktfJsonPath *bool
- Type: *bool
Outdir
Optional
Outdir *string
- Type: *string
StackTraces
Optional
StackTraces *bool
- Type: *bool
StubVersion
Optional
StubVersion *bool
- 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://www.terraform.io/language/resources/provisioners/connection connection}
Initializer
import "github.com/hashicorp/terraform-cdk-go/cdktf"
&cdktf.WinrmProvisionerConnection {
Host: *string,
Type: *string,
Cacert: *string,
Https: *bool,
Insecure: *bool,
Password: *string,
Port: *f64,
ScriptPath: *string,
Timeout: *string,
UseNtlm: *bool,
User: *string,
}
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 | *f64 | The port to connect to. |
ScriptPath | *string | The path used to copy scripts meant for remote execution. |
Timeout | *string | The timeout to wait for the connection to become available. |
UseNtlm | *bool | Set to true to use NTLM authentication rather than default (basic authentication), removing the requirement for basic authentication to be enabled within the target guest. |
User | *string | The user to use for the connection. |
Host
Required
Host *string
- Type: *string
The address of the resource to connect to.
Type
Required
Type *string
- Type: *string
The connection type.
Valid values are "ssh" and "winrm". Provisioners typically assume that the remote system runs Microsoft Windows when using WinRM. Behaviors based on the SSH target_platform will force Windows-specific behavior for WinRM, unless otherwise specified.
Cacert
Optional
Cacert *string
- Type: *string
The CA certificate to validate against.
Https
Optional
Https *bool
- Type: *bool
Set to true to connect using HTTPS instead of HTTP.
Insecure
Optional
Insecure *bool
- Type: *bool
Set to true to skip validating the HTTPS certificate chain.
Password
Optional
Password *string
- Type: *string
The password to use for the connection.
Port
Optional
Port *f64
- Type: *f64
- Default: 22
The port to connect to.
ScriptPath
Optional
ScriptPath *string
- Type: *string
The path used to copy scripts meant for remote execution.
Refer to {@link https://www.terraform.io/language/resources/provisioners/connection#how-provisioners-execute-remote-scripts How Provisioners Execute Remote Scripts below for more details}
Timeout
Optional
Timeout *string
- Type: *string
- Default: 5m
The timeout to wait for the connection to become available.
Should be provided as a string (e.g., "30s" or "5m".)
UseNtlm
Optional
UseNtlm *bool
- Type: *bool
Set to true to use NTLM authentication rather than default (basic authentication), removing the requirement for basic authentication to be enabled within the target guest.
Refer to Authentication for Remote Connections in the Windows App Development documentation for more details.
User
Optional
User *string
- 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
func AddError(message *string)
Adds an { "error": < message > } metadata entry to this construct.
The toolkit will fail synthesis when errors are reported.
message
Required
- Type: *string
The error message.
AddInfo
func AddInfo(message *string)
Adds an info metadata entry to this construct.
The CLI will display the info message when apps are synthesized.
message
Required
- Type: *string
The info message.
AddWarning
func AddWarning(message *string)
Adds a warning metadata entry to this construct.
The CLI will display the warning when an app is synthesized. In a future release the CLI might introduce a --strict flag which will then fail the synthesis if it encounters a warning.
message
Required
- Type: *string
The warning message.
Static Functions
Name | Description |
---|---|
Of | Returns the annotations API for a construct scope. |
Of
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Annotations_Of(scope IConstruct) Annotations
Returns the annotations API for a construct scope.
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.IConstruct
The scope.
AnyMap
- Implements: ITerraformAddressable, IResolvable
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewAnyMap(terraformResource IInterpolatingParent, terraformAttribute *string) AnyMap
Name | Type | Description |
---|---|---|
terraformResource | IInterpolatingParent | No description. |
terraformAttribute | *string | No description. |
terraformResource
Required
- Type: IInterpolatingParent
terraformAttribute
Required
- Type: *string
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
Lookup | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
ComputeFqn
func ComputeFqn() *string
Lookup
func Lookup(key *string) interface{}
key
Required
- Type: *string
Resolve
func Resolve(_context IResolveContext) interface{}
Produce the Token's value at resolution time.
_context
Required
- Type: IResolveContext
ToString
func ToString() *string
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | _[]_string | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | *string | No description. |
CreationStack
Required
func CreationStack() *[]*string
- Type: _[]_string
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
func Fqn() *string
- Type: *string
AnyMapList
- Implements: ITerraformAddressable, IInterpolatingParent, IResolvable
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewAnyMapList(terraformResource IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) AnyMapList
Name | Type | Description |
---|---|---|
terraformResource | IInterpolatingParent | No description. |
terraformAttribute | *string | No description. |
wrapsSet | *bool | No description. |
terraformResource
Required
- Type: IInterpolatingParent
terraformAttribute
Required
- Type: *string
wrapsSet
Required
- Type: *bool
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
Get | No description. |
InterpolationForAttribute | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
ComputeFqn
func ComputeFqn() *string
Get
func Get(index *f64) AnyMap
index
Required
- Type: *f64
InterpolationForAttribute
func InterpolationForAttribute(property *string) IResolvable
property
Required
- Type: *string
Resolve
func Resolve(_context IResolveContext) interface{}
Produce the Token's value at resolution time.
_context
Required
- Type: IResolveContext
ToString
func ToString() *string
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | _[]_string | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | *string | No description. |
CreationStack
Required
func CreationStack() *[]*string
- Type: _[]_string
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
func Fqn() *string
- 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
func Add(aspect IAspect)
Adds an aspect to apply this scope before synthesis.
aspect
Required
- Type: IAspect
The aspect to add.
Static Functions
Name | Description |
---|---|
Of | Returns the Aspects object associated with a construct scope. |
Of
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Aspects_Of(scope IConstruct) Aspects
Returns the Aspects
object associated with a construct scope.
scope
Required
- Type: github.com/aws/constructs-go/constructs/v10.IConstruct
The scope for which these aspects will apply.
Properties
All
Required
func All() *[]IAspect
- Type: *[]IAspect
The list of aspects which were directly applied on this scope.
AssertionReturn
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf/testingmatchers"
testingmatchers.NewAssertionReturn(message *string, pass *bool) AssertionReturn
message
Required
- Type: *string
pass
Required
- Type: *bool
Properties
Message
Required
func Message() *string
- Type: *string
Pass
Required
func Pass() *bool
- Type: *bool
BooleanMap
- Implements: ITerraformAddressable, IResolvable
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewBooleanMap(terraformResource IInterpolatingParent, terraformAttribute *string) BooleanMap
Name | Type | Description |
---|---|---|
terraformResource | IInterpolatingParent | No description. |
terraformAttribute | *string | No description. |
terraformResource
Required
- Type: IInterpolatingParent
terraformAttribute
Required
- Type: *string
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
Lookup | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
ComputeFqn
func ComputeFqn() *string
Lookup
func Lookup(key *string) IResolvable
key
Required
- Type: *string
Resolve
func Resolve(_context IResolveContext) interface{}
Produce the Token's value at resolution time.
_context
Required
- Type: IResolveContext
ToString
func ToString() *string
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | _[]_string | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | *string | No description. |
CreationStack
Required
func CreationStack() *[]*string
- Type: _[]_string
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
func Fqn() *string
- Type: *string
BooleanMapList
- Implements: ITerraformAddressable, IInterpolatingParent, IResolvable
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewBooleanMapList(terraformResource IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) BooleanMapList
Name | Type | Description |
---|---|---|
terraformResource | IInterpolatingParent | No description. |
terraformAttribute | *string | No description. |
wrapsSet | *bool | No description. |
terraformResource
Required
- Type: IInterpolatingParent
terraformAttribute
Required
- Type: *string
wrapsSet
Required
- Type: *bool
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
Get | No description. |
InterpolationForAttribute | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
ComputeFqn
func ComputeFqn() *string
Get
func Get(index *f64) BooleanMap
index
Required
- Type: *f64
InterpolationForAttribute
func InterpolationForAttribute(property *string) IResolvable
property
Required
- Type: *string
Resolve
func Resolve(_context IResolveContext) interface{}
Produce the Token's value at resolution time.
_context
Required
- Type: IResolveContext
ToString
func ToString() *string
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | _[]_string | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | *string | No description. |
CreationStack
Required
func CreationStack() *[]*string
- Type: _[]_string
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
func Fqn() *string
- Type: *string
CloudWorkspace
A cloud workspace can either be a single named workspace, or a list of tagged workspaces.
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewCloudWorkspace() CloudWorkspace
Name | Type | Description |
---|
Methods
Name | Description |
---|---|
ToTerraform | No description. |
ToTerraform
func ToTerraform() interface{}
ComplexComputedList
- Implements: IInterpolatingParent, IResolvable, ITerraformAddressable
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewComplexComputedList(terraformResource IInterpolatingParent, terraformAttribute *string, complexComputedListIndex *string, wrapsSet *bool) ComplexComputedList
Name | Type | Description |
---|---|---|
terraformResource | IInterpolatingParent | No description. |
terraformAttribute | *string | No description. |
complexComputedListIndex | *string | No description. |
wrapsSet | *bool | No description. |
terraformResource
Required
- Type: IInterpolatingParent
terraformAttribute
Required
- Type: *string
complexComputedListIndex
Required
- Type: *string
wrapsSet
Optional
- Type: *bool
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
GetAnyMapAttribute | No description. |
GetBooleanAttribute | No description. |
GetBooleanMapAttribute | No description. |
GetListAttribute | No description. |
GetNumberAttribute | No description. |
GetNumberListAttribute | No description. |
GetNumberMapAttribute | No description. |
GetStringAttribute | No description. |
GetStringMapAttribute | No description. |
InterpolationForAttribute | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
ComputeFqn
ComputeFqn
func ComputeFqn() *string
GetAnyMapAttribute
GetAnyMapAttribute
func GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{}
terraformAttribute
Required
- Type: *string
GetBooleanAttribute
GetBooleanAttribute
func GetBooleanAttribute(terraformAttribute *string) IResolvable
terraformAttribute
Required
- Type: *string
GetBooleanMapAttribute
GetBooleanMapAttribute
func GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool
terraformAttribute
Required
- Type: *string
GetListAttribute
GetListAttribute
func GetListAttribute(terraformAttribute *string) *[]*string
terraformAttribute
Required
- Type: *string
GetNumberAttribute
GetNumberAttribute
func GetNumberAttribute(terraformAttribute *string) *f64
terraformAttribute
Required
- Type: *string
GetNumberListAttribute
GetNumberListAttribute
func GetNumberListAttribute(terraformAttribute *string) *[]*f64
terraformAttribute
Required
- Type: *string
GetNumberMapAttribute
GetNumberMapAttribute
func GetNumberMapAttribute(terraformAttribute *string) *map[string]*f64
terraformAttribute
Required
- Type: *string
GetStringAttribute
GetStringAttribute
func GetStringAttribute(terraformAttribute *string) *string
terraformAttribute
Required
- Type: *string
GetStringMapAttribute
GetStringMapAttribute
func GetStringMapAttribute(terraformAttribute *string) *map[string]*string
terraformAttribute
Required
- Type: *string
InterpolationForAttribute
InterpolationForAttribute
func InterpolationForAttribute(property *string) IResolvable
property
Required
- Type: *string
Resolve
Resolve
func Resolve(_context IResolveContext) interface{}
Produce the Token's value at resolution time.
_context
Required
- Type: IResolveContext
ToString
ToString
func ToString() *string
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | _[]_string | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | *string | No description. |
CreationStack
Required
CreationStack
- Deprecated: Going to be replaced by Array of ComplexListItem and will be removed in the future
func CreationStack() *[]*string
- Type: _[]_string
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
Fqn
- Deprecated: Going to be replaced by Array of ComplexListItem and will be removed in the future
func Fqn() *string
- Type: *string
ComplexList
- Implements: ITerraformAddressable, IResolvable
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewComplexList(terraformResource IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) ComplexList
Name | Type | Description |
---|---|---|
terraformResource | IInterpolatingParent | No description. |
terraformAttribute | *string | No description. |
wrapsSet | *bool | No description. |
terraformResource
Required
- Type: IInterpolatingParent
terraformAttribute
Required
- Type: *string
wrapsSet
Required
- Type: *bool
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
ComputeFqn
func ComputeFqn() *string
Resolve
func Resolve(_context IResolveContext) interface{}
Produce the Token's value at resolution time.
_context
Required
- Type: IResolveContext
ToString
func ToString() *string
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | _[]_string | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | *string | No description. |
CreationStack
Required
func CreationStack() *[]*string
- Type: _[]_string
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
func Fqn() *string
- Type: *string
ComplexMap
- Implements: ITerraformAddressable, IResolvable
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewComplexMap(terraformResource IInterpolatingParent, terraformAttribute *string) ComplexMap
Name | Type | Description |
---|---|---|
terraformResource | IInterpolatingParent | No description. |
terraformAttribute | *string | No description. |
terraformResource
Required
- Type: IInterpolatingParent
terraformAttribute
Required
- Type: *string
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
ComputeFqn
func ComputeFqn() *string
Resolve
func Resolve(_context IResolveContext) interface{}
Produce the Token's value at resolution time.
_context
Required
- Type: IResolveContext
ToString
func ToString() *string
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | _[]_string | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | *string | No description. |
CreationStack
Required
func CreationStack() *[]*string
- Type: _[]_string
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
func Fqn() *string
- Type: *string
ComplexObject
- Implements: IInterpolatingParent, IResolvable, ITerraformAddressable
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewComplexObject(terraformResource IInterpolatingParent, terraformAttribute *string, complexObjectIsFromSet *bool, complexObjectIndex interface{}) ComplexObject
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 | interface{} | the index of the complex object in a list. |
terraformResource
Required
- Type: IInterpolatingParent
terraformAttribute
Required
- Type: *string
complexObjectIsFromSet
Required
- Type: *bool
set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items.
complexObjectIndex
Optional
- Type: interface{}
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
func ComputeFqn() *string
GetAnyMapAttribute
func GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{}
terraformAttribute
Required
- Type: *string
GetBooleanAttribute
func GetBooleanAttribute(terraformAttribute *string) IResolvable
terraformAttribute
Required
- Type: *string
GetBooleanMapAttribute
func GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool
terraformAttribute
Required
- Type: *string
GetListAttribute
func GetListAttribute(terraformAttribute *string) *[]*string
terraformAttribute
Required
- Type: *string
GetNumberAttribute
func GetNumberAttribute(terraformAttribute *string) *f64
terraformAttribute
Required
- Type: *string
GetNumberListAttribute
func GetNumberListAttribute(terraformAttribute *string) *[]*f64
terraformAttribute
Required
- Type: *string
GetNumberMapAttribute
func GetNumberMapAttribute(terraformAttribute *string) *map[string]*f64
terraformAttribute
Required
- Type: *string
GetStringAttribute
func GetStringAttribute(terraformAttribute *string) *string
terraformAttribute
Required
- Type: *string
GetStringMapAttribute
func GetStringMapAttribute(terraformAttribute *string) *map[string]*string
terraformAttribute
Required
- Type: *string
InterpolationForAttribute
func InterpolationForAttribute(property *string) IResolvable
property
Required
- Type: *string
Resolve
func Resolve(_context IResolveContext) interface{}
Produce the Token's value at resolution time.
_context
Required
- Type: IResolveContext
ToString
func ToString() *string
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | _[]_string | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | *string | No description. |
CreationStack
Required
func CreationStack() *[]*string
- Type: _[]_string
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
func Fqn() *string
- Type: *string
DefaultTokenResolver
- Implements: ITokenResolver
Default resolver implementation.
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewDefaultTokenResolver(concat IFragmentConcatenator) DefaultTokenResolver
Name | Type | Description |
---|---|---|
concat | IFragmentConcatenator | No description. |
concat
Required
- Type: IFragmentConcatenator
Methods
Name | Description |
---|---|
ResolveList | Resolves a list of string. |
ResolveMap | Resolves a map token. |
ResolveNumberList | Resolves a list of numbers. |
ResolveString | Resolve string fragments to Tokens. |
ResolveToken | Default Token resolution. |
ResolveList
func ResolveList(xs *[]*string, context IResolveContext) interface{}
Resolves a list of string.
xs
Required
- Type: _[]_string
context
Required
- Type: IResolveContext
ResolveMap
func ResolveMap(xs *map[string]interface{}, context IResolveContext) interface{}
Resolves a map token.
xs
Required
- Type: *map[string]interface{}
context
Required
- Type: IResolveContext
ResolveNumberList
func ResolveNumberList(xs *[]*f64, context IResolveContext) interface{}
Resolves a list of numbers.
xs
Required
- Type: _[]_f64
context
Required
- Type: IResolveContext
ResolveString
func ResolveString(fragments TokenizedStringFragments, context IResolveContext) interface{}
Resolve string fragments to Tokens.
fragments
Required
- Type: TokenizedStringFragments
context
Required
- Type: IResolveContext
ResolveToken
func ResolveToken(t IResolvable, context IResolveContext, postProcessor IPostProcessor) interface{}
Default Token resolution.
Resolve the Token, recurse into whatever it returns, then finally post-process it.
t
Required
- Type: IResolvable
context
Required
- Type: IResolveContext
postProcessor
Required
- Type: IPostProcessor
Fn
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewFn() Fn
Name | Type | Description |
---|
Static Functions
Name | Description |
---|---|
Abs | {@link https://www.terraform.io/docs/language/functions/abs.html abs} returns the absolute value of the given number. |
Abspath | {@link https://www.terraform.io/docs/language/functions/abspath.html abspath} takes a string containing a filesystem path and converts it to an absolute path. |
Alltrue | {@link https://www.terraform.io/docs/language/functions/alltrue.html alltrue} returns true if all elements in a given collection are true or "true". |
Anytrue | {@link https://www.terraform.io/docs/language/functions/anytrue.html anytrue} returns true if any element in a given collection is true or "true". |
Base64decode | {@link https://www.terraform.io/docs/language/functions/base64decode.html base64decode} takes a string containing a Base64 character sequence and returns the original string. |
Base64encode | {@link https://www.terraform.io/docs/language/functions/base64encode.html base64encode} takes a string containing a Base64 character sequence and returns the original string. |
Base64gzip | {@link https://www.terraform.io/docs/language/functions/base64gzip.html base64gzip} compresses a string with gzip and then encodes the result in Base64 encoding. |
Base64sha256 | {@link https://www.terraform.io/docs/language/functions/base64sha256.html base64sha256} computes the SHA256 hash of a given string and encodes it with Base64. |
Base64sha512 | {@link https://www.terraform.io/docs/language/functions/base64sha512.html base64sha512} computes the SHA512 hash of a given string and encodes it with Base64. |
Basename | {@link https://www.terraform.io/docs/language/functions/basename.html basename} takes a string containing a filesystem path and removes all except the last portion from it. |
Bcrypt | {@link https://www.terraform.io/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. |
Can | {@link https://www.terraform.io/docs/language/functions/can.html can} evaluates the given expression and returns a boolean value indicating whether the expression produced a result without any errors. |
Ceil | {@link https://www.terraform.io/docs/language/functions/ceil.html ceil} returns the closest whole number that is greater than or equal to the given value, which may be a fraction. |
Chomp | {@link https://www.terraform.io/docs/language/functions/chomp.html chomp} removes newline characters at the end of a string. |
Chunklist | {@link https://www.terraform.io/docs/language/functions/chunklist.html chunklist} splits a single list into fixed-size chunks, returning a list of lists. |
Cidrhost | {@link https://www.terraform.io/docs/language/functions/cidrhost.html cidrhost} calculates a full host IP address for a given host number within a given IP network address prefix. |
Cidrnetmask | {@link https://www.terraform.io/docs/language/functions/cidrnetmask.html cidrnetmask} converts an IPv4 address prefix given in CIDR notation into a subnet mask address. |
Cidrsubnet | {@link https://www.terraform.io/docs/language/functions/cidrsubnet.html cidrsubnet} calculates a subnet address within given IP network address prefix. |
Cidrsubnets | {@link https://www.terraform.io/docs/language/functions/cidrsubnets.html cidrsubnets} calculates a sequence of consecutive IP address ranges within a particular CIDR prefix. |
Coalesce | {@link https://www.terraform.io/docs/language/functions/coalesce.html coalesce} takes any number of arguments and returns the first one that isn't null or an empty string. |
Coalescelist | {@link https://www.terraform.io/docs/language/functions/coalescelist.html coalescelist} takes any number of list arguments and returns the first one that isn't empty. |
Compact | {@link https://www.terraform.io/docs/language/functions/compact.html compact} takes a list of strings and returns a new list with any empty string elements removed. |
Concat | {@link https://www.terraform.io/docs/language/functions/concat.html concat} takes two or more lists and combines them into a single list. |
Contains | {@link https://www.terraform.io/docs/language/functions/contains.html contains} determines whether a given list or set contains a given single value as one of its elements. |
Csvdecode | {@link https://www.terraform.io/docs/language/functions/csvdecode.html csvdecode} decodes a string containing CSV-formatted data and produces a list of maps representing that data. |
Dirname | {@link https://www.terraform.io/docs/language/functions/dirname.html dirname} takes a string containing a filesystem path and removes the last portion from it. |
Distinct | {@link https://www.terraform.io/docs/language/functions/distinct.html distinct} takes a list and returns a new list with any duplicate elements removed. |
Element | {@link https://www.terraform.io/docs/language/functions/element.html element} retrieves a single element from a list. |
File | {@link https://www.terraform.io/docs/language/functions/file.html file} takes a string containing a filesystem path and removes all except the last portion from it. |
Filebase64 | {@link https://www.terraform.io/docs/language/functions/filebase64.html filebase64} reads the contents of a file at the given path and returns them as a base64-encoded string. |
Filebase64sha256 | {@link https://www.terraform.io/docs/language/functions/filebase64sha256.html filebase64sha256} is a variant of base64sha256 that hashes the contents of a given file rather than a literal string. |
Filebase64sha512 | {@link https://www.terraform.io/docs/language/functions/filebase64sha512.html filebase64sha512} is a variant of base64sha512 that hashes the contents of a given file rather than a literal string. |
Fileexists | {@link https://www.terraform.io/docs/language/functions/fileexists.html fileexists} determines whether a file exists at a given path. |
Filemd5 | {@link https://www.terraform.io/docs/language/functions/filemd5.html filemd5} is a variant of md5 that hashes the contents of a given file rather than a literal string. |
Fileset | {@link https://www.terraform.io/docs/language/functions/fileset.html fileset} enumerates a set of regular file names given a path and pattern. |
Filesha1 | {@link https://www.terraform.io/docs/language/functions/filesha1.html filesha1} is a variant of sha1 that hashes the contents of a given file rather than a literal string. |
Filesha256 | {@link https://www.terraform.io/docs/language/functions/filesha256.html filesha256} is a variant of sha256 that hashes the contents of a given file rather than a literal string. |
Filesha512 | {@link https://www.terraform.io/docs/language/functions/filesha512.html filesha512} is a variant of sha512 that hashes the contents of a given file rather than a literal string. |
Flatten | {@link https://www.terraform.io/docs/language/functions/flatten.html flatten} takes a list and replaces any elements that are lists with a flattened sequence of the list contents. |
Floor | {@link https://www.terraform.io/docs/language/functions/floor.html floor} returns the closest whole number that is less than or equal to the given value, which may be a fraction. |
Format | {@link https://www.terraform.io/docs/language/functions/format.html format} produces a string by formatting a number of other values according to a specification string. |
Formatdate | {@link https://www.terraform.io/docs/language/functions/formatdate.html formatdate} converts a timestamp into a different time format. |
Formatlist | {@link https://www.terraform.io/docs/language/functions/formatlist.html formatlist} produces a list of strings by formatting a number of other values according to a specification string. |
Indent | {@link https://www.terraform.io/docs/language/functions/indent.html 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://www.terraform.io/docs/language/functions/index.html index} finds the element index for a given value in a list. |
Join | {@link https://www.terraform.io/docs/language/functions/join.html join} produces a string by concatenating together all elements of a given list of strings with the given delimiter. |
Jsondecode | {@link https://www.terraform.io/docs/language/functions/jsondecode.html jsondecode} interprets a given string as JSON, returning a representation of the result of decoding that string. |
Jsonencode | {@link https://www.terraform.io/docs/language/functions/jsonencode.html jsonencode} encodes a given value to a string using JSON syntax. |
Keys | {@link https://www.terraform.io/docs/language/functions/keys.html keys} takes a map and returns a list containing the keys from that map. |
LengthOf | {@link https://www.terraform.io/docs/language/functions/length.html length} determines the length of a given list, map, or string. |
Log | {@link https://www.terraform.io/docs/language/functions/log.html log} returns the logarithm of a given number in a given base. |
Lookup | {@link https://www.terraform.io/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. |
Lower | {@link https://www.terraform.io/docs/language/functions/lower.html lower} converts all cased letters in the given string to lowercase. |
Matchkeys | {@link https://www.terraform.io/docs/language/functions/matchkeys.html 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://www.terraform.io/docs/language/functions/max.html max} takes one or more numbers and returns the greatest number from the set. |
Md5 | {@link https://www.terraform.io/docs/language/functions/md5.html md5} computes the MD5 hash of a given string and encodes it with hexadecimal digits. |
MergeLists | {@link https://www.terraform.io/docs/language/functions/merge.html 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. |
MergeMaps | {@link https://www.terraform.io/docs/language/functions/merge.html 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://www.terraform.io/docs/language/functions/min.html min} takes one or more numbers and returns the smallest number from the set. |
Nonsensitive | {@link https://www.terraform.io/docs/language/functions/nonsensitive.html 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://www.terraform.io/docs/language/functions/one.html one} takes a list, set, or tuple value with either zero or one elements. |
ParseInt | {@link https://www.terraform.io/docs/language/functions/parseint.html 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://www.terraform.io/docs/language/functions/pathexpand.html pathexpand} takes a string containing a filesystem path and removes the last portion from it. |
Pow | {@link https://www.terraform.io/docs/language/functions/pow.html pow} calculates an exponent, by raising its first argument to the power of the second argument. |
Range | {@link https://www.terraform.io/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). |
Regex | {@link https://www.terraform.io/docs/language/functions/regex.html regex} applies a regular expression to a string and returns the matching substrings in pattern. |
Regexall | {@link https://www.terraform.io/docs/language/functions/regexall.html regexall} applies a regular expression to a string and returns a list of all matches. |
Replace | {@link https://www.terraform.io/docs/language/functions/replace.html replace} searches a given string for another given substring, and replaces each occurrence with a given replacement string. |
Reverse | {@link https://www.terraform.io/docs/language/functions/reverse.html 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://www.terraform.io/docs/language/functions/rsadecrypt.html rsadecrypt} decrypts an RSA-encrypted ciphertext, returning the corresponding cleartext. |
Sensitive | {@link https://www.terraform.io/docs/language/functions/sensitive.html 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 | {@link https://www.terraform.io/docs/language/functions/setintersection.html setintersection} function takes multiple sets and produces a single set containing only the elements that all of the given sets have in common. |
Setproduct | {@link https://www.terraform.io/docs/language/functions/setproduct.html setproduct} function finds all of the possible combinations of elements from all of the given sets by computing the Cartesian product. |
Setsubtract | {@link https://www.terraform.io/docs/language/functions/slice.html setsubtract} function returns a new set containing the elements from the first set that are not present in the second set. |
Setunion | {@link https://www.terraform.io/docs/language/functions/setunion.html setunion} function takes multiple sets and produces a single set containing the elements from all of the given sets. |
Sha1 | {@link https://www.terraform.io/docs/language/functions/sha1.html sha1} computes the SHA1 hash of a given string and encodes it with hexadecimal digits. |
Sha256 | {@link https://www.terraform.io/docs/language/functions/sha256.html sha256} computes the SHA256 hash of a given string and encodes it with hexadecimal digits. |
Sha512 | {@link https://www.terraform.io/docs/language/functions/sha512.html sha512} computes the SHA512 hash of a given string and encodes it with hexadecimal digits. |
Signum | {@link https://www.terraform.io/docs/language/functions/signum.html signum} determines the sign of a number, returning a number between -1 and 1 to represent the sign. |
Slice | {@link https://www.terraform.io/docs/language/functions/slice.html slice} extracts some consecutive elements from within a list. |
Sort | {@link https://www.terraform.io/docs/language/functions/sort.html sort} takes a list of strings and returns a new list with those strings sorted lexicographically. |
Split | {@link https://www.terraform.io/docs/language/functions/split.html split} produces a list by dividing a given string at all occurrences of a given separator. |
Strrev | {@link https://www.terraform.io/docs/language/functions/strrev.html strrev} reverses the characters in a string. |
Substr | {@link https://www.terraform.io/docs/language/functions/substr.html substr} extracts a substring from a given string by offset and length. |
Sum | {@link https://www.terraform.io/docs/language/functions/sum.html sum} takes a list or set of numbers and returns the sum of those numbers. |
Templatefile | {@link https://www.terraform.io/docs/language/functions/templatefile.html 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://www.terraform.io/docs/language/functions/textdecodebase64.html 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://www.terraform.io/docs/language/functions/textencodebase64.html 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://www.terraform.io/docs/language/functions/timeadd.html timeadd} adds a duration to a timestamp, returning a new timestamp. |
Timestamp | {@link https://www.terraform.io/docs/language/functions/timestamp.html timestamp} returns a UTC timestamp string in RFC 3339 format. |
Title | {@link https://www.terraform.io/docs/language/functions/title.html title} converts the first letter of each word in the given string to uppercase. |
Tobool | {@link https://www.terraform.io/docs/language/functions/tobool.html tobool} converts its argument to a boolean value. |
Tolist | {@link https://www.terraform.io/docs/language/functions/tolist.html tolist} converts its argument to a list value. |
Tomap | {@link https://www.terraform.io/docs/language/functions/tomap.html tomap} converts its argument to a map value. |
Tonumber | {@link https://www.terraform.io/docs/language/functions/tonumber.html tonumber} converts its argument to a number value. |
Toset | {@link https://www.terraform.io/docs/language/functions/toset.html toset} converts its argument to a set value. |
Tostring | {@link https://www.terraform.io/docs/language/functions/tostring.html tostring} converts its argument to a string value. |
Transpose | {@link https://www.terraform.io/docs/language/functions/transpose.html 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://www.terraform.io/docs/language/functions/trim.html trim} removes the specified characters from the start and end of the given string. |
Trimprefix | {@link https://www.terraform.io/docs/language/functions/trimprefix.html trimprefix} removes the specified prefix from the start of the given string. |
Trimspace | {@link https://www.terraform.io/docs/language/functions/trimspace.html trimspace} removes any space characters from the start and end of the given string. |
Trimsuffix | {@link https://www.terraform.io/docs/language/functions/trimsuffix.html trimsuffix} removes the specified suffix from the end of the given string. |
Try | {@link https://www.terraform.io/docs/language/functions/try.html 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://www.terraform.io/docs/language/functions/upper.html upper} converts all cased letters in the given string to uppercase. |
Urlencode | {@link https://www.terraform.io/docs/language/functions/urlencode.html urlencode} applies URL encoding to a given string. |
Uuid | {@link https://www.terraform.io/docs/language/functions/uuid.html uuid} generates a unique identifier string. |
Uuidv5 | {@link https://www.terraform.io/docs/language/functions/uuidv5.html uuidv5} generates a unique identifier string. |
Values | {@link https://www.terraform.io/docs/language/functions/values.html values} takes a map and returns a list containing the values of the elements in that map. |
Yamldecode | {@link https://www.terraform.io/docs/language/functions/yamldecode.html yamldecode} parses a string as a subset of YAML, and produces a representation of its value. |
Yamlencode | {@link https://www.terraform.io/docs/language/functions/yamlencode.html yamlencode} encodes a given value to a string using JSON syntax. |
Zipmap | {@link https://www.terraform.io/docs/language/functions/zipmap.html zipmap} constructs a map from a list of keys and a corresponding list of values. |
Abs
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Abs(value *f64) *f64
{@link https://www.terraform.io/docs/language/functions/abs.html abs} returns the absolute value of the given number.
value
Required
- Type: *f64
Abspath
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Abspath(value *string) *string
{@link https://www.terraform.io/docs/language/functions/abspath.html abspath} takes a string containing a filesystem path and converts it to an absolute path.
value
Required
- Type: *string
Alltrue
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Alltrue(values *[]interface{}) IResolvable
{@link https://www.terraform.io/docs/language/functions/alltrue.html alltrue} returns true if all elements in a given collection are true or "true".
values
Required
- Type: *[]interface{}
Anytrue
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Anytrue(value *[]interface{}) IResolvable
{@link https://www.terraform.io/docs/language/functions/anytrue.html anytrue} returns true if any element in a given collection is true or "true".
value
Required
- Type: *[]interface{}
Base64decode
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Base64decode(value *string) *string
{@link https://www.terraform.io/docs/language/functions/base64decode.html base64decode} takes a string containing a Base64 character sequence and returns the original string.
value
Required
- Type: *string
Base64encode
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Base64encode(value *string) *string
{@link https://www.terraform.io/docs/language/functions/base64encode.html base64encode} takes a string containing a Base64 character sequence and returns the original string.
value
Required
- Type: *string
Base64gzip
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Base64gzip(value *string) *string
{@link https://www.terraform.io/docs/language/functions/base64gzip.html base64gzip} compresses a string with gzip and then encodes the result in Base64 encoding.
value
Required
- Type: *string
Base64sha256
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Base64sha256(value *string) *string
{@link https://www.terraform.io/docs/language/functions/base64sha256.html base64sha256} computes the SHA256 hash of a given string and encodes it with Base64.
value
Required
- Type: *string
Base64sha512
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Base64sha512(value *string) *string
{@link https://www.terraform.io/docs/language/functions/base64sha512.html base64sha512} computes the SHA512 hash of a given string and encodes it with Base64.
value
Required
- Type: *string
Basename
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Basename(value *string) *string
{@link https://www.terraform.io/docs/language/functions/basename.html basename} takes a string containing a filesystem path and removes all except the last portion from it.
value
Required
- Type: *string
Bcrypt
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Bcrypt(value *string, cost *f64) *string
{@link https://www.terraform.io/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.
value
Required
- Type: *string
cost
Optional
- Type: *f64
Can
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Can(expression interface{}) IResolvable
{@link https://www.terraform.io/docs/language/functions/can.html can} evaluates the given expression and returns a boolean value indicating whether the expression produced a result without any errors.
expression
Required
- Type: interface{}
Ceil
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Ceil(value *f64) *f64
{@link https://www.terraform.io/docs/language/functions/ceil.html ceil} returns the closest whole number that is greater than or equal to the given value, which may be a fraction.
value
Required
- Type: *f64
Chomp
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Chomp(value *string) *string
{@link https://www.terraform.io/docs/language/functions/chomp.html chomp} removes newline characters at the end of a string.
value
Required
- Type: *string
Chunklist
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Chunklist(value *[]interface{}, chunkSize *f64) *[]*string
{@link https://www.terraform.io/docs/language/functions/chunklist.html chunklist} splits a single list into fixed-size chunks, returning a list of lists.
value
Required
- Type: *[]interface{}
chunkSize
Required
- Type: *f64
Cidrhost
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Cidrhost(prefix *string, hostnum *f64) *string
{@link https://www.terraform.io/docs/language/functions/cidrhost.html cidrhost} calculates a full host IP address for a given host number within a given IP network address prefix.
prefix
Required
- Type: *string
hostnum
Required
- Type: *f64
Cidrnetmask
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Cidrnetmask(prefix *string) *string
{@link https://www.terraform.io/docs/language/functions/cidrnetmask.html cidrnetmask} converts an IPv4 address prefix given in CIDR notation into a subnet mask address.
prefix
Required
- Type: *string
Cidrsubnet
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Cidrsubnet(prefix *string, newbits *f64, netnum *f64) *string
{@link https://www.terraform.io/docs/language/functions/cidrsubnet.html cidrsubnet} calculates a subnet address within given IP network address prefix.
prefix
Required
- Type: *string
newbits
Required
- Type: *f64
netnum
Required
- Type: *f64
Cidrsubnets
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Cidrsubnets(prefix *string, newbits *[]*f64) *[]*string
{@link https://www.terraform.io/docs/language/functions/cidrsubnets.html cidrsubnets} calculates a sequence of consecutive IP address ranges within a particular CIDR prefix.
prefix
Required
- Type: *string
newbits
Required
- Type: _[]_f64
Coalesce
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Coalesce(value *[]interface{}) IResolvable
{@link https://www.terraform.io/docs/language/functions/coalesce.html coalesce} takes any number of arguments and returns the first one that isn't null or an empty string.
value
Required
- Type: *[]interface{}
Arguments are passed in an array.
Coalescelist
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Coalescelist(value *[]*[]interface{}) *[]*string
{@link https://www.terraform.io/docs/language/functions/coalescelist.html coalescelist} takes any number of list arguments and returns the first one that isn't empty.
value
Required
- Type: [][]interface{}
Arguments are passed in an array.
Compact
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Compact(value *[]*string) *[]*string
{@link https://www.terraform.io/docs/language/functions/compact.html compact} takes a list of strings and returns a new list with any empty string elements removed.
value
Required
- Type: _[]_string
Concat
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Concat(value *[]*[]interface{}) *[]*string
{@link https://www.terraform.io/docs/language/functions/concat.html concat} takes two or more lists and combines them into a single list.
value
Required
- Type: [][]interface{}
Contains
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Contains(list interface{}, value interface{}) IResolvable
{@link https://www.terraform.io/docs/language/functions/contains.html contains} determines whether a given list or set contains a given single value as one of its elements.
list
Required
- Type: interface{}
value
Required
- Type: interface{}
Csvdecode
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Csvdecode(value *string) *[]*string
{@link https://www.terraform.io/docs/language/functions/csvdecode.html csvdecode} decodes a string containing CSV-formatted data and produces a list of maps representing that data.
value
Required
- Type: *string
Dirname
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Dirname(value *string) *string
{@link https://www.terraform.io/docs/language/functions/dirname.html dirname} takes a string containing a filesystem path and removes the last portion from it.
value
Required
- Type: *string
Distinct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Distinct(list interface{}) *[]*string
{@link https://www.terraform.io/docs/language/functions/distinct.html distinct} takes a list and returns a new list with any duplicate elements removed.
list
Required
- Type: interface{}
Element
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Element(list interface{}, index *f64) interface{}
{@link https://www.terraform.io/docs/language/functions/element.html element} retrieves a single element from a list.
list
Required
- Type: interface{}
index
Required
- Type: *f64
File
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_File(value *string) *string
{@link https://www.terraform.io/docs/language/functions/file.html file} takes a string containing a filesystem path and removes all except the last portion from it.
value
Required
- Type: *string
Filebase64
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Filebase64(value *string) *string
{@link https://www.terraform.io/docs/language/functions/filebase64.html filebase64} reads the contents of a file at the given path and returns them as a base64-encoded string.
value
Required
- Type: *string
Filebase64sha256
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Filebase64sha256(value *string) *string
{@link https://www.terraform.io/docs/language/functions/filebase64sha256.html filebase64sha256} is a variant of base64sha256 that hashes the contents of a given file rather than a literal string.
value
Required
- Type: *string
Filebase64sha512
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Filebase64sha512(value *string) *string
{@link https://www.terraform.io/docs/language/functions/filebase64sha512.html filebase64sha512} is a variant of base64sha512 that hashes the contents of a given file rather than a literal string.
value
Required
- Type: *string
Fileexists
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Fileexists(value *string) IResolvable
{@link https://www.terraform.io/docs/language/functions/fileexists.html fileexists} determines whether a file exists at a given path.
value
Required
- Type: *string
Filemd5
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Filemd5(value *string) *string
{@link https://www.terraform.io/docs/language/functions/filemd5.html filemd5} is a variant of md5 that hashes the contents of a given file rather than a literal string.
value
Required
- Type: *string
Fileset
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Fileset(path *string, pattern *string) *[]*string
{@link https://www.terraform.io/docs/language/functions/fileset.html fileset} enumerates a set of regular file names given a path and pattern.
path
Required
- Type: *string
pattern
Required
- Type: *string
Filesha1
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Filesha1(value *string) *string
{@link https://www.terraform.io/docs/language/functions/filesha1.html filesha1} is a variant of sha1 that hashes the contents of a given file rather than a literal string.
value
Required
- Type: *string
Filesha256
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Filesha256(value *string) *string
{@link https://www.terraform.io/docs/language/functions/filesha256.html filesha256} is a variant of sha256 that hashes the contents of a given file rather than a literal string.
value
Required
- Type: *string
Filesha512
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Filesha512(value *string) *string
{@link https://www.terraform.io/docs/language/functions/filesha512.html filesha512} is a variant of sha512 that hashes the contents of a given file rather than a literal string.
value
Required
- Type: *string
Flatten
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Flatten(list interface{}) *[]*string
{@link https://www.terraform.io/docs/language/functions/flatten.html flatten} takes a list and replaces any elements that are lists with a flattened sequence of the list contents.
list
Required
- Type: interface{}
Floor
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Floor(value *f64) *f64
{@link https://www.terraform.io/docs/language/functions/floor.html floor} returns the closest whole number that is less than or equal to the given value, which may be a fraction.
value
Required
- Type: *f64
Format
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Format(spec *string, values *[]interface{}) *string
{@link https://www.terraform.io/docs/language/functions/format.html format} produces a string by formatting a number of other values according to a specification string.
spec
Required
- Type: *string
values
Required
- Type: *[]interface{}
Formatdate
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Formatdate(spec *string, timestamp *string) *string
{@link https://www.terraform.io/docs/language/functions/formatdate.html formatdate} converts a timestamp into a different time format.
spec
Required
- Type: *string
timestamp
Required
- Type: *string
Formatlist
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Formatlist(spec *string, values *[]interface{}) *[]*string
{@link https://www.terraform.io/docs/language/functions/formatlist.html formatlist} produces a list of strings by formatting a number of other values according to a specification string.
spec
Required
- Type: *string
values
Required
- Type: *[]interface{}
Indent
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Indent(indentation *f64, value *string) *string
{@link https://www.terraform.io/docs/language/functions/indent.html indent} adds a given number of spaces to the beginnings of all but the first line in a given multi-line string.
indentation
Required
- Type: *f64
value
Required
- Type: *string
Index
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Index(list interface{}, value interface{}) *f64
{@link https://www.terraform.io/docs/language/functions/index.html index} finds the element index for a given value in a list.
list
Required
- Type: interface{}
value
Required
- Type: interface{}
Join
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Join(separator *string, value *[]*string) *string
{@link https://www.terraform.io/docs/language/functions/join.html join} produces a string by concatenating together all elements of a given list of strings with the given delimiter.
separator
Required
- Type: *string
value
Required
- Type: _[]_string
Jsondecode
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Jsondecode(value *string) interface{}
{@link https://www.terraform.io/docs/language/functions/jsondecode.html jsondecode} interprets a given string as JSON, returning a representation of the result of decoding that string.
value
Required
- Type: *string
Jsonencode
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Jsonencode(value interface{}) *string
{@link https://www.terraform.io/docs/language/functions/jsonencode.html jsonencode} encodes a given value to a string using JSON syntax.
value
Required
- Type: interface{}
Keys
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Keys(map interface{}) *[]*string
{@link https://www.terraform.io/docs/language/functions/keys.html keys} takes a map and returns a list containing the keys from that map.
map
Required
- Type: interface{}
LengthOf
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_LengthOf(value interface{}) *f64
{@link https://www.terraform.io/docs/language/functions/length.html length} determines the length of a given list, map, or string.
value
Required
- Type: interface{}
Log
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Log(value *f64, base *f64) *f64
{@link https://www.terraform.io/docs/language/functions/log.html log} returns the logarithm of a given number in a given base.
value
Required
- Type: *f64
base
Required
- Type: *f64
Lookup
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Lookup(value interface{}, key interface{}, defaultValue interface{}) interface{}
{@link https://www.terraform.io/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.
value
Required
- Type: interface{}
key
Required
- Type: interface{}
defaultValue
Required
- Type: interface{}
Lower
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Lower(value *string) *string
{@link https://www.terraform.io/docs/language/functions/lower.html lower} converts all cased letters in the given string to lowercase.
value
Required
- Type: *string
Matchkeys
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Matchkeys(valuesList interface{}, keysList interface{}, searchSet interface{}) *[]*string
{@link https://www.terraform.io/docs/language/functions/matchkeys.html 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.
valuesList
Required
- Type: interface{}
keysList
Required
- Type: interface{}
searchSet
Required
- Type: interface{}
Max
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Max(values *[]*f64) *f64
{@link https://www.terraform.io/docs/language/functions/max.html max} takes one or more numbers and returns the greatest number from the set.
values
Required
- Type: _[]_f64
Md5
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Md5(value *string) *string
{@link https://www.terraform.io/docs/language/functions/md5.html md5} computes the MD5 hash of a given string and encodes it with hexadecimal digits.
value
Required
- Type: *string
MergeLists
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_MergeLists(values *[]interface{}) *[]*string
{@link https://www.terraform.io/docs/language/functions/merge.html 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.
values
Required
- Type: *[]interface{}
Arguments are passed in an array.
MergeMaps
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_MergeMaps(values *[]interface{}) *map[string]*string
{@link https://www.terraform.io/docs/language/functions/merge.html 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.
values
Required
- Type: *[]interface{}
Arguments are passed in an array.
Min
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Min(values *[]*f64) *f64
{@link https://www.terraform.io/docs/language/functions/min.html min} takes one or more numbers and returns the smallest number from the set.
values
Required
- Type: _[]_f64
Nonsensitive
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Nonsensitive(expression interface{}) interface{}
{@link https://www.terraform.io/docs/language/functions/nonsensitive.html nonsensitive} takes a sensitive value and returns a copy of that value with the sensitive marking removed, thereby exposing the sensitive value.
expression
Required
- Type: interface{}
One
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_One(list interface{}) interface{}
{@link https://www.terraform.io/docs/language/functions/one.html one} takes a list, set, or tuple value with either zero or one elements.
list
Required
- Type: interface{}
ParseInt
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_ParseInt(value *string, base *f64) *f64
{@link https://www.terraform.io/docs/language/functions/parseint.html 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.
value
Required
- Type: *string
base
Required
- Type: *f64
Pathexpand
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Pathexpand(value *string) *string
{@link https://www.terraform.io/docs/language/functions/pathexpand.html pathexpand} takes a string containing a filesystem path and removes the last portion from it.
value
Required
- Type: *string
Pow
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Pow(value *f64, power *f64) *f64
{@link https://www.terraform.io/docs/language/functions/pow.html pow} calculates an exponent, by raising its first argument to the power of the second argument.
value
Required
- Type: *f64
power
Required
- Type: *f64
Range
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Range(start *f64, limit *f64, step *f64) *[]*string
{@link https://www.terraform.io/docs/language/functions/range.html range} generates a list of numbers using a start value, a limit value, and a step value.
start
Required
- Type: *f64
limit
Required
- Type: *f64
step
Optional
- Type: *f64
RawString
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_RawString(str *string) *string
Use this function to wrap a string and escape it properly for the use in Terraform This is only needed in certain scenarios (e.g., if you have unescaped double quotes in the string).
str
Required
- Type: *string
Regex
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Regex(pattern *string, value *string) *string
{@link https://www.terraform.io/docs/language/functions/regex.html regex} applies a regular expression to a string and returns the matching substrings in pattern.
pattern
Required
- Type: *string
value
Required
- Type: *string
Regexall
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Regexall(pattern *string, value *string) *[]*string
{@link https://www.terraform.io/docs/language/functions/regexall.html regexall} applies a regular expression to a string and returns a list of all matches.
pattern
Required
- Type: *string
value
Required
- Type: *string
Replace
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Replace(value *string, substring *string, replacement *string) *string
{@link https://www.terraform.io/docs/language/functions/replace.html replace} searches a given string for another given substring, and replaces each occurrence with a given replacement string.
value
Required
- Type: *string
substring
Required
- Type: *string
replacement
Required
- Type: *string
Reverse
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Reverse(values interface{}) *[]*string
{@link https://www.terraform.io/docs/language/functions/reverse.html 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.
values
Required
- Type: interface{}
Rsadecrypt
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Rsadecrypt(ciphertext *string, privatekey *string) *string
{@link https://www.terraform.io/docs/language/functions/rsadecrypt.html rsadecrypt} decrypts an RSA-encrypted ciphertext, returning the corresponding cleartext.
ciphertext
Required
- Type: *string
privatekey
Required
- Type: *string
Sensitive
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Sensitive(expression interface{}) interface{}
{@link https://www.terraform.io/docs/language/functions/sensitive.html 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.
expression
Required
- Type: interface{}
Setintersection
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Setintersection(values *[]interface{}) *[]*string
{@link https://www.terraform.io/docs/language/functions/setintersection.html setintersection} function takes multiple sets and produces a single set containing only the elements that all of the given sets have in common.
values
Required
- Type: *[]interface{}
Setproduct
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Setproduct(values *[]interface{}) *[]*string
{@link https://www.terraform.io/docs/language/functions/setproduct.html setproduct} function finds all of the possible combinations of elements from all of the given sets by computing the Cartesian product.
values
Required
- Type: *[]interface{}
Setsubtract
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Setsubtract(minuend interface{}, subtrahend interface{}) *[]*string
{@link https://www.terraform.io/docs/language/functions/slice.html setsubtract} function returns a new set containing the elements from the first set that are not present in the second set.
minuend
Required
- Type: interface{}
subtrahend
Required
- Type: interface{}
Setunion
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Setunion(values *[]interface{}) *[]*string
{@link https://www.terraform.io/docs/language/functions/setunion.html setunion} function takes multiple sets and produces a single set containing the elements from all of the given sets.
values
Required
- Type: *[]interface{}
Arguments are passed in an array.
Sha1
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Sha1(value *string) *string
{@link https://www.terraform.io/docs/language/functions/sha1.html sha1} computes the SHA1 hash of a given string and encodes it with hexadecimal digits.
value
Required
- Type: *string
Sha256
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Sha256(value *string) *string
{@link https://www.terraform.io/docs/language/functions/sha256.html sha256} computes the SHA256 hash of a given string and encodes it with hexadecimal digits.
value
Required
- Type: *string
Sha512
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Sha512(value *string) *string
{@link https://www.terraform.io/docs/language/functions/sha512.html sha512} computes the SHA512 hash of a given string and encodes it with hexadecimal digits.
value
Required
- Type: *string
Signum
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Signum(value *f64) *f64
{@link https://www.terraform.io/docs/language/functions/signum.html signum} determines the sign of a number, returning a number between -1 and 1 to represent the sign.
value
Required
- Type: *f64
Slice
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Slice(list interface{}, startindex *f64, endindex *f64) *[]*string
{@link https://www.terraform.io/docs/language/functions/slice.html slice} extracts some consecutive elements from within a list.
list
Required
- Type: interface{}
startindex
Required
- Type: *f64
endindex
Required
- Type: *f64
Sort
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Sort(list interface{}) *[]*string
{@link https://www.terraform.io/docs/language/functions/sort.html sort} takes a list of strings and returns a new list with those strings sorted lexicographically.
list
Required
- Type: interface{}
Split
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Split(seperator *string, value *string) *[]*string
{@link https://www.terraform.io/docs/language/functions/split.html split} produces a list by dividing a given string at all occurrences of a given separator.
seperator
Required
- Type: *string
value
Required
- Type: *string
Strrev
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Strrev(value *string) *string
{@link https://www.terraform.io/docs/language/functions/strrev.html strrev} reverses the characters in a string.
value
Required
- Type: *string
Substr
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Substr(value *string, offset *f64, length *f64) *string
{@link https://www.terraform.io/docs/language/functions/substr.html substr} extracts a substring from a given string by offset and length.
value
Required
- Type: *string
offset
Required
- Type: *f64
length
Required
- Type: *f64
Sum
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Sum(list interface{}) *f64
{@link https://www.terraform.io/docs/language/functions/sum.html sum} takes a list or set of numbers and returns the sum of those numbers.
list
Required
- Type: interface{}
Templatefile
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Templatefile(path *string, vars interface{}) *string
{@link https://www.terraform.io/docs/language/functions/templatefile.html templatefile} reads the file at the given path and renders its content as a template using a supplied set of template variables.
path
Required
- Type: *string
vars
Required
- Type: interface{}
Textdecodebase64
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Textdecodebase64(value *string, encodingName *string) *string
{@link https://www.terraform.io/docs/language/functions/textdecodebase64.html textdecodebase64} function decodes a string that was previously Base64-encoded, and then interprets the result as characters in a specified character encoding.
value
Required
- Type: *string
encodingName
Required
- Type: *string
Textencodebase64
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Textencodebase64(value *string, encodingName *string) *string
{@link https://www.terraform.io/docs/language/functions/textencodebase64.html 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.
value
Required
- Type: *string
encodingName
Required
- Type: *string
Timeadd
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Timeadd(timestamp *string, duration *string) *string
{@link https://www.terraform.io/docs/language/functions/timeadd.html timeadd} adds a duration to a timestamp, returning a new timestamp.
timestamp
Required
- Type: *string
duration
Required
- Type: *string
Timestamp
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Timestamp() *string
{@link https://www.terraform.io/docs/language/functions/timestamp.html timestamp} returns a UTC timestamp string in RFC 3339 format.
Title
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Title(value *string) *string
{@link https://www.terraform.io/docs/language/functions/title.html title} converts the first letter of each word in the given string to uppercase.
value
Required
- Type: *string
Tobool
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Tobool(expression interface{}) IResolvable
{@link https://www.terraform.io/docs/language/functions/tobool.html tobool} converts its argument to a boolean value.
expression
Required
- Type: interface{}
Tolist
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Tolist(expression interface{}) *[]*string
{@link https://www.terraform.io/docs/language/functions/tolist.html tolist} converts its argument to a list value.
expression
Required
- Type: interface{}
Tomap
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Tomap(expression interface{}) interface{}
{@link https://www.terraform.io/docs/language/functions/tomap.html tomap} converts its argument to a map value.
expression
Required
- Type: interface{}
Tonumber
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Tonumber(expression interface{}) *f64
{@link https://www.terraform.io/docs/language/functions/tonumber.html tonumber} converts its argument to a number value.
expression
Required
- Type: interface{}
Toset
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Toset(expression interface{}) interface{}
{@link https://www.terraform.io/docs/language/functions/toset.html toset} converts its argument to a set value.
expression
Required
- Type: interface{}
Tostring
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Tostring(expression interface{}) *string
{@link https://www.terraform.io/docs/language/functions/tostring.html tostring} converts its argument to a string value.
expression
Required
- Type: interface{}
Transpose
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Transpose(value interface{}) interface{}
{@link https://www.terraform.io/docs/language/functions/transpose.html transpose} takes a map of lists of strings and swaps the keys and values to produce a new map of lists of strings.
value
Required
- Type: interface{}
Trim
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Trim(value *string, replacement *string) *string
{@link https://www.terraform.io/docs/language/functions/trim.html trim} removes the specified characters from the start and end of the given string.
value
Required
- Type: *string
replacement
Required
- Type: *string
Trimprefix
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Trimprefix(value *string, prefix *string) *string
{@link https://www.terraform.io/docs/language/functions/trimprefix.html trimprefix} removes the specified prefix from the start of the given string.
value
Required
- Type: *string
prefix
Required
- Type: *string
Trimspace
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Trimspace(value *string) *string
{@link https://www.terraform.io/docs/language/functions/trimspace.html trimspace} removes any space characters from the start and end of the given string.
value
Required
- Type: *string
Trimsuffix
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Trimsuffix(value *string, suffix *string) *string
{@link https://www.terraform.io/docs/language/functions/trimsuffix.html trimsuffix} removes the specified suffix from the end of the given string.
value
Required
- Type: *string
suffix
Required
- Type: *string
Try
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Try(expression *[]interface{}) interface{}
{@link https://www.terraform.io/docs/language/functions/try.html try} evaluates all of its argument expressions in turn and returns the result of the first one that does not produce any errors.
expression
Required
- Type: *[]interface{}
Upper
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Upper(value *string) *string
{@link https://www.terraform.io/docs/language/functions/upper.html upper} converts all cased letters in the given string to uppercase.
value
Required
- Type: *string
Urlencode
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Urlencode(value *string) *string
{@link https://www.terraform.io/docs/language/functions/urlencode.html urlencode} applies URL encoding to a given string.
value
Required
- Type: *string
Uuid
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Uuid() *string
{@link https://www.terraform.io/docs/language/functions/uuid.html uuid} generates a unique identifier string.
Uuidv5
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Uuidv5(namespace *string, name *string) *string
{@link https://www.terraform.io/docs/language/functions/uuidv5.html uuidv5} generates a unique identifier string.
namespace
Required
- Type: *string
name
Required
- Type: *string
Values
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Values(value interface{}) *[]*string
{@link https://www.terraform.io/docs/language/functions/values.html values} takes a map and returns a list containing the values of the elements in that map.
value
Required
- Type: interface{}
Yamldecode
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Yamldecode(value *string) interface{}
{@link https://www.terraform.io/docs/language/functions/yamldecode.html yamldecode} parses a string as a subset of YAML, and produces a representation of its value.
value
Required
- Type: *string
Yamlencode
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Yamlencode(value interface{}) *string
{@link https://www.terraform.io/docs/language/functions/yamlencode.html yamlencode} encodes a given value to a string using JSON syntax.
value
Required
- Type: interface{}
Zipmap
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Fn_Zipmap(keyslist interface{}, valueslist interface{}) interface{}
{@link https://www.terraform.io/docs/language/functions/zipmap.html zipmap} constructs a map from a list of keys and a corresponding list of values.
keyslist
Required
- Type: interface{}
valueslist
Required
- Type: interface{}
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
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewLazy() 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
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Lazy_AnyValue(producer IAnyProducer, options LazyAnyValueOptions) IResolvable
Produces a lazy token from an untyped value.
producer
Required
- Type: IAnyProducer
The lazy producer.
options
Optional
- Type: LazyAnyValueOptions
Options.
ListValue
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Lazy_ListValue(producer IListProducer, options LazyListValueOptions) *[]*string
Returns a list-ified token for a lazy value.
producer
Required
- Type: IListProducer
The producer.
options
Optional
- Type: LazyListValueOptions
Options.
NumberValue
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Lazy_NumberValue(producer INumberProducer) *f64
Returns a numberified token for a lazy value.
producer
Required
- Type: INumberProducer
The producer.
StringValue
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Lazy_StringValue(producer IStringProducer, options LazyStringValueOptions) *string
Returns a stringified token for a lazy value.
producer
Required
- Type: IStringProducer
The producer.
options
Optional
- Type: LazyStringValueOptions
Options.
LazyBase
- Implements: IResolvable
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewLazyBase() 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
func AddPostProcessor(postProcessor IPostProcessor)
postProcessor
Required
- Type: IPostProcessor
Resolve
func Resolve(context IResolveContext) interface{}
Produce the Token's value at resolution time.
context
Required
- Type: IResolveContext
ToJSON
func ToJSON() interface{}
Turn this Token into JSON.
Called automatically when JSON.stringify() is called on a Token.
ToString
func ToString() *string
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | _[]_string | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
CreationStack
Required
func CreationStack() *[]*string
- 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
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewListTerraformIterator(list interface{}) ListTerraformIterator
Name | Type | Description |
---|---|---|
list | interface{} | No description. |
list
Required
- Type: interface{}
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
func Dynamic(attributes *map[string]interface{}) IResolvable
attributes
Required
- Type: *map[string]interface{}
GetAny
func GetAny(attribute *string) IResolvable
attribute
Required
- Type: *string
name of the property to retrieve.
GetAnyMap
func GetAnyMap(attribute *string) *map[string]interface{}
attribute
Required
- Type: *string
name of the property to retrieve.
GetBoolean
func GetBoolean(attribute *string) IResolvable
attribute
Required
- Type: *string
name of the property to retrieve.
GetBooleanMap
func GetBooleanMap(attribute *string) *map[string]*bool
attribute
Required
- Type: *string
name of the property to retrieve.
GetList
func GetList(attribute *string) *[]*string
attribute
Required
- Type: *string
name of the property to retrieve.
GetMap
func GetMap(attribute *string) *map[string]interface{}
attribute
Required
- Type: *string
name of the property to retrieve.
GetNumber
func GetNumber(attribute *string) *f64
attribute
Required
- Type: *string
name of the property to retrieve.
GetNumberList
func GetNumberList(attribute *string) *[]*f64
attribute
Required
- Type: *string
name of the property to retrieve.
GetNumberMap
func GetNumberMap(attribute *string) *map[string]*f64
attribute
Required
- Type: *string
name of the property to retrieve.
GetString
func GetString(attribute *string) *string
attribute
Required
- Type: *string
name of the property to retrieve.
GetStringMap
func GetStringMap(attribute *string) *map[string]*string
attribute
Required
- Type: *string
name of the property to retrieve.
Static Functions
FromList
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.ListTerraformIterator_FromList(list interface{}) ListTerraformIterator
Creates a new iterator from a list.
list
Required
- Type: interface{}
FromMap
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.ListTerraformIterator_FromMap(map interface{}) MapTerraformIterator
Creates a new iterator from a map.
map
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Key | interface{} | Returns the currenty entry in the list or set that is being iterated over. |
Value | interface{} | Returns the value of the current item iterated over. |
Key
Required
func Key() interface{}
- Type: interface{}
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://www.terraform.io/cdktf/concepts/resources#escape-hatch
Value
Required
func Value() interface{}
- Type: interface{}
Returns the value of the current item iterated over.
Manifest
- Implements: IManifest
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewManifest(version *string, outdir *string) Manifest
version
Required
- Type: *string
outdir
Required
- Type: *string
Methods
Name | Description |
---|---|
BuildManifest | No description. |
ForStack | No description. |
WriteToFile | No description. |
BuildManifest
func BuildManifest() IManifest
ForStack
func ForStack(stack TerraformStack) StackManifest
stack
Required
- Type: TerraformStack
WriteToFile
func WriteToFile()
Properties
Name | Type | Description |
---|---|---|
Outdir | *string | No description. |
Stacks | *map[string]StackManifest | No description. |
Version | *string | No description. |
Outdir
Required
func Outdir() *string
- Type: *string
Stacks
Required
func Stacks() *map[string]StackManifest
- Type: *map[string]StackManifest
Version
Required
func Version() *string
- Type: *string
Constants
Name | Type | Description |
---|---|---|
FileName | *string | No description. |
StackFileName | *string | No description. |
StacksFolder | *string | No description. |
FileName
Required
func FileName() *string
- Type: *string
StackFileName
Required
func StackFileName() *string
- Type: *string
StacksFolder
Required
func StacksFolder() *string
- Type: *string
MapTerraformIterator
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewMapTerraformIterator(map interface{}) MapTerraformIterator
Name | Type | Description |
---|---|---|
map | interface{} | No description. |
map
Required
- Type: interface{}
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
func Dynamic(attributes *map[string]interface{}) IResolvable
attributes
Required
- Type: *map[string]interface{}
GetAny
func GetAny(attribute *string) IResolvable
attribute
Required
- Type: *string
name of the property to retrieve.
GetAnyMap
func GetAnyMap(attribute *string) *map[string]interface{}
attribute
Required
- Type: *string
name of the property to retrieve.
GetBoolean
func GetBoolean(attribute *string) IResolvable
attribute
Required
- Type: *string
name of the property to retrieve.
GetBooleanMap
func GetBooleanMap(attribute *string) *map[string]*bool
attribute
Required
- Type: *string
name of the property to retrieve.
GetList
func GetList(attribute *string) *[]*string
attribute
Required
- Type: *string
name of the property to retrieve.
GetMap
func GetMap(attribute *string) *map[string]interface{}
attribute
Required
- Type: *string
name of the property to retrieve.
GetNumber
func GetNumber(attribute *string) *f64
attribute
Required
- Type: *string
name of the property to retrieve.
GetNumberList
func GetNumberList(attribute *string) *[]*f64
attribute
Required
- Type: *string
name of the property to retrieve.
GetNumberMap
func GetNumberMap(attribute *string) *map[string]*f64
attribute
Required
- Type: *string
name of the property to retrieve.
GetString
func GetString(attribute *string) *string
attribute
Required
- Type: *string
name of the property to retrieve.
GetStringMap
func GetStringMap(attribute *string) *map[string]*string
attribute
Required
- Type: *string
name of the property to retrieve.
Static Functions
FromList
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.MapTerraformIterator_FromList(list interface{}) ListTerraformIterator
Creates a new iterator from a list.
list
Required
- Type: interface{}
FromMap
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.MapTerraformIterator_FromMap(map interface{}) MapTerraformIterator
Creates a new iterator from a map.
map
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Key | *string | Returns the key of the current entry in the map that is being iterated over. |
Value | interface{} | Returns the value of the current item iterated over. |
Key
Required
func Key() *string
- Type: *string
Returns the key of the current entry in the map that is being iterated over.
Value
Required
func Value() interface{}
- Type: interface{}
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
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewNamedCloudWorkspace(name *string) NamedCloudWorkspace
Name | Type | Description |
---|---|---|
name | *string | No description. |
name
Required
- Type: *string
Methods
Name | Description |
---|---|
ToTerraform | No description. |
ToTerraform
func ToTerraform() interface{}
Properties
Name | Type | Description |
---|---|---|
Name | *string | No description. |
Name
Required
func Name() *string
- Type: *string
NamedRemoteWorkspace
- Implements: IRemoteWorkspace
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewNamedRemoteWorkspace(name *string) NamedRemoteWorkspace
Name | Type | Description |
---|---|---|
name | *string | No description. |
name
Required
- Type: *string
Properties
Name | Type | Description |
---|---|---|
Name | *string | No description. |
Name
Required
func Name() *string
- Type: *string
NumberMap
- Implements: ITerraformAddressable, IResolvable
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewNumberMap(terraformResource IInterpolatingParent, terraformAttribute *string) NumberMap
Name | Type | Description |
---|---|---|
terraformResource | IInterpolatingParent | No description. |
terraformAttribute | *string | No description. |
terraformResource
Required
- Type: IInterpolatingParent
terraformAttribute
Required
- Type: *string
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
Lookup | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
ComputeFqn
func ComputeFqn() *string
Lookup
func Lookup(key *string) *f64
key
Required
- Type: *string
Resolve
func Resolve(_context IResolveContext) interface{}
Produce the Token's value at resolution time.
_context
Required
- Type: IResolveContext
ToString
func ToString() *string
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | _[]_string | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | *string | No description. |
CreationStack
Required
func CreationStack() *[]*string
- Type: _[]_string
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
func Fqn() *string
- Type: *string
NumberMapList
- Implements: ITerraformAddressable, IInterpolatingParent, IResolvable
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewNumberMapList(terraformResource IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) NumberMapList
Name | Type | Description |
---|---|---|
terraformResource | IInterpolatingParent | No description. |
terraformAttribute | *string | No description. |
wrapsSet | *bool | No description. |
terraformResource
Required
- Type: IInterpolatingParent
terraformAttribute
Required
- Type: *string
wrapsSet
Required
- Type: *bool
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
Get | No description. |
InterpolationForAttribute | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
ComputeFqn
func ComputeFqn() *string
Get
func Get(index *f64) NumberMap
index
Required
- Type: *f64
InterpolationForAttribute
func InterpolationForAttribute(property *string) IResolvable
property
Required
- Type: *string
Resolve
func Resolve(_context IResolveContext) interface{}
Produce the Token's value at resolution time.
_context
Required
- Type: IResolveContext
ToString
func ToString() *string
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | _[]_string | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | *string | No description. |
CreationStack
Required
func CreationStack() *[]*string
- Type: _[]_string
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
func Fqn() *string
- Type: *string
PrefixedRemoteWorkspaces
- Implements: IRemoteWorkspace
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewPrefixedRemoteWorkspaces(prefix *string) PrefixedRemoteWorkspaces
Name | Type | Description |
---|---|---|
prefix | *string | No description. |
prefix
Required
- Type: *string
Properties
Name | Type | Description |
---|---|---|
Prefix | *string | No description. |
Prefix
Required
func Prefix() *string
- Type: *string
StringConcat
- Implements: IFragmentConcatenator
Converts all fragments to strings and concats those.
Drops 'undefined's.
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewStringConcat() StringConcat
Name | Type | Description |
---|
Methods
Name | Description |
---|---|
Join | Concatenates string fragments. |
Join
func Join(left interface{}, right interface{}) interface{}
Concatenates string fragments.
left
Required
- Type: interface{}
right
Required
- Type: interface{}
StringMap
- Implements: ITerraformAddressable, IResolvable
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewStringMap(terraformResource IInterpolatingParent, terraformAttribute *string) StringMap
Name | Type | Description |
---|---|---|
terraformResource | IInterpolatingParent | No description. |
terraformAttribute | *string | No description. |
terraformResource
Required
- Type: IInterpolatingParent
terraformAttribute
Required
- Type: *string
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
Lookup | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
ComputeFqn
func ComputeFqn() *string
Lookup
func Lookup(key *string) *string
key
Required
- Type: *string
Resolve
func Resolve(_context IResolveContext) interface{}
Produce the Token's value at resolution time.
_context
Required
- Type: IResolveContext
ToString
func ToString() *string
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | _[]_string | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | *string | No description. |
CreationStack
Required
func CreationStack() *[]*string
- Type: _[]_string
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
func Fqn() *string
- Type: *string
StringMapList
- Implements: ITerraformAddressable, IInterpolatingParent, IResolvable
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewStringMapList(terraformResource IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) StringMapList
Name | Type | Description |
---|---|---|
terraformResource | IInterpolatingParent | No description. |
terraformAttribute | *string | No description. |
wrapsSet | *bool | No description. |
terraformResource
Required
- Type: IInterpolatingParent
terraformAttribute
Required
- Type: *string
wrapsSet
Required
- Type: *bool
Methods
Name | Description |
---|---|
ComputeFqn | No description. |
Get | No description. |
InterpolationForAttribute | No description. |
Resolve | Produce the Token's value at resolution time. |
ToString | Return a string representation of this resolvable object. |
ComputeFqn
func ComputeFqn() *string
Get
func Get(index *f64) StringMap
index
Required
- Type: *f64
InterpolationForAttribute
func InterpolationForAttribute(property *string) IResolvable
property
Required
- Type: *string
Resolve
func Resolve(_context IResolveContext) interface{}
Produce the Token's value at resolution time.
_context
Required
- Type: IResolveContext
ToString
func ToString() *string
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | _[]_string | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
Fqn | *string | No description. |
CreationStack
Required
func CreationStack() *[]*string
- Type: _[]_string
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
Fqn
Required
func Fqn() *string
- 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
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewTaggedCloudWorkspaces(tags *[]*string) TaggedCloudWorkspaces
Name | Type | Description |
---|---|---|
tags | _[]_string | No description. |
tags
Required
- Type: _[]_string
Methods
Name | Description |
---|---|
ToTerraform | No description. |
ToTerraform
func ToTerraform() interface{}
Properties
Name | Type | Description |
---|---|---|
Tags | _[]_string | No description. |
Tags
Required
func Tags() *[]*string
- Type: _[]_string
TerraformIterator
- Implements: ITerraformIterator
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewTerraformIterator() 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
func Dynamic(attributes *map[string]interface{}) IResolvable
attributes
Required
- Type: *map[string]interface{}
GetAny
func GetAny(attribute *string) IResolvable
attribute
Required
- Type: *string
name of the property to retrieve.
GetAnyMap
func GetAnyMap(attribute *string) *map[string]interface{}
attribute
Required
- Type: *string
name of the property to retrieve.
GetBoolean
func GetBoolean(attribute *string) IResolvable
attribute
Required
- Type: *string
name of the property to retrieve.
GetBooleanMap
func GetBooleanMap(attribute *string) *map[string]*bool
attribute
Required
- Type: *string
name of the property to retrieve.
GetList
func GetList(attribute *string) *[]*string
attribute
Required
- Type: *string
name of the property to retrieve.
GetMap
func GetMap(attribute *string) *map[string]interface{}
attribute
Required
- Type: *string
name of the property to retrieve.
GetNumber
func GetNumber(attribute *string) *f64
attribute
Required
- Type: *string
name of the property to retrieve.
GetNumberList
func GetNumberList(attribute *string) *[]*f64
attribute
Required
- Type: *string
name of the property to retrieve.
GetNumberMap
func GetNumberMap(attribute *string) *map[string]*f64
attribute
Required
- Type: *string
name of the property to retrieve.
GetString
func GetString(attribute *string) *string
attribute
Required
- Type: *string
name of the property to retrieve.
GetStringMap
func GetStringMap(attribute *string) *map[string]*string
attribute
Required
- Type: *string
name of the property to retrieve.
Static Functions
FromList
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformIterator_FromList(list interface{}) ListTerraformIterator
Creates a new iterator from a list.
list
Required
- Type: interface{}
FromMap
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformIterator_FromMap(map interface{}) MapTerraformIterator
Creates a new iterator from a map.
map
Required
- Type: interface{}
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
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewTerraformSelf() 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
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformSelf_GetAny(key *string) interface{}
Only usable within a connection block to reference the connections parent resource.
Access a property on the resource like this: getAny("hostPort")
key
Required
- Type: *string
GetNumber
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformSelf_GetNumber(key *string) *f64
Only usable within a connection block to reference the connections parent resource.
Access a property on the resource like this: getNumber("hostPort")
key
Required
- Type: *string
GetString
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.TerraformSelf_GetString(key *string) *string
Only usable within a connection block to reference the connections parent resource.
Access a property on the resource like this: getString("publicIp")
key
Required
- Type: *string
Testing
Testing utilities for cdktf applications.
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewTesting() 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. |
ToHaveResource | No description. |
ToHaveResourceWithProperties | No description. |
App
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Testing_App(options TestingAppOptions) App
Returns an app for testing with the following properties: - Output directory is a temp dir.
options
Optional
- Type: TestingAppOptions
EnableFutureFlags
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Testing_EnableFutureFlags(app App) App
app
Required
- Type: App
FakeCdktfJsonPath
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Testing_FakeCdktfJsonPath(app App) App
app
Required
- Type: App
FullSynth
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Testing_FullSynth(stack TerraformStack) *string
stack
Required
- Type: TerraformStack
RenderConstructTree
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Testing_RenderConstructTree(construct IConstruct) *string
construct
Required
- Type: github.com/aws/constructs-go/constructs/v10.IConstruct
SetupJest
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Testing_SetupJest()
StubVersion
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Testing_StubVersion(app App) App
app
Required
- Type: App
Synth
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Testing_Synth(stack TerraformStack, runValidations *bool) *string
Returns the Terraform synthesized JSON.
stack
Required
- Type: TerraformStack
runValidations
Optional
- Type: *bool
SynthScope
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Testing_SynthScope(fn IScopeCallback) *string
fn
Required
- Type: IScopeCallback
ToBeValidTerraform
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Testing_ToBeValidTerraform(received *string) *bool
received
Required
- Type: *string
ToHaveDataSource
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Testing_ToHaveDataSource(received *string, resourceType *string) *bool
received
Required
- Type: *string
resourceType
Required
- Type: *string
ToHaveDataSourceWithProperties
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Testing_ToHaveDataSourceWithProperties(received *string, resourceType *string, properties *map[string]interface{}) *bool
received
Required
- Type: *string
resourceType
Required
- Type: *string
properties
Optional
- Type: *map[string]interface{}
ToHaveResource
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Testing_ToHaveResource(received *string, resourceType *string) *bool
received
Required
- Type: *string
resourceType
Required
- Type: *string
ToHaveResourceWithProperties
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Testing_ToHaveResourceWithProperties(received *string, resourceType *string, properties *map[string]interface{}) *bool
received
Required
- Type: *string
resourceType
Required
- Type: *string
properties
Optional
- Type: *map[string]interface{}
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
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewToken() 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. |
AsAny
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Token_AsAny(value interface{}) IResolvable
Return a resolvable representation of the given value.
value
Required
- Type: interface{}
AsAnyMap
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Token_AsAnyMap(value interface{}, options EncodingOptions) *map[string]interface{}
Return a reversible map representation of this token.
value
Required
- Type: interface{}
options
Optional
- Type: EncodingOptions
AsBooleanMap
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Token_AsBooleanMap(value interface{}, options EncodingOptions) *map[string]*bool
Return a reversible map representation of this token.
value
Required
- Type: interface{}
options
Optional
- Type: EncodingOptions
AsList
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Token_AsList(value interface{}, options EncodingOptions) *[]*string
Return a reversible list representation of this token.
value
Required
- Type: interface{}
options
Optional
- Type: EncodingOptions
AsMap
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Token_AsMap(value interface{}, mapValue interface{}, options EncodingOptions) *map[string]interface{}
Return a reversible map representation of this token.
value
Required
- Type: interface{}
mapValue
Required
- Type: interface{}
options
Optional
- Type: EncodingOptions
AsNumber
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Token_AsNumber(value interface{}) *f64
Return a reversible number representation of this token.
value
Required
- Type: interface{}
AsNumberList
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Token_AsNumberList(value interface{}) *[]*f64
Return a reversible list representation of this token.
value
Required
- Type: interface{}
AsNumberMap
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Token_AsNumberMap(value interface{}, options EncodingOptions) *map[string]*f64
Return a reversible map representation of this token.
value
Required
- Type: interface{}
options
Optional
- Type: EncodingOptions
AsString
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Token_AsString(value interface{}, options EncodingOptions) *string
Return a reversible string representation of this token.
If the Token is initialized with a literal, the stringified value of the literal is returned. Otherwise, a special quoted string representation of the Token is returned that can be embedded into other strings.
Strings with quoted Tokens in them can be restored back into
complex values with the Tokens restored by calling resolve()
on the string.
value
Required
- Type: interface{}
options
Optional
- Type: EncodingOptions
AsStringMap
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Token_AsStringMap(value interface{}, options EncodingOptions) *map[string]*string
Return a reversible map representation of this token.
value
Required
- Type: interface{}
options
Optional
- Type: EncodingOptions
IsUnresolved
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Token_IsUnresolved(obj interface{}) *bool
Returns true if obj represents an unresolved value.
One of these must be true:
obj
is an IResolvableobj
is a string containing at least one encodedIResolvable
obj
is either an encoded number or list
This does NOT recurse into lists or objects to see if they containing resolvables.
obj
Required
- Type: interface{}
The object to test.
Constants
Name | Type | Description |
---|---|---|
AnyMapTokenValue | *string | Any map token representation. |
NumberMapTokenValue | *f64 | Number Map token value representation. |
StringMapTokenValue | *string | String Map token value representation. |
AnyMapTokenValue
Required
func AnyMapTokenValue() *string
- Type: *string
Any map token representation.
NumberMapTokenValue
Required
func NumberMapTokenValue() *f64
- Type: *f64
Number Map token value representation.
StringMapTokenValue
Required
func StringMapTokenValue() *string
- Type: *string
String Map token value representation.
Tokenization
Less oft-needed functions to manipulate Tokens.
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewTokenization() 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
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Tokenization_IsResolvable(obj interface{}) *bool
Return whether the given object is an IResolvable object.
This is different from Token.isUnresolved() which will also check for encoded Tokens, whereas this method will only do a type check on the given object.
obj
Required
- Type: interface{}
Resolve
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Tokenization_Resolve(obj interface{}, options ResolveOptions) interface{}
Resolves an object by evaluating all tokens and removing any undefined or empty objects or arrays.
Values can only be primitives, arrays or tokens. Other objects (i.e. with methods) will be rejected.
obj
Required
- Type: interface{}
The object to resolve.
options
Required
- Type: ResolveOptions
Prefix key path components for diagnostics.
Reverse
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Tokenization_Reverse(x interface{}) *[]IResolvable
Reverse any value into Resolvables, if possible.
x
Required
- Type: interface{}
ReverseList
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Tokenization_ReverseList(l *[]*string) IResolvable
Un-encode a Tokenized value from a list.
l
Required
- Type: _[]_string
ReverseMap
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Tokenization_ReverseMap(m *map[string]interface{}) IResolvable
Un-encode a Tokenized value from a map.
m
Required
- Type: *map[string]interface{}
ReverseNumber
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Tokenization_ReverseNumber(n *f64) IResolvable
Un-encode a Tokenized value from a number.
n
Required
- Type: *f64
ReverseNumberList
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Tokenization_ReverseNumberList(l *[]*f64) IResolvable
Un-encode a Tokenized value from a list.
l
Required
- Type: _[]_f64
ReverseString
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Tokenization_ReverseString(s *string) TokenizedStringFragments
Un-encode a string potentially containing encoded tokens.
s
Required
- Type: *string
StringifyNumber
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.Tokenization_StringifyNumber(x *f64) *string
Stringify a number directly or lazily if it's a Token.
If it is an object (i.e., { Ref: 'SomeLogicalId' }), return it as-is.
x
Required
- Type: *f64
TokenizedStringFragments
Fragments of a concatenated string containing stringified Tokens.
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewTokenizedStringFragments() TokenizedStringFragments
Name | Type | Description |
---|
Methods
Name | Description |
---|---|
AddIntrinsic | Adds an intrinsic fragment. |
AddLiteral | Adds a literal fragment. |
AddToken | Adds a token fragment. |
Join | Combine the string fragments using the given joiner. |
MapTokens | Apply a transformation function to all tokens in the string. |
AddIntrinsic
func AddIntrinsic(value interface{})
Adds an intrinsic fragment.
value
Required
- Type: interface{}
the intrinsic value to add.
AddLiteral
func AddLiteral(lit interface{})
Adds a literal fragment.
lit
Required
- Type: interface{}
the literal to add.
AddToken
func AddToken(token IResolvable)
Adds a token fragment.
token
Required
- Type: IResolvable
the token to add.
Join
func Join(concat IFragmentConcatenator) interface{}
Combine the string fragments using the given joiner.
If there are any
concat
Required
- Type: IFragmentConcatenator
MapTokens
func MapTokens(mapper ITokenMapper) TokenizedStringFragments
Apply a transformation function to all tokens in the string.
mapper
Required
- Type: ITokenMapper
Properties
Name | Type | Description |
---|---|---|
FirstValue | interface{} | Returns the first value. |
Intrinsic | *[]IResolvable | Return all intrinsic fragments from this string. |
Length | *f64 | 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. |
FirstValue
Required
func FirstValue() interface{}
- Type: interface{}
Returns the first value.
Intrinsic
Required
func Intrinsic() *[]IResolvable
- Type: *[]IResolvable
Return all intrinsic fragments from this string.
Length
Required
func Length() *f64
- Type: *f64
Returns the number of fragments.
Literals
Required
func Literals() *[]IResolvable
- Type: *[]IResolvable
Return all literals from this string.
Tokens
Required
func Tokens() *[]IResolvable
- Type: *[]IResolvable
Return all Tokens from this string.
FirstToken
Optional
func FirstToken() IResolvable
- Type: IResolvable
Returns the first token.
VariableType
Initializers
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.NewVariableType() VariableType
Name | Type | Description |
---|
Static Functions
Name | Description |
---|---|
List | No description. |
Map | No description. |
Object | No description. |
Set | No description. |
Tuple | No description. |
List
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.VariableType_List(type *string) *string
type
Required
- Type: *string
Map
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.VariableType_Map(type *string) *string
type
Required
- Type: *string
Object
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.VariableType_Object(attributes *map[string]*string) *string
attributes
Required
- Type: _map[string]_string
Set
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.VariableType_Set(type *string) *string
type
Required
- Type: *string
Tuple
import "github.com/hashicorp/terraform-cdk-go/cdktf"
cdktf.VariableType_Tuple(elements *string) *string
elements
Required
- Type: *string
Constants
Name | Type | Description |
---|---|---|
Any | *string | No description. |
Bool | *string | No description. |
List | *string | No description. |
ListBool | *string | No description. |
ListNumber | *string | No description. |
ListString | *string | No description. |
Map | *string | No description. |
MapBool | *string | No description. |
MapNumber | *string | No description. |
MapString | *string | No description. |
Number | *string | No description. |
Set | *string | No description. |
SetBool | *string | No description. |
SetNumber | *string | No description. |
SetString | *string | No description. |
String | *string | No description. |
Any
Required
func Any() *string
- Type: *string
Bool
Required
func Bool() *string
- Type: *string
List
Required
func List() *string
- Type: *string
ListBool
Required
func ListBool() *string
- Type: *string
ListNumber
Required
func ListNumber() *string
- Type: *string
ListString
Required
func ListString() *string
- Type: *string
Map
Required
func Map() *string
- Type: *string
MapBool
Required
func MapBool() *string
- Type: *string
MapNumber
Required
func MapNumber() *string
- Type: *string
MapString
Required
func MapString() *string
- Type: *string
Number
Required
func Number() *string
- Type: *string
Set
Required
func Set() *string
- Type: *string
SetBool
Required
func SetBool() *string
- Type: *string
SetNumber
Required
func SetNumber() *string
- Type: *string
SetString
Required
func SetString() *string
- Type: *string
String
Required
func String() *string
- Type: *string
Protocols
IAnyProducer
- Implemented By: IAnyProducer
Interface for lazy untyped value producers.
Methods
Name | Description |
---|---|
Produce | Produce the value. |
Produce
func Produce(context IResolveContext) interface{}
Produce the value.
context
Required
- Type: IResolveContext
IAspect
- Implemented By: IAspect
Represents an Aspect.
Methods
Name | Description |
---|---|
Visit | All aspects can visit an IConstruct. |
Visit
func Visit(node IConstruct)
All aspects can visit an IConstruct.
node
Required
- Type: github.com/aws/constructs-go/constructs/v10.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
func Join(left interface{}, right interface{}) interface{}
Join the fragment on the left and on the right.
left
Required
- Type: interface{}
right
Required
- Type: interface{}
IInterpolatingParent
- Implemented By: AnyMapList, BooleanMapList, ComplexComputedList, ComplexObject, NumberMapList, StringMapList, TerraformDataSource, TerraformResource, IInterpolatingParent
Methods
Name | Description |
---|---|
InterpolationForAttribute | No description. |
InterpolationForAttribute
func InterpolationForAttribute(terraformAttribute *string) IResolvable
terraformAttribute
Required
- Type: *string
IListProducer
- Implemented By: IListProducer
Interface for lazy list producers.
Methods
Name | Description |
---|---|
Produce | Produce the list value. |
Produce
func Produce(context IResolveContext) *[]*string
Produce the list value.
context
Required
- Type: IResolveContext
IManifest
Properties
Name | Type | Description |
---|---|---|
Stacks | *map[string]StackManifest | No description. |
Version | *string | No description. |
Stacks
Required
func Stacks() *map[string]StackManifest
- Type: *map[string]StackManifest
Version
Required
func Version() *string
- Type: *string
INumberProducer
- Implemented By: INumberProducer
Interface for lazy number producers.
Methods
Name | Description |
---|---|
Produce | Produce the number value. |
Produce
func Produce(context IResolveContext) *f64
Produce the number value.
context
Required
- Type: IResolveContext
IPostProcessor
- Implemented By: IPostProcessor
A Token that can post-process the complete resolved value, after resolve() has recursed over it.
Methods
Name | Description |
---|---|
PostProcess | Process the completely resolved value, after full recursion/resolution has happened. |
PostProcess
func PostProcess(input interface{}, context IResolveContext) interface{}
Process the completely resolved value, after full recursion/resolution has happened.
input
Required
- Type: interface{}
context
Required
- Type: IResolveContext
IRemoteWorkspace
- Implemented By: NamedRemoteWorkspace, PrefixedRemoteWorkspaces, IRemoteWorkspace
IResolvable
- Implemented By: AnyMap, AnyMapList, BooleanMap, BooleanMapList, ComplexComputedList, ComplexList, ComplexMap, ComplexObject, LazyBase, NumberMap, NumberMapList, 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
func Resolve(context IResolveContext) interface{}
Produce the Token's value at resolution time.
context
Required
- Type: IResolveContext
ToString
func ToString() *string
Return a string representation of this resolvable object.
Returns a reversible string representation.
Properties
Name | Type | Description |
---|---|---|
CreationStack | _[]_string | The creation stack of this resolvable which will be appended to errors thrown during resolution. |
CreationStack
Required
func CreationStack() *[]*string
- 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
func RegisterPostProcessor(postProcessor IPostProcessor)
Use this postprocessor after the entire token structure has been resolved.
postProcessor
Required
- Type: IPostProcessor
Resolve
func Resolve(x interface{}) interface{}
Resolve an inner object.
x
Required
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Preparing | *bool | True when we are still preparing, false if we're rendering the final output. |
Scope | github.com/aws/constructs-go/constructs/v10.IConstruct | The scope from which resolution has been initiated. |
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. |
Preparing
Required
func Preparing() *bool
- Type: *bool
True when we are still preparing, false if we're rendering the final output.
Scope
Required
func Scope() IConstruct
- Type: github.com/aws/constructs-go/constructs/v10.IConstruct
The scope from which resolution has been initiated.
IteratorContext
Optional
func IteratorContext() *string
- Type: *string
TerraformIterators can be passed for block attributes and normal list attributes both require different handling when the iterable variable is accessed e.g. a dynamic block needs each.key while a for expression just needs key.
SuppressBraces
Optional
func SuppressBraces() *bool
- Type: *bool
True when ${} should be ommitted (because already inside them), false otherwise.
IResource
Properties
Name | Type | Description |
---|---|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
Stack | TerraformStack | The stack in which this resource is defined. |
Node
Required
func Node() Node
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
Stack
Required
func Stack() TerraformStack
- 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
func Synthesize(session ISynthesisSession)
Synthesize the associated stack to the session.
session
Required
- Type: ISynthesisSession
IStringProducer
- Implemented By: IStringProducer
Interface for lazy string producers.
Methods
Name | Description |
---|---|
Produce | Produce the string value. |
Produce
func Produce(context IResolveContext) *string
Produce the string value.
context
Required
- Type: IResolveContext
ISynthesisSession
- Implemented By: ISynthesisSession
Represents a single session of synthesis.
Passed into TerraformStack.onSynthesize()
methods.
originally from aws/constructs lib v3.3.126 (synth functionality was removed in constructs v10)
Properties
Name | Type | Description |
---|---|---|
Manifest | Manifest | No description. |
Outdir | *string | The output directory for this synthesis session. |
SkipValidation | *bool | No description. |
Manifest
Required
func Manifest() Manifest
- Type: Manifest
Outdir
Required
func Outdir() *string
- Type: *string
The output directory for this synthesis session.
SkipValidation
Optional
func SkipValidation() *bool
- Type: *bool
ITerraformAddressable
- Implemented By: AnyMap, AnyMapList, BooleanMap, BooleanMapList, ComplexComputedList, ComplexList, ComplexMap, ComplexObject, DataTerraformRemoteState, DataTerraformRemoteStateArtifactory, DataTerraformRemoteStateAzurerm, DataTerraformRemoteStateConsul, DataTerraformRemoteStateCos, DataTerraformRemoteStateEtcd, DataTerraformRemoteStateEtcdV3, DataTerraformRemoteStateGcs, DataTerraformRemoteStateHttp, DataTerraformRemoteStateLocal, DataTerraformRemoteStateManta, DataTerraformRemoteStateOss, DataTerraformRemoteStatePg, DataTerraformRemoteStateS3, DataTerraformRemoteStateSwift, NumberMap, NumberMapList, StringMap, StringMapList, TerraformDataSource, TerraformHclModule, TerraformLocal, TerraformModule, TerraformRemoteState, TerraformResource, TerraformVariable, ITerraformAddressable, ITerraformDependable
Properties
Name | Type | Description |
---|---|---|
Fqn | *string | No description. |
Fqn
Required
func Fqn() *string
- Type: *string
ITerraformDependable
Extends: ITerraformAddressable
Implemented By: TerraformDataSource, TerraformHclModule, TerraformModule, TerraformResource, ITerraformDependable
Properties
Name | Type | Description |
---|---|---|
Fqn | *string | No description. |
Fqn
Required
func Fqn() *string
- Type: *string
ITerraformIterator
- Implemented By: ListTerraformIterator, MapTerraformIterator, TerraformIterator, ITerraformIterator
ITerraformResource
- Implemented By: TerraformDataSource, TerraformResource, ITerraformResource
Methods
Name | Description |
---|---|
InterpolationForAttribute | No description. |
InterpolationForAttribute
func InterpolationForAttribute(terraformAttribute *string) IResolvable
terraformAttribute
Required
- Type: *string
Properties
Name | Type | Description |
---|---|---|
Fqn | *string | No description. |
FriendlyUniqueId | *string | No description. |
TerraformResourceType | *string | No description. |
Count | *f64 | No description. |
DependsOn | _[]_string | No description. |
ForEach | ITerraformIterator | No description. |
Lifecycle | TerraformResourceLifecycle | No description. |
Provider | TerraformProvider | No description. |
Fqn
Required
func Fqn() *string
- Type: *string
FriendlyUniqueId
Required
func FriendlyUniqueId() *string
- Type: *string
TerraformResourceType
Required
func TerraformResourceType() *string
- Type: *string
Count
Optional
func Count() *f64
- Type: *f64
DependsOn
Optional
func DependsOn() *[]*string
- Type: _[]_string
ForEach
Optional
func ForEach() ITerraformIterator
- Type: ITerraformIterator
Lifecycle
Optional
func Lifecycle() TerraformResourceLifecycle
Provider
Optional
func Provider() TerraformProvider
- 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
func MapToken(t IResolvable) interface{}
Replace a single token.
t
Required
- Type: IResolvable
ITokenResolver
- Implemented By: DefaultTokenResolver, ITokenResolver
How to resolve tokens.
Methods
Name | Description |
---|---|
ResolveList | Resolve a tokenized list. |
ResolveMap | Resolve a tokenized map. |
ResolveNumberList | Resolve a tokenized number list. |
ResolveString | Resolve a string with at least one stringified token in it. |
ResolveToken | Resolve a single token. |
ResolveList
func ResolveList(l *[]*string, context IResolveContext) interface{}
Resolve a tokenized list.
l
Required
- Type: _[]_string
context
Required
- Type: IResolveContext
ResolveMap
func ResolveMap(m *map[string]interface{}, context IResolveContext) interface{}
Resolve a tokenized map.
m
Required
- Type: *map[string]interface{}
context
Required
- Type: IResolveContext
ResolveNumberList
func ResolveNumberList(l *[]*f64, context IResolveContext) interface{}
Resolve a tokenized number list.
l
Required
- Type: _[]_f64
context
Required
- Type: IResolveContext
ResolveString
func ResolveString(s TokenizedStringFragments, context IResolveContext) interface{}
Resolve a string with at least one stringified token in it.
(May use concatenation)
s
Required
- Type: TokenizedStringFragments
context
Required
- Type: IResolveContext
ResolveToken
func ResolveToken(t IResolvable, context IResolveContext, postProcessor IPostProcessor) interface{}
Resolve a single token.
t
Required
- Type: IResolvable
context
Required
- Type: IResolveContext
postProcessor
Required
- Type: IPostProcessor
Enums
AnnotationMetadataEntryType
Members
Name | Description |
---|---|
AnnotationMetadataEntryType_INFO | No description. |
AnnotationMetadataEntryType_WARN | No description. |
AnnotationMetadataEntryType_ERROR | No description. |
AnnotationMetadataEntryType_INFO
AnnotationMetadataEntryType_WARN
AnnotationMetadataEntryType_ERROR
AssetType
Members
Name | Description |
---|---|
AssetType_FILE | No description. |
AssetType_DIRECTORY | No description. |
AssetType_ARCHIVE | No description. |