Skip to content

ElasticTranscoderClient#

Index > ElasticTranscoder > ElasticTranscoderClient

Auto-generated documentation for ElasticTranscoder type annotations stubs module mypy-boto3-elastictranscoder.

ElasticTranscoderClient#

Type annotations and code completion for boto3.client("elastictranscoder"). boto3 documentation

# ElasticTranscoderClient usage example

from boto3.session import Session
from mypy_boto3_elastictranscoder.client import ElasticTranscoderClient

def get_elastictranscoder_client() -> ElasticTranscoderClient:
    return Session().client("elastictranscoder")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("elastictranscoder").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("elastictranscoder")

try:
    do_something(client)
except (
    client.exceptions.AccessDeniedException,
    client.exceptions.ClientError,
    client.exceptions.IncompatibleVersionException,
    client.exceptions.InternalServiceException,
    client.exceptions.LimitExceededException,
    client.exceptions.ResourceInUseException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ValidationException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_elastictranscoder.client import Exceptions

def handle_error(exc: Exceptions.AccessDeniedException) -> None:
    ...

Methods#

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("elastictranscoder").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

cancel_job#

The CancelJob operation cancels an unfinished job.

Type annotations and code completion for boto3.client("elastictranscoder").cancel_job method. boto3 documentation

# cancel_job method definition

def cancel_job(
    self,
    *,
    Id: str,
) -> Dict[str, Any]:
    ...
# cancel_job method usage example with argument unpacking

kwargs: CancelJobRequestRequestTypeDef = {  # (1)
    "Id": ...,
}

parent.cancel_job(**kwargs)
  1. See CancelJobRequestRequestTypeDef

close#

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("elastictranscoder").close method. boto3 documentation

# close method definition

def close(
    self,
) -> None:
    ...

create_job#

When you create a job, Elastic Transcoder returns JSON data that includes the values that you specified plus information about the job that is created.

Type annotations and code completion for boto3.client("elastictranscoder").create_job method. boto3 documentation

# create_job method definition

def create_job(
    self,
    *,
    PipelineId: str,
    Input: JobInputTypeDef = ...,  # (1)
    Inputs: Sequence[JobInputTypeDef] = ...,  # (2)
    Output: CreateJobOutputTypeDef = ...,  # (3)
    Outputs: Sequence[CreateJobOutputTypeDef] = ...,  # (4)
    OutputKeyPrefix: str = ...,
    Playlists: Sequence[CreateJobPlaylistTypeDef] = ...,  # (5)
    UserMetadata: Mapping[str, str] = ...,
) -> CreateJobResponseTypeDef:  # (6)
    ...
  1. See JobInputTypeDef
  2. See JobInputTypeDef
  3. See CreateJobOutputTypeDef
  4. See CreateJobOutputTypeDef
  5. See CreateJobPlaylistTypeDef
  6. See CreateJobResponseTypeDef
# create_job method usage example with argument unpacking

kwargs: CreateJobRequestRequestTypeDef = {  # (1)
    "PipelineId": ...,
}

parent.create_job(**kwargs)
  1. See CreateJobRequestRequestTypeDef

create_pipeline#

The CreatePipeline operation creates a pipeline with settings that you specify.

Type annotations and code completion for boto3.client("elastictranscoder").create_pipeline method. boto3 documentation

# create_pipeline method definition

def create_pipeline(
    self,
    *,
    Name: str,
    InputBucket: str,
    Role: str,
    OutputBucket: str = ...,
    AwsKmsKeyArn: str = ...,
    Notifications: NotificationsTypeDef = ...,  # (1)
    ContentConfig: PipelineOutputConfigTypeDef = ...,  # (2)
    ThumbnailConfig: PipelineOutputConfigTypeDef = ...,  # (2)
) -> CreatePipelineResponseTypeDef:  # (4)
    ...
  1. See NotificationsTypeDef
  2. See PipelineOutputConfigTypeDef
  3. See PipelineOutputConfigTypeDef
  4. See CreatePipelineResponseTypeDef
# create_pipeline method usage example with argument unpacking

kwargs: CreatePipelineRequestRequestTypeDef = {  # (1)
    "Name": ...,
    "InputBucket": ...,
    "Role": ...,
}

parent.create_pipeline(**kwargs)
  1. See CreatePipelineRequestRequestTypeDef

create_preset#

The CreatePreset operation creates a preset with settings that you specify.

Type annotations and code completion for boto3.client("elastictranscoder").create_preset method. boto3 documentation

# create_preset method definition

def create_preset(
    self,
    *,
    Name: str,
    Container: str,
    Description: str = ...,
    Video: VideoParametersTypeDef = ...,  # (1)
    Audio: AudioParametersTypeDef = ...,  # (2)
    Thumbnails: ThumbnailsTypeDef = ...,  # (3)
) -> CreatePresetResponseTypeDef:  # (4)
    ...
  1. See VideoParametersTypeDef
  2. See AudioParametersTypeDef
  3. See ThumbnailsTypeDef
  4. See CreatePresetResponseTypeDef
# create_preset method usage example with argument unpacking

kwargs: CreatePresetRequestRequestTypeDef = {  # (1)
    "Name": ...,
    "Container": ...,
}

parent.create_preset(**kwargs)
  1. See CreatePresetRequestRequestTypeDef

delete_pipeline#

The DeletePipeline operation removes a pipeline.

Type annotations and code completion for boto3.client("elastictranscoder").delete_pipeline method. boto3 documentation

# delete_pipeline method definition

def delete_pipeline(
    self,
    *,
    Id: str,
) -> Dict[str, Any]:
    ...
# delete_pipeline method usage example with argument unpacking

kwargs: DeletePipelineRequestRequestTypeDef = {  # (1)
    "Id": ...,
}

parent.delete_pipeline(**kwargs)
  1. See DeletePipelineRequestRequestTypeDef

delete_preset#

The DeletePreset operation removes a preset that you've added in an AWS region.

Type annotations and code completion for boto3.client("elastictranscoder").delete_preset method. boto3 documentation

# delete_preset method definition

def delete_preset(
    self,
    *,
    Id: str,
) -> Dict[str, Any]:
    ...
# delete_preset method usage example with argument unpacking

kwargs: DeletePresetRequestRequestTypeDef = {  # (1)
    "Id": ...,
}

parent.delete_preset(**kwargs)
  1. See DeletePresetRequestRequestTypeDef

generate_presigned_url#

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for boto3.client("elastictranscoder").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

list_jobs_by_pipeline#

The ListJobsByPipeline operation gets a list of the jobs currently in a pipeline.

Type annotations and code completion for boto3.client("elastictranscoder").list_jobs_by_pipeline method. boto3 documentation

# list_jobs_by_pipeline method definition

def list_jobs_by_pipeline(
    self,
    *,
    PipelineId: str,
    Ascending: str = ...,
    PageToken: str = ...,
) -> ListJobsByPipelineResponseTypeDef:  # (1)
    ...
  1. See ListJobsByPipelineResponseTypeDef
# list_jobs_by_pipeline method usage example with argument unpacking

kwargs: ListJobsByPipelineRequestRequestTypeDef = {  # (1)
    "PipelineId": ...,
}

parent.list_jobs_by_pipeline(**kwargs)
  1. See ListJobsByPipelineRequestRequestTypeDef

list_jobs_by_status#

The ListJobsByStatus operation gets a list of jobs that have a specified status.

Type annotations and code completion for boto3.client("elastictranscoder").list_jobs_by_status method. boto3 documentation

# list_jobs_by_status method definition

def list_jobs_by_status(
    self,
    *,
    Status: str,
    Ascending: str = ...,
    PageToken: str = ...,
) -> ListJobsByStatusResponseTypeDef:  # (1)
    ...
  1. See ListJobsByStatusResponseTypeDef
# list_jobs_by_status method usage example with argument unpacking

kwargs: ListJobsByStatusRequestRequestTypeDef = {  # (1)
    "Status": ...,
}

parent.list_jobs_by_status(**kwargs)
  1. See ListJobsByStatusRequestRequestTypeDef

list_pipelines#

The ListPipelines operation gets a list of the pipelines associated with the current AWS account.

Type annotations and code completion for boto3.client("elastictranscoder").list_pipelines method. boto3 documentation

# list_pipelines method definition

def list_pipelines(
    self,
    *,
    Ascending: str = ...,
    PageToken: str = ...,
) -> ListPipelinesResponseTypeDef:  # (1)
    ...
  1. See ListPipelinesResponseTypeDef
# list_pipelines method usage example with argument unpacking

kwargs: ListPipelinesRequestRequestTypeDef = {  # (1)
    "Ascending": ...,
}

parent.list_pipelines(**kwargs)
  1. See ListPipelinesRequestRequestTypeDef

list_presets#

The ListPresets operation gets a list of the default presets included with Elastic Transcoder and the presets that you've added in an AWS region.

Type annotations and code completion for boto3.client("elastictranscoder").list_presets method. boto3 documentation

# list_presets method definition

def list_presets(
    self,
    *,
    Ascending: str = ...,
    PageToken: str = ...,
) -> ListPresetsResponseTypeDef:  # (1)
    ...
  1. See ListPresetsResponseTypeDef
# list_presets method usage example with argument unpacking

kwargs: ListPresetsRequestRequestTypeDef = {  # (1)
    "Ascending": ...,
}

parent.list_presets(**kwargs)
  1. See ListPresetsRequestRequestTypeDef

read_job#

The ReadJob operation returns detailed information about a job.

Type annotations and code completion for boto3.client("elastictranscoder").read_job method. boto3 documentation

# read_job method definition

def read_job(
    self,
    *,
    Id: str,
) -> ReadJobResponseTypeDef:  # (1)
    ...
  1. See ReadJobResponseTypeDef
# read_job method usage example with argument unpacking

kwargs: ReadJobRequestRequestTypeDef = {  # (1)
    "Id": ...,
}

parent.read_job(**kwargs)
  1. See ReadJobRequestRequestTypeDef

read_pipeline#

The ReadPipeline operation gets detailed information about a pipeline.

Type annotations and code completion for boto3.client("elastictranscoder").read_pipeline method. boto3 documentation

# read_pipeline method definition

def read_pipeline(
    self,
    *,
    Id: str,
) -> ReadPipelineResponseTypeDef:  # (1)
    ...
  1. See ReadPipelineResponseTypeDef
# read_pipeline method usage example with argument unpacking

kwargs: ReadPipelineRequestRequestTypeDef = {  # (1)
    "Id": ...,
}

parent.read_pipeline(**kwargs)
  1. See ReadPipelineRequestRequestTypeDef

read_preset#

The ReadPreset operation gets detailed information about a preset.

Type annotations and code completion for boto3.client("elastictranscoder").read_preset method. boto3 documentation

# read_preset method definition

def read_preset(
    self,
    *,
    Id: str,
) -> ReadPresetResponseTypeDef:  # (1)
    ...
  1. See ReadPresetResponseTypeDef
# read_preset method usage example with argument unpacking

kwargs: ReadPresetRequestRequestTypeDef = {  # (1)
    "Id": ...,
}

parent.read_preset(**kwargs)
  1. See ReadPresetRequestRequestTypeDef

test_role#

The TestRole operation tests the IAM role used to create the pipeline.

Type annotations and code completion for boto3.client("elastictranscoder").test_role method. boto3 documentation

# test_role method definition

def test_role(
    self,
    *,
    Role: str,
    InputBucket: str,
    OutputBucket: str,
    Topics: Sequence[str],
) -> TestRoleResponseTypeDef:  # (1)
    ...
  1. See TestRoleResponseTypeDef
# test_role method usage example with argument unpacking

kwargs: TestRoleRequestRequestTypeDef = {  # (1)
    "Role": ...,
    "InputBucket": ...,
    "OutputBucket": ...,
    "Topics": ...,
}

parent.test_role(**kwargs)
  1. See TestRoleRequestRequestTypeDef

update_pipeline#

Use the UpdatePipeline operation to update settings for a pipeline.

Type annotations and code completion for boto3.client("elastictranscoder").update_pipeline method. boto3 documentation

# update_pipeline method definition

def update_pipeline(
    self,
    *,
    Id: str,
    Name: str = ...,
    InputBucket: str = ...,
    Role: str = ...,
    AwsKmsKeyArn: str = ...,
    Notifications: NotificationsTypeDef = ...,  # (1)
    ContentConfig: PipelineOutputConfigTypeDef = ...,  # (2)
    ThumbnailConfig: PipelineOutputConfigTypeDef = ...,  # (2)
) -> UpdatePipelineResponseTypeDef:  # (4)
    ...
  1. See NotificationsTypeDef
  2. See PipelineOutputConfigTypeDef
  3. See PipelineOutputConfigTypeDef
  4. See UpdatePipelineResponseTypeDef
# update_pipeline method usage example with argument unpacking

kwargs: UpdatePipelineRequestRequestTypeDef = {  # (1)
    "Id": ...,
}

parent.update_pipeline(**kwargs)
  1. See UpdatePipelineRequestRequestTypeDef

update_pipeline_notifications#

With the UpdatePipelineNotifications operation, you can update Amazon Simple Notification Service (Amazon SNS) notifications for a pipeline.

Type annotations and code completion for boto3.client("elastictranscoder").update_pipeline_notifications method. boto3 documentation

# update_pipeline_notifications method definition

def update_pipeline_notifications(
    self,
    *,
    Id: str,
    Notifications: NotificationsTypeDef,  # (1)
) -> UpdatePipelineNotificationsResponseTypeDef:  # (2)
    ...
  1. See NotificationsTypeDef
  2. See UpdatePipelineNotificationsResponseTypeDef
# update_pipeline_notifications method usage example with argument unpacking

kwargs: UpdatePipelineNotificationsRequestRequestTypeDef = {  # (1)
    "Id": ...,
    "Notifications": ...,
}

parent.update_pipeline_notifications(**kwargs)
  1. See UpdatePipelineNotificationsRequestRequestTypeDef

update_pipeline_status#

The UpdatePipelineStatus operation pauses or reactivates a pipeline, so that the pipeline stops or restarts the processing of jobs.

Type annotations and code completion for boto3.client("elastictranscoder").update_pipeline_status method. boto3 documentation

# update_pipeline_status method definition

def update_pipeline_status(
    self,
    *,
    Id: str,
    Status: str,
) -> UpdatePipelineStatusResponseTypeDef:  # (1)
    ...
  1. See UpdatePipelineStatusResponseTypeDef
# update_pipeline_status method usage example with argument unpacking

kwargs: UpdatePipelineStatusRequestRequestTypeDef = {  # (1)
    "Id": ...,
    "Status": ...,
}

parent.update_pipeline_status(**kwargs)
  1. See UpdatePipelineStatusRequestRequestTypeDef

get_paginator#

Type annotations and code completion for boto3.client("elastictranscoder").get_paginator method with overloads.

get_waiter#

Type annotations and code completion for boto3.client("elastictranscoder").get_waiter method with overloads.