Class CfnApplication.Builder
java.lang.Object
software.amazon.awscdk.services.emrserverless.CfnApplication.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication>
- Enclosing class:
- CfnApplication
@Stability(Stable)
public static final class CfnApplication.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication>
A fluent builder for
CfnApplication
.-
Method Summary
Modifier and TypeMethodDescriptionarchitecture
(String architecture) The CPU architecture type of the application.autoStartConfiguration
(IResolvable autoStartConfiguration) The configuration for an application to automatically start on job submission.autoStartConfiguration
(CfnApplication.AutoStartConfigurationProperty autoStartConfiguration) The configuration for an application to automatically start on job submission.autoStopConfiguration
(IResolvable autoStopConfiguration) The configuration for an application to automatically stop after a certain amount of time being idle.autoStopConfiguration
(CfnApplication.AutoStopConfigurationProperty autoStopConfiguration) The configuration for an application to automatically stop after a certain amount of time being idle.build()
static CfnApplication.Builder
imageConfiguration
(IResolvable imageConfiguration) AWS::EMRServerless::Application.ImageConfiguration
.imageConfiguration
(CfnApplication.ImageConfigurationInputProperty imageConfiguration) AWS::EMRServerless::Application.ImageConfiguration
.initialCapacity
(List<? extends Object> initialCapacity) The initial capacity of the application.initialCapacity
(IResolvable initialCapacity) The initial capacity of the application.maximumCapacity
(IResolvable maximumCapacity) The maximum capacity of the application.maximumCapacity
(CfnApplication.MaximumAllowedResourcesProperty maximumCapacity) The maximum capacity of the application.The name of the application.networkConfiguration
(IResolvable networkConfiguration) The network configuration for customer VPC connectivity for the application.networkConfiguration
(CfnApplication.NetworkConfigurationProperty networkConfiguration) The network configuration for customer VPC connectivity for the application.releaseLabel
(String releaseLabel) The EMR release version associated with the application.The tags assigned to the application.The type of application, such as Spark or Hive.workerTypeSpecifications
(Map<String, ? extends Object> workerTypeSpecifications) AWS::EMRServerless::Application.WorkerTypeSpecifications
.workerTypeSpecifications
(IResolvable workerTypeSpecifications) AWS::EMRServerless::Application.WorkerTypeSpecifications
.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnApplication.Builder
.
-
releaseLabel
The EMR release version associated with the application.Minimum : 1
Maximum : 64
Pattern :
^[A-Za-z0-9._/-]+$
- Parameters:
releaseLabel
- The EMR release version associated with the application. This parameter is required.- Returns:
this
-
type
The type of application, such as Spark or Hive.- Parameters:
type
- The type of application, such as Spark or Hive. This parameter is required.- Returns:
this
-
architecture
The CPU architecture type of the application.Allowed values:
X86_64
orARM64
- Parameters:
architecture
- The CPU architecture type of the application. This parameter is required.- Returns:
this
-
autoStartConfiguration
@Stability(Stable) public CfnApplication.Builder autoStartConfiguration(CfnApplication.AutoStartConfigurationProperty autoStartConfiguration) The configuration for an application to automatically start on job submission.- Parameters:
autoStartConfiguration
- The configuration for an application to automatically start on job submission. This parameter is required.- Returns:
this
-
autoStartConfiguration
@Stability(Stable) public CfnApplication.Builder autoStartConfiguration(IResolvable autoStartConfiguration) The configuration for an application to automatically start on job submission.- Parameters:
autoStartConfiguration
- The configuration for an application to automatically start on job submission. This parameter is required.- Returns:
this
-
autoStopConfiguration
@Stability(Stable) public CfnApplication.Builder autoStopConfiguration(IResolvable autoStopConfiguration) The configuration for an application to automatically stop after a certain amount of time being idle.- Parameters:
autoStopConfiguration
- The configuration for an application to automatically stop after a certain amount of time being idle. This parameter is required.- Returns:
this
-
autoStopConfiguration
@Stability(Stable) public CfnApplication.Builder autoStopConfiguration(CfnApplication.AutoStopConfigurationProperty autoStopConfiguration) The configuration for an application to automatically stop after a certain amount of time being idle.- Parameters:
autoStopConfiguration
- The configuration for an application to automatically stop after a certain amount of time being idle. This parameter is required.- Returns:
this
-
imageConfiguration
AWS::EMRServerless::Application.ImageConfiguration
.- Parameters:
imageConfiguration
-AWS::EMRServerless::Application.ImageConfiguration
. This parameter is required.- Returns:
this
-
imageConfiguration
@Stability(Stable) public CfnApplication.Builder imageConfiguration(CfnApplication.ImageConfigurationInputProperty imageConfiguration) AWS::EMRServerless::Application.ImageConfiguration
.- Parameters:
imageConfiguration
-AWS::EMRServerless::Application.ImageConfiguration
. This parameter is required.- Returns:
this
-
initialCapacity
The initial capacity of the application.- Parameters:
initialCapacity
- The initial capacity of the application. This parameter is required.- Returns:
this
-
initialCapacity
@Stability(Stable) public CfnApplication.Builder initialCapacity(List<? extends Object> initialCapacity) The initial capacity of the application.- Parameters:
initialCapacity
- The initial capacity of the application. This parameter is required.- Returns:
this
-
maximumCapacity
The maximum capacity of the application.This is cumulative across all workers at any given point in time during the lifespan of the application is created. No new resources will be created once any one of the defined limits is hit.
- Parameters:
maximumCapacity
- The maximum capacity of the application. This parameter is required.- Returns:
this
-
maximumCapacity
@Stability(Stable) public CfnApplication.Builder maximumCapacity(CfnApplication.MaximumAllowedResourcesProperty maximumCapacity) The maximum capacity of the application.This is cumulative across all workers at any given point in time during the lifespan of the application is created. No new resources will be created once any one of the defined limits is hit.
- Parameters:
maximumCapacity
- The maximum capacity of the application. This parameter is required.- Returns:
this
-
name
The name of the application.Minimum : 1
Maximum : 64
Pattern :
^[A-Za-z0-9._\\/#-]+$
- Parameters:
name
- The name of the application. This parameter is required.- Returns:
this
-
networkConfiguration
@Stability(Stable) public CfnApplication.Builder networkConfiguration(IResolvable networkConfiguration) The network configuration for customer VPC connectivity for the application.- Parameters:
networkConfiguration
- The network configuration for customer VPC connectivity for the application. This parameter is required.- Returns:
this
-
networkConfiguration
@Stability(Stable) public CfnApplication.Builder networkConfiguration(CfnApplication.NetworkConfigurationProperty networkConfiguration) The network configuration for customer VPC connectivity for the application.- Parameters:
networkConfiguration
- The network configuration for customer VPC connectivity for the application. This parameter is required.- Returns:
this
-
tags
The tags assigned to the application.- Parameters:
tags
- The tags assigned to the application. This parameter is required.- Returns:
this
-
workerTypeSpecifications
@Stability(Stable) public CfnApplication.Builder workerTypeSpecifications(IResolvable workerTypeSpecifications) AWS::EMRServerless::Application.WorkerTypeSpecifications
.- Parameters:
workerTypeSpecifications
-AWS::EMRServerless::Application.WorkerTypeSpecifications
. This parameter is required.- Returns:
this
-
workerTypeSpecifications
@Stability(Stable) public CfnApplication.Builder workerTypeSpecifications(Map<String, ? extends Object> workerTypeSpecifications) AWS::EMRServerless::Application.WorkerTypeSpecifications
.- Parameters:
workerTypeSpecifications
-AWS::EMRServerless::Application.WorkerTypeSpecifications
. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplication>
- Returns:
- a newly built instance of
CfnApplication
.
-