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

com.pulumi.azurenative.delegatednetwork.DelegatedSubnetServiceDetails 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.delegatednetwork;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.delegatednetwork.DelegatedSubnetServiceDetailsArgs;
import com.pulumi.azurenative.delegatednetwork.outputs.ControllerDetailsResponse;
import com.pulumi.azurenative.delegatednetwork.outputs.SubnetDetailsResponse;
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;

/**
 * Represents an instance of a orchestrator.
 * Azure REST API version: 2021-03-15. Prior API version in Azure Native 1.x: 2021-03-15.
 * 
 * Other available API versions: 2023-05-18-preview, 2023-06-27-preview.
 * 
 * ## Example Usage
 * ### put delegated subnet
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.delegatednetwork.DelegatedSubnetServiceDetails;
 * import com.pulumi.azurenative.delegatednetwork.DelegatedSubnetServiceDetailsArgs;
 * import com.pulumi.azurenative.delegatednetwork.inputs.ControllerDetailsArgs;
 * import com.pulumi.azurenative.delegatednetwork.inputs.SubnetDetailsArgs;
 * 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 delegatedSubnetServiceDetails = new DelegatedSubnetServiceDetails("delegatedSubnetServiceDetails", DelegatedSubnetServiceDetailsArgs.builder()
 *             .controllerDetails(ControllerDetailsArgs.builder()
 *                 .id("/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.DelegatedNetwork/controller/dnctestcontroller")
 *                 .build())
 *             .location("West US")
 *             .resourceGroupName("TestRG")
 *             .resourceName("delegated1")
 *             .subnetDetails(SubnetDetailsArgs.builder()
 *                 .id("/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet")
 *                 .build())
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:delegatednetwork:DelegatedSubnetServiceDetails delegated1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DelegatedNetwork/delegatedSubnets/{resourceName} * ``` * */ @ResourceType(type="azure-native:delegatednetwork:DelegatedSubnetServiceDetails") public class DelegatedSubnetServiceDetails extends com.pulumi.resources.CustomResource { /** * Properties of the controller. * */ @Export(name="controllerDetails", refs={ControllerDetailsResponse.class}, tree="[0]") private Output controllerDetails; /** * @return Properties of the controller. * */ public Output> controllerDetails() { return Codegen.optional(this.controllerDetails); } /** * Location of the resource. * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return Location of the resource. * */ public Output> location() { return Codegen.optional(this.location); } /** * The name of the resource. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the resource. * */ public Output name() { return this.name; } /** * The current state of dnc delegated subnet resource. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The current state of dnc delegated subnet resource. * */ public Output provisioningState() { return this.provisioningState; } /** * Resource guid. * */ @Export(name="resourceGuid", refs={String.class}, tree="[0]") private Output resourceGuid; /** * @return Resource guid. * */ public Output resourceGuid() { return this.resourceGuid; } /** * subnet details * */ @Export(name="subnetDetails", refs={SubnetDetailsResponse.class}, tree="[0]") private Output subnetDetails; /** * @return subnet details * */ public Output> subnetDetails() { return Codegen.optional(this.subnetDetails); } /** * The resource tags. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return The resource tags. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * The type of resource. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of resource. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public DelegatedSubnetServiceDetails(java.lang.String name) { this(name, DelegatedSubnetServiceDetailsArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public DelegatedSubnetServiceDetails(java.lang.String name, DelegatedSubnetServiceDetailsArgs 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 DelegatedSubnetServiceDetails(java.lang.String name, DelegatedSubnetServiceDetailsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:delegatednetwork:DelegatedSubnetServiceDetails", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private DelegatedSubnetServiceDetails(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:delegatednetwork:DelegatedSubnetServiceDetails", name, null, makeResourceOptions(options, id), false); } private static DelegatedSubnetServiceDetailsArgs makeArgs(DelegatedSubnetServiceDetailsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? DelegatedSubnetServiceDetailsArgs.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:delegatednetwork/v20200808preview:DelegatedSubnetServiceDetails").build()), Output.of(Alias.builder().type("azure-native:delegatednetwork/v20210315:DelegatedSubnetServiceDetails").build()), Output.of(Alias.builder().type("azure-native:delegatednetwork/v20230518preview:DelegatedSubnetServiceDetails").build()), Output.of(Alias.builder().type("azure-native:delegatednetwork/v20230627preview:DelegatedSubnetServiceDetails").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 DelegatedSubnetServiceDetails get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new DelegatedSubnetServiceDetails(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy