Rule Set Args
data class RuleSetArgs(val profileName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val ruleSetName: Output<String>? = null) : ConvertibleToJava<RuleSetArgs>
Friendly RuleSet name mapping to the any RuleSet or secret related information. Uses Azure REST API version 2023-05-01. In version 1.x of the Azure Native provider, it used API version 2020-09-01. Other available API versions: 2023-07-01-preview, 2024-02-01, 2024-05-01-preview, 2024-06-01-preview, 2024-09-01.
Example Usage
RuleSets_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var ruleSet = new AzureNative.Cdn.RuleSet("ruleSet", new()
{
ProfileName = "profile1",
ResourceGroupName = "RG",
RuleSetName = "ruleSet1",
});
});
Content copied to clipboard
package main
import (
cdn "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.NewRuleSet(ctx, "ruleSet", &cdn.RuleSetArgs{
ProfileName: pulumi.String("profile1"),
ResourceGroupName: pulumi.String("RG"),
RuleSetName: pulumi.String("ruleSet1"),
})
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.RuleSet;
import com.pulumi.azurenative.cdn.RuleSetArgs;
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 ruleSet = new RuleSet("ruleSet", RuleSetArgs.builder()
.profileName("profile1")
.resourceGroupName("RG")
.ruleSetName("ruleSet1")
.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:RuleSet ruleSet1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}
Content copied to clipboard
Properties
Link copied to clipboard
Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group.
Link copied to clipboard
Name of the Resource group within the Azure subscription.
Link copied to clipboard
Name of the rule set under the profile which is unique globally