updateResolverDnssecConfig method

Future<UpdateResolverDnssecConfigResponse> updateResolverDnssecConfig({
  1. required String resourceId,
  2. required Validation validation,
})

Updates an existing DNSSEC validation configuration. If there is no existing DNSSEC validation configuration, one is created.

May throw InvalidParameterException. May throw ResourceNotFoundException. May throw InvalidRequestException. May throw InternalServiceErrorException. May throw ThrottlingException. May throw AccessDeniedException.

Parameter resourceId : The ID of the virtual private cloud (VPC) that you're updating the DNSSEC validation status for.

Parameter validation : The new value that you are specifying for DNSSEC validation for the VPC. The value can be ENABLE or DISABLE. Be aware that it can take time for a validation status change to be completed.

Implementation

Future<UpdateResolverDnssecConfigResponse> updateResolverDnssecConfig({
  required String resourceId,
  required Validation validation,
}) async {
  ArgumentError.checkNotNull(resourceId, 'resourceId');
  _s.validateStringLength(
    'resourceId',
    resourceId,
    1,
    64,
    isRequired: true,
  );
  ArgumentError.checkNotNull(validation, 'validation');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'Route53Resolver.UpdateResolverDnssecConfig'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ResourceId': resourceId,
      'Validation': validation.toValue(),
    },
  );

  return UpdateResolverDnssecConfigResponse.fromJson(jsonResponse.body);
}