Skip to content

Create Asset Type

datazone_create_asset_type R Documentation

Creates a custom asset type

Description

Creates a custom asset type.

Prerequisites:

  • The formsInput field is required, however, can be passed as empty (e.g. ⁠-forms-input {})⁠.

  • You must have create_asset_type permissions.

  • 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.

description

The 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"
)

Request syntax

svc$create_asset_type(
  domainIdentifier = "string",
  name = "string",
  description = "string",
  formsInput = list(
    list(
      typeIdentifier = "string",
      typeRevision = "string",
      required = TRUE|FALSE
    )
  ),
  owningProjectIdentifier = "string"
)