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

com.pulumi.azurenative.azurestack.LinkedSubscription 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.azurestack;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.azurestack.LinkedSubscriptionArgs;
import com.pulumi.azurenative.azurestack.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.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Linked Subscription information.
 * Azure REST API version: 2020-06-01-preview. Prior API version in Azure Native 1.x: 2020-06-01-preview.
 * 
 * ## Example Usage
 * ### Create or update a Linked Subscription.
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.azurestack.LinkedSubscription;
 * import com.pulumi.azurenative.azurestack.LinkedSubscriptionArgs;
 * 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 linkedSubscription = new LinkedSubscription("linkedSubscription", LinkedSubscriptionArgs.builder()
 *             .linkedSubscriptionId("104fbb77-2b0e-476a-83de-65ad8acd1f0b")
 *             .linkedSubscriptionName("testLinkedSubscription")
 *             .location("eastus")
 *             .registrationResourceId("/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testRegistration")
 *             .resourceGroup("azurestack")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:azurestack:LinkedSubscription testLinkedSubscription /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName} * ``` * */ @ResourceType(type="azure-native:azurestack:LinkedSubscription") public class LinkedSubscription extends com.pulumi.resources.CustomResource { /** * The status of the remote management connection of the Azure Stack device. * */ @Export(name="deviceConnectionStatus", refs={String.class}, tree="[0]") private Output deviceConnectionStatus; /** * @return The status of the remote management connection of the Azure Stack device. * */ public Output deviceConnectionStatus() { return this.deviceConnectionStatus; } /** * The identifier of the Azure Stack device for remote management. * */ @Export(name="deviceId", refs={String.class}, tree="[0]") private Output deviceId; /** * @return The identifier of the Azure Stack device for remote management. * */ public Output deviceId() { return this.deviceId; } /** * The connection state of the Azure Stack device. * */ @Export(name="deviceLinkState", refs={String.class}, tree="[0]") private Output deviceLinkState; /** * @return The connection state of the Azure Stack device. * */ public Output deviceLinkState() { return this.deviceLinkState; } /** * The object identifier associated with the Azure Stack device connecting to Azure. * */ @Export(name="deviceObjectId", refs={String.class}, tree="[0]") private Output deviceObjectId; /** * @return The object identifier associated with the Azure Stack device connecting to Azure. * */ public Output deviceObjectId() { return this.deviceObjectId; } /** * The entity tag used for optimistic concurrency when modifying the resource. * */ @Export(name="etag", refs={String.class}, tree="[0]") private Output etag; /** * @return The entity tag used for optimistic concurrency when modifying the resource. * */ public Output> etag() { return Codegen.optional(this.etag); } /** * The kind of the resource. * */ @Export(name="kind", refs={String.class}, tree="[0]") private Output kind; /** * @return The kind of the resource. * */ public Output kind() { return this.kind; } /** * The last remote management connection time for the Azure Stack device connected to the linked subscription resource. * */ @Export(name="lastConnectedTime", refs={String.class}, tree="[0]") private Output lastConnectedTime; /** * @return The last remote management connection time for the Azure Stack device connected to the linked subscription resource. * */ public Output lastConnectedTime() { return this.lastConnectedTime; } /** * The identifier associated with the device subscription. * */ @Export(name="linkedSubscriptionId", refs={String.class}, tree="[0]") private Output linkedSubscriptionId; /** * @return The identifier associated with the device subscription. * */ public Output> linkedSubscriptionId() { return Codegen.optional(this.linkedSubscriptionId); } /** * Location of the resource. * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return Location of the resource. * */ public Output location() { return this.location; } /** * Name of the resource. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Name of the resource. * */ public Output name() { return this.name; } /** * The identifier associated with the device registration. * */ @Export(name="registrationResourceId", refs={String.class}, tree="[0]") private Output registrationResourceId; /** * @return The identifier associated with the device registration. * */ public Output> registrationResourceId() { return Codegen.optional(this.registrationResourceId); } /** * Metadata pertaining to creation and last modification of the resource. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Metadata pertaining to creation and last modification of the resource. * */ public Output systemData() { return this.systemData; } /** * Custom tags for the resource. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return Custom tags for the resource. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * Type of Resource. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return Type of Resource. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public LinkedSubscription(java.lang.String name) { this(name, LinkedSubscriptionArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public LinkedSubscription(java.lang.String name, LinkedSubscriptionArgs 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 LinkedSubscription(java.lang.String name, LinkedSubscriptionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:azurestack:LinkedSubscription", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private LinkedSubscription(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:azurestack:LinkedSubscription", name, null, makeResourceOptions(options, id), false); } private static LinkedSubscriptionArgs makeArgs(LinkedSubscriptionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? LinkedSubscriptionArgs.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:azurestack/v20200601preview:LinkedSubscription").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 LinkedSubscription get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new LinkedSubscription(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy