create_form_type
¶
create_form_type(
domain_identifier: DomainId,
name: FormTypeName,
model: Model,
owning_project_identifier: ProjectId,
*,
config_overrides: Optional[DataZoneClientConfig] = None,
status: Optional[FormTypeStatus] = None,
description: Optional[Description] = None,
) -> CreateFormTypeOutput
Creates a metadata form type.
Prerequisites:
-
The domain must exist and be in an
ENABLEDstate. -
The owning project must exist and be accessible.
-
The name must be unique within the domain.
For custom form types, to indicate that a field should be searchable, annotate it with @amazon.datazone#searchable. By default, searchable fields are indexed for semantic search, where related query terms will match the attribute value even if they are not stemmed or keyword matches. To indicate that a field should be indexed for lexical search (which disables semantic search but supports stemmed and partial matches), annotate it with @amazon.datazone#searchable(modes:["LEXICAL"]). To indicate that a field should be indexed for technical identifier search (for more information on technical identifier search, see: https://aws.amazon.com/blogs/big-data/streamline-data-discovery-with-precise-technical-identifier-search-in-amazon-sagemaker-unified-studio/), annotate it with @amazon.datazone#searchable(modes:["TECHNICAL"]).
To denote that a field will store glossary term ids (which are filterable via the Search/SearchListings APIs), annotate it with @amazon.datazone#glossaryterm("${GLOSSARY_ID}"), where ${GLOSSARY_ID} is the id of the glossary that the glossary terms stored in the field belong to.
Parameters:
-
domain_identifier(DomainId) –The ID of the Amazon DataZone domain in which this metadata form type is created.
-
name(FormTypeName) –The name of this Amazon DataZone metadata form type.
-
model(Model) –The model of this Amazon DataZone metadata form type.
-
owning_project_identifier(ProjectId) –The ID of the Amazon DataZone project that owns this metadata form type.
-
status(Optional[FormTypeStatus], default:None) –The status of this Amazon DataZone metadata form type.
-
description(Optional[Description], default:None) –The description of this Amazon DataZone metadata form 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/data_zone.py
14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 | |