1. Packages
  2. Packages
  3. Akamai
  4. API Docs
  5. AppsecWafRuleset
Viewing docs for Akamai v11.1.0
published on Thursday, Apr 2, 2026 by Pulumi
akamai logo
Viewing docs for Akamai v11.1.0
published on Thursday, Apr 2, 2026 by Pulumi

    Create AppsecWafRuleset Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AppsecWafRuleset(name: string, args: AppsecWafRulesetArgs, opts?: CustomResourceOptions);
    @overload
    def AppsecWafRuleset(resource_name: str,
                         args: AppsecWafRulesetArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def AppsecWafRuleset(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         config_id: Optional[int] = None,
                         security_policy_id: Optional[str] = None,
                         attack_groups: Optional[Sequence[AppsecWafRulesetAttackGroupArgs]] = None,
                         rules: Optional[Sequence[AppsecWafRulesetRuleArgs]] = None)
    func NewAppsecWafRuleset(ctx *Context, name string, args AppsecWafRulesetArgs, opts ...ResourceOption) (*AppsecWafRuleset, error)
    public AppsecWafRuleset(string name, AppsecWafRulesetArgs args, CustomResourceOptions? opts = null)
    public AppsecWafRuleset(String name, AppsecWafRulesetArgs args)
    public AppsecWafRuleset(String name, AppsecWafRulesetArgs args, CustomResourceOptions options)
    
    type: akamai:AppsecWafRuleset
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AppsecWafRulesetArgs
    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 AppsecWafRulesetArgs
    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 AppsecWafRulesetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AppsecWafRulesetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AppsecWafRulesetArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    AppsecWafRuleset 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 AppsecWafRuleset resource accepts the following input properties:

    ConfigId int
    Unique identifier of the security configuration
    SecurityPolicyId string
    Unique identifier of the security policy
    AttackGroups List<AppsecWafRulesetAttackGroup>
    List of attack group objects including action and condition exceptions
    Rules List<AppsecWafRulesetRule>
    List of rule objects including action and condition exceptions
    ConfigId int
    Unique identifier of the security configuration
    SecurityPolicyId string
    Unique identifier of the security policy
    AttackGroups []AppsecWafRulesetAttackGroupArgs
    List of attack group objects including action and condition exceptions
    Rules []AppsecWafRulesetRuleArgs
    List of rule objects including action and condition exceptions
    configId Integer
    Unique identifier of the security configuration
    securityPolicyId String
    Unique identifier of the security policy
    attackGroups List<AppsecWafRulesetAttackGroup>
    List of attack group objects including action and condition exceptions
    rules List<AppsecWafRulesetRule>
    List of rule objects including action and condition exceptions
    configId number
    Unique identifier of the security configuration
    securityPolicyId string
    Unique identifier of the security policy
    attackGroups AppsecWafRulesetAttackGroup[]
    List of attack group objects including action and condition exceptions
    rules AppsecWafRulesetRule[]
    List of rule objects including action and condition exceptions
    config_id int
    Unique identifier of the security configuration
    security_policy_id str
    Unique identifier of the security policy
    attack_groups Sequence[AppsecWafRulesetAttackGroupArgs]
    List of attack group objects including action and condition exceptions
    rules Sequence[AppsecWafRulesetRuleArgs]
    List of rule objects including action and condition exceptions
    configId Number
    Unique identifier of the security configuration
    securityPolicyId String
    Unique identifier of the security policy
    attackGroups List<Property Map>
    List of attack group objects including action and condition exceptions
    rules List<Property Map>
    List of rule objects including action and condition exceptions

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AppsecWafRuleset resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AppsecWafRuleset Resource

    Get an existing AppsecWafRuleset 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?: AppsecWafRulesetState, opts?: CustomResourceOptions): AppsecWafRuleset
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            attack_groups: Optional[Sequence[AppsecWafRulesetAttackGroupArgs]] = None,
            config_id: Optional[int] = None,
            rules: Optional[Sequence[AppsecWafRulesetRuleArgs]] = None,
            security_policy_id: Optional[str] = None) -> AppsecWafRuleset
    func GetAppsecWafRuleset(ctx *Context, name string, id IDInput, state *AppsecWafRulesetState, opts ...ResourceOption) (*AppsecWafRuleset, error)
    public static AppsecWafRuleset Get(string name, Input<string> id, AppsecWafRulesetState? state, CustomResourceOptions? opts = null)
    public static AppsecWafRuleset get(String name, Output<String> id, AppsecWafRulesetState state, CustomResourceOptions options)
    resources:  _:    type: akamai:AppsecWafRuleset    get:      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:
    AttackGroups List<AppsecWafRulesetAttackGroup>
    List of attack group objects including action and condition exceptions
    ConfigId int
    Unique identifier of the security configuration
    Rules List<AppsecWafRulesetRule>
    List of rule objects including action and condition exceptions
    SecurityPolicyId string
    Unique identifier of the security policy
    AttackGroups []AppsecWafRulesetAttackGroupArgs
    List of attack group objects including action and condition exceptions
    ConfigId int
    Unique identifier of the security configuration
    Rules []AppsecWafRulesetRuleArgs
    List of rule objects including action and condition exceptions
    SecurityPolicyId string
    Unique identifier of the security policy
    attackGroups List<AppsecWafRulesetAttackGroup>
    List of attack group objects including action and condition exceptions
    configId Integer
    Unique identifier of the security configuration
    rules List<AppsecWafRulesetRule>
    List of rule objects including action and condition exceptions
    securityPolicyId String
    Unique identifier of the security policy
    attackGroups AppsecWafRulesetAttackGroup[]
    List of attack group objects including action and condition exceptions
    configId number
    Unique identifier of the security configuration
    rules AppsecWafRulesetRule[]
    List of rule objects including action and condition exceptions
    securityPolicyId string
    Unique identifier of the security policy
    attack_groups Sequence[AppsecWafRulesetAttackGroupArgs]
    List of attack group objects including action and condition exceptions
    config_id int
    Unique identifier of the security configuration
    rules Sequence[AppsecWafRulesetRuleArgs]
    List of rule objects including action and condition exceptions
    security_policy_id str
    Unique identifier of the security policy
    attackGroups List<Property Map>
    List of attack group objects including action and condition exceptions
    configId Number
    Unique identifier of the security configuration
    rules List<Property Map>
    List of rule objects including action and condition exceptions
    securityPolicyId String
    Unique identifier of the security policy

    Supporting Types

    AppsecWafRulesetAttackGroup, AppsecWafRulesetAttackGroupArgs

    AttackGroup string
    Unique name of the attack group
    AttackGroupAction string
    Action taken when the attack group is triggered (alert, deny, deny_custom_{custom_deny_id}, none)
    ConditionException string
    JSON-formatted conditions and exceptions associated with the attack group
    AttackGroup string
    Unique name of the attack group
    AttackGroupAction string
    Action taken when the attack group is triggered (alert, deny, deny_custom_{custom_deny_id}, none)
    ConditionException string
    JSON-formatted conditions and exceptions associated with the attack group
    attackGroup String
    Unique name of the attack group
    attackGroupAction String
    Action taken when the attack group is triggered (alert, deny, deny_custom_{custom_deny_id}, none)
    conditionException String
    JSON-formatted conditions and exceptions associated with the attack group
    attackGroup string
    Unique name of the attack group
    attackGroupAction string
    Action taken when the attack group is triggered (alert, deny, deny_custom_{custom_deny_id}, none)
    conditionException string
    JSON-formatted conditions and exceptions associated with the attack group
    attack_group str
    Unique name of the attack group
    attack_group_action str
    Action taken when the attack group is triggered (alert, deny, deny_custom_{custom_deny_id}, none)
    condition_exception str
    JSON-formatted conditions and exceptions associated with the attack group
    attackGroup String
    Unique name of the attack group
    attackGroupAction String
    Action taken when the attack group is triggered (alert, deny, deny_custom_{custom_deny_id}, none)
    conditionException String
    JSON-formatted conditions and exceptions associated with the attack group

    AppsecWafRulesetRule, AppsecWafRulesetRuleArgs

    RuleAction string
    Action taken when the rule is triggered (alert, deny, deny_custom_{custom_deny_id}, none)
    RuleId int
    Unique identifier for a rule
    ConditionException string
    Conditions and exceptions associated with the rule
    RuleAction string
    Action taken when the rule is triggered (alert, deny, deny_custom_{custom_deny_id}, none)
    RuleId int
    Unique identifier for a rule
    ConditionException string
    Conditions and exceptions associated with the rule
    ruleAction String
    Action taken when the rule is triggered (alert, deny, deny_custom_{custom_deny_id}, none)
    ruleId Integer
    Unique identifier for a rule
    conditionException String
    Conditions and exceptions associated with the rule
    ruleAction string
    Action taken when the rule is triggered (alert, deny, deny_custom_{custom_deny_id}, none)
    ruleId number
    Unique identifier for a rule
    conditionException string
    Conditions and exceptions associated with the rule
    rule_action str
    Action taken when the rule is triggered (alert, deny, deny_custom_{custom_deny_id}, none)
    rule_id int
    Unique identifier for a rule
    condition_exception str
    Conditions and exceptions associated with the rule
    ruleAction String
    Action taken when the rule is triggered (alert, deny, deny_custom_{custom_deny_id}, none)
    ruleId Number
    Unique identifier for a rule
    conditionException String
    Conditions and exceptions associated with the rule

    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 v11.1.0
    published on Thursday, Apr 2, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.