Skip to main content

asset_bundle_import_jobs

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

Overview

Nameasset_bundle_import_jobs
TypeResource
Idaws.quicksight.asset_bundle_import_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) for the import job.
asset_bundle_import_job_idstringThe ID of the job. The job ID is set when you start a new job with a StartAssetBundleImportJob API call. (pattern: <code>[\w-]+</code>)
asset_bundle_import_sourceobjectThe source of the asset bundle zip file that contains the data that is imported by the job.
aws_account_idstringThe ID of the Amazon Web Services account the import job was executed in. (pattern: <code>^[0-9]{12}$</code>)
created_timestring (date-time)The time that the import job was created.
errorsarrayAn array of error records that describes any failures that occurred during the export job processing. Error records accumulate while the job is still running. The complete set of error records is available after the job has completed and failed.
failure_actionstringThe failure action for the import job. (DO_NOTHING, ROLLBACK)
job_statusstringIndicates the status of a job through its queuing and execution. Poll the DescribeAssetBundleImport API until JobStatus returns one of the following values: SUCCESSFUL FAILED FAILED_ROLLBACK_COMPLETED FAILED_ROLLBACK_ERROR (QUEUED_FOR_IMMEDIATE_EXECUTION, IN_PROGRESS, SUCCESSFUL, FAILED, FAILED_ROLLBACK_IN_PROGRESS, FAILED_ROLLBACK_COMPLETED, FAILED_ROLLBACK_ERROR)
override_parametersobjectOptional overrides that are applied to the resource configuration before import.
override_permissionsobjectOptional permission overrides that are applied to the resource configuration before import.
override_tagsobjectOptional tag overrides that are applied to the resource configuration before import.
override_validation_strategyobjectAn optional validation strategy override for all analyses and dashboards to be applied to the resource configuration before import.
request_idstringThe Amazon Web Services request ID for this operation. (pattern: <code>.\S.</code>)
rollback_errorsarrayAn array of error records that describes any failures that occurred while an import job was attempting a rollback. Error records accumulate while the job is still running. The complete set of error records is available after the job has completed and failed.
statusintegerThe HTTP status of the response.
warningsarrayAn array of warning records that describe all permitted errors that are encountered during the import job.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_asset_bundle_import_jobselectaws_account_id, asset_bundle_import_job_id, regionDescribes an existing import job. Poll job descriptions after starting a job to know when it has succeeded or failed. Job descriptions are available for 14 days after job starts.
list_asset_bundle_import_jobsselectaws_account_id, regionnext-token, max-resultsLists all asset bundle import jobs that have 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, ListAssetBundleImportJobs only returns the most recent job that uses the repeated job ID.
start_asset_bundle_import_jobexecaws_account_id, region, AssetBundleImportJobId, AssetBundleImportSourceStarts an Asset Bundle import job. An Asset Bundle import job imports specified Amazon Quick Sight assets into an Amazon Quick Sight account. You can also choose to import a naming prefix and specified configuration overrides. The assets that are contained in the bundle file that you provide are used to create or update a new or existing asset in your Amazon Quick Sight account. Each Amazon Quick Sight account can run up to 5 import jobs concurrently. The API caller must have the necessary "create", "describe", and "update" permissions in their IAM role to access each resource type that is contained in the bundle file before the resources can be imported.

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_import_job_idstringThe ID of the job. The job ID is set when you start a new job with a StartAssetBundleImportJob API call.
aws_account_idstringThe ID of the Amazon Web Services account to import assets into.
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 import job. Poll job descriptions after starting a job to know when it has succeeded or failed. Job descriptions are available for 14 days after job starts.

SELECT
arn,
asset_bundle_import_job_id,
asset_bundle_import_source,
aws_account_id,
created_time,
errors,
failure_action,
job_status,
override_parameters,
override_permissions,
override_tags,
override_validation_strategy,
request_id,
rollback_errors,
status,
warnings
FROM aws.quicksight.asset_bundle_import_jobs
WHERE aws_account_id = '{{ aws_account_id }}' -- required
AND asset_bundle_import_job_id = '{{ asset_bundle_import_job_id }}' -- required
AND region = '{{ region }}' -- required
;

Lifecycle Methods

Starts an Asset Bundle import job. An Asset Bundle import job imports specified Amazon Quick Sight assets into an Amazon Quick Sight account. You can also choose to import a naming prefix and specified configuration overrides. The assets that are contained in the bundle file that you provide are used to create or update a new or existing asset in your Amazon Quick Sight account. Each Amazon Quick Sight account can run up to 5 import jobs concurrently. The API caller must have the necessary "create", "describe", and "update" permissions in their IAM role to access each resource type that is contained in the bundle file before the resources can be imported.

EXEC aws.quicksight.asset_bundle_import_jobs.start_asset_bundle_import_job
@aws_account_id='{{ aws_account_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"AssetBundleImportJobId": "{{ AssetBundleImportJobId }}",
"AssetBundleImportSource": "{{ AssetBundleImportSource }}",
"OverrideParameters": "{{ OverrideParameters }}",
"FailureAction": "{{ FailureAction }}",
"OverridePermissions": "{{ OverridePermissions }}",
"OverrideTags": "{{ OverrideTags }}",
"OverrideValidationStrategy": "{{ OverrideValidationStrategy }}"
}'
;