awswrangler.emr_serverless.create_application

awswrangler.emr_serverless.create_application(name: str, release_label: str, application_type: Literal['Spark', 'Hive'] = 'Spark', initial_capacity: dict[str, str] | None = None, maximum_capacity: dict[str, str] | None = None, tags: dict[str, str] | None = None, autostart: bool = True, autostop: bool = True, idle_timeout: int = 15, network_configuration: dict[str, str] | None = None, architecture: Literal['ARM64', 'X86_64'] = 'X86_64', image_uri: str | None = None, worker_type_specifications: dict[str, str] | None = None, boto3_session: Session | None = None) str

Create an EMR Serverless application.

https://docs.aws.amazon.com/emr/latest/EMR-Serverless-UserGuide/emr-serverless.html

Warning

This API is experimental and may change in future AWS SDK for Pandas releases.

Parameters:
  • name (str) – Name of EMR Serverless appliation

  • release_label (str) – Release label e.g. emr-6.10.0

  • application_type (str, optional) – Application type: “Spark” or “Hive”. Defaults to “Spark”.

  • initial_capacity (Dict[str, str], optional) – The capacity to initialize when the application is created.

  • maximum_capacity (Dict[str, str], optional) – 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.

  • tags (Dict[str, str], optional) – Key/Value collection to put tags on the application. e.g. {“foo”: “boo”, “bar”: “xoo”})

  • autostart (bool, optional) – Enables the application to automatically start on job submission. Defaults to true.

  • autostop (bool, optional) – Enables the application to automatically stop after a certain amount of time being idle. Defaults to true.

  • idle_timeout (int, optional) – The amount of idle time in minutes after which your application will automatically stop. Defaults to 15 minutes.

  • network_configuration (Dict[str, str], optional) – The network configuration for customer VPC connectivity.

  • architecture (str, optional) – The CPU architecture of an application: “ARM64” or “X86_64”. Defaults to “X86_64”.

  • image_uri (str, optional) – The URI of an image in the Amazon ECR registry.

  • worker_type_specifications (Dict[str, str], optional) – The key-value pairs that specify worker type.

  • boto3_session (boto3.Session(), optional) – Boto3 Session. The default boto3 session will be used if boto3_session receive None.

Returns:

Application Id.

Return type:

str