BraketClient#
Auto-generated documentation for Braket type annotations stubs module types-boto3-braket.
BraketClient#
Type annotations and code completion for boto3.client("braket").
 boto3 documentation
# BraketClient usage example
from boto3.session import Session
from types_boto3_braket.client import BraketClient
def get_braket_client() -> BraketClient:
    return Session().client("braket")Exceptions#
boto3 client exceptions are generated in runtime.
This class provides code completion for boto3.client("braket").exceptions structure.
# Exceptions.exceptions usage example
client = boto3.client("braket")
try:
    do_something(client)
except (
    client.exceptions.AccessDeniedException,
    client.exceptions.ClientError,
    client.exceptions.ConflictException,
    client.exceptions.DeviceOfflineException,
    client.exceptions.DeviceRetiredException,
    client.exceptions.InternalServiceException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ServiceQuotaExceededException,
    client.exceptions.ThrottlingException,
    client.exceptions.ValidationException,
) as e:
    print(e)# Exceptions.exceptions type checking example
from types_boto3_braket.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
    ...Methods#
can_paginate#
Type annotations and code completion for boto3.client("braket").can_paginate method.
 boto3 documentation
# can_paginate method definition
def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...generate_presigned_url#
Type annotations and code completion for boto3.client("braket").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:
    ...cancel_job#
Cancels an Amazon Braket hybrid job.
Type annotations and code completion for boto3.client("braket").cancel_job method.
 boto3 documentation
# cancel_job method definition
def cancel_job(
    self,
    *,
    jobArn: str,
) -> CancelJobResponseTypeDef:  # (1)
    ...# cancel_job method usage example with argument unpacking
kwargs: CancelJobRequestTypeDef = {  # (1)
    "jobArn": ...,
}
parent.cancel_job(**kwargs)cancel_quantum_task#
Cancels the specified task.
Type annotations and code completion for boto3.client("braket").cancel_quantum_task method.
 boto3 documentation
# cancel_quantum_task method definition
def cancel_quantum_task(
    self,
    *,
    quantumTaskArn: str,
    clientToken: str,
) -> CancelQuantumTaskResponseTypeDef:  # (1)
    ...# cancel_quantum_task method usage example with argument unpacking
kwargs: CancelQuantumTaskRequestTypeDef = {  # (1)
    "quantumTaskArn": ...,
    "clientToken": ...,
}
parent.cancel_quantum_task(**kwargs)create_job#
Creates an Amazon Braket hybrid job.
Type annotations and code completion for boto3.client("braket").create_job method.
 boto3 documentation
# create_job method definition
def create_job(
    self,
    *,
    clientToken: str,
    algorithmSpecification: AlgorithmSpecificationTypeDef,  # (1)
    outputDataConfig: JobOutputDataConfigTypeDef,  # (2)
    jobName: str,
    roleArn: str,
    instanceConfig: InstanceConfigTypeDef,  # (3)
    deviceConfig: DeviceConfigTypeDef,  # (4)
    inputDataConfig: Sequence[InputFileConfigTypeDef] = ...,  # (5)
    checkpointConfig: JobCheckpointConfigTypeDef = ...,  # (6)
    stoppingCondition: JobStoppingConditionTypeDef = ...,  # (7)
    hyperParameters: Mapping[str, str] = ...,
    tags: Mapping[str, str] = ...,
    associations: Sequence[AssociationTypeDef] = ...,  # (8)
) -> CreateJobResponseTypeDef:  # (9)
    ...- See AlgorithmSpecificationTypeDef
- See JobOutputDataConfigTypeDef
- See InstanceConfigTypeDef
- See DeviceConfigTypeDef
- See Sequence[InputFileConfigTypeDef]
- See JobCheckpointConfigTypeDef
- See JobStoppingConditionTypeDef
- See Sequence[AssociationTypeDef]
- See CreateJobResponseTypeDef
# create_job method usage example with argument unpacking
kwargs: CreateJobRequestTypeDef = {  # (1)
    "clientToken": ...,
    "algorithmSpecification": ...,
    "outputDataConfig": ...,
    "jobName": ...,
    "roleArn": ...,
    "instanceConfig": ...,
    "deviceConfig": ...,
}
parent.create_job(**kwargs)create_quantum_task#
Creates a quantum task.
Type annotations and code completion for boto3.client("braket").create_quantum_task method.
 boto3 documentation
# create_quantum_task method definition
def create_quantum_task(
    self,
    *,
    clientToken: str,
    deviceArn: str,
    shots: int,
    outputS3Bucket: str,
    outputS3KeyPrefix: str,
    action: str,
    deviceParameters: str = ...,
    tags: Mapping[str, str] = ...,
    jobToken: str = ...,
    associations: Sequence[AssociationTypeDef] = ...,  # (1)
) -> CreateQuantumTaskResponseTypeDef:  # (2)
    ...- See Sequence[AssociationTypeDef]
- See CreateQuantumTaskResponseTypeDef
# create_quantum_task method usage example with argument unpacking
kwargs: CreateQuantumTaskRequestTypeDef = {  # (1)
    "clientToken": ...,
    "deviceArn": ...,
    "shots": ...,
    "outputS3Bucket": ...,
    "outputS3KeyPrefix": ...,
    "action": ...,
}
parent.create_quantum_task(**kwargs)get_device#
Retrieves the devices available in Amazon Braket.
Type annotations and code completion for boto3.client("braket").get_device method.
 boto3 documentation
# get_device method definition
def get_device(
    self,
    *,
    deviceArn: str,
) -> GetDeviceResponseTypeDef:  # (1)
    ...# get_device method usage example with argument unpacking
kwargs: GetDeviceRequestTypeDef = {  # (1)
    "deviceArn": ...,
}
parent.get_device(**kwargs)get_job#
Retrieves the specified Amazon Braket hybrid job.
Type annotations and code completion for boto3.client("braket").get_job method.
 boto3 documentation
# get_job method definition
def get_job(
    self,
    *,
    jobArn: str,
    additionalAttributeNames: Sequence[HybridJobAdditionalAttributeNameType] = ...,  # (1)
) -> GetJobResponseTypeDef:  # (2)
    ...- See Sequence[Literal['QueueInfo']]
- See GetJobResponseTypeDef
# get_job method usage example with argument unpacking
kwargs: GetJobRequestTypeDef = {  # (1)
    "jobArn": ...,
}
parent.get_job(**kwargs)get_quantum_task#
Retrieves the specified quantum task.
Type annotations and code completion for boto3.client("braket").get_quantum_task method.
 boto3 documentation
# get_quantum_task method definition
def get_quantum_task(
    self,
    *,
    quantumTaskArn: str,
    additionalAttributeNames: Sequence[QuantumTaskAdditionalAttributeNameType] = ...,  # (1)
) -> GetQuantumTaskResponseTypeDef:  # (2)
    ...- See Sequence[Literal['QueueInfo']]
- See GetQuantumTaskResponseTypeDef
# get_quantum_task method usage example with argument unpacking
kwargs: GetQuantumTaskRequestTypeDef = {  # (1)
    "quantumTaskArn": ...,
}
parent.get_quantum_task(**kwargs)list_tags_for_resource#
Shows the tags associated with this resource.
Type annotations and code completion for boto3.client("braket").list_tags_for_resource method.
 boto3 documentation
# list_tags_for_resource method definition
def list_tags_for_resource(
    self,
    *,
    resourceArn: str,
) -> ListTagsForResourceResponseTypeDef:  # (1)
    ...# list_tags_for_resource method usage example with argument unpacking
kwargs: ListTagsForResourceRequestTypeDef = {  # (1)
    "resourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)search_devices#
Searches for devices using the specified filters.
Type annotations and code completion for boto3.client("braket").search_devices method.
 boto3 documentation
# search_devices method definition
def search_devices(
    self,
    *,
    filters: Sequence[SearchDevicesFilterTypeDef],  # (1)
    nextToken: str = ...,
    maxResults: int = ...,
) -> SearchDevicesResponseTypeDef:  # (2)
    ...- See Sequence[SearchDevicesFilterTypeDef]
- See SearchDevicesResponseTypeDef
# search_devices method usage example with argument unpacking
kwargs: SearchDevicesRequestTypeDef = {  # (1)
    "filters": ...,
}
parent.search_devices(**kwargs)search_jobs#
Searches for Amazon Braket hybrid jobs that match the specified filter values.
Type annotations and code completion for boto3.client("braket").search_jobs method.
 boto3 documentation
# search_jobs method definition
def search_jobs(
    self,
    *,
    filters: Sequence[SearchJobsFilterTypeDef],  # (1)
    nextToken: str = ...,
    maxResults: int = ...,
) -> SearchJobsResponseTypeDef:  # (2)
    ...- See Sequence[SearchJobsFilterTypeDef]
- See SearchJobsResponseTypeDef
# search_jobs method usage example with argument unpacking
kwargs: SearchJobsRequestTypeDef = {  # (1)
    "filters": ...,
}
parent.search_jobs(**kwargs)search_quantum_tasks#
Searches for tasks that match the specified filter values.
Type annotations and code completion for boto3.client("braket").search_quantum_tasks method.
 boto3 documentation
# search_quantum_tasks method definition
def search_quantum_tasks(
    self,
    *,
    filters: Sequence[SearchQuantumTasksFilterTypeDef],  # (1)
    nextToken: str = ...,
    maxResults: int = ...,
) -> SearchQuantumTasksResponseTypeDef:  # (2)
    ...- See Sequence[SearchQuantumTasksFilterTypeDef]
- See SearchQuantumTasksResponseTypeDef
# search_quantum_tasks method usage example with argument unpacking
kwargs: SearchQuantumTasksRequestTypeDef = {  # (1)
    "filters": ...,
}
parent.search_quantum_tasks(**kwargs)tag_resource#
Add a tag to the specified resource.
Type annotations and code completion for boto3.client("braket").tag_resource method.
 boto3 documentation
# tag_resource method definition
def tag_resource(
    self,
    *,
    resourceArn: str,
    tags: Mapping[str, str],
) -> Dict[str, Any]:
    ...# tag_resource method usage example with argument unpacking
kwargs: TagResourceRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "tags": ...,
}
parent.tag_resource(**kwargs)untag_resource#
Remove tags from a resource.
Type annotations and code completion for boto3.client("braket").untag_resource method.
 boto3 documentation
# untag_resource method definition
def untag_resource(
    self,
    *,
    resourceArn: str,
    tagKeys: Sequence[str],
) -> Dict[str, Any]:
    ...# untag_resource method usage example with argument unpacking
kwargs: UntagResourceRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "tagKeys": ...,
}
parent.untag_resource(**kwargs)get_paginator#
Type annotations and code completion for boto3.client("braket").get_paginator method with overloads.
- client.get_paginator("search_devices")-> SearchDevicesPaginator
- client.get_paginator("search_jobs")-> SearchJobsPaginator
- client.get_paginator("search_quantum_tasks")-> SearchQuantumTasksPaginator