Documentation ¶
Index ¶
- func FirewallRules_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, ...) cdktf.ImportableResource
- func FirewallRules_IsConstruct(x interface{}) *bool
- func FirewallRules_IsTerraformElement(x interface{}) *bool
- func FirewallRules_IsTerraformResource(x interface{}) *bool
- func FirewallRules_TfResourceType() *string
- func NewFirewallRulesFirewallRuleList_Override(f FirewallRulesFirewallRuleList, terraformResource cdktf.IInterpolatingParent, ...)
- func NewFirewallRulesFirewallRuleOutputReference_Override(f FirewallRulesFirewallRuleOutputReference, ...)
- func NewFirewallRules_Override(f FirewallRules, scope constructs.Construct, id *string, ...)
- type FirewallRules
- type FirewallRulesConfig
- type FirewallRulesFirewallRule
- type FirewallRulesFirewallRuleList
- type FirewallRulesFirewallRuleOutputReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirewallRules_GenerateConfigForImport ¶
func FirewallRules_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, provider cdktf.TerraformProvider) cdktf.ImportableResource
Generates CDKTF code for importing a FirewallRules resource upon running "cdktf plan <stack-name>".
func FirewallRules_IsConstruct ¶
func FirewallRules_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 FirewallRules_IsTerraformElement ¶
func FirewallRules_IsTerraformElement(x interface{}) *bool
Experimental.
func FirewallRules_IsTerraformResource ¶
func FirewallRules_IsTerraformResource(x interface{}) *bool
Experimental.
func FirewallRules_TfResourceType ¶
func FirewallRules_TfResourceType() *string
func NewFirewallRulesFirewallRuleList_Override ¶
func NewFirewallRulesFirewallRuleList_Override(f FirewallRulesFirewallRuleList, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool)
func NewFirewallRulesFirewallRuleOutputReference_Override ¶
func NewFirewallRulesFirewallRuleOutputReference_Override(f FirewallRulesFirewallRuleOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool)
func NewFirewallRules_Override ¶
func NewFirewallRules_Override(f FirewallRules, scope constructs.Construct, id *string, config *FirewallRulesConfig)
Create a new {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/firewall_rules upcloud_firewall_rules} Resource.
Types ¶
type FirewallRules ¶
type FirewallRules interface { cdktf.TerraformResource // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. Connection() interface{} // Experimental. SetConnection(val interface{}) // Experimental. ConstructNodeMetadata() *map[string]interface{} // Experimental. Count() interface{} // Experimental. SetCount(val interface{}) // Experimental. DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) FirewallRule() FirewallRulesFirewallRuleList FirewallRuleInput() interface{} // 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) // The tree node. Node() constructs.Node // Experimental. Provider() cdktf.TerraformProvider // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. Provisioners() *[]interface{} // Experimental. SetProvisioners(val *[]interface{}) // Experimental. RawOverrides() interface{} ServerId() *string SetServerId(val *string) ServerIdInput() *string // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *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) PutFirewallRule(value interface{}) ResetId() // 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 // 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/firewall_rules upcloud_firewall_rules}.
func NewFirewallRules ¶
func NewFirewallRules(scope constructs.Construct, id *string, config *FirewallRulesConfig) FirewallRules
Create a new {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/firewall_rules upcloud_firewall_rules} Resource.
type FirewallRulesConfig ¶
type FirewallRulesConfig 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"` // firewall_rule block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/firewall_rules#firewall_rule FirewallRules#firewall_rule} FirewallRule interface{} `field:"required" json:"firewallRule" yaml:"firewallRule"` // The unique id of the server to be protected the firewall rules. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/firewall_rules#server_id FirewallRules#server_id} ServerId *string `field:"required" json:"serverId" yaml:"serverId"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/firewall_rules#id FirewallRules#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"` }
type FirewallRulesFirewallRule ¶
type FirewallRulesFirewallRule struct { // Action to take if the rule conditions are met. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/firewall_rules#action FirewallRules#action} Action *string `field:"required" json:"action" yaml:"action"` // The direction of network traffic this rule will be applied to. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/firewall_rules#direction FirewallRules#direction} Direction *string `field:"required" json:"direction" yaml:"direction"` // Freeform comment string for the rule. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/firewall_rules#comment FirewallRules#comment} Comment *string `field:"optional" json:"comment" yaml:"comment"` // The destination address range ends from this address. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/firewall_rules#destination_address_end FirewallRules#destination_address_end} DestinationAddressEnd *string `field:"optional" json:"destinationAddressEnd" yaml:"destinationAddressEnd"` // The destination address range starts from this address. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/firewall_rules#destination_address_start FirewallRules#destination_address_start} DestinationAddressStart *string `field:"optional" json:"destinationAddressStart" yaml:"destinationAddressStart"` // The destination port range ends from this port number. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/firewall_rules#destination_port_end FirewallRules#destination_port_end} DestinationPortEnd *string `field:"optional" json:"destinationPortEnd" yaml:"destinationPortEnd"` // The destination port range starts from this port number. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/firewall_rules#destination_port_start FirewallRules#destination_port_start} DestinationPortStart *string `field:"optional" json:"destinationPortStart" yaml:"destinationPortStart"` // The address family of new firewall rule. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/firewall_rules#family FirewallRules#family} Family *string `field:"optional" json:"family" yaml:"family"` // The ICMP type. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/firewall_rules#icmp_type FirewallRules#icmp_type} IcmpType *string `field:"optional" json:"icmpType" yaml:"icmpType"` // The protocol this rule will be applied to. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/firewall_rules#protocol FirewallRules#protocol} Protocol *string `field:"optional" json:"protocol" yaml:"protocol"` // The source address range ends from this address. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/firewall_rules#source_address_end FirewallRules#source_address_end} SourceAddressEnd *string `field:"optional" json:"sourceAddressEnd" yaml:"sourceAddressEnd"` // The source address range starts from this address. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/firewall_rules#source_address_start FirewallRules#source_address_start} SourceAddressStart *string `field:"optional" json:"sourceAddressStart" yaml:"sourceAddressStart"` // The source port range ends from this port number. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/firewall_rules#source_port_end FirewallRules#source_port_end} SourcePortEnd *string `field:"optional" json:"sourcePortEnd" yaml:"sourcePortEnd"` // The source port range starts from this port number. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.13.0/docs/resources/firewall_rules#source_port_start FirewallRules#source_port_start} SourcePortStart *string `field:"optional" json:"sourcePortStart" yaml:"sourcePortStart"` }
type FirewallRulesFirewallRuleList ¶
type FirewallRulesFirewallRuleList 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 InternalValue() interface{} SetInternalValue(val interface{}) // 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) FirewallRulesFirewallRuleOutputReference // 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 NewFirewallRulesFirewallRuleList ¶
func NewFirewallRulesFirewallRuleList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) FirewallRulesFirewallRuleList
type FirewallRulesFirewallRuleOutputReference ¶
type FirewallRulesFirewallRuleOutputReference interface { cdktf.ComplexObject Action() *string SetAction(val *string) ActionInput() *string Comment() *string SetComment(val *string) CommentInput() *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 DestinationAddressEnd() *string SetDestinationAddressEnd(val *string) DestinationAddressEndInput() *string DestinationAddressStart() *string SetDestinationAddressStart(val *string) DestinationAddressStartInput() *string DestinationPortEnd() *string SetDestinationPortEnd(val *string) DestinationPortEndInput() *string DestinationPortStart() *string SetDestinationPortStart(val *string) DestinationPortStartInput() *string Direction() *string SetDirection(val *string) DirectionInput() *string Family() *string SetFamily(val *string) FamilyInput() *string // Experimental. Fqn() *string IcmpType() *string SetIcmpType(val *string) IcmpTypeInput() *string InternalValue() interface{} SetInternalValue(val interface{}) Protocol() *string SetProtocol(val *string) ProtocolInput() *string SourceAddressEnd() *string SetSourceAddressEnd(val *string) SourceAddressEndInput() *string SourceAddressStart() *string SetSourceAddressStart(val *string) SourceAddressStartInput() *string SourcePortEnd() *string SetSourcePortEnd(val *string) SourcePortEndInput() *string SourcePortStart() *string SetSourcePortStart(val *string) SourcePortStartInput() *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 ResetComment() ResetDestinationAddressEnd() ResetDestinationAddressStart() ResetDestinationPortEnd() ResetDestinationPortStart() ResetFamily() ResetIcmpType() ResetProtocol() ResetSourceAddressEnd() ResetSourceAddressStart() ResetSourcePortEnd() ResetSourcePortStart() // 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 NewFirewallRulesFirewallRuleOutputReference ¶
func NewFirewallRulesFirewallRuleOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) FirewallRulesFirewallRuleOutputReference