Documentation
¶
Overview ¶
stack
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStack_Override ¶
func NewStack_Override(s Stack, scope constructs.Construct, id *string, config *StackConfig)
func Stack_IsConstruct ¶
func Stack_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.
Returns: true if `x` is an object created from a class which extends `Construct`.
Types ¶
type Stack ¶
type Stack interface {
cdktf.TerraformModule
AppIdentityClientIdOutput() *string
AppIdentityOutput() *string
// Experimental.
CdktfStack() cdktf.TerraformStack
// Experimental.
ConstructNodeMetadata() *map[string]interface{}
ContainerAppEnvironmentIdOutput() *string
ContainerAppSubnetIdOutput() *string
DatabaseMasterPasswordOutput() *string
DatabaseServerFqdnOutput() *string
DatabaseServerIdOutput() *string
DatabaseServerNameOutput() *string
// Experimental.
DependsOn() *[]*string
// Experimental.
SetDependsOn(val *[]*string)
EnableDatabase() *bool
SetEnableDatabase(val *bool)
EnableKeyvault() *bool
SetEnableKeyvault(val *bool)
EnableStorage() *bool
SetEnableStorage(val *bool)
// Experimental.
ForEach() cdktf.ITerraformIterator
// Experimental.
SetForEach(val cdktf.ITerraformIterator)
// Experimental.
Fqn() *string
// Experimental.
FriendlyUniqueId() *string
InfrastructureSubnetId() *string
SetInfrastructureSubnetId(val *string)
InfrastructureSubnetIdOutput() *string
KeyvaultNameOutput() *string
Location() *string
SetLocation(val *string)
// The tree node.
Node() constructs.Node
// Experimental.
Providers() *[]interface{}
// Experimental.
RawOverrides() interface{}
RegistryLoginServerOutput() *string
RegistryPasswordOutput() *string
RegistryUsernameOutput() *string
ResourceGroupName() *string
SetResourceGroupName(val *string)
ResourceGroupNameOutput() *string
// Experimental.
SkipAssetCreationFromLocalModules() *bool
// Experimental.
Source() *string
StackIdOutput() *string
StackName() *string
SetStackName(val *string)
StorageAccountBlobEndpointOutput() *string
StorageAccountConnectionStringOutput() *string
StorageAccountIdOutput() *string
StorageAccountNameOutput() *string
StorageAccountQueueEndpointOutput() *string
SubscriptionIdOutput() *string
Tags() *map[string]*string
SetTags(val *map[string]*string)
// Experimental.
Version() *string
// Experimental.
AddOverride(path *string, value interface{})
// Experimental.
AddProvider(provider interface{})
// Experimental.
GetString(output *string) *string
// Experimental.
InterpolationForOutput(moduleOutput *string) cdktf.IResolvable
// Overrides the auto-generated logical ID with a specific ID.
// Experimental.
OverrideLogicalId(newLogicalId *string)
// Resets a previously passed logical Id to use the auto-generated logical id again.
// Experimental.
ResetOverrideLogicalId()
SynthesizeAttributes() *map[string]interface{}
SynthesizeHclAttributes() *map[string]interface{}
// Experimental.
ToHclTerraform() interface{}
// Experimental.
ToMetadata() interface{}
// Returns a string representation of this construct.
ToString() *string
// Experimental.
ToTerraform() interface{}
}
Defines an Stack based on a Terraform module.
Source at ./.nitric/modules/stack
func NewStack ¶
func NewStack(scope constructs.Construct, id *string, config *StackConfig) Stack
type StackConfig ¶
type StackConfig struct {
// Experimental.
DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"`
// Experimental.
ForEach cdktf.ITerraformIterator `field:"optional" json:"forEach" yaml:"forEach"`
// Experimental.
Providers *[]interface{} `field:"optional" json:"providers" yaml:"providers"`
// Experimental.
SkipAssetCreationFromLocalModules *bool `field:"optional" json:"skipAssetCreationFromLocalModules" yaml:"skipAssetCreationFromLocalModules"`
// The location/region where the resources will be created.
Location *string `field:"required" json:"location" yaml:"location"`
// The name of the stack.
StackName *string `field:"required" json:"stackName" yaml:"stackName"`
// The tags to apply to the stack The property type contains a map, they have special handling, please see {@link cdk.tf /module-map-inputs the docs}.
Tags *map[string]*string `field:"required" json:"tags" yaml:"tags"`
// Enable the creation of a database.
EnableDatabase *bool `field:"optional" json:"enableDatabase" yaml:"enableDatabase"`
// Enable the creation of a keyvault.
EnableKeyvault *bool `field:"optional" json:"enableKeyvault" yaml:"enableKeyvault"`
// Enable the creation of a storage account.
EnableStorage *bool `field:"optional" json:"enableStorage" yaml:"enableStorage"`
// The id of the subnet to deploy the infrastructure resources.
InfrastructureSubnetId *string `field:"optional" json:"infrastructureSubnetId" yaml:"infrastructureSubnetId"`
// The name of the resource group to reuse.
ResourceGroupName *string `field:"optional" json:"resourceGroupName" yaml:"resourceGroupName"`
}