AppSecAdvancedSettingsLogging

The resource_akamai_appsec_advanced_settings_logging resource allows you to enable, disable, or update HTTP header logging settings for a configuration. This operation applies at the configuration level, and therefore applies to all policies within a configuration. You may override these settings for a particular policy by specifying the policy using the security_policy_id parameter.

Example Usage

using System.IO;
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 logging = new Akamai.AppSecAdvancedSettingsLogging("logging", new Akamai.AppSecAdvancedSettingsLoggingArgs
        {
            ConfigId = configuration.Apply(configuration => configuration.ConfigId),
            Logging = File.ReadAllText($"{path.Module}/logging.json"),
        });
        // USE CASE: user wants to override the logging settings for a security policy
        var policyLogging = new Akamai.AppSecAdvancedSettingsLogging("policyLogging", new Akamai.AppSecAdvancedSettingsLoggingArgs
        {
            ConfigId = configuration.Apply(configuration => configuration.ConfigId),
            SecurityPolicyId = @var.Security_policy_id,
            Logging = File.ReadAllText($"{path.Module}/logging.json"),
        });
    }

}

Coming soon!

import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name=var["security_configuration"])
logging = akamai.AppSecAdvancedSettingsLogging("logging",
    config_id=configuration.config_id,
    logging=(lambda path: open(path).read())(f"{path['module']}/logging.json"))
# USE CASE: user wants to override the logging settings for a security policy
policy_logging = akamai.AppSecAdvancedSettingsLogging("policyLogging",
    config_id=configuration.config_id,
    security_policy_id=var["security_policy_id"],
    logging=(lambda path: open(path).read())(f"{path['module']}/logging.json"))
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";
import * from "fs";

const configuration = akamai.getAppSecConfiguration({
    name: _var.security_configuration,
});
const logging = new akamai.AppSecAdvancedSettingsLogging("logging", {
    configId: configuration.then(configuration => configuration.configId),
    logging: fs.readFileSync(`${path.module}/logging.json`),
});
// USE CASE: user wants to override the logging settings for a security policy
const policyLogging = new akamai.AppSecAdvancedSettingsLogging("policyLogging", {
    configId: configuration.then(configuration => configuration.configId),
    securityPolicyId: _var.security_policy_id,
    logging: fs.readFileSync(`${path.module}/logging.json`),
});

Create a AppSecAdvancedSettingsLogging Resource

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

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

ConfigId int
The ID of the security configuration to use.
Logging string
The logging settings to apply (format).
SecurityPolicyId string
The ID of a specific security policy to which the logging settings should be applied. If not supplied, the indicated settings will be applied to all policies within the configuration.
ConfigId int
The ID of the security configuration to use.
Logging string
The logging settings to apply (format).
SecurityPolicyId string
The ID of a specific security policy to which the logging settings should be applied. If not supplied, the indicated settings will be applied to all policies within the configuration.
configId number
The ID of the security configuration to use.
logging string
The logging settings to apply (format).
securityPolicyId string
The ID of a specific security policy to which the logging settings should be applied. If not supplied, the indicated settings will be applied to all policies within the configuration.
config_id int
The ID of the security configuration to use.
logging str
The logging settings to apply (format).
security_policy_id str
The ID of a specific security policy to which the logging settings should be applied. If not supplied, the indicated settings will be applied to all policies within the configuration.

Outputs

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

Get an existing AppSecAdvancedSettingsLogging 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?: AppSecAdvancedSettingsLoggingState, opts?: CustomResourceOptions): AppSecAdvancedSettingsLogging
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        config_id: Optional[int] = None,
        logging: Optional[str] = None,
        security_policy_id: Optional[str] = None) -> AppSecAdvancedSettingsLogging
func GetAppSecAdvancedSettingsLogging(ctx *Context, name string, id IDInput, state *AppSecAdvancedSettingsLoggingState, opts ...ResourceOption) (*AppSecAdvancedSettingsLogging, error)
public static AppSecAdvancedSettingsLogging Get(string name, Input<string> id, AppSecAdvancedSettingsLoggingState? 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.
Logging string
The logging settings to apply (format).
SecurityPolicyId string
The ID of a specific security policy to which the logging settings should be applied. If not supplied, the indicated settings will be applied to all policies within the configuration.
ConfigId int
The ID of the security configuration to use.
Logging string
The logging settings to apply (format).
SecurityPolicyId string
The ID of a specific security policy to which the logging settings should be applied. If not supplied, the indicated settings will be applied to all policies within the configuration.
configId number
The ID of the security configuration to use.
logging string
The logging settings to apply (format).
securityPolicyId string
The ID of a specific security policy to which the logging settings should be applied. If not supplied, the indicated settings will be applied to all policies within the configuration.
config_id int
The ID of the security configuration to use.
logging str
The logging settings to apply (format).
security_policy_id str
The ID of a specific security policy to which the logging settings should be applied. If not supplied, the indicated settings 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.