EmrCreateCluster

class aws_cdk.aws_stepfunctions_tasks.EmrCreateCluster(*, instances, name, additional_info=None, applications=None, auto_scaling_role=None, bootstrap_actions=None, cluster_role=None, configurations=None, custom_ami_id=None, ebs_root_volume_size=None, integration_pattern=None, kerberos_attributes=None, log_uri=None, release_label=None, scale_down_behavior=None, security_configuration=None, service_role=None, tags=None, visible_to_all_users=None)

Bases: object

A Step Functions Task to create an EMR Cluster.

The ClusterConfiguration is defined as Parameters in the state machine definition.

OUTPUT: the ClusterId.

stability :stability: experimental

__init__(*, instances, name, additional_info=None, applications=None, auto_scaling_role=None, bootstrap_actions=None, cluster_role=None, configurations=None, custom_ami_id=None, ebs_root_volume_size=None, integration_pattern=None, kerberos_attributes=None, log_uri=None, release_label=None, scale_down_behavior=None, security_configuration=None, service_role=None, tags=None, visible_to_all_users=None)
Parameters
  • instances (InstancesConfigProperty) – A specification of the number and type of Amazon EC2 instances.

  • name (str) – The Name of the Cluster.

  • additional_info (Optional[str]) – A JSON string for selecting additional features. Default: No additionalInfo

  • applications (Optional[List[Forwardref]]) – A case-insensitive list of applications for Amazon EMR to install and configure when launching the cluster. Default: EMR selected default

  • auto_scaling_role (Optional[IRole]) – An IAM role for automatic scaling policies. A Role will be created if one is not provided. Default: No autoScalingRole

  • bootstrap_actions (Optional[List[Forwardref]]) – A list of bootstrap actions to run before Hadoop starts on the cluster nodes. Default: No bootstrapActions

  • cluster_role (Optional[IRole]) – Also called instance profile and EC2 role. An IAM role for an EMR cluster. The EC2 instances of the cluster assume this role. This attribute has been renamed from jobFlowRole to clusterRole to align with other ERM/StepFunction integration parameters. A Role will be created if one is not provided. Default: No clusterRole

  • configurations (Optional[List[Forwardref]]) – The list of configurations supplied for the EMR cluster you are creating. Default: No configurations

  • custom_ami_id (Optional[str]) – The ID of a custom Amazon EBS-backed Linux AMI. Default: No customAmiId

  • ebs_root_volume_size (Union[int, float, None]) – The size, in GiB, of the EBS root device volume of the Linux AMI that is used for each EC2 instance. Default: EMR selected default

  • integration_pattern (Optional[ServiceIntegrationPattern]) – The service integration pattern indicates different ways to call CreateCluster. The valid value is either FIRE_AND_FORGET or SYNC. Default: SYNC

  • kerberos_attributes (Optional[Forwardref]) – Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration. Default: No kerberosAttributes

  • log_uri (Optional[str]) – The location in Amazon S3 to write the log files of the job flow. Default: No logUri

  • release_label (Optional[str]) – The Amazon EMR release label, which determines the version of open-source application packages installed on the cluster. Default: EMR selected default

  • scale_down_behavior (Optional[Forwardref]) – Specifies the way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized. Default: EMR selected default

  • security_configuration (Optional[str]) – The name of a security configuration to apply to the cluster. Default: No securityConfiguration

  • service_role (Optional[IRole]) – The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf. A Role will be created if one is not provided. Default: No serviceRole

  • tags (Optional[List[CfnTag]]) – A list of tags to associate with a cluster and propagate to Amazon EC2 instances. Default: No Tags

  • visible_to_all_users (Optional[bool]) – A value of true indicates that all IAM users in the AWS account can perform cluster actions if they have the proper IAM policy permissions. Default: true

stability :stability: experimental

Return type

None

Methods

bind(task)

Called when the task object is used in a workflow.

Parameters

task (Task) –

stability :stability: experimental

Return type

StepFunctionsTaskConfig

Attributes

auto_scaling_role

The autoscaling role for the EMR Cluster.

Only available after task has been added to a state machine.

stability :stability: experimental

Return type

IRole

cluster_role

The instance role for the EMR Cluster.

Only available after task has been added to a state machine.

stability :stability: experimental

Return type

IRole

service_role

The service role for the EMR Cluster.

Only available after task has been added to a state machine.

stability :stability: experimental

Return type

IRole