update_network_settings
¶
update_network_settings(
network_id: NetworkId,
settings: NetworkSettings,
*,
config_overrides: Optional[WickrClientConfig] = None,
) -> UpdateNetworkSettingsResponse
Updates network-level settings for a Wickr network. You can modify settings such as client metrics, data retention, and other network-wide options.
Parameters:
-
network_id(NetworkId) –The ID of the Wickr network whose settings will be updated.
-
settings(NetworkSettings) –A map of setting names to their new values. Each setting should be provided with its appropriate type (boolean, string, number, etc.).
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 multiple network settings
>>> client.update_network_settings(network_id='12345678', settings={'enableClientMetrics': True, 'dataRetention': True})
Update single boolean setting
>>> client.update_network_settings(network_id='12345678', settings={'enableClientMetrics': False})
Update client metrics settings
>>> client.update_network_settings(network_id='12345678', settings={'enableClientMetrics': True})
Invalid setting name error
>>> client.update_network_settings(network_id='12345678', settings={'enableClientMetrics': False})
Network not found error
>>> client.update_network_settings(network_id='99999999', settings={'enableClientMetrics': True})
Invalid value type error
Source code in docs_src/capo_wickr/_services/wickr.py
3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 | |