ApplicationArgs

data class ApplicationArgs(val applicationName: Output<String>? = null, val clusterName: Output<String>? = null, val properties: Output<ApplicationPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ApplicationArgs>

The HDInsight cluster application API Version: 2018-06-01-preview.

Example Usage

Create Application

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var application = new AzureNative.HDInsight.Application("application", new()
{
ApplicationName = "hue",
ClusterName = "cluster1",
Properties = new AzureNative.HDInsight.Inputs.ApplicationPropertiesArgs
{
ApplicationType = "CustomApplication",
ComputeProfile = new AzureNative.HDInsight.Inputs.ComputeProfileArgs
{
Roles = new[]
{
new AzureNative.HDInsight.Inputs.RoleArgs
{
HardwareProfile = new AzureNative.HDInsight.Inputs.HardwareProfileArgs
{
VmSize = "Standard_D12_v2",
},
Name = "edgenode",
TargetInstanceCount = 1,
},
},
},
Errors = new[] {},
HttpsEndpoints = new[]
{
new AzureNative.HDInsight.Inputs.ApplicationGetHttpsEndpointArgs
{
AccessModes = new[]
{
"WebPage",
},
DestinationPort = 20000,
SubDomainSuffix = "dss",
},
},
InstallScriptActions = new[]
{
new AzureNative.HDInsight.Inputs.RuntimeScriptActionArgs
{
Name = "app-install-app1",
Parameters = "-version latest -port 20000",
Roles = new[]
{
"edgenode",
},
Uri = "https://.../install.sh",
},
},
UninstallScriptActions = new[] {},
},
ResourceGroupName = "rg1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.hdinsight.Application;
import com.pulumi.azurenative.hdinsight.ApplicationArgs;
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 application = new Application("application", ApplicationArgs.builder()
.applicationName("hue")
.clusterName("cluster1")
.properties(Map.ofEntries(
Map.entry("applicationType", "CustomApplication"),
Map.entry("computeProfile", Map.of("roles", Map.ofEntries(
Map.entry("hardwareProfile", Map.of("vmSize", "Standard_D12_v2")),
Map.entry("name", "edgenode"),
Map.entry("targetInstanceCount", 1)
))),
Map.entry("errors", ),
Map.entry("httpsEndpoints", Map.ofEntries(
Map.entry("accessModes", "WebPage"),
Map.entry("destinationPort", 20000),
Map.entry("subDomainSuffix", "dss")
)),
Map.entry("installScriptActions", Map.ofEntries(
Map.entry("name", "app-install-app1"),
Map.entry("parameters", "-version latest -port 20000"),
Map.entry("roles", "edgenode"),
Map.entry("uri", "https://.../install.sh")
)),
Map.entry("uninstallScriptActions", )
))
.resourceGroupName("rg1")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:hdinsight:Application hue /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HDInsight/clusters/cluster1/applications/hue

Constructors

Link copied to clipboard
constructor(applicationName: Output<String>? = null, clusterName: Output<String>? = null, properties: Output<ApplicationPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val applicationName: Output<String>? = null

The constant value for the application name.

Link copied to clipboard
val clusterName: Output<String>? = null

The name of the cluster.

Link copied to clipboard

The properties of the application.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

The tags for the application.

Functions

Link copied to clipboard
open override fun toJava(): ApplicationArgs