Documentation
¶
Overview ¶
vpc
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewVpc_Override ¶
func NewVpc_Override(v Vpc, scope constructs.Construct, id *string, config *VpcConfig)
func Vpc_IsConstruct ¶
func Vpc_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 Vpc ¶
type Vpc interface {
cdktf.TerraformModule
// Experimental.
CdktfStack() cdktf.TerraformStack
CidrBlock() *string
SetCidrBlock(val *string)
// Experimental.
ConstructNodeMetadata() *map[string]interface{}
// Experimental.
DependsOn() *[]*string
// Experimental.
SetDependsOn(val *[]*string)
// Experimental.
ForEach() cdktf.ITerraformIterator
// Experimental.
SetForEach(val cdktf.ITerraformIterator)
// Experimental.
Fqn() *string
// Experimental.
FriendlyUniqueId() *string
// The tree node.
Node() constructs.Node
PrivateSubnetCidrs() *[]*string
SetPrivateSubnetCidrs(val *[]*string)
PrivateSubnetIdsOutput() *string
// Experimental.
Providers() *[]interface{}
PublicSubnetCidrs() *[]*string
SetPublicSubnetCidrs(val *[]*string)
PublicSubnetIdsOutput() *string
// Experimental.
RawOverrides() interface{}
// Experimental.
SkipAssetCreationFromLocalModules() *bool
// Experimental.
Source() *string
// Experimental.
Version() *string
VpcIdOutput() *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 Vpc based on a Terraform module.
Source at ./.nitric/modules/vpc
type VpcConfig ¶
type VpcConfig 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 CIDR block for the VPC 10.0.0.0/16.
CidrBlock *string `field:"optional" json:"cidrBlock" yaml:"cidrBlock"`
// Private Subnet CIDR values 10.0.4.0/24 10.0.5.0/24 10.0.6.0/24.
PrivateSubnetCidrs *[]*string `field:"optional" json:"privateSubnetCidrs" yaml:"privateSubnetCidrs"`
// Public Subnet CIDR values 10.0.1.0/24 10.0.2.0/24 10.0.3.0/24.
PublicSubnetCidrs *[]*string `field:"optional" json:"publicSubnetCidrs" yaml:"publicSubnetCidrs"`
}