Cache Nodes Operation Args
data class CacheNodesOperationArgs(val customerResourceName: Output<String>? = null, val location: Output<String>? = null, val properties: Output<CacheNodeOldResponseArgs>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<CacheNodesOperationArgs>
Concrete tracked resource types can be created by aliasing this type using a specific property type. Uses Azure REST API version 2023-05-01-preview.
Example Usage
CacheNodesOperations_CreateorUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var cacheNodesOperation = new AzureNative.ConnectedCache.CacheNodesOperation("cacheNodesOperation", new()
{
CustomerResourceName = "lwrsyhvfpcfrwrim",
Location = "westus",
Properties = new AzureNative.ConnectedCache.Inputs.CacheNodeOldResponseArgs
{
StatusCode = "movtzupooyhdqk",
StatusDetails = "quuziibkwtgf",
StatusText = "bjnsrpzaofjntleoesjwammgbi",
},
ResourceGroupName = "rgConnectedCache",
Tags =
{
{ "key8256", "oreqiywrjkmate" },
},
});
});
Content copied to clipboard
package main
import (
connectedcache "github.com/pulumi/pulumi-azure-native-sdk/connectedcache/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := connectedcache.NewCacheNodesOperation(ctx, "cacheNodesOperation", &connectedcache.CacheNodesOperationArgs{
CustomerResourceName: pulumi.String("lwrsyhvfpcfrwrim"),
Location: pulumi.String("westus"),
Properties: &connectedcache.CacheNodeOldResponseArgs{
StatusCode: pulumi.String("movtzupooyhdqk"),
StatusDetails: pulumi.String("quuziibkwtgf"),
StatusText: pulumi.String("bjnsrpzaofjntleoesjwammgbi"),
},
ResourceGroupName: pulumi.String("rgConnectedCache"),
Tags: pulumi.StringMap{
"key8256": pulumi.String("oreqiywrjkmate"),
},
})
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.connectedcache.CacheNodesOperation;
import com.pulumi.azurenative.connectedcache.CacheNodesOperationArgs;
import com.pulumi.azurenative.connectedcache.inputs.CacheNodeOldResponseArgs;
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 cacheNodesOperation = new CacheNodesOperation("cacheNodesOperation", CacheNodesOperationArgs.builder()
.customerResourceName("lwrsyhvfpcfrwrim")
.location("westus")
.properties(CacheNodeOldResponseArgs.builder()
.statusCode("movtzupooyhdqk")
.statusDetails("quuziibkwtgf")
.statusText("bjnsrpzaofjntleoesjwammgbi")
.build())
.resourceGroupName("rgConnectedCache")
.tags(Map.of("key8256", "oreqiywrjkmate"))
.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:connectedcache:CacheNodesOperation MCCTPTest2 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}
Content copied to clipboard