1. Registry
  2. Packages
  3. Akamai
  4. API Docs
  5. AppsecWafAiRules
Viewing docs for Akamai v12.0.0
published on Thursday, Sep 17, 2026 by Pulumi
akamai logo
Viewing docs for Akamai v12.0.0
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:

    ConfigId int
    Unique identifier of the security configuration.
    SecurityPolicyId string
    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.
    AiRuleStatus string
    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.
    RuleId int
    Unique identifier of the AI rule whose action to manage. Mutually exclusive with ai_rule_status.
    ConfigId int
    Unique identifier of the security configuration.
    SecurityPolicyId string
    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.
    AiRuleStatus string
    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.
    RuleId 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_id string
    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_status string
    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.
    configId Integer
    Unique identifier of the security configuration.
    securityPolicyId String
    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.
    aiRuleStatus String
    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.
    ruleId Integer
    Unique identifier of the AI rule whose action to manage. Mutually exclusive with ai_rule_status.
    configId number
    Unique identifier of the security configuration.
    securityPolicyId string
    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.
    aiRuleStatus string
    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.
    ruleId 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_id str
    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_status str
    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.
    configId Number
    Unique identifier of the security configuration.
    securityPolicyId String
    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.
    aiRuleStatus String
    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.
    ruleId 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.
    RuleDescription 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.
    RuleDescription 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.
    ruleDescription 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.
    ruleDescription 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.
    ruleDescription 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) -> AppsecWafAiRules
    func 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.
    The following state arguments are supported:
    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.
    AiRuleStatus string
    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.
    ConfigId int
    Unique identifier of the security configuration.
    RuleDescription string
    Description of what the AI rule detects. Populated automatically from the rule list.
    RuleId int
    Unique identifier of the AI rule whose action to manage. Mutually exclusive with ai_rule_status.
    SecurityPolicyId string
    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.
    AiRuleStatus string
    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.
    ConfigId int
    Unique identifier of the security configuration.
    RuleDescription string
    Description of what the AI rule detects. Populated automatically from the rule list.
    RuleId int
    Unique identifier of the AI rule whose action to manage. Mutually exclusive with ai_rule_status.
    SecurityPolicyId string
    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_status string
    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_id string
    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.
    aiRuleStatus String
    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.
    configId Integer
    Unique identifier of the security configuration.
    ruleDescription String
    Description of what the AI rule detects. Populated automatically from the rule list.
    ruleId Integer
    Unique identifier of the AI rule whose action to manage. Mutually exclusive with ai_rule_status.
    securityPolicyId String
    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.
    aiRuleStatus string
    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.
    configId number
    Unique identifier of the security configuration.
    ruleDescription string
    Description of what the AI rule detects. Populated automatically from the rule list.
    ruleId number
    Unique identifier of the AI rule whose action to manage. Mutually exclusive with ai_rule_status.
    securityPolicyId string
    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_status str
    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_id str
    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.
    aiRuleStatus String
    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.
    configId Number
    Unique identifier of the security configuration.
    ruleDescription String
    Description of what the AI rule detects. Populated automatically from the rule list.
    ruleId Number
    Unique identifier of the AI rule whose action to manage. Mutually exclusive with ai_rule_status.
    securityPolicyId String
    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 akamai Terraform Provider.
    akamai logo
    Viewing docs for Akamai v12.0.0
    published on Thursday, Sep 17, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial