1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. DdosProtectionPlan
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.37.0 published on Monday, Apr 15, 2024 by Pulumi

azure-native.network.DdosProtectionPlan

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.37.0 published on Monday, Apr 15, 2024 by Pulumi

    A DDoS protection plan in a resource group. Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2020-11-01.

    Other available API versions: 2018-02-01, 2022-05-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-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 (
    	"github.com/pulumi/pulumi-azure-native-sdk/network/v2"
    	"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.

    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: pulumi.String("string"),
    DdosProtectionPlanName: pulumi.String("string"),
    Location: pulumi.String("string"),
    Tags: pulumi.StringMap{
    "string": pulumi.String("string"),
    },
    })
    
    var ddosProtectionPlanResource = new DdosProtectionPlan("ddosProtectionPlanResource", DdosProtectionPlanArgs.builder()        
        .resourceGroupName("string")
        .ddosProtectionPlanName("string")
        .location("string")
        .tags(Map.of("string", "string"))
        .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

    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.
    PublicIPAddresses List<Pulumi.AzureNative.Network.Outputs.SubResourceResponse>
    The list of public IPs associated with the DDoS protection plan resource. This list is read-only.
    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.
    PublicIPAddresses []SubResourceResponse
    The list of public IPs associated with the DDoS protection plan resource. This list is read-only.
    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.
    publicIPAddresses List<SubResourceResponse>
    The list of public IPs associated with the DDoS protection plan resource. This list is read-only.
    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.
    publicIPAddresses SubResourceResponse[]
    The list of public IPs associated with the DDoS protection plan resource. This list is read-only.
    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.
    public_ip_addresses Sequence[SubResourceResponse]
    The list of public IPs associated with the DDoS protection plan resource. This list is read-only.
    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.
    publicIPAddresses List<Property Map>
    The list of public IPs associated with the DDoS protection plan resource. This list is read-only.
    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, 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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.37.0 published on Monday, Apr 15, 2024 by Pulumi