createInboundExternalLink method
Creates an inbound external link.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
May throw ValidationException.
Parameter gatewayId :
The unique identifier of the gateway.
Parameter logSettings :
Settings for the application logs.
Parameter attributes :
Attributes of the link.
Parameter clientToken :
The unique client token.
Parameter tags :
A map of the key-value pairs of the tag or tags to assign to the resource.
Implementation
Future<CreateInboundExternalLinkResponse> createInboundExternalLink({
required String gatewayId,
required LinkLogSettings logSettings,
LinkAttributes? attributes,
String? clientToken,
Map<String, String>? tags,
}) async {
final $payload = <String, dynamic>{
'logSettings': logSettings,
if (attributes != null) 'attributes': attributes,
'clientToken': clientToken ?? _s.generateIdempotencyToken(),
if (tags != null) 'tags': tags,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/responder-gateway/${Uri.encodeComponent(gatewayId)}/inbound-external-link',
exceptionFnMap: _exceptionFns,
);
return CreateInboundExternalLinkResponse.fromJson(response);
}