Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

AppSecWapSelectedHostnames

The akamai.AppSecWapSelectedHostnames resource allows you to set the lists of hostnames to be protected and to be evaluated under a given security configuration and policy. This resource is available only for WAP accounts. Either of the lists of hostnames may be omitted or specified as an empty list, but at least one of the two lists must be present and non-empty. (WAP selected hostnames is currently in beta. Please contact your Akamai representative for more information about this feature.)

Example Usage

Coming soon!

Coming soon!

Coming soon!

import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: "Akamai Tools",
});
const appsecwapSelectedhostnames = new akamai.AppSecWapSelectedHostnames("appsecwapSelectedhostnames", {
    configId: configuration.then(configuration => configuration.configId),
    securityPolicyId: _var.security_policy_id,
    protectedHostnames: ["example.com"],
    evaluatedHostnames: ["example2.com"],
});

Create a 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)
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.

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
The ID of the security configuration to use.
SecurityPolicyId string
The ID of the security policy to use.
EvaluatedHosts List<string>
ProtectedHosts List<string>
ConfigId int
The ID of the security configuration to use.
SecurityPolicyId string
The ID of the security policy to use.
EvaluatedHosts []string
ProtectedHosts []string
configId number
The ID of the security configuration to use.
securityPolicyId string
The ID of the security policy to use.
evaluatedHosts string[]
protectedHosts string[]
config_id int
The ID of the security configuration to use.
security_policy_id str
The ID of the security policy to use.
evaluated_hosts Sequence[str]
protected_hosts Sequence[str]

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 str
The provider-assigned unique ID for this managed resource.

Look up an 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)
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.
EvaluatedHosts List<string>
ProtectedHosts List<string>
SecurityPolicyId string
The ID of the security policy to use.
ConfigId int
The ID of the security configuration to use.
EvaluatedHosts []string
ProtectedHosts []string
SecurityPolicyId string
The ID of the security policy to use.
configId number
The ID of the security configuration to use.
evaluatedHosts string[]
protectedHosts string[]
securityPolicyId string
The ID of the security policy to use.
config_id int
The ID of the security configuration to use.
evaluated_hosts Sequence[str]
protected_hosts Sequence[str]
security_policy_id str
The ID of the security policy 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.