All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.datashare.ShareSubscription Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.datashare;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.datashare.ShareSubscriptionArgs;
import com.pulumi.azurenative.datashare.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * A share subscription data transfer object.
 * Azure REST API version: 2021-08-01. Prior API version in Azure Native 1.x: 2020-09-01.
 * 
 * Other available API versions: 2018-11-01-preview.
 * 
 * ## Example Usage
 * ### ShareSubscriptions_Create
 * 
 * 
 * {@code
 * 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. * * ```sh * $ pulumi import azure-native:datashare:ShareSubscription ShareSubscription1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName} * ``` * */ @ResourceType(type="azure-native:datashare:ShareSubscription") public class ShareSubscription extends com.pulumi.resources.CustomResource { /** * Time at which the share subscription was created. * */ @Export(name="createdAt", refs={String.class}, tree="[0]") private Output createdAt; /** * @return Time at which the share subscription was created. * */ public Output createdAt() { return this.createdAt; } /** * The expiration date of the share subscription. * */ @Export(name="expirationDate", refs={String.class}, tree="[0]") private Output expirationDate; /** * @return The expiration date of the share subscription. * */ public Output> expirationDate() { return Codegen.optional(this.expirationDate); } /** * The invitation id. * */ @Export(name="invitationId", refs={String.class}, tree="[0]") private Output invitationId; /** * @return The invitation id. * */ public Output invitationId() { return this.invitationId; } /** * Name of the azure resource * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Name of the azure resource * */ public Output name() { return this.name; } /** * Email of the provider who created the resource * */ @Export(name="providerEmail", refs={String.class}, tree="[0]") private Output providerEmail; /** * @return Email of the provider who created the resource * */ public Output providerEmail() { return this.providerEmail; } /** * Name of the provider who created the resource * */ @Export(name="providerName", refs={String.class}, tree="[0]") private Output providerName; /** * @return Name of the provider who created the resource * */ public Output providerName() { return this.providerName; } /** * Tenant name of the provider who created the resource * */ @Export(name="providerTenantName", refs={String.class}, tree="[0]") private Output providerTenantName; /** * @return Tenant name of the provider who created the resource * */ public Output providerTenantName() { return this.providerTenantName; } /** * Provisioning state of the share subscription * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return Provisioning state of the share subscription * */ public Output provisioningState() { return this.provisioningState; } /** * Description of share * */ @Export(name="shareDescription", refs={String.class}, tree="[0]") private Output shareDescription; /** * @return Description of share * */ public Output shareDescription() { return this.shareDescription; } /** * Kind of share * */ @Export(name="shareKind", refs={String.class}, tree="[0]") private Output shareKind; /** * @return Kind of share * */ public Output shareKind() { return this.shareKind; } /** * Name of the share * */ @Export(name="shareName", refs={String.class}, tree="[0]") private Output shareName; /** * @return Name of the share * */ public Output shareName() { return this.shareName; } /** * Gets the current status of share subscription. * */ @Export(name="shareSubscriptionStatus", refs={String.class}, tree="[0]") private Output shareSubscriptionStatus; /** * @return Gets the current status of share subscription. * */ public Output shareSubscriptionStatus() { return this.shareSubscriptionStatus; } /** * Terms of a share * */ @Export(name="shareTerms", refs={String.class}, tree="[0]") private Output shareTerms; /** * @return Terms of a share * */ public Output shareTerms() { return this.shareTerms; } /** * Source share location. * */ @Export(name="sourceShareLocation", refs={String.class}, tree="[0]") private Output sourceShareLocation; /** * @return Source share location. * */ public Output sourceShareLocation() { return this.sourceShareLocation; } /** * System Data of the Azure resource. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return System Data of the Azure resource. * */ public Output systemData() { return this.systemData; } /** * Type of the azure resource * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return Type of the azure resource * */ public Output type() { return this.type; } /** * Email of the user who created the resource * */ @Export(name="userEmail", refs={String.class}, tree="[0]") private Output userEmail; /** * @return Email of the user who created the resource * */ public Output userEmail() { return this.userEmail; } /** * Name of the user who created the resource * */ @Export(name="userName", refs={String.class}, tree="[0]") private Output userName; /** * @return Name of the user who created the resource * */ public Output userName() { return this.userName; } /** * * @param name The _unique_ name of the resulting resource. */ public ShareSubscription(java.lang.String name) { this(name, ShareSubscriptionArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public ShareSubscription(java.lang.String name, ShareSubscriptionArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public ShareSubscription(java.lang.String name, ShareSubscriptionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:datashare:ShareSubscription", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private ShareSubscription(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:datashare:ShareSubscription", name, null, makeResourceOptions(options, id), false); } private static ShareSubscriptionArgs makeArgs(ShareSubscriptionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ShareSubscriptionArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:datashare/v20181101preview:ShareSubscription").build()), Output.of(Alias.builder().type("azure-native:datashare/v20191101:ShareSubscription").build()), Output.of(Alias.builder().type("azure-native:datashare/v20200901:ShareSubscription").build()), Output.of(Alias.builder().type("azure-native:datashare/v20201001preview:ShareSubscription").build()), Output.of(Alias.builder().type("azure-native:datashare/v20210801:ShareSubscription").build()) )) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param options Optional settings to control the behavior of the CustomResource. */ public static ShareSubscription get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ShareSubscription(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy