azure-native.cdn.Profile
Explore with Pulumi AI
CDN profile is a logical grouping of endpoints that share the same settings, such as CDN provider and pricing tier. API Version: 2020-09-01.
Example Usage
Profiles_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var profile = new AzureNative.Cdn.Profile("profile", new()
{
Location = "WestCentralUs",
ProfileName = "profile1",
ResourceGroupName = "RG",
Sku = new AzureNative.Cdn.Inputs.SkuArgs
{
Name = "Standard_Verizon",
},
});
});
package main
import (
cdn "github.com/pulumi/pulumi-azure-native-sdk/cdn"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cdn.NewProfile(ctx, "profile", &cdn.ProfileArgs{
Location: pulumi.String("WestCentralUs"),
ProfileName: pulumi.String("profile1"),
ResourceGroupName: pulumi.String("RG"),
Sku: &cdn.SkuArgs{
Name: pulumi.String("Standard_Verizon"),
},
})
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.cdn.Profile;
import com.pulumi.azurenative.cdn.ProfileArgs;
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 profile = new Profile("profile", ProfileArgs.builder()
.location("WestCentralUs")
.profileName("profile1")
.resourceGroupName("RG")
.sku(Map.of("name", "Standard_Verizon"))
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
profile = azure_native.cdn.Profile("profile",
location="WestCentralUs",
profile_name="profile1",
resource_group_name="RG",
sku=azure_native.cdn.SkuArgs(
name="Standard_Verizon",
))
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const profile = new azure_native.cdn.Profile("profile", {
location: "WestCentralUs",
profileName: "profile1",
resourceGroupName: "RG",
sku: {
name: "Standard_Verizon",
},
});
resources:
profile:
type: azure-native:cdn:Profile
properties:
location: WestCentralUs
profileName: profile1
resourceGroupName: RG
sku:
name: Standard_Verizon
Create Profile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Profile(name: string, args: ProfileArgs, opts?: CustomResourceOptions);
@overload
def Profile(resource_name: str,
args: ProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Profile(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
sku: Optional[SkuArgs] = None,
location: Optional[str] = None,
profile_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewProfile(ctx *Context, name string, args ProfileArgs, opts ...ResourceOption) (*Profile, error)
public Profile(string name, ProfileArgs args, CustomResourceOptions? opts = null)
public Profile(String name, ProfileArgs args)
public Profile(String name, ProfileArgs args, CustomResourceOptions options)
type: azure-native:cdn:Profile
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 ProfileArgs
- 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 ProfileArgs
- 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 ProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProfileArgs
- 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 profileResource = new AzureNative.Cdn.Profile("profileResource", new()
{
ResourceGroupName = "string",
Sku =
{
{ "name", "string" },
},
Location = "string",
ProfileName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := cdn.NewProfile(ctx, "profileResource", &cdn.ProfileArgs{
ResourceGroupName: "string",
Sku: map[string]interface{}{
"name": "string",
},
Location: "string",
ProfileName: "string",
Tags: map[string]interface{}{
"string": "string",
},
})
var profileResource = new Profile("profileResource", ProfileArgs.builder()
.resourceGroupName("string")
.sku(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.location("string")
.profileName("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
profile_resource = azure_native.cdn.Profile("profileResource",
resource_group_name=string,
sku={
name: string,
},
location=string,
profile_name=string,
tags={
string: string,
})
const profileResource = new azure_native.cdn.Profile("profileResource", {
resourceGroupName: "string",
sku: {
name: "string",
},
location: "string",
profileName: "string",
tags: {
string: "string",
},
});
type: azure-native:cdn:Profile
properties:
location: string
profileName: string
resourceGroupName: string
sku:
name: string
tags:
string: string
Profile 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 Profile resource accepts the following input properties:
- Resource
Group stringName - Name of the Resource group within the Azure subscription.
- Sku
Pulumi.
Azure Native. Cdn. Inputs. Sku - The pricing tier (defines a CDN provider, feature list and rate) of the CDN profile.
- Location string
- Resource location.
- Profile
Name string - Name of the CDN profile which is unique within the resource group.
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - Name of the Resource group within the Azure subscription.
- Sku
Sku
Args - The pricing tier (defines a CDN provider, feature list and rate) of the CDN profile.
- Location string
- Resource location.
- Profile
Name string - Name of the CDN profile which is unique within the resource group.
- map[string]string
- Resource tags.
- resource
Group StringName - Name of the Resource group within the Azure subscription.
- sku Sku
- The pricing tier (defines a CDN provider, feature list and rate) of the CDN profile.
- location String
- Resource location.
- profile
Name String - Name of the CDN profile which is unique within the resource group.
- Map<String,String>
- Resource tags.
- resource
Group stringName - Name of the Resource group within the Azure subscription.
- sku Sku
- The pricing tier (defines a CDN provider, feature list and rate) of the CDN profile.
- location string
- Resource location.
- profile
Name string - Name of the CDN profile which is unique within the resource group.
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - Name of the Resource group within the Azure subscription.
- sku
Sku
Args - The pricing tier (defines a CDN provider, feature list and rate) of the CDN profile.
- location str
- Resource location.
- profile_
name str - Name of the CDN profile which is unique within the resource group.
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - Name of the Resource group within the Azure subscription.
- sku Property Map
- The pricing tier (defines a CDN provider, feature list and rate) of the CDN profile.
- location String
- Resource location.
- profile
Name String - Name of the CDN profile which is unique within the resource group.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Profile resource produces the following output properties:
- Frontdoor
Id string - The Id of the frontdoor.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Provisioning
State string - Provisioning status of the profile.
- Resource
State string - Resource status of the profile.
- System
Data Pulumi.Azure Native. Cdn. Outputs. System Data Response - Read only system data
- Type string
- Resource type.
- Frontdoor
Id string - The Id of the frontdoor.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Provisioning
State string - Provisioning status of the profile.
- Resource
State string - Resource status of the profile.
- System
Data SystemData Response - Read only system data
- Type string
- Resource type.
- frontdoor
Id String - The Id of the frontdoor.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- provisioning
State String - Provisioning status of the profile.
- resource
State String - Resource status of the profile.
- system
Data SystemData Response - Read only system data
- type String
- Resource type.
- frontdoor
Id string - The Id of the frontdoor.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name.
- provisioning
State string - Provisioning status of the profile.
- resource
State string - Resource status of the profile.
- system
Data SystemData Response - Read only system data
- type string
- Resource type.
- frontdoor_
id str - The Id of the frontdoor.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name.
- provisioning_
state str - Provisioning status of the profile.
- resource_
state str - Resource status of the profile.
- system_
data SystemData Response - Read only system data
- type str
- Resource type.
- frontdoor
Id String - The Id of the frontdoor.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- provisioning
State String - Provisioning status of the profile.
- resource
State String - Resource status of the profile.
- system
Data Property Map - Read only system data
- type String
- Resource type.
Supporting Types
Sku, SkuArgs
- Name
string | Pulumi.
Azure Native. Cdn. Sku Name - Name of the pricing tier.
- name
String | "Standard_Verizon" | "Premium_Verizon" | "Custom_Verizon" | "Standard_Akamai" | "Standard_China
Cdn" | "Standard_Microsoft" | "Premium_China Cdn" | "Standard_Azure Front Door" | "Premium_Azure Front Door" | "Standard_955Band Width_China Cdn" | "Standard_Avg Band Width_China Cdn" | "Standard Plus_China Cdn" | "Standard Plus_955Band Width_China Cdn" | "Standard Plus_Avg Band Width_China Cdn" - Name of the pricing tier.
SkuName, SkuNameArgs
- Standard_Verizon
- Standard_Verizon
- Premium_Verizon
- Premium_Verizon
- Custom_Verizon
- Custom_Verizon
- Standard_Akamai
- Standard_Akamai
- Standard_China
Cdn - Standard_ChinaCdn
- Standard_Microsoft
- Standard_Microsoft
- Premium_China
Cdn - Premium_ChinaCdn
- Standard_Azure
Front Door - Standard_AzureFrontDoor
- Premium_Azure
Front Door - Premium_AzureFrontDoor
- Standard_955Band
Width_China Cdn - Standard_955BandWidth_ChinaCdn
- Standard_Avg
Band Width_China Cdn - Standard_AvgBandWidth_ChinaCdn
- Standard
Plus_China Cdn - StandardPlus_ChinaCdn
- Standard
Plus_955Band Width_China Cdn - StandardPlus_955BandWidth_ChinaCdn
- Standard
Plus_Avg Band Width_China Cdn - StandardPlus_AvgBandWidth_ChinaCdn
- Sku
Name_Standard_Verizon - Standard_Verizon
- Sku
Name_Premium_Verizon - Premium_Verizon
- Sku
Name_Custom_Verizon - Custom_Verizon
- Sku
Name_Standard_Akamai - Standard_Akamai
- Sku
Name_Standard_China Cdn - Standard_ChinaCdn
- Sku
Name_Standard_Microsoft - Standard_Microsoft
- Sku
Name_Premium_China Cdn - Premium_ChinaCdn
- Sku
Name_Standard_Azure Front Door - Standard_AzureFrontDoor
- Sku
Name_Premium_Azure Front Door - Premium_AzureFrontDoor
- Sku
Name_Standard_955Band Width_China Cdn - Standard_955BandWidth_ChinaCdn
- Sku
Name_Standard_Avg Band Width_China Cdn - Standard_AvgBandWidth_ChinaCdn
- Sku
Name_Standard Plus_China Cdn - StandardPlus_ChinaCdn
- Sku
Name_Standard Plus_955Band Width_China Cdn - StandardPlus_955BandWidth_ChinaCdn
- Sku
Name_Standard Plus_Avg Band Width_China Cdn - StandardPlus_AvgBandWidth_ChinaCdn
- Standard_Verizon
- Standard_Verizon
- Premium_Verizon
- Premium_Verizon
- Custom_Verizon
- Custom_Verizon
- Standard_Akamai
- Standard_Akamai
- Standard_China
Cdn - Standard_ChinaCdn
- Standard_Microsoft
- Standard_Microsoft
- Premium_China
Cdn - Premium_ChinaCdn
- Standard_Azure
Front Door - Standard_AzureFrontDoor
- Premium_Azure
Front Door - Premium_AzureFrontDoor
- Standard_955Band
Width_China Cdn - Standard_955BandWidth_ChinaCdn
- Standard_Avg
Band Width_China Cdn - Standard_AvgBandWidth_ChinaCdn
- Standard
Plus_China Cdn - StandardPlus_ChinaCdn
- Standard
Plus_955Band Width_China Cdn - StandardPlus_955BandWidth_ChinaCdn
- Standard
Plus_Avg Band Width_China Cdn - StandardPlus_AvgBandWidth_ChinaCdn
- Standard_Verizon
- Standard_Verizon
- Premium_Verizon
- Premium_Verizon
- Custom_Verizon
- Custom_Verizon
- Standard_Akamai
- Standard_Akamai
- Standard_China
Cdn - Standard_ChinaCdn
- Standard_Microsoft
- Standard_Microsoft
- Premium_China
Cdn - Premium_ChinaCdn
- Standard_Azure
Front Door - Standard_AzureFrontDoor
- Premium_Azure
Front Door - Premium_AzureFrontDoor
- Standard_955Band
Width_China Cdn - Standard_955BandWidth_ChinaCdn
- Standard_Avg
Band Width_China Cdn - Standard_AvgBandWidth_ChinaCdn
- Standard
Plus_China Cdn - StandardPlus_ChinaCdn
- Standard
Plus_955Band Width_China Cdn - StandardPlus_955BandWidth_ChinaCdn
- Standard
Plus_Avg Band Width_China Cdn - StandardPlus_AvgBandWidth_ChinaCdn
- STANDARD_VERIZON
- Standard_Verizon
- PREMIUM_VERIZON
- Premium_Verizon
- CUSTOM_VERIZON
- Custom_Verizon
- STANDARD_AKAMAI
- Standard_Akamai
- STANDARD_CHINA_CDN
- Standard_ChinaCdn
- STANDARD_MICROSOFT
- Standard_Microsoft
- PREMIUM_CHINA_CDN
- Premium_ChinaCdn
- STANDARD_AZURE_FRONT_DOOR
- Standard_AzureFrontDoor
- PREMIUM_AZURE_FRONT_DOOR
- Premium_AzureFrontDoor
- STANDARD_955_BAND_WIDTH_CHINA_CDN
- Standard_955BandWidth_ChinaCdn
- STANDARD_AVG_BAND_WIDTH_CHINA_CDN
- Standard_AvgBandWidth_ChinaCdn
- STANDARD_PLUS_CHINA_CDN
- StandardPlus_ChinaCdn
- STANDARD_PLUS_955_BAND_WIDTH_CHINA_CDN
- StandardPlus_955BandWidth_ChinaCdn
- STANDARD_PLUS_AVG_BAND_WIDTH_CHINA_CDN
- StandardPlus_AvgBandWidth_ChinaCdn
- "Standard_Verizon"
- Standard_Verizon
- "Premium_Verizon"
- Premium_Verizon
- "Custom_Verizon"
- Custom_Verizon
- "Standard_Akamai"
- Standard_Akamai
- "Standard_China
Cdn" - Standard_ChinaCdn
- "Standard_Microsoft"
- Standard_Microsoft
- "Premium_China
Cdn" - Premium_ChinaCdn
- "Standard_Azure
Front Door" - Standard_AzureFrontDoor
- "Premium_Azure
Front Door" - Premium_AzureFrontDoor
- "Standard_955Band
Width_China Cdn" - Standard_955BandWidth_ChinaCdn
- "Standard_Avg
Band Width_China Cdn" - Standard_AvgBandWidth_ChinaCdn
- "Standard
Plus_China Cdn" - StandardPlus_ChinaCdn
- "Standard
Plus_955Band Width_China Cdn" - StandardPlus_955BandWidth_ChinaCdn
- "Standard
Plus_Avg Band Width_China Cdn" - StandardPlus_AvgBandWidth_ChinaCdn
SkuResponse, SkuResponseArgs
- Name string
- Name of the pricing tier.
- Name string
- Name of the pricing tier.
- name String
- Name of the pricing tier.
- name string
- Name of the pricing tier.
- name str
- Name of the pricing tier.
- name String
- Name of the pricing tier.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC)
- Created
By string - An identifier for the identity that created the resource
- Created
By stringType - The type of identity that created the resource
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - An identifier for the identity that last modified the resource
- Last
Modified stringBy Type - The type of identity that last modified the resource
- Created
At string - The timestamp of resource creation (UTC)
- Created
By string - An identifier for the identity that created the resource
- Created
By stringType - The type of identity that created the resource
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - An identifier for the identity that last modified the resource
- Last
Modified stringBy Type - The type of identity that last modified the resource
- created
At String - The timestamp of resource creation (UTC)
- created
By String - An identifier for the identity that created the resource
- created
By StringType - The type of identity that created the resource
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - An identifier for the identity that last modified the resource
- last
Modified StringBy Type - The type of identity that last modified the resource
- created
At string - The timestamp of resource creation (UTC)
- created
By string - An identifier for the identity that created the resource
- created
By stringType - The type of identity that created the resource
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - An identifier for the identity that last modified the resource
- last
Modified stringBy Type - The type of identity that last modified the resource
- created_
at str - The timestamp of resource creation (UTC)
- created_
by str - An identifier for the identity that created the resource
- created_
by_ strtype - The type of identity that created the resource
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - An identifier for the identity that last modified the resource
- last_
modified_ strby_ type - The type of identity that last modified the resource
- created
At String - The timestamp of resource creation (UTC)
- created
By String - An identifier for the identity that created the resource
- created
By StringType - The type of identity that created the resource
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - An identifier for the identity that last modified the resource
- last
Modified StringBy Type - The type of identity that last modified the resource
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:cdn:Profile profile1 /subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1
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