create_workload
async
¶
create_workload(
*,
config_overrides: Optional[AsyncWellArchitectedClientConfig] = None,
workload_name: Optional[WorkloadName] = None,
description: Optional[WorkloadDescription] = None,
environment: Optional[WorkloadEnvironment] = None,
account_ids: Optional[WorkloadAccountIds] = None,
aws_regions: Optional[WorkloadAwsRegions] = None,
non_aws_regions: Optional[WorkloadNonAwsRegions] = None,
pillar_priorities: Optional[WorkloadPillarPriorities] = None,
architectural_design: Optional[WorkloadArchitecturalDesign] = None,
review_owner: Optional[WorkloadReviewOwner] = None,
industry_type: Optional[WorkloadIndustryType] = None,
industry: Optional[WorkloadIndustry] = None,
lenses: Optional[WorkloadLenses] = None,
notes: Optional[Notes] = None,
client_request_token: Optional[ClientRequestToken] = None,
tags: Optional[TagMap] = None,
discovery_config: Optional[WorkloadDiscoveryConfig] = None,
applications: Optional[WorkloadApplications] = None,
profile_arns: Optional[WorkloadProfileArns] = None,
review_template_arns: Optional[ReviewTemplateArns] = None,
jira_configuration: Optional[WorkloadJiraConfigurationInput] = None,
) -> CreateWorkloadOutput
Create a new workload.
The owner of a workload can share the workload with other Amazon Web Services accounts, users, an organization, and organizational units (OUs) in the same Amazon Web Services Region. Only the owner of a workload can delete it.
For more information, see Defining a Workload in the Well-Architected Tool User Guide.
Either AwsRegions, NonAwsRegions, or both must be specified when creating a workload.
You also must specify ReviewOwner, even though the parameter is listed as not being required in the following section.
When creating a workload using a review template, you must have the following IAM permissions:
-
wellarchitected:GetReviewTemplate -
wellarchitected:GetReviewTemplateAnswer -
wellarchitected:ListReviewTemplateAnswers -
wellarchitected:GetReviewTemplateLensReview
Parameters:
-
tags(Optional[TagMap], default:None) –The tags to be associated with the workload.
-
discovery_config(Optional[WorkloadDiscoveryConfig], default:None) –Well-Architected discovery configuration settings associated to the workload.
-
applications(Optional[WorkloadApplications], default:None) –List of AppRegistry application ARNs associated to the workload.
-
profile_arns(Optional[WorkloadProfileArns], default:None) –The list of profile ARNs associated with the workload.
-
review_template_arns(Optional[ReviewTemplateArns], default:None) –The list of review template ARNs to associate with the workload.
-
jira_configuration(Optional[WorkloadJiraConfigurationInput], default:None) –Jira configuration settings when creating a workload.
Raises:
-
AccessDeniedException–User does not have sufficient access to perform this action.
-
ConflictException–The resource has already been processed, was deleted, or is too large.
-
InternalServerException–There is a problem with the Well-Architected Tool API service.
-
ResourceNotFoundException–The requested resource was not found.
-
ServiceQuotaExceededException–The user has reached their resource quota.
-
ThrottlingException–Request was denied due to request throttling.
-
ValidationException–The user input is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_wellarchitected/_services/async_well_architected.py
1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 | |