azure-native.network.DdosCustomPolicy
Explore with Pulumi AI
A DDoS custom policy in a resource group. API Version: 2020-11-01.
Example Usage
Create DDoS custom policy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var ddosCustomPolicy = new AzureNative.Network.DdosCustomPolicy("ddosCustomPolicy", new()
{
DdosCustomPolicyName = "test-ddos-custom-policy",
Location = "centraluseuap",
ProtocolCustomSettings = new[]
{
new AzureNative.Network.Inputs.ProtocolCustomSettingsFormatArgs
{
Protocol = "Tcp",
},
},
ResourceGroupName = "rg1",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewDdosCustomPolicy(ctx, "ddosCustomPolicy", &network.DdosCustomPolicyArgs{
DdosCustomPolicyName: pulumi.String("test-ddos-custom-policy"),
Location: pulumi.String("centraluseuap"),
ProtocolCustomSettings: []network.ProtocolCustomSettingsFormatArgs{
{
Protocol: pulumi.String("Tcp"),
},
},
ResourceGroupName: pulumi.String("rg1"),
})
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.azurenative.network.DdosCustomPolicy;
import com.pulumi.azurenative.network.DdosCustomPolicyArgs;
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) {
var ddosCustomPolicy = new DdosCustomPolicy("ddosCustomPolicy", DdosCustomPolicyArgs.builder()
.ddosCustomPolicyName("test-ddos-custom-policy")
.location("centraluseuap")
.protocolCustomSettings(Map.of("protocol", "Tcp"))
.resourceGroupName("rg1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
ddos_custom_policy = azure_native.network.DdosCustomPolicy("ddosCustomPolicy",
ddos_custom_policy_name="test-ddos-custom-policy",
location="centraluseuap",
protocol_custom_settings=[azure_native.network.ProtocolCustomSettingsFormatArgs(
protocol="Tcp",
)],
resource_group_name="rg1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const ddosCustomPolicy = new azure_native.network.DdosCustomPolicy("ddosCustomPolicy", {
ddosCustomPolicyName: "test-ddos-custom-policy",
location: "centraluseuap",
protocolCustomSettings: [{
protocol: "Tcp",
}],
resourceGroupName: "rg1",
});
resources:
ddosCustomPolicy:
type: azure-native:network:DdosCustomPolicy
properties:
ddosCustomPolicyName: test-ddos-custom-policy
location: centraluseuap
protocolCustomSettings:
- protocol: Tcp
resourceGroupName: rg1
Create DdosCustomPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DdosCustomPolicy(name: string, args: DdosCustomPolicyArgs, opts?: CustomResourceOptions);
@overload
def DdosCustomPolicy(resource_name: str,
args: DdosCustomPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DdosCustomPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
ddos_custom_policy_name: Optional[str] = None,
id: Optional[str] = None,
location: Optional[str] = None,
protocol_custom_settings: Optional[Sequence[ProtocolCustomSettingsFormatArgs]] = None,
tags: Optional[Mapping[str, str]] = None)
func NewDdosCustomPolicy(ctx *Context, name string, args DdosCustomPolicyArgs, opts ...ResourceOption) (*DdosCustomPolicy, error)
public DdosCustomPolicy(string name, DdosCustomPolicyArgs args, CustomResourceOptions? opts = null)
public DdosCustomPolicy(String name, DdosCustomPolicyArgs args)
public DdosCustomPolicy(String name, DdosCustomPolicyArgs args, CustomResourceOptions options)
type: azure-native:network:DdosCustomPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DdosCustomPolicyArgs
- 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 DdosCustomPolicyArgs
- 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 DdosCustomPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DdosCustomPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DdosCustomPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var ddosCustomPolicyResource = new AzureNative.Network.DdosCustomPolicy("ddosCustomPolicyResource", new()
{
ResourceGroupName = "string",
DdosCustomPolicyName = "string",
Id = "string",
Location = "string",
ProtocolCustomSettings = new[]
{
{
{ "protocol", "string" },
{ "sourceRateOverride", "string" },
{ "triggerRateOverride", "string" },
{ "triggerSensitivityOverride", "string" },
},
},
Tags =
{
{ "string", "string" },
},
});
example, err := network.NewDdosCustomPolicy(ctx, "ddosCustomPolicyResource", &network.DdosCustomPolicyArgs{
ResourceGroupName: "string",
DdosCustomPolicyName: "string",
Id: "string",
Location: "string",
ProtocolCustomSettings: []map[string]interface{}{
map[string]interface{}{
"protocol": "string",
"sourceRateOverride": "string",
"triggerRateOverride": "string",
"triggerSensitivityOverride": "string",
},
},
Tags: map[string]interface{}{
"string": "string",
},
})
var ddosCustomPolicyResource = new DdosCustomPolicy("ddosCustomPolicyResource", DdosCustomPolicyArgs.builder()
.resourceGroupName("string")
.ddosCustomPolicyName("string")
.id("string")
.location("string")
.protocolCustomSettings(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
ddos_custom_policy_resource = azure_native.network.DdosCustomPolicy("ddosCustomPolicyResource",
resource_group_name=string,
ddos_custom_policy_name=string,
id=string,
location=string,
protocol_custom_settings=[{
protocol: string,
sourceRateOverride: string,
triggerRateOverride: string,
triggerSensitivityOverride: string,
}],
tags={
string: string,
})
const ddosCustomPolicyResource = new azure_native.network.DdosCustomPolicy("ddosCustomPolicyResource", {
resourceGroupName: "string",
ddosCustomPolicyName: "string",
id: "string",
location: "string",
protocolCustomSettings: [{
protocol: "string",
sourceRateOverride: "string",
triggerRateOverride: "string",
triggerSensitivityOverride: "string",
}],
tags: {
string: "string",
},
});
type: azure-native:network:DdosCustomPolicy
properties:
ddosCustomPolicyName: string
id: string
location: string
protocolCustomSettings:
- protocol: string
sourceRateOverride: string
triggerRateOverride: string
triggerSensitivityOverride: string
resourceGroupName: string
tags:
string: string
DdosCustomPolicy 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 DdosCustomPolicy resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group.
- Ddos
Custom stringPolicy Name - The name of the DDoS custom policy.
- Id string
- Resource ID.
- Location string
- Resource location.
- Protocol
Custom List<Pulumi.Settings Azure Native. Network. Inputs. Protocol Custom Settings Format> - The protocol-specific DDoS policy customization parameters.
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The name of the resource group.
- Ddos
Custom stringPolicy Name - The name of the DDoS custom policy.
- Id string
- Resource ID.
- Location string
- Resource location.
- Protocol
Custom []ProtocolSettings Custom Settings Format Args - The protocol-specific DDoS policy customization parameters.
- map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group.
- ddos
Custom StringPolicy Name - The name of the DDoS custom policy.
- id String
- Resource ID.
- location String
- Resource location.
- protocol
Custom List<ProtocolSettings Custom Settings Format> - The protocol-specific DDoS policy customization parameters.
- Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group.
- ddos
Custom stringPolicy Name - The name of the DDoS custom policy.
- id string
- Resource ID.
- location string
- Resource location.
- protocol
Custom ProtocolSettings Custom Settings Format[] - The protocol-specific DDoS policy customization parameters.
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - The name of the resource group.
- ddos_
custom_ strpolicy_ name - The name of the DDoS custom policy.
- id str
- Resource ID.
- location str
- Resource location.
- protocol_
custom_ Sequence[Protocolsettings Custom Settings Format Args] - The protocol-specific DDoS policy customization parameters.
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - The name of the resource group.
- ddos
Custom StringPolicy Name - The name of the DDoS custom policy.
- id String
- Resource ID.
- location String
- Resource location.
- protocol
Custom List<Property Map>Settings - The protocol-specific DDoS policy customization parameters.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the DdosCustomPolicy resource produces the following output properties:
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Provisioning
State string - The provisioning state of the DDoS custom policy resource.
- Public
IPAddresses List<Pulumi.Azure Native. Network. Outputs. Sub Resource Response> - The list of public IPs associated with the DDoS custom policy resource. This list is read-only.
- Resource
Guid string - The resource GUID property of the DDoS custom policy resource. It uniquely identifies the resource, even if the user changes its name or migrate the resource across subscriptions or resource groups.
- Type string
- Resource type.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Provisioning
State string - The provisioning state of the DDoS custom policy resource.
- Public
IPAddresses []SubResource Response - The list of public IPs associated with the DDoS custom policy resource. This list is read-only.
- Resource
Guid string - The resource GUID property of the DDoS custom policy resource. It uniquely identifies the resource, even if the user changes its name or migrate the resource across subscriptions or resource groups.
- Type string
- Resource type.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- provisioning
State String - The provisioning state of the DDoS custom policy resource.
- public
IPAddresses List<SubResource Response> - The list of public IPs associated with the DDoS custom policy resource. This list is read-only.
- resource
Guid String - The resource GUID property of the DDoS custom policy resource. It uniquely identifies the resource, even if the user changes its name or migrate the resource across subscriptions or resource groups.
- type String
- Resource type.
- etag string
- A unique read-only string that changes whenever the resource is updated.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name.
- provisioning
State string - The provisioning state of the DDoS custom policy resource.
- public
IPAddresses SubResource Response[] - The list of public IPs associated with the DDoS custom policy resource. This list is read-only.
- resource
Guid string - The resource GUID property of the DDoS custom policy resource. It uniquely identifies the resource, even if the user changes its name or migrate the resource across subscriptions or resource groups.
- type string
- Resource type.
- etag str
- A unique read-only string that changes whenever the resource is updated.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name.
- provisioning_
state str - The provisioning state of the DDoS custom policy resource.
- public_
ip_ Sequence[Subaddresses Resource Response] - The list of public IPs associated with the DDoS custom policy resource. This list is read-only.
- resource_
guid str - The resource GUID property of the DDoS custom policy resource. It uniquely identifies the resource, even if the user changes its name or migrate the resource across subscriptions or resource groups.
- type str
- Resource type.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- provisioning
State String - The provisioning state of the DDoS custom policy resource.
- public
IPAddresses List<Property Map> - The list of public IPs associated with the DDoS custom policy resource. This list is read-only.
- resource
Guid String - The resource GUID property of the DDoS custom policy resource. It uniquely identifies the resource, even if the user changes its name or migrate the resource across subscriptions or resource groups.
- type String
- Resource type.
Supporting Types
DdosCustomPolicyProtocol, DdosCustomPolicyProtocolArgs
- Tcp
- Tcp
- Udp
- Udp
- Syn
- Syn
- Ddos
Custom Policy Protocol Tcp - Tcp
- Ddos
Custom Policy Protocol Udp - Udp
- Ddos
Custom Policy Protocol Syn - Syn
- Tcp
- Tcp
- Udp
- Udp
- Syn
- Syn
- Tcp
- Tcp
- Udp
- Udp
- Syn
- Syn
- TCP
- Tcp
- UDP
- Udp
- SYN
- Syn
- "Tcp"
- Tcp
- "Udp"
- Udp
- "Syn"
- Syn
DdosCustomPolicyTriggerSensitivityOverride, DdosCustomPolicyTriggerSensitivityOverrideArgs
- Relaxed
- Relaxed
- Low
- Low
- Default
- Default
- High
- High
- Ddos
Custom Policy Trigger Sensitivity Override Relaxed - Relaxed
- Ddos
Custom Policy Trigger Sensitivity Override Low - Low
- Ddos
Custom Policy Trigger Sensitivity Override Default - Default
- Ddos
Custom Policy Trigger Sensitivity Override High - High
- Relaxed
- Relaxed
- Low
- Low
- Default
- Default
- High
- High
- Relaxed
- Relaxed
- Low
- Low
- Default
- Default
- High
- High
- RELAXED
- Relaxed
- LOW
- Low
- DEFAULT
- Default
- HIGH
- High
- "Relaxed"
- Relaxed
- "Low"
- Low
- "Default"
- Default
- "High"
- High
ProtocolCustomSettingsFormat, ProtocolCustomSettingsFormatArgs
- Protocol
string | Pulumi.
Azure Native. Network. Ddos Custom Policy Protocol - The protocol for which the DDoS protection policy is being customized.
- Source
Rate stringOverride - The customized DDoS protection source rate.
- Trigger
Rate stringOverride - The customized DDoS protection trigger rate.
- Trigger
Sensitivity string | Pulumi.Override Azure Native. Network. Ddos Custom Policy Trigger Sensitivity Override - The customized DDoS protection trigger rate sensitivity degrees. High: Trigger rate set with most sensitivity w.r.t. normal traffic. Default: Trigger rate set with moderate sensitivity w.r.t. normal traffic. Low: Trigger rate set with less sensitivity w.r.t. normal traffic. Relaxed: Trigger rate set with least sensitivity w.r.t. normal traffic.
- Protocol
string | Ddos
Custom Policy Protocol - The protocol for which the DDoS protection policy is being customized.
- Source
Rate stringOverride - The customized DDoS protection source rate.
- Trigger
Rate stringOverride - The customized DDoS protection trigger rate.
- Trigger
Sensitivity string | DdosOverride Custom Policy Trigger Sensitivity Override - The customized DDoS protection trigger rate sensitivity degrees. High: Trigger rate set with most sensitivity w.r.t. normal traffic. Default: Trigger rate set with moderate sensitivity w.r.t. normal traffic. Low: Trigger rate set with less sensitivity w.r.t. normal traffic. Relaxed: Trigger rate set with least sensitivity w.r.t. normal traffic.
- protocol
String | Ddos
Custom Policy Protocol - The protocol for which the DDoS protection policy is being customized.
- source
Rate StringOverride - The customized DDoS protection source rate.
- trigger
Rate StringOverride - The customized DDoS protection trigger rate.
- trigger
Sensitivity String | DdosOverride Custom Policy Trigger Sensitivity Override - The customized DDoS protection trigger rate sensitivity degrees. High: Trigger rate set with most sensitivity w.r.t. normal traffic. Default: Trigger rate set with moderate sensitivity w.r.t. normal traffic. Low: Trigger rate set with less sensitivity w.r.t. normal traffic. Relaxed: Trigger rate set with least sensitivity w.r.t. normal traffic.
- protocol
string | Ddos
Custom Policy Protocol - The protocol for which the DDoS protection policy is being customized.
- source
Rate stringOverride - The customized DDoS protection source rate.
- trigger
Rate stringOverride - The customized DDoS protection trigger rate.
- trigger
Sensitivity string | DdosOverride Custom Policy Trigger Sensitivity Override - The customized DDoS protection trigger rate sensitivity degrees. High: Trigger rate set with most sensitivity w.r.t. normal traffic. Default: Trigger rate set with moderate sensitivity w.r.t. normal traffic. Low: Trigger rate set with less sensitivity w.r.t. normal traffic. Relaxed: Trigger rate set with least sensitivity w.r.t. normal traffic.
- protocol
str | Ddos
Custom Policy Protocol - The protocol for which the DDoS protection policy is being customized.
- source_
rate_ stroverride - The customized DDoS protection source rate.
- trigger_
rate_ stroverride - The customized DDoS protection trigger rate.
- trigger_
sensitivity_ str | Ddosoverride Custom Policy Trigger Sensitivity Override - The customized DDoS protection trigger rate sensitivity degrees. High: Trigger rate set with most sensitivity w.r.t. normal traffic. Default: Trigger rate set with moderate sensitivity w.r.t. normal traffic. Low: Trigger rate set with less sensitivity w.r.t. normal traffic. Relaxed: Trigger rate set with least sensitivity w.r.t. normal traffic.
- protocol String | "Tcp" | "Udp" | "Syn"
- The protocol for which the DDoS protection policy is being customized.
- source
Rate StringOverride - The customized DDoS protection source rate.
- trigger
Rate StringOverride - The customized DDoS protection trigger rate.
- trigger
Sensitivity String | "Relaxed" | "Low" | "Default" | "High"Override - The customized DDoS protection trigger rate sensitivity degrees. High: Trigger rate set with most sensitivity w.r.t. normal traffic. Default: Trigger rate set with moderate sensitivity w.r.t. normal traffic. Low: Trigger rate set with less sensitivity w.r.t. normal traffic. Relaxed: Trigger rate set with least sensitivity w.r.t. normal traffic.
ProtocolCustomSettingsFormatResponse, ProtocolCustomSettingsFormatResponseArgs
- Protocol string
- The protocol for which the DDoS protection policy is being customized.
- Source
Rate stringOverride - The customized DDoS protection source rate.
- Trigger
Rate stringOverride - The customized DDoS protection trigger rate.
- Trigger
Sensitivity stringOverride - The customized DDoS protection trigger rate sensitivity degrees. High: Trigger rate set with most sensitivity w.r.t. normal traffic. Default: Trigger rate set with moderate sensitivity w.r.t. normal traffic. Low: Trigger rate set with less sensitivity w.r.t. normal traffic. Relaxed: Trigger rate set with least sensitivity w.r.t. normal traffic.
- Protocol string
- The protocol for which the DDoS protection policy is being customized.
- Source
Rate stringOverride - The customized DDoS protection source rate.
- Trigger
Rate stringOverride - The customized DDoS protection trigger rate.
- Trigger
Sensitivity stringOverride - The customized DDoS protection trigger rate sensitivity degrees. High: Trigger rate set with most sensitivity w.r.t. normal traffic. Default: Trigger rate set with moderate sensitivity w.r.t. normal traffic. Low: Trigger rate set with less sensitivity w.r.t. normal traffic. Relaxed: Trigger rate set with least sensitivity w.r.t. normal traffic.
- protocol String
- The protocol for which the DDoS protection policy is being customized.
- source
Rate StringOverride - The customized DDoS protection source rate.
- trigger
Rate StringOverride - The customized DDoS protection trigger rate.
- trigger
Sensitivity StringOverride - The customized DDoS protection trigger rate sensitivity degrees. High: Trigger rate set with most sensitivity w.r.t. normal traffic. Default: Trigger rate set with moderate sensitivity w.r.t. normal traffic. Low: Trigger rate set with less sensitivity w.r.t. normal traffic. Relaxed: Trigger rate set with least sensitivity w.r.t. normal traffic.
- protocol string
- The protocol for which the DDoS protection policy is being customized.
- source
Rate stringOverride - The customized DDoS protection source rate.
- trigger
Rate stringOverride - The customized DDoS protection trigger rate.
- trigger
Sensitivity stringOverride - The customized DDoS protection trigger rate sensitivity degrees. High: Trigger rate set with most sensitivity w.r.t. normal traffic. Default: Trigger rate set with moderate sensitivity w.r.t. normal traffic. Low: Trigger rate set with less sensitivity w.r.t. normal traffic. Relaxed: Trigger rate set with least sensitivity w.r.t. normal traffic.
- protocol str
- The protocol for which the DDoS protection policy is being customized.
- source_
rate_ stroverride - The customized DDoS protection source rate.
- trigger_
rate_ stroverride - The customized DDoS protection trigger rate.
- trigger_
sensitivity_ stroverride - The customized DDoS protection trigger rate sensitivity degrees. High: Trigger rate set with most sensitivity w.r.t. normal traffic. Default: Trigger rate set with moderate sensitivity w.r.t. normal traffic. Low: Trigger rate set with less sensitivity w.r.t. normal traffic. Relaxed: Trigger rate set with least sensitivity w.r.t. normal traffic.
- protocol String
- The protocol for which the DDoS protection policy is being customized.
- source
Rate StringOverride - The customized DDoS protection source rate.
- trigger
Rate StringOverride - The customized DDoS protection trigger rate.
- trigger
Sensitivity StringOverride - The customized DDoS protection trigger rate sensitivity degrees. High: Trigger rate set with most sensitivity w.r.t. normal traffic. Default: Trigger rate set with moderate sensitivity w.r.t. normal traffic. Low: Trigger rate set with less sensitivity w.r.t. normal traffic. Relaxed: Trigger rate set with least sensitivity w.r.t. normal traffic.
SubResourceResponse, SubResourceResponseArgs
- Id string
- Resource ID.
- Id string
- Resource ID.
- id String
- Resource ID.
- id string
- Resource ID.
- id str
- Resource ID.
- id String
- Resource ID.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:network:DdosCustomPolicy test-ddos-custom-policy /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ddosCustomPolicies/test-ddos-custom-policy
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0