Documentation ¶
Index ¶
- func BotManagement_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, ...) cdktf.ImportableResource
- func BotManagement_IsConstruct(x interface{}) *bool
- func BotManagement_IsTerraformElement(x interface{}) *bool
- func BotManagement_IsTerraformResource(x interface{}) *bool
- func BotManagement_TfResourceType() *string
- func NewBotManagement_Override(b BotManagement, scope constructs.Construct, id *string, ...)
- type BotManagement
- type BotManagementConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BotManagement_GenerateConfigForImport ¶
func BotManagement_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, provider cdktf.TerraformProvider) cdktf.ImportableResource
Generates CDKTF code for importing a BotManagement resource upon running "cdktf plan <stack-name>".
func BotManagement_IsConstruct ¶
func BotManagement_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 BotManagement_IsTerraformElement ¶
func BotManagement_IsTerraformElement(x interface{}) *bool
Experimental.
func BotManagement_IsTerraformResource ¶
func BotManagement_IsTerraformResource(x interface{}) *bool
Experimental.
func BotManagement_TfResourceType ¶
func BotManagement_TfResourceType() *string
func NewBotManagement_Override ¶
func NewBotManagement_Override(b BotManagement, scope constructs.Construct, id *string, config *BotManagementConfig)
Create a new {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.51.0/docs/resources/bot_management cloudflare_bot_management} Resource.
Types ¶
type BotManagement ¶
type BotManagement interface { cdktf.TerraformResource AiBotsProtection() *string SetAiBotsProtection(val *string) AiBotsProtectionInput() *string AutoUpdateModel() interface{} SetAutoUpdateModel(val interface{}) AutoUpdateModelInput() 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) EnableJs() interface{} SetEnableJs(val interface{}) EnableJsInput() interface{} FightMode() interface{} SetFightMode(val interface{}) FightModeInput() 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 OptimizeWordpress() interface{} SetOptimizeWordpress(val interface{}) OptimizeWordpressInput() interface{} // Experimental. Provider() cdktf.TerraformProvider // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. Provisioners() *[]interface{} // Experimental. SetProvisioners(val *[]interface{}) // Experimental. RawOverrides() interface{} SbfmDefinitelyAutomated() *string SetSbfmDefinitelyAutomated(val *string) SbfmDefinitelyAutomatedInput() *string SbfmLikelyAutomated() *string SetSbfmLikelyAutomated(val *string) SbfmLikelyAutomatedInput() *string SbfmStaticResourceProtection() interface{} SetSbfmStaticResourceProtection(val interface{}) SbfmStaticResourceProtectionInput() interface{} SbfmVerifiedBots() *string SetSbfmVerifiedBots(val *string) SbfmVerifiedBotsInput() *string SuppressSessionScore() interface{} SetSuppressSessionScore(val interface{}) SuppressSessionScoreInput() interface{} // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *string UsingLatestModel() cdktf.IResolvable 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) ResetAiBotsProtection() ResetAutoUpdateModel() ResetEnableJs() ResetFightMode() ResetId() ResetOptimizeWordpress() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() ResetSbfmDefinitelyAutomated() ResetSbfmLikelyAutomated() ResetSbfmStaticResourceProtection() ResetSbfmVerifiedBots() ResetSuppressSessionScore() 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/4.51.0/docs/resources/bot_management cloudflare_bot_management}.
func NewBotManagement ¶
func NewBotManagement(scope constructs.Construct, id *string, config *BotManagementConfig) BotManagement
Create a new {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.51.0/docs/resources/bot_management cloudflare_bot_management} Resource.
type BotManagementConfig ¶
type BotManagementConfig 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 zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.51.0/docs/resources/bot_management#zone_id BotManagement#zone_id} ZoneId *string `field:"required" json:"zoneId" yaml:"zoneId"` // Enable rule to block AI Scrapers and Crawlers. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.51.0/docs/resources/bot_management#ai_bots_protection BotManagement#ai_bots_protection} AiBotsProtection *string `field:"optional" json:"aiBotsProtection" yaml:"aiBotsProtection"` // Automatically update to the newest bot detection models created by Cloudflare as they are released. [Learn more.](https://developers.cloudflare.com/bots/reference/machine-learning-models#model-versions-and-release-notes). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.51.0/docs/resources/bot_management#auto_update_model BotManagement#auto_update_model} AutoUpdateModel interface{} `field:"optional" json:"autoUpdateModel" yaml:"autoUpdateModel"` // Use lightweight, invisible JavaScript detections to improve Bot Management. [Learn more about JavaScript Detections](https://developers.cloudflare.com/bots/reference/javascript-detections/). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.51.0/docs/resources/bot_management#enable_js BotManagement#enable_js} EnableJs interface{} `field:"optional" json:"enableJs" yaml:"enableJs"` // Whether to enable Bot Fight Mode. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.51.0/docs/resources/bot_management#fight_mode BotManagement#fight_mode} FightMode interface{} `field:"optional" json:"fightMode" yaml:"fightMode"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.51.0/docs/resources/bot_management#id BotManagement#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"` // Whether to optimize Super Bot Fight Mode protections for Wordpress. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.51.0/docs/resources/bot_management#optimize_wordpress BotManagement#optimize_wordpress} OptimizeWordpress interface{} `field:"optional" json:"optimizeWordpress" yaml:"optimizeWordpress"` // Super Bot Fight Mode (SBFM) action to take on definitely automated requests. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.51.0/docs/resources/bot_management#sbfm_definitely_automated BotManagement#sbfm_definitely_automated} SbfmDefinitelyAutomated *string `field:"optional" json:"sbfmDefinitelyAutomated" yaml:"sbfmDefinitelyAutomated"` // Super Bot Fight Mode (SBFM) action to take on likely automated requests. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.51.0/docs/resources/bot_management#sbfm_likely_automated BotManagement#sbfm_likely_automated} SbfmLikelyAutomated *string `field:"optional" json:"sbfmLikelyAutomated" yaml:"sbfmLikelyAutomated"` // Super Bot Fight Mode (SBFM) to enable static resource protection. // // Enable if static resources on your application need bot protection. Note: Static resource protection can also result in legitimate traffic being blocked. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.51.0/docs/resources/bot_management#sbfm_static_resource_protection BotManagement#sbfm_static_resource_protection} SbfmStaticResourceProtection interface{} `field:"optional" json:"sbfmStaticResourceProtection" yaml:"sbfmStaticResourceProtection"` // Super Bot Fight Mode (SBFM) action to take on verified bots requests. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.51.0/docs/resources/bot_management#sbfm_verified_bots BotManagement#sbfm_verified_bots} SbfmVerifiedBots *string `field:"optional" json:"sbfmVerifiedBots" yaml:"sbfmVerifiedBots"` // Whether to disable tracking the highest bot score for a session in the Bot Management cookie. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.51.0/docs/resources/bot_management#suppress_session_score BotManagement#suppress_session_score} SuppressSessionScore interface{} `field:"optional" json:"suppressSessionScore" yaml:"suppressSessionScore"` }