Skip to content

BraketClient

Index > Braket > BraketClient

Auto-generated documentation for Braket type annotations stubs module types-aiobotocore-braket.

BraketClient

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

Usage example
from aioboto3.session import Session
from types_aiobotocore_braket.client import BraketClient

session = Session()
async with session.client("braket") as client:
    client: BraketClient

Exceptions

aioboto3 client exceptions are generated in runtime. This class provides code completion for session.client("braket").exceptions structure.

Usage example
async with session.client("braket") as client:
    try:
        do_something(client)
    except (
            client.AccessDeniedException,
        client.ClientError,
        client.ConflictException,
        client.DeviceOfflineException,
        client.DeviceRetiredException,
        client.InternalServiceException,
        client.ResourceNotFoundException,
        client.ServiceQuotaExceededException,
        client.ThrottlingException,
        client.ValidationException,
    ) as e:
        print(e)
Type checking example
from types_aiobotocore_braket.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 session.client("braket").can_paginate method. boto3 documentation

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

cancel_job

Cancels an Amazon Braket job.

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

Method definition
await def cancel_job(
    self,
    *,
    jobArn: str,
) -> CancelJobResponseTypeDef:  # (1)
    ...
  1. See CancelJobResponseTypeDef
Usage example with kwargs
kwargs: CancelJobRequestRequestTypeDef = {  # (1)
    "jobArn": ...,
}

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

cancel_quantum_task

Cancels the specified task.

Type annotations and code completion for session.client("braket").cancel_quantum_task method. boto3 documentation

Method definition
await def cancel_quantum_task(
    self,
    *,
    clientToken: str,
    quantumTaskArn: str,
) -> CancelQuantumTaskResponseTypeDef:  # (1)
    ...
  1. See CancelQuantumTaskResponseTypeDef
Usage example with kwargs
kwargs: CancelQuantumTaskRequestRequestTypeDef = {  # (1)
    "clientToken": ...,
    "quantumTaskArn": ...,
}

parent.cancel_quantum_task(**kwargs)
  1. See CancelQuantumTaskRequestRequestTypeDef

close

Closes underlying endpoint connections.

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

Method definition
await def close(
    self,
) -> None:
    ...

create_job

Creates an Amazon Braket job.

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

Method definition
await def create_job(
    self,
    *,
    algorithmSpecification: AlgorithmSpecificationTypeDef,  # (1)
    clientToken: str,
    deviceConfig: DeviceConfigTypeDef,  # (2)
    instanceConfig: InstanceConfigTypeDef,  # (3)
    jobName: str,
    outputDataConfig: JobOutputDataConfigTypeDef,  # (4)
    roleArn: str,
    checkpointConfig: JobCheckpointConfigTypeDef = ...,  # (5)
    hyperParameters: Mapping[str, str] = ...,
    inputDataConfig: Sequence[InputFileConfigTypeDef] = ...,  # (6)
    stoppingCondition: JobStoppingConditionTypeDef = ...,  # (7)
    tags: Mapping[str, str] = ...,
) -> CreateJobResponseTypeDef:  # (8)
    ...
  1. See AlgorithmSpecificationTypeDef
  2. See DeviceConfigTypeDef
  3. See InstanceConfigTypeDef
  4. See JobOutputDataConfigTypeDef
  5. See JobCheckpointConfigTypeDef
  6. See InputFileConfigTypeDef
  7. See JobStoppingConditionTypeDef
  8. See CreateJobResponseTypeDef
Usage example with kwargs
kwargs: CreateJobRequestRequestTypeDef = {  # (1)
    "algorithmSpecification": ...,
    "clientToken": ...,
    "deviceConfig": ...,
    "instanceConfig": ...,
    "jobName": ...,
    "outputDataConfig": ...,
    "roleArn": ...,
}

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

create_quantum_task

Creates a quantum task.

Type annotations and code completion for session.client("braket").create_quantum_task method. boto3 documentation

Method definition
await def create_quantum_task(
    self,
    *,
    action: str,
    clientToken: str,
    deviceArn: str,
    outputS3Bucket: str,
    outputS3KeyPrefix: str,
    shots: int,
    deviceParameters: str = ...,
    jobToken: str = ...,
    tags: Mapping[str, str] = ...,
) -> CreateQuantumTaskResponseTypeDef:  # (1)
    ...
  1. See CreateQuantumTaskResponseTypeDef
Usage example with kwargs
kwargs: CreateQuantumTaskRequestRequestTypeDef = {  # (1)
    "action": ...,
    "clientToken": ...,
    "deviceArn": ...,
    "outputS3Bucket": ...,
    "outputS3KeyPrefix": ...,
    "shots": ...,
}

parent.create_quantum_task(**kwargs)
  1. See CreateQuantumTaskRequestRequestTypeDef

generate_presigned_url

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

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

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

get_device

Retrieves the devices available in Amazon Braket.

Type annotations and code completion for session.client("braket").get_device method. boto3 documentation

Method definition
await def get_device(
    self,
    *,
    deviceArn: str,
) -> GetDeviceResponseTypeDef:  # (1)
    ...
  1. See GetDeviceResponseTypeDef
Usage example with kwargs
kwargs: GetDeviceRequestRequestTypeDef = {  # (1)
    "deviceArn": ...,
}

