com.pulumi.aws.emrserverless.kotlin.ApplicationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.emrserverless.kotlin
import com.pulumi.aws.emrserverless.ApplicationArgs.builder
import com.pulumi.aws.emrserverless.kotlin.inputs.ApplicationAutoStartConfigurationArgs
import com.pulumi.aws.emrserverless.kotlin.inputs.ApplicationAutoStartConfigurationArgsBuilder
import com.pulumi.aws.emrserverless.kotlin.inputs.ApplicationAutoStopConfigurationArgs
import com.pulumi.aws.emrserverless.kotlin.inputs.ApplicationAutoStopConfigurationArgsBuilder
import com.pulumi.aws.emrserverless.kotlin.inputs.ApplicationImageConfigurationArgs
import com.pulumi.aws.emrserverless.kotlin.inputs.ApplicationImageConfigurationArgsBuilder
import com.pulumi.aws.emrserverless.kotlin.inputs.ApplicationInitialCapacityArgs
import com.pulumi.aws.emrserverless.kotlin.inputs.ApplicationInitialCapacityArgsBuilder
import com.pulumi.aws.emrserverless.kotlin.inputs.ApplicationInteractiveConfigurationArgs
import com.pulumi.aws.emrserverless.kotlin.inputs.ApplicationInteractiveConfigurationArgsBuilder
import com.pulumi.aws.emrserverless.kotlin.inputs.ApplicationMaximumCapacityArgs
import com.pulumi.aws.emrserverless.kotlin.inputs.ApplicationMaximumCapacityArgsBuilder
import com.pulumi.aws.emrserverless.kotlin.inputs.ApplicationNetworkConfigurationArgs
import com.pulumi.aws.emrserverless.kotlin.inputs.ApplicationNetworkConfigurationArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Manages an EMR Serverless Application.
* ## Example Usage
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.emrserverless.Application("example", {
* name: "example",
* releaseLabel: "emr-6.6.0",
* type: "hive",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.emrserverless.Application("example",
* name="example",
* release_label="emr-6.6.0",
* type="hive")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.EmrServerless.Application("example", new()
* {
* Name = "example",
* ReleaseLabel = "emr-6.6.0",
* Type = "hive",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/emrserverless"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := emrserverless.NewApplication(ctx, "example", &emrserverless.ApplicationArgs{
* Name: pulumi.String("example"),
* ReleaseLabel: pulumi.String("emr-6.6.0"),
* Type: pulumi.String("hive"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.emrserverless.Application;
* import com.pulumi.aws.emrserverless.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 example = new Application("example", ApplicationArgs.builder()
* .name("example")
* .releaseLabel("emr-6.6.0")
* .type("hive")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:emrserverless:Application
* properties:
* name: example
* releaseLabel: emr-6.6.0
* type: hive
* ```
*
* ### Initial Capacity Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.emrserverless.Application("example", {
* name: "example",
* releaseLabel: "emr-6.6.0",
* type: "hive",
* initialCapacities: [{
* initialCapacityType: "HiveDriver",
* initialCapacityConfig: {
* workerCount: 1,
* workerConfiguration: {
* cpu: "2 vCPU",
* memory: "10 GB",
* },
* },
* }],
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.emrserverless.Application("example",
* name="example",
* release_label="emr-6.6.0",
* type="hive",
* initial_capacities=[{
* "initial_capacity_type": "HiveDriver",
* "initial_capacity_config": {
* "worker_count": 1,
* "worker_configuration": {
* "cpu": "2 vCPU",
* "memory": "10 GB",
* },
* },
* }])
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.EmrServerless.Application("example", new()
* {
* Name = "example",
* ReleaseLabel = "emr-6.6.0",
* Type = "hive",
* InitialCapacities = new[]
* {
* new Aws.EmrServerless.Inputs.ApplicationInitialCapacityArgs
* {
* InitialCapacityType = "HiveDriver",
* InitialCapacityConfig = new Aws.EmrServerless.Inputs.ApplicationInitialCapacityInitialCapacityConfigArgs
* {
* WorkerCount = 1,
* WorkerConfiguration = new Aws.EmrServerless.Inputs.ApplicationInitialCapacityInitialCapacityConfigWorkerConfigurationArgs
* {
* Cpu = "2 vCPU",
* Memory = "10 GB",
* },
* },
* },
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/emrserverless"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := emrserverless.NewApplication(ctx, "example", &emrserverless.ApplicationArgs{
* Name: pulumi.String("example"),
* ReleaseLabel: pulumi.String("emr-6.6.0"),
* Type: pulumi.String("hive"),
* InitialCapacities: emrserverless.ApplicationInitialCapacityArray{
* &emrserverless.ApplicationInitialCapacityArgs{
* InitialCapacityType: pulumi.String("HiveDriver"),
* InitialCapacityConfig: &emrserverless.ApplicationInitialCapacityInitialCapacityConfigArgs{
* WorkerCount: pulumi.Int(1),
* WorkerConfiguration: &emrserverless.ApplicationInitialCapacityInitialCapacityConfigWorkerConfigurationArgs{
* Cpu: pulumi.String("2 vCPU"),
* Memory: pulumi.String("10 GB"),
* },
* },
* },
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.emrserverless.Application;
* import com.pulumi.aws.emrserverless.ApplicationArgs;
* import com.pulumi.aws.emrserverless.inputs.ApplicationInitialCapacityArgs;
* import com.pulumi.aws.emrserverless.inputs.ApplicationInitialCapacityInitialCapacityConfigArgs;
* import com.pulumi.aws.emrserverless.inputs.ApplicationInitialCapacityInitialCapacityConfigWorkerConfigurationArgs;
* 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 example = new Application("example", ApplicationArgs.builder()
* .name("example")
* .releaseLabel("emr-6.6.0")
* .type("hive")
* .initialCapacities(ApplicationInitialCapacityArgs.builder()
* .initialCapacityType("HiveDriver")
* .initialCapacityConfig(ApplicationInitialCapacityInitialCapacityConfigArgs.builder()
* .workerCount(1)
* .workerConfiguration(ApplicationInitialCapacityInitialCapacityConfigWorkerConfigurationArgs.builder()
* .cpu("2 vCPU")
* .memory("10 GB")
* .build())
* .build())
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:emrserverless:Application
* properties:
* name: example
* releaseLabel: emr-6.6.0
* type: hive
* initialCapacities:
* - initialCapacityType: HiveDriver
* initialCapacityConfig:
* workerCount: 1
* workerConfiguration:
* cpu: 2 vCPU
* memory: 10 GB
* ```
*
* ### Maximum Capacity Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.emrserverless.Application("example", {
* name: "example",
* releaseLabel: "emr-6.6.0",
* type: "hive",
* maximumCapacity: {
* cpu: "2 vCPU",
* memory: "10 GB",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.emrserverless.Application("example",
* name="example",
* release_label="emr-6.6.0",
* type="hive",
* maximum_capacity={
* "cpu": "2 vCPU",
* "memory": "10 GB",
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.EmrServerless.Application("example", new()
* {
* Name = "example",
* ReleaseLabel = "emr-6.6.0",
* Type = "hive",
* MaximumCapacity = new Aws.EmrServerless.Inputs.ApplicationMaximumCapacityArgs
* {
* Cpu = "2 vCPU",
* Memory = "10 GB",
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/emrserverless"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := emrserverless.NewApplication(ctx, "example", &emrserverless.ApplicationArgs{
* Name: pulumi.String("example"),
* ReleaseLabel: pulumi.String("emr-6.6.0"),
* Type: pulumi.String("hive"),
* MaximumCapacity: &emrserverless.ApplicationMaximumCapacityArgs{
* Cpu: pulumi.String("2 vCPU"),
* Memory: pulumi.String("10 GB"),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.emrserverless.Application;
* import com.pulumi.aws.emrserverless.ApplicationArgs;
* import com.pulumi.aws.emrserverless.inputs.ApplicationMaximumCapacityArgs;
* 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 example = new Application("example", ApplicationArgs.builder()
* .name("example")
* .releaseLabel("emr-6.6.0")
* .type("hive")
* .maximumCapacity(ApplicationMaximumCapacityArgs.builder()
* .cpu("2 vCPU")
* .memory("10 GB")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:emrserverless:Application
* properties:
* name: example
* releaseLabel: emr-6.6.0
* type: hive
* maximumCapacity:
* cpu: 2 vCPU
* memory: 10 GB
* ```
*
* ## Import
* Using `pulumi import`, import EMR Severless applications using the `id`. For example:
* ```sh
* $ pulumi import aws:emrserverless/application:Application example id
* ```
* @property architecture The CPU architecture of an application. Valid values are `ARM64` or `X86_64`. Default value is `X86_64`.
* @property autoStartConfiguration The configuration for an application to automatically start on job submission.
* @property autoStopConfiguration The configuration for an application to automatically stop after a certain amount of time being idle.
* @property imageConfiguration The image configuration applied to all worker types.
* @property initialCapacities The capacity to initialize when the application is created.
* @property interactiveConfiguration Enables the interactive use cases to use when running an application.
* @property maximumCapacity The maximum capacity to allocate when the application is created. This is cumulative across all workers at any given point in time, not just when an application is created. No new resources will be created once any one of the defined limits is hit.
* @property name The name of the application.
* @property networkConfiguration The network configuration for customer VPC connectivity.
* @property releaseLabel The EMR release version associated with the application.
* @property tags Key-value mapping of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
* @property type The type of application you want to start, such as `spark` or `hive`.
*/
public data class ApplicationArgs(
public val architecture: Output? = null,
public val autoStartConfiguration: Output? = null,
public val autoStopConfiguration: Output? = null,
public val imageConfiguration: Output? = null,
public val initialCapacities: Output>? = null,
public val interactiveConfiguration: Output? = null,
public val maximumCapacity: Output? = null,
public val name: Output? = null,
public val networkConfiguration: Output? = null,
public val releaseLabel: Output? = null,
public val tags: Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy