create_workspace
async
¶
create_workspace(
*,
config_overrides: Optional[AsyncampClientConfig] = None,
alias: Optional[WorkspaceAlias] = None,
client_token: Optional[IdempotencyToken] = None,
tags: Optional[TagMap] = None,
kms_key_arn: Optional[KmsKeyArn] = None,
) -> CreateWorkspaceResponse
Creates a Prometheus workspace. A workspace is a logical space dedicated to the storage and querying of Prometheus metrics. You can have one or more workspaces in each Region in your account.
Parameters:
-
alias(Optional[WorkspaceAlias], default:None) –An alias that you assign to this workspace to help you identify it. It does not need to be unique.
Blank spaces at the beginning or end of the alias that you specify will be trimmed from the value used.
-
client_token(Optional[IdempotencyToken], default:None) –A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
-
tags(Optional[TagMap], default:None) –The list of tag keys and values to associate with the workspace.
-
kms_key_arn(Optional[KmsKeyArn], default:None) –(optional) The ARN for a customer managed KMS key to use for encrypting data within your workspace. For more information about using your own key in your workspace, see Encryption at rest in the Amazon Managed Service for Prometheus User Guide.
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.
-
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
1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 | |