AppSecReputationProfileAction

Scopes: Reputation profile

Modifies the action taken when a reputation profile is triggered.

Related API Endpoint: /appsec/v1/configs/{configId}/versions/{versionNumber}/security-policies/{policyId}/reputation-profiles/{reputationProfileId}

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var configuration = Output.Create(Akamai.GetAppSecConfiguration.InvokeAsync(new Akamai.GetAppSecConfigurationArgs
        {
            Name = "Documentation",
        }));
        var appsecReputationProfileAction = new Akamai.AppSecReputationProfileAction("appsecReputationProfileAction", new Akamai.AppSecReputationProfileActionArgs
        {
            ConfigId = configuration.Apply(configuration => configuration.ConfigId),
            SecurityPolicyId = "gms1_134637",
            ReputationProfileId = 130713,
            Action = "alert",
        });
        this.ReputationProfileId = appsecReputationProfileAction.ReputationProfileId;
        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 := "Documentation"
		configuration, err := akamai.LookupAppSecConfiguration(ctx, &GetAppSecConfigurationArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		appsecReputationProfileAction, err := akamai.NewAppSecReputationProfileAction(ctx, "appsecReputationProfileAction", &akamai.AppSecReputationProfileActionArgs{
			ConfigId:            pulumi.Int(configuration.ConfigId),
			SecurityPolicyId:    pulumi.String("gms1_134637"),
			ReputationProfileId: pulumi.Int(130713),
			Action:              pulumi.String("alert"),
		})
		if err != nil {
			return err
		}
		ctx.Export("reputationProfileId", appsecReputationProfileAction.ReputationProfileId)
		ctx.Export("reputationProfileAction", appsecReputationProfileAction.Action)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name="Documentation")
appsec_reputation_profile_action = akamai.AppSecReputationProfileAction("appsecReputationProfileAction",
    config_id=configuration.config_id,
    security_policy_id="gms1_134637",
    reputation_profile_id=130713,
    action="alert")
pulumi.export("reputationProfileId", appsec_reputation_profile_action.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: "Documentation",
});
const appsecReputationProfileAction = new akamai.AppSecReputationProfileAction("appsecReputationProfileAction", {
    configId: configuration.then(configuration => configuration.configId),
    securityPolicyId: "gms1_134637",
    reputationProfileId: 130713,
    action: "alert",
});
export const reputationProfileId = appsecReputationProfileAction.reputationProfileId;
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

. Action taken any time the reputation profile is triggered. Allows values are:

  • alert. Record the event.
  • deny. Block the request.
  • deny_custom_{custom_deny_id}. Take the action specified by the custom deny.
  • none. Take no action.
ConfigId int
. Unique identifier of the security configuration associated with the reputation profile action being modified.
ReputationProfileId int
. Unique identifier of the reputation profile whose action is being modified.
SecurityPolicyId string
. Unique identifier of the security policy associated with the reputation profile action being modified.
Action string

. Action taken any time the reputation profile is triggered. Allows values are:

  • alert. Record the event.
  • deny. Block the request.
  • deny_custom_{custom_deny_id}. Take the action specified by the custom deny.
  • none. Take no action.
ConfigId int
. Unique identifier of the security configuration associated with the reputation profile action being modified.
ReputationProfileId int
. Unique identifier of the reputation profile whose action is being modified.
SecurityPolicyId string
. Unique identifier of the security policy associated with the reputation profile action being modified.
action string

. Action taken any time the reputation profile is triggered. Allows values are:

  • alert. Record the event.
  • deny. Block the request.
  • deny_custom_{custom_deny_id}. Take the action specified by the custom deny.
  • none. Take no action.
configId number
. Unique identifier of the security configuration associated with the reputation profile action being modified.
reputationProfileId number
. Unique identifier of the reputation profile whose action is being modified.
securityPolicyId string
. Unique identifier of the security policy associated with the reputation profile action being modified.
action str

. Action taken any time the reputation profile is triggered. Allows values are:

  • alert. Record the event.
  • deny. Block the request.
  • deny_custom_{custom_deny_id}. Take the action specified by the custom deny.
  • none. Take no action.
config_id int
. Unique identifier of the security configuration associated with the reputation profile action being modified.
reputation_profile_id int
. Unique identifier of the reputation profile whose action is being modified.
security_policy_id str
. Unique identifier of the security policy associated with the reputation profile action being modified.

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

. Action taken any time the reputation profile is triggered. Allows values are:

  • alert. Record the event.
  • deny. Block the request.
  • deny_custom_{custom_deny_id}. Take the action specified by the custom deny.
  • none. Take no action.
ConfigId int
. Unique identifier of the security configuration associated with the reputation profile action being modified.
ReputationProfileId int
. Unique identifier of the reputation profile whose action is being modified.
SecurityPolicyId string
. Unique identifier of the security policy associated with the reputation profile action being modified.
Action string

. Action taken any time the reputation profile is triggered. Allows values are:

  • alert. Record the event.
  • deny. Block the request.
  • deny_custom_{custom_deny_id}. Take the action specified by the custom deny.
  • none. Take no action.
ConfigId int
. Unique identifier of the security configuration associated with the reputation profile action being modified.
ReputationProfileId int
. Unique identifier of the reputation profile whose action is being modified.
SecurityPolicyId string
. Unique identifier of the security policy associated with the reputation profile action being modified.
action string

. Action taken any time the reputation profile is triggered. Allows values are:

  • alert. Record the event.
  • deny. Block the request.
  • deny_custom_{custom_deny_id}. Take the action specified by the custom deny.
  • none. Take no action.
configId number
. Unique identifier of the security configuration associated with the reputation profile action being modified.
reputationProfileId number
. Unique identifier of the reputation profile whose action is being modified.
securityPolicyId string
. Unique identifier of the security policy associated with the reputation profile action being modified.
action str

. Action taken any time the reputation profile is triggered. Allows values are:

  • alert. Record the event.
  • deny. Block the request.
  • deny_custom_{custom_deny_id}. Take the action specified by the custom deny.
  • none. Take no action.
config_id int
. Unique identifier of the security configuration associated with the reputation profile action being modified.
reputation_profile_id int
. Unique identifier of the reputation profile whose action is being modified.
security_policy_id str
. Unique identifier of the security policy associated with the reputation profile action being modified.

Package Details

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