// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import 'dart:async'; import 'package:aws_common/aws_common.dart'; import 'package:json_annotation/json_annotation.dart'; part 'credential_scope.g.dart'; /// {@template smithy_aws.credential_scope} /// Signature version 4 credential scope information /// {@endtemplate} @JsonSerializable() class CredentialScope with AWSSerializable> { /// {@macro smithy_aws.credential_scope} const CredentialScope({ this.region, this.service, }); factory CredentialScope.fromJson(Map json) => _$CredentialScopeFromJson(json); /// Signing region final String? region; /// Signing service name final String? service; /// Zone value overrides for use in [runZoned]. Map get zoneValues => { #sigV4Region: region, #sigV4Service: service, }; @override Map toJson() => _$CredentialScopeToJson(this); }