create_asset_type
async
¶
create_asset_type(
domain_identifier: DomainId,
name: TypeName,
forms_input: FormsInputMap,
owning_project_identifier: ProjectId,
*,
config_overrides: Optional[AsyncDataZoneClientConfig] = 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/async_data_zone.py
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 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 | |