create_asset_type
¶
create_asset_type(
domain_identifier: DomainId,
name: TypeName,
forms_input: FormsInputMap,
owning_project_identifier: ProjectId,
*,
config_overrides: Optional[DataZoneClientConfig] = 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/data_zone.py
12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 | |