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
1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 | |