start_session
¶
start_session(
application_id: ApplicationId,
client_token: ClientToken,
execution_role_arn: IAMRoleArn,
*,
config_overrides: Optional[EMRServerlessClientConfig] = None,
configuration_overrides: Optional[SessionConfigurationOverrides] = None,
tags: Optional[TagMap] = None,
idle_timeout_minutes: Optional[Duration] = None,
name: Optional[String256] = None,
) -> StartSessionResponse
Creates and starts a new session on the specified application. The application must be in the STARTED state or have AutoStart enabled, and have interactive sessions enabled. This operation is supported for EMR release 7.13.0 and later.
Parameters:
-
application_id(ApplicationId) –The ID of the application on which to start the session.
-
client_token(ClientToken) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token, the server returns the successful response without performing the operation again.
-
execution_role_arn(IAMRoleArn) –The execution role ARN for the session. Amazon EMR Serverless uses this role to access Amazon Web Services resources on your behalf during session execution.
-
configuration_overrides(Optional[SessionConfigurationOverrides], default:None) –The configuration overrides for the session. Only runtime configuration overrides are supported.
-
tags(Optional[TagMap], default:None) –The tags to assign to the session.
-
idle_timeout_minutes(Optional[Duration], default:None) –The idle timeout in minutes for the session. After the session remains idle for this duration, Amazon EMR Serverless automatically terminates it.
-
name(Optional[String256], default:None) –The optional name for the session.
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.
-
ServiceQuotaExceededException–The maximum number of resources per account has been reached.
-
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/emr_serverless.py
1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 | |