AwsSigV4Client constructor

AwsSigV4Client(
  1. String? accessKey,
  2. String? secretKey,
  3. String endpoint, {
  4. String? serviceName = 'execute-api',
  5. String? region = 'us-east-1',
  6. String? sessionToken,
  7. String? defaultContentType = _default_content_type,
  8. String? defaultAcceptType = _default_accept_type,
})

Implementation

AwsSigV4Client(this.accessKey, this.secretKey, String endpoint,
    {this.serviceName = 'execute-api',
    this.region = 'us-east-1',
    this.sessionToken,
    this.defaultContentType = _default_content_type,
    this.defaultAcceptType = _default_accept_type}) {
  final parsedUri = Uri.parse(endpoint);
  this.endpoint = '${parsedUri.scheme}://${parsedUri.host}';
  pathComponent = parsedUri.path;
}