Skip to content

ConnectHealthClient.create_dataset

rboto-connecthealth==0.4.0 · Service index · Types

Model summary (excerpt): Creates a Dataset in a Domain and starts building it. A new dataset has the status CREATING. When it's ready to use, its status changes to ACTIVE, or to CREATE_FAILED if it fails to build. To check the status, call GetDataset. This operation is idempotent: if you retry a request with the same clientToken, it returns the dataset that the first request created. For a medical coding dataset,...

Install and imports

python -m pip install "rboto[connecthealth]==0.4.0"
from rboto import ConnectHealthClient
from rboto_connecthealth.types import (
    CreateDatasetOutput,
    DatasetConfig,
)

Signature

async def create_dataset(
    *,
    domain_id: str,
    name: str,
    config: DatasetConfig,
    client_token: str | None = None,
) -> CreateDatasetOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
domain_id Yes The unique identifier of the parent Domain.
name Yes A name for the dataset.
config Yes The configuration of the dataset. The member that you set determines the dataset type. You can't change the configuration after you create the dataset.
client_token No A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the operation returns the dataset that the first request created. If you reuse a clientToken with different parameters, the request fails with ConflictException. Use a new clientToken for a request with different parameters.

Output

CreateDatasetOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
arn str Always present —
dataset_id str Always present —
type DatasetTypeOutput Always present DatasetTypeOutput
status DatasetStatusOutput Always present DatasetStatusOutput
created_at str Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

CreateDatasetOutput, DatasetConfig

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_connecthealth.exceptions:

AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, ValidationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model