Profile Args
data class ProfileArgs(val identity: Output<ManagedServiceIdentityArgs>? = null, val location: Output<String>? = null, val originResponseTimeoutSeconds: Output<Int>? = null, val profileName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<SkuArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ProfileArgs>
A profile is a logical grouping of endpoints that share the same settings. Azure REST API version: 2023-05-01. Prior API version in Azure Native 1.x: 2020-09-01. Other available API versions: 2016-04-02, 2020-09-01, 2023-07-01-preview.
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 = "global",
ProfileName = "profile1",
ResourceGroupName = "RG",
Sku = new AzureNative.Cdn.Inputs.SkuArgs
{
Name = "Premium_AzureFrontDoor",
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/cdn/v2"
"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("global"),
ProfileName: pulumi.String("profile1"),
ResourceGroupName: pulumi.String("RG"),
Sku: &cdn.SkuArgs{
Name: pulumi.String("Premium_AzureFrontDoor"),
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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("global")
.profileName("profile1")
.resourceGroupName("RG")
.sku(Map.of("name", "Premium_AzureFrontDoor"))
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:cdn:Profile profile1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}
Content copied to clipboard
Constructors
Link copied to clipboard
fun ProfileArgs(identity: Output<ManagedServiceIdentityArgs>? = null, location: Output<String>? = null, originResponseTimeoutSeconds: Output<Int>? = null, profileName: Output<String>? = null, resourceGroupName: Output<String>? = null, sku: Output<SkuArgs>? = null, tags: Output<Map<String, String>>? = null)