validateE911Address method

Future<ValidateE911AddressResponse> validateE911Address({
  1. required String awsAccountId,
  2. required String city,
  3. required String country,
  4. required String postalCode,
  5. required String state,
  6. required String streetInfo,
  7. required String streetNumber,
})

Validates an address to be used for 911 calls made with Amazon Chime SDK Voice Connectors. You can use validated addresses in a Presence Information Data Format Location Object file that you include in SIP requests. That helps ensure that addresses are routed to the appropriate Public Safety Answering Point.

May throw AccessDeniedException. May throw BadRequestException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceFailureException. May throw ServiceUnavailableException. May throw ThrottledClientException. May throw UnauthorizedClientException.

Parameter awsAccountId : The AWS account ID.

Parameter city : The address city, such as Portland.

Parameter country : The country in the address being validated as two-letter country code in ISO 3166-1 alpha-2 format, such as US. For more information, see ISO 3166-1 alpha-2 in Wikipedia.

Parameter postalCode : The dress postal code, such 04352.

Parameter state : The address state, such as ME.

Parameter streetInfo : The address street information, such as 8th Avenue.

Parameter streetNumber : The address street number, such as 200 or 2121.

Implementation

Future<ValidateE911AddressResponse> validateE911Address({
  required String awsAccountId,
  required String city,
  required String country,
  required String postalCode,
  required String state,
  required String streetInfo,
  required String streetNumber,
}) async {
  final $payload = <String, dynamic>{
    'AwsAccountId': awsAccountId,
    'City': city,
    'Country': country,
    'PostalCode': postalCode,
    'State': state,
    'StreetInfo': streetInfo,
    'StreetNumber': streetNumber,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/emergency-calling/address',
    exceptionFnMap: _exceptionFns,
  );
  return ValidateE911AddressResponse.fromJson(response);
}