EMRServerlessClient
Index > EMRServerless > EMRServerlessClient
Auto-generated documentation for EMRServerless type annotations stubs module mypy-boto3-emr-serverless.
EMRServerlessClient
Type annotations and code completion for boto3.client("emr-serverless")
.
boto3 documentation
from boto3.session import Session
from mypy_boto3_emr_serverless.client import EMRServerlessClient
def get_emr-serverless_client() -> EMRServerlessClient:
return Session().client("emr-serverless")
Exceptions
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("emr-serverless").exceptions
structure.
client = boto3.client("emr-serverless")
try:
do_something(client)
except (
client.ClientError,
client.ConflictException,
client.InternalServerException,
client.ResourceNotFoundException,
client.ServiceQuotaExceededException,
client.ValidationException,
) as e:
print(e)
from mypy_boto3_emr_serverless.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
...
Methods
can_paginate
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("emr-serverless").can_paginate
method.
boto3 documentation
cancel_job_run
Cancels a job run.
Type annotations and code completion for boto3.client("emr-serverless").cancel_job_run
method.
boto3 documentation
def cancel_job_run(
self,
*,
applicationId: str,
jobRunId: str,
) -> CancelJobRunResponseTypeDef: # (1)
...
kwargs: CancelJobRunRequestRequestTypeDef = { # (1)
"applicationId": ...,
"jobRunId": ...,
}
parent.cancel_job_run(**kwargs)
close
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("emr-serverless").close
method.
boto3 documentation
create_application
Creates an application.
Type annotations and code completion for boto3.client("emr-serverless").create_application
method.
boto3 documentation
def create_application(
self,
*,
releaseLabel: str,
type: str,
clientToken: str,
name: str = ...,
initialCapacity: Mapping[str, InitialCapacityConfigTypeDef] = ..., # (1)
maximumCapacity: MaximumAllowedResourcesTypeDef = ..., # (2)
tags: Mapping[str, str] = ...,
autoStartConfiguration: AutoStartConfigTypeDef = ..., # (3)
autoStopConfiguration: AutoStopConfigTypeDef = ..., # (4)
networkConfiguration: NetworkConfigurationTypeDef = ..., # (5)
architecture: ArchitectureType = ..., # (6)
imageConfiguration: ImageConfigurationInputTypeDef = ..., # (7)
workerTypeSpecifications: Mapping[str, WorkerTypeSpecificationInputTypeDef] = ..., # (8)
) -> CreateApplicationResponseTypeDef: # (9)
...
- See InitialCapacityConfigTypeDef
- See MaximumAllowedResourcesTypeDef
- See AutoStartConfigTypeDef
- See AutoStopConfigTypeDef
- See NetworkConfigurationTypeDef
- See ArchitectureType
- See ImageConfigurationInputTypeDef
- See WorkerTypeSpecificationInputTypeDef
- See CreateApplicationResponseTypeDef
kwargs: CreateApplicationRequestRequestTypeDef = { # (1)
"releaseLabel": ...,
"type": ...,
"clientToken": ...,
}
parent.create_application(**kwargs)
delete_application
Deletes an application.
Type annotations and code completion for boto3.client("emr-serverless").delete_application
method.
boto3 documentation
kwargs: DeleteApplicationRequestRequestTypeDef = { # (1)
"applicationId": ...,
}
parent.delete_application(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("emr-serverless").generate_presigned_url
method.
boto3 documentation
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
get_application
Displays detailed information about a specified application.
Type annotations and code completion for boto3.client("emr-serverless").get_application
method.
boto3 documentation
def get_application(
self,
*,
applicationId: str,
) -> GetApplicationResponseTypeDef: # (1)
...
kwargs: GetApplicationRequestRequestTypeDef = { # (1)
"applicationId": ...,
}
parent.get_application(**kwargs)
get_dashboard_for_job_run
Returns a URL to access the job run dashboard.
Type annotations and code completion for boto3.client("emr-serverless").get_dashboard_for_job_run
method.
boto3 documentation
def get_dashboard_for_job_run(
self,
*,
applicationId: str,
jobRunId: str,
) -> GetDashboardForJobRunResponseTypeDef: # (1)
...
kwargs: GetDashboardForJobRunRequestRequestTypeDef = { # (1)
"applicationId": ...,
"jobRunId": ...,
}
parent.get_dashboard_for_job_run(**kwargs)
get_job_run
Displays detailed information about a job run.
Type annotations and code completion for boto3.client("emr-serverless").get_job_run
method.
boto3 documentation
def get_job_run(
self,
*,
applicationId: str,
jobRunId: str,
) -> GetJobRunResponseTypeDef: # (1)
...
kwargs: GetJobRunRequestRequestTypeDef = { # (1)
"applicationId": ...,
"jobRunId": ...,
}
parent.get_job_run(**kwargs)
list_applications
Lists applications based on a set of parameters.
Type annotations and code completion for boto3.client("emr-serverless").list_applications
method.
boto3 documentation
def list_applications(
self,
*,
nextToken: str = ...,
maxResults: int = ...,
states: Sequence[ApplicationStateType] = ..., # (1)
) -> ListApplicationsResponseTypeDef: # (2)
...
kwargs: ListApplicationsRequestRequestTypeDef = { # (1)
"nextToken": ...,
}
parent.list_applications(**kwargs)
list_job_runs
Lists job runs based on a set of parameters.
Type annotations and code completion for boto3.client("emr-serverless").list_job_runs
method.
boto3 documentation
def list_job_runs(
self,
*,
applicationId: str,
nextToken: str = ...,
maxResults: int = ...,
createdAtAfter: Union[datetime, str] = ...,
createdAtBefore: Union[datetime, str] = ...,
states: Sequence[JobRunStateType] = ..., # (1)
) -> ListJobRunsResponseTypeDef: # (2)
...
kwargs: ListJobRunsRequestRequestTypeDef = { # (1)
"applicationId": ...,
}
parent.list_job_runs(**kwargs)
list_tags_for_resource
Lists the tags assigned to the resources.
Type annotations and code completion for boto3.client("emr-serverless").list_tags_for_resource
method.
boto3 documentation
def list_tags_for_resource(
self,
*,
resourceArn: str,
) -> ListTagsForResourceResponseTypeDef: # (1)
...
kwargs: ListTagsForResourceRequestRequestTypeDef = { # (1)
"resourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)
start_application
Starts a specified application and initializes initial capacity if configured.
Type annotations and code completion for boto3.client("emr-serverless").start_application
method.
boto3 documentation
kwargs: StartApplicationRequestRequestTypeDef = { # (1)
"applicationId": ...,
}
parent.start_application(**kwargs)
start_job_run
Starts a job run.
Type annotations and code completion for boto3.client("emr-serverless").start_job_run
method.
boto3 documentation
def start_job_run(
self,
*,
applicationId: str,
clientToken: str,
executionRoleArn: str,
jobDriver: JobDriverTypeDef = ..., # (1)
configurationOverrides: ConfigurationOverridesTypeDef = ..., # (2)
tags: Mapping[str, str] = ...,
executionTimeoutMinutes: int = ...,
name: str = ...,
) -> StartJobRunResponseTypeDef: # (3)
...
kwargs: StartJobRunRequestRequestTypeDef = { # (1)
"applicationId": ...,
"clientToken": ...,
"executionRoleArn": ...,
}
parent.start_job_run(**kwargs)
stop_application
Stops a specified application and releases initial capacity if configured.
Type annotations and code completion for boto3.client("emr-serverless").stop_application
method.
boto3 documentation
kwargs: StopApplicationRequestRequestTypeDef = { # (1)
"applicationId": ...,
}
parent.stop_application(**kwargs)
tag_resource
Assigns tags to resources.
Type annotations and code completion for boto3.client("emr-serverless").tag_resource
method.
boto3 documentation
def tag_resource(
self,
*,
resourceArn: str,
tags: Mapping[str, str],
) -> Dict[str, Any]:
...
kwargs: TagResourceRequestRequestTypeDef = { # (1)
"resourceArn": ...,
"tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource
Removes tags from resources.
Type annotations and code completion for boto3.client("emr-serverless").untag_resource
method.
boto3 documentation
def untag_resource(
self,
*,
resourceArn: str,
tagKeys: Sequence[str],
) -> Dict[str, Any]:
...
kwargs: UntagResourceRequestRequestTypeDef = { # (1)
"resourceArn": ...,
"tagKeys": ...,
}
parent.untag_resource(**kwargs)
update_application
Updates a specified application.
Type annotations and code completion for boto3.client("emr-serverless").update_application
method.
boto3 documentation
def update_application(
self,
*,
applicationId: str,
clientToken: str,
initialCapacity: Mapping[str, InitialCapacityConfigTypeDef] = ..., # (1)
maximumCapacity: MaximumAllowedResourcesTypeDef = ..., # (2)
autoStartConfiguration: AutoStartConfigTypeDef = ..., # (3)
autoStopConfiguration: AutoStopConfigTypeDef = ..., # (4)
networkConfiguration: NetworkConfigurationTypeDef = ..., # (5)
architecture: ArchitectureType = ..., # (6)
imageConfiguration: ImageConfigurationInputTypeDef = ..., # (7)
workerTypeSpecifications: Mapping[str, WorkerTypeSpecificationInputTypeDef] = ..., # (8)
) -> UpdateApplicationResponseTypeDef: # (9)
...
- See InitialCapacityConfigTypeDef
- See MaximumAllowedResourcesTypeDef
- See AutoStartConfigTypeDef
- See AutoStopConfigTypeDef
- See NetworkConfigurationTypeDef
- See ArchitectureType
- See ImageConfigurationInputTypeDef
- See WorkerTypeSpecificationInputTypeDef
- See UpdateApplicationResponseTypeDef
kwargs: UpdateApplicationRequestRequestTypeDef = { # (1)
"applicationId": ...,
"clientToken": ...,
}
parent.update_application(**kwargs)
get_paginator
Type annotations and code completion for boto3.client("emr-serverless").get_paginator
method with overloads.
client.get_paginator("list_applications")
-> ListApplicationsPaginatorclient.get_paginator("list_job_runs")
-> ListJobRunsPaginator