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

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

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.recoveryservices.ReplicationProtectionClusterArgs;
import com.pulumi.azurenative.recoveryservices.outputs.ReplicationProtectionClusterPropertiesResponse;
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 javax.annotation.Nullable;

/**
 * Replication protection Cluster.
 * Azure REST API version: 2024-02-01.
 * 
 * Other available API versions: 2024-04-01.
 * 
 * ## Example Usage
 * ### Create Replication protection Cluster.
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.recoveryservices.ReplicationProtectionCluster;
 * import com.pulumi.azurenative.recoveryservices.ReplicationProtectionClusterArgs;
 * import com.pulumi.azurenative.recoveryservices.inputs.ReplicationProtectionClusterPropertiesArgs;
 * import com.pulumi.azurenative.recoveryservices.inputs.A2AReplicationProtectionClusterDetailsArgs;
 * 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 replicationProtectionCluster = new ReplicationProtectionCluster("replicationProtectionCluster", ReplicationProtectionClusterArgs.builder()
 *             .fabricName("eastus")
 *             .properties(ReplicationProtectionClusterPropertiesArgs.builder()
 *                 .policyId("/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationPolicies/24-hour-retention-policy")
 *                 .providerSpecificDetails(A2AReplicationProtectionClusterDetailsArgs.builder()
 *                     .instanceType("A2A")
 *                     .build())
 *                 .recoveryContainerId("/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/centraluseuap/replicationProtectionContainers/centraluseuap-container")
 *                 .build())
 *             .protectionContainerName("eastus-container")
 *             .replicationProtectionClusterName("cluster12")
 *             .resourceGroupName("resourceGroupPS1")
 *             .resourceName("vault1")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:recoveryservices:ReplicationProtectionCluster cluster12 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName} * ``` * */ @ResourceType(type="azure-native:recoveryservices:ReplicationProtectionCluster") public class ReplicationProtectionCluster extends com.pulumi.resources.CustomResource { /** * The name of the protection cluster. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the protection cluster. * */ public Output name() { return this.name; } /** * The custom data. * */ @Export(name="properties", refs={ReplicationProtectionClusterPropertiesResponse.class}, tree="[0]") private Output properties; /** * @return The custom data. * */ public Output properties() { return this.properties; } /** * The Type of the object. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The Type of the object. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public ReplicationProtectionCluster(java.lang.String name) { this(name, ReplicationProtectionClusterArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public ReplicationProtectionCluster(java.lang.String name, ReplicationProtectionClusterArgs 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 ReplicationProtectionCluster(java.lang.String name, ReplicationProtectionClusterArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:recoveryservices:ReplicationProtectionCluster", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private ReplicationProtectionCluster(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:recoveryservices:ReplicationProtectionCluster", name, null, makeResourceOptions(options, id), false); } private static ReplicationProtectionClusterArgs makeArgs(ReplicationProtectionClusterArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ReplicationProtectionClusterArgs.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/v20240201:ReplicationProtectionCluster").build()), Output.of(Alias.builder().type("azure-native:recoveryservices/v20240401:ReplicationProtectionCluster").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 ReplicationProtectionCluster get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ReplicationProtectionCluster(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy