Class CassandraCluster


  • public class CassandraCluster
    extends com.pulumi.resources.CustomResource
    Representation of a managed Cassandra cluster. Azure REST API version: 2023-04-15. Prior API version in Azure Native 1.x: 2021-03-01-preview. Other available API versions: 2021-07-01-preview, 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 ### CosmosDBManagedCassandraClusterCreate
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.azurenative.documentdb.CassandraCluster;
     import com.pulumi.azurenative.documentdb.CassandraClusterArgs;
     import com.pulumi.azurenative.documentdb.inputs.ClusterResourcePropertiesArgs;
     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 cassandraCluster = new CassandraCluster("cassandraCluster", CassandraClusterArgs.builder()
                 .clusterName("cassandra-prod")
                 .location("West US")
                 .properties(ClusterResourcePropertiesArgs.builder()
                     .authenticationMethod("Cassandra")
                     .cassandraVersion("3.11")
                     .clientCertificates(CertificateArgs.builder()
                         .pem("""
     -----BEGIN CERTIFICATE-----
     ...Base64 encoded certificate...
     -----END CERTIFICATE-----                    """)
                         .build())
                     .clusterNameOverride("ClusterNameIllegalForAzureResource")
                     .delegatedManagementSubnetId("/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/management")
                     .externalGossipCertificates(CertificateArgs.builder()
                         .pem("""
     -----BEGIN CERTIFICATE-----
     ...Base64 encoded certificate...
     -----END CERTIFICATE-----                    """)
                         .build())
                     .externalSeedNodes(                
                         SeedNodeArgs.builder()
                             .ipAddress("10.52.221.2")
                             .build(),
                         SeedNodeArgs.builder()
                             .ipAddress("10.52.221.3")
                             .build(),
                         SeedNodeArgs.builder()
                             .ipAddress("10.52.221.4")
                             .build())
                     .hoursBetweenBackups(24)
                     .initialCassandraAdminPassword("mypassword")
                     .build())
                 .resourceGroupName("cassandra-prod-rg")
                 .tags()
                 .build());
     
         }
     }
     
     
     
    ## Import An existing resource can be imported using its type token, name, and identifier, e.g. ```sh $ pulumi import azure-native:documentdb:CassandraCluster cassandra-prod /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName} ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static CassandraCluster get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.util.Optional<ManagedCassandraManagedServiceIdentityResponse>> identity()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> location()  
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<ClusterResourceResponseProperties> properties()  
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()  
      com.pulumi.core.Output<java.lang.String> type()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CassandraCluster

        public CassandraCluster​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • CassandraCluster

        public CassandraCluster​(java.lang.String name,
                                CassandraClusterArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • CassandraCluster

        public CassandraCluster​(java.lang.String name,
                                CassandraClusterArgs args,
                                @Nullable
                                com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • location

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> location()
        Returns:
        The location of the resource group to which the resource belongs.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        The name of the ARM resource.
      • tags

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".
      • type

        public com.pulumi.core.Output<java.lang.String> type()
        Returns:
        The type of Azure resource.
      • get

        public static CassandraCluster get​(java.lang.String name,
                                           com.pulumi.core.Output<java.lang.String> id,
                                           @Nullable
                                           com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        options - Optional settings to control the behavior of the CustomResource.