updateContactFlowModuleAlias method

Future<void> updateContactFlowModuleAlias({
  1. required String aliasId,
  2. required String contactFlowModuleId,
  3. required String instanceId,
  4. int? contactFlowModuleVersion,
  5. String? description,
  6. String? name,
})

Updates a specific Aliases metadata, including the version it’s tied to, it’s name, and description.

May throw AccessDeniedException. May throw ConditionalOperationFailedException. May throw DuplicateResourceException. May throw InternalServiceException. May throw InvalidParameterException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter aliasId : The identifier of the alias.

Parameter contactFlowModuleId : The identifier of the flow module.

Parameter instanceId : The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

Parameter contactFlowModuleVersion : The version of the flow module.

Parameter description : The description of the alias.

Parameter name : The name of the alias.

Implementation

Future<void> updateContactFlowModuleAlias({
  required String aliasId,
  required String contactFlowModuleId,
  required String instanceId,
  int? contactFlowModuleVersion,
  String? description,
  String? name,
}) async {
  _s.validateNumRange(
    'contactFlowModuleVersion',
    contactFlowModuleVersion,
    1,
    1152921504606846976,
  );
  final $payload = <String, dynamic>{
    if (contactFlowModuleVersion != null)
      'ContactFlowModuleVersion': contactFlowModuleVersion,
    if (description != null) 'Description': description,
    if (name != null) 'Name': name,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri:
        '/contact-flow-modules/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(contactFlowModuleId)}/alias/${Uri.encodeComponent(aliasId)}',
    exceptionFnMap: _exceptionFns,
  );
}