Skip to main content

asset_bundle_export_jobs

Creates, updates, deletes, gets or lists an asset_bundle_export_jobs resource.

Overview

Nameasset_bundle_export_jobs
TypeResource
Idaws.quicksight.asset_bundle_export_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) for the export job.
asset_bundle_export_job_idstringThe ID of the job. The job ID is set when you start a new job with a StartAssetBundleExportJob API call. (pattern: <code>[\w-]+</code>)
aws_account_idstringThe ID of the Amazon Web Services account that the export job was executed in. (pattern: <code>^[0-9]{12}$</code>)
cloud_formation_override_property_configurationobjectThe CloudFormation override property configuration for the export job.
created_timestring (date-time)The time that the export job was created.
download_urlstringThe URL to download the exported asset bundle data from. This URL is available only after the job has succeeded. This URL is valid for 5 minutes after issuance. Call DescribeAssetBundleExportJob again for a fresh URL if needed. The downloaded asset bundle is a zip file named assetbundle-{jobId}.qs. The file has a .qs extension. This URL can't be used in a StartAssetBundleImportJob API call and should only be used for download purposes. (pattern: <code>^(https|s3):​//([^/]+)/?(.*)$</code>)
errorsarrayAn array of error records that describes any failures that occurred during the export job processing. Error records accumulate while the job runs. The complete set of error records is available after the job has completed and failed.
export_formatstringThe format of the exported asset bundle. A QUICKSIGHT_JSON formatted file can be used to make a StartAssetBundleImportJob API call. A CLOUDFORMATION_JSON formatted file can be used in the CloudFormation console and with the CloudFormation APIs. (CLOUDFORMATION_JSON, QUICKSIGHT_JSON)
include_all_dependenciesbooleanThe include dependencies flag.
include_folder_membersstringA setting that determines whether folder members are included. (RECURSE, ONE_LEVEL, NONE)
include_folder_membershipsbooleanThe include folder memberships flag.
include_permissionsbooleanThe include permissions flag.
include_tagsbooleanThe include tags flag.
job_statusstringIndicates the status of a job through its queuing and execution. Poll this DescribeAssetBundleExportApi until JobStatus is either SUCCESSFUL or FAILED. (QUEUED_FOR_IMMEDIATE_EXECUTION, IN_PROGRESS, SUCCESSFUL, FAILED)
request_idstringThe Amazon Web Services request ID for this operation. (pattern: <code>.\S.</code>)
resource_arnsarrayA list of resource ARNs that exported with the job.
statusintegerThe HTTP status of the response.
validation_strategyobjectThe validation strategy that is used to export the analysis or dashboard.
warningsarrayAn array of warning records that describe the analysis or dashboard that is exported. This array includes UI errors that can be skipped during the validation process. This property only appears if StrictModeForAllResources in ValidationStrategy is set to FALSE.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_asset_bundle_export_jobselectaws_account_id, asset_bundle_export_job_id, regionDescribes an existing export job. Poll job descriptions after a job starts to know the status of the job. When a job succeeds, a URL is provided to download the exported assets' data from. Download URLs are valid for five minutes after they are generated. You can call the DescribeAssetBundleExportJob API for a new download URL as needed. Job descriptions are available for 14 days after the job starts.
list_asset_bundle_export_jobsselectaws_account_id, regionnext-token, max-resultsLists all asset bundle export jobs that have been taken place in the last 14 days. Jobs created more than 14 days ago are deleted forever and are not returned. If you are using the same job ID for multiple jobs, ListAssetBundleExportJobs only returns the most recent job that uses the repeated job ID.
start_asset_bundle_export_jobexecaws_account_id, region, AssetBundleExportJobId, ResourceArns, ExportFormatStarts an Asset Bundle export job. An Asset Bundle export job exports specified Amazon Quick Sight assets. You can also choose to export any asset dependencies in the same job. Export jobs run asynchronously and can be polled with a DescribeAssetBundleExportJob API call. When a job is successfully completed, a download URL that contains the exported assets is returned. The URL is valid for 5 minutes and can be refreshed with a DescribeAssetBundleExportJob API call. Each Amazon Quick Sight account can run up to 5 export jobs concurrently. The API caller must have the necessary permissions in their IAM role to access each resource before the resources can be exported.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
asset_bundle_export_job_idstringThe ID of the job that you want described. The job ID is set when you start a new job with a StartAssetBundleExportJob API call.
aws_account_idstringThe ID of the Amazon Web Services account to export assets from.
regionstringAWS region (default: us-east-1)
max-resultsintegerThe maximum number of results to be returned per request.
next-tokenstringThe token for the next set of results, or null if there are no more results.

SELECT examples

Describes an existing export job. Poll job descriptions after a job starts to know the status of the job. When a job succeeds, a URL is provided to download the exported assets' data from. Download URLs are valid for five minutes after they are generated. You can call the DescribeAssetBundleExportJob API for a new download URL as needed. Job descriptions are available for 14 days after the job starts.

SELECT
arn,
asset_bundle_export_job_id,
aws_account_id,
cloud_formation_override_property_configuration,
created_time,
download_url,
errors,
export_format,
include_all_dependencies,
include_folder_members,
include_folder_memberships,
include_permissions,
include_tags,
job_status,
request_id,
resource_arns,
status,
validation_strategy,
warnings
FROM aws.quicksight.asset_bundle_export_jobs
WHERE aws_account_id = '{{ aws_account_id }}' -- required
AND asset_bundle_export_job_id = '{{ asset_bundle_export_job_id }}' -- required
AND region = '{{ region }}' -- required
;

Lifecycle Methods

Starts an Asset Bundle export job. An Asset Bundle export job exports specified Amazon Quick Sight assets. You can also choose to export any asset dependencies in the same job. Export jobs run asynchronously and can be polled with a DescribeAssetBundleExportJob API call. When a job is successfully completed, a download URL that contains the exported assets is returned. The URL is valid for 5 minutes and can be refreshed with a DescribeAssetBundleExportJob API call. Each Amazon Quick Sight account can run up to 5 export jobs concurrently. The API caller must have the necessary permissions in their IAM role to access each resource before the resources can be exported.

EXEC aws.quicksight.asset_bundle_export_jobs.start_asset_bundle_export_job
@aws_account_id='{{ aws_account_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"AssetBundleExportJobId": "{{ AssetBundleExportJobId }}",
"ResourceArns": "{{ ResourceArns }}",
"IncludeAllDependencies": {{ IncludeAllDependencies }},
"ExportFormat": "{{ ExportFormat }}",
"CloudFormationOverridePropertyConfiguration": "{{ CloudFormationOverridePropertyConfiguration }}",
"IncludePermissions": {{ IncludePermissions }},
"IncludeTags": {{ IncludeTags }},
"ValidationStrategy": "{{ ValidationStrategy }}",
"IncludeFolderMemberships": {{ IncludeFolderMemberships }},
"IncludeFolderMembers": "{{ IncludeFolderMembers }}"
}'
;