create_asset
¶
create_asset(
name: AssetName,
domain_identifier: DomainId,
type_identifier: AssetTypeIdentifier,
owning_project_identifier: ProjectId,
*,
config_overrides: Optional[DataZoneClientConfig] = 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/data_zone.py
11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 | |