UpdateContactData

typed block

Sets a collection of connect defined attributes on specified contact. With this type of operation, either all attributes are set or none are set.

Factories

UpdateContactData

UpdateContactData() -> UpdateContactDataHandle

Construct a fresh UpdateContactData block with an auto-generated id.

Use this when authoring from scratch, the runtime picks a UUID automatically.

UpdateContactData

UpdateContactData(id: String) -> UpdateContactDataHandle

Construct a UpdateContactData block with an operator-supplied id.

ParameterTypeRequiredDescription
idStringyesWire identifier, typically a Connect UUID restored by decompile so round-trips stay byte-stable.

Methods

parameters

parameters(value?: String) -> UpdateContactDataHandle

Set the Parameters parameter.

ParameterTypeRequiredDescription
valueStringno

name

name(value?: String) -> UpdateContactDataHandle

Set the Name parameter. The name of the contact. It is a string. May be set statically or dynamically.

ParameterTypeRequiredDescription
valueStringnoThe name of the contact. It is a string. May be set statically or dynamically.

description

description(value?: String) -> UpdateContactDataHandle

Set the Description parameter. The description of the contact. It is a string.

ParameterTypeRequiredDescription
valueStringnoThe description of the contact. It is a string.

language_code

language_code(value?: String) -> UpdateContactDataHandle

Set the LanguageCode parameter. The language to use for current contact.

ParameterTypeRequiredDescription
valueStringnoThe language to use for current contact.

customer_id

customer_id(value?: String) -> UpdateContactDataHandle

Set the CustomerId parameter. The customer id associated with the contact.

ParameterTypeRequiredDescription
valueStringnoThe customer id associated with the contact.

references

references(value?: Map<String, Map (Reference)>) -> UpdateContactDataHandle

Set the References parameter. References to set on the contact, keyed by reference name. Authored as .references(#{ Ticket: #{ Value: "…", Type: "STRING" } }).

ParameterTypeRequiredDescription
valueMap<String, Map (Reference)>noReferences to set on the contact, keyed by reference name. Authored as .references(#{ Ticket: #{ Value: "…", Type: "STRING" } }).

type

type(value?: String) -> UpdateContactDataHandle

Set the Type parameter. "Value" Both the key and value may be defined statically or dynamically.

ParameterTypeRequiredDescription
valueStringno"Value" Both the key and value may be defined statically or dynamically.

is_voice_id_streaming_enabled

is_voice_id_streaming_enabled(value?: bool) -> UpdateContactDataHandle

Set the IsVoiceIdStreamingEnabled parameter. Enable to start streaming audio from customer channel to Voice ID. It is a string. "TRUE" and "FALSE" are the only valid values.

ParameterTypeRequiredDescription
valueboolnoEnable to start streaming audio from customer channel to Voice ID. It is a string. "TRUE" and "FALSE" are the only valid values.

is_voice_authentication_enabled

is_voice_authentication_enabled(value?: bool) -> UpdateContactDataHandle

Set the IsVoiceAuthenticationEnabled parameter. Enable authentication by comparing voiceprint of the caller to the enrolled voiceprint of the claimed identity.It is a string. "TRUE" and "FALSE" are the only valid values.

ParameterTypeRequiredDescription
valueboolnoEnable authentication by comparing voiceprint of the caller to the enrolled voiceprint of the claimed identity.It is a string. "TRUE" and "FALSE" are the only valid values.

is_fraud_detection_enabled

is_fraud_detection_enabled(value?: bool) -> UpdateContactDataHandle

Set the IsFraudDetectionEnabled parameter. Enable detection for impersonation attempts and presence of known fraudsters. It is a string. "TRUE" and "FALSE" are the only valid values.

ParameterTypeRequiredDescription
valueboolnoEnable detection for impersonation attempts and presence of known fraudsters. It is a string. "TRUE" and "FALSE" are the only valid values.

voice_authentication_threshold

voice_authentication_threshold(value?: String) -> UpdateContactDataHandle

Set the VoiceAuthenticationThreshold parameter. Threshold to validate against confidence score of a voice match. It is a string. Value must be between 0 and 100.

ParameterTypeRequiredDescription
valueStringnoThreshold to validate against confidence score of a voice match. It is a string. Value must be between 0 and 100.

voice_authentication_response_time

voice_authentication_response_time(value?: String) -> UpdateContactDataHandle

Set the VoiceAuthenticationResponseTime parameter. Define required minimum caller speech seconds for voice authentication. It is a string. Value must be between 5 and 10.

ParameterTypeRequiredDescription
valueStringnoDefine required minimum caller speech seconds for voice authentication. It is a string. Value must be between 5 and 10.

fraud_detection_threshold

fraud_detection_threshold(value?: String) -> UpdateContactDataHandle

Set the FraudDetectionThreshold parameter. The threshold you set for fraud detection is used to measure risk. Scores higher than the threshold are reported as higher risk. Scores lower than the threshold are reported as lower risk. Raising the threshold lowers false positive rates (makes result more certain), but raises false negative rates. It is a string. Value must be between 0 and 100.

ParameterTypeRequiredDescription
valueStringnoThe threshold you set for fraud detection is used to measure risk. Scores higher than the threshold are reported as higher risk. Scores lower than the threshold are reported as lower risk. Raising the threshold lowers false positive rates (makes result more certain), but raises false negative rates. It is a string. Value must be between 0 and 100.

watchlist_id

watchlist_id(value?: String) -> UpdateContactDataHandle

Set the WatchlistId parameter. Identifier of watchlist to use when evaluating the voice session. It is a string. Value must be between 0 and 100.

ParameterTypeRequiredDescription
valueStringnoIdentifier of watchlist to use when evaluating the voice session. It is a string. Value must be between 0 and 100.

wisdom_session_arn

wisdom_session_arn(value?: String) -> UpdateContactDataHandle

Set the WisdomSessionArn parameter. A session ARN provided by Amazon Connect Wisdom for agent assistance. It is a string.

ParameterTypeRequiredDescription
valueStringnoA session ARN provided by Amazon Connect Wisdom for agent assistance. It is a string.

target_contact

target_contact(value: TargetContact) -> UpdateContactDataHandle

Set the TargetContact parameter. Target contact on which given attributes should be set: "Current" or "Related". Measured 2026-10-14: Connect accepts the two exactly as spelled and the empty string, and refuses Previous, another casing and a JSONPath.

ParameterTypeRequiredDescription
valueTargetContactyesTarget contact on which given attributes should be set: "Current" or "Related". Measured 2026-10-14: Connect accepts the two exactly as spelled and the empty string, and refuses Previous, another casing and a JSONPath.

segment_attributes

segment_attributes(value?: Map<String, SegmentAttributeValue (SegmentAttributeString | SegmentAttributeInteger | SegmentAttributeMap)>) -> UpdateContactDataHandle

Set the SegmentAttributes parameter. Segment attributes to set, keyed by attribute name. Authored as .segment_attributes(#{ "connect:Subtype": #{ ValueString: "connect:Guide" } }); each entry holds exactly one of ValueString, ValueInteger or ValueMap.

ParameterTypeRequiredDescription
valueMap<String, SegmentAttributeValue (SegmentAttributeString | SegmentAttributeInteger | SegmentAttributeMap)>noSegment attributes to set, keyed by attribute name. Authored as .segment_attributes(#{ "connect:Subtype": #{ ValueString: "connect:Guide" } }); each entry holds exactly one of ValueString, ValueInteger or ValueMap.

next

next(target: Handle) -> UpdateContactDataHandle

Wire the success-path transition. Substitutes the target's auto-generated UUID into the wire Transitions.NextAction slot.

ParameterTypeRequiredDescription
targetHandleyesThe block to route to once this block completes successfully.

on_no_matching

on_no_matching(target: Handle) -> UpdateContactDataHandle

Wire an error transition for NoMatchingError: if no other Error matches.

ParameterTypeRequiredDescription
targetHandleyesBlock to route to on NoMatchingError. if no other Error matches.

set_id

set_id(id: String) -> UpdateContactDataHandle

Override the auto-generated identifier with a specific wire id.

ParameterTypeRequiredDescription
idStringyesWire identifier override. Decompile threads this through to round-trip Connect-side UUIDs.

meta_position

meta_position(x: i64, y: i64) -> UpdateContactDataHandle

Set the block's canvas position. Mostly auto-emitted by decompile; authored scripts call Flow.auto_layout() instead and let the layout pass fill positions in.

ParameterTypeRequiredDescription
xi64yesCanvas X coordinate.
yi64yesCanvas Y coordinate.

set_meta

set_meta(key: String, value: Dynamic) -> UpdateContactDataHandle

Single-key escape hatch, set one ActionMetadata key by name when the typed meta_* setters don't cover it.

ParameterTypeRequiredDescription
keyStringyesWire key name (under Metadata.ActionMetadata[<id>]).
valueDynamicyesAny JSON-serializable Rhai value.

overwrite_meta

overwrite_meta(value: Map) -> UpdateContactDataHandle

Full-replace escape hatch, overwrite the entire ActionMetadata blob.

ParameterTypeRequiredDescription
valueMapyesReplacement map for the entire ActionMetadata sub-object.

set_meta_param

set_meta_param(param: String, flag: String, value: Dynamic) -> UpdateContactDataHandle

Set a single per-parameter ActionMetadata flag.

ParameterTypeRequiredDescription
paramStringyesParameter name (e.g. "Text").
flagStringyesFlag name ("useDynamic", "MFLAG_*", etc.).
valueDynamicyesFlag value.

overwrite_meta_param

overwrite_meta_param(param: String, value: Map) -> UpdateContactDataHandle

Replace the entire flag map for one parameter.

ParameterTypeRequiredDescription
paramStringyesParameter name.
valueMapyesReplacement flag map for the parameter.

overwrite_parameters

overwrite_parameters(value: Map) -> UpdateContactDataHandle

Wire-shape escape hatch, overwrite the entire Parameters blob.

ParameterTypeRequiredDescription
valueMapyesReplacement parameter map for the block.

raw_transitions

raw_transitions(value: Map) -> UpdateContactDataHandle

Wire-shape escape hatch for non-canonical transition objects.

ParameterTypeRequiredDescription
valueMapyesReplacement transitions map (raw JSON shape).