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

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

There is a newer version: 2.78.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.InvitationArgs;
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 Invitation data transfer object.
 * Azure REST API version: 2021-08-01. Prior API version in Azure Native 1.x: 2020-09-01.
 * 
 * ## Example Usage
 * ### Invitations_Create
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.datashare.Invitation;
 * import com.pulumi.azurenative.datashare.InvitationArgs;
 * 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 }{{@code
 *     public static void main(String[] args) }{{@code
 *         Pulumi.run(App::stack);
 *     }}{@code
 * 
 *     public static void stack(Context ctx) }{{@code
 *         var invitation = new Invitation("invitation", InvitationArgs.builder()
 *             .accountName("Account1")
 *             .expirationDate("2020-08-26T22:33:24.5785265Z")
 *             .invitationName("Invitation1")
 *             .resourceGroupName("SampleResourceGroup")
 *             .shareName("Share1")
 *             .targetEmail("receiver}{@literal @}{@code microsoft.com")
 *             .build());
 * 
 *     }}{@code
 * }}{@code
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:datashare:Invitation Invitation1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/invitations/{invitationName} * ``` * */ @ResourceType(type="azure-native:datashare:Invitation") public class Invitation extends com.pulumi.resources.CustomResource { /** * The expiration date for the invitation and share subscription. * */ @Export(name="expirationDate", refs={String.class}, tree="[0]") private Output expirationDate; /** * @return The expiration date for the invitation and share subscription. * */ public Output> expirationDate() { return Codegen.optional(this.expirationDate); } /** * unique invitation id * */ @Export(name="invitationId", refs={String.class}, tree="[0]") private Output invitationId; /** * @return unique invitation id * */ public Output invitationId() { return this.invitationId; } /** * The status of the invitation. * */ @Export(name="invitationStatus", refs={String.class}, tree="[0]") private Output invitationStatus; /** * @return The status of the invitation. * */ public Output invitationStatus() { return this.invitationStatus; } /** * 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; } /** * The time the recipient responded to the invitation. * */ @Export(name="respondedAt", refs={String.class}, tree="[0]") private Output respondedAt; /** * @return The time the recipient responded to the invitation. * */ public Output respondedAt() { return this.respondedAt; } /** * Gets the time at which the invitation was sent. * */ @Export(name="sentAt", refs={String.class}, tree="[0]") private Output sentAt; /** * @return Gets the time at which the invitation was sent. * */ public Output sentAt() { return this.sentAt; } /** * 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; } /** * The target Azure AD Id. Can't be combined with email. * */ @Export(name="targetActiveDirectoryId", refs={String.class}, tree="[0]") private Output targetActiveDirectoryId; /** * @return The target Azure AD Id. Can't be combined with email. * */ public Output> targetActiveDirectoryId() { return Codegen.optional(this.targetActiveDirectoryId); } /** * The email the invitation is directed to. * */ @Export(name="targetEmail", refs={String.class}, tree="[0]") private Output targetEmail; /** * @return The email the invitation is directed to. * */ public Output> targetEmail() { return Codegen.optional(this.targetEmail); } /** * The target user or application Id that invitation is being sent to. * Must be specified along TargetActiveDirectoryId. This enables sending * invitations to specific users or applications in an AD tenant. * */ @Export(name="targetObjectId", refs={String.class}, tree="[0]") private Output targetObjectId; /** * @return The target user or application Id that invitation is being sent to. * Must be specified along TargetActiveDirectoryId. This enables sending * invitations to specific users or applications in an AD tenant. * */ public Output> targetObjectId() { return Codegen.optional(this.targetObjectId); } /** * 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 Invitation(java.lang.String name) { this(name, InvitationArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Invitation(java.lang.String name, InvitationArgs 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 Invitation(java.lang.String name, InvitationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:datashare:Invitation", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Invitation(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:datashare:Invitation", name, null, makeResourceOptions(options, id), false); } private static InvitationArgs makeArgs(InvitationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? InvitationArgs.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:Invitation").build()), Output.of(Alias.builder().type("azure-native:datashare/v20191101:Invitation").build()), Output.of(Alias.builder().type("azure-native:datashare/v20200901:Invitation").build()), Output.of(Alias.builder().type("azure-native:datashare/v20201001preview:Invitation").build()), Output.of(Alias.builder().type("azure-native:datashare/v20210801:Invitation").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 Invitation get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Invitation(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy