createContactFlowModuleAlias method
Creates a named alias that points to a specific version of a contact flow module.
May throw AccessDeniedException.
May throw DuplicateResourceException.
May throw InternalServiceException.
May throw InvalidParameterException.
May throw InvalidRequestException.
May throw LimitExceededException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter aliasName :
The name of the alias.
Parameter contactFlowModuleId :
The identifier of the flow module.
Parameter contactFlowModuleVersion :
The version 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 description :
The description of the alias.
Implementation
Future<CreateContactFlowModuleAliasResponse> createContactFlowModuleAlias({
required String aliasName,
required String contactFlowModuleId,
required int contactFlowModuleVersion,
required String instanceId,
String? description,
}) async {
_s.validateNumRange(
'contactFlowModuleVersion',
contactFlowModuleVersion,
1,
1152921504606846976,
isRequired: true,
);
final $payload = <String, dynamic>{
'AliasName': aliasName,
'ContactFlowModuleVersion': contactFlowModuleVersion,
if (description != null) 'Description': description,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/contact-flow-modules/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(contactFlowModuleId)}/alias',
exceptionFnMap: _exceptionFns,
);
return CreateContactFlowModuleAliasResponse.fromJson(response);
}