published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi
Create AppsecWafAiRules Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AppsecWafAiRules(name: string, args: AppsecWafAiRulesArgs, opts?: CustomResourceOptions);@overload
def AppsecWafAiRules(resource_name: str,
args: AppsecWafAiRulesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AppsecWafAiRules(resource_name: str,
opts: Optional[ResourceOptions] = None,
config_id: Optional[int] = None,
security_policy_id: Optional[str] = None,
action: Optional[str] = None,
ai_rule_status: Optional[str] = None,
rule_id: Optional[int] = None)func NewAppsecWafAiRules(ctx *Context, name string, args AppsecWafAiRulesArgs, opts ...ResourceOption) (*AppsecWafAiRules, error)public AppsecWafAiRules(string name, AppsecWafAiRulesArgs args, CustomResourceOptions? opts = null)
public AppsecWafAiRules(String name, AppsecWafAiRulesArgs args)
public AppsecWafAiRules(String name, AppsecWafAiRulesArgs args, CustomResourceOptions options)
type: akamai:AppsecWafAiRules
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "akamai_appsec_waf_ai_rules" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AppsecWafAiRulesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AppsecWafAiRulesArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AppsecWafAiRulesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppsecWafAiRulesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AppsecWafAiRulesArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var appsecWafAiRulesResource = new Akamai.AppsecWafAiRules("appsecWafAiRulesResource", new()
{
ConfigId = 0,
SecurityPolicyId = "string",
Action = "string",
AiRuleStatus = "string",
RuleId = 0,
});
example, err := akamai.NewAppsecWafAiRules(ctx, "appsecWafAiRulesResource", &akamai.AppsecWafAiRulesArgs{
ConfigId: pulumi.Int(0),
SecurityPolicyId: pulumi.String("string"),
Action: pulumi.String("string"),
AiRuleStatus: pulumi.String("string"),
RuleId: pulumi.Int(0),
})
resource "akamai_appsec_waf_ai_rules" "appsecWafAiRulesResource" {
lifecycle {
create_before_destroy = true
}
config_id = 0
security_policy_id = "string"
action = "string"
ai_rule_status = "string"
rule_id = 0
}
var appsecWafAiRulesResource = new AppsecWafAiRules("appsecWafAiRulesResource", AppsecWafAiRulesArgs.builder()
.configId(0)
.securityPolicyId("string")
.action("string")
.aiRuleStatus("string")
.ruleId(0)
.build());
appsec_waf_ai_rules_resource = akamai.AppsecWafAiRules("appsecWafAiRulesResource",
config_id=0,
security_policy_id="string",
action="string",
ai_rule_status="string",
rule_id=0)
const appsecWafAiRulesResource = new akamai.AppsecWafAiRules("appsecWafAiRulesResource", {
configId: 0,
securityPolicyId: "string",
action: "string",
aiRuleStatus: "string",
ruleId: 0,
});
type: akamai:AppsecWafAiRules
properties:
action: string
aiRuleStatus: string
configId: 0
ruleId: 0
securityPolicyId: string
AppsecWafAiRules Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AppsecWafAiRules resource accepts the following input properties:
- Config
Id int - Unique identifier of the security configuration.
- Security
Policy stringId - Unique identifier of the security policy.
- Action string
- Action to set for the AI rule specified by rule_id. Valid values: alert, deny, deny_custom_<custom_deny_id>, none. Mutually exclusive with ai_rule_status.
- Ai
Rule stringStatus - AI rules status for the policy. Valid values: ENABLED, DISABLED. NOT_ENROLLED is returned by the API when the policy is not enrolled but cannot be set. Mutually exclusive with ruleId and action.
- Rule
Id int - Unique identifier of the AI rule whose action to manage. Mutually exclusive with ai_rule_status.
- Config
Id int - Unique identifier of the security configuration.
- Security
Policy stringId - Unique identifier of the security policy.
- Action string
- Action to set for the AI rule specified by rule_id. Valid values: alert, deny, deny_custom_<custom_deny_id>, none. Mutually exclusive with ai_rule_status.
- Ai
Rule stringStatus - AI rules status for the policy. Valid values: ENABLED, DISABLED. NOT_ENROLLED is returned by the API when the policy is not enrolled but cannot be set. Mutually exclusive with ruleId and action.
- Rule
Id int - Unique identifier of the AI rule whose action to manage. Mutually exclusive with ai_rule_status.
- config_
id number - Unique identifier of the security configuration.
- security_
policy_ stringid - Unique identifier of the security policy.
- action string
- Action to set for the AI rule specified by rule_id. Valid values: alert, deny, deny_custom_<custom_deny_id>, none. Mutually exclusive with ai_rule_status.
- ai_
rule_ stringstatus - AI rules status for the policy. Valid values: ENABLED, DISABLED. NOT_ENROLLED is returned by the API when the policy is not enrolled but cannot be set. Mutually exclusive with ruleId and action.
- rule_
id number - Unique identifier of the AI rule whose action to manage. Mutually exclusive with ai_rule_status.
- config
Id Integer - Unique identifier of the security configuration.
- security
Policy StringId - Unique identifier of the security policy.
- action String
- Action to set for the AI rule specified by rule_id. Valid values: alert, deny, deny_custom_<custom_deny_id>, none. Mutually exclusive with ai_rule_status.
- ai
Rule StringStatus - AI rules status for the policy. Valid values: ENABLED, DISABLED. NOT_ENROLLED is returned by the API when the policy is not enrolled but cannot be set. Mutually exclusive with ruleId and action.
- rule
Id Integer - Unique identifier of the AI rule whose action to manage. Mutually exclusive with ai_rule_status.
- config
Id number - Unique identifier of the security configuration.
- security
Policy stringId - Unique identifier of the security policy.
- action string
- Action to set for the AI rule specified by rule_id. Valid values: alert, deny, deny_custom_<custom_deny_id>, none. Mutually exclusive with ai_rule_status.
- ai
Rule stringStatus - AI rules status for the policy. Valid values: ENABLED, DISABLED. NOT_ENROLLED is returned by the API when the policy is not enrolled but cannot be set. Mutually exclusive with ruleId and action.
- rule
Id number - Unique identifier of the AI rule whose action to manage. Mutually exclusive with ai_rule_status.
- config_
id int - Unique identifier of the security configuration.
- security_
policy_ strid - Unique identifier of the security policy.
- action str
- Action to set for the AI rule specified by rule_id. Valid values: alert, deny, deny_custom_<custom_deny_id>, none. Mutually exclusive with ai_rule_status.
- ai_
rule_ strstatus - AI rules status for the policy. Valid values: ENABLED, DISABLED. NOT_ENROLLED is returned by the API when the policy is not enrolled but cannot be set. Mutually exclusive with ruleId and action.
- rule_
id int - Unique identifier of the AI rule whose action to manage. Mutually exclusive with ai_rule_status.
- config
Id Number - Unique identifier of the security configuration.
- security
Policy StringId - Unique identifier of the security policy.
- action String
- Action to set for the AI rule specified by rule_id. Valid values: alert, deny, deny_custom_<custom_deny_id>, none. Mutually exclusive with ai_rule_status.
- ai
Rule StringStatus - AI rules status for the policy. Valid values: ENABLED, DISABLED. NOT_ENROLLED is returned by the API when the policy is not enrolled but cannot be set. Mutually exclusive with ruleId and action.
- rule
Id Number - Unique identifier of the AI rule whose action to manage. Mutually exclusive with ai_rule_status.
Outputs
All input properties are implicitly available as output properties. Additionally, the AppsecWafAiRules resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Rule
Description string - Description of what the AI rule detects. Populated automatically from the rule list.
- Id string
- The provider-assigned unique ID for this managed resource.
- Rule
Description string - Description of what the AI rule detects. Populated automatically from the rule list.
- id string
- The provider-assigned unique ID for this managed resource.
- rule_
description string - Description of what the AI rule detects. Populated automatically from the rule list.
- id String
- The provider-assigned unique ID for this managed resource.
- rule
Description String - Description of what the AI rule detects. Populated automatically from the rule list.
- id string
- The provider-assigned unique ID for this managed resource.
- rule
Description string - Description of what the AI rule detects. Populated automatically from the rule list.
- id str
- The provider-assigned unique ID for this managed resource.
- rule_
description str - Description of what the AI rule detects. Populated automatically from the rule list.
- id String
- The provider-assigned unique ID for this managed resource.
- rule
Description String - Description of what the AI rule detects. Populated automatically from the rule list.
Look up Existing AppsecWafAiRules Resource
Get an existing AppsecWafAiRules resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AppsecWafAiRulesState, opts?: CustomResourceOptions): AppsecWafAiRules@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
ai_rule_status: Optional[str] = None,
config_id: Optional[int] = None,
rule_description: Optional[str] = None,
rule_id: Optional[int] = None,
security_policy_id: Optional[str] = None) -> AppsecWafAiRulesfunc GetAppsecWafAiRules(ctx *Context, name string, id IDInput, state *AppsecWafAiRulesState, opts ...ResourceOption) (*AppsecWafAiRules, error)public static AppsecWafAiRules Get(string name, Input<string> id, AppsecWafAiRulesState? state, CustomResourceOptions? opts = null)public static AppsecWafAiRules get(String name, Output<String> id, AppsecWafAiRulesState state, CustomResourceOptions options)resources: _: type: akamai:AppsecWafAiRules get: id: ${id}import {
to = akamai_appsec_waf_ai_rules.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Action string
- Action to set for the AI rule specified by rule_id. Valid values: alert, deny, deny_custom_<custom_deny_id>, none. Mutually exclusive with ai_rule_status.
- Ai
Rule stringStatus - AI rules status for the policy. Valid values: ENABLED, DISABLED. NOT_ENROLLED is returned by the API when the policy is not enrolled but cannot be set. Mutually exclusive with ruleId and action.
- Config
Id int - Unique identifier of the security configuration.
- Rule
Description string - Description of what the AI rule detects. Populated automatically from the rule list.
- Rule
Id int - Unique identifier of the AI rule whose action to manage. Mutually exclusive with ai_rule_status.
- Security
Policy stringId - Unique identifier of the security policy.
- Action string
- Action to set for the AI rule specified by rule_id. Valid values: alert, deny, deny_custom_<custom_deny_id>, none. Mutually exclusive with ai_rule_status.
- Ai
Rule stringStatus - AI rules status for the policy. Valid values: ENABLED, DISABLED. NOT_ENROLLED is returned by the API when the policy is not enrolled but cannot be set. Mutually exclusive with ruleId and action.
- Config
Id int - Unique identifier of the security configuration.
- Rule
Description string - Description of what the AI rule detects. Populated automatically from the rule list.
- Rule
Id int - Unique identifier of the AI rule whose action to manage. Mutually exclusive with ai_rule_status.
- Security
Policy stringId - Unique identifier of the security policy.
- action string
- Action to set for the AI rule specified by rule_id. Valid values: alert, deny, deny_custom_<custom_deny_id>, none. Mutually exclusive with ai_rule_status.
- ai_
rule_ stringstatus - AI rules status for the policy. Valid values: ENABLED, DISABLED. NOT_ENROLLED is returned by the API when the policy is not enrolled but cannot be set. Mutually exclusive with ruleId and action.
- config_
id number - Unique identifier of the security configuration.
- rule_
description string - Description of what the AI rule detects. Populated automatically from the rule list.
- rule_
id number - Unique identifier of the AI rule whose action to manage. Mutually exclusive with ai_rule_status.
- security_
policy_ stringid - Unique identifier of the security policy.
- action String
- Action to set for the AI rule specified by rule_id. Valid values: alert, deny, deny_custom_<custom_deny_id>, none. Mutually exclusive with ai_rule_status.
- ai
Rule StringStatus - AI rules status for the policy. Valid values: ENABLED, DISABLED. NOT_ENROLLED is returned by the API when the policy is not enrolled but cannot be set. Mutually exclusive with ruleId and action.
- config
Id Integer - Unique identifier of the security configuration.
- rule
Description String - Description of what the AI rule detects. Populated automatically from the rule list.
- rule
Id Integer - Unique identifier of the AI rule whose action to manage. Mutually exclusive with ai_rule_status.
- security
Policy StringId - Unique identifier of the security policy.
- action string
- Action to set for the AI rule specified by rule_id. Valid values: alert, deny, deny_custom_<custom_deny_id>, none. Mutually exclusive with ai_rule_status.
- ai
Rule stringStatus - AI rules status for the policy. Valid values: ENABLED, DISABLED. NOT_ENROLLED is returned by the API when the policy is not enrolled but cannot be set. Mutually exclusive with ruleId and action.
- config
Id number - Unique identifier of the security configuration.
- rule
Description string - Description of what the AI rule detects. Populated automatically from the rule list.
- rule
Id number - Unique identifier of the AI rule whose action to manage. Mutually exclusive with ai_rule_status.
- security
Policy stringId - Unique identifier of the security policy.
- action str
- Action to set for the AI rule specified by rule_id. Valid values: alert, deny, deny_custom_<custom_deny_id>, none. Mutually exclusive with ai_rule_status.
- ai_
rule_ strstatus - AI rules status for the policy. Valid values: ENABLED, DISABLED. NOT_ENROLLED is returned by the API when the policy is not enrolled but cannot be set. Mutually exclusive with ruleId and action.
- config_
id int - Unique identifier of the security configuration.
- rule_
description str - Description of what the AI rule detects. Populated automatically from the rule list.
- rule_
id int - Unique identifier of the AI rule whose action to manage. Mutually exclusive with ai_rule_status.
- security_
policy_ strid - Unique identifier of the security policy.
- action String
- Action to set for the AI rule specified by rule_id. Valid values: alert, deny, deny_custom_<custom_deny_id>, none. Mutually exclusive with ai_rule_status.
- ai
Rule StringStatus - AI rules status for the policy. Valid values: ENABLED, DISABLED. NOT_ENROLLED is returned by the API when the policy is not enrolled but cannot be set. Mutually exclusive with ruleId and action.
- config
Id Number - Unique identifier of the security configuration.
- rule
Description String - Description of what the AI rule detects. Populated automatically from the rule list.
- rule
Id Number - Unique identifier of the AI rule whose action to manage. Mutually exclusive with ai_rule_status.
- security
Policy StringId - Unique identifier of the security policy.
Package Details
- Repository
- Akamai pulumi/pulumi-akamai
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
akamaiTerraform Provider.
published on Thursday, Sep 17, 2026 by Pulumi