update_group
async
¶
update_group(
*,
config_overrides: Optional[AsyncResourceGroupsClientConfig] = None,
group_name: Optional[GroupName] = None,
group: Optional[GroupStringV2] = None,
description: Optional[Description] = None,
criticality: Optional[Criticality] = None,
owner: Optional[Owner] = None,
display_name: Optional[DisplayName] = None,
) -> UpdateGroupOutput
Updates the description for an existing group. You cannot update the name of a resource group.
Minimum permissions
To run this command, you must have the following permissions:
-
resource-groups:UpdateGroup
Parameters:
-
group_name(Optional[GroupName], default:None) –Don't use this parameter. Use
Groupinstead. -
group(Optional[GroupStringV2], default:None) –The name or the ARN of the resource group to update.
-
description(Optional[Description], default:None) –The new description that you want to update the resource group with. Descriptions can contain letters, numbers, hyphens, underscores, periods, and spaces.
-
criticality(Optional[Criticality], default:None) –The critical rank of the application group on a scale of 1 to 10, with a rank of 1 being the most critical, and a rank of 10 being least critical.
-
owner(Optional[Owner], default:None) –A name, email address or other identifier for the person or group who is considered as the owner of this application group within your organization.
-
display_name(Optional[DisplayName], default:None) –The name of the application group, which you can change at any time.
Raises:
-
BadRequestException–The request includes one or more parameters that violate validation rules.
-
ForbiddenException–The caller isn't authorized to make the request. Check permissions.
-
InternalServerErrorException–An internal error occurred while processing the request. Try again later.
-
MethodNotAllowedException–The request uses an HTTP method that isn't allowed for the specified resource.
-
NotFoundException–One or more of the specified resources don't exist.
-
TooManyRequestsException–You've exceeded throttling limits by making too many requests in a period of time.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_resource_groups/_services/async_resource_groups.py
1578 1579 1580 1581 1582 1583 1584 1585 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 | |