updateInstanceAttribute method
Future<void>
updateInstanceAttribute({
- required InstanceAttributeType attributeType,
- required String instanceId,
- required String value,
This API is in preview release for Amazon Connect and is subject to change.
Updates the value for the specified attribute type.
May throw ResourceNotFoundException. May throw InternalServiceException. May throw InvalidRequestException. May throw InvalidParameterException. May throw ThrottlingException.
Parameter attributeType
:
The type of attribute.
Parameter instanceId
:
The identifier of the Amazon Connect instance.
Parameter value
:
The value for the attribute. Maximum character limit is 100.
Implementation
Future<void> updateInstanceAttribute({
required InstanceAttributeType attributeType,
required String instanceId,
required String value,
}) async {
ArgumentError.checkNotNull(attributeType, 'attributeType');
ArgumentError.checkNotNull(instanceId, 'instanceId');
_s.validateStringLength(
'instanceId',
instanceId,
1,
100,
isRequired: true,
);
ArgumentError.checkNotNull(value, 'value');
_s.validateStringLength(
'value',
value,
1,
100,
isRequired: true,
);
final $payload = <String, dynamic>{
'Value': value,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/instance/${Uri.encodeComponent(instanceId)}/attribute/${Uri.encodeComponent(attributeType.toValue())}',
exceptionFnMap: _exceptionFns,
);
}