create_asset_type
async
¶
create_asset_type(
domain_identifier: DomainId,
name: TypeName,
forms_input: FormsInputMap,
owning_project_identifier: ProjectId,
*,
config_overrides: Optional[AsyncDataZoneClientConfig] = None,
description: Optional[Description] = None,
) -> CreateAssetTypeOutput
Creates a custom asset type.
Prerequisites:
-
The
formsInputfield is required, however, can be passed as empty (e.g.-forms-input {}). -
You must have
CreateAssetTypepermissions. -
The domain-identifier and owning-project-identifier must be valid and active.
-
The name of the asset type must be unique within the domain — duplicate names will cause failure.
-
JSON input must be valid — incorrect formatting causes Invalid JSON errors.
Parameters:
-
domain_identifier(DomainId) –The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
-
name(TypeName) –The name of the custom asset type.
-
description(Optional[Description], default:None) –The descripton of the custom asset type.
-
forms_input(FormsInputMap) –The metadata forms that are to be attached to the custom asset type.
-
owning_project_identifier(ProjectId) –The identifier of the Amazon DataZone project that is to own the custom asset type.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ThrottlingException–The request was denied due to request throttling.
-
UnauthorizedException–You do not have permission to perform this action.
-
ConflictException–There is a conflict while performing this action.
-
InternalServerException–The request has failed because of an unknown error, exception or failure.
-
ServiceQuotaExceededException–The request has exceeded the specified service quota.
-
ValidationException–The input fails to satisfy the constraints specified by the Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_datazone/_services/async_data_zone.py
12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 | |