Documentation
¶
Index ¶
- func FirewallRule_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, ...) cdktf.ImportableResource
- func FirewallRule_IsConstruct(x interface{}) *bool
- func FirewallRule_IsTerraformElement(x interface{}) *bool
- func FirewallRule_IsTerraformResource(x interface{}) *bool
- func FirewallRule_TfResourceType() *string
- func NewFirewallRuleActionOutputReference_Override(f FirewallRuleActionOutputReference, ...)
- func NewFirewallRuleActionResponseOutputReference_Override(f FirewallRuleActionResponseOutputReference, ...)
- func NewFirewallRuleFilterOutputReference_Override(f FirewallRuleFilterOutputReference, ...)
- func NewFirewallRule_Override(f FirewallRule, scope constructs.Construct, id *string, ...)
- type FirewallRule
- type FirewallRuleAction
- type FirewallRuleActionOutputReference
- type FirewallRuleActionResponse
- type FirewallRuleActionResponseOutputReference
- type FirewallRuleConfig
- type FirewallRuleFilter
- type FirewallRuleFilterOutputReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirewallRule_GenerateConfigForImport ¶
func FirewallRule_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, provider cdktf.TerraformProvider) cdktf.ImportableResource
Generates CDKTF code for importing a FirewallRule resource upon running "cdktf plan <stack-name>".
func FirewallRule_IsConstruct ¶
func FirewallRule_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 FirewallRule_IsTerraformElement ¶
func FirewallRule_IsTerraformElement(x interface{}) *bool
Experimental.
func FirewallRule_IsTerraformResource ¶
func FirewallRule_IsTerraformResource(x interface{}) *bool
Experimental.
func FirewallRule_TfResourceType ¶
func FirewallRule_TfResourceType() *string
func NewFirewallRuleActionOutputReference_Override ¶
func NewFirewallRuleActionOutputReference_Override(f FirewallRuleActionOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewFirewallRuleActionResponseOutputReference_Override ¶
func NewFirewallRuleActionResponseOutputReference_Override(f FirewallRuleActionResponseOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewFirewallRuleFilterOutputReference_Override ¶
func NewFirewallRuleFilterOutputReference_Override(f FirewallRuleFilterOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewFirewallRule_Override ¶
func NewFirewallRule_Override(f FirewallRule, scope constructs.Construct, id *string, config *FirewallRuleConfig)
Create a new {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/firewall_rule cloudflare_firewall_rule} Resource.
Types ¶
type FirewallRule ¶
type FirewallRule interface { cdktf.TerraformResource Action() FirewallRuleActionOutputReference ActionInput() interface{} // 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) Description() *string Filter() FirewallRuleFilterOutputReference FilterInput() interface{} // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. SetForEach(val cdktf.ITerraformIterator) // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string Id() *string // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. SetLifecycle(val *cdktf.TerraformResourceLifecycle) // The tree node. Node() constructs.Node Paused() cdktf.IResolvable Priority() *float64 Products() *[]*string // Experimental. Provider() cdktf.TerraformProvider // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. Provisioners() *[]interface{} // Experimental. SetProvisioners(val *[]interface{}) // Experimental. RawOverrides() interface{} Ref() *string // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *string ZoneId() *string SetZoneId(val *string) ZoneIdInput() *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) PutAction(value *FirewallRuleAction) PutFilter(value *FirewallRuleFilter) // 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/cloudflare/cloudflare/5.1.0/docs/resources/firewall_rule cloudflare_firewall_rule}.
func NewFirewallRule ¶
func NewFirewallRule(scope constructs.Construct, id *string, config *FirewallRuleConfig) FirewallRule
Create a new {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/firewall_rule cloudflare_firewall_rule} Resource.
type FirewallRuleAction ¶
type FirewallRuleAction struct { // The action to perform. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/firewall_rule#mode FirewallRule#mode} Mode *string `field:"optional" json:"mode" yaml:"mode"` // A custom content type and reponse to return when the threshold is exceeded. // // The custom response configured in this object will override the custom error for the zone. This object is optional. // Notes: If you omit this object, Cloudflare will use the default HTML error page. If "mode" is "challenge", "managed_challenge", or "js_challenge", Cloudflare will use the zone challenge pages and you should not provide the "response" object. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/firewall_rule#response FirewallRule#response} Response *FirewallRuleActionResponse `field:"optional" json:"response" yaml:"response"` // The time in seconds during which Cloudflare will perform the mitigation action. // // Must be an integer value greater than or equal to the period. // Notes: If "mode" is "challenge", "managed_challenge", or "js_challenge", Cloudflare will use the zone's Challenge Passage time and you should not provide this value. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/firewall_rule#timeout FirewallRule#timeout} Timeout *float64 `field:"optional" json:"timeout" yaml:"timeout"` }
type FirewallRuleActionOutputReference ¶
type FirewallRuleActionOutputReference 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 InternalValue() interface{} SetInternalValue(val interface{}) Mode() *string SetMode(val *string) ModeInput() *string Response() FirewallRuleActionResponseOutputReference ResponseInput() interface{} // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Timeout() *float64 SetTimeout(val *float64) TimeoutInput() *float64 // 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 PutResponse(value *FirewallRuleActionResponse) ResetMode() ResetResponse() ResetTimeout() // 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 NewFirewallRuleActionOutputReference ¶
func NewFirewallRuleActionOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) FirewallRuleActionOutputReference
type FirewallRuleActionResponse ¶
type FirewallRuleActionResponse struct { // The response body to return. The value must conform to the configured content type. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/firewall_rule#body FirewallRule#body} Body *string `field:"optional" json:"body" yaml:"body"` // The content type of the body. Must be one of the following: `text/plain`, `text/xml`, or `application/json`. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/firewall_rule#content_type FirewallRule#content_type} ContentType *string `field:"optional" json:"contentType" yaml:"contentType"` }
type FirewallRuleActionResponseOutputReference ¶
type FirewallRuleActionResponseOutputReference interface { cdktf.ComplexObject Body() *string SetBody(val *string) BodyInput() *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) ContentType() *string SetContentType(val *string) ContentTypeInput() *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 // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // 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 ResetBody() ResetContentType() // 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 NewFirewallRuleActionResponseOutputReference ¶
func NewFirewallRuleActionResponseOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) FirewallRuleActionResponseOutputReference
type FirewallRuleConfig ¶
type FirewallRuleConfig 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"` // The action to perform when the threshold of matched traffic within the configured period is exceeded. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/firewall_rule#action FirewallRule#action} Action *FirewallRuleAction `field:"required" json:"action" yaml:"action"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/firewall_rule#filter FirewallRule#filter}. Filter *FirewallRuleFilter `field:"required" json:"filter" yaml:"filter"` // Identifier. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/firewall_rule#zone_id FirewallRule#zone_id} ZoneId *string `field:"required" json:"zoneId" yaml:"zoneId"` }
type FirewallRuleFilter ¶
type FirewallRuleFilter struct { // An informative summary of the filter. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/firewall_rule#description FirewallRule#description} Description *string `field:"optional" json:"description" yaml:"description"` // The filter expression. For more information, refer to [Expressions](https://developers.cloudflare.com/ruleset-engine/rules-language/expressions/). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/firewall_rule#expression FirewallRule#expression} Expression *string `field:"optional" json:"expression" yaml:"expression"` // When true, indicates that the filter is currently paused. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/firewall_rule#paused FirewallRule#paused} Paused interface{} `field:"optional" json:"paused" yaml:"paused"` // A short reference tag. Allows you to select related filters. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/firewall_rule#ref FirewallRule#ref} Ref *string `field:"optional" json:"ref" yaml:"ref"` }
type FirewallRuleFilterOutputReference ¶
type FirewallRuleFilterOutputReference 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 Description() *string SetDescription(val *string) DescriptionInput() *string Expression() *string SetExpression(val *string) ExpressionInput() *string // Experimental. Fqn() *string Id() *string InternalValue() interface{} SetInternalValue(val interface{}) Paused() interface{} SetPaused(val interface{}) PausedInput() interface{} Ref() *string SetRef(val *string) RefInput() *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 ResetDescription() ResetExpression() ResetPaused() ResetRef() // 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 NewFirewallRuleFilterOutputReference ¶
func NewFirewallRuleFilterOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) FirewallRuleFilterOutputReference
Source Files
¶
- FirewallRule.go
- FirewallRuleAction.go
- FirewallRuleActionOutputReference.go
- FirewallRuleActionOutputReference__checks.go
- FirewallRuleActionResponse.go
- FirewallRuleActionResponseOutputReference.go
- FirewallRuleActionResponseOutputReference__checks.go
- FirewallRuleConfig.go
- FirewallRuleFilter.go
- FirewallRuleFilterOutputReference.go
- FirewallRuleFilterOutputReference__checks.go
- FirewallRule__checks.go
- main.go