ResourceGuardArgs

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

API Version: 2021-10-01-preview.

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"
"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/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/resourceGuards/VaultGuardTestNew

Constructors

Link copied to clipboard
constructor(eTag: Output<String>? = null, identity: Output<DppIdentityDetailsArgs>? = null, location: Output<String>? = 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 identity: Output<DppIdentityDetailsArgs>? = null

Input Managed Identity Details

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

Resource location.

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

The name of the resource group where the backup vault is present.

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