getIntegration method
Returns an integration for a domain.
May throw AccessDeniedException.
May throw BadRequestException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter domainName :
The unique name of the domain.
Parameter uri :
The URI of the S3 bucket or any other type of data source.
Implementation
Future<GetIntegrationResponse> getIntegration({
required String domainName,
required String uri,
}) async {
final $payload = <String, dynamic>{
'Uri': uri,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/domains/${Uri.encodeComponent(domainName)}/integrations',
exceptionFnMap: _exceptionFns,
);
return GetIntegrationResponse.fromJson(response);
}