ClusterState constructor
- Input<
String?> ? additionalInfo, - Input<
List< ? applications,String> ?> - Input<
String?> ? arn, - Input<
ClusterAutoTerminationPolicy?> ? autoTerminationPolicy, - Input<
String?> ? autoscalingRole, - Input<
List< ? bootstrapActions,ClusterBootstrapAction> ?> - Input<
String?> ? clusterState, - Input<
String?> ? configurations, - Input<
String?> ? configurationsJson, - Input<
ClusterCoreInstanceFleet?> ? coreInstanceFleet, - Input<
ClusterCoreInstanceGroup?> ? coreInstanceGroup, - Input<
String?> ? customAmiId, - Input<
int?> ? ebsRootVolumeSize, - Input<
ClusterEc2Attributes?> ? ec2Attributes, - Input<
bool?> ? keepJobFlowAliveWhenNoSteps, - Input<
ClusterKerberosAttributes?> ? kerberosAttributes, - Input<
List< ? listStepsStates,String> ?> - Input<
String?> ? logEncryptionKmsKeyId, - Input<
String?> ? logUri, - Input<
ClusterMasterInstanceFleet?> ? masterInstanceFleet, - Input<
ClusterMasterInstanceGroup?> ? masterInstanceGroup, - Input<
String?> ? masterPublicDns, - Input<
String?> ? name, - Input<
String?> ? osReleaseLabel, - Input<
List< ? placementGroupConfigs,ClusterPlacementGroupConfig> ?> - Input<
String?> ? region, - Input<
String?> ? releaseLabel, - Input<
String?> ? scaleDownBehavior, - Input<
String?> ? securityConfiguration, - Input<
String?> ? serviceRole, - Input<
int?> ? stepConcurrencyLevel, - Input<
List< ? steps,ClusterStep> ?> - Input<
Map< ? tags,String, String> ?> - Input<
Map< ? tagsAll,String, String> ?> - Input<
bool?> ? terminationProtection, - Input<
bool?> ? unhealthyNodeReplacement, - Input<
bool?> ? visibleToAllUsers,
Creates a new ClusterState.
additionalInfo JSON string for selecting additional features such as adding proxy information. Note: Currently there is no API to retrieve the value of this argument after EMR cluster creation from provider, therefore the provider cannot detect drift from the actual EMR cluster if its value is changed outside the provider.
applications A case-insensitive list of applications for Amazon EMR to install and configure when launching the cluster. For a list of applications available for each Amazon EMR release version, see the Amazon EMR Release Guide.
arn ARN of the cluster.
autoTerminationPolicy An auto-termination policy for an Amazon EMR cluster. An auto-termination policy defines the amount of idle time in seconds after which a cluster automatically terminates. See Auto Termination Policy Below.
autoscalingRole IAM role for automatic scaling policies. The IAM role provides permissions that the automatic scaling feature requires to launch and terminate EC2 instances in an instance group.
bootstrapActions Ordered list of bootstrap actions that will be run before Hadoop is started on the cluster nodes. See below.
clusterState Optional.
configurations List of configurations supplied for the EMR cluster you are creating. Supply a configuration object for applications to override their default configuration. See AWS Documentation for more information.
configurationsJson JSON string for supplying list of configurations for the EMR cluster.
coreInstanceFleet Configuration block to use an Instance Fleet for the core node type. Cannot be specified if any coreInstanceGroup configuration blocks are set. Detailed below.
coreInstanceGroup Configuration block to use an Instance Group for the core node type.
customAmiId Custom Amazon Linux AMI for the cluster (instead of an EMR-owned AMI). Available in Amazon EMR version 5.7.0 and later.
ebsRootVolumeSize Size in GiB of the EBS root device volume of the Linux AMI that is used for each EC2 instance. Available in Amazon EMR version 4.x and later.
ec2Attributes Attributes for the EC2 instances running the job flow. See below.
keepJobFlowAliveWhenNoSteps Switch on/off run cluster with no steps or when all steps are complete (default is on)
kerberosAttributes Kerberos configuration for the cluster. See below.
listStepsStates List of step states used to filter returned steps
logEncryptionKmsKeyId AWS KMS customer master key (CMK) key ID or arn used for encrypting log files. This attribute is only available with EMR version 5.30.0 and later, excluding EMR 6.0.0.
logUri S3 bucket to write the log files of the job flow. If a value is not provided, logs are not created.
masterInstanceFleet Configuration block to use an Instance Fleet for the master node type. Cannot be specified if any masterInstanceGroup configuration blocks are set. Detailed below.
masterInstanceGroup Configuration block to use an Instance Group for the master node type.
masterPublicDns The DNS name of the master node. If the cluster is on a private subnet, this is the private DNS name. On a public subnet, this is the public DNS name.
name Name of the job flow.
osReleaseLabel Amazon Linux release for all nodes in a cluster launch RunJobFlow request. If not specified, Amazon EMR uses the latest validated Amazon Linux release for cluster launch.
placementGroupConfigs The specified placement group configuration for an Amazon EMR cluster.
region Region where this resource will be managed. Defaults to the Region set in the provider configuration.
releaseLabel Release label for the Amazon EMR release.
scaleDownBehavior Way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized.
securityConfiguration Security configuration name to attach to the EMR cluster. Only valid for EMR clusters with releaseLabel 4.8.0 or greater.
serviceRole IAM role that will be assumed by the Amazon EMR service to access AWS resources.
stepConcurrencyLevel Number of steps that can be executed concurrently. You can specify a maximum of 256 steps. Only valid for EMR clusters with releaseLabel 5.28.0 or greater (default is 1).
steps List of steps to run when creating the cluster. See below. It is highly recommended to utilize the lifecycle resource options block with ignoreChanges if other steps are being managed outside of this provider.
tags list of tags to apply to the EMR Cluster. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tagsAll Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
terminationProtection Switch on/off termination protection (default is false, except when using multiple master nodes). Before attempting to destroy the resource when termination protection is enabled, this configuration must be applied with its value set to false.
unhealthyNodeReplacement Whether whether Amazon EMR should gracefully replace core nodes that have degraded within the cluster. Default value is false.
visibleToAllUsers Whether the job flow is visible to all IAM users of the AWS account associated with the job flow. Default value is true.
Implementation
const ClusterState({
this.additionalInfo,
this.applications,
this.arn,
this.autoTerminationPolicy,
this.autoscalingRole,
this.bootstrapActions,
this.clusterState,
this.configurations,
this.configurationsJson,
this.coreInstanceFleet,
this.coreInstanceGroup,
this.customAmiId,
this.ebsRootVolumeSize,
this.ec2Attributes,
this.keepJobFlowAliveWhenNoSteps,
this.kerberosAttributes,
this.listStepsStates,
this.logEncryptionKmsKeyId,
this.logUri,
this.masterInstanceFleet,
this.masterInstanceGroup,
this.masterPublicDns,
this.name,
this.osReleaseLabel,
this.placementGroupConfigs,
this.region,
this.releaseLabel,
this.scaleDownBehavior,
this.securityConfiguration,
this.serviceRole,
this.stepConcurrencyLevel,
this.steps,
this.tags,
this.tagsAll,
this.terminationProtection,
this.unhealthyNodeReplacement,
this.visibleToAllUsers,
});