ResourceGuard

API Version: 2021-10-01-preview.

Example Usage

Create ResourceGuard

using System.Collections.Generic;
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/go/azure/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

Properties

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

Optional ETag.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Input Managed Identity Details

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

Resource location.

Link copied to clipboard
val name: Output<String>

Resource name associated with the resource.

Link copied to clipboard

ResourceGuardResource properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

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

Resource tags.

Link copied to clipboard
val type: Output<String>

Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...

Link copied to clipboard
val urn: Output<String>