Akamai

v3.1.0 published on Tuesday, Oct 4, 2022 by Pulumi

AppSecCustomRule

Scopes: Security configuration

Creates a custom rule associated with a security configuration. Custom rules are rules that you define yourself and are not part of the Kona Rule Set.

Related API Endpoint: [/appsec/v1/configs/{configId}/custom-rules]https://techdocs.akamai.com/application-security/reference/get-configs-custom-rules)

Create a AppSecCustomRule Resource

new AppSecCustomRule(name: string, args: AppSecCustomRuleArgs, opts?: CustomResourceOptions);
@overload
def AppSecCustomRule(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     config_id: Optional[int] = None,
                     custom_rule: Optional[str] = None)
@overload
def AppSecCustomRule(resource_name: str,
                     args: AppSecCustomRuleArgs,
                     opts: Optional[ResourceOptions] = 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.

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

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

The AppSecCustomRule resource accepts the following input properties:

ConfigId int

. Unique identifier of the security configuration associated with the custom rule being modified.

CustomRule string

. Path to a JSON file containing the custom rule definition. To view a sample JSON file, see the Create a custom rule section of the Application Security API documentation.

ConfigId int

. Unique identifier of the security configuration associated with the custom rule being modified.

CustomRule string

. Path to a JSON file containing the custom rule definition. To view a sample JSON file, see the Create a custom rule section of the Application Security API documentation.

configId Integer

. Unique identifier of the security configuration associated with the custom rule being modified.

customRule String

. Path to a JSON file containing the custom rule definition. To view a sample JSON file, see the Create a custom rule section of the Application Security API documentation.

configId number

. Unique identifier of the security configuration associated with the custom rule being modified.

customRule string

. Path to a JSON file containing the custom rule definition. To view a sample JSON file, see the Create a custom rule section of the Application Security API documentation.

config_id int

. Unique identifier of the security configuration associated with the custom rule being modified.

custom_rule str

. Path to a JSON file containing the custom rule definition. To view a sample JSON file, see the Create a custom rule section of the Application Security API documentation.

configId Number

. Unique identifier of the security configuration associated with the custom rule being modified.

customRule String

. Path to a JSON file containing the custom rule definition. To view a sample JSON file, see the Create a custom rule section of the Application Security API documentation.

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 an 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)
Resource lookup is not supported in YAML
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:
ConfigId int

. Unique identifier of the security configuration associated with the custom rule being modified.

CustomRule string

. Path to a JSON file containing the custom rule definition. To view a sample JSON file, see the Create a custom rule section of the Application Security API documentation.

CustomRuleId int
ConfigId int

. Unique identifier of the security configuration associated with the custom rule being modified.

CustomRule string

. Path to a JSON file containing the custom rule definition. To view a sample JSON file, see the Create a custom rule section of the Application Security API documentation.

CustomRuleId int
configId Integer

. Unique identifier of the security configuration associated with the custom rule being modified.

customRule String

. Path to a JSON file containing the custom rule definition. To view a sample JSON file, see the Create a custom rule section of the Application Security API documentation.

customRuleId Integer
configId number

. Unique identifier of the security configuration associated with the custom rule being modified.

customRule string

. Path to a JSON file containing the custom rule definition. To view a sample JSON file, see the Create a custom rule section of the Application Security API documentation.

customRuleId number
config_id int

. Unique identifier of the security configuration associated with the custom rule being modified.

custom_rule str

. Path to a JSON file containing the custom rule definition. To view a sample JSON file, see the Create a custom rule section of the Application Security API documentation.

custom_rule_id int
configId Number

. Unique identifier of the security configuration associated with the custom rule being modified.

customRule String

. Path to a JSON file containing the custom rule definition. To view a sample JSON file, see the Create a custom rule section of the Application Security API documentation.

customRuleId Number

Package Details

Repository
https://github.com/pulumi/pulumi-akamai
License
Apache-2.0
Notes

This Pulumi package is based on the akamai Terraform Provider.