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

akamai.AppSecCustomRule

Explore with Pulumi AI

Create AppSecCustomRule Resource

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

Constructor syntax

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

@overload
def AppSecCustomRule(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     config_id: Optional[int] = None,
                     custom_rule: Optional[str] = None)
func NewAppSecCustomRule(ctx *Context, name string, args AppSecCustomRuleArgs, opts ...ResourceOption) (*AppSecCustomRule, error)
public AppSecCustomRule(string name, AppSecCustomRuleArgs args, CustomResourceOptions? opts = null)
public AppSecCustomRule(String name, AppSecCustomRuleArgs args)
public AppSecCustomRule(String name, AppSecCustomRuleArgs args, CustomResourceOptions options)
type: akamai:AppSecCustomRule
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. AppSecCustomRuleArgs
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. AppSecCustomRuleArgs
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. AppSecCustomRuleArgs
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. AppSecCustomRuleArgs
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. AppSecCustomRuleArgs
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 appSecCustomRuleResource = new Akamai.AppSecCustomRule("appSecCustomRuleResource", new()
{
    ConfigId = 0,
    CustomRule = "string",
});
Copy
example, err := akamai.NewAppSecCustomRule(ctx, "appSecCustomRuleResource", &akamai.AppSecCustomRuleArgs{
	ConfigId:   pulumi.Int(0),
	CustomRule: pulumi.String("string"),
})
Copy
var appSecCustomRuleResource = new AppSecCustomRule("appSecCustomRuleResource", AppSecCustomRuleArgs.builder()
    .configId(0)
    .customRule("string")
    .build());
Copy
app_sec_custom_rule_resource = akamai.AppSecCustomRule("appSecCustomRuleResource",
    config_id=0,
    custom_rule="string")
Copy
const appSecCustomRuleResource = new akamai.AppSecCustomRule("appSecCustomRuleResource", {
    configId: 0,
    customRule: "string",
});
Copy
type: akamai:AppSecCustomRule
properties:
    configId: 0
    customRule: string
Copy

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

ConfigId This property is required. int
Unique identifier of the security configuration
CustomRule This property is required. string
JSON-formatted definition of the custom rule
ConfigId This property is required. int
Unique identifier of the security configuration
CustomRule This property is required. string
JSON-formatted definition of the custom rule
configId This property is required. Integer
Unique identifier of the security configuration
customRule This property is required. String
JSON-formatted definition of the custom rule
configId This property is required. number
Unique identifier of the security configuration
customRule This property is required. string
JSON-formatted definition of the custom rule
config_id This property is required. int
Unique identifier of the security configuration
custom_rule This property is required. str
JSON-formatted definition of the custom rule
configId This property is required. Number
Unique identifier of the security configuration
customRule This property is required. String
JSON-formatted definition of the custom rule

Outputs

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

CustomRuleId int
Id string
The provider-assigned unique ID for this managed resource.
CustomRuleId int
Id string
The provider-assigned unique ID for this managed resource.
customRuleId Integer
id String
The provider-assigned unique ID for this managed resource.
customRuleId number
id string
The provider-assigned unique ID for this managed resource.
custom_rule_id int
id str
The provider-assigned unique ID for this managed resource.
customRuleId Number
id String
The provider-assigned unique ID for this managed resource.

Look up Existing AppSecCustomRule Resource

Get an existing AppSecCustomRule 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?: AppSecCustomRuleState, opts?: CustomResourceOptions): AppSecCustomRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        config_id: Optional[int] = None,
        custom_rule: Optional[str] = None,
        custom_rule_id: Optional[int] = None) -> AppSecCustomRule
func GetAppSecCustomRule(ctx *Context, name string, id IDInput, state *AppSecCustomRuleState, opts ...ResourceOption) (*AppSecCustomRule, error)
public static AppSecCustomRule Get(string name, Input<string> id, AppSecCustomRuleState? state, CustomResourceOptions? opts = null)
public static AppSecCustomRule get(String name, Output<String> id, AppSecCustomRuleState state, CustomResourceOptions options)
resources:  _:    type: akamai:AppSecCustomRule    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:
ConfigId int
Unique identifier of the security configuration
CustomRule string
JSON-formatted definition of the custom rule
CustomRuleId int
ConfigId int
Unique identifier of the security configuration
CustomRule string
JSON-formatted definition of the custom rule
CustomRuleId int
configId Integer
Unique identifier of the security configuration
customRule String
JSON-formatted definition of the custom rule
customRuleId Integer
configId number
Unique identifier of the security configuration
customRule string
JSON-formatted definition of the custom rule
customRuleId number
config_id int
Unique identifier of the security configuration
custom_rule str
JSON-formatted definition of the custom rule
custom_rule_id int
configId Number
Unique identifier of the security configuration
customRule String
JSON-formatted definition of the custom rule
customRuleId Number

Package Details

Repository
Akamai pulumi/pulumi-akamai
License
Apache-2.0
Notes
This Pulumi package is based on the akamai Terraform Provider.