EC2 / Client / cancel_declarative_policies_report
cancel_declarative_policies_report#
- EC2.Client.cancel_declarative_policies_report(**kwargs)#
Cancels the generation of an account status report.
You can only cancel a report while it has the
running
status. Reports with other statuses (complete
,cancelled
, orerror
) can’t be canceled.For more information, see Generating the account status report for declarative policies in the Amazon Web Services Organizations User Guide.
See also: AWS API Documentation
Request Syntax
response = client.cancel_declarative_policies_report( DryRun=True|False, ReportId='string' )
- Parameters:
DryRun (boolean) – Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.ReportId (string) –
[REQUIRED]
The ID of the report.
- Return type:
dict
- Returns:
Response Syntax
{ 'Return': True|False }
Response Structure
(dict) –
Return (boolean) –
Is
true
if the request succeeds, and an error otherwise.