update_workspace_configuration
async
¶
update_workspace_configuration(
workspace_id: WorkspaceId,
*,
config_overrides: Optional[AsyncampClientConfig] = None,
client_token: Optional[IdempotencyToken] = None,
limits_per_label_set: Optional[LimitsPerLabelSetList] = None,
retention_period_in_days: Optional[int] = None,
out_of_order_time_window_in_seconds: Optional[int] = None,
rule_query_offset_in_seconds: Optional[int] = None,
) -> UpdateWorkspaceConfigurationResponse
Use this operation to create or update the label sets, label set limits, and retention period of a workspace.
You must specify at least one of limitsPerLabelSet or retentionPeriodInDays for the request to be valid.
Parameters:
-
workspace_id(WorkspaceId) –The ID of the workspace that you want to update. To find the IDs of your workspaces, use the ListWorkspaces operation.
-
client_token(Optional[IdempotencyToken], default:None) –You can include a token in your operation to make it an idempotent opeartion.
-
limits_per_label_set(Optional[LimitsPerLabelSetList], default:None) –This is an array of structures, where each structure defines a label set for the workspace, and defines the active time series limit for each of those label sets. Each label name in a label set must be unique.
-
retention_period_in_days(Optional[int], default:None) –Specifies how many days that metrics will be retained in the workspace.
-
out_of_order_time_window_in_seconds(Optional[int], default:None) –Specifies the time window in seconds for accepting out of order samples. Out of order samples older than this window are rejected.
-
rule_query_offset_in_seconds(Optional[int], default:None) –Specifies the duration in seconds to offset rule evaluation queries into the past. This allows ingested samples to be available before rule evaluation.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request would cause an inconsistent state.
-
InternalServerException–An unexpected error occurred during the processing of the request.
-
ResourceNotFoundException–The request references a resources that doesn't exist.
-
ServiceQuotaExceededException–Completing the request would cause a service quota to be exceeded.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_amp/_services/async_amp.py
2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 | |