update_lookup
async
¶
update_lookup(
identifier: LookupIdentifier,
*,
config_overrides: Optional[AsyncCloudWatchOmniClientConfig] = 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.
>>> await client.update_lookup(identifier='3k7f2m9qx4pd8w1n6v0b5j2tz', body='service,team\ncheckout,payments\nsearch,discovery\ncatalog,retail\n')
Source code in docs_src/capo_cloudwatchomni/_services/async_cloud_watch_omni.py
6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 | |