Documentation ¶
Index ¶
- func Gateway_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, ...) cdktf.ImportableResource
- func Gateway_IsConstruct(x interface{}) *bool
- func Gateway_IsTerraformElement(x interface{}) *bool
- func Gateway_IsTerraformResource(x interface{}) *bool
- func Gateway_TfResourceType() *string
- func NewGatewayAddressOutputReference_Override(g GatewayAddressOutputReference, terraformResource cdktf.IInterpolatingParent, ...)
- func NewGatewayAddressesList_Override(g GatewayAddressesList, terraformResource cdktf.IInterpolatingParent, ...)
- func NewGatewayAddressesOutputReference_Override(g GatewayAddressesOutputReference, ...)
- func NewGatewayRouterOutputReference_Override(g GatewayRouterOutputReference, terraformResource cdktf.IInterpolatingParent, ...)
- func NewGateway_Override(g Gateway, scope constructs.Construct, id *string, config *GatewayConfig)
- type Gateway
- type GatewayAddress
- type GatewayAddressOutputReference
- type GatewayAddresses
- type GatewayAddressesList
- type GatewayAddressesOutputReference
- type GatewayConfig
- type GatewayRouter
- type GatewayRouterOutputReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Gateway_GenerateConfigForImport ¶
func Gateway_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, provider cdktf.TerraformProvider) cdktf.ImportableResource
Generates CDKTF code for importing a Gateway resource upon running "cdktf plan <stack-name>".
func Gateway_IsConstruct ¶
func Gateway_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`.
func Gateway_IsTerraformElement ¶
func Gateway_IsTerraformElement(x interface{}) *bool
Experimental.
func Gateway_IsTerraformResource ¶
func Gateway_IsTerraformResource(x interface{}) *bool
Experimental.
func Gateway_TfResourceType ¶
func Gateway_TfResourceType() *string
func NewGatewayAddressOutputReference_Override ¶ added in v14.2.0
func NewGatewayAddressOutputReference_Override(g GatewayAddressOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewGatewayAddressesList_Override ¶
func NewGatewayAddressesList_Override(g GatewayAddressesList, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool)
func NewGatewayAddressesOutputReference_Override ¶
func NewGatewayAddressesOutputReference_Override(g GatewayAddressesOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool)
func NewGatewayRouterOutputReference_Override ¶
func NewGatewayRouterOutputReference_Override(g GatewayRouterOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewGateway_Override ¶
func NewGateway_Override(g Gateway, scope constructs.Construct, id *string, config *GatewayConfig)
Create a new {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/gateway upcloud_gateway} Resource.
Types ¶
type Gateway ¶
type Gateway interface { cdktf.TerraformResource Address() GatewayAddressOutputReference Addresses() GatewayAddressesList AddressInput() *GatewayAddress // Experimental. CdktfStack() cdktf.TerraformStack ConfiguredStatus() *string SetConfiguredStatus(val *string) ConfiguredStatusInput() *string // Experimental. Connection() interface{} // Experimental. SetConnection(val interface{}) Connections() *[]*string // Experimental. ConstructNodeMetadata() *map[string]interface{} // Experimental. Count() interface{} // Experimental. SetCount(val interface{}) // Experimental. DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) Features() *[]*string SetFeatures(val *[]*string) FeaturesInput() *[]*string // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. SetForEach(val cdktf.ITerraformIterator) // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string Id() *string SetId(val *string) IdInput() *string Labels() *map[string]*string SetLabels(val *map[string]*string) LabelsInput() *map[string]*string // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. SetLifecycle(val *cdktf.TerraformResourceLifecycle) Name() *string SetName(val *string) NameInput() *string // The tree node. Node() constructs.Node OperationalState() *string Plan() *string SetPlan(val *string) PlanInput() *string // Experimental. Provider() cdktf.TerraformProvider // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. Provisioners() *[]interface{} // Experimental. SetProvisioners(val *[]interface{}) // Experimental. RawOverrides() interface{} Router() GatewayRouterOutputReference RouterInput() *GatewayRouter // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *string Zone() *string SetZone(val *string) ZoneInput() *string // Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. // Experimental. AddMoveTarget(moveTarget *string) // Experimental. AddOverride(path *string, value interface{}) // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. HasResourceMove() interface{} // Experimental. ImportFrom(id *string, provider cdktf.TerraformProvider) // Experimental. InterpolationForAttribute(terraformAttribute *string) cdktf.IResolvable // Move the resource corresponding to "id" to this resource. // // Note that the resource being moved from must be marked as moved using it's instance function. // Experimental. MoveFromId(id *string) // Moves this resource to the target resource given by moveTarget. // Experimental. MoveTo(moveTarget *string, index interface{}) // Moves this resource to the resource corresponding to "id". // Experimental. MoveToId(id *string) // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) PutAddress(value *GatewayAddress) PutRouter(value *GatewayRouter) ResetAddress() ResetConfiguredStatus() ResetId() ResetLabels() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() ResetPlan() SynthesizeAttributes() *map[string]interface{} SynthesizeHclAttributes() *map[string]interface{} // Experimental. ToHclTerraform() interface{} // Experimental. ToMetadata() interface{} // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. ToTerraform() interface{} }
Represents a {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/gateway upcloud_gateway}.
func NewGateway ¶
func NewGateway(scope constructs.Construct, id *string, config *GatewayConfig) Gateway
Create a new {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/gateway upcloud_gateway} Resource.
type GatewayAddress ¶ added in v14.2.0
type GatewayAddress struct { // Name of the IP address. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/gateway#name Gateway#name} Name *string `field:"optional" json:"name" yaml:"name"` }
type GatewayAddressOutputReference ¶ added in v14.2.0
type GatewayAddressOutputReference interface { cdktf.ComplexObject Address() *string // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // 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. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() *GatewayAddress SetInternalValue(val *GatewayAddress) Name() *string SetName(val *string) NameInput() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetName() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewGatewayAddressOutputReference ¶ added in v14.2.0
func NewGatewayAddressOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) GatewayAddressOutputReference
type GatewayAddresses ¶
type GatewayAddresses struct { }
type GatewayAddressesList ¶
type GatewayAddressesList interface { cdktf.ComplexList // 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. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string // The attribute on the parent resource this class is referencing. TerraformAttribute() *string SetTerraformAttribute(val *string) // The parent resource. TerraformResource() cdktf.IInterpolatingParent SetTerraformResource(val cdktf.IInterpolatingParent) // whether the list is wrapping a set (will add tolist() to be able to access an item via an index). WrapsSet() *bool SetWrapsSet(val *bool) // Creating an iterator for this complex list. // // The list will be converted into a map with the mapKeyAttributeName as the key. // Experimental. AllWithMapKey(mapKeyAttributeName *string) cdktf.DynamicListTerraformIterator // Experimental. ComputeFqn() *string Get(index *float64) GatewayAddressesOutputReference // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewGatewayAddressesList ¶
func NewGatewayAddressesList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) GatewayAddressesList
type GatewayAddressesOutputReference ¶
type GatewayAddressesOutputReference interface { cdktf.ComplexObject Address() *string // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // 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. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() *GatewayAddresses SetInternalValue(val *GatewayAddresses) Name() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewGatewayAddressesOutputReference ¶
func NewGatewayAddressesOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) GatewayAddressesOutputReference
type GatewayConfig ¶
type GatewayConfig struct { // Experimental. Connection interface{} `field:"optional" json:"connection" yaml:"connection"` // Experimental. Count interface{} `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. ForEach cdktf.ITerraformIterator `field:"optional" json:"forEach" yaml:"forEach"` // Experimental. Lifecycle *cdktf.TerraformResourceLifecycle `field:"optional" json:"lifecycle" yaml:"lifecycle"` // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` // Features enabled for the gateway. Note that VPN feature is currently in beta, for more details see https://upcloud.com/resources/docs/networking#nat-and-vpn-gateways. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/gateway#features Gateway#features} Features *[]*string `field:"required" json:"features" yaml:"features"` // Gateway name. Needs to be unique within the account. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/gateway#name Gateway#name} Name *string `field:"required" json:"name" yaml:"name"` // router block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/gateway#router Gateway#router} Router *GatewayRouter `field:"required" json:"router" yaml:"router"` // Zone in which the gateway will be hosted, e.g. `de-fra1`. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/gateway#zone Gateway#zone} Zone *string `field:"required" json:"zone" yaml:"zone"` // address block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/gateway#address Gateway#address} Address *GatewayAddress `field:"optional" json:"address" yaml:"address"` // The service configured status indicates the service's current intended status. Managed by the customer. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/gateway#configured_status Gateway#configured_status} ConfiguredStatus *string `field:"optional" json:"configuredStatus" yaml:"configuredStatus"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/gateway#id Gateway#id}. // // Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. // If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. Id *string `field:"optional" json:"id" yaml:"id"` // User defined key-value pairs to classify the network gateway. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/gateway#labels Gateway#labels} Labels *map[string]*string `field:"optional" json:"labels" yaml:"labels"` // Gateway pricing plan. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/gateway#plan Gateway#plan} Plan *string `field:"optional" json:"plan" yaml:"plan"` }
type GatewayRouter ¶
type GatewayRouter struct { // ID of the router attached to the gateway. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/gateway#id Gateway#id} // // Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. // If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. Id *string `field:"required" json:"id" yaml:"id"` }
type GatewayRouterOutputReference ¶
type GatewayRouterOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // 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. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string Id() *string SetId(val *string) IdInput() *string InternalValue() *GatewayRouter SetInternalValue(val *GatewayRouter) // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewGatewayRouterOutputReference ¶
func NewGatewayRouterOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) GatewayRouterOutputReference
Source Files ¶
- Gateway.go
- GatewayAddress.go
- GatewayAddressOutputReference.go
- GatewayAddressOutputReference__checks.go
- GatewayAddresses.go
- GatewayAddressesList.go
- GatewayAddressesList__checks.go
- GatewayAddressesOutputReference.go
- GatewayAddressesOutputReference__checks.go
- GatewayConfig.go
- GatewayRouter.go
- GatewayRouterOutputReference.go
- GatewayRouterOutputReference__checks.go
- Gateway__checks.go
- main.go