Interface EmrCreateCluster.InstancesConfigProperty
- All Superinterfaces:
- software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
- EmrCreateCluster.InstancesConfigProperty.Jsii$Proxy
- Enclosing class:
- EmrCreateCluster
See the RunJobFlow API for complete documentation on input parameters
Example:
 EmrCreateCluster.Builder.create(this, "CreateCluster")
         .instances(InstancesConfigProperty.builder()
                 .instanceFleets(List.of(InstanceFleetConfigProperty.builder()
                         .instanceFleetType(EmrCreateCluster.getInstanceRoleType().CORE)
                         .instanceTypeConfigs(List.of(InstanceTypeConfigProperty.builder()
                                 .instanceType("m5.xlarge")
                                 .build()))
                         .targetOnDemandCapacity(1)
                         .build(), InstanceFleetConfigProperty.builder()
                         .instanceFleetType(EmrCreateCluster.getInstanceRoleType().MASTER)
                         .instanceTypeConfigs(List.of(InstanceTypeConfigProperty.builder()
                                 .instanceType("m5.xlarge")
                                 .build()))
                         .targetOnDemandCapacity(1)
                         .build()))
                 .build())
         .name("ClusterName")
         .releaseLabel("emr-7.9.0")
         .managedScalingPolicy(ManagedScalingPolicyProperty.builder()
                 .computeLimits(ManagedScalingComputeLimitsProperty.builder()
                         .unitType(EmrCreateCluster.getComputeLimitsUnitType().INSTANCE_FLEET_UNITS)
                         .maximumCapacityUnits(4)
                         .minimumCapacityUnits(1)
                         .maximumOnDemandCapacityUnits(4)
                         .maximumCoreCapacityUnits(2)
                         .build())
                 .build())
         .build();
 - See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forEmrCreateCluster.InstancesConfigPropertystatic final classAn implementation forEmrCreateCluster.InstancesConfigProperty
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()A list of additional Amazon EC2 security group IDs for the master node.A list of additional Amazon EC2 security group IDs for the core and task nodes.default StringThe name of the EC2 key pair that can be used to ssh to the master node as the user called "hadoop.".default StringApplies to clusters that use the uniform instance group configuration.Applies to clusters that use the instance fleet configuration.default StringThe identifier of the Amazon EC2 security group for the master node.default StringThe identifier of the Amazon EC2 security group for the core and task nodes.default StringApplies only to Amazon EMR release versions earlier than 4.0.default NumberThe number of EC2 instances in the cluster.Describes the EC2 instances and instance configurations for clusters that use the instance fleet configuration.Configuration for the instance groups in a cluster.default StringThe EC2 instance type of the master node.The Availability Zone in which the cluster runs.default StringThe identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.default StringThe EC2 instance type of the core and task nodes.default BooleanSpecifies whether to lock the cluster to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job-flow error.Methods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Method Details- 
getAdditionalMasterSecurityGroupsA list of additional Amazon EC2 security group IDs for the master node.Default: - None 
- 
getAdditionalSlaveSecurityGroupsA list of additional Amazon EC2 security group IDs for the core and task nodes.Default: - None 
- 
getEc2KeyNameThe name of the EC2 key pair that can be used to ssh to the master node as the user called "hadoop.".Default: - None 
- 
getEc2SubnetIdApplies to clusters that use the uniform instance group configuration.To launch the cluster in Amazon Virtual Private Cloud (Amazon VPC), set this parameter to the identifier of the Amazon VPC subnet where you want the cluster to launch. Default: EMR selected default 
- 
getEc2SubnetIdsApplies to clusters that use the instance fleet configuration.When multiple EC2 subnet IDs are specified, Amazon EMR evaluates them and launches instances in the optimal subnet. Default: EMR selected default 
- 
getEmrManagedMasterSecurityGroupThe identifier of the Amazon EC2 security group for the master node.Default: - None 
- 
getEmrManagedSlaveSecurityGroupThe identifier of the Amazon EC2 security group for the core and task nodes.Default: - None 
- 
getHadoopVersionApplies only to Amazon EMR release versions earlier than 4.0. The Hadoop version for the cluster.Default: - 0.18 if the AmiVersion parameter is not set. If AmiVersion is set, the version of Hadoop for that AMI version is used. 
- 
getInstanceCountThe number of EC2 instances in the cluster.Default: 0 
- 
getInstanceFleets@Stability(Stable) @Nullable default List<EmrCreateCluster.InstanceFleetConfigProperty> getInstanceFleets()Describes the EC2 instances and instance configurations for clusters that use the instance fleet configuration.The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions. Default: - None 
- 
getInstanceGroups@Stability(Stable) @Nullable default List<EmrCreateCluster.InstanceGroupConfigProperty> getInstanceGroups()Configuration for the instance groups in a cluster.Default: - None 
- 
getMasterInstanceTypeThe EC2 instance type of the master node.Default: - None 
- 
getPlacementThe Availability Zone in which the cluster runs.Default: - EMR selected default 
- 
getServiceAccessSecurityGroupThe identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.Default: - None 
- 
getSlaveInstanceTypeThe EC2 instance type of the core and task nodes.Default: - None 
- 
getTerminationProtectedSpecifies whether to lock the cluster to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job-flow error.Default: false 
- 
builder
 
-