akamai.AppSecWapSelectedHostnames

Example Usage

Basic usage

using System.Collections.Generic;
using Pulumi;
using Akamai = Pulumi.Akamai;

return await Deployment.RunAsync(() => 
{
    var configuration = Akamai.GetAppSecConfiguration.Invoke(new()
    {
        Name = "Documentation",
    });

    var appsecwapSelectedhostnames = new Akamai.AppSecWapSelectedHostnames("appsecwapSelectedhostnames", new()
    {
        ConfigId = configuration.Apply(getAppSecConfigurationResult => getAppSecConfigurationResult.ConfigId),
        SecurityPolicyId = "gms1_134637",
        ProtectedHosts = new[]
        {
            "documentation.akamai.com",
        },
        EvaluatedHosts = new[]
        {
            "training.akamai.com",
        },
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		configuration, err := akamai.LookupAppSecConfiguration(ctx, &akamai.LookupAppSecConfigurationArgs{
			Name: pulumi.StringRef("Documentation"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = akamai.NewAppSecWapSelectedHostnames(ctx, "appsecwapSelectedhostnames", &akamai.AppSecWapSelectedHostnamesArgs{
			ConfigId:         *pulumi.Int(configuration.ConfigId),
			SecurityPolicyId: pulumi.String("gms1_134637"),
			ProtectedHosts: pulumi.StringArray{
				pulumi.String("documentation.akamai.com"),
			},
			EvaluatedHosts: pulumi.StringArray{
				pulumi.String("training.akamai.com"),
			},
		})
		if err != nil {
			return err
		}
		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.AppSecWapSelectedHostnames;
import com.pulumi.akamai.AppSecWapSelectedHostnamesArgs;
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());

        var appsecwapSelectedhostnames = new AppSecWapSelectedHostnames("appsecwapSelectedhostnames", AppSecWapSelectedHostnamesArgs.builder()        
            .configId(configuration.applyValue(getAppSecConfigurationResult -> getAppSecConfigurationResult.configId()))
            .securityPolicyId("gms1_134637")
            .protectedHosts("documentation.akamai.com")
            .evaluatedHosts("training.akamai.com")
            .build());

    }
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name="Documentation")
appsecwap_selectedhostnames = akamai.AppSecWapSelectedHostnames("appsecwapSelectedhostnames",
    config_id=configuration.config_id,
    security_policy_id="gms1_134637",
    protected_hosts=["documentation.akamai.com"],
    evaluated_hosts=["training.akamai.com"])
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: "Documentation",
});
const appsecwapSelectedhostnames = new akamai.AppSecWapSelectedHostnames("appsecwapSelectedhostnames", {
    configId: configuration.then(configuration => configuration.configId),
    securityPolicyId: "gms1_134637",
    protectedHosts: ["documentation.akamai.com"],
    evaluatedHosts: ["training.akamai.com"],
});
resources:
  appsecwapSelectedhostnames:
    type: akamai:AppSecWapSelectedHostnames
    properties:
      configId: ${configuration.configId}
      securityPolicyId: gms1_134637
      protectedHosts:
        - documentation.akamai.com
      evaluatedHosts:
        - training.akamai.com
variables:
  configuration:
    fn::invoke:
      Function: akamai:getAppSecConfiguration
      Arguments:
        name: Documentation

Create AppSecWapSelectedHostnames Resource

new AppSecWapSelectedHostnames(name: string, args: AppSecWapSelectedHostnamesArgs, opts?: CustomResourceOptions);
@overload
def AppSecWapSelectedHostnames(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               config_id: Optional[int] = None,
                               evaluated_hosts: Optional[Sequence[str]] = None,
                               protected_hosts: Optional[Sequence[str]] = None,
                               security_policy_id: Optional[str] = None)
@overload
def AppSecWapSelectedHostnames(resource_name: str,
                               args: AppSecWapSelectedHostnamesArgs,
                               opts: Optional[ResourceOptions] = None)
func NewAppSecWapSelectedHostnames(ctx *Context, name string, args AppSecWapSelectedHostnamesArgs, opts ...ResourceOption) (*AppSecWapSelectedHostnames, error)
public AppSecWapSelectedHostnames(string name, AppSecWapSelectedHostnamesArgs args, CustomResourceOptions? opts = null)
public AppSecWapSelectedHostnames(String name, AppSecWapSelectedHostnamesArgs args)
public AppSecWapSelectedHostnames(String name, AppSecWapSelectedHostnamesArgs args, CustomResourceOptions options)
type: akamai:AppSecWapSelectedHostnames
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AppSecWapSelectedHostnamesArgs
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 AppSecWapSelectedHostnamesArgs
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 AppSecWapSelectedHostnamesArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AppSecWapSelectedHostnamesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AppSecWapSelectedHostnamesArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

ConfigId int

. Unique identifier of the security configuration associated with the hostnames being protected or evaluated.

SecurityPolicyId string

. Unique identifier of the security policy responsible for protecting or evaluating the specified hosts.

EvaluatedHosts List<string>

List of hostnames to be evaluated

ProtectedHosts List<string>

List of hostnames to be protected

ConfigId int

. Unique identifier of the security configuration associated with the hostnames being protected or evaluated.

SecurityPolicyId string

. Unique identifier of the security policy responsible for protecting or evaluating the specified hosts.

EvaluatedHosts []string

List of hostnames to be evaluated

ProtectedHosts []string

List of hostnames to be protected

configId Integer

. Unique identifier of the security configuration associated with the hostnames being protected or evaluated.

securityPolicyId String

. Unique identifier of the security policy responsible for protecting or evaluating the specified hosts.

evaluatedHosts List<String>

List of hostnames to be evaluated

protectedHosts List<String>

List of hostnames to be protected

configId number

. Unique identifier of the security configuration associated with the hostnames being protected or evaluated.

securityPolicyId string

. Unique identifier of the security policy responsible for protecting or evaluating the specified hosts.

evaluatedHosts string[]

List of hostnames to be evaluated

protectedHosts string[]

List of hostnames to be protected

config_id int

. Unique identifier of the security configuration associated with the hostnames being protected or evaluated.

security_policy_id str

. Unique identifier of the security policy responsible for protecting or evaluating the specified hosts.

evaluated_hosts Sequence[str]

List of hostnames to be evaluated

protected_hosts Sequence[str]

List of hostnames to be protected

configId Number

. Unique identifier of the security configuration associated with the hostnames being protected or evaluated.

securityPolicyId String

. Unique identifier of the security policy responsible for protecting or evaluating the specified hosts.

evaluatedHosts List<String>

List of hostnames to be evaluated

protectedHosts List<String>

List of hostnames to be protected

Outputs

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

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing AppSecWapSelectedHostnames Resource

Get an existing AppSecWapSelectedHostnames 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?: AppSecWapSelectedHostnamesState, opts?: CustomResourceOptions): AppSecWapSelectedHostnames
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        config_id: Optional[int] = None,
        evaluated_hosts: Optional[Sequence[str]] = None,
        protected_hosts: Optional[Sequence[str]] = None,
        security_policy_id: Optional[str] = None) -> AppSecWapSelectedHostnames
