ResourceGuardArgs

data class ResourceGuardArgs(val eTag: Output<String>? = null, val location: Output<String>? = null, val properties: Output<ResourceGuardArgs>? = null, val resourceGroupName: Output<String>? = null, val resourceGuardsName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ResourceGuardArgs>

Uses Azure REST API version 2025-01-01. In version 2.x of the Azure Native provider, it used API version 2023-01-01. Other available API versions: 2023-01-01, 2023-04-01-preview, 2023-05-01, 2023-06-01-preview, 2023-08-01-preview, 2023-11-01, 2023-12-01, 2024-02-01-preview, 2024-03-01, 2024-04-01, 2025-02-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native dataprotection [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Create ResourceGuard

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var resourceGuard = new AzureNative.DataProtection.ResourceGuard("resourceGuard", new()
{
Location = "WestUS",
ResourceGroupName = "SampleResourceGroup",
ResourceGuardsName = "swaggerExample",
Tags =
{
{ "key1", "val1" },
},
});
});
package main
import (
dataprotection "github.com/pulumi/pulumi-azure-native-sdk/dataprotection/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dataprotection.NewResourceGuard(ctx, "resourceGuard", &dataprotection.ResourceGuardArgs{
Location: pulumi.String("WestUS"),
ResourceGroupName: pulumi.String("SampleResourceGroup"),
ResourceGuardsName: pulumi.String("swaggerExample"),
Tags: pulumi.StringMap{
"key1": pulumi.String("val1"),
},
})
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.dataprotection.ResourceGuard;
import com.pulumi.azurenative.dataprotection.ResourceGuardArgs;
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 resourceGuard = new ResourceGuard("resourceGuard", ResourceGuardArgs.builder()
.location("WestUS")
.resourceGroupName("SampleResourceGroup")
.resourceGuardsName("swaggerExample")
.tags(Map.of("key1", "val1"))
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:dataprotection:ResourceGuard VaultGuardTestNew /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}

Constructors

Link copied to clipboard
constructor(eTag: Output<String>? = null, location: Output<String>? = null, properties: Output<ResourceGuardArgs>? = null, resourceGroupName: Output<String>? = null, resourceGuardsName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val eTag: Output<String>? = null

Optional ETag.

Link copied to clipboard
val location: Output<String>? = null

Resource location.

Link copied to clipboard
val properties: Output<ResourceGuardArgs>? = null

ResourceGuardResource properties

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val resourceGuardsName: Output<String>? = null

The name of ResourceGuard

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): ResourceGuardArgs