AppSecReputationProfileAnalysis

The resource_akamai_appsec_reputation_profile_analysis resource allows you to toggle the reputation analysis settings for a given security policy. The forward_to_http_header parameter indicates whether to add client reputation details to requests forwarded to origin in an HTTP header. The forward_shared_ip_to_http_header_siem parameter indicates whether to add value indicating that shared IPs are included in HTTP header and SIEM integration.

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,
        }));
        // USE CASE: user wants to set reputation analysis settings
        var reputationAnalysis = new Akamai.AppSecReputationProfileAnalysis("reputationAnalysis", new Akamai.AppSecReputationProfileAnalysisArgs
        {
            ConfigId = configuration.Apply(configuration => configuration.ConfigId),
            SecurityPolicyId = @var.Security_policy_id,
            ForwardToHttpHeader = true,
            ForwardSharedIpToHttpHeaderSiem = true,
        });
    }

}
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
		}
		_, err = akamai.NewAppSecReputationProfileAnalysis(ctx, "reputationAnalysis", &akamai.AppSecReputationProfileAnalysisArgs{
			ConfigId:                        pulumi.Int(configuration.ConfigId),
			SecurityPolicyId:                pulumi.Any(_var.Security_policy_id),
			ForwardToHttpHeader:             pulumi.Bool(true),
			ForwardSharedIpToHttpHeaderSiem: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name=var["security_configuration"])
# USE CASE: user wants to set reputation analysis settings
reputation_analysis = akamai.AppSecReputationProfileAnalysis("reputationAnalysis",
    config_id=configuration.config_id,
    security_policy_id=var["security_policy_id"],
    forward_to_http_header=True,
    forward_shared_ip_to_http_header_siem=True)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: _var.security_configuration,
});
// USE CASE: user wants to set reputation analysis settings
const reputationAnalysis = new akamai.AppSecReputationProfileAnalysis("reputationAnalysis", {
    configId: configuration.then(configuration => configuration.configId),
    securityPolicyId: _var.security_policy_id,
    forwardToHttpHeader: true,
    forwardSharedIpToHttpHeaderSiem: true,
});

Create a AppSecReputationProfileAnalysis Resource

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

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

ConfigId int
The ID of the security configuration to use.
ForwardSharedIpToHttpHeaderSiem bool
Whether to add value indicating that shared IPs are included in HTTP header and SIEM integration.
ForwardToHttpHeader bool
Whether to add client reputation details to requests forwarded to origin in an HTTP header.
SecurityPolicyId string
The ID of the security_policy_id to which the settings should be applied.
ConfigId int
The ID of the security configuration to use.
ForwardSharedIpToHttpHeaderSiem bool
Whether to add value indicating that shared IPs are included in HTTP header and SIEM integration.
ForwardToHttpHeader bool
Whether to add client reputation details to requests forwarded to origin in an HTTP header.
SecurityPolicyId string
The ID of the security_policy_id to which the settings should be applied.
configId number
The ID of the security configuration to use.
forwardSharedIpToHttpHeaderSiem boolean
Whether to add value indicating that shared IPs are included in HTTP header and SIEM integration.
forwardToHttpHeader boolean
Whether to add client reputation details to requests forwarded to origin in an HTTP header.
securityPolicyId string
The ID of the security_policy_id to which the settings should be applied.
config_id int
The ID of the security configuration to use.
forward_shared_ip_to_http_header_siem bool
Whether to add value indicating that shared IPs are included in HTTP header and SIEM integration.
forward_to_http_header bool
Whether to add client reputation details to requests forwarded to origin in an HTTP header.
security_policy_id str
The ID of the security_policy_id to which the settings should be applied.

Outputs

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

Get an existing AppSecReputationProfileAnalysis 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?: AppSecReputationProfileAnalysisState, opts?: CustomResourceOptions): AppSecReputationProfileAnalysis
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        config_id: Optional[int] = None,
        forward_shared_ip_to_http_header_siem: Optional[bool] = None,
        forward_to_http_header: Optional[bool] = None,
        security_policy_id: Optional[str] = None) -> AppSecReputationProfileAnalysis
func GetAppSecReputationProfileAnalysis(ctx *Context, name string, id IDInput, state *AppSecReputationProfileAnalysisState, opts ...ResourceOption) (*AppSecReputationProfileAnalysis, error)
public static AppSecReputationProfileAnalysis Get(string name, Input<string> id, AppSecReputationProfileAnalysisState? 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.
ForwardSharedIpToHttpHeaderSiem bool
Whether to add value indicating that shared IPs are included in HTTP header and SIEM integration.
ForwardToHttpHeader bool
Whether to add client reputation details to requests forwarded to origin in an HTTP header.
SecurityPolicyId string
The ID of the security_policy_id to which the settings should be applied.
ConfigId int
The ID of the security configuration to use.
ForwardSharedIpToHttpHeaderSiem bool
Whether to add value indicating that shared IPs are included in HTTP header and SIEM integration.
ForwardToHttpHeader bool
Whether to add client reputation details to requests forwarded to origin in an HTTP header.
SecurityPolicyId string
The ID of the security_policy_id to which the settings should be applied.
configId number
The ID of the security configuration to use.
forwardSharedIpToHttpHeaderSiem boolean
Whether to add value indicating that shared IPs are included in HTTP header and SIEM integration.
forwardToHttpHeader boolean
Whether to add client reputation details to requests forwarded to origin in an HTTP header.
securityPolicyId string
The ID of the security_policy_id to which the settings should be applied.
config_id int
The ID of the security configuration to use.
forward_shared_ip_to_http_header_siem bool
Whether to add value indicating that shared IPs are included in HTTP header and SIEM integration.
forward_to_http_header bool
Whether to add client reputation details to requests forwarded to origin in an HTTP header.
security_policy_id str
The ID of the security_policy_id to which the settings should be applied.

Package Details

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