PartnerCentralAnalytics / Client / create_data_subscription

create_data_subscription

PartnerCentralAnalytics.Client.create_data_subscription(**kwargs)

Creates a data subscription that delivers a partner analytics dataset to an S3 bucket in the caller’s AWS account on a schedule. The delivery destination is validated before the subscription is created: the service performs a test write to the bucket as its delivery principal using the supplied KMS key. Subscriptions are immutable; delete and recreate to change one.

See also: AWS API Documentation

Request Syntax

response = client.create_data_subscription(
    catalog='string',
    datasetName='string',
    deliveryMethod='S3',
    s3Arn='string',
    kmsKeyArn='string',
    clientToken='string',
    tags={
        'string': 'string'
    }
)
Parameters:
  • catalog (string) –

    [REQUIRED]

    The catalog the subscription belongs to.

  • datasetName (string) –

    [REQUIRED]

    The name of the dataset to subscribe to.

  • deliveryMethod (string) –

    [REQUIRED]

    How the dataset is delivered.

  • s3Arn (string) –

    [REQUIRED]

    The ARN of the S3 bucket in the caller’s account that receives deliveries.

  • kmsKeyArn (string) –

    [REQUIRED]

    The ARN of the caller-owned KMS key used to encrypt delivered objects.

  • clientToken (string) – A unique, case-sensitive identifier that ensures the idempotency of the request. Reusing a token within 24 hours with the same parameters returns the original subscription; reusing it with different parameters is rejected.

  • tags (dict) –

    Optional tags to apply to the subscription at creation (tag-on-create). Up to 50 tags; key length 1-128, value length 0-256; keys beginning with the reserved aws: prefix are rejected. The backend authorizes the tags (aws:RequestTag / aws:TagKeys) and registers them with Tagris as part of the create.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'dataSubscriptionIdentifier': 'string'
}

Response Structure

  • (dict) –

    • dataSubscriptionIdentifier (string) –

      The ARN of the created data subscription.

Exceptions