update_lookup
¶
update_lookup(
identifier: LookupIdentifier,
*,
config_overrides: Optional[CloudWatchOmniClientConfig] = None,
description: Optional[LookupDescription] = None,
body: Optional[LookupBody] = None,
query_id: Optional[LookupQueryId] = None,
kms_key_arn: Optional[KmsKeyArn] = None,
) -> UpdateLookupResponse
Replaces a lookup table's content, its description, or both. Only the fields you provide are changed. Replacing the content replaces every row: there is no partial row update.
Parameters:
-
identifier(LookupIdentifier) –The id of the lookup table to update.
-
description(Optional[LookupDescription], default:None) –The new description of the lookup table. Omit to leave the description unchanged, or supply an empty string to remove it, leaving the table with no description.
-
body(Optional[LookupBody], default:None) –The replacement CSV content of the lookup table. Omit to leave the content unchanged. At most one of body and queryId may be specified.
-
query_id(Optional[LookupQueryId], default:None) –The identifier of a query whose results become the lookup table's content.
-
kms_key_arn(Optional[KmsKeyArn], default:None) –The ARN of a customer managed KMS key used to encrypt the lookup table's content.
Raises:
-
AccessDeniedException–The caller is not authorized to perform this action.
-
ConflictException–The operation could not be completed because of a conflict with the current state of the resource.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ResourceNotFoundException–The specified resource does not exist.
-
ThrottlingException–The request was throttled due to exceeding the allowed request rate.
-
ValidationException–A parameter is specified incorrectly.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Replace a lookup table's content The following example replaces every row of a lookup table. The omitted description is left unchanged. Call GetLookup to read the table's metadata after the update. Payloads are shown as JSON; on the wire they are CBOR-encoded.
>>> client.update_lookup(identifier='3k7f2m9qx4pd8w1n6v0b5j2tz', body='service,team\ncheckout,payments\nsearch,discovery\ncatalog,retail\n')
Source code in docs_src/capo_cloudwatchomni/_services/cloud_watch_omni.py
5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 | |