azure-native.network.DdosProtectionPlan
Explore with Pulumi AI
A DDoS protection plan in a resource group. API Version: 2020-11-01.
Example Usage
Create DDoS protection plan
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var ddosProtectionPlan = new AzureNative.Network.DdosProtectionPlan("ddosProtectionPlan", new()
{
DdosProtectionPlanName = "test-plan",
Location = "westus",
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.NewDdosProtectionPlan(ctx, "ddosProtectionPlan", &network.DdosProtectionPlanArgs{
DdosProtectionPlanName: pulumi.String("test-plan"),
Location: pulumi.String("westus"),
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.DdosProtectionPlan;
import com.pulumi.azurenative.network.DdosProtectionPlanArgs;
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 ddosProtectionPlan = new DdosProtectionPlan("ddosProtectionPlan", DdosProtectionPlanArgs.builder()
.ddosProtectionPlanName("test-plan")
.location("westus")
.resourceGroupName("rg1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
ddos_protection_plan = azure_native.network.DdosProtectionPlan("ddosProtectionPlan",
ddos_protection_plan_name="test-plan",
location="westus",
resource_group_name="rg1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const ddosProtectionPlan = new azure_native.network.DdosProtectionPlan("ddosProtectionPlan", {
ddosProtectionPlanName: "test-plan",
location: "westus",
resourceGroupName: "rg1",
});
resources:
ddosProtectionPlan:
type: azure-native:network:DdosProtectionPlan
properties:
ddosProtectionPlanName: test-plan
location: westus
resourceGroupName: rg1
Create DdosProtectionPlan Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DdosProtectionPlan(name: string, args: DdosProtectionPlanArgs, opts?: CustomResourceOptions);
@overload
def DdosProtectionPlan(resource_name: str,
args: DdosProtectionPlanArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DdosProtectionPlan(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
ddos_protection_plan_name: Optional[str] = None,
location: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewDdosProtectionPlan(ctx *Context, name string, args DdosProtectionPlanArgs, opts ...ResourceOption) (*DdosProtectionPlan, error)
public DdosProtectionPlan(string name, DdosProtectionPlanArgs args, CustomResourceOptions? opts = null)
public DdosProtectionPlan(String name, DdosProtectionPlanArgs args)
public DdosProtectionPlan(String name, DdosProtectionPlanArgs args, CustomResourceOptions options)
type: azure-native:network:DdosProtectionPlan
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 DdosProtectionPlanArgs
- 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 DdosProtectionPlanArgs
- 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 DdosProtectionPlanArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DdosProtectionPlanArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DdosProtectionPlanArgs
- 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 ddosProtectionPlanResource = new AzureNative.Network.DdosProtectionPlan("ddosProtectionPlanResource", new()
{
ResourceGroupName = "string",
DdosProtectionPlanName = "string",
Location = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := network.NewDdosProtectionPlan(ctx, "ddosProtectionPlanResource", &network.DdosProtectionPlanArgs{
ResourceGroupName: "string",
DdosProtectionPlanName: "string",
Location: "string",
Tags: map[string]interface{}{
"string": "string",
},
})
var ddosProtectionPlanResource = new DdosProtectionPlan("ddosProtectionPlanResource", DdosProtectionPlanArgs.builder()
.resourceGroupName("string")
.ddosProtectionPlanName("string")
.location("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
ddos_protection_plan_resource = azure_native.network.DdosProtectionPlan("ddosProtectionPlanResource",
resource_group_name=string,
ddos_protection_plan_name=string,
location=string,
tags={
string: string,
})
const ddosProtectionPlanResource = new azure_native.network.DdosProtectionPlan("ddosProtectionPlanResource", {
resourceGroupName: "string",
ddosProtectionPlanName: "string",
location: "string",
tags: {
string: "string",
},
});
type: azure-native:network:DdosProtectionPlan
properties:
ddosProtectionPlanName: string
location: string
resourceGroupName: string
tags:
string: string
DdosProtectionPlan Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DdosProtectionPlan resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group.
- Ddos
Protection stringPlan Name - The name of the DDoS protection plan.
- Location string
- Resource location.
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The name of the resource group.
- Ddos
Protection stringPlan Name - The name of the DDoS protection plan.
- Location string
- Resource location.
- map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group.
- ddos
Protection StringPlan Name - The name of the DDoS protection plan.
- location String
- Resource location.
- Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group.
- ddos
Protection stringPlan Name - The name of the DDoS protection plan.
- location string
- Resource location.
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - The name of the resource group.
- ddos_
protection_ strplan_ name - The name of the DDoS protection plan.
- location str
- Resource location.
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - The name of the resource group.
- ddos
Protection StringPlan Name - The name of the DDoS protection plan.
- location String
- Resource location.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the DdosProtectionPlan 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 protection plan resource.
- Resource
Guid string - The resource GUID property of the DDoS protection plan 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.
- Virtual
Networks List<Pulumi.Azure Native. Network. Outputs. Sub Resource Response> - The list of virtual networks associated with the DDoS protection plan resource. This list is read-only.
- 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 protection plan resource.
- Resource
Guid string - The resource GUID property of the DDoS protection plan 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.
- Virtual
Networks []SubResource Response - The list of virtual networks associated with the DDoS protection plan resource. This list is read-only.
- 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 protection plan resource.
- resource
Guid String - The resource GUID property of the DDoS protection plan 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.
- virtual
Networks List<SubResource Response> - The list of virtual networks associated with the DDoS protection plan resource. This list is read-only.
- 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 protection plan resource.
- resource
Guid string - The resource GUID property of the DDoS protection plan 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.
- virtual
Networks SubResource Response[] - The list of virtual networks associated with the DDoS protection plan resource. This list is read-only.
- 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 protection plan resource.
- resource_
guid str - The resource GUID property of the DDoS protection plan 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.
- virtual_
networks Sequence[SubResource Response] - The list of virtual networks associated with the DDoS protection plan resource. This list is read-only.
- 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 protection plan resource.
- resource
Guid String - The resource GUID property of the DDoS protection plan 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.
- virtual
Networks List<Property Map> - The list of virtual networks associated with the DDoS protection plan resource. This list is read-only.
Supporting Types
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:DdosProtectionPlan test-plan /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ddosProtectionPlans/test-plan
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