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

com.pulumi.azurenative.documentdb.CassandraDataCenter 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.documentdb;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.documentdb.CassandraDataCenterArgs;
import com.pulumi.azurenative.documentdb.outputs.DataCenterResourceResponseProperties;
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;

/**
 * A managed Cassandra data center.
 * Azure REST API version: 2023-04-15. Prior API version in Azure Native 1.x: 2021-03-01-preview.
 * 
 * Other available API versions: 2023-09-15, 2023-09-15-preview, 2023-11-15, 2023-11-15-preview, 2024-02-15-preview, 2024-05-15, 2024-05-15-preview, 2024-08-15, 2024-09-01-preview.
 * 
 * ## Example Usage
 * ### CosmosDBManagedCassandraDataCenterCreate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.documentdb.CassandraDataCenter;
 * import com.pulumi.azurenative.documentdb.CassandraDataCenterArgs;
 * import com.pulumi.azurenative.documentdb.inputs.DataCenterResourcePropertiesArgs;
 * 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 cassandraDataCenter = new CassandraDataCenter("cassandraDataCenter", CassandraDataCenterArgs.builder()
 *             .clusterName("cassandra-prod")
 *             .dataCenterName("dc1")
 *             .properties(DataCenterResourcePropertiesArgs.builder()
 *                 .base64EncodedCassandraYamlFragment("Y29tcGFjdGlvbl90aHJvdWdocHV0X21iX3Blcl9zZWM6IDMyCmNvbXBhY3Rpb25fbGFyZ2VfcGFydGl0aW9uX3dhcm5pbmdfdGhyZXNob2xkX21iOiAxMDA=")
 *                 .dataCenterLocation("West US 2")
 *                 .delegatedSubnetId("/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/dc1-subnet")
 *                 .nodeCount(9)
 *                 .build())
 *             .resourceGroupName("cassandra-prod-rg")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:documentdb:CassandraDataCenter dc1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName} * ``` * */ @ResourceType(type="azure-native:documentdb:CassandraDataCenter") public class CassandraDataCenter extends com.pulumi.resources.CustomResource { /** * The name of the database account. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the database account. * */ public Output name() { return this.name; } /** * Properties of a managed Cassandra data center. * */ @Export(name="properties", refs={DataCenterResourceResponseProperties.class}, tree="[0]") private Output properties; /** * @return Properties of a managed Cassandra data center. * */ public Output properties() { return this.properties; } /** * The type of Azure resource. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of Azure resource. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public CassandraDataCenter(java.lang.String name) { this(name, CassandraDataCenterArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public CassandraDataCenter(java.lang.String name, CassandraDataCenterArgs 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 CassandraDataCenter(java.lang.String name, CassandraDataCenterArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:documentdb:CassandraDataCenter", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private CassandraDataCenter(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:documentdb:CassandraDataCenter", name, null, makeResourceOptions(options, id), false); } private static CassandraDataCenterArgs makeArgs(CassandraDataCenterArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? CassandraDataCenterArgs.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:documentdb/v20210301preview:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20210401preview:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20210701preview:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20211015:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20211015preview:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20211115preview:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20220215preview:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20220515:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20220515preview:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20220815:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20220815preview:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20221115:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20221115preview:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20230301preview:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20230315:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20230315preview:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20230415:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20230915:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20230915preview:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20231115:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20231115preview:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20240215preview:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20240515:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20240515preview:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20240815:CassandraDataCenter").build()), Output.of(Alias.builder().type("azure-native:documentdb/v20240901preview:CassandraDataCenter").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 CassandraDataCenter get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new CassandraDataCenter(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy