StorageSyncServiceArgs

data class StorageSyncServiceArgs(val identity: Output<ManagedServiceIdentityArgs>? = null, val incomingTrafficPolicy: Output<Either<String, IncomingTrafficPolicy>>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val storageSyncServiceName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val useIdentity: Output<Boolean>? = null) : ConvertibleToJava<StorageSyncServiceArgs>

Storage Sync Service object. Uses Azure REST API version 2022-09-01. In version 2.x of the Azure Native provider, it used API version 2022-06-01. Other available API versions: 2022-06-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native storagesync [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

StorageSyncServices_Create

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var storageSyncService = new AzureNative.StorageSync.StorageSyncService("storageSyncService", new()
{
Identity = new AzureNative.StorageSync.Inputs.ManagedServiceIdentityArgs
{
Type = "SystemAssigned, UserAssigned",
},
IncomingTrafficPolicy = AzureNative.StorageSync.IncomingTrafficPolicy.AllowAllTraffic,
Location = "WestUS",
ResourceGroupName = "SampleResourceGroup_1",
StorageSyncServiceName = "SampleStorageSyncService_1",
Tags = null,
});
});
package main
import (
storagesync "github.com/pulumi/pulumi-azure-native-sdk/storagesync/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storagesync.NewStorageSyncService(ctx, "storageSyncService", &storagesync.StorageSyncServiceArgs{
Identity: &storagesync.ManagedServiceIdentityArgs{
Type: pulumi.String("SystemAssigned, UserAssigned"),
},
IncomingTrafficPolicy: pulumi.String(storagesync.IncomingTrafficPolicyAllowAllTraffic),
Location: pulumi.String("WestUS"),
ResourceGroupName: pulumi.String("SampleResourceGroup_1"),
StorageSyncServiceName: pulumi.String("SampleStorageSyncService_1"),
Tags: pulumi.StringMap{},
})
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.storagesync.StorageSyncService;
import com.pulumi.azurenative.storagesync.StorageSyncServiceArgs;
import com.pulumi.azurenative.storagesync.inputs.ManagedServiceIdentityArgs;
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 storageSyncService = new StorageSyncService("storageSyncService", StorageSyncServiceArgs.builder()
.identity(ManagedServiceIdentityArgs.builder()
.type("SystemAssigned, UserAssigned")
.build())
.incomingTrafficPolicy("AllowAllTraffic")
.location("WestUS")
.resourceGroupName("SampleResourceGroup_1")
.storageSyncServiceName("SampleStorageSyncService_1")
.tags()
.build());
}
}

Import

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

$ pulumi import azure-native:storagesync:StorageSyncService SampleStorageSyncService_1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}

Constructors

Link copied to clipboard
constructor(identity: Output<ManagedServiceIdentityArgs>? = null, incomingTrafficPolicy: Output<Either<String, IncomingTrafficPolicy>>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, storageSyncServiceName: Output<String>? = null, tags: Output<Map<String, String>>? = null, useIdentity: Output<Boolean>? = null)

Properties

Link copied to clipboard

managed identities for the Storage Sync to interact with other Azure services without maintaining any secrets or credentials in code.

Link copied to clipboard
val incomingTrafficPolicy: Output<Either<String, IncomingTrafficPolicy>>? = null

Incoming Traffic Policy

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

The geo-location where the resource lives

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 storageSyncServiceName: Output<String>? = null

Name of Storage Sync Service resource.

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

Resource tags.

Link copied to clipboard
val useIdentity: Output<Boolean>? = null

Use Identity authorization when customer have finished setup RBAC permissions.

Functions

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