BillingandCostManagementDashboards / Client / execute_scheduled_report
execute_scheduled_report¶
- BillingandCostManagementDashboards.Client.execute_scheduled_report(**kwargs)¶
Triggers an immediate execution of a scheduled report, outside of its regular schedule. The scheduled report must be in
ENABLEDstate. Calling this operation on aDISABLEDscheduled report returns aValidationException.Note
If a
clientTokenis provided, the service uses it for idempotency. Requests with the same client token will not trigger a new execution within the same minute.See also: AWS API Documentation
Request Syntax
response = client.execute_scheduled_report( arn='string', clientToken='string', dryRun=True|False )
- Parameters:
arn (string) –
[REQUIRED]
The ARN of the scheduled report to execute.
clientToken (string) –
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
This field is autopopulated if not provided.
dryRun (boolean) – When set to
true, validates the scheduled report configuration without triggering an actual execution.
- Return type:
dict
- Returns:
Response Syntax
{ 'healthStatus': { 'statusCode': 'HEALTHY'|'UNHEALTHY', 'lastRefreshedAt': datetime(2015, 1, 1), 'statusReasons': [ 'DATA_SOURCE_ACCESS_DENIED'|'EXECUTION_ROLE_ASSUME_FAILED'|'EXECUTION_ROLE_INSUFFICIENT_PERMISSIONS'|'DASHBOARD_NOT_FOUND'|'DASHBOARD_ACCESS_DENIED'|'INTERNAL_FAILURE'|'WIDGET_ID_NOT_FOUND', ] }, 'executionTriggered': True|False }
Response Structure
(dict) –
healthStatus (dict) –
The health status of the scheduled report after the execution request.
statusCode (string) –
The health status code.
HEALTHYindicates the scheduled report is configured properly and has all required permissions to execute.UNHEALTHYindicates the scheduled report is unable to deliver the notification to the default Amazon EventBridge EventBus in your account and your action is needed. The reason for the unhealthy state is captured in the health status reasons.lastRefreshedAt (datetime) –
The timestamp when the health status was last refreshed.
statusReasons (list) –
The list of reasons for the current health status. Only present when the status is
UNHEALTHY.(string) –
executionTriggered (boolean) –
Indicates whether the execution was successfully triggered.
Exceptions
BillingandCostManagementDashboards.Client.exceptions.ThrottlingExceptionBillingandCostManagementDashboards.Client.exceptions.ConflictExceptionBillingandCostManagementDashboards.Client.exceptions.AccessDeniedExceptionBillingandCostManagementDashboards.Client.exceptions.InternalServerExceptionBillingandCostManagementDashboards.Client.exceptions.ValidationExceptionBillingandCostManagementDashboards.Client.exceptions.ResourceNotFoundException