getAppSecAdvancedSettingsPrefetch

Use the akamai.AppSecAdvancedSettingsPrefetch data source to retrieve information the prefetch request settings for a security configuration. The information available is described here.

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 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/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
		}
		prefetch, err := akamai.LookupAppSecAdvancedSettingsPrefetch(ctx, &akamai.LookupAppSecAdvancedSettingsPrefetchArgs{
			ConfigId: configuration.ConfigId,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("advancedSettingsPrefetchOutput", prefetch.OutputText)
		ctx.Export("advancedSettingsPrefetchJson", prefetch.Json)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name=var["security_configuration"])
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: _var.security_configuration,
});
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);

Using getAppSecAdvancedSettingsPrefetch

function getAppSecAdvancedSettingsPrefetch(args: GetAppSecAdvancedSettingsPrefetchArgs, opts?: InvokeOptions): Promise<GetAppSecAdvancedSettingsPrefetchResult>
def get_app_sec_advanced_settings_prefetch(config_id: Optional[int] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetAppSecAdvancedSettingsPrefetchResult
func LookupAppSecAdvancedSettingsPrefetch(ctx *Context, args *LookupAppSecAdvancedSettingsPrefetchArgs, opts ...InvokeOption) (*LookupAppSecAdvancedSettingsPrefetchResult, error)

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

public static class GetAppSecAdvancedSettingsPrefetch {
    public static Task<GetAppSecAdvancedSettingsPrefetchResult> InvokeAsync(GetAppSecAdvancedSettingsPrefetchArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ConfigId int
The configuration ID.
ConfigId int
The configuration ID.
configId number
The configuration ID.
config_id int
The configuration ID.

getAppSecAdvancedSettingsPrefetch Result

The following output properties are available:

ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
Json string
A JSON-formatted list of information about the prefetch request settings.
OutputText string
A tabular display showing the prefetch request settings.
ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
Json string
A JSON-formatted list of information about the prefetch request settings.
OutputText string
A tabular display showing the prefetch request settings.
configId number
id string
The provider-assigned unique ID for this managed resource.
json string
A JSON-formatted list of information about the prefetch request settings.
outputText string
A tabular display showing the prefetch request settings.
config_id int
id str
The provider-assigned unique ID for this managed resource.
json str
A JSON-formatted list of information about the prefetch request settings.
output_text str
A tabular display showing the prefetch request settings.

Package Details

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