Backup.Client.
create_report_plan
(**kwargs)¶Creates a report plan. A report plan is a document that contains information about the contents of the report and where Backup will deliver it.
If you call CreateReportPlan
with a plan that already exists, you receive an AlreadyExistsException
exception.
See also: AWS API Documentation
Request Syntax
response = client.create_report_plan(
ReportPlanName='string',
ReportPlanDescription='string',
ReportDeliveryChannel={
'S3BucketName': 'string',
'S3KeyPrefix': 'string',
'Formats': [
'string',
]
},
ReportSetting={
'ReportTemplate': 'string',
'FrameworkArns': [
'string',
],
'NumberOfFrameworks': 123,
'Accounts': [
'string',
],
'OrganizationUnits': [
'string',
],
'Regions': [
'string',
]
},
ReportPlanTags={
'string': 'string'
},
IdempotencyToken='string'
)
[REQUIRED]
The unique name of the report plan. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
[REQUIRED]
A structure that contains information about where and how to deliver your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports.
The unique name of the S3 bucket that receives your reports.
The prefix for where Backup Audit Manager delivers your reports to Amazon S3. The prefix is this part of the following path: s3://your-bucket-name/ prefix
/Backup/us-west-2/year/month/day/report-name. If not specified, there is no prefix.
A list of the format of your reports: CSV
, JSON
, or both. If not specified, the default format is CSV
.
[REQUIRED]
Identifies the report template for the report. Reports are built using a report template. The report templates are:
RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
If the report template is RESOURCE_COMPLIANCE_REPORT
or CONTROL_COMPLIANCE_REPORT
, this API resource also describes the report coverage by Amazon Web Services Regions and frameworks.
Identifies the report template for the report. Reports are built using a report template. The report templates are:
RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
The Amazon Resource Names (ARNs) of the frameworks a report covers.
The number of frameworks a report covers.
These are the accounts to be included in the report.
These are the Organizational Units to be included in the report.
These are the Regions to be included in the report.
Metadata that you can assign to help organize the report plans that you create. Each tag is a key-value pair.
A customer-chosen string that you can use to distinguish between otherwise identical calls to CreateReportPlanInput
. Retrying a successful request with the same idempotency token results in a success message with no action taken.
This field is autopopulated if not provided.
dict
Response Syntax
{
'ReportPlanName': 'string',
'ReportPlanArn': 'string',
'CreationTime': datetime(2015, 1, 1)
}
Response Structure
(dict) --
ReportPlanName (string) --
The unique name of the report plan.
ReportPlanArn (string) --
An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
CreationTime (datetime) --
The date and time a backup vault is created, in Unix format and Coordinated Universal Time (UTC). The value of CreationTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
Exceptions
Backup.Client.exceptions.AlreadyExistsException
Backup.Client.exceptions.LimitExceededException
Backup.Client.exceptions.InvalidParameterValueException
Backup.Client.exceptions.ServiceUnavailableException
Backup.Client.exceptions.MissingParameterValueException