update_security_group
async
¶
update_security_group(
network_id: NetworkId,
group_id: GenericString,
*,
config_overrides: Optional[AsyncWickrClientConfig] = None,
name: Optional[GenericString] = None,
security_group_settings: Optional[SecurityGroupSettings] = None,
) -> UpdateSecurityGroupResponse
Updates the properties of an existing security group in a Wickr network, such as its name or settings.
Parameters:
-
network_id(NetworkId) –The ID of the Wickr network containing the security group to update.
-
group_id(GenericString) –The unique identifier of the security group to update.
-
name(Optional[GenericString], default:None) –The new name for the security group.
-
security_group_settings(Optional[SecurityGroupSettings], default:None) –The updated configuration settings for the security group.
Federation mode - 0 (Local federation), 1 (Restricted federation), 2 (Global federation)
Raises:
-
BadRequestError–The request was invalid or malformed. This error occurs when the request parameters do not meet the API requirements, such as invalid field values, missing required parameters, or improperly formatted data.
-
ForbiddenError–Access to the requested resource is forbidden. This error occurs when the authenticated user does not have the necessary permissions to perform the requested operation, even though they are authenticated.
-
InternalServerError–An unexpected error occurred on the server while processing the request. This indicates a problem with the Wickr service itself rather than with the request. If this error persists, contact Amazon Web Services Support.
-
RateLimitError–The request was throttled because too many requests were sent in a short period of time. Wait a moment and retry the request. Consider implementing exponential backoff in your application.
-
ResourceNotFoundError–The requested resource could not be found. This error occurs when you try to access or modify a network, user, bot, security group, or other resource that doesn't exist or has been deleted.
-
UnauthorizedError–The request was not authenticated or the authentication credentials were invalid. This error occurs when the request lacks valid authentication credentials or the credentials have expired.
-
ValidationError–One or more fields in the request failed validation. This error provides detailed information about which fields were invalid and why, allowing you to correct the request and retry.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Update security group successfully
>>> await client.update_security_group(network_id='12345678', group_id='abc12345', name='Updated Group Name', security_group_settings={'lockoutThreshold': 15})
Update security group - not found
>>> await client.update_security_group(network_id='12345678', group_id='invalid99', name='New Name')
Source code in docs_src/capo_wickr/_services/async_wickr.py
3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 | |