Creates a custom asset type¶
Description¶
Creates a custom asset type.
Prerequisites:
- The
formsInputfield is required, however, can be passed as empty (e.g.-forms-input {}). - You must have
create_asset_typepermissions. - 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.
Usage¶
datazone_create_asset_type(domainIdentifier, name, description,
formsInput, owningProjectIdentifier)
Arguments¶
-
domainIdentifier[required] The unique identifier of the Amazon DataZone domain where the custom asset type is being created.
-
name[required] The name of the custom asset type.
-
descriptionThe descripton of the custom asset type.
-
formsInput[required] The metadata forms that are to be attached to the custom asset type.
-
owningProjectIdentifier[required] The identifier of the Amazon DataZone project that is to own the custom asset type.
Value¶
A list with the following syntax:
list(
domainId = "string",
name = "string",
revision = "string",
description = "string",
formsOutput = list(
list(
typeName = "string",
typeRevision = "string",
required = TRUE|FALSE
)
),
owningProjectId = "string",
originDomainId = "string",
originProjectId = "string",
createdAt = as.POSIXct(
"2015-01-01"
),
createdBy = "string",
updatedAt = as.POSIXct(
"2015-01-01"
),
updatedBy = "string"
)