DataZone / Client / update_designation

update_designation

DataZone.Client.update_designation(**kwargs)

Updates an existing designation. Managed designations cannot be modified.

See also: AWS API Documentation

Request Syntax

response = client.update_designation(
    domainIdentifier='string',
    identifier='string',
    name='string',
    description='string',
    policy='string',
    deletionProtection=True|False
)
Parameters:
  • domainIdentifier (string) –

    [REQUIRED]

    The identifier of the Amazon DataZone domain that contains the designation to update.

  • identifier (string) –

    [REQUIRED]

    The unique ID of the designation to update.

  • name (string) – The updated name of the designation. The name must be unique within the domain.

  • description (string) – The updated human-readable description of the designation and its intended use.

  • policy (string) – The updated Cedar permit policy.

  • deletionProtection (boolean) – Whether deletion protection is enabled for this designation. Omit to keep the existing value.

Return type:

dict

Returns:

Response Syntax

{
    'domainId': 'string',
    'id': 'string',
    'name': 'string',
    'description': 'string',
    'designationType': 'MANAGED'|'USER_CREATED',
    'policy': 'string',
    'deletionProtection': True|False,
    'createdBy': 'string',
    'createdAt': datetime(2015, 1, 1),
    'lastUpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    A designation defines a named role with a Cedar permit policy that controls what actions members holding this designation can perform within a project.

    • domainId (string) –

      The identifier of the Amazon DataZone domain that contains the designation.

    • id (string) –

      The unique ID of the designation.

    • name (string) –

      The name of the designation. The name is unique within the domain.

    • description (string) –

      A human-readable description of the designation and its intended use.

    • designationType (string) –

      The classification of this designation. MANAGED designations are system-defined and cannot be modified or deleted.

    • policy (string) –

      The Cedar permit policy that governs what actions holders of this designation are allowed to perform.

    • deletionProtection (boolean) –

      Whether deletion protection is enabled for this designation. When true, DeleteDesignation is rejected until protection is disabled via UpdateDesignation.

    • createdBy (string) –

      The identifier of the Amazon DataZone user who created the designation.

    • createdAt (datetime) –

      The date and time when the designation was created.

    • lastUpdatedAt (datetime) –

      The date and time when the designation was last updated.

Exceptions