DataZone / Client / create_asset_type

create_asset_type#

DataZone.Client.create_asset_type(**kwargs)#

Creates a custom asset type.

See also: AWS API Documentation

Request Syntax

response = client.create_asset_type(
    description='string',
    domainIdentifier='string',
    formsInput={
        'string': {
            'required': True|False,
            'typeIdentifier': 'string',
            'typeRevision': 'string'
        }
    },
    name='string',
    owningProjectIdentifier='string'
)
Parameters:
  • description (string) – The descripton of the custom asset type.

  • domainIdentifier (string) –

    [REQUIRED]

    The unique identifier of the Amazon DataZone domain where the custom asset type is being created.

  • formsInput (dict) –

    [REQUIRED]

    The metadata forms that are to be attached to the custom asset type.

    • (string) –

      • (dict) –

        The details of the form entry.

        • required (boolean) –

          Specifies whether a form entry is required.

        • typeIdentifier (string) – [REQUIRED]

          The type ID of the form entry.

        • typeRevision (string) – [REQUIRED]

          The type revision of the form entry.

  • name (string) –

    [REQUIRED]

    The name of the custom asset type.

  • owningProjectIdentifier (string) –

    [REQUIRED]

    The identifier of the Amazon DataZone project that is to own the custom asset type.

Return type:

dict

Returns:

Response Syntax

{
    'createdAt': datetime(2015, 1, 1),
    'createdBy': 'string',
    'description': 'string',
    'domainId': 'string',
    'formsOutput': {
        'string': {
            'required': True|False,
            'typeName': 'string',
            'typeRevision': 'string'
        }
    },
    'name': 'string',
    'originDomainId': 'string',
    'originProjectId': 'string',
    'owningProjectId': 'string',
    'revision': 'string',
    'updatedAt': datetime(2015, 1, 1),
    'updatedBy': 'string'
}

Response Structure

  • (dict) –

    • createdAt (datetime) –

      The timestamp of when the asset type is to be created.

    • createdBy (string) –

      The Amazon DataZone user who creates this custom asset type.

    • description (string) –

      The description of the custom asset type.

    • domainId (string) –

      The ID of the Amazon DataZone domain in which the asset type was created.

    • formsOutput (dict) –

      The metadata forms that are attached to the asset type.

      • (string) –

        • (dict) –

          The details of the form entry.

          • required (boolean) –

            Specifies whether a form entry is required.

          • typeName (string) –

            The name of the type of the form entry.

          • typeRevision (string) –

            The type revision of the form entry.

    • name (string) –

      The name of the asset type.

    • originDomainId (string) –

      The ID of the Amazon DataZone domain where the asset type was originally created.

    • originProjectId (string) –

      The ID of the Amazon DataZone project where the asset type was originally created.

    • owningProjectId (string) –

      The ID of the Amazon DataZone project that currently owns this asset type.

    • revision (string) –

      The revision of the custom asset type.

    • updatedAt (datetime) –

      The timestamp of when the custom type was created.

    • updatedBy (string) –

      The Amazon DataZone user that created the custom asset type.

Exceptions