parent.get_device(**kwargs)
  1. See GetDeviceRequestRequestTypeDef

get_job

Retrieves the specified Amazon Braket job.

Type annotations and code completion for session.client("braket").get_job method. boto3 documentation

Method definition
await def get_job(
    self,
    *,
    jobArn: str,
) -> GetJobResponseTypeDef:  # (1)
    ...
  1. See GetJobResponseTypeDef
Usage example with kwargs
kwargs: GetJobRequestRequestTypeDef = {  # (1)
    "jobArn": ...,
}

parent.get_job(**kwargs)
  1. See GetJobRequestRequestTypeDef

get_quantum_task

Retrieves the specified quantum task.

Type annotations and code completion for session.client("braket").get_quantum_task method. boto3 documentation

Method definition
await def get_quantum_task(
    self,
    *,
    quantumTaskArn: str,
) -> GetQuantumTaskResponseTypeDef:  # (1)
    ...
  1. See GetQuantumTaskResponseTypeDef
Usage example with kwargs
kwargs: GetQuantumTaskRequestRequestTypeDef = {  # (1)
    "quantumTaskArn": ...,
}

parent.get_quantum_task(**kwargs)
  1. See GetQuantumTaskRequestRequestTypeDef

list_tags_for_resource

Shows the tags associated with this resource.

Type annotations and code completion for session.client("braket").list_tags_for_resource method. boto3 documentation

Method definition
await def list_tags_for_resource(
    self,
    *,
    resourceArn: str,
) -> ListTagsForResourceResponseTypeDef:  # (1)
    ...
  1. See ListTagsForResourceResponseTypeDef
Usage example with kwargs
kwargs: ListTagsForResourceRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
}

parent.list_tags_for_resource(**kwargs)
  1. See ListTagsForResourceRequestRequestTypeDef

search_devices

Searches for devices using the specified filters.

Type annotations and code completion for session.client("braket").search_devices method. boto3 documentation

Method definition
await def search_devices(
    self,
    *,
    filters: Sequence[SearchDevicesFilterTypeDef],  # (1)
    maxResults: int = ...,
    nextToken: str = ...,
) -> SearchDevicesResponseTypeDef:  # (2)
    ...
  1. See SearchDevicesFilterTypeDef
  2. See SearchDevicesResponseTypeDef
Usage example with kwargs
kwargs: SearchDevicesRequestRequestTypeDef = {  # (1)
    "filters": ...,
}

parent.search_devices(**kwargs)
  1. See SearchDevicesRequestRequestTypeDef

search_jobs

Searches for Amazon Braket jobs that match the specified filter values.

Type annotations and code completion for session.client("braket").search_jobs method. boto3 documentation

Method definition
await def search_jobs(
    self,
    *,
    filters: Sequence[SearchJobsFilterTypeDef],  # (1)
    maxResults: int = ...,
    nextToken: str = ...,
) -> SearchJobsResponseTypeDef:  # (2)
    ...
  1. See SearchJobsFilterTypeDef
  2. See SearchJobsResponseTypeDef
Usage example with kwargs
kwargs: SearchJobsRequestRequestTypeDef = {  # (1)
    "filters": ...,
}

parent.search_jobs(**kwargs)
  1. See SearchJobsRequestRequestTypeDef

search_quantum_tasks

Searches for tasks that match the specified filter values.

Type annotations and code completion for session.client("braket").search_quantum_tasks method. boto3 documentation

Method definition
await def search_quantum_tasks(
    self,
    *,
    filters: Sequence[SearchQuantumTasksFilterTypeDef],  # (1)
    maxResults: int = ...,
    nextToken: str = ...,
) -> SearchQuantumTasksResponseTypeDef:  # (2)
    ...
  1. See SearchQuantumTasksFilterTypeDef
  2. See SearchQuantumTasksResponseTypeDef
Usage example with kwargs
kwargs: SearchQuantumTasksRequestRequestTypeDef = {  # (1)
    "filters": ...,
}

parent.search_quantum_tasks(**kwargs)
  1. See SearchQuantumTasksRequestRequestTypeDef

tag_resource

Add a tag to the specified resource.

Type annotations and code completion for session.client("braket").tag_resource method. boto3 documentation

Method definition
await def tag_resource(
    self,
    *,
    resourceArn: str,
    tags: Mapping[str, str],
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: TagResourceRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "tags": ...,
}

parent.tag_resource(**kwargs)
  1. See TagResourceRequestRequestTypeDef

untag_resource

Remove tags from a resource.

Type annotations and code completion for session.client("braket").untag_resource method. boto3 documentation

Method definition
await def untag_resource(
    self,
    *,
    resourceArn: str,
    tagKeys: Sequence[str],
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: UntagResourceRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "tagKeys": ...,
}

parent.untag_resource(**kwargs)
  1. See UntagResourceRequestRequestTypeDef

__aenter__

Type annotations and code completion for session.client("braket").__aenter__ method. boto3 documentation

Method definition
await def __aenter__(
    self,
) -> BraketClient:
    ...

__aexit__

Type annotations and code completion for session.client("braket").__aexit__ method. boto3 documentation

Method definition
await def __aexit__(
    self,
    exc_type: Any,
    exc_val: Any,
    exc_tb: Any,
) -> Any:
    ...

get_paginator

Type annotations and code completion for session.client("braket").get_paginator method with overloads.