AppSecConfiguration

The resource_akamai_appsec_configuration resource allows you to create a new WAP or KSD security configuration. KSD security configurations start out empty, and WAP configurations are created with preset values. The contract you pass in the request body determines which product you use. You can edit the default settings included in the WAP configuration, but you’ll need to run additional operations in this API to select specific protections for KSD. Your KSD configuration needs match targets and protection settings before it can be activated.

Create a AppSecConfiguration Resource

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

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

ContractId string
The contract ID of the configuration.
Description string
A description of the configuration.
GroupId int
The group ID of the configuration.
HostNames List<string>
The list of hostnames protected by this security configuration.
CreateFromConfigId int
The config ID of the security configuration to clone from.
CreateFromVersion int
The version number of the security configuration to clone from.
Name string
The name to be assigned to the configuration.
ContractId string
The contract ID of the configuration.
Description string
A description of the configuration.
GroupId int
The group ID of the configuration.
HostNames []string
The list of hostnames protected by this security configuration.
CreateFromConfigId int
The config ID of the security configuration to clone from.
CreateFromVersion int
The version number of the security configuration to clone from.
Name string
The name to be assigned to the configuration.
contractId string
The contract ID of the configuration.
description string
A description of the configuration.
groupId number
The group ID of the configuration.
hostNames string[]
The list of hostnames protected by this security configuration.
createFromConfigId number
The config ID of the security configuration to clone from.
createFromVersion number
The version number of the security configuration to clone from.
name string
The name to be assigned to the configuration.
contract_id str
The contract ID of the configuration.
description str
A description of the configuration.
group_id int
The group ID of the configuration.
host_names Sequence[str]
The list of hostnames protected by this security configuration.
create_from_config_id int
The config ID of the security configuration to clone from.
create_from_version int
The version number of the security configuration to clone from.
name str
The name to be assigned to the configuration.

Outputs

All input properties are implicitly available as output properties. Additionally, the AppSecConfiguration resource produces the following output properties:

ConfigId int
(Required) The ID of the security configuration.
Id string
The provider-assigned unique ID for this managed resource.
ConfigId int
(Required) The ID of the security configuration.
Id string
The provider-assigned unique ID for this managed resource.
configId number
(Required) The ID of the security configuration.
id string
The provider-assigned unique ID for this managed resource.
config_id int
(Required) The ID of the security configuration.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing AppSecConfiguration Resource

Get an existing AppSecConfiguration 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?: AppSecConfigurationState, opts?: CustomResourceOptions): AppSecConfiguration
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        config_id: Optional[int] = None,
        contract_id: Optional[str] = None,
        create_from_config_id: Optional[int] = None,
        create_from_version: Optional[int] = None,
        description: Optional[str] = None,
        group_id: Optional[int] = None,
        host_names: Optional[Sequence[str]] = None,
        name: Optional[str] = None) -> AppSecConfiguration
func GetAppSecConfiguration(ctx *Context, name string, id IDInput, state *AppSecConfigurationState, opts ...ResourceOption) (*AppSecConfiguration, error)
public static AppSecConfiguration Get(string name, Input<string> id, AppSecConfigurationState? 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
(Required) The ID of the security configuration.
ContractId string
The contract ID of the configuration.
CreateFromConfigId int
The config ID of the security configuration to clone from.
CreateFromVersion int
The version number of the security configuration to clone from.
Description string
A description of the configuration.
GroupId int
The group ID of the configuration.
HostNames List<string>
The list of hostnames protected by this security configuration.
Name string
The name to be assigned to the configuration.
ConfigId int
(Required) The ID of the security configuration.
ContractId string
The contract ID of the configuration.
CreateFromConfigId int
The config ID of the security configuration to clone from.
CreateFromVersion int
The version number of the security configuration to clone from.
Description string
A description of the configuration.
GroupId int
The group ID of the configuration.
HostNames []string
The list of hostnames protected by this security configuration.
Name string
The name to be assigned to the configuration.
configId number
(Required) The ID of the security configuration.
contractId string
The contract ID of the configuration.
createFromConfigId number
The config ID of the security configuration to clone from.
createFromVersion number
The version number of the security configuration to clone from.
description string
A description of the configuration.
groupId number
The group ID of the configuration.
hostNames string[]
The list of hostnames protected by this security configuration.
name string
The name to be assigned to the configuration.
config_id int
(Required) The ID of the security configuration.
contract_id str
The contract ID of the configuration.
create_from_config_id int
The config ID of the security configuration to clone from.
create_from_version int
The version number of the security configuration to clone from.
description str
A description of the configuration.
group_id int
The group ID of the configuration.
host_names Sequence[str]
The list of hostnames protected by this security configuration.
name str
The name to be assigned to the configuration.

Package Details

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