AWS Data Exchange

2025/05/29 - AWS Data Exchange - 2 updated api methods

Changes  This release adds Tag support for Event Action resource, through which customers can create event actions with Tags and retrieve event actions with Tags.

CreateEventAction (updated) Link ¶
Changes (both)
{'Tags': {'string': 'string'}}

This operation creates an event action.

See also: AWS API Documentation

Request Syntax

client.create_event_action(
    Action={
        'ExportRevisionToS3': {
            'Encryption': {
                'KmsKeyArn': 'string',
                'Type': 'aws:kms'|'AES256'
            },
            'RevisionDestination': {
                'Bucket': 'string',
                'KeyPattern': 'string'
            }
        }
    },
    Event={
        'RevisionPublished': {
            'DataSetId': 'string'
        }
    },
    Tags={
        'string': 'string'
    }
)
type Action:

dict

param Action:

[REQUIRED]

What occurs after a certain event.

  • ExportRevisionToS3 (dict) --

    Details for the export revision to Amazon S3 action.

    • Encryption (dict) --

      Encryption configuration for the auto export job.

      • KmsKeyArn (string) --

        The Amazon Resource Name (ARN) of the AWS KMS key you want to use to encrypt the Amazon S3 objects. This parameter is required if you choose aws:kms as an encryption type.

      • Type (string) -- [REQUIRED]

        The type of server side encryption used for encrypting the objects in Amazon S3.

    • RevisionDestination (dict) -- [REQUIRED]

      A revision destination is the Amazon S3 bucket folder destination to where the export will be sent.

      • Bucket (string) -- [REQUIRED]

        The Amazon S3 bucket that is the destination for the event action.

      • KeyPattern (string) --

        A string representing the pattern for generated names of the individual assets in the revision. For more information about key patterns, see Key patterns when exporting revisions.

type Event:

dict

param Event:

[REQUIRED]

What occurs to start an action.

  • RevisionPublished (dict) --

    What occurs to start the revision publish action.

    • DataSetId (string) -- [REQUIRED]

      The data set ID of the published revision.

type Tags:

dict

param Tags:

Key-value pairs that you can associate with the event action.

  • (string) --

    • (string) --

rtype:

dict

returns:

Response Syntax

{
    'Action': {
        'ExportRevisionToS3': {
            'Encryption': {
                'KmsKeyArn': 'string',
                'Type': 'aws:kms'|'AES256'
            },
            'RevisionDestination': {
                'Bucket': 'string',
                'KeyPattern': 'string'
            }
        }
    },
    'Arn': 'string',
    'CreatedAt': datetime(2015, 1, 1),
    'Event': {
        'RevisionPublished': {
            'DataSetId': 'string'
        }
    },
    'Id': 'string',
    'Tags': {
        'string': 'string'
    },
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • Action (dict) --

      What occurs after a certain event.

      • ExportRevisionToS3 (dict) --

        Details for the export revision to Amazon S3 action.

        • Encryption (dict) --

          Encryption configuration for the auto export job.

          • KmsKeyArn (string) --

            The Amazon Resource Name (ARN) of the AWS KMS key you want to use to encrypt the Amazon S3 objects. This parameter is required if you choose aws:kms as an encryption type.

          • Type (string) --

            The type of server side encryption used for encrypting the objects in Amazon S3.

        • RevisionDestination (dict) --

          A revision destination is the Amazon S3 bucket folder destination to where the export will be sent.

          • Bucket (string) --

            The Amazon S3 bucket that is the destination for the event action.

          • KeyPattern (string) --

            A string representing the pattern for generated names of the individual assets in the revision. For more information about key patterns, see Key patterns when exporting revisions.

    • Arn (string) --

      The ARN for the event action.

    • CreatedAt (datetime) --

      The date and time that the event action was created, in ISO 8601 format.

    • Event (dict) --

      What occurs to start an action.

      • RevisionPublished (dict) --

        What occurs to start the revision publish action.

        • DataSetId (string) --

          The data set ID of the published revision.

    • Id (string) --

      The unique identifier for the event action.

    • Tags (dict) --

      The tags for the event action.

      • (string) --

        • (string) --

    • UpdatedAt (datetime) --

      The date and time that the event action was last updated, in ISO 8601 format.

GetEventAction (updated) Link ¶
Changes (response)
{'Tags': {'string': 'string'}}

This operation retrieves information about an event action.

See also: AWS API Documentation

Request Syntax

client.get_event_action(
    EventActionId='string'
)
type EventActionId:

string

param EventActionId:

[REQUIRED]

The unique identifier for the event action.

rtype:

dict

returns:

Response Syntax

{
    'Action': {
        'ExportRevisionToS3': {
            'Encryption': {
                'KmsKeyArn': 'string',
                'Type': 'aws:kms'|'AES256'
            },
            'RevisionDestination': {
                'Bucket': 'string',
                'KeyPattern': 'string'
            }
        }
    },
    'Arn': 'string',
    'CreatedAt': datetime(2015, 1, 1),
    'Event': {
        'RevisionPublished': {
            'DataSetId': 'string'
        }
    },
    'Id': 'string',
    'Tags': {
        'string': 'string'
    },
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • Action (dict) --

      What occurs after a certain event.

      • ExportRevisionToS3 (dict) --

        Details for the export revision to Amazon S3 action.

        • Encryption (dict) --

          Encryption configuration for the auto export job.

          • KmsKeyArn (string) --

            The Amazon Resource Name (ARN) of the AWS KMS key you want to use to encrypt the Amazon S3 objects. This parameter is required if you choose aws:kms as an encryption type.

          • Type (string) --

            The type of server side encryption used for encrypting the objects in Amazon S3.

        • RevisionDestination (dict) --

          A revision destination is the Amazon S3 bucket folder destination to where the export will be sent.

          • Bucket (string) --

            The Amazon S3 bucket that is the destination for the event action.

          • KeyPattern (string) --

            A string representing the pattern for generated names of the individual assets in the revision. For more information about key patterns, see Key patterns when exporting revisions.

    • Arn (string) --

      The ARN for the event action.

    • CreatedAt (datetime) --

      The date and time that the event action was created, in ISO 8601 format.

    • Event (dict) --

      What occurs to start an action.

      • RevisionPublished (dict) --

        What occurs to start the revision publish action.

        • DataSetId (string) --

          The data set ID of the published revision.

    • Id (string) --

      The unique identifier for the event action.

    • Tags (dict) --

      The tags for the event action.

      • (string) --

        • (string) --

    • UpdatedAt (datetime) --

      The date and time that the event action was last updated, in ISO 8601 format.