Akamai

v3.0.0 published on Monday, Jul 25, 2022 by Pulumi

AppSecAdvancedSettingsEvasivePathMatch

Scopes: Security configuration; security policy

The resource_akamai_appsec_advanced_settings_evasive_path_match resource allows you to enable, disable, or update the evasive path match setting for a configuration. This setting determines whether fuzzy matching is used to make URL matching more inclusive. This operation applies at the configuration level, and therefore applies to all policies within a configuration. You may override this setting for a particular policy by specifying the policy using the security_policy_id parameter.

Related API Endpoints: /appsec/v1/configs/{configId}/versions/{versionNumber}/security-policies/{policyId}/advanced-settings/evasive-path-match

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var configuration = Output.Create(Akamai.GetAppSecConfiguration.InvokeAsync(new Akamai.GetAppSecConfigurationArgs
        {
            Name = @var.Security_configuration,
        }));
        var configEvasivePathMatch = new Akamai.AppSecAdvancedSettingsEvasivePathMatch("configEvasivePathMatch", new Akamai.AppSecAdvancedSettingsEvasivePathMatchArgs
        {
            ConfigId = configuration.Apply(configuration => configuration.ConfigId),
            EnablePathMatch = true,
        });
        // USE CASE: user wants to override the evasive path match setting for a security policy
        var policyOverride = new Akamai.AppSecAdvancedSettingsEvasivePathMatch("policyOverride", new Akamai.AppSecAdvancedSettingsEvasivePathMatchArgs
        {
            ConfigId = configuration.Apply(configuration => configuration.ConfigId),
            SecurityPolicyId = @var.Security_policy_id,
            EnablePathMatch = true,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-akamai/sdk/v3/go/akamai"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		configuration, err := akamai.LookupAppSecConfiguration(ctx, &GetAppSecConfigurationArgs{
			Name: pulumi.StringRef(_var.Security_configuration),
		}, nil)
		if err != nil {
			return err
		}
		_, err = akamai.NewAppSecAdvancedSettingsEvasivePathMatch(ctx, "configEvasivePathMatch", &akamai.AppSecAdvancedSettingsEvasivePathMatchArgs{
			ConfigId:        pulumi.Int(configuration.ConfigId),
			EnablePathMatch: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = akamai.NewAppSecAdvancedSettingsEvasivePathMatch(ctx, "policyOverride", &akamai.AppSecAdvancedSettingsEvasivePathMatchArgs{
			ConfigId:         pulumi.Int(configuration.ConfigId),
			SecurityPolicyId: pulumi.Any(_var.Security_policy_id),
			EnablePathMatch:  pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.akamai.AkamaiFunctions;
import com.pulumi.akamai.inputs.GetAppSecConfigurationArgs;
import com.pulumi.akamai.AppSecAdvancedSettingsEvasivePathMatch;
import com.pulumi.akamai.AppSecAdvancedSettingsEvasivePathMatchArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var configuration = AkamaiFunctions.getAppSecConfiguration(GetAppSecConfigurationArgs.builder()
            .name(var_.security_configuration())
            .build());

        var configEvasivePathMatch = new AppSecAdvancedSettingsEvasivePathMatch("configEvasivePathMatch", AppSecAdvancedSettingsEvasivePathMatchArgs.builder()        
            .configId(configuration.applyValue(getAppSecConfigurationResult -> getAppSecConfigurationResult.configId()))
            .enablePathMatch(true)
            .build());

        var policyOverride = new AppSecAdvancedSettingsEvasivePathMatch("policyOverride", AppSecAdvancedSettingsEvasivePathMatchArgs.builder()        
            .configId(configuration.applyValue(getAppSecConfigurationResult -> getAppSecConfigurationResult.configId()))
            .securityPolicyId(var_.security_policy_id())
            .enablePathMatch(true)
            .build());

    }
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name=var["security_configuration"])
config_evasive_path_match = akamai.AppSecAdvancedSettingsEvasivePathMatch("configEvasivePathMatch",
    config_id=configuration.config_id,
    enable_path_match=True)
# USE CASE: user wants to override the evasive path match setting for a security policy
policy_override = akamai.AppSecAdvancedSettingsEvasivePathMatch("policyOverride",
    config_id=configuration.config_id,
    security_policy_id=var["security_policy_id"],
    enable_path_match=True)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: _var.security_configuration,
});
const configEvasivePathMatch = new akamai.AppSecAdvancedSettingsEvasivePathMatch("configEvasivePathMatch", {
    configId: configuration.then(configuration => configuration.configId),
    enablePathMatch: true,
});
// USE CASE: user wants to override the evasive path match setting for a security policy
const policyOverride = new akamai.AppSecAdvancedSettingsEvasivePathMatch("policyOverride", {
    configId: configuration.then(configuration => configuration.configId),
    securityPolicyId: _var.security_policy_id,
    enablePathMatch: true,
});
resources:
  configEvasivePathMatch:
    type: akamai:AppSecAdvancedSettingsEvasivePathMatch
    properties:
      configId: ${configuration.configId}
      enablePathMatch: true
  # USE CASE: user wants to override the evasive path match setting for a security policy
  policyOverride:
    type: akamai:AppSecAdvancedSettingsEvasivePathMatch
    properties:
      configId: ${configuration.configId}
      securityPolicyId: ${var.security_policy_id}
      enablePathMatch: true
variables:
  configuration:
    Fn::Invoke:
      Function: akamai:getAppSecConfiguration
      Arguments:
        name: ${var.security_configuration}

Create a AppSecAdvancedSettingsEvasivePathMatch Resource

new AppSecAdvancedSettingsEvasivePathMatch(name: string, args: AppSecAdvancedSettingsEvasivePathMatchArgs, opts?: CustomResourceOptions);
@overload
def AppSecAdvancedSettingsEvasivePathMatch(resource_name: str,
                                           opts: Optional[ResourceOptions] = None,
                                           config_id: Optional[int] = None,
                                           enable_path_match: Optional[bool] = None,
                                           security_policy_id: Optional[str] = None)
@overload
def AppSecAdvancedSettingsEvasivePathMatch(resource_name: str,
                                           args: AppSecAdvancedSettingsEvasivePathMatchArgs,
                                           opts: Optional[ResourceOptions] = None)
func NewAppSecAdvancedSettingsEvasivePathMatch(ctx *Context, name string, args AppSecAdvancedSettingsEvasivePathMatchArgs, opts ...ResourceOption) (*AppSecAdvancedSettingsEvasivePathMatch, error)
public AppSecAdvancedSettingsEvasivePathMatch(string name, AppSecAdvancedSettingsEvasivePathMatchArgs args, CustomResourceOptions? opts = null)
public AppSecAdvancedSettingsEvasivePathMatch(String name, AppSecAdvancedSettingsEvasivePathMatchArgs args)
public AppSecAdvancedSettingsEvasivePathMatch(String name, AppSecAdvancedSettingsEvasivePathMatchArgs args, CustomResourceOptions options)
type: akamai:AppSecAdvancedSettingsEvasivePathMatch
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

ConfigId int

The ID of the security configuration to use.

EnablePathMatch bool

Whether to enable path match.

SecurityPolicyId string

The ID of a specific security policy to which the evasive path match setting should be applied. If not supplied, the indicated setting will be applied to all policies within the configuration.

ConfigId int

The ID of the security configuration to use.

EnablePathMatch bool

Whether to enable path match.

SecurityPolicyId string

The ID of a specific security policy to which the evasive path match setting should be applied. If not supplied, the indicated setting will be applied to all policies within the configuration.

configId Integer

The ID of the security configuration to use.

enablePathMatch Boolean

Whether to enable path match.

securityPolicyId String

The ID of a specific security policy to which the evasive path match setting should be applied. If not supplied, the indicated setting will be applied to all policies within the configuration.

configId number

The ID of the security configuration to use.

enablePathMatch boolean

Whether to enable path match.

securityPolicyId string

The ID of a specific security policy to which the evasive path match setting should be applied. If not supplied, the indicated setting will be applied to all policies within the configuration.

config_id int

The ID of the security configuration to use.

enable_path_match bool

Whether to enable path match.

security_policy_id str

The ID of a specific security policy to which the evasive path match setting should be applied. If not supplied, the indicated setting will be applied to all policies within the configuration.

configId Number

The ID of the security configuration to use.

enablePathMatch Boolean

Whether to enable path match.

securityPolicyId String

The ID of a specific security policy to which the evasive path match setting should be applied. If not supplied, the indicated setting will be applied to all policies within the configuration.

Outputs

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

Get an existing AppSecAdvancedSettingsEvasivePathMatch 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?: AppSecAdvancedSettingsEvasivePathMatchState, opts?: CustomResourceOptions): AppSecAdvancedSettingsEvasivePathMatch
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        config_id: Optional[int] = None,
        enable_path_match: Optional[bool] = None,
        security_policy_id: Optional[str] = None) -> AppSecAdvancedSettingsEvasivePathMatch
func GetAppSecAdvancedSettingsEvasivePathMatch(ctx *Context, name string, id IDInput, state *AppSecAdvancedSettingsEvasivePathMatchState, opts ...ResourceOption) (*AppSecAdvancedSettingsEvasivePathMatch, error)
public static AppSecAdvancedSettingsEvasivePathMatch Get(string name, Input<string> id, AppSecAdvancedSettingsEvasivePathMatchState? state, CustomResourceOptions? opts = null)
public static AppSecAdvancedSettingsEvasivePathMatch get(String name, Output<String> id, AppSecAdvancedSettingsEvasivePathMatchState 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

The ID of the security configuration to use.

EnablePathMatch bool

Whether to enable path match.

SecurityPolicyId string

The ID of a specific security policy to which the evasive path match setting should be applied. If not supplied, the indicated setting will be applied to all policies within the configuration.

ConfigId int

The ID of the security configuration to use.

EnablePathMatch bool

Whether to enable path match.

SecurityPolicyId string

The ID of a specific security policy to which the evasive path match setting should be applied. If not supplied, the indicated setting will be applied to all policies within the configuration.

configId Integer

The ID of the security configuration to use.

enablePathMatch Boolean

Whether to enable path match.

securityPolicyId String

The ID of a specific security policy to which the evasive path match setting should be applied. If not supplied, the indicated setting will be applied to all policies within the configuration.

configId number

The ID of the security configuration to use.

enablePathMatch boolean

Whether to enable path match.

securityPolicyId string

The ID of a specific security policy to which the evasive path match setting should be applied. If not supplied, the indicated setting will be applied to all policies within the configuration.

config_id int

The ID of the security configuration to use.

enable_path_match bool

Whether to enable path match.

security_policy_id str

The ID of a specific security policy to which the evasive path match setting should be applied. If not supplied, the indicated setting will be applied to all policies within the configuration.

configId Number

The ID of the security configuration to use.

enablePathMatch Boolean

Whether to enable path match.

securityPolicyId String

The ID of a specific security policy to which the evasive path match setting should be applied. If not supplied, the indicated setting will be applied to all policies within the configuration.

Package Details

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

This Pulumi package is based on the akamai Terraform Provider.