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

com.pulumi.azurenative.recoveryservices.ReplicationvCenter 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.recoveryservices;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.recoveryservices.ReplicationvCenterArgs;
import com.pulumi.azurenative.recoveryservices.outputs.VCenterPropertiesResponse;
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;

/**
 * vCenter definition.
 * Azure REST API version: 2023-04-01. Prior API version in Azure Native 1.x: 2018-07-10.
 * 
 * Other available API versions: 2021-03-01, 2023-06-01, 2023-08-01, 2024-01-01, 2024-02-01, 2024-04-01.
 * 
 * ## Example Usage
 * ### Add vCenter.
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.recoveryservices.ReplicationvCenter;
 * import com.pulumi.azurenative.recoveryservices.ReplicationvCenterArgs;
 * import com.pulumi.azurenative.recoveryservices.inputs.AddVCenterRequestPropertiesArgs;
 * 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 replicationvCenter = new ReplicationvCenter("replicationvCenter", ReplicationvCenterArgs.builder()
 *             .fabricName("MadhaviFabric")
 *             .properties(AddVCenterRequestPropertiesArgs.builder()
 *                 .friendlyName("esx-78")
 *                 .ipAddress("inmtest78")
 *                 .port("443")
 *                 .processServerId("5A720CAB-39CB-F445-BD1662B0B33164B5")
 *                 .runAsAccountId("2")
 *                 .build())
 *             .resourceGroupName("MadhaviVRG")
 *             .resourceName("MadhaviVault")
 *             .vcenterName("esx-78")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:recoveryservices:ReplicationvCenter esx-78 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationvCenters/{vcenterName} * ``` * */ @ResourceType(type="azure-native:recoveryservices:ReplicationvCenter") public class ReplicationvCenter extends com.pulumi.resources.CustomResource { /** * Resource Location * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return Resource Location * */ public Output> location() { return Codegen.optional(this.location); } /** * Resource Name * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Resource Name * */ public Output name() { return this.name; } /** * VCenter related data. * */ @Export(name="properties", refs={VCenterPropertiesResponse.class}, tree="[0]") private Output properties; /** * @return VCenter related data. * */ public Output properties() { return this.properties; } /** * Resource Type * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return Resource Type * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public ReplicationvCenter(java.lang.String name) { this(name, ReplicationvCenterArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public ReplicationvCenter(java.lang.String name, ReplicationvCenterArgs 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 ReplicationvCenter(java.lang.String name, ReplicationvCenterArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:recoveryservices:ReplicationvCenter", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private ReplicationvCenter(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:recoveryservices:ReplicationvCenter", name, null, makeResourceOptions(options, id), false); } private static ReplicationvCenterArgs makeArgs(ReplicationvCenterArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ReplicationvCenterArgs.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:recoveryservices/v20160810:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20180110:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20180710:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20210210:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20210301:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20210401:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20210601:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20210701:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20210801:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20211001:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20211101:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20211201:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20220101:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20220201:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20220301:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20220401:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20220501:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20220801:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20220910:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20221001:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20230101:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20230201:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20230401:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20230601:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20230801:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20240101:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20240201:ReplicationvCenter").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20240401:ReplicationvCenter").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 ReplicationvCenter get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ReplicationvCenter(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy