DataZone / Client / update_subscription_grant_status

update_subscription_grant_status#

DataZone.Client.update_subscription_grant_status(**kwargs)#

Updates the status of the specified subscription grant status in Amazon DataZone.

See also: AWS API Documentation

Request Syntax

response = client.update_subscription_grant_status(
    assetIdentifier='string',
    domainIdentifier='string',
    failureCause={
        'message': 'string'
    },
    identifier='string',
    status='GRANT_PENDING'|'REVOKE_PENDING'|'GRANT_IN_PROGRESS'|'REVOKE_IN_PROGRESS'|'GRANTED'|'REVOKED'|'GRANT_FAILED'|'REVOKE_FAILED',
    targetName='string'
)
Parameters:
  • assetIdentifier (string) –

    [REQUIRED]

    The identifier of the asset the subscription grant status of which is to be updated.

  • domainIdentifier (string) –

    [REQUIRED]

    The identifier of the Amazon DataZone domain in which a subscription grant status is to be updated.

  • failureCause (dict) –

    Specifies the error message that is returned if the operation cannot be successfully completed.

    • message (string) –

      The description of the error message.

  • identifier (string) –

    [REQUIRED]

    The identifier of the subscription grant the status of which is to be updated.

  • status (string) –

    [REQUIRED]

    The status to be updated as part of the UpdateSubscriptionGrantStatus action.

  • targetName (string) – The target name to be updated as part of the UpdateSubscriptionGrantStatus action.

Return type:

dict

Returns:

Response Syntax

{
    'assets': [
        {
            'assetId': 'string',
            'assetRevision': 'string',
            'assetScope': {
                'assetId': 'string',
                'errorMessage': 'string',
                'filterIds': [
                    'string',
                ],
                'status': 'string'
            },
            'failureCause': {
                'message': 'string'
            },
            'failureTimestamp': datetime(2015, 1, 1),
            'grantedTimestamp': datetime(2015, 1, 1),
            'status': 'GRANT_PENDING'|'REVOKE_PENDING'|'GRANT_IN_PROGRESS'|'REVOKE_IN_PROGRESS'|'GRANTED'|'REVOKED'|'GRANT_FAILED'|'REVOKE_FAILED',
            'targetName': 'string'
        },
    ],
    'createdAt': datetime(2015, 1, 1),
    'createdBy': 'string',
    'domainId': 'string',
    'grantedEntity': {
        'listing': {
            'id': 'string',
            'revision': 'string'
        }
    },
    'id': 'string',
    'status': 'PENDING'|'IN_PROGRESS'|'GRANT_FAILED'|'REVOKE_FAILED'|'GRANT_AND_REVOKE_FAILED'|'COMPLETED'|'INACCESSIBLE',
    'subscriptionId': 'string',
    'subscriptionTargetId': 'string',
    'updatedAt': datetime(2015, 1, 1),
    'updatedBy': 'string'
}

Response Structure

  • (dict) –

    • assets (list) –

      The details of the asset for which the subscription grant is created.

      • (dict) –

        The details of the asset for which the subscription grant is created.

        • assetId (string) –

          The identifier of the asset for which the subscription grant is created.

        • assetRevision (string) –

          The revision of the asset for which the subscription grant is created.

        • assetScope (dict) –

          The asset scope of the subscribed asset.

          • assetId (string) –

            The asset ID of the asset scope.

          • errorMessage (string) –

            The error message of the asset scope.

          • filterIds (list) –

            The filter IDs of the asset scope.

            • (string) –

          • status (string) –

            The status of the asset scope.

        • failureCause (dict) –

          The failure cause included in the details of the asset for which the subscription grant is created.

          • message (string) –

            The description of the error message.

        • failureTimestamp (datetime) –

          The failure timestamp included in the details of the asset for which the subscription grant is created.

        • grantedTimestamp (datetime) –

          The timestamp of when the subscription grant to the asset is created.

        • status (string) –

          The status of the asset for which the subscription grant is created.

        • targetName (string) –

          The target name of the asset for which the subscription grant is created.

    • createdAt (datetime) –

      The timestamp of when the subscription grant status was created.

    • createdBy (string) –

      The Amazon DataZone domain user who created the subscription grant status.

    • domainId (string) –

      The identifier of the Amazon DataZone domain in which a subscription grant status is to be updated.

    • grantedEntity (dict) –

      The granted entity to be updated as part of the UpdateSubscriptionGrantStatus action.

      Note

      This is a Tagged Union structure. Only one of the following top level keys will be set: listing. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

      'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
      
      • listing (dict) –

        The listing for which a subscription is granted.

        • id (string) –

          An identifier of a revision of an asset published in a Amazon DataZone catalog.

        • revision (string) –

          The details of a revision of an asset published in a Amazon DataZone catalog.

    • id (string) –

      The identifier of the subscription grant.

    • status (string) –

      The status to be updated as part of the UpdateSubscriptionGrantStatus action.

    • subscriptionId (string) –

      The identifier of the subscription.

    • subscriptionTargetId (string) –

      The identifier of the subscription target whose subscription grant status is to be updated.

    • updatedAt (datetime) –

      The timestamp of when the subscription grant status is to be updated.

    • updatedBy (string) –

      The Amazon DataZone user who updated the subscription grant status.

Exceptions

  • DataZone.Client.exceptions.InternalServerException

  • DataZone.Client.exceptions.ResourceNotFoundException

  • DataZone.Client.exceptions.AccessDeniedException

  • DataZone.Client.exceptions.ThrottlingException

  • DataZone.Client.exceptions.ConflictException

  • DataZone.Client.exceptions.ValidationException

  • DataZone.Client.exceptions.UnauthorizedException