AWS Data Exchange

2023/03/14 - AWS Data Exchange - 6 updated api methods

Changes  This release enables data providers to license direct access to S3 objects encrypted with Customer Managed Keys (CMK) in AWS KMS through AWS Data Exchange. Subscribers can use these keys to decrypt, then use the encrypted S3 objects shared with them, without creating or managing copies.

CreateJob (updated) Link ¶
Changes (both)
{'Details': {'CreateS3DataAccessFromS3Bucket': {'AssetSource': {'KmsKeysToGrant': [{'KmsKeyArn': 'string'}]}}}}

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'
        },
        'ImportAssetsFromRedshiftDataShares': {
            'AssetSources': [
                {
                    'DataShareArn': 'string'
                },
            ],
            'DataSetId': 'string',
            'RevisionId': 'string'
        },
        'ImportAssetFromApiGatewayApi': {
            'ApiDescription': 'string',
            'ApiId': 'string',
            'ApiKey': 'string',
            'ApiName': 'string',
            'ApiSpecificationMd5Hash': 'string',
            'DataSetId': 'string',
            'ProtocolType': 'REST',
            'RevisionId': 'string',
            'Stage': 'string'
        },
        'CreateS3DataAccessFromS3Bucket': {
            'AssetSource': {
                'Bucket': 'string',
                'KeyPrefixes': [
                    'string',
                ],
                'Keys': [
                    'string',
                ],
                'KmsKeysToGrant': [
                    {
                        'KmsKeyArn': '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'
        }
    },
    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'
)
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 Amazon 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 Amazon 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 Amazon S3 request.

    • AssetName (string) -- [REQUIRED]

      The name of the asset. When importing from Amazon S3, the Amazon 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 asset from API Gateway API request.

    • AssetSources (list) -- [REQUIRED]

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

      • (dict) --

        The source of the assets.

        • Bucket (string) -- [REQUIRED]

          The Amazon 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.

  • ImportAssetsFromRedshiftDataShares (dict) --

    Details from an import from Amazon Redshift datashare request.

    • AssetSources (list) -- [REQUIRED]

      A list of Amazon Redshift datashare assets.

      • (dict) --

        The source of the Amazon Redshift datashare asset.

        • DataShareArn (string) -- [REQUIRED]

          The Amazon Resource Name (ARN) of the datashare 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 job.

  • ImportAssetFromApiGatewayApi (dict) --

    Details about the import from signed URL request.

    • ApiDescription (string) --

      The API description. Markdown supported.

    • ApiId (string) -- [REQUIRED]

      The API Gateway API ID.

    • ApiKey (string) --

      The API Gateway API key.

    • ApiName (string) -- [REQUIRED]

      The API name.

    • ApiSpecificationMd5Hash (string) -- [REQUIRED]

      The Base64-encoded MD5 hash of the OpenAPI 3.0 JSON API specification file. It is used to ensure the integrity of the file.

    • DataSetId (string) -- [REQUIRED]

      The data set ID.

    • ProtocolType (string) -- [REQUIRED]

      The protocol type.

    • RevisionId (string) -- [REQUIRED]

      The revision ID.

    • Stage (string) -- [REQUIRED]

      The API stage.

  • CreateS3DataAccessFromS3Bucket (dict) --

    Details of the request to create S3 data access from the Amazon S3 bucket.

    • AssetSource (dict) -- [REQUIRED]

      Details about the S3 data access source asset.

      • Bucket (string) -- [REQUIRED]

        The Amazon S3 bucket used for hosting shared data in the Amazon S3 data access.

      • KeyPrefixes (list) --

        Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket.

        • (string) --

      • Keys (list) --

        The keys used to create the Amazon S3 data access.

        • (string) --

      • KmsKeysToGrant (list) --

        List of AWS KMS CMKs (Key Management System Customer Managed Keys) and ARNs used to encrypt S3 objects being shared in this S3 Data Access asset.

        • (dict) --

          The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the shared S3 objects.

          • KmsKeyArn (string) -- [REQUIRED]

            The AWS KMS CMK (Key Management System Customer Managed Key) used to encrypt S3 objects in the shared S3 Bucket. AWS Data exchange will create a KMS grant for each subscriber to allow them to access and decrypt their entitled data that is encrypted using this KMS key specified.

    • DataSetId (string) -- [REQUIRED]

      The unique identifier for the data set associated with the creation of this Amazon S3 data access.

    • RevisionId (string) -- [REQUIRED]

      The unique identifier for a revision.

  • ImportAssetsFromLakeFormationTagPolicy (dict) --

    Request details for the ImportAssetsFromLakeFormationTagPolicy job.

    • CatalogId (string) -- [REQUIRED]

      The identifier for the AWS Glue Data Catalog.

    • Database (dict) --

      A structure for the database object.

      • Expression (list) -- [REQUIRED]

        A list of LF-tag conditions that apply to database resources.

        • (dict) --

          A structure that allows an LF-admin to grant permissions on certain conditions.

          • TagKey (string) -- [REQUIRED]

            The key name for the LF-tag.

          • TagValues (list) -- [REQUIRED]

            A list of LF-tag values.

            • (string) --

      • Permissions (list) -- [REQUIRED]

        The permissions granted to subscribers on database resources.

        • (string) --

    • Table (dict) --

      A structure for the table object.

      • Expression (list) -- [REQUIRED]

        A list of LF-tag conditions that apply to table resources.

        • (dict) --

          A structure that allows an LF-admin to grant permissions on certain conditions.

          • TagKey (string) -- [REQUIRED]

            The key name for the LF-tag.

          • TagValues (list) -- [REQUIRED]

            A list of LF-tag values.

            • (string) --

      • Permissions (list) -- [REQUIRED]

        The permissions granted to subscribers on table resources.

        • (string) --

    • RoleArn (string) -- [REQUIRED]

      The IAM role's ARN that allows AWS Data Exchange to assume the role and grant and revoke permissions of subscribers to AWS Lake Formation data permissions.

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

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'
                },
            ],
            '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',
                ],
                'KmsKeysToGrant': [
                    {
                        'KmsKeyArn': '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

  • (dict) --

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

        • EventActionArn (string) --

          The Amazon Resource Name (ARN) of the event action.

      • ImportAssetFromSignedUrl (dict) --

        Details for the import from signed URL response.

        • AssetName (string) --

          The name for the asset associated with this import job.

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

      • ImportAssetsFromRedshiftDataShares (dict) --

        Details from an import from Amazon Redshift datashare response.

        • AssetSources (list) --

          A list of Amazon Redshift datashare asset sources.

          • (dict) --

            The source of the Amazon Redshift datashare asset.

            • DataShareArn (string) --

              The Amazon Resource Name (ARN) of the datashare 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 job.

      • ImportAssetFromApiGatewayApi (dict) --

        The response details.

        • ApiDescription (string) --

          The API description.

        • ApiId (string) --

          The API ID.

        • ApiKey (string) --

          The API key.

        • ApiName (string) --

          The API name.

        • ApiSpecificationMd5Hash (string) --

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

        • ApiSpecificationUploadUrl (string) --

          The upload URL of the API specification.

        • ApiSpecificationUploadUrlExpiresAt (datetime) --

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

        • DataSetId (string) --

          The data set ID.

        • ProtocolType (string) --

          The protocol type.

        • RevisionId (string) --

          The revision ID.

        • Stage (string) --

          The API stage.

      • CreateS3DataAccessFromS3Bucket (dict) --

        Response details from the CreateS3DataAccessFromS3Bucket job.

        • AssetSource (dict) --

          Details about the asset source from an Amazon S3 bucket.

          • Bucket (string) --

            The Amazon S3 bucket used for hosting shared data in the Amazon S3 data access.

          • KeyPrefixes (list) --

            Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket.

            • (string) --

          • Keys (list) --

            The keys used to create the Amazon S3 data access.

            • (string) --

          • KmsKeysToGrant (list) --

            List of AWS KMS CMKs (Key Management System Customer Managed Keys) and ARNs used to encrypt S3 objects being shared in this S3 Data Access asset.

            • (dict) --

              The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the shared S3 objects.

              • KmsKeyArn (string) --

                The AWS KMS CMK (Key Management System Customer Managed Key) used to encrypt S3 objects in the shared S3 Bucket. AWS Data exchange will create a KMS grant for each subscriber to allow them to access and decrypt their entitled data that is encrypted using this KMS key specified.

        • DataSetId (string) --

          The unique identifier for this data set.

        • RevisionId (string) --

          The unique identifier for the revision.

      • ImportAssetsFromLakeFormationTagPolicy (dict) --

        Response details from the ImportAssetsFromLakeFormationTagPolicy job.

        • CatalogId (string) --

          The identifier for the AWS Glue Data Catalog.

        • Database (dict) --

          A structure for the database object.

          • Expression (list) --

            A list of LF-tag conditions that apply to database resources.

            • (dict) --

              A structure that allows an LF-admin to grant permissions on certain conditions.

              • TagKey (string) --

                The key name for the LF-tag.

              • TagValues (list) --

                A list of LF-tag values.

                • (string) --

          • Permissions (list) --

            The permissions granted to subscribers on database resources.

            • (string) --

        • Table (dict) --

          A structure for the table object.

          • Expression (list) --

            A list of LF-tag conditions that apply to table resources.

            • (dict) --

              A structure that allows an LF-admin to grant permissions on certain conditions.

              • TagKey (string) --

                The key name for the LF-tag.

              • TagValues (list) --

                A list of LF-tag values.

                • (string) --

          • Permissions (list) --

            The permissions granted to subscribers on table resources.

            • (string) --

        • RoleArn (string) --

          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.

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

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

          The details about the job error.

          • ImportAssetFromSignedUrlJobErrorDetails (dict) --

            Information about the job error.

            • AssetName (string) --

              Details about the job error.

          • ImportAssetsFromS3JobErrorDetails (list) --

            Details about the job error.

            • (dict) --

              The source of the assets.

              • Bucket (string) --

                The Amazon 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.

GetAsset (updated) Link ¶
Changes (response)
{'AssetDetails': {'S3DataAccessAsset': {'KmsKeysToGrant': [{'KmsKeyArn': 'string'}]}}}

This operation returns information about an asset.

See also: AWS API Documentation

Request Syntax

client.get_asset(
    AssetId='string',
    DataSetId='string',
    RevisionId='string'
)
type AssetId:

string

param AssetId:

[REQUIRED]

The unique identifier for an asset.

type DataSetId:

string

param DataSetId:

[REQUIRED]

The unique identifier for a data set.

type RevisionId:

string

param RevisionId:

[REQUIRED]

The unique identifier for a revision.

rtype:

dict

returns:

Response Syntax

{
    'Arn': 'string',
    'AssetDetails': {
        'S3SnapshotAsset': {
            'Size': 123.0
        },
        'RedshiftDataShareAsset': {
            'Arn': 'string'
        },
        'ApiGatewayApiAsset': {
            'ApiDescription': 'string',
            'ApiEndpoint': 'string',
            'ApiId': 'string',
            'ApiKey': 'string',
            'ApiName': 'string',
            'ApiSpecificationDownloadUrl': 'string',
            'ApiSpecificationDownloadUrlExpiresAt': datetime(2015, 1, 1),
            'ProtocolType': 'REST',
            'Stage': 'string'
        },
        'S3DataAccessAsset': {
            'Bucket': 'string',
            'KeyPrefixes': [
                'string',
            ],
            'Keys': [
                'string',
            ],
            'S3AccessPointAlias': 'string',
            'S3AccessPointArn': 'string',
            'KmsKeysToGrant': [
                {
                    'KmsKeyArn': 'string'
                },
            ]
        },
        'LakeFormationDataPermissionAsset': {
            'LakeFormationDataPermissionDetails': {
                'LFTagPolicy': {
                    'CatalogId': 'string',
                    'ResourceType': 'TABLE'|'DATABASE',
                    'ResourceDetails': {
                        'Database': {
                            'Expression': [
                                {
                                    'TagKey': 'string',
                                    'TagValues': [
                                        'string',
                                    ]
                                },
                            ]
                        },
                        'Table': {
                            'Expression': [
                                {
                                    'TagKey': 'string',
                                    'TagValues': [
                                        'string',
                                    ]
                                },
                            ]
                        }
                    }
                }
            },
            'LakeFormationDataPermissionType': 'LFTagPolicy',
            'Permissions': [
                'DESCRIBE'|'SELECT',
            ],
            'RoleArn': 'string'
        }
    },
    'AssetType': 'S3_SNAPSHOT'|'REDSHIFT_DATA_SHARE'|'API_GATEWAY_API'|'S3_DATA_ACCESS'|'LAKE_FORMATION_DATA_PERMISSION',
    'CreatedAt': datetime(2015, 1, 1),
    'DataSetId': 'string',
    'Id': 'string',
    'Name': 'string',
    'RevisionId': 'string',
    'SourceId': 'string',
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • Arn (string) --

      The ARN for the asset.

    • AssetDetails (dict) --

      Details about the asset.

      • S3SnapshotAsset (dict) --

        The Amazon S3 object that is the asset.

        • Size (float) --

          The size of the Amazon S3 object that is the object.

      • RedshiftDataShareAsset (dict) --

        The Amazon Redshift datashare that is the asset.

        • Arn (string) --

          The Amazon Resource Name (ARN) of the datashare asset.

      • ApiGatewayApiAsset (dict) --

        Information about the API Gateway API asset.

        • ApiDescription (string) --

          The API description of the API asset.

        • ApiEndpoint (string) --

          The API endpoint of the API asset.

        • ApiId (string) --

          The unique identifier of the API asset.

        • ApiKey (string) --

          The API key of the API asset.

        • ApiName (string) --

          The API name of the API asset.

        • ApiSpecificationDownloadUrl (string) --

          The download URL of the API specification of the API asset.

        • ApiSpecificationDownloadUrlExpiresAt (datetime) --

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

        • ProtocolType (string) --

          The protocol type of the API asset.

        • Stage (string) --

          The stage of the API asset.

      • S3DataAccessAsset (dict) --

        The Amazon S3 data access that is the asset.

        • Bucket (string) --

          The Amazon S3 bucket hosting data to be shared in the S3 data access.

        • KeyPrefixes (list) --

          The Amazon S3 bucket used for hosting shared data in the Amazon S3 data access.

          • (string) --

        • Keys (list) --

          S3 keys made available using this asset.

          • (string) --

        • S3AccessPointAlias (string) --

          The automatically-generated bucket-style alias for your Amazon S3 Access Point. Customers can access their entitled data using the S3 Access Point alias.

        • S3AccessPointArn (string) --

          The ARN for your Amazon S3 Access Point. Customers can also access their entitled data using the S3 Access Point ARN.

        • KmsKeysToGrant (list) --

          List of AWS KMS CMKs (Key Management System Customer Managed Keys) and ARNs used to encrypt S3 objects being shared in this S3 Data Access asset. Providers must include all AWS KMS keys used to encrypt these shared S3 objects.

          • (dict) --

            The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the shared S3 objects.

            • KmsKeyArn (string) --

              The AWS KMS CMK (Key Management System Customer Managed Key) used to encrypt S3 objects in the shared S3 Bucket. AWS Data exchange will create a KMS grant for each subscriber to allow them to access and decrypt their entitled data that is encrypted using this KMS key specified.

      • LakeFormationDataPermissionAsset (dict) --

        The AWS Lake Formation data permission that is the asset.

        • LakeFormationDataPermissionDetails (dict) --

          Details about the AWS Lake Formation data permission.

          • LFTagPolicy (dict) --

            Details about the LF-tag policy.

            • CatalogId (string) --

              The identifier for the AWS Glue Data Catalog.

            • ResourceType (string) --

              The resource type for which the LF-tag policy applies.

            • ResourceDetails (dict) --

              Details for the Lake Formation Resources included in the LF-tag policy.

              • Database (dict) --

                Details about the database resource included in the AWS Lake Formation data permission.

                • Expression (list) --

                  A list of LF-tag conditions that apply to database resources.

                  • (dict) --

                    A structure that allows an LF-admin to grant permissions on certain conditions.

                    • TagKey (string) --

                      The key name for the LF-tag.

                    • TagValues (list) --

                      A list of LF-tag values.

                      • (string) --

              • Table (dict) --

                Details about the table resource included in the AWS Lake Formation data permission.

                • Expression (list) --

                  A list of LF-tag conditions that apply to table resources.

                  • (dict) --

                    A structure that allows an LF-admin to grant permissions on certain conditions.

                    • TagKey (string) --

                      The key name for the LF-tag.

                    • TagValues (list) --

                      A list of LF-tag values.

                      • (string) --

        • LakeFormationDataPermissionType (string) --

          The data permission type.

        • Permissions (list) --

          The permissions granted to the subscribers on the resource.

          • (string) --

        • RoleArn (string) --

          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.

    • AssetType (string) --

      The type of asset that is added to a data set.

    • CreatedAt (datetime) --

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

    • DataSetId (string) --

      The unique identifier for the data set associated with this asset.

    • Id (string) --

      The unique identifier for the asset.

    • Name (string) --

      The name of the asset. When importing from Amazon S3, the Amazon S3 object key is used as the asset name. When exporting to Amazon S3, the asset name is used as default target Amazon S3 object key. When importing from Amazon API Gateway API, the API name is used as the asset name. When importing from Amazon Redshift, the datashare name is used as the asset name. When importing from AWS Lake Formation, the static values of "Database(s) included in the LF-tag policy" or "Table(s) included in the LF-tag policy" are used as the asset name.

    • RevisionId (string) --

      The unique identifier for the revision associated with this asset.

    • SourceId (string) --

      The asset ID of the owned asset corresponding to the entitled asset being viewed. This parameter is returned when an asset owner is viewing the entitled copy of its owned asset.

    • UpdatedAt (datetime) --

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

GetJob (updated) Link ¶
Changes (response)
{'Details': {'CreateS3DataAccessFromS3Bucket': {'AssetSource': {'KmsKeysToGrant': [{'KmsKeyArn': 'string'}]}}}}

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'
                },
            ],
            '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',
                ],
                'KmsKeysToGrant': [
                    {
                        'KmsKeyArn': '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

  • (dict) --

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

        • EventActionArn (string) --

          The Amazon Resource Name (ARN) of the event action.

      • ImportAssetFromSignedUrl (dict) --

        Details for the import from signed URL response.

        • AssetName (string) --

          The name for the asset associated with this import job.

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

      • ImportAssetsFromRedshiftDataShares (dict) --

        Details from an import from Amazon Redshift datashare response.

        • AssetSources (list) --

          A list of Amazon Redshift datashare asset sources.

          • (dict) --

            The source of the Amazon Redshift datashare asset.

            • DataShareArn (string) --

              The Amazon Resource Name (ARN) of the datashare 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 job.

      • ImportAssetFromApiGatewayApi (dict) --

        The response details.

        • ApiDescription (string) --

          The API description.

        • ApiId (string) --

          The API ID.

        • ApiKey (string) --

          The API key.

        • ApiName (string) --

          The API name.

        • ApiSpecificationMd5Hash (string) --

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

        • ApiSpecificationUploadUrl (string) --

          The upload URL of the API specification.

        • ApiSpecificationUploadUrlExpiresAt (datetime) --

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

        • DataSetId (string) --

          The data set ID.

        • ProtocolType (string) --

          The protocol type.

        • RevisionId (string) --

          The revision ID.

        • Stage (string) --

          The API stage.

      • CreateS3DataAccessFromS3Bucket (dict) --

        Response details from the CreateS3DataAccessFromS3Bucket job.

        • AssetSource (dict) --

          Details about the asset source from an Amazon S3 bucket.

          • Bucket (string) --

            The Amazon S3 bucket used for hosting shared data in the Amazon S3 data access.

          • KeyPrefixes (list) --

            Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket.

            • (string) --

          • Keys (list) --

            The keys used to create the Amazon S3 data access.

            • (string) --

          • KmsKeysToGrant (list) --

            List of AWS KMS CMKs (Key Management System Customer Managed Keys) and ARNs used to encrypt S3 objects being shared in this S3 Data Access asset.

            • (dict) --

              The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the shared S3 objects.

              • KmsKeyArn (string) --

                The AWS KMS CMK (Key Management System Customer Managed Key) used to encrypt S3 objects in the shared S3 Bucket. AWS Data exchange will create a KMS grant for each subscriber to allow them to access and decrypt their entitled data that is encrypted using this KMS key specified.

        • DataSetId (string) --

          The unique identifier for this data set.

        • RevisionId (string) --

          The unique identifier for the revision.

      • ImportAssetsFromLakeFormationTagPolicy (dict) --

        Response details from the ImportAssetsFromLakeFormationTagPolicy job.

        • CatalogId (string) --

          The identifier for the AWS Glue Data Catalog.

        • Database (dict) --

          A structure for the database object.

          • Expression (list) --

            A list of LF-tag conditions that apply to database resources.

            • (dict) --

              A structure that allows an LF-admin to grant permissions on certain conditions.

              • TagKey (string) --

                The key name for the LF-tag.

              • TagValues (list) --

                A list of LF-tag values.

                • (string) --

          • Permissions (list) --

            The permissions granted to subscribers on database resources.

            • (string) --

        • Table (dict) --

          A structure for the table object.

          • Expression (list) --

            A list of LF-tag conditions that apply to table resources.

            • (dict) --

              A structure that allows an LF-admin to grant permissions on certain conditions.

              • TagKey (string) --

                The key name for the LF-tag.

              • TagValues (list) --

                A list of LF-tag values.

                • (string) --

          • Permissions (list) --

            The permissions granted to subscribers on table resources.

            • (string) --

        • RoleArn (string) --

          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.

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

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

          The details about the job error.

          • ImportAssetFromSignedUrlJobErrorDetails (dict) --

            Information about the job error.

            • AssetName (string) --

              Details about the job error.

          • ImportAssetsFromS3JobErrorDetails (list) --

            Details about the job error.

            • (dict) --

              The source of the assets.

              • Bucket (string) --

                The Amazon 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': {'Details': {'CreateS3DataAccessFromS3Bucket': {'AssetSource': {'KmsKeysToGrant': [{'KmsKeyArn': 'string'}]}}}}}

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'
                        },
                    ],
                    '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',
                        ],
                        'KmsKeysToGrant': [
                            {
                                'KmsKeyArn': '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)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

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

            • EventActionArn (string) --

              The Amazon Resource Name (ARN) of the event action.

          • ImportAssetFromSignedUrl (dict) --

            Details for the import from signed URL response.

            • AssetName (string) --

              The name for the asset associated with this import job.

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

          • ImportAssetsFromRedshiftDataShares (dict) --

            Details from an import from Amazon Redshift datashare response.

            • AssetSources (list) --

              A list of Amazon Redshift datashare asset sources.

              • (dict) --

                The source of the Amazon Redshift datashare asset.

                • DataShareArn (string) --

                  The Amazon Resource Name (ARN) of the datashare 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 job.

          • ImportAssetFromApiGatewayApi (dict) --

            The response details.

            • ApiDescription (string) --

              The API description.

            • ApiId (string) --

              The API ID.

            • ApiKey (string) --

              The API key.

            • ApiName (string) --

              The API name.

            • ApiSpecificationMd5Hash (string) --

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

            • ApiSpecificationUploadUrl (string) --

              The upload URL of the API specification.

            • ApiSpecificationUploadUrlExpiresAt (datetime) --

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

            • DataSetId (string) --

              The data set ID.

            • ProtocolType (string) --

              The protocol type.

            • RevisionId (string) --

              The revision ID.

            • Stage (string) --

              The API stage.

          • CreateS3DataAccessFromS3Bucket (dict) --

            Response details from the CreateS3DataAccessFromS3Bucket job.

            • AssetSource (dict) --

              Details about the asset source from an Amazon S3 bucket.

              • Bucket (string) --

                The Amazon S3 bucket used for hosting shared data in the Amazon S3 data access.

              • KeyPrefixes (list) --

                Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket.

                • (string) --

              • Keys (list) --

                The keys used to create the Amazon S3 data access.

                • (string) --

              • KmsKeysToGrant (list) --

                List of AWS KMS CMKs (Key Management System Customer Managed Keys) and ARNs used to encrypt S3 objects being shared in this S3 Data Access asset.

                • (dict) --

                  The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the shared S3 objects.

                  • KmsKeyArn (string) --

                    The AWS KMS CMK (Key Management System Customer Managed Key) used to encrypt S3 objects in the shared S3 Bucket. AWS Data exchange will create a KMS grant for each subscriber to allow them to access and decrypt their entitled data that is encrypted using this KMS key specified.

            • DataSetId (string) --

              The unique identifier for this data set.

            • RevisionId (string) --

              The unique identifier for the revision.

          • ImportAssetsFromLakeFormationTagPolicy (dict) --

            Response details from the ImportAssetsFromLakeFormationTagPolicy job.

            • CatalogId (string) --

              The identifier for the AWS Glue Data Catalog.

            • Database (dict) --

              A structure for the database object.

              • Expression (list) --

                A list of LF-tag conditions that apply to database resources.

                • (dict) --

                  A structure that allows an LF-admin to grant permissions on certain conditions.

                  • TagKey (string) --

                    The key name for the LF-tag.

                  • TagValues (list) --

                    A list of LF-tag values.

                    • (string) --

              • Permissions (list) --

                The permissions granted to subscribers on database resources.

                • (string) --

            • Table (dict) --

              A structure for the table object.

              • Expression (list) --

                A list of LF-tag conditions that apply to table resources.

                • (dict) --

                  A structure that allows an LF-admin to grant permissions on certain conditions.

                  • TagKey (string) --

                    The key name for the LF-tag.

                  • TagValues (list) --

                    A list of LF-tag values.

                    • (string) --

              • Permissions (list) --

                The permissions granted to subscribers on table resources.

                • (string) --

            • RoleArn (string) --

              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.

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

        • Errors (list) --

          Errors for jobs.

          • (dict) --

            An error that occurred with the job request.

            • Code (string) --

              The code for the job error.

            • Details (dict) --

              The details about the job error.

              • ImportAssetFromSignedUrlJobErrorDetails (dict) --

                Information about the job error.

                • AssetName (string) --

                  Details about the job error.

              • ImportAssetsFromS3JobErrorDetails (list) --

                Details about the job error.

                • (dict) --

                  The source of the assets.

                  • Bucket (string) --

                    The Amazon 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.

ListRevisionAssets (updated) Link ¶
Changes (response)
{'Assets': {'AssetDetails': {'S3DataAccessAsset': {'KmsKeysToGrant': [{'KmsKeyArn': 'string'}]}}}}

This operation lists a revision's assets sorted alphabetically in descending order.

See also: AWS API Documentation

Request Syntax

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

string

param DataSetId:

[REQUIRED]

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:

[REQUIRED]

The unique identifier for a revision.

rtype:

dict

returns:

Response Syntax

{
    'Assets': [
        {
            'Arn': 'string',
            'AssetDetails': {
                'S3SnapshotAsset': {
                    'Size': 123.0
                },
                'RedshiftDataShareAsset': {
                    'Arn': 'string'
                },
                'ApiGatewayApiAsset': {
                    'ApiDescription': 'string',
                    'ApiEndpoint': 'string',
                    'ApiId': 'string',
                    'ApiKey': 'string',
                    'ApiName': 'string',
                    'ApiSpecificationDownloadUrl': 'string',
                    'ApiSpecificationDownloadUrlExpiresAt': datetime(2015, 1, 1),
                    'ProtocolType': 'REST',
                    'Stage': 'string'
                },
                'S3DataAccessAsset': {
                    'Bucket': 'string',
                    'KeyPrefixes': [
                        'string',
                    ],
                    'Keys': [
                        'string',
                    ],
                    'S3AccessPointAlias': 'string',
                    'S3AccessPointArn': 'string',
                    'KmsKeysToGrant': [
                        {
                            'KmsKeyArn': 'string'
                        },
                    ]
                },
                'LakeFormationDataPermissionAsset': {
                    'LakeFormationDataPermissionDetails': {
                        'LFTagPolicy': {
                            'CatalogId': 'string',
                            'ResourceType': 'TABLE'|'DATABASE',
                            'ResourceDetails': {
                                'Database': {
                                    'Expression': [
                                        {
                                            'TagKey': 'string',
                                            'TagValues': [
                                                'string',
                                            ]
                                        },
                                    ]
                                },
                                'Table': {
                                    'Expression': [
                                        {
                                            'TagKey': 'string',
                                            'TagValues': [
                                                'string',
                                            ]
                                        },
                                    ]
                                }
                            }
                        }
                    },
                    'LakeFormationDataPermissionType': 'LFTagPolicy',
                    'Permissions': [
                        'DESCRIBE'|'SELECT',
                    ],
                    'RoleArn': 'string'
                }
            },
            'AssetType': 'S3_SNAPSHOT'|'REDSHIFT_DATA_SHARE'|'API_GATEWAY_API'|'S3_DATA_ACCESS'|'LAKE_FORMATION_DATA_PERMISSION',
            'CreatedAt': datetime(2015, 1, 1),
            'DataSetId': 'string',
            'Id': 'string',
            'Name': 'string',
            'RevisionId': 'string',
            'SourceId': 'string',
            'UpdatedAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Assets (list) --

      The asset objects listed by the request.

      • (dict) --

        An asset in AWS Data Exchange is a piece of data (Amazon S3 object) or a means of fulfilling data (Amazon Redshift datashare or Amazon API Gateway API, AWS Lake Formation data permission, or Amazon S3 data access). The asset can be a structured data file, an image file, or some other data file that can be stored as an Amazon S3 object, an Amazon API Gateway API, or an Amazon Redshift datashare, an AWS Lake Formation data permission, or an Amazon S3 data access. When you create an import job for your files, API Gateway APIs, Amazon Redshift datashares, AWS Lake Formation data permission, or Amazon S3 data access, you create an asset in AWS Data Exchange.

        • Arn (string) --

          The ARN for the asset.

        • AssetDetails (dict) --

          Details about the asset.

          • S3SnapshotAsset (dict) --

            The Amazon S3 object that is the asset.

            • Size (float) --

              The size of the Amazon S3 object that is the object.

          • RedshiftDataShareAsset (dict) --

            The Amazon Redshift datashare that is the asset.

            • Arn (string) --

              The Amazon Resource Name (ARN) of the datashare asset.

          • ApiGatewayApiAsset (dict) --

            Information about the API Gateway API asset.

            • ApiDescription (string) --

              The API description of the API asset.

            • ApiEndpoint (string) --

              The API endpoint of the API asset.

            • ApiId (string) --

              The unique identifier of the API asset.

            • ApiKey (string) --

              The API key of the API asset.

            • ApiName (string) --

              The API name of the API asset.

            • ApiSpecificationDownloadUrl (string) --

              The download URL of the API specification of the API asset.

            • ApiSpecificationDownloadUrlExpiresAt (datetime) --

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

            • ProtocolType (string) --

              The protocol type of the API asset.

            • Stage (string) --

              The stage of the API asset.

          • S3DataAccessAsset (dict) --

            The Amazon S3 data access that is the asset.

            • Bucket (string) --

              The Amazon S3 bucket hosting data to be shared in the S3 data access.

            • KeyPrefixes (list) --

              The Amazon S3 bucket used for hosting shared data in the Amazon S3 data access.

              • (string) --

            • Keys (list) --

              S3 keys made available using this asset.

              • (string) --

            • S3AccessPointAlias (string) --

              The automatically-generated bucket-style alias for your Amazon S3 Access Point. Customers can access their entitled data using the S3 Access Point alias.

            • S3AccessPointArn (string) --

              The ARN for your Amazon S3 Access Point. Customers can also access their entitled data using the S3 Access Point ARN.

            • KmsKeysToGrant (list) --

              List of AWS KMS CMKs (Key Management System Customer Managed Keys) and ARNs used to encrypt S3 objects being shared in this S3 Data Access asset. Providers must include all AWS KMS keys used to encrypt these shared S3 objects.

              • (dict) --

                The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the shared S3 objects.

                • KmsKeyArn (string) --

                  The AWS KMS CMK (Key Management System Customer Managed Key) used to encrypt S3 objects in the shared S3 Bucket. AWS Data exchange will create a KMS grant for each subscriber to allow them to access and decrypt their entitled data that is encrypted using this KMS key specified.

          • LakeFormationDataPermissionAsset (dict) --

            The AWS Lake Formation data permission that is the asset.

            • LakeFormationDataPermissionDetails (dict) --

              Details about the AWS Lake Formation data permission.

              • LFTagPolicy (dict) --

                Details about the LF-tag policy.

                • CatalogId (string) --

                  The identifier for the AWS Glue Data Catalog.

                • ResourceType (string) --

                  The resource type for which the LF-tag policy applies.

                • ResourceDetails (dict) --

                  Details for the Lake Formation Resources included in the LF-tag policy.

                  • Database (dict) --

                    Details about the database resource included in the AWS Lake Formation data permission.

                    • Expression (list) --

                      A list of LF-tag conditions that apply to database resources.

                      • (dict) --

                        A structure that allows an LF-admin to grant permissions on certain conditions.

                        • TagKey (string) --

                          The key name for the LF-tag.

                        • TagValues (list) --

                          A list of LF-tag values.

                          • (string) --

                  • Table (dict) --

                    Details about the table resource included in the AWS Lake Formation data permission.

                    • Expression (list) --

                      A list of LF-tag conditions that apply to table resources.

                      • (dict) --

                        A structure that allows an LF-admin to grant permissions on certain conditions.

                        • TagKey (string) --

                          The key name for the LF-tag.

                        • TagValues (list) --

                          A list of LF-tag values.

                          • (string) --

            • LakeFormationDataPermissionType (string) --

              The data permission type.

            • Permissions (list) --

              The permissions granted to the subscribers on the resource.

              • (string) --

            • RoleArn (string) --

              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.

        • AssetType (string) --

          The type of asset that is added to a data set.

        • CreatedAt (datetime) --

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

        • DataSetId (string) --

          The unique identifier for the data set associated with this asset.

        • Id (string) --

          The unique identifier for the asset.

        • Name (string) --

          The name of the asset. When importing from Amazon S3, the Amazon S3 object key is used as the asset name. When exporting to Amazon S3, the asset name is used as default target Amazon S3 object key. When importing from Amazon API Gateway API, the API name is used as the asset name. When importing from Amazon Redshift, the datashare name is used as the asset name. When importing from AWS Lake Formation, the static values of "Database(s) included in LF-tag policy" or "Table(s) included in LF-tag policy" are used as the asset name.

        • RevisionId (string) --

          The unique identifier for the revision associated with this asset.

        • SourceId (string) --

          The asset ID of the owned asset corresponding to the entitled asset being viewed. This parameter is returned when an asset owner is viewing the entitled copy of its owned asset.

        • UpdatedAt (datetime) --

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

    • NextToken (string) --

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

UpdateAsset (updated) Link ¶
Changes (response)
{'AssetDetails': {'S3DataAccessAsset': {'KmsKeysToGrant': [{'KmsKeyArn': 'string'}]}}}

This operation updates an asset.

See also: AWS API Documentation

Request Syntax

client.update_asset(
    AssetId='string',
    DataSetId='string',
    Name='string',
    RevisionId='string'
)
type AssetId:

string

param AssetId:

[REQUIRED]

The unique identifier for an asset.

type DataSetId:

string

param DataSetId:

[REQUIRED]

The unique identifier for a data set.

type Name:

string

param Name:

[REQUIRED]

The name of the asset. When importing from Amazon S3, the Amazon S3 object key is used as the asset name. When exporting to Amazon S3, the asset name is used as default target Amazon S3 object key. When importing from Amazon API Gateway API, the API name is used as the asset name. When importing from Amazon Redshift, the datashare name is used as the asset name. When importing from AWS Lake Formation, the static values of "Database(s) included in the LF-tag policy" or "Table(s) included in LF-tag policy" are used as the name.

type RevisionId:

string

param RevisionId:

[REQUIRED]

The unique identifier for a revision.

rtype:

dict

returns:

Response Syntax

{
    'Arn': 'string',
    'AssetDetails': {
        'S3SnapshotAsset': {
            'Size': 123.0
        },
        'RedshiftDataShareAsset': {
            'Arn': 'string'
        },
        'ApiGatewayApiAsset': {
            'ApiDescription': 'string',
            'ApiEndpoint': 'string',
            'ApiId': 'string',
            'ApiKey': 'string',
            'ApiName': 'string',
            'ApiSpecificationDownloadUrl': 'string',
            'ApiSpecificationDownloadUrlExpiresAt': datetime(2015, 1, 1),
            'ProtocolType': 'REST',
            'Stage': 'string'
        },
        'S3DataAccessAsset': {
            'Bucket': 'string',
            'KeyPrefixes': [
                'string',
            ],
            'Keys': [
                'string',
            ],
            'S3AccessPointAlias': 'string',
            'S3AccessPointArn': 'string',
            'KmsKeysToGrant': [
                {
                    'KmsKeyArn': 'string'
                },
            ]
        },
        'LakeFormationDataPermissionAsset': {
            'LakeFormationDataPermissionDetails': {
                'LFTagPolicy': {
                    'CatalogId': 'string',
                    'ResourceType': 'TABLE'|'DATABASE',
                    'ResourceDetails': {
                        'Database': {
                            'Expression': [
                                {
                                    'TagKey': 'string',
                                    'TagValues': [
                                        'string',
                                    ]
                                },
                            ]
                        },
                        'Table': {
                            'Expression': [
                                {
                                    'TagKey': 'string',
                                    'TagValues': [
                                        'string',
                                    ]
                                },
                            ]
                        }
                    }
                }
            },
            'LakeFormationDataPermissionType': 'LFTagPolicy',
            'Permissions': [
                'DESCRIBE'|'SELECT',
            ],
            'RoleArn': 'string'
        }
    },
    'AssetType': 'S3_SNAPSHOT'|'REDSHIFT_DATA_SHARE'|'API_GATEWAY_API'|'S3_DATA_ACCESS'|'LAKE_FORMATION_DATA_PERMISSION',
    'CreatedAt': datetime(2015, 1, 1),
    'DataSetId': 'string',
    'Id': 'string',
    'Name': 'string',
    'RevisionId': 'string',
    'SourceId': 'string',
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • Arn (string) --

      The ARN for the asset.

    • AssetDetails (dict) --

      Details about the asset.

      • S3SnapshotAsset (dict) --

        The Amazon S3 object that is the asset.

        • Size (float) --

          The size of the Amazon S3 object that is the object.

      • RedshiftDataShareAsset (dict) --

        The Amazon Redshift datashare that is the asset.

        • Arn (string) --

          The Amazon Resource Name (ARN) of the datashare asset.

      • ApiGatewayApiAsset (dict) --

        Information about the API Gateway API asset.

        • ApiDescription (string) --

          The API description of the API asset.

        • ApiEndpoint (string) --

          The API endpoint of the API asset.

        • ApiId (string) --

          The unique identifier of the API asset.

        • ApiKey (string) --

          The API key of the API asset.

        • ApiName (string) --

          The API name of the API asset.

        • ApiSpecificationDownloadUrl (string) --

          The download URL of the API specification of the API asset.

        • ApiSpecificationDownloadUrlExpiresAt (datetime) --

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

        • ProtocolType (string) --

          The protocol type of the API asset.

        • Stage (string) --

          The stage of the API asset.

      • S3DataAccessAsset (dict) --

        The Amazon S3 data access that is the asset.

        • Bucket (string) --

          The Amazon S3 bucket hosting data to be shared in the S3 data access.

        • KeyPrefixes (list) --

          The Amazon S3 bucket used for hosting shared data in the Amazon S3 data access.

          • (string) --

        • Keys (list) --

          S3 keys made available using this asset.

          • (string) --

        • S3AccessPointAlias (string) --

          The automatically-generated bucket-style alias for your Amazon S3 Access Point. Customers can access their entitled data using the S3 Access Point alias.

        • S3AccessPointArn (string) --

          The ARN for your Amazon S3 Access Point. Customers can also access their entitled data using the S3 Access Point ARN.

        • KmsKeysToGrant (list) --

          List of AWS KMS CMKs (Key Management System Customer Managed Keys) and ARNs used to encrypt S3 objects being shared in this S3 Data Access asset. Providers must include all AWS KMS keys used to encrypt these shared S3 objects.

          • (dict) --

            The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the shared S3 objects.

            • KmsKeyArn (string) --

              The AWS KMS CMK (Key Management System Customer Managed Key) used to encrypt S3 objects in the shared S3 Bucket. AWS Data exchange will create a KMS grant for each subscriber to allow them to access and decrypt their entitled data that is encrypted using this KMS key specified.

      • LakeFormationDataPermissionAsset (dict) --

        The AWS Lake Formation data permission that is the asset.

        • LakeFormationDataPermissionDetails (dict) --

          Details about the AWS Lake Formation data permission.

          • LFTagPolicy (dict) --

            Details about the LF-tag policy.

            • CatalogId (string) --

              The identifier for the AWS Glue Data Catalog.

            • ResourceType (string) --

              The resource type for which the LF-tag policy applies.

            • ResourceDetails (dict) --

              Details for the Lake Formation Resources included in the LF-tag policy.

              • Database (dict) --

                Details about the database resource included in the AWS Lake Formation data permission.

                • Expression (list) --

                  A list of LF-tag conditions that apply to database resources.

                  • (dict) --

                    A structure that allows an LF-admin to grant permissions on certain conditions.

                    • TagKey (string) --

                      The key name for the LF-tag.

                    • TagValues (list) --

                      A list of LF-tag values.

                      • (string) --

              • Table (dict) --

                Details about the table resource included in the AWS Lake Formation data permission.

                • Expression (list) --

                  A list of LF-tag conditions that apply to table resources.

                  • (dict) --

                    A structure that allows an LF-admin to grant permissions on certain conditions.

                    • TagKey (string) --

                      The key name for the LF-tag.

                    • TagValues (list) --

                      A list of LF-tag values.

                      • (string) --

        • LakeFormationDataPermissionType (string) --

          The data permission type.

        • Permissions (list) --

          The permissions granted to the subscribers on the resource.

          • (string) --

        • RoleArn (string) --

          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.

    • AssetType (string) --

      The type of asset that is added to a data set.

    • CreatedAt (datetime) --

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

    • DataSetId (string) --

      The unique identifier for the data set associated with this asset.

    • Id (string) --

      The unique identifier for the asset.

    • Name (string) --

      The name of the asset. When importing from Amazon S3, the Amazon S3 object key is used as the asset name. When exporting to Amazon S3, the asset name is used as default target Amazon S3 object key. When importing from Amazon API Gateway API, the API name is used as the asset name. When importing from Amazon Redshift, the datashare name is used as the asset name. When importing from AWS Lake Formation, the static values of "Database(s) included in the LF-tag policy"- or "Table(s) included in LF-tag policy" are used as the asset name.

    • RevisionId (string) --

      The unique identifier for the revision associated with this asset.

    • SourceId (string) --

      The asset ID of the owned asset corresponding to the entitled asset being viewed. This parameter is returned when an asset owner is viewing the entitled copy of its owned asset.

    • UpdatedAt (datetime) --

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