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

new DdosProtectionPlan(name: string, args: DdosProtectionPlanArgs, opts?: CustomResourceOptions);
@overload
def DdosProtectionPlan(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       ddos_protection_plan_name: Optional[str] = None,
                       location: Optional[str] = None,
                       resource_group_name: Optional[str] = None,
                       tags: Optional[Mapping[str, str]] = None)
@overload
def DdosProtectionPlan(resource_name: str,
                       args: DdosProtectionPlanArgs,
                       opts: Optional[ResourceOptions] = 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.

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.

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

The DdosProtectionPlan resource accepts the following input properties:

ResourceGroupName string

The name of the resource group.

DdosProtectionPlanName string

The name of the DDoS protection plan.

Location string

Resource location.

Tags Dictionary<string, string>

Resource tags.

ResourceGroupName string

The name of the resource group.

DdosProtectionPlanName string

The name of the DDoS protection plan.

Location string

Resource location.

Tags map[string]string

Resource tags.

resourceGroupName String

The name of the resource group.

ddosProtectionPlanName String

The name of the DDoS protection plan.

location String

Resource location.

tags Map<String,String>

Resource tags.

resourceGroupName string

The name of the resource group.

ddosProtectionPlanName string

The name of the DDoS protection plan.

location string

Resource location.

tags {[key: string]: string}

Resource tags.

resource_group_name str

The name of the resource group.

ddos_protection_plan_name str

The name of the DDoS protection plan.

location str

Resource location.

tags Mapping[str, str]

Resource tags.

resourceGroupName String

The name of the resource group.

ddosProtectionPlanName String

The name of the DDoS protection plan.

location String

Resource location.

tags 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.

ProvisioningState string

The provisioning state of the DDoS protection plan resource.

ResourceGuid 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.

VirtualNetworks List<Pulumi.AzureNative.Network.Outputs.SubResourceResponse>

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.

ProvisioningState string

The provisioning state of the DDoS protection plan resource.

ResourceGuid 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.

VirtualNetworks []SubResourceResponse

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.

provisioningState String

The provisioning state of the DDoS protection plan resource.

resourceGuid 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.

virtualNetworks List<SubResourceResponse>

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.

provisioningState string

The provisioning state of the DDoS protection plan resource.

resourceGuid 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.

virtualNetworks SubResourceResponse[]

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[SubResourceResponse]

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.

provisioningState String

The provisioning state of the DDoS protection plan resource.

resourceGuid 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.

virtualNetworks List<Property Map>

The list of virtual networks associated with the DDoS protection plan resource. This list is read-only.

Supporting Types

SubResourceResponse

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 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0