Documentation
¶
Index ¶
- func NatgatewayRule_IsConstruct(x interface{}) *bool
- func NatgatewayRule_TfResourceType() *string
- func NewNatgatewayRuleTargetPortRangeOutputReference_Override(n NatgatewayRuleTargetPortRangeOutputReference, ...)
- func NewNatgatewayRuleTimeoutsOutputReference_Override(n NatgatewayRuleTimeoutsOutputReference, ...)
- func NewNatgatewayRule_Override(n NatgatewayRule, scope constructs.Construct, id *string, ...)
- type NatgatewayRule
- type NatgatewayRuleConfig
- type NatgatewayRuleTargetPortRange
- type NatgatewayRuleTargetPortRangeOutputReference
- type NatgatewayRuleTimeouts
- type NatgatewayRuleTimeoutsOutputReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NatgatewayRule_IsConstruct ¶
func NatgatewayRule_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 NatgatewayRule_TfResourceType ¶
func NatgatewayRule_TfResourceType() *string
func NewNatgatewayRuleTargetPortRangeOutputReference_Override ¶
func NewNatgatewayRuleTargetPortRangeOutputReference_Override(n NatgatewayRuleTargetPortRangeOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewNatgatewayRuleTimeoutsOutputReference_Override ¶
func NewNatgatewayRuleTimeoutsOutputReference_Override(n NatgatewayRuleTimeoutsOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewNatgatewayRule_Override ¶
func NewNatgatewayRule_Override(n NatgatewayRule, scope constructs.Construct, id *string, config *NatgatewayRuleConfig)
Create a new {@link https://www.terraform.io/docs/providers/ionoscloud/r/natgateway_rule ionoscloud_natgateway_rule} Resource.
Types ¶
type NatgatewayRule ¶
type NatgatewayRule interface { cdktf.TerraformResource // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. Connection() interface{} // Experimental. SetConnection(val interface{}) // Experimental. ConstructNodeMetadata() *map[string]interface{} // Experimental. Count() *float64 // Experimental. SetCount(val *float64) DatacenterId() *string SetDatacenterId(val *string) DatacenterIdInput() *string // Experimental. DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. SetForEach(val cdktf.ITerraformIterator) // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string Id() *string SetId(val *string) IdInput() *string // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. SetLifecycle(val *cdktf.TerraformResourceLifecycle) Name() *string SetName(val *string) NameInput() *string NatgatewayId() *string SetNatgatewayId(val *string) NatgatewayIdInput() *string // The tree node. Node() constructs.Node Protocol() *string SetProtocol(val *string) ProtocolInput() *string // Experimental. Provider() cdktf.TerraformProvider // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. Provisioners() *[]interface{} // Experimental. SetProvisioners(val *[]interface{}) PublicIp() *string SetPublicIp(val *string) PublicIpInput() *string // Experimental. RawOverrides() interface{} SourceSubnet() *string SetSourceSubnet(val *string) SourceSubnetInput() *string TargetPortRange() NatgatewayRuleTargetPortRangeOutputReference TargetPortRangeInput() *NatgatewayRuleTargetPortRange TargetSubnet() *string SetTargetSubnet(val *string) TargetSubnetInput() *string // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *string Timeouts() NatgatewayRuleTimeoutsOutputReference TimeoutsInput() interface{} Type() *string SetType(val *string) TypeInput() *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. InterpolationForAttribute(terraformAttribute *string) cdktf.IResolvable // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) PutTargetPortRange(value *NatgatewayRuleTargetPortRange) PutTimeouts(value *NatgatewayRuleTimeouts) ResetId() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() ResetProtocol() ResetTargetPortRange() ResetTargetSubnet() ResetTimeouts() ResetType() SynthesizeAttributes() *map[string]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://www.terraform.io/docs/providers/ionoscloud/r/natgateway_rule ionoscloud_natgateway_rule}.
func NewNatgatewayRule ¶
func NewNatgatewayRule(scope constructs.Construct, id *string, config *NatgatewayRuleConfig) NatgatewayRule
Create a new {@link https://www.terraform.io/docs/providers/ionoscloud/r/natgateway_rule ionoscloud_natgateway_rule} Resource.
type NatgatewayRuleConfig ¶
type NatgatewayRuleConfig struct { // Experimental. Connection interface{} `field:"optional" json:"connection" yaml:"connection"` // Experimental. Count *float64 `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"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/ionoscloud/r/natgateway_rule#datacenter_id NatgatewayRule#datacenter_id}. DatacenterId *string `field:"required" json:"datacenterId" yaml:"datacenterId"` // Name of the NAT gateway rule. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/ionoscloud/r/natgateway_rule#name NatgatewayRule#name} Name *string `field:"required" json:"name" yaml:"name"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/ionoscloud/r/natgateway_rule#natgateway_id NatgatewayRule#natgateway_id}. NatgatewayId *string `field:"required" json:"natgatewayId" yaml:"natgatewayId"` // Public IP address of the NAT gateway rule. // // Specifies the address used for masking outgoing packets source address field. Should be one of the customer reserved IP address already configured on the NAT gateway resource // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/ionoscloud/r/natgateway_rule#public_ip NatgatewayRule#public_ip} PublicIp *string `field:"required" json:"publicIp" yaml:"publicIp"` // Source subnet of the NAT gateway rule. // // For SNAT rules it specifies which packets this translation rule applies to based on the packets source IP address. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/ionoscloud/r/natgateway_rule#source_subnet NatgatewayRule#source_subnet} SourceSubnet *string `field:"required" json:"sourceSubnet" yaml:"sourceSubnet"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/ionoscloud/r/natgateway_rule#id NatgatewayRule#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"` // Protocol of the NAT gateway rule. // // Defaults to ALL. If protocol is 'ICMP' then targetPortRange start and end cannot be set. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/ionoscloud/r/natgateway_rule#protocol NatgatewayRule#protocol} Protocol *string `field:"optional" json:"protocol" yaml:"protocol"` // target_port_range block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/ionoscloud/r/natgateway_rule#target_port_range NatgatewayRule#target_port_range} TargetPortRange *NatgatewayRuleTargetPortRange `field:"optional" json:"targetPortRange" yaml:"targetPortRange"` // Target or destination subnet of the NAT gateway rule. // // For SNAT rules it specifies which packets this translation rule applies to based on the packets destination IP address. If none is provided, rule will match any address. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/ionoscloud/r/natgateway_rule#target_subnet NatgatewayRule#target_subnet} TargetSubnet *string `field:"optional" json:"targetSubnet" yaml:"targetSubnet"` // timeouts block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/ionoscloud/r/natgateway_rule#timeouts NatgatewayRule#timeouts} Timeouts *NatgatewayRuleTimeouts `field:"optional" json:"timeouts" yaml:"timeouts"` // Type of the NAT gateway rule. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/ionoscloud/r/natgateway_rule#type NatgatewayRule#type} Type *string `field:"optional" json:"type" yaml:"type"` }
type NatgatewayRuleTargetPortRange ¶
type NatgatewayRuleTargetPortRange struct { // Target port range end associated with the NAT gateway rule. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/ionoscloud/r/natgateway_rule#end NatgatewayRule#end} End *float64 `field:"optional" json:"end" yaml:"end"` // Target port range start associated with the NAT gateway rule. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/ionoscloud/r/natgateway_rule#start NatgatewayRule#start} Start *float64 `field:"optional" json:"start" yaml:"start"` }
type NatgatewayRuleTargetPortRangeOutputReference ¶
type NatgatewayRuleTargetPortRangeOutputReference 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 End() *float64 SetEnd(val *float64) EndInput() *float64 // Experimental. Fqn() *string InternalValue() *NatgatewayRuleTargetPortRange SetInternalValue(val *NatgatewayRuleTargetPortRange) Start() *float64 SetStart(val *float64) StartInput() *float64 // 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 ResetEnd() ResetStart() // 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 NewNatgatewayRuleTargetPortRangeOutputReference ¶
func NewNatgatewayRuleTargetPortRangeOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) NatgatewayRuleTargetPortRangeOutputReference
type NatgatewayRuleTimeouts ¶
type NatgatewayRuleTimeouts struct { // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/ionoscloud/r/natgateway_rule#create NatgatewayRule#create}. Create *string `field:"optional" json:"create" yaml:"create"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/ionoscloud/r/natgateway_rule#default NatgatewayRule#default}. Default *string `field:"optional" json:"default" yaml:"default"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/ionoscloud/r/natgateway_rule#delete NatgatewayRule#delete}. Delete *string `field:"optional" json:"delete" yaml:"delete"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/ionoscloud/r/natgateway_rule#update NatgatewayRule#update}. Update *string `field:"optional" json:"update" yaml:"update"` }
type NatgatewayRuleTimeoutsOutputReference ¶
type NatgatewayRuleTimeoutsOutputReference 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) Create() *string SetCreate(val *string) CreateInput() *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. // Experimental. CreationStack() *[]*string Default() *string SetDefault(val *string) DefaultInput() *string Delete() *string SetDelete(val *string) DeleteInput() *string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Update() *string SetUpdate(val *string) UpdateInput() *string // 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 ResetCreate() ResetDefault() ResetDelete() ResetUpdate() // 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 NewNatgatewayRuleTimeoutsOutputReference ¶
func NewNatgatewayRuleTimeoutsOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) NatgatewayRuleTimeoutsOutputReference
Source Files
¶
- natgatewayrule.go
- natgatewayrule_NatgatewayRule.go
- natgatewayrule_NatgatewayRuleConfig.go
- natgatewayrule_NatgatewayRuleTargetPortRange.go
- natgatewayrule_NatgatewayRuleTargetPortRangeOutputReference.go
- natgatewayrule_NatgatewayRuleTargetPortRangeOutputReference__runtime_type_checks.go
- natgatewayrule_NatgatewayRuleTimeouts.go
- natgatewayrule_NatgatewayRuleTimeoutsOutputReference.go
- natgatewayrule_NatgatewayRuleTimeoutsOutputReference__runtime_type_checks.go
- natgatewayrule_NatgatewayRule__runtime_type_checks.go