Akamai

v3.0.0 published on Monday, Jul 25, 2022 by Pulumi

getAppSecAdvancedSettingsPrefetch

Scopes: Security configuration

Returns information about your prefetch request settings. By default, Web Application Firewall inspects only external requests — requests originating outside of your firewall or Akamai’s edge servers. When prefetch is enabled, requests between your origin servers and Akamai’s edge servers can also be inspected by the firewall. The returned information is described in the PrefetchRequest members section of the Application Security API.

Related API Endpoint: /appsec/v1/configs/{configId}/versions/{versionNumber}/advanced-settings/prefetch

Output Options

The following options can be used to determine the information returned, and how that returned information is formatted:

  • json. JSON-formatted list of information about the prefetch request settings.
  • output_text. Tabular report showing the prefetch request settings.

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 prefetch = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecAdvancedSettingsPrefetch.InvokeAsync(new Akamai.GetAppSecAdvancedSettingsPrefetchArgs
        {
            ConfigId = configuration.ConfigId,
        })));
        this.AdvancedSettingsPrefetchOutput = prefetch.Apply(prefetch => prefetch.OutputText);
        this.AdvancedSettingsPrefetchJson = prefetch.Apply(prefetch => prefetch.Json);
    }

    [Output("advancedSettingsPrefetchOutput")]
    public Output<string> AdvancedSettingsPrefetchOutput { get; set; }
    [Output("advancedSettingsPrefetchJson")]
    public Output<string> AdvancedSettingsPrefetchJson { get; set; }
}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		configuration, err := akamai.LookupAppSecConfiguration(ctx, &GetAppSecConfigurationArgs{
			Name: pulumi.StringRef("Documentation"),
		}, nil)
		if err != nil {
			return err
		}
		prefetch, err := akamai.LookupAppSecAdvancedSettingsPrefetch(ctx, &GetAppSecAdvancedSettingsPrefetchArgs{
			ConfigId: configuration.ConfigId,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("advancedSettingsPrefetchOutput", prefetch.OutputText)
		ctx.Export("advancedSettingsPrefetchJson", prefetch.Json)
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.akamai.AkamaiFunctions;
import com.pulumi.akamai.inputs.GetAppSecConfigurationArgs;
import com.pulumi.akamai.inputs.GetAppSecAdvancedSettingsPrefetchArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var configuration = AkamaiFunctions.getAppSecConfiguration(GetAppSecConfigurationArgs.builder()
            .name("Documentation")
            .build());

        final var prefetch = AkamaiFunctions.getAppSecAdvancedSettingsPrefetch(GetAppSecAdvancedSettingsPrefetchArgs.builder()
            .configId(configuration.applyValue(getAppSecConfigurationResult -> getAppSecConfigurationResult.configId()))
            .build());

        ctx.export("advancedSettingsPrefetchOutput", prefetch.applyValue(getAppSecAdvancedSettingsPrefetchResult -> getAppSecAdvancedSettingsPrefetchResult.outputText()));
        ctx.export("advancedSettingsPrefetchJson", prefetch.applyValue(getAppSecAdvancedSettingsPrefetchResult -> getAppSecAdvancedSettingsPrefetchResult.json()));
    }
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name="Documentation")
prefetch = akamai.get_app_sec_advanced_settings_prefetch(config_id=configuration.config_id)
pulumi.export("advancedSettingsPrefetchOutput", prefetch.output_text)
pulumi.export("advancedSettingsPrefetchJson", prefetch.json)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: "Documentation",
});
const prefetch = configuration.then(configuration => akamai.getAppSecAdvancedSettingsPrefetch({
    configId: configuration.configId,
}));
export const advancedSettingsPrefetchOutput = prefetch.then(prefetch => prefetch.outputText);
export const advancedSettingsPrefetchJson = prefetch.then(prefetch => prefetch.json);
variables:
  configuration:
    Fn::Invoke:
      Function: akamai:getAppSecConfiguration
      Arguments:
        name: Documentation
  prefetch: # USE CASE: User wants to display returned data in a table.
    Fn::Invoke:
      Function: akamai:getAppSecAdvancedSettingsPrefetch
      Arguments:
        configId: ${configuration.configId}
