associateApprovedOrigin method
This API is in preview release for Amazon Connect and is subject to change.
Associates an approved origin to an Amazon Connect instance.
May throw ResourceNotFoundException. May throw ResourceConflictException. May throw InternalServiceException. May throw InvalidRequestException. May throw InvalidParameterException. May throw ServiceQuotaExceededException. May throw ThrottlingException.
Parameter instanceId
:
The identifier of the Amazon Connect instance.
Parameter origin
:
The domain to add to your allow list.
Implementation
Future<void> associateApprovedOrigin({
required String instanceId,
required String origin,
}) async {
ArgumentError.checkNotNull(instanceId, 'instanceId');
_s.validateStringLength(
'instanceId',
instanceId,
1,
100,
isRequired: true,
);
ArgumentError.checkNotNull(origin, 'origin');
_s.validateStringLength(
'origin',
origin,
0,
267,
isRequired: true,
);
final $payload = <String, dynamic>{
'Origin': origin,
};
await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/instance/${Uri.encodeComponent(instanceId)}/approved-origin',
exceptionFnMap: _exceptionFns,
);
}