create_asset
async
¶
create_asset(
name: AssetName,
domain_identifier: DomainId,
type_identifier: AssetTypeIdentifier,
owning_project_identifier: ProjectId,
*,
config_overrides: Optional[AsyncDataZoneClientConfig] = None,
external_identifier: Optional[ExternalIdentifier] = None,
type_revision: Optional[Revision] = None,
description: Optional[Description] = None,
glossary_terms: Optional[GlossaryTerms] = None,
forms_input: Optional[FormInputList] = None,
prediction_configuration: Optional[PredictionConfiguration] = None,
client_token: Optional[ClientToken] = None,
) -> CreateAssetOutput
Creates an asset in Amazon DataZone catalog.
Before creating assets, make sure that the following requirements are met:
-
--domain-identifiermust refer to an existing domain. -
--owning-project-identifiermust be a valid project within the domain. -
Asset type must be created beforehand using
create-asset-type, or be a supported system-defined type. For more information, see create-asset-type. -
--type-revision(if used) must match a valid revision of the asset type. -
formsInputis required when it is associated as required in theasset-type. For more information, see create-form-type. -
Form content must include all required fields as per the form schema (e.g.,
bucketArn).
You must invoke the following pre-requisite commands before invoking this API:
Parameters:
-
name(AssetName) –Asset name.
-
domain_identifier(DomainId) –Amazon DataZone domain where the asset is created.
-
external_identifier(Optional[ExternalIdentifier], default:None) –The external identifier of the asset.
If the value for the
externalIdentifierparameter is specified, it must be a unique value. -
type_identifier(AssetTypeIdentifier) –The unique identifier of this asset's type.
-
type_revision(Optional[Revision], default:None) –The revision of this asset's type.
-
description(Optional[Description], default:None) –Asset description.
-
glossary_terms(Optional[GlossaryTerms], default:None) –Glossary terms attached to the asset.
-
forms_input(Optional[FormInputList], default:None) –Metadata forms attached to the asset.
-
owning_project_identifier(ProjectId) –The unique identifier of the project that owns this asset.
-
prediction_configuration(Optional[PredictionConfiguration], default:None) –The configuration of the automatically generated business-friendly metadata for the asset.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
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.
-
ResourceNotFoundException–The specified resource cannot be found.
-
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
11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 | |