create_entity
async
¶
create_entity(
workspace_id: Id,
entity_name: EntityName,
*,
config_overrides: Optional[AsyncIoTTwinMakerClientConfig] = None,
entity_id: Optional[EntityId] = None,
description: Optional[Description] = None,
components: Optional[ComponentsMapRequest] = None,
composite_components: Optional[CompositeComponentsMapRequest] = None,
parent_entity_id: Optional[ParentEntityId] = None,
tags: Optional[TagMap] = None,
) -> CreateEntityResponse
Creates an entity.
Parameters:
-
workspace_id(Id) –The ID of the workspace that contains the entity.
-
entity_id(Optional[EntityId], default:None) –The ID of the entity.
-
entity_name(EntityName) –The name of the entity.
-
description(Optional[Description], default:None) –The description of the entity.
-
components(Optional[ComponentsMapRequest], default:None) –An object that maps strings to the components in the entity. Each string in the mapping must be unique to this object.
-
composite_components(Optional[CompositeComponentsMapRequest], default:None) –This is an object that maps strings to
compositeComponentupdates in the request. Each key of the map represents thecomponentPathof thecompositeComponent. -
parent_entity_id(Optional[ParentEntityId], default:None) –The ID of the entity's parent entity.
-
tags(Optional[TagMap], default:None) –Metadata that you can use to manage the entity.
Raises:
-
AccessDeniedException–Access is denied.
-
ConflictException–A conflict occurred.
-
InternalServerException–An unexpected error has occurred.
-
ServiceQuotaExceededException–The service quota was exceeded.
-
ThrottlingException–The rate exceeds the limit.
-
ValidationException–Failed
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iottwinmaker/_services/async_io_t_twin_maker.py
482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 | |