updateTargetDomain method

Future<UpdateTargetDomainOutput> updateTargetDomain({
  1. required String targetDomainId,
  2. required DomainVerificationMethod verificationMethod,
})

Updates the verification method for a target domain.

Parameter targetDomainId : The unique identifier of the target domain to update.

Parameter verificationMethod : The updated verification method for the target domain.

Implementation

Future<UpdateTargetDomainOutput> updateTargetDomain({
  required String targetDomainId,
  required DomainVerificationMethod verificationMethod,
}) async {
  final $payload = <String, dynamic>{
    'targetDomainId': targetDomainId,
    'verificationMethod': verificationMethod.value,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/UpdateTargetDomain',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateTargetDomainOutput.fromJson(response);
}