Class CassandraCluster


  • public class CassandraCluster
    extends com.pulumi.resources.CustomResource
    Representation of a managed Cassandra cluster. API Version: 2021-03-01-preview. ## Example Usage ### CosmosDBManagedCassandraClusterCreate ```java 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 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(Map.ofEntries( Map.entry("authenticationMethod", "Cassandra"), Map.entry("cassandraVersion", "3.11"), Map.entry("clientCertificates", Map.of("pem", """ -----BEGIN CERTIFICATE----- ...Base64 encoded certificate... -----END CERTIFICATE----- """)), Map.entry("clusterNameOverride", "ClusterNameIllegalForAzureResource"), Map.entry("delegatedManagementSubnetId", "/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/management"), Map.entry("externalGossipCertificates", Map.of("pem", """ -----BEGIN CERTIFICATE----- ...Base64 encoded certificate... -----END CERTIFICATE----- """)), Map.entry("externalSeedNodes", Map.of("ipAddress", "10.52.221.2"), Map.of("ipAddress", "10.52.221.3"), Map.of("ipAddress", "10.52.221.4")), Map.entry("hoursBetweenBackups", 24), Map.entry("initialCassandraAdminPassword", "mypassword") )) .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/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod ```
    • 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<ManagedServiceIdentityResponse>> 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, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn
      • 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.