func GetAppSecWapSelectedHostnames(ctx *Context, name string, id IDInput, state *AppSecWapSelectedHostnamesState, opts ...ResourceOption) (*AppSecWapSelectedHostnames, error)
public static AppSecWapSelectedHostnames Get(string name, Input<string> id, AppSecWapSelectedHostnamesState? state, CustomResourceOptions? opts = null)
public static AppSecWapSelectedHostnames get(String name, Output<String> id, AppSecWapSelectedHostnamesState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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.
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

. Unique identifier of the security configuration associated with the hostnames being protected or evaluated.

EvaluatedHosts List<string>

List of hostnames to be evaluated

ProtectedHosts List<string>

List of hostnames to be protected

SecurityPolicyId string

. Unique identifier of the security policy responsible for protecting or evaluating the specified hosts.

ConfigId int

. Unique identifier of the security configuration associated with the hostnames being protected or evaluated.

EvaluatedHosts []string

List of hostnames to be evaluated

ProtectedHosts []string

List of hostnames to be protected

SecurityPolicyId string

. Unique identifier of the security policy responsible for protecting or evaluating the specified hosts.

configId Integer

. Unique identifier of the security configuration associated with the hostnames being protected or evaluated.

evaluatedHosts List<String>

List of hostnames to be evaluated

protectedHosts List<String>

List of hostnames to be protected

securityPolicyId String

. Unique identifier of the security policy responsible for protecting or evaluating the specified hosts.

configId number

. Unique identifier of the security configuration associated with the hostnames being protected or evaluated.

evaluatedHosts string[]

List of hostnames to be evaluated

protectedHosts string[]

List of hostnames to be protected

securityPolicyId string

. Unique identifier of the security policy responsible for protecting or evaluating the specified hosts.

config_id int

. Unique identifier of the security configuration associated with the hostnames being protected or evaluated.

evaluated_hosts Sequence[str]

List of hostnames to be evaluated

protected_hosts Sequence[str]

List of hostnames to be protected

security_policy_id str

. Unique identifier of the security policy responsible for protecting or evaluating the specified hosts.

configId Number

. Unique identifier of the security configuration associated with the hostnames being protected or evaluated.

evaluatedHosts List<String>

List of hostnames to be evaluated

protectedHosts List<String>

List of hostnames to be protected

securityPolicyId String

. Unique identifier of the security policy responsible for protecting or evaluating the specified hosts.

Package Details

Repository
Akamai pulumi/pulumi-akamai
License
Apache-2.0
Notes

This Pulumi package is based on the akamai Terraform Provider.