AppSecEval

Use the akamai.AppSecEval resource to perform evaluation mode operations such as Start, Stop, Restart, Update, or Complete.

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 evalOperation = new Akamai.AppSecEval("evalOperation", new Akamai.AppSecEvalArgs
        {
            ConfigId = configuration.Apply(configuration => configuration.ConfigId),
            SecurityPolicyId = @var.Security_policy_id,
            EvalOperation = @var.Eval_operation,
        });
        this.EvalModeEvaluatingRuleset = evalOperation.EvaluatingRuleset;
        this.EvalModeExpirationDate = evalOperation.ExpirationDate;
        this.EvalModeCurrentRuleset = evalOperation.CurrentRuleset;
        this.EvalModeStatus = evalOperation.EvalStatus;
    }

    [Output("evalModeEvaluatingRuleset")]
    public Output<string> EvalModeEvaluatingRuleset { get; set; }
    [Output("evalModeExpirationDate")]
    public Output<string> EvalModeExpirationDate { get; set; }
    [Output("evalModeCurrentRuleset")]
    public Output<string> EvalModeCurrentRuleset { get; set; }
    [Output("evalModeStatus")]
    public Output<string> EvalModeStatus { 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
		}
		evalOperation, err := akamai.NewAppSecEval(ctx, "evalOperation", &akamai.AppSecEvalArgs{
			ConfigId:         pulumi.Int(configuration.ConfigId),
			SecurityPolicyId: pulumi.Any(_var.Security_policy_id),
			EvalOperation:    pulumi.Any(_var.Eval_operation),
		})
		if err != nil {
			return err
		}
		ctx.Export("evalModeEvaluatingRuleset", evalOperation.EvaluatingRuleset)
		ctx.Export("evalModeExpirationDate", evalOperation.ExpirationDate)
		ctx.Export("evalModeCurrentRuleset", evalOperation.CurrentRuleset)
		ctx.Export("evalModeStatus", evalOperation.EvalStatus)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name=var["security_configuration"])
eval_operation = akamai.AppSecEval("evalOperation",
    config_id=configuration.config_id,
    security_policy_id=var["security_policy_id"],
    eval_operation=var["eval_operation"])
pulumi.export("evalModeEvaluatingRuleset", eval_operation.evaluating_ruleset)
pulumi.export("evalModeExpirationDate", eval_operation.expiration_date)
pulumi.export("evalModeCurrentRuleset", eval_operation.current_ruleset)
pulumi.export("evalModeStatus", eval_operation.eval_status)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: _var.security_configuration,
});
const evalOperation = new akamai.AppSecEval("evalOperation", {
    configId: configuration.then(configuration => configuration.configId),
    securityPolicyId: _var.security_policy_id,
    evalOperation: _var.eval_operation,
});
export const evalModeEvaluatingRuleset = evalOperation.evaluatingRuleset;
export const evalModeExpirationDate = evalOperation.expirationDate;
export const evalModeCurrentRuleset = evalOperation.currentRuleset;
export const evalModeStatus = evalOperation.evalStatus;

Create a AppSecEval Resource

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

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

ConfigId int
The ID of the security configuration to use.
EvalOperation string
The operation to perform: START, STOP, RESTART, UPDATE, or COMPLETE.
SecurityPolicyId string
The ID of the security policy to use.
ConfigId int
The ID of the security configuration to use.
EvalOperation string
The operation to perform: START, STOP, RESTART, UPDATE, or COMPLETE.
SecurityPolicyId string
The ID of the security policy to use.
configId number
The ID of the security configuration to use.
evalOperation string
The operation to perform: START, STOP, RESTART, UPDATE, or COMPLETE.
securityPolicyId string
The ID of the security policy to use.
config_id int
The ID of the security configuration to use.
eval_operation str
The operation to perform: START, STOP, RESTART, UPDATE, or COMPLETE.
security_policy_id str
The ID of the security policy to use.

Outputs

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

