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 = _defaultContentType,
  8. String defaultAcceptType = _defaultAcceptType,
})

Implementation

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