get_job
(**kwargs)¶This operation returns information about a job.
See also: AWS API Documentation
Request Syntax
response = client.get_job(
JobId='string'
)
[REQUIRED]
The unique identifier for a job.
{
'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'
},
],
'EventActionArn': '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'
},
'ImportAssetsFromRedshiftDataShares': {
'AssetSources': [
{
'DataShareArn': 'string'
},
],
'DataSetId': 'string',
'RevisionId': 'string'
},
'ImportAssetFromApiGatewayApi': {
'ApiDescription': 'string',
'ApiId': 'string',
'ApiKey': 'string',
'ApiName': 'string',
'ApiSpecificationMd5Hash': 'string',
'ApiSpecificationUploadUrl': 'string',
'ApiSpecificationUploadUrlExpiresAt': datetime(2015, 1, 1),
'DataSetId': 'string',
'ProtocolType': 'REST',
'RevisionId': 'string',
'Stage': 'string'
},
'CreateS3DataAccessFromS3Bucket': {
'AssetSource': {
'Bucket': 'string',
'KeyPrefixes': [
'string',
],
'Keys': [
'string',
]
},
'DataSetId': 'string',
'RevisionId': 'string'
},
'ImportAssetsFromLakeFormationTagPolicy': {
'CatalogId': 'string',
'Database': {
'Expression': [
{
'TagKey': 'string',
'TagValues': [
'string',
]
},
],
'Permissions': [
'DESCRIBE',
]
},
'Table': {
'Expression': [
{
'TagKey': 'string',
'TagValues': [
'string',
]
},
],
'Permissions': [
'DESCRIBE'|'SELECT',
]
},
'RoleArn': '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'|'Amazon Redshift datashare assets per revision'|'AWS Lake Formation data permission assets per revision'|'Amazon S3 data access assets per revision',
'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'|'IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES'|'IMPORT_ASSET_FROM_API_GATEWAY_API'|'CREATE_S3_DATA_ACCESS_FROM_S3_BUCKET'|'IMPORT_ASSETS_FROM_LAKE_FORMATION_TAG_POLICY',
'UpdatedAt': datetime(2015, 1, 1)
}
Response Structure
The ARN for the job.
The date and time that the job was created, in ISO 8601 format.
Details about the job.
Details for the export to signed URL response.
The unique identifier for the asset associated with this export job.
The unique identifier for the data set associated with this export job.
The unique identifier for the revision associated with this export response.
The signed URL for the export request.
The date and time that the signed URL expires, in ISO 8601 format.
Details for the export to Amazon S3 response.
The destination in Amazon S3 where the asset is exported.
The destination for the asset.
The unique identifier for the asset.
The Amazon S3 bucket that is the destination for the asset.
The name of the object in Amazon S3 for the asset.
The unique identifier for the data set associated with this export job.
Encryption configuration of the export job.
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.
The type of server side encryption used for encrypting the objects in Amazon S3.
The unique identifier for the revision associated with this export response.
Details for the export revisions to Amazon S3 response.
The unique identifier for the data set associated with this export job.
Encryption configuration of the export job.
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.
The type of server side encryption used for encrypting the objects in Amazon S3.
The destination in Amazon S3 where the revision is exported.
The destination where the assets in the revision will be exported.
The Amazon S3 bucket that is the destination for the assets in the revision.
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.
The unique identifier for the revision.
The Amazon Resource Name (ARN) of the event action.
Details for the import from signed URL response.
The name for the asset associated with this import job.
The unique identifier for the data set associated with this import job.
The Base64-encoded Md5 hash for the asset, used to ensure the integrity of the file at that location.
The unique identifier for the revision associated with this import response.
The signed URL.
The time and date at which the signed URL expires, in ISO 8601 format.
Details for the import from Amazon S3 response.
Is a list of Amazon S3 bucket and object key pairs.
The source of the assets.
The Amazon S3 bucket that's part of the source of the asset.
The name of the object in Amazon S3 for the asset.
The unique identifier for the data set associated with this import job.
The unique identifier for the revision associated with this import response.
Details from an import from Amazon Redshift datashare response.
A list of Amazon Redshift datashare asset sources.
The source of the Amazon Redshift datashare asset.
The Amazon Resource Name (ARN) of the datashare asset.
The unique identifier for the data set associated with this import job.
The unique identifier for the revision associated with this import job.
The response details.
The API description.
The API ID.
The API key.
The API name.
The Base64-encoded Md5 hash for the API asset, used to ensure the integrity of the API at that location.
The upload URL of the API specification.
The date and time that the upload URL expires, in ISO 8601 format.
The data set ID.
The protocol type.
The revision ID.
The API stage.
Response details from the CreateS3DataAccessFromS3Bucket job.
Details about the asset source from an Amazon S3 bucket.
The Amazon S3 bucket used for hosting shared data in the Amazon S3 data access.
Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket.
The keys used to create the Amazon S3 data access.
The unique identifier for this data set.
The unique identifier for the revision.
Response details from the ImportAssetsFromLakeFormationTagPolicy job.
The identifier for the AWS Glue Data Catalog.
A structure for the database object.
A list of LF-tag conditions that apply to database resources.
A structure that allows an LF-admin to grant permissions on certain conditions.
The key name for the LF-tag.
A list of LF-tag values.
The permissions granted to subscribers on database resources.
A structure for the table object.
A list of LF-tag conditions that apply to table resources.
A structure that allows an LF-admin to grant permissions on certain conditions.
The key name for the LF-tag.
A list of LF-tag values.
The permissions granted to subscribers on table resources.
The IAM role's ARN that allows AWS Data Exchange to assume the role and grant and revoke permissions to AWS Lake Formation data permissions.
The unique identifier for the data set associated with this import job.
The unique identifier for the revision associated with this import job.
The errors associated with jobs.
An error that occurred with the job request.
The code for the job error.
The details about the job error.
Information about the job error.
Details about the job error.
Details about the job error.
The source of the assets.
The Amazon S3 bucket that's part of the source of the asset.
The name of the object in Amazon S3 for the asset.
The name of the limit that was reached.
The value of the exceeded limit.
The message related to the job error.
The unique identifier for the resource related to the error.
The type of resource related to the error.
The unique identifier for the job.
The state of the job.
The job type.
The date and time that the job was last updated, in ISO 8601 format.
Exceptions
DataExchange.Client.exceptions.ResourceNotFoundException
DataExchange.Client.exceptions.ThrottlingException
DataExchange.Client.exceptions.ValidationException
DataExchange.Client.exceptions.InternalServerException