Share

class Share : KotlinCustomResource

Manages a Data Share.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.datashare.Account;
import com.pulumi.azure.datashare.AccountArgs;
import com.pulumi.azure.datashare.inputs.AccountIdentityArgs;
import com.pulumi.azure.datashare.Share;
import com.pulumi.azure.datashare.ShareArgs;
import com.pulumi.azure.datashare.inputs.ShareSnapshotScheduleArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.identity(AccountIdentityArgs.builder()
.type("SystemAssigned")
.build())
.tags(Map.of("foo", "bar"))
.build());
var exampleShare = new Share("exampleShare", ShareArgs.builder()
.accountId(exampleAccount.id())
.kind("CopyBased")
.description("example desc")
.terms("example terms")
.snapshotSchedule(ShareSnapshotScheduleArgs.builder()
.name("example-ss")
.recurrence("Day")
.startTime("2020-04-17T04:47:52.9614956Z")
.build())
.build());
}
}

Import

Data Shares can be imported using the resource id, e.g.

$ pulumi import azure:datashare/share:Share example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataShare/accounts/account1/shares/share1

Properties

Link copied to clipboard
val accountId: Output<String>

The ID of the Data Share account in which the Data Share is created. Changing this forces a new Data Share to be created.

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

The Data Share's description.

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

The kind of the Data Share. Possible values are CopyBased and InPlace. Changing this forces a new Data Share to be created.

Link copied to clipboard
val name: Output<String>

The name which should be used for this Data Share. Changing this forces a new Data Share to be created.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A snapshot_schedule block as defined below.

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

The terms of the Data Share.

Link copied to clipboard
val urn: Output<String>