PartnerCentralAnalytics / Client / get_data_subscription

get_data_subscription

PartnerCentralAnalytics.Client.get_data_subscription(**kwargs)

Returns the full details of a data subscription owned by the calling account, including its delivery status and how far delivery has progressed.

See also: AWS API Documentation

Request Syntax

response = client.get_data_subscription(
    catalog='string',
    dataSubscriptionIdentifier='string'
)
Parameters:
  • catalog (string) –

    [REQUIRED]

    The catalog the subscription belongs to.

  • dataSubscriptionIdentifier (string) –

    [REQUIRED]

    The ARN of the data subscription.

Return type:

dict

Returns:

Response Syntax

{
    'dataSubscriptionIdentifier': 'string',
    'catalog': 'string',
    'datasetName': 'string',
    'deliveryMethod': 'S3',
    's3Arn': 'string',
    'kmsKeyArn': 'string',
    'createTimestamp': datetime(2015, 1, 1),
    'deliveryCompleteness': datetime(2015, 1, 1),
    'deliveryStatus': 'Initiated'|'Pending'|'Created'|'Create_Failed'|'Deleted'|'Delete_Failed',
    'deliveryStatusMessage': 'string',
    'deleteTimestamp': datetime(2015, 1, 1),
    'deliveryState': 'ACTIVE'|'INITIAL_DELIVERY'|'DELAYED'|'ACTION_NEEDED'|'CANCELLED',
    'deliveredThrough': datetime(2015, 1, 1),
    'lastDeliveryTime': datetime(2015, 1, 1),
    'deliveryStateMessage': 'string',
    'initialDeliveryProgress': {
        'daysDelivered': 123,
        'daysTotal': 123
    }
}

Response Structure

  • (dict) –

    • dataSubscriptionIdentifier (string) –

      The ARN of a data subscription.

    • catalog (string) –

      Specifies the catalog associated with the request.

    • datasetName (string) –

      Specifies the name of a dataset. A bare dataset name (not an ARN); the resource ARN is composed by the runtime/authorizer.

    • deliveryMethod (string) –

      How a dataset is delivered.

    • s3Arn (string) –

      The ARN of an S3 bucket.

    • kmsKeyArn (string) –

      The ARN of a KMS key.

    • createTimestamp (datetime) –

      When the subscription was created.

    • deliveryCompleteness (datetime) –

      The extract date through which data has been delivered. Absent until the first successful delivery.

    • deliveryStatus (string) –

      The lifecycle state of the subscription.

    • deliveryStatusMessage (string) –

      Additional detail about the delivery status, when available.

    • deleteTimestamp (datetime) –

      When the subscription was deleted. Present only on deleted subscriptions.

    • deliveryState (string) –

      The delivery state of the subscription, summarizing whether data is arriving in your bucket as expected. See DeliveryState for what each value means. Absent when the service cannot determine it.

    • deliveredThrough (datetime) –

      The extract date through which data has been delivered to your bucket. Same value as deliveryCompleteness; prefer this member. Absent until the first successful delivery.

    • lastDeliveryTime (datetime) –

      When the most recent delivery cycle finished. Absent until a delivery cycle has finished.

    • deliveryStateMessage (string) –

      A message that explains the delivery state. Present when deliveryState is ACTION_NEEDED, where it describes why the last write to your bucket was refused so you can fix the bucket policy or KMS key.

    • initialDeliveryProgress (dict) –

      How far the first fill of the dataset’s history has progressed. Present only when deliveryState is INITIAL_DELIVERY.

      • daysDelivered (integer) –

        The number of days of history delivered to your bucket so far. Zero before the first day is delivered.

      • daysTotal (integer) –

        The total number of days of history the initial delivery covers, from the dataset’s first available date up to the most recent complete day.

Exceptions