DataZone / Client / get_asset_type

get_asset_type

DataZone.Client.get_asset_type(**kwargs)

Gets an Amazon DataZone asset type.

Asset types define the categories and characteristics of different kinds of data assets within Amazon DataZone.. They determine what metadata fields are required, what operations are possible, and how the asset integrates with other Amazon Web Services services. Asset types can range from built-in types like Amazon S3 buckets and Amazon Web Services Glue tables to custom types defined for specific organizational needs. Understanding asset types is crucial for properly organizing and managing different kinds of data resources.

Prerequisites:

  • The asset type with identifier must exist in the domain. ResourceNotFoundException.

  • You must have the GetAssetType permission.

  • Ensure the domain-identifier value is correct and accessible.

See also: AWS API Documentation

Request Syntax

response = client.get_asset_type(
    domainIdentifier='string',
    identifier='string',
    revision='string'
)
Parameters:
  • domainIdentifier (string) –

    [REQUIRED]

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

  • identifier (string) –

    [REQUIRED]

    The ID of the asset type.

  • revision (string) – The revision of the asset type.

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    • domainId (string) –

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

    • name (string) –

      The name of the asset type.

    • revision (string) –

      The revision of the asset type.

    • description (string) –

      The description of the asset type.

    • formsOutput (dict) –

      The metadata forms attached to the asset type.

      • (string) –

        • (dict) –

          The details of the form entry.

          • typeName (string) –

            The name of the type of the form entry.

          • typeRevision (string) –

            The type revision of the form entry.

          • required (boolean) –

            Specifies whether a form entry is required.

    • owningProjectId (string) –

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

    • originDomainId (string) –

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

    • originProjectId (string) –

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

    • createdAt (datetime) –

      The timestamp of when the asset type was created.

    • createdBy (string) –

      The Amazon DataZone user who created the asset type.

    • updatedAt (datetime) –

      The timestamp of when the asset type was updated.

    • updatedBy (string) –

      The Amazon DataZone user that updated the asset type.

Exceptions

  • DataZone.Client.exceptions.InternalServerException

  • DataZone.Client.exceptions.ResourceNotFoundException

  • DataZone.Client.exceptions.AccessDeniedException

  • DataZone.Client.exceptions.ThrottlingException

  • DataZone.Client.exceptions.ValidationException

  • DataZone.Client.exceptions.UnauthorizedException