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
14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 | |