AppSecByPassNetworkList

Use the akamai.AppSecByPassNetworkList resource to update which network lists to use in the bypass network lists settings. Note: this resource is only applicable to WAP (Web Application Protector) configurations.

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 bypassNetworkLists = new Akamai.AppSecByPassNetworkList("bypassNetworkLists", new Akamai.AppSecByPassNetworkListArgs
        {
            ConfigId = configuration.Apply(configuration => configuration.ConfigId),
            BypassNetworkLists = 
            {
                "id1",
                "id2",
            },
        });
    }

}
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.NewAppSecByPassNetworkList(ctx, "bypassNetworkLists", &akamai.AppSecByPassNetworkListArgs{
			ConfigId: pulumi.Int(configuration.ConfigId),
			BypassNetworkLists: pulumi.StringArray{
				pulumi.String("id1"),
				pulumi.String("id2"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name=var["security_configuration"])
bypass_network_lists = akamai.AppSecByPassNetworkList("bypassNetworkLists",
    config_id=configuration.config_id,
    bypass_network_lists=[
        "id1",
        "id2",
    ])
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: _var.security_configuration,
});
const bypassNetworkLists = new akamai.AppSecByPassNetworkList("bypassNetworkLists", {
    configId: configuration.then(configuration => configuration.configId),
    bypassNetworkLists: [
        "id1",
        "id2",
    ],
});

Create a AppSecByPassNetworkList Resource

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

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

BypassNetworkLists List<string>
A list containing the IDs of the network lists to use.
ConfigId int
The configuration ID to use.
BypassNetworkLists []string
A list containing the IDs of the network lists to use.
ConfigId int
The configuration ID to use.
bypassNetworkLists string[]
A list containing the IDs of the network lists to use.
configId number
The configuration ID to use.
bypass_network_lists Sequence[str]
A list containing the IDs of the network lists to use.
config_id int
The configuration ID to use.

Outputs

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

Get an existing AppSecByPassNetworkList 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?: AppSecByPassNetworkListState, opts?: CustomResourceOptions): AppSecByPassNetworkList
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        bypass_network_lists: Optional[Sequence[str]] = None,
        config_id: Optional[int] = None) -> AppSecByPassNetworkList
func GetAppSecByPassNetworkList(ctx *Context, name string, id IDInput, state *AppSecByPassNetworkListState, opts ...ResourceOption) (*AppSecByPassNetworkList, error)
public static AppSecByPassNetworkList Get(string name, Input<string> id, AppSecByPassNetworkListState? 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:

BypassNetworkLists List<string>
A list containing the IDs of the network lists to use.
ConfigId int
The configuration ID to use.
BypassNetworkLists []string
A list containing the IDs of the network lists to use.
ConfigId int
The configuration ID to use.
bypassNetworkLists string[]
A list containing the IDs of the network lists to use.
configId number
The configuration ID to use.
bypass_network_lists Sequence[str]
A list containing the IDs of the network lists to use.
config_id int
The configuration ID 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.