CurrentRuleset string
The set of rules currently in effect.
EvalStatus string
Either enabled if an evaluation is currently in progress (that is, if the eval_operation parameter was START, RESTART, or COMPLETE) or disabled otherwise (that is, if the eval_operation parameter was STOP or UPDATE).
EvaluatingRuleset string
The set of rules being evaluated.
ExpirationDate string
The date on which the evaluation period ends.
Id string
The provider-assigned unique ID for this managed resource.
CurrentRuleset string
The set of rules currently in effect.
EvalStatus string
Either enabled if an evaluation is currently in progress (that is, if the eval_operation parameter was START, RESTART, or COMPLETE) or disabled otherwise (that is, if the eval_operation parameter was STOP or UPDATE).
EvaluatingRuleset string
The set of rules being evaluated.
ExpirationDate string
The date on which the evaluation period ends.
Id string
The provider-assigned unique ID for this managed resource.
currentRuleset string
The set of rules currently in effect.
evalStatus string
Either enabled if an evaluation is currently in progress (that is, if the eval_operation parameter was START, RESTART, or COMPLETE) or disabled otherwise (that is, if the eval_operation parameter was STOP or UPDATE).
evaluatingRuleset string
The set of rules being evaluated.
expirationDate string
The date on which the evaluation period ends.
id string
The provider-assigned unique ID for this managed resource.
current_ruleset str
The set of rules currently in effect.
eval_status str
Either enabled if an evaluation is currently in progress (that is, if the eval_operation parameter was START, RESTART, or COMPLETE) or disabled otherwise (that is, if the eval_operation parameter was STOP or UPDATE).
evaluating_ruleset str
The set of rules being evaluated.
expiration_date str
The date on which the evaluation period ends.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing AppSecEval Resource

Get an existing AppSecEval 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?: AppSecEvalState, opts?: CustomResourceOptions): AppSecEval
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        config_id: Optional[int] = None,
        current_ruleset: Optional[str] = None,
        eval_operation: Optional[str] = None,
        eval_status: Optional[str] = None,
        evaluating_ruleset: Optional[str] = None,
        expiration_date: Optional[str] = None,
        security_policy_id: Optional[str] = None) -> AppSecEval
func GetAppSecEval(ctx *Context, name string, id IDInput, state *AppSecEvalState, opts ...ResourceOption) (*AppSecEval, error)
public static AppSecEval Get(string name, Input<string> id, AppSecEvalState? 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:

ConfigId int
The ID of the security configuration to use.
CurrentRuleset string
The set of rules currently in effect.
EvalOperation string
The operation to perform: START, STOP, RESTART, UPDATE, or COMPLETE.
EvalStatus string
Either enabled if an evaluation is currently in progress (that is, if the eval_operation parameter was START, RESTART, or COMPLETE) or disabled otherwise (that is, if the eval_operation parameter was STOP or UPDATE).
EvaluatingRuleset string
The set of rules being evaluated.
ExpirationDate string
The date on which the evaluation period ends.
SecurityPolicyId string
The ID of the security policy to use.
ConfigId int
The ID of the security configuration to use.
CurrentRuleset string
The set of rules currently in effect.
EvalOperation string
The operation to perform: START, STOP, RESTART, UPDATE, or COMPLETE.
EvalStatus string
Either enabled if an evaluation is currently in progress (that is, if the eval_operation parameter was START, RESTART, or COMPLETE) or disabled otherwise (that is, if the eval_operation parameter was STOP or UPDATE).
EvaluatingRuleset string
The set of rules being evaluated.
ExpirationDate string
The date on which the evaluation period ends.
SecurityPolicyId string
The ID of the security policy to use.
configId number
The ID of the security configuration to use.
currentRuleset string
The set of rules currently in effect.
evalOperation string
The operation to perform: START, STOP, RESTART, UPDATE, or COMPLETE.
evalStatus string
Either enabled if an evaluation is currently in progress (that is, if the eval_operation parameter was START, RESTART, or COMPLETE) or disabled otherwise (that is, if the eval_operation parameter was STOP or UPDATE).
evaluatingRuleset string
The set of rules being evaluated.
expirationDate string
The date on which the evaluation period ends.
securityPolicyId string
The ID of the security policy to use.
config_id int
The ID of the security configuration to use.
current_ruleset str
The set of rules currently in effect.
eval_operation str
The operation to perform: START, STOP, RESTART, UPDATE, or COMPLETE.
eval_status str
Either enabled if an evaluation is currently in progress (that is, if the eval_operation parameter was START, RESTART, or COMPLETE) or disabled otherwise (that is, if the eval_operation parameter was STOP or UPDATE).
evaluating_ruleset str
The set of rules being evaluated.
expiration_date str
The date on which the evaluation period ends.
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.