create_report_plan
¶
create_report_plan(
report_plan_name: ReportPlanName,
report_delivery_channel: ReportDeliveryChannel,
report_setting: ReportSetting,
*,
config_overrides: Optional[BackupClientConfig] = None,
report_plan_description: Optional[ReportPlanDescription] = None,
report_plan_tags: Optional[stringMap] = None,
idempotency_token: Optional[string] = None,
) -> CreateReportPlanOutput
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.
Parameters:
-
report_plan_name(ReportPlanName) –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 (_).
-
report_plan_description(Optional[ReportPlanDescription], default:None) –An optional description of the report plan with a maximum of 1,024 characters.
-
report_delivery_channel(ReportDeliveryChannel) –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.
-
report_setting(ReportSetting) –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 | SCAN_JOB_REPORTIf the report template is
RESOURCE_COMPLIANCE_REPORTorCONTROL_COMPLIANCE_REPORT, this API resource also describes the report coverage by Amazon Web Services Regions and frameworks. -
report_plan_tags(Optional[stringMap], default:None) –The tags to assign to the report plan.
-
idempotency_token(Optional[string], default:None) –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.
Raises:
-
AlreadyExistsException–The required resource already exists.
-
InvalidParameterValueException–Indicates that something is wrong with a parameter's value. For example, the value is out of range.
-
LimitExceededException–A limit in the request has been exceeded; for example, a maximum number of items allowed in a request.
-
MissingParameterValueException–Indicates that a required parameter is missing.
-
ServiceUnavailableException–The request failed due to a temporary failure of the server.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_backup/_services/backup.py
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 | |