com.pulumi.azurenative.kusto.Cluster Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.kusto;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.kusto.ClusterArgs;
import com.pulumi.azurenative.kusto.outputs.AcceptedAudiencesResponse;
import com.pulumi.azurenative.kusto.outputs.AzureSkuResponse;
import com.pulumi.azurenative.kusto.outputs.IdentityResponse;
import com.pulumi.azurenative.kusto.outputs.KeyVaultPropertiesResponse;
import com.pulumi.azurenative.kusto.outputs.LanguageExtensionsListResponse;
import com.pulumi.azurenative.kusto.outputs.OptimizedAutoscaleResponse;
import com.pulumi.azurenative.kusto.outputs.PrivateEndpointConnectionResponse;
import com.pulumi.azurenative.kusto.outputs.SystemDataResponse;
import com.pulumi.azurenative.kusto.outputs.TrustedExternalTenantResponse;
import com.pulumi.azurenative.kusto.outputs.VirtualNetworkConfigurationResponse;
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.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Class representing a Kusto cluster.
* Azure REST API version: 2022-12-29. Prior API version in Azure Native 1.x: 2021-01-01.
*
* Other available API versions: 2022-07-07, 2023-05-02, 2023-08-15.
*
* ## Example Usage
* ### KustoClustersCreateOrUpdate
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.kusto.Cluster;
* import com.pulumi.azurenative.kusto.ClusterArgs;
* import com.pulumi.azurenative.kusto.inputs.IdentityArgs;
* import com.pulumi.azurenative.kusto.inputs.LanguageExtensionsListArgs;
* import com.pulumi.azurenative.kusto.inputs.AzureSkuArgs;
* 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 cluster = new Cluster("cluster", ClusterArgs.builder()
* .allowedIpRangeList("0.0.0.0/0")
* .clusterName("kustoCluster")
* .enableAutoStop(true)
* .enableDoubleEncryption(false)
* .enablePurge(true)
* .enableStreamingIngest(true)
* .identity(IdentityArgs.builder()
* .type("SystemAssigned")
* .build())
* .languageExtensions(LanguageExtensionsListArgs.builder()
* .value(
* LanguageExtensionArgs.builder()
* .languageExtensionImageName("Python3_10_8")
* .languageExtensionName("PYTHON")
* .build(),
* LanguageExtensionArgs.builder()
* .languageExtensionImageName("R")
* .languageExtensionName("R")
* .build())
* .build())
* .location("westus")
* .publicIPType("DualStack")
* .publicNetworkAccess("Enabled")
* .resourceGroupName("kustorptest")
* .sku(AzureSkuArgs.builder()
* .capacity(2)
* .name("Standard_L16as_v3")
* .tier("Standard")
* .build())
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:kusto:Cluster kustoCluster /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}
* ```
*
*/
@ResourceType(type="azure-native:kusto:Cluster")
public class Cluster extends com.pulumi.resources.CustomResource {
/**
* The cluster's accepted audiences.
*
*/
@Export(name="acceptedAudiences", refs={List.class,AcceptedAudiencesResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> acceptedAudiences;
/**
* @return The cluster's accepted audiences.
*
*/
public Output>> acceptedAudiences() {
return Codegen.optional(this.acceptedAudiences);
}
/**
* List of allowed FQDNs(Fully Qualified Domain Name) for egress from Cluster.
*
*/
@Export(name="allowedFqdnList", refs={List.class,String.class}, tree="[0,1]")
private Output* @Nullable */ List> allowedFqdnList;
/**
* @return List of allowed FQDNs(Fully Qualified Domain Name) for egress from Cluster.
*
*/
public Output>> allowedFqdnList() {
return Codegen.optional(this.allowedFqdnList);
}
/**
* The list of ips in the format of CIDR allowed to connect to the cluster.
*
*/
@Export(name="allowedIpRangeList", refs={List.class,String.class}, tree="[0,1]")
private Output* @Nullable */ List> allowedIpRangeList;
/**
* @return The list of ips in the format of CIDR allowed to connect to the cluster.
*
*/
public Output>> allowedIpRangeList() {
return Codegen.optional(this.allowedIpRangeList);
}
/**
* The cluster data ingestion URI.
*
*/
@Export(name="dataIngestionUri", refs={String.class}, tree="[0]")
private Output dataIngestionUri;
/**
* @return The cluster data ingestion URI.
*
*/
public Output dataIngestionUri() {
return this.dataIngestionUri;
}
/**
* A boolean value that indicates if the cluster could be automatically stopped (due to lack of data or no activity for many days).
*
*/
@Export(name="enableAutoStop", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> enableAutoStop;
/**
* @return A boolean value that indicates if the cluster could be automatically stopped (due to lack of data or no activity for many days).
*
*/
public Output> enableAutoStop() {
return Codegen.optional(this.enableAutoStop);
}
/**
* A boolean value that indicates if the cluster's disks are encrypted.
*
*/
@Export(name="enableDiskEncryption", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> enableDiskEncryption;
/**
* @return A boolean value that indicates if the cluster's disks are encrypted.
*
*/
public Output> enableDiskEncryption() {
return Codegen.optional(this.enableDiskEncryption);
}
/**
* A boolean value that indicates if double encryption is enabled.
*
*/
@Export(name="enableDoubleEncryption", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> enableDoubleEncryption;
/**
* @return A boolean value that indicates if double encryption is enabled.
*
*/
public Output> enableDoubleEncryption() {
return Codegen.optional(this.enableDoubleEncryption);
}
/**
* A boolean value that indicates if the purge operations are enabled.
*
*/
@Export(name="enablePurge", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> enablePurge;
/**
* @return A boolean value that indicates if the purge operations are enabled.
*
*/
public Output> enablePurge() {
return Codegen.optional(this.enablePurge);
}
/**
* A boolean value that indicates if the streaming ingest is enabled.
*
*/
@Export(name="enableStreamingIngest", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> enableStreamingIngest;
/**
* @return A boolean value that indicates if the streaming ingest is enabled.
*
*/
public Output> enableStreamingIngest() {
return Codegen.optional(this.enableStreamingIngest);
}
/**
* The engine type
*
*/
@Export(name="engineType", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> engineType;
/**
* @return The engine type
*
*/
public Output> engineType() {
return Codegen.optional(this.engineType);
}
/**
* A unique read-only string that changes whenever the resource is updated.
*
*/
@Export(name="etag", refs={String.class}, tree="[0]")
private Output etag;
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
public Output etag() {
return this.etag;
}
/**
* The identity of the cluster, if configured.
*
*/
@Export(name="identity", refs={IdentityResponse.class}, tree="[0]")
private Output* @Nullable */ IdentityResponse> identity;
/**
* @return The identity of the cluster, if configured.
*
*/
public Output> identity() {
return Codegen.optional(this.identity);
}
/**
* KeyVault properties for the cluster encryption.
*
*/
@Export(name="keyVaultProperties", refs={KeyVaultPropertiesResponse.class}, tree="[0]")
private Output* @Nullable */ KeyVaultPropertiesResponse> keyVaultProperties;
/**
* @return KeyVault properties for the cluster encryption.
*
*/
public Output> keyVaultProperties() {
return Codegen.optional(this.keyVaultProperties);
}
/**
* List of the cluster's language extensions.
*
*/
@Export(name="languageExtensions", refs={LanguageExtensionsListResponse.class}, tree="[0]")
private Output* @Nullable */ LanguageExtensionsListResponse> languageExtensions;
/**
* @return List of the cluster's language extensions.
*
*/
public Output> languageExtensions() {
return Codegen.optional(this.languageExtensions);
}
/**
* The geo-location where the resource lives
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output location;
/**
* @return The geo-location where the resource lives
*
*/
public Output location() {
return this.location;
}
/**
* The name of the resource
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name of the resource
*
*/
public Output name() {
return this.name;
}
/**
* Optimized auto scale definition.
*
*/
@Export(name="optimizedAutoscale", refs={OptimizedAutoscaleResponse.class}, tree="[0]")
private Output* @Nullable */ OptimizedAutoscaleResponse> optimizedAutoscale;
/**
* @return Optimized auto scale definition.
*
*/
public Output> optimizedAutoscale() {
return Codegen.optional(this.optimizedAutoscale);
}
/**
* A list of private endpoint connections.
*
*/
@Export(name="privateEndpointConnections", refs={List.class,PrivateEndpointConnectionResponse.class}, tree="[0,1]")
private Output> privateEndpointConnections;
/**
* @return A list of private endpoint connections.
*
*/
public Output> privateEndpointConnections() {
return this.privateEndpointConnections;
}
/**
* The provisioned state of the resource.
*
*/
@Export(name="provisioningState", refs={String.class}, tree="[0]")
private Output provisioningState;
/**
* @return The provisioned state of the resource.
*
*/
public Output provisioningState() {
return this.provisioningState;
}
/**
* Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 and IPv6)
*
*/
@Export(name="publicIPType", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> publicIPType;
/**
* @return Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 and IPv6)
*
*/
public Output> publicIPType() {
return Codegen.optional(this.publicIPType);
}
/**
* Public network access to the cluster is enabled by default. When disabled, only private endpoint connection to the cluster is allowed
*
*/
@Export(name="publicNetworkAccess", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> publicNetworkAccess;
/**
* @return Public network access to the cluster is enabled by default. When disabled, only private endpoint connection to the cluster is allowed
*
*/
public Output> publicNetworkAccess() {
return Codegen.optional(this.publicNetworkAccess);
}
/**
* Whether or not to restrict outbound network access. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
*
*/
@Export(name="restrictOutboundNetworkAccess", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> restrictOutboundNetworkAccess;
/**
* @return Whether or not to restrict outbound network access. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
*
*/
public Output> restrictOutboundNetworkAccess() {
return Codegen.optional(this.restrictOutboundNetworkAccess);
}
/**
* The SKU of the cluster.
*
*/
@Export(name="sku", refs={AzureSkuResponse.class}, tree="[0]")
private Output sku;
/**
* @return The SKU of the cluster.
*
*/
public Output sku() {
return this.sku;
}
/**
* The state of the resource.
*
*/
@Export(name="state", refs={String.class}, tree="[0]")
private Output state;
/**
* @return The state of the resource.
*
*/
public Output state() {
return this.state;
}
/**
* The reason for the cluster's current state.
*
*/
@Export(name="stateReason", refs={String.class}, tree="[0]")
private Output stateReason;
/**
* @return The reason for the cluster's current state.
*
*/
public Output stateReason() {
return this.stateReason;
}
/**
* Metadata pertaining to creation and last modification of the resource.
*
*/
@Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]")
private Output systemData;
/**
* @return Metadata pertaining to creation and last modification of the resource.
*
*/
public Output systemData() {
return this.systemData;
}
/**
* Resource tags.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return Resource tags.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* The cluster's external tenants.
*
*/
@Export(name="trustedExternalTenants", refs={List.class,TrustedExternalTenantResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> trustedExternalTenants;
/**
* @return The cluster's external tenants.
*
*/
public Output>> trustedExternalTenants() {
return Codegen.optional(this.trustedExternalTenants);
}
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
public Output type() {
return this.type;
}
/**
* The cluster URI.
*
*/
@Export(name="uri", refs={String.class}, tree="[0]")
private Output uri;
/**
* @return The cluster URI.
*
*/
public Output uri() {
return this.uri;
}
/**
* Virtual network definition.
*
*/
@Export(name="virtualNetworkConfiguration", refs={VirtualNetworkConfigurationResponse.class}, tree="[0]")
private Output* @Nullable */ VirtualNetworkConfigurationResponse> virtualNetworkConfiguration;
/**
* @return Virtual network definition.
*
*/
public Output> virtualNetworkConfiguration() {
return Codegen.optional(this.virtualNetworkConfiguration);
}
/**
* The availability zones of the cluster.
*
*/
@Export(name="zones", refs={List.class,String.class}, tree="[0,1]")
private Output* @Nullable */ List> zones;
/**
* @return The availability zones of the cluster.
*
*/
public Output>> zones() {
return Codegen.optional(this.zones);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public Cluster(java.lang.String name) {
this(name, ClusterArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public Cluster(java.lang.String name, ClusterArgs 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 Cluster(java.lang.String name, ClusterArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:kusto:Cluster", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private Cluster(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:kusto:Cluster", name, null, makeResourceOptions(options, id), false);
}
private static ClusterArgs makeArgs(ClusterArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? ClusterArgs.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:kusto/v20170907privatepreview:Cluster").build()),
Output.of(Alias.builder().type("azure-native:kusto/v20180907preview:Cluster").build()),
Output.of(Alias.builder().type("azure-native:kusto/v20190121:Cluster").build()),
Output.of(Alias.builder().type("azure-native:kusto/v20190515:Cluster").build()),
Output.of(Alias.builder().type("azure-native:kusto/v20190907:Cluster").build()),
Output.of(Alias.builder().type("azure-native:kusto/v20191109:Cluster").build()),
Output.of(Alias.builder().type("azure-native:kusto/v20200215:Cluster").build()),
Output.of(Alias.builder().type("azure-native:kusto/v20200614:Cluster").build()),
Output.of(Alias.builder().type("azure-native:kusto/v20200918:Cluster").build()),
Output.of(Alias.builder().type("azure-native:kusto/v20210101:Cluster").build()),
Output.of(Alias.builder().type("azure-native:kusto/v20210827:Cluster").build()),
Output.of(Alias.builder().type("azure-native:kusto/v20220201:Cluster").build()),
Output.of(Alias.builder().type("azure-native:kusto/v20220707:Cluster").build()),
Output.of(Alias.builder().type("azure-native:kusto/v20221111:Cluster").build()),
Output.of(Alias.builder().type("azure-native:kusto/v20221229:Cluster").build()),
Output.of(Alias.builder().type("azure-native:kusto/v20230502:Cluster").build()),
Output.of(Alias.builder().type("azure-native:kusto/v20230815:Cluster").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 Cluster get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new Cluster(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy