create_application
async
¶
create_application(
release_label: ReleaseLabel,
type: EngineType,
client_token: ClientToken,
*,
config_overrides: Optional[AsyncEMRServerlessClientConfig] = None,
name: Optional[ApplicationName] = None,
initial_capacity: Optional[InitialCapacityConfigMap] = None,
maximum_capacity: Optional[MaximumAllowedResources] = None,
tags: Optional[TagMap] = None,
auto_start_configuration: Optional[AutoStartConfig] = None,
auto_stop_configuration: Optional[AutoStopConfig] = None,
network_configuration: Optional[NetworkConfiguration] = None,
architecture: Optional[Architecture] = None,
image_configuration: Optional[ImageConfigurationInput] = None,
worker_type_specifications: Optional[WorkerTypeSpecificationInputMap] = None,
runtime_configuration: Optional[ConfigurationList] = None,
monitoring_configuration: Optional[MonitoringConfiguration] = None,
disk_encryption_configuration: Optional[DiskEncryptionConfiguration] = None,
interactive_configuration: Optional[InteractiveConfiguration] = None,
scheduler_configuration: Optional[SchedulerConfiguration] = None,
identity_center_configuration: Optional[IdentityCenterConfigurationInput] = None,
job_level_cost_allocation_configuration: Optional[
JobLevelCostAllocationConfiguration
] = None,
) -> CreateApplicationResponse
Creates an application.
Parameters:
-
name(Optional[ApplicationName], default:None) –The name of the application.
-
release_label(ReleaseLabel) –The Amazon EMR release associated with the application.
-
type(EngineType) –The type of application you want to start, such as Spark or Hive.
-
client_token(ClientToken) –The client idempotency token of the application to create. Its value must be unique for each request.
-
initial_capacity(Optional[InitialCapacityConfigMap], default:None) –The capacity to initialize when the application is created.
-
maximum_capacity(Optional[MaximumAllowedResources], default:None) –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(Optional[TagMap], default:None) –The tags assigned to the application.
-
auto_start_configuration(Optional[AutoStartConfig], default:None) –The configuration for an application to automatically start on job submission.
-
auto_stop_configuration(Optional[AutoStopConfig], default:None) –The configuration for an application to automatically stop after a certain amount of time being idle.
-
network_configuration(Optional[NetworkConfiguration], default:None) –The network configuration for customer VPC connectivity.
-
architecture(Optional[Architecture], default:None) –The CPU architecture of an application.
-
image_configuration(Optional[ImageConfigurationInput], default:None) –The image configuration for all worker types. You can either set this parameter or
imageConfigurationfor each worker type inworkerTypeSpecifications. -
worker_type_specifications(Optional[WorkerTypeSpecificationInputMap], default:None) –The key-value pairs that specify worker type to
WorkerTypeSpecificationInput. This parameter must contain all valid worker types for a Spark or Hive application. Valid worker types includeDriverandExecutorfor Spark applications andHiveDriverandTezTaskfor Hive applications. You can either set image details in this parameter for each worker type, or inimageConfigurationfor all worker types. -
runtime_configuration(Optional[ConfigurationList], default:None) –The Configuration specifications to use when creating an application. Each configuration consists of a classification and properties. This configuration is applied to all the job runs submitted under the application.
-
monitoring_configuration(Optional[MonitoringConfiguration], default:None) –The configuration setting for monitoring.
-
disk_encryption_configuration(Optional[DiskEncryptionConfiguration], default:None) –The configuration object that allows encrypting local disks.
-
interactive_configuration(Optional[InteractiveConfiguration], default:None) –The interactive configuration object that enables the interactive use cases to use when running an application.
-
scheduler_configuration(Optional[SchedulerConfiguration], default:None) –The scheduler configuration for batch and streaming jobs running on this application. Supported with release labels emr-7.0.0 and above.
-
identity_center_configuration(Optional[IdentityCenterConfigurationInput], default:None) –The IAM Identity Center Configuration accepts the Identity Center instance parameter required to enable trusted identity propagation. This configuration allows identity propagation between integrated services and the Identity Center instance.
-
job_level_cost_allocation_configuration(Optional[JobLevelCostAllocationConfiguration], default:None) –The configuration object that enables job level cost allocation.
Raises:
-
ConflictException–The request could not be processed because of conflict in the current state of the resource.
-
InternalServerException–Request processing failed because of an error or failure with the service.
-
ResourceNotFoundException–The specified resource was not found.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_emr_serverless/_services/async_emr_serverless.py
400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 | |