ShareSubscription

class ShareSubscription : KotlinCustomResource

A share subscription data transfer object. Uses Azure REST API version 2021-08-01. In version 2.x of the Azure Native provider, it used API version 2021-08-01.

Example Usage

ShareSubscriptions_Create

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var shareSubscription = new AzureNative.DataShare.ShareSubscription("shareSubscription", new()
{
AccountName = "Account1",
ExpirationDate = "2020-08-26T22:33:24.5785265Z",
InvitationId = "12345678-1234-1234-12345678abd",
ResourceGroupName = "SampleResourceGroup",
ShareSubscriptionName = "ShareSubscription1",
SourceShareLocation = "eastus2",
});
});
package main
import (
datashare "github.com/pulumi/pulumi-azure-native-sdk/datashare/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datashare.NewShareSubscription(ctx, "shareSubscription", &datashare.ShareSubscriptionArgs{
AccountName: pulumi.String("Account1"),
ExpirationDate: pulumi.String("2020-08-26T22:33:24.5785265Z"),
InvitationId: pulumi.String("12345678-1234-1234-12345678abd"),
ResourceGroupName: pulumi.String("SampleResourceGroup"),
ShareSubscriptionName: pulumi.String("ShareSubscription1"),
SourceShareLocation: pulumi.String("eastus2"),
})
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.datashare.ShareSubscription;
import com.pulumi.azurenative.datashare.ShareSubscriptionArgs;
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 shareSubscription = new ShareSubscription("shareSubscription", ShareSubscriptionArgs.builder()
.accountName("Account1")
.expirationDate("2020-08-26T22:33:24.5785265Z")
.invitationId("12345678-1234-1234-12345678abd")
.resourceGroupName("SampleResourceGroup")
.shareSubscriptionName("ShareSubscription1")
.sourceShareLocation("eastus2")
.build());
}
}

Import

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

$ pulumi import azure-native:datashare:ShareSubscription ShareSubscription1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val createdAt: Output<String>

Time at which the share subscription was created.

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

The expiration date of the share subscription.

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

The invitation id.

Link copied to clipboard
val name: Output<String>

Name of the azure resource

Link copied to clipboard
val providerEmail: Output<String>

Email of the provider who created the resource

Link copied to clipboard
val providerName: Output<String>

Name of the provider who created the resource

Link copied to clipboard

Tenant name of the provider who created the resource

Link copied to clipboard

Provisioning state of the share subscription

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

Description of share

Link copied to clipboard
val shareKind: Output<String>

Kind of share

Link copied to clipboard
val shareName: Output<String>

Name of the share

Link copied to clipboard

Gets the current status of share subscription.

Link copied to clipboard
val shareTerms: Output<String>

Terms of a share

Link copied to clipboard

Source share location.

Link copied to clipboard

System Data of the Azure resource.

Link copied to clipboard
val type: Output<String>

Type of the azure resource

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val userEmail: Output<String>

Email of the user who created the resource

Link copied to clipboard
val userName: Output<String>

Name of the user who created the resource