outputs:
  advancedSettingsPrefetchOutput: ${prefetch.outputText}
  advancedSettingsPrefetchJson: ${prefetch.json}

Using getAppSecAdvancedSettingsPrefetch

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getAppSecAdvancedSettingsPrefetch(args: GetAppSecAdvancedSettingsPrefetchArgs, opts?: InvokeOptions): Promise<GetAppSecAdvancedSettingsPrefetchResult>
function getAppSecAdvancedSettingsPrefetchOutput(args: GetAppSecAdvancedSettingsPrefetchOutputArgs, opts?: InvokeOptions): Output<GetAppSecAdvancedSettingsPrefetchResult>
def get_app_sec_advanced_settings_prefetch(config_id: Optional[int] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetAppSecAdvancedSettingsPrefetchResult
def get_app_sec_advanced_settings_prefetch_output(config_id: Optional[pulumi.Input[int]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetAppSecAdvancedSettingsPrefetchResult]
func LookupAppSecAdvancedSettingsPrefetch(ctx *Context, args *LookupAppSecAdvancedSettingsPrefetchArgs, opts ...InvokeOption) (*LookupAppSecAdvancedSettingsPrefetchResult, error)
func LookupAppSecAdvancedSettingsPrefetchOutput(ctx *Context, args *LookupAppSecAdvancedSettingsPrefetchOutputArgs, opts ...InvokeOption) LookupAppSecAdvancedSettingsPrefetchResultOutput

> Note: This function is named LookupAppSecAdvancedSettingsPrefetch in the Go SDK.

public static class GetAppSecAdvancedSettingsPrefetch 
{
    public static Task<GetAppSecAdvancedSettingsPrefetchResult> InvokeAsync(GetAppSecAdvancedSettingsPrefetchArgs args, InvokeOptions? opts = null)
    public static Output<GetAppSecAdvancedSettingsPrefetchResult> Invoke(GetAppSecAdvancedSettingsPrefetchInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAppSecAdvancedSettingsPrefetchResult> getAppSecAdvancedSettingsPrefetch(GetAppSecAdvancedSettingsPrefetchArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: akamai:index/getAppSecAdvancedSettingsPrefetch:getAppSecAdvancedSettingsPrefetch
  Arguments:
    # Arguments dictionary

The following arguments are supported:

ConfigId int

. Unique identifier of the security configuration associated with the prefetch settings.

ConfigId int

. Unique identifier of the security configuration associated with the prefetch settings.

configId Integer

. Unique identifier of the security configuration associated with the prefetch settings.

configId number

. Unique identifier of the security configuration associated with the prefetch settings.

config_id int

. Unique identifier of the security configuration associated with the prefetch settings.

configId Number

. Unique identifier of the security configuration associated with the prefetch settings.

getAppSecAdvancedSettingsPrefetch Result

The following output properties are available:

ConfigId int
Id string

The provider-assigned unique ID for this managed resource.

Json string
OutputText string
ConfigId int
Id string

The provider-assigned unique ID for this managed resource.

Json string
OutputText string
configId Integer
id String

The provider-assigned unique ID for this managed resource.

json String
outputText String
configId number
id string

The provider-assigned unique ID for this managed resource.

json string
outputText string
config_id int
id str

The provider-assigned unique ID for this managed resource.

json str
output_text str
configId Number
id String

The provider-assigned unique ID for this managed resource.

json String
outputText String

Package Details

Repository
https://github.com/pulumi/pulumi-akamai
License
Apache-2.0
Notes

This Pulumi package is based on the akamai Terraform Provider.