AWS Data Exchange

2021/09/30 - AWS Data Exchange - 5 new 3 updated api methods

Changes  This release enables subscribers to set up automatic exports of newly published revisions using the new EventAction API.

ListEventActions (new) Link ¶

This operation lists your event actions.

See also: AWS API Documentation

Request Syntax

client.list_event_actions(
    EventSourceId='string',
    MaxResults=123,
    NextToken='string'
)
type EventSourceId

string

param EventSourceId

The unique identifier for the event source.

type MaxResults

integer

param MaxResults

The maximum number of results returned by a single call.

type NextToken

string

param NextToken

The token value retrieved from a previous call to access the next page of results.

rtype

dict

returns

Response Syntax

{
    'EventActions': [
        {
            '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',
            'UpdatedAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    200 response

    • EventActions (list) --

      The event action objects listed by the request.

      • (dict) --

        An event action is an object that defines the relationship between a specific event and an automated action that will be taken on behalf of the customer.

        • Action (dict) --

          What occurs after a certain event.

          • ExportRevisionToS3 (dict) --

            Details of the operation to be performed by the job.

            • Encryption (dict) --

              Encryption configuration of the export job. Includes the encryption type in addition to the AWS KMS key. The KMS key is only necessary if you chose the KMS encryption. type.

              • 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 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) --

            • DataSetId (string) --

              A unique identifier.

        • Id (string) --

          The unique identifier for the event action.

        • UpdatedAt (datetime) --

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

    • NextToken (string) --

      The token value retrieved from a previous call to access the next page of results.

GetEventAction (new) Link ¶

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',
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    200 response

    • Action (dict) --

      What occurs after a certain event.

      • ExportRevisionToS3 (dict) --

        Details of the operation to be performed by the job.

        • Encryption (dict) --

          Encryption configuration of the export job. Includes the encryption type in addition to the AWS KMS key. The KMS key is only necessary if you chose the KMS encryption. type.

          • 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 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) --

        • DataSetId (string) --

          A unique identifier.

    • Id (string) --

      The unique identifier for the event action.

    • UpdatedAt (datetime) --

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

CreateEventAction (new) Link ¶

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'
        }
    }
)
type Action

dict

param Action

[REQUIRED]

What occurs after a certain event.

  • ExportRevisionToS3 (dict) --

    Details of the operation to be performed by the job.

    • Encryption (dict) --

      Encryption configuration of the export job. Includes the encryption type in addition to the AWS KMS key. The KMS key is only necessary if you chose the KMS encryption. type.

      • 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 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) --

    • DataSetId (string) -- [REQUIRED]

      A unique identifier.

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',
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    201 response

    • Action (dict) --

      What occurs after a certain event.

      • ExportRevisionToS3 (dict) --

        Details of the operation to be performed by the job.

        • Encryption (dict) --

          Encryption configuration of the export job. Includes the encryption type in addition to the AWS KMS key. The KMS key is only necessary if you chose the KMS encryption. type.

          • 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 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) --

        • DataSetId (string) --

          A unique identifier.

    • Id (string) --

      The unique identifier for the event action.

    • UpdatedAt (datetime) --

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

DeleteEventAction (new) Link ¶

This operation deletes the event action.

See also: AWS API Documentation

Request Syntax

client.delete_event_action(
    EventActionId='string'
)
type EventActionId

string

param EventActionId

[REQUIRED]

The unique identifier for the event action.

returns

None

UpdateEventAction (new) Link ¶

This operation updates the event action.

See also: AWS API Documentation

Request Syntax

client.update_event_action(
    Action={
        'ExportRevisionToS3': {
            'Encryption': {
                'KmsKeyArn': 'string',
                'Type': 'aws:kms'|'AES256'
            },
            'RevisionDestination': {
                'Bucket': 'string',
                'KeyPattern': 'string'
            }
        }
    },
    EventActionId='string'
)
type Action

dict

param Action

What occurs after a certain event.

  • ExportRevisionToS3 (dict) --

    Details of the operation to be performed by the job.

    • Encryption (dict) --

      Encryption configuration of the export job. Includes the encryption type in addition to the AWS KMS key. The KMS key is only necessary if you chose the KMS encryption. type.

      • 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 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 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',
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    200 response

    • Action (dict) --

      What occurs after a certain event.

      • ExportRevisionToS3 (dict) --

        Details of the operation to be performed by the job.

        • Encryption (dict) --

          Encryption configuration of the export job. Includes the encryption type in addition to the AWS KMS key. The KMS key is only necessary if you chose the KMS encryption. type.

          • 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 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) --

        • DataSetId (string) --

          A unique identifier.

    • Id (string) --

      The unique identifier for the event action.

    • UpdatedAt (datetime) --

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

CreateJob (updated) Link ¶
Changes (response)
{'Errors': {'ResourceType': {'DATA_SET'}}}

This operation creates a job.

See also: AWS API Documentation

Request Syntax

client.create_job(
    Details={
        'ExportAssetToSignedUrl': {
            'AssetId': 'string',
            'DataSetId': 'string',
            'RevisionId': 'string'
        },
        'ExportAssetsToS3': {
            'AssetDestinations': [
                {
                    'AssetId': 'string',
                    'Bucket': 'string',
                    'Key': 'string'
                },
            ],
            'DataSetId': 'string',
            'Encryption': {
                'KmsKeyArn': 'string',
                'Type': 'aws:kms'|'AES256'
            },
            'RevisionId': 'string'
        },
        'ExportRevisionsToS3': {
            'DataSetId': 'string',
            'Encryption': {
                'KmsKeyArn': 'string',
                'Type': 'aws:kms'|'AES256'
            },
            'RevisionDestinations': [
                {
                    'Bucket': 'string',
                    'KeyPattern': 'string',
                    'RevisionId': 'string'
                },
            ]
        },
        'ImportAssetFromSignedUrl': {
            'AssetName': 'string',
            'DataSetId': 'string',
            'Md5Hash': 'string',
            'RevisionId': 'string'
        },
        'ImportAssetsFromS3': {
            'AssetSources': [
                {
                    'Bucket': 'string',
                    'Key': 'string'
                },
            ],
            'DataSetId': 'string',
            'RevisionId': 'string'
        }
    },
    Type='IMPORT_ASSETS_FROM_S3'|'IMPORT_ASSET_FROM_SIGNED_URL'|'EXPORT_ASSETS_TO_S3'|'EXPORT_ASSET_TO_SIGNED_URL'|'EXPORT_REVISIONS_TO_S3'
)
type Details

dict

param Details

[REQUIRED]

The details for the CreateJob request.

  • ExportAssetToSignedUrl (dict) --

    Details about the export to signed URL request.

    • AssetId (string) -- [REQUIRED]

      The unique identifier for the asset that is exported to a signed URL.

    • DataSetId (string) -- [REQUIRED]

      The unique identifier for the data set associated with this export job.

    • RevisionId (string) -- [REQUIRED]

      The unique identifier for the revision associated with this export request.

  • ExportAssetsToS3 (dict) --

    Details about the export to Amazon S3 request.

    • AssetDestinations (list) -- [REQUIRED]

      The destination for the asset.

      • (dict) --

        The destination for the asset.

        • AssetId (string) -- [REQUIRED]

          The unique identifier for the asset.

        • Bucket (string) -- [REQUIRED]

          The S3 bucket that is the destination for the asset.

        • Key (string) --

          The name of the object in Amazon S3 for the asset.

    • DataSetId (string) -- [REQUIRED]

      The unique identifier for the data set associated with this export job.

    • Encryption (dict) --

      Encryption configuration for the 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.

    • RevisionId (string) -- [REQUIRED]

      The unique identifier for the revision associated with this export request.

  • ExportRevisionsToS3 (dict) --

    Details about the export to Amazon S3 request.

    • DataSetId (string) -- [REQUIRED]

      The unique identifier for the data set associated with this export job.

    • Encryption (dict) --

      Encryption configuration for the 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.

    • RevisionDestinations (list) -- [REQUIRED]

      The destination for the revision.

      • (dict) --

        The destination where the assets in the revision will be exported.

        • Bucket (string) -- [REQUIRED]

          The S3 bucket that is the destination for the assets in the revision.

        • 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.

        • RevisionId (string) -- [REQUIRED]

          The unique identifier for the revision.

  • ImportAssetFromSignedUrl (dict) --

    Details about the import from signed URL request.

    • AssetName (string) -- [REQUIRED]

      The name of the asset. When importing from Amazon S3, the S3 object key is used as the asset name.

    • DataSetId (string) -- [REQUIRED]

      The unique identifier for the data set associated with this import job.

    • Md5Hash (string) -- [REQUIRED]

      The Base64-encoded Md5 hash for the asset, used to ensure the integrity of the file at that location.

    • RevisionId (string) -- [REQUIRED]

      The unique identifier for the revision associated with this import request.

  • ImportAssetsFromS3 (dict) --

    Details about the import from Amazon S3 request.

    • AssetSources (list) -- [REQUIRED]

      Is a list of S3 bucket and object key pairs.

      • (dict) --

        The source of the assets.

        • Bucket (string) -- [REQUIRED]

          The S3 bucket that's part of the source of the asset.

        • Key (string) -- [REQUIRED]

          The name of the object in Amazon S3 for the asset.

    • DataSetId (string) -- [REQUIRED]

      The unique identifier for the data set associated with this import job.

    • RevisionId (string) -- [REQUIRED]

      The unique identifier for the revision associated with this import request.

type Type

string

param Type

[REQUIRED]

The type of job to be created.

rtype

dict

returns

Response Syntax

{
    'Arn': 'string',
    'CreatedAt': datetime(2015, 1, 1),
    'Details': {
        'ExportAssetToSignedUrl': {
            'AssetId': 'string',
            'DataSetId': 'string',
            'RevisionId': 'string',
            'SignedUrl': 'string',
            'SignedUrlExpiresAt': datetime(2015, 1, 1)
        },
        'ExportAssetsToS3': {
            'AssetDestinations': [
                {
                    'AssetId': 'string',
                    'Bucket': 'string',
                    'Key': 'string'
                },
            ],
            'DataSetId': 'string',
            'Encryption': {
                'KmsKeyArn': 'string',
                'Type': 'aws:kms'|'AES256'
            },
            'RevisionId': 'string'
        },
        'ExportRevisionsToS3': {
            'DataSetId': 'string',
            'Encryption': {
                'KmsKeyArn': 'string',
                'Type': 'aws:kms'|'AES256'
            },
            'RevisionDestinations': [
                {
                    'Bucket': 'string',
                    'KeyPattern': 'string',
                    'RevisionId': 'string'
                },
            ]
        },
        'ImportAssetFromSignedUrl': {
            'AssetName': 'string',
            'DataSetId': 'string',
            'Md5Hash': 'string',
            'RevisionId': 'string',
            'SignedUrl': 'string',
            'SignedUrlExpiresAt': datetime(2015, 1, 1)
        },
        'ImportAssetsFromS3': {
            'AssetSources': [
                {
                    'Bucket': 'string',
                    'Key': 'string'
                },
            ],
            'DataSetId': 'string',
            'RevisionId': 'string'
        }
    },
    'Errors': [
        {
            'Code': 'ACCESS_DENIED_EXCEPTION'|'INTERNAL_SERVER_EXCEPTION'|'MALWARE_DETECTED'|'RESOURCE_NOT_FOUND_EXCEPTION'|'SERVICE_QUOTA_EXCEEDED_EXCEPTION'|'VALIDATION_EXCEPTION'|'MALWARE_SCAN_ENCRYPTED_FILE',
            'Details': {
                'ImportAssetFromSignedUrlJobErrorDetails': {
                    'AssetName': 'string'
                },
                'ImportAssetsFromS3JobErrorDetails': [
                    {
                        'Bucket': 'string',
                        'Key': 'string'
                    },
                ]
            },
            'LimitName': 'Assets per revision'|'Asset size in GB',
            'LimitValue': 123.0,
            'Message': 'string',
            'ResourceId': 'string',
            'ResourceType': 'REVISION'|'ASSET'|'DATA_SET'
        },
    ],
    'Id': 'string',
    'State': 'WAITING'|'IN_PROGRESS'|'ERROR'|'COMPLETED'|'CANCELLED'|'TIMED_OUT',
    'Type': 'IMPORT_ASSETS_FROM_S3'|'IMPORT_ASSET_FROM_SIGNED_URL'|'EXPORT_ASSETS_TO_S3'|'EXPORT_ASSET_TO_SIGNED_URL'|'EXPORT_REVISIONS_TO_S3',
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    201 response

    • Arn (string) --

      The ARN for the job.

    • CreatedAt (datetime) --

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

    • Details (dict) --

      Details about the job.

      • ExportAssetToSignedUrl (dict) --

        Details for the export to signed URL response.

        • AssetId (string) --

          The unique identifier for the asset associated with this export job.

        • DataSetId (string) --

          The unique identifier for the data set associated with this export job.

        • RevisionId (string) --

          The unique identifier for the revision associated with this export response.

        • SignedUrl (string) --

          The signed URL for the export request.

        • SignedUrlExpiresAt (datetime) --

          The date and time that the signed URL expires, in ISO 8601 format.

      • ExportAssetsToS3 (dict) --

        Details for the export to Amazon S3 response.

        • AssetDestinations (list) --

          The destination in Amazon S3 where the asset is exported.

          • (dict) --

            The destination for the asset.

            • AssetId (string) --

              The unique identifier for the asset.

            • Bucket (string) --

              The S3 bucket that is the destination for the asset.

            • Key (string) --

              The name of the object in Amazon S3 for the asset.

        • DataSetId (string) --

          The unique identifier for the data set associated with this export job.

        • Encryption (dict) --

          Encryption configuration of the 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.

        • RevisionId (string) --

          The unique identifier for the revision associated with this export response.

      • ExportRevisionsToS3 (dict) --

        Details for the export revisions to Amazon S3 response.

        • DataSetId (string) --

          The unique identifier for the data set associated with this export job.

        • Encryption (dict) --

          Encryption configuration of the 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.

        • RevisionDestinations (list) --

          The destination in Amazon S3 where the revision is exported.

          • (dict) --

            The destination where the assets in the revision will be exported.

            • Bucket (string) --

              The S3 bucket that is the destination for the assets in the revision.

            • 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.

            • RevisionId (string) --

              The unique identifier for the revision.

      • ImportAssetFromSignedUrl (dict) --

        Details for the import from signed URL response.

        • AssetName (string) --

          The name for the asset associated with this import response.

        • DataSetId (string) --

          The unique identifier for the data set associated with this import job.

        • Md5Hash (string) --

          The Base64-encoded Md5 hash for the asset, used to ensure the integrity of the file at that location.

        • RevisionId (string) --

          The unique identifier for the revision associated with this import response.

        • SignedUrl (string) --

          The signed URL.

        • SignedUrlExpiresAt (datetime) --

          The time and date at which the signed URL expires, in ISO 8601 format.

      • ImportAssetsFromS3 (dict) --

        Details for the import from Amazon S3 response.

        • AssetSources (list) --

          Is a list of Amazon S3 bucket and object key pairs.

          • (dict) --

            The source of the assets.

            • Bucket (string) --

              The S3 bucket that's part of the source of the asset.

            • Key (string) --

              The name of the object in Amazon S3 for the asset.

        • DataSetId (string) --

          The unique identifier for the data set associated with this import job.

        • RevisionId (string) --

          The unique identifier for the revision associated with this import response.

    • Errors (list) --

      The errors associated with jobs.

      • (dict) -- An error that occurred with the job request.

        • Code (string) -- The code for the job error.

        • Details (dict) --

          • ImportAssetFromSignedUrlJobErrorDetails (dict) --

            • AssetName (string) --

              The name of the asset. When importing from Amazon S3, the S3 object key is used as the asset name. When exporting to Amazon S3, the asset name is used as default target S3 object key.

          • ImportAssetsFromS3JobErrorDetails (list) --

            The list of sources for the assets.

            • (dict) --

              The source of the assets.

              • Bucket (string) --

                The S3 bucket that's part of the source of the asset.

              • Key (string) --

                The name of the object in Amazon S3 for the asset.

        • LimitName (string) --

          The name of the limit that was reached.

        • LimitValue (float) -- The value of the exceeded limit.

        • Message (string) -- The message related to the job error.

        • ResourceId (string) -- The unique identifier for the resource related to the error.

        • ResourceType (string) -- The type of resource related to the error.

    • Id (string) --

      The unique identifier for the job.

    • State (string) --

      The state of the job.

    • Type (string) --

      The job type.

    • UpdatedAt (datetime) --

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

GetJob (updated) Link ¶
Changes (response)
{'Errors': {'ResourceType': {'DATA_SET'}}}

This operation returns information about a job.

See also: AWS API Documentation

Request Syntax

client.get_job(
    JobId='string'
)
type JobId

string

param JobId

[REQUIRED]

The unique identifier for a job.

rtype

dict

returns

Response Syntax

{
    'Arn': 'string',
    'CreatedAt': datetime(2015, 1, 1),
    'Details': {
        'ExportAssetToSignedUrl': {
            'AssetId': 'string',
            'DataSetId': 'string',
            'RevisionId': 'string',
            'SignedUrl': 'string',
            'SignedUrlExpiresAt': datetime(2015, 1, 1)
        },
        'ExportAssetsToS3': {
            'AssetDestinations': [
                {
                    'AssetId': 'string',
                    'Bucket': 'string',
                    'Key': 'string'
                },
            ],
            'DataSetId': 'string',
            'Encryption': {
                'KmsKeyArn': 'string',
                'Type': 'aws:kms'|'AES256'
            },
            'RevisionId': 'string'
        },
        'ExportRevisionsToS3': {
            'DataSetId': 'string',
            'Encryption': {
                'KmsKeyArn': 'string',
                'Type': 'aws:kms'|'AES256'
            },
            'RevisionDestinations': [
                {
                    'Bucket': 'string',
                    'KeyPattern': 'string',
                    'RevisionId': 'string'
                },
            ]
        },
        'ImportAssetFromSignedUrl': {
            'AssetName': 'string',
            'DataSetId': 'string',
            'Md5Hash': 'string',
            'RevisionId': 'string',
            'SignedUrl': 'string',
            'SignedUrlExpiresAt': datetime(2015, 1, 1)
        },
        'ImportAssetsFromS3': {
            'AssetSources': [
                {
                    'Bucket': 'string',
                    'Key': 'string'
                },
            ],
            'DataSetId': 'string',
            'RevisionId': 'string'
        }
    },
    'Errors': [
        {
            'Code': 'ACCESS_DENIED_EXCEPTION'|'INTERNAL_SERVER_EXCEPTION'|'MALWARE_DETECTED'|'RESOURCE_NOT_FOUND_EXCEPTION'|'SERVICE_QUOTA_EXCEEDED_EXCEPTION'|'VALIDATION_EXCEPTION'|'MALWARE_SCAN_ENCRYPTED_FILE',
            'Details': {
                'ImportAssetFromSignedUrlJobErrorDetails': {
                    'AssetName': 'string'
                },
                'ImportAssetsFromS3JobErrorDetails': [
                    {
                        'Bucket': 'string',
                        'Key': 'string'
                    },
                ]
            },
            'LimitName': 'Assets per revision'|'Asset size in GB',
            'LimitValue': 123.0,
            'Message': 'string',
            'ResourceId': 'string',
            'ResourceType': 'REVISION'|'ASSET'|'DATA_SET'
        },
    ],
    'Id': 'string',
    'State': 'WAITING'|'IN_PROGRESS'|'ERROR'|'COMPLETED'|'CANCELLED'|'TIMED_OUT',
    'Type': 'IMPORT_ASSETS_FROM_S3'|'IMPORT_ASSET_FROM_SIGNED_URL'|'EXPORT_ASSETS_TO_S3'|'EXPORT_ASSET_TO_SIGNED_URL'|'EXPORT_REVISIONS_TO_S3',
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    200 response

    • Arn (string) --

      The ARN for the job.

    • CreatedAt (datetime) --

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

    • Details (dict) --

      Details about the job.

      • ExportAssetToSignedUrl (dict) --

        Details for the export to signed URL response.

        • AssetId (string) --

          The unique identifier for the asset associated with this export job.

        • DataSetId (string) --

          The unique identifier for the data set associated with this export job.

        • RevisionId (string) --

          The unique identifier for the revision associated with this export response.

        • SignedUrl (string) --

          The signed URL for the export request.

        • SignedUrlExpiresAt (datetime) --

          The date and time that the signed URL expires, in ISO 8601 format.

      • ExportAssetsToS3 (dict) --

        Details for the export to Amazon S3 response.

        • AssetDestinations (list) --

          The destination in Amazon S3 where the asset is exported.

          • (dict) --

            The destination for the asset.

            • AssetId (string) --

              The unique identifier for the asset.

            • Bucket (string) --

              The S3 bucket that is the destination for the asset.

            • Key (string) --

              The name of the object in Amazon S3 for the asset.

        • DataSetId (string) --

          The unique identifier for the data set associated with this export job.

        • Encryption (dict) --

          Encryption configuration of the 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.

        • RevisionId (string) --

          The unique identifier for the revision associated with this export response.

      • ExportRevisionsToS3 (dict) --

        Details for the export revisions to Amazon S3 response.

        • DataSetId (string) --

          The unique identifier for the data set associated with this export job.

        • Encryption (dict) --

          Encryption configuration of the 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.

        • RevisionDestinations (list) --

          The destination in Amazon S3 where the revision is exported.

          • (dict) --

            The destination where the assets in the revision will be exported.

            • Bucket (string) --

              The S3 bucket that is the destination for the assets in the revision.

            • 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.

            • RevisionId (string) --

              The unique identifier for the revision.

      • ImportAssetFromSignedUrl (dict) --

        Details for the import from signed URL response.

        • AssetName (string) --

          The name for the asset associated with this import response.

        • DataSetId (string) --

          The unique identifier for the data set associated with this import job.

        • Md5Hash (string) --

          The Base64-encoded Md5 hash for the asset, used to ensure the integrity of the file at that location.

        • RevisionId (string) --

          The unique identifier for the revision associated with this import response.

        • SignedUrl (string) --

          The signed URL.

        • SignedUrlExpiresAt (datetime) --

          The time and date at which the signed URL expires, in ISO 8601 format.

      • ImportAssetsFromS3 (dict) --

        Details for the import from Amazon S3 response.

        • AssetSources (list) --

          Is a list of Amazon S3 bucket and object key pairs.

          • (dict) --

            The source of the assets.

            • Bucket (string) --

              The S3 bucket that's part of the source of the asset.

            • Key (string) --

              The name of the object in Amazon S3 for the asset.

        • DataSetId (string) --

          The unique identifier for the data set associated with this import job.

        • RevisionId (string) --

          The unique identifier for the revision associated with this import response.

    • Errors (list) --

      The errors associated with jobs.

      • (dict) -- An error that occurred with the job request.

        • Code (string) -- The code for the job error.

        • Details (dict) --

          • ImportAssetFromSignedUrlJobErrorDetails (dict) --

            • AssetName (string) --

              The name of the asset. When importing from Amazon S3, the S3 object key is used as the asset name. When exporting to Amazon S3, the asset name is used as default target S3 object key.

          • ImportAssetsFromS3JobErrorDetails (list) --

            The list of sources for the assets.

            • (dict) --

              The source of the assets.

              • Bucket (string) --

                The S3 bucket that's part of the source of the asset.

              • Key (string) --

                The name of the object in Amazon S3 for the asset.

        • LimitName (string) --

          The name of the limit that was reached.

        • LimitValue (float) -- The value of the exceeded limit.

        • Message (string) -- The message related to the job error.

        • ResourceId (string) -- The unique identifier for the resource related to the error.

        • ResourceType (string) -- The type of resource related to the error.

    • Id (string) --

      The unique identifier for the job.

    • State (string) --

      The state of the job.

    • Type (string) --

      The job type.

    • UpdatedAt (datetime) --

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

ListJobs (updated) Link ¶
Changes (response)
{'Jobs': {'Errors': {'ResourceType': {'DATA_SET'}}}}

This operation lists your jobs sorted by CreatedAt in descending order.

See also: AWS API Documentation

Request Syntax

client.list_jobs(
    DataSetId='string',
    MaxResults=123,
    NextToken='string',
    RevisionId='string'
)
type DataSetId

string

param DataSetId

The unique identifier for a data set.

type MaxResults

integer

param MaxResults

The maximum number of results returned by a single call.

type NextToken

string

param NextToken

The token value retrieved from a previous call to access the next page of results.

type RevisionId

string

param RevisionId

The unique identifier for a revision.

rtype

dict

returns

Response Syntax

{
    'Jobs': [
        {
            'Arn': 'string',
            'CreatedAt': datetime(2015, 1, 1),
            'Details': {
                'ExportAssetToSignedUrl': {
                    'AssetId': 'string',
                    'DataSetId': 'string',
                    'RevisionId': 'string',
                    'SignedUrl': 'string',
                    'SignedUrlExpiresAt': datetime(2015, 1, 1)
                },
                'ExportAssetsToS3': {
                    'AssetDestinations': [
                        {
                            'AssetId': 'string',
                            'Bucket': 'string',
                            'Key': 'string'
                        },
                    ],
                    'DataSetId': 'string',
                    'Encryption': {
                        'KmsKeyArn': 'string',
                        'Type': 'aws:kms'|'AES256'
                    },
                    'RevisionId': 'string'
                },
                'ExportRevisionsToS3': {
                    'DataSetId': 'string',
                    'Encryption': {
                        'KmsKeyArn': 'string',
                        'Type': 'aws:kms'|'AES256'
                    },
                    'RevisionDestinations': [
                        {
                            'Bucket': 'string',
                            'KeyPattern': 'string',
                            'RevisionId': 'string'
                        },
                    ]
                },
                'ImportAssetFromSignedUrl': {
                    'AssetName': 'string',
                    'DataSetId': 'string',
                    'Md5Hash': 'string',
                    'RevisionId': 'string',
                    'SignedUrl': 'string',
                    'SignedUrlExpiresAt': datetime(2015, 1, 1)
                },
                'ImportAssetsFromS3': {
                    'AssetSources': [
                        {
                            'Bucket': 'string',
                            'Key': 'string'
                        },
                    ],
                    'DataSetId': 'string',
                    'RevisionId': 'string'
                }
            },
            'Errors': [
                {
                    'Code': 'ACCESS_DENIED_EXCEPTION'|'INTERNAL_SERVER_EXCEPTION'|'MALWARE_DETECTED'|'RESOURCE_NOT_FOUND_EXCEPTION'|'SERVICE_QUOTA_EXCEEDED_EXCEPTION'|'VALIDATION_EXCEPTION'|'MALWARE_SCAN_ENCRYPTED_FILE',
                    'Details': {
                        'ImportAssetFromSignedUrlJobErrorDetails': {
                            'AssetName': 'string'
                        },
                        'ImportAssetsFromS3JobErrorDetails': [
                            {
                                'Bucket': 'string',
                                'Key': 'string'
                            },
                        ]
                    },
                    'LimitName': 'Assets per revision'|'Asset size in GB',
                    'LimitValue': 123.0,
                    'Message': 'string',
                    'ResourceId': 'string',
                    'ResourceType': 'REVISION'|'ASSET'|'DATA_SET'
                },
            ],
            'Id': 'string',
            'State': 'WAITING'|'IN_PROGRESS'|'ERROR'|'COMPLETED'|'CANCELLED'|'TIMED_OUT',
            'Type': 'IMPORT_ASSETS_FROM_S3'|'IMPORT_ASSET_FROM_SIGNED_URL'|'EXPORT_ASSETS_TO_S3'|'EXPORT_ASSET_TO_SIGNED_URL'|'EXPORT_REVISIONS_TO_S3',
            'UpdatedAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    200 response

    • Jobs (list) --

      The jobs listed by the request.

      • (dict) -- AWS Data Exchange Jobs are asynchronous import or export operations used to create or copy assets. A data set owner can both import and export as they see fit. Someone with an entitlement to a data set can only export. Jobs are deleted 90 days after they are created.

        • Arn (string) --

          The ARN for the job.

        • CreatedAt (datetime) --

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

        • Details (dict) --

          Details of the operation to be performed by the job, such as export destination details or import source details.

          • ExportAssetToSignedUrl (dict) --

            Details for the export to signed URL response.

            • AssetId (string) --

              The unique identifier for the asset associated with this export job.

            • DataSetId (string) --

              The unique identifier for the data set associated with this export job.

            • RevisionId (string) --

              The unique identifier for the revision associated with this export response.

            • SignedUrl (string) --

              The signed URL for the export request.

            • SignedUrlExpiresAt (datetime) --

              The date and time that the signed URL expires, in ISO 8601 format.

          • ExportAssetsToS3 (dict) --

            Details for the export to Amazon S3 response.

            • AssetDestinations (list) --

              The destination in Amazon S3 where the asset is exported.

              • (dict) --

                The destination for the asset.

                • AssetId (string) --

                  The unique identifier for the asset.

                • Bucket (string) --

                  The S3 bucket that is the destination for the asset.

                • Key (string) --

                  The name of the object in Amazon S3 for the asset.

            • DataSetId (string) --

              The unique identifier for the data set associated with this export job.

            • Encryption (dict) --

              Encryption configuration of the 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.

            • RevisionId (string) --

              The unique identifier for the revision associated with this export response.

          • ExportRevisionsToS3 (dict) --

            Details for the export revisions to Amazon S3 response.

            • DataSetId (string) --

              The unique identifier for the data set associated with this export job.

            • Encryption (dict) --

              Encryption configuration of the 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.

            • RevisionDestinations (list) --

              The destination in Amazon S3 where the revision is exported.

              • (dict) --

                The destination where the assets in the revision will be exported.

                • Bucket (string) --

                  The S3 bucket that is the destination for the assets in the revision.

                • 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.

                • RevisionId (string) --

                  The unique identifier for the revision.

          • ImportAssetFromSignedUrl (dict) --

            Details for the import from signed URL response.

            • AssetName (string) --

              The name for the asset associated with this import response.

            • DataSetId (string) --

              The unique identifier for the data set associated with this import job.

            • Md5Hash (string) --

              The Base64-encoded Md5 hash for the asset, used to ensure the integrity of the file at that location.

            • RevisionId (string) --

              The unique identifier for the revision associated with this import response.

            • SignedUrl (string) --

              The signed URL.

            • SignedUrlExpiresAt (datetime) --

              The time and date at which the signed URL expires, in ISO 8601 format.

          • ImportAssetsFromS3 (dict) --

            Details for the import from Amazon S3 response.

            • AssetSources (list) --

              Is a list of Amazon S3 bucket and object key pairs.

              • (dict) --

                The source of the assets.

                • Bucket (string) --

                  The S3 bucket that's part of the source of the asset.

                • Key (string) --

                  The name of the object in Amazon S3 for the asset.

            • DataSetId (string) --

              The unique identifier for the data set associated with this import job.

            • RevisionId (string) --

              The unique identifier for the revision associated with this import response.

        • Errors (list) --

          Errors for jobs.

          • (dict) -- An error that occurred with the job request.

            • Code (string) -- The code for the job error.

            • Details (dict) --

              • ImportAssetFromSignedUrlJobErrorDetails (dict) --

                • AssetName (string) --

                  The name of the asset. When importing from Amazon S3, the S3 object key is used as the asset name. When exporting to Amazon S3, the asset name is used as default target S3 object key.

              • ImportAssetsFromS3JobErrorDetails (list) --

                The list of sources for the assets.

                • (dict) --

                  The source of the assets.

                  • Bucket (string) --

                    The S3 bucket that's part of the source of the asset.

                  • Key (string) --

                    The name of the object in Amazon S3 for the asset.

            • LimitName (string) --

              The name of the limit that was reached.

            • LimitValue (float) -- The value of the exceeded limit.

            • Message (string) -- The message related to the job error.

            • ResourceId (string) -- The unique identifier for the resource related to the error.

            • ResourceType (string) -- The type of resource related to the error.

        • Id (string) --

          The unique identifier for the job.

        • State (string) --

          The state of the job.

        • Type (string) --

          The job type.

        • UpdatedAt (datetime) --

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

    • NextToken (string) --

      The token value retrieved from a previous call to access the next page of results.