update_security_group
¶
update_security_group(
network_id: NetworkId,
group_id: GenericString,
*,
config_overrides: Optional[WickrClientConfig] = 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
>>> client.update_security_group(network_id='12345678', group_id='abc12345', name='Updated Group Name', security_group_settings={'lockoutThreshold': 15})
Update security group - not found
Source code in docs_src/capo_wickr/_services/wickr.py
3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 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 | |