1. Packages
  2. Akamai
  3. API Docs
  4. AppSecRule
Akamai v8.1.0 published on Friday, Apr 11, 2025 by Pulumi

akamai.AppSecRule

Explore with Pulumi AI

Create AppSecRule Resource

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

Constructor syntax

new AppSecRule(name: string, args: AppSecRuleArgs, opts?: CustomResourceOptions);
@overload
def AppSecRule(resource_name: str,
               args: AppSecRuleArgs,
               opts: Optional[ResourceOptions] = None)

@overload
def AppSecRule(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               config_id: Optional[int] = None,
               rule_id: Optional[int] = None,
               security_policy_id: Optional[str] = None,
               condition_exception: Optional[str] = None,
               rule_action: Optional[str] = None)
func NewAppSecRule(ctx *Context, name string, args AppSecRuleArgs, opts ...ResourceOption) (*AppSecRule, error)
public AppSecRule(string name, AppSecRuleArgs args, CustomResourceOptions? opts = null)
public AppSecRule(String name, AppSecRuleArgs args)
public AppSecRule(String name, AppSecRuleArgs args, CustomResourceOptions options)
type: akamai:AppSecRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AppSecRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AppSecRuleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AppSecRuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AppSecRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AppSecRuleArgs
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 appSecRuleResource = new Akamai.AppSecRule("appSecRuleResource", new()
{
    ConfigId = 0,
    RuleId = 0,
    SecurityPolicyId = "string",
    ConditionException = "string",
    RuleAction = "string",
});
Copy
example, err := akamai.NewAppSecRule(ctx, "appSecRuleResource", &akamai.AppSecRuleArgs{
	ConfigId:           pulumi.Int(0),
	RuleId:             pulumi.Int(0),
	SecurityPolicyId:   pulumi.String("string"),
	ConditionException: pulumi.String("string"),
	RuleAction:         pulumi.String("string"),
})
Copy
var appSecRuleResource = new AppSecRule("appSecRuleResource", AppSecRuleArgs.builder()
    .configId(0)
    .ruleId(0)
    .securityPolicyId("string")
    .conditionException("string")
    .ruleAction("string")
    .build());
Copy
app_sec_rule_resource = akamai.AppSecRule("appSecRuleResource",
    config_id=0,
    rule_id=0,
    security_policy_id="string",
    condition_exception="string",
    rule_action="string")
Copy
const appSecRuleResource = new akamai.AppSecRule("appSecRuleResource", {
    configId: 0,
    ruleId: 0,
    securityPolicyId: "string",
    conditionException: "string",
    ruleAction: "string",
});
Copy
type: akamai:AppSecRule
properties:
    conditionException: string
    configId: 0
    ruleAction: string
    ruleId: 0
    securityPolicyId: string
Copy

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

ConfigId This property is required. int
Unique identifier of the security configuration
RuleId This property is required. int
Unique identifier of the rule
SecurityPolicyId This property is required. string
Unique identifier of the security policy
ConditionException string
JSON-formatted condition and exception information for the rule
RuleAction string
Action to be taken when the rule is triggered
ConfigId This property is required. int
Unique identifier of the security configuration
RuleId This property is required. int
Unique identifier of the rule
SecurityPolicyId This property is required. string
Unique identifier of the security policy
ConditionException string
JSON-formatted condition and exception information for the rule
RuleAction string
Action to be taken when the rule is triggered
configId This property is required. Integer
Unique identifier of the security configuration
ruleId This property is required. Integer
Unique identifier of the rule
securityPolicyId This property is required. String
Unique identifier of the security policy
conditionException String
JSON-formatted condition and exception information for the rule
ruleAction String
Action to be taken when the rule is triggered
configId This property is required. number
Unique identifier of the security configuration
ruleId This property is required. number
Unique identifier of the rule
securityPolicyId This property is required. string
Unique identifier of the security policy
conditionException string
JSON-formatted condition and exception information for the rule
ruleAction string
Action to be taken when the rule is triggered
config_id This property is required. int
Unique identifier of the security configuration
rule_id This property is required. int
Unique identifier of the rule
security_policy_id This property is required. str
Unique identifier of the security policy
condition_exception str
JSON-formatted condition and exception information for the rule
rule_action str
Action to be taken when the rule is triggered
configId This property is required. Number
Unique identifier of the security configuration
ruleId This property is required. Number
Unique identifier of the rule
securityPolicyId This property is required. String
Unique identifier of the security policy
conditionException String
JSON-formatted condition and exception information for the rule
ruleAction String
Action to be taken when the rule is triggered

Outputs

All input properties are implicitly available as output properties. Additionally, the AppSecRule 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 AppSecRule Resource

Get an existing AppSecRule 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?: AppSecRuleState, opts?: CustomResourceOptions): AppSecRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        condition_exception: Optional[str] = None,
        config_id: Optional[int] = None,
        rule_action: Optional[str] = None,
        rule_id: Optional[int] = None,
        security_policy_id: Optional[str] = None) -> AppSecRule
func GetAppSecRule(ctx *Context, name string, id IDInput, state *AppSecRuleState, opts ...ResourceOption) (*AppSecRule, error)
public static AppSecRule Get(string name, Input<string> id, AppSecRuleState? state, CustomResourceOptions? opts = null)
public static AppSecRule get(String name, Output<String> id, AppSecRuleState state, CustomResourceOptions options)
resources:  _:    type: akamai:AppSecRule    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
ConditionException string
JSON-formatted condition and exception information for the rule
ConfigId int
Unique identifier of the security configuration
RuleAction string
Action to be taken when the rule is triggered
RuleId int
Unique identifier of the rule
SecurityPolicyId string
Unique identifier of the security policy
ConditionException string
JSON-formatted condition and exception information for the rule
ConfigId int
Unique identifier of the security configuration
RuleAction string
Action to be taken when the rule is triggered
RuleId int
Unique identifier of the rule
SecurityPolicyId string
Unique identifier of the security policy
conditionException String
JSON-formatted condition and exception information for the rule
configId Integer
Unique identifier of the security configuration
ruleAction String
Action to be taken when the rule is triggered
ruleId Integer
Unique identifier of the rule
securityPolicyId String
Unique identifier of the security policy
conditionException string
JSON-formatted condition and exception information for the rule
configId number
Unique identifier of the security configuration
ruleAction string
Action to be taken when the rule is triggered
ruleId number
Unique identifier of the rule
securityPolicyId string
Unique identifier of the security policy
condition_exception str
JSON-formatted condition and exception information for the rule
config_id int
Unique identifier of the security configuration
rule_action str
Action to be taken when the rule is triggered
rule_id int
Unique identifier of the rule
security_policy_id str
Unique identifier of the security policy
conditionException String
JSON-formatted condition and exception information for the rule
configId Number
Unique identifier of the security configuration
ruleAction String
Action to be taken when the rule is triggered
ruleId Number
Unique identifier of the rule
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.