AppSecReputationProfileAction

Use the akamai.AppSecReputationProfileAction resource to update what action should be taken when a reputation profile’s rule is triggered.

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 appsecReputationProfileAction = new Akamai.AppSecReputationProfileAction("appsecReputationProfileAction", new Akamai.AppSecReputationProfileActionArgs
        {
            ConfigId = configuration.Apply(configuration => configuration.ConfigId),
            SecurityPolicyId = @var.Security_policy_id,
            ReputationProfileId = akamai_appsec_reputation_profile.Reputation_profile.Id,
            Action = "alert",
        });
        this.ReputationProfileId = akamai_appsec_reputation_profile.Reputation_profile.Reputation_profile_id;
        this.ReputationProfileAction = appsecReputationProfileAction.Action;
    }

    [Output("reputationProfileId")]
    public Output<string> ReputationProfileId { get; set; }
    [Output("reputationProfileAction")]
    public Output<string> ReputationProfileAction { get; set; }
}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := _var.Security_configuration
		configuration, err := akamai.LookupAppSecConfiguration(ctx, &akamai.LookupAppSecConfigurationArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		appsecReputationProfileAction, err := akamai.NewAppSecReputationProfileAction(ctx, "appsecReputationProfileAction", &akamai.AppSecReputationProfileActionArgs{
			ConfigId:            pulumi.Int(configuration.ConfigId),
			SecurityPolicyId:    pulumi.Any(_var.Security_policy_id),
			ReputationProfileId: pulumi.Any(akamai_appsec_reputation_profile.Reputation_profile.Id),
			Action:              pulumi.String("alert"),
		})
		if err != nil {
			return err
		}
		ctx.Export("reputationProfileId", akamai_appsec_reputation_profile.Reputation_profile.Reputation_profile_id)
		ctx.Export("reputationProfileAction", appsecReputationProfileAction.Action)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name=var["security_configuration"])
appsec_reputation_profile_action = akamai.AppSecReputationProfileAction("appsecReputationProfileAction",
    config_id=configuration.config_id,
    security_policy_id=var["security_policy_id"],
    reputation_profile_id=akamai_appsec_reputation_profile["reputation_profile"]["id"],
    action="alert")
pulumi.export("reputationProfileId", akamai_appsec_reputation_profile["reputation_profile"]["reputation_profile_id"])
pulumi.export("reputationProfileAction", appsec_reputation_profile_action.action)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: _var.security_configuration,
});
const appsecReputationProfileAction = new akamai.AppSecReputationProfileAction("appsecReputationProfileAction", {
    configId: configuration.then(configuration => configuration.configId),
    securityPolicyId: _var.security_policy_id,
    reputationProfileId: akamai_appsec_reputation_profile.reputation_profile.id,
    action: "alert",
});
export const reputationProfileId = akamai_appsec_reputation_profile.reputation_profile.reputation_profile_id;
export const reputationProfileAction = appsecReputationProfileAction.action;

Create a AppSecReputationProfileAction Resource

new AppSecReputationProfileAction(name: string, args: AppSecReputationProfileActionArgs, opts?: CustomResourceOptions);
@overload
def AppSecReputationProfileAction(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  action: Optional[str] = None,
                                  config_id: Optional[int] = None,
                                  reputation_profile_id: Optional[int] = None,
                                  security_policy_id: Optional[str] = None)
@overload
def AppSecReputationProfileAction(resource_name: str,
                                  args: AppSecReputationProfileActionArgs,
                                  opts: Optional[ResourceOptions] = None)
func NewAppSecReputationProfileAction(ctx *Context, name string, args AppSecReputationProfileActionArgs, opts ...ResourceOption) (*AppSecReputationProfileAction, error)
public AppSecReputationProfileAction(string name, AppSecReputationProfileActionArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args AppSecReputationProfileActionArgs
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 AppSecReputationProfileActionArgs
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 AppSecReputationProfileActionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AppSecReputationProfileActionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

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

Action string
The action to take when the specified reputation profile’s rule is triggered: alert to record the trigger event, deny to block the request, deny_custom_{custom_deny_id} to execute a custom deny action, or none to take no action.
ConfigId int
The ID of the security configuration to use.
ReputationProfileId int
The ID of the reputation profile to use.
SecurityPolicyId string
The ID of the security policy to use.
Action string
The action to take when the specified reputation profile’s rule is triggered: alert to record the trigger event, deny to block the request, deny_custom_{custom_deny_id} to execute a custom deny action, or none to take no action.
ConfigId int
The ID of the security configuration to use.
ReputationProfileId int
The ID of the reputation profile to use.
SecurityPolicyId string
The ID of the security policy to use.
action string
The action to take when the specified reputation profile’s rule is triggered: alert to record the trigger event, deny to block the request, deny_custom_{custom_deny_id} to execute a custom deny action, or none to take no action.
configId number
The ID of the security configuration to use.
reputationProfileId number
The ID of the reputation profile to use.
securityPolicyId string
The ID of the security policy to use.
action str
The action to take when the specified reputation profile’s rule is triggered: alert to record the trigger event, deny to block the request, deny_custom_{custom_deny_id} to execute a custom deny action, or none to take no action.
config_id int
The ID of the security configuration to use.
reputation_profile_id int
The ID of the reputation profile to use.
security_policy_id str
The ID of the security policy to use.

Outputs

All input properties are implicitly available as output properties. Additionally, the AppSecReputationProfileAction 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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing AppSecReputationProfileAction Resource

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

The following state arguments are supported:

Action string
The action to take when the specified reputation profile’s rule is triggered: alert to record the trigger event, deny to block the request, deny_custom_{custom_deny_id} to execute a custom deny action, or none to take no action.
ConfigId int
The ID of the security configuration to use.
ReputationProfileId int
The ID of the reputation profile to use.
SecurityPolicyId string
The ID of the security policy to use.
Action string
The action to take when the specified reputation profile’s rule is triggered: alert to record the trigger event, deny to block the request, deny_custom_{custom_deny_id} to execute a custom deny action, or none to take no action.
ConfigId int
The ID of the security configuration to use.
ReputationProfileId int
The ID of the reputation profile to use.
SecurityPolicyId string
The ID of the security policy to use.
action string
The action to take when the specified reputation profile’s rule is triggered: alert to record the trigger event, deny to block the request, deny_custom_{custom_deny_id} to execute a custom deny action, or none to take no action.
configId number
The ID of the security configuration to use.
reputationProfileId number
The ID of the reputation profile to use.
securityPolicyId string
The ID of the security policy to use.
action str
The action to take when the specified reputation profile’s rule is triggered: alert to record the trigger event, deny to block the request, deny_custom_{custom_deny_id} to execute a custom deny action, or none to take no action.
config_id int
The ID of the security configuration to use.
reputation_profile_id int
The ID of the reputation profile to use.
security_policy_id str
The ID of the security policy to use.

Package Details

Repository
https://github.com/pulumi/pulumi-akamai
License
Apache-2.0
Notes
This Pulumi package is based on the akamai Terraform Provider.