updateResolverConfig method
- required AutodefinedReverseFlag autodefinedReverseFlag,
- required String resourceId,
Updates the behavior configuration of Route 53 Resolver behavior for a single VPC from Amazon Virtual Private Cloud.
May throw AccessDeniedException.
May throw InternalServiceErrorException.
May throw InvalidParameterException.
May throw InvalidRequestException.
May throw LimitExceededException.
May throw ResourceNotFoundException.
May throw ResourceUnavailableException.
May throw ThrottlingException.
May throw ValidationException.
Parameter autodefinedReverseFlag :
Indicates whether or not the Resolver will create autodefined rules for
reverse DNS lookups. This is enabled by default. Disabling this option
will also affect EC2-Classic instances using ClassicLink. For more
information, see ClassicLink
in the Amazon EC2 guide.
Parameter resourceId :
The ID of the Amazon Virtual Private Cloud VPC or a Route 53 Profile that
you're configuring Resolver for.
Implementation
Future<UpdateResolverConfigResponse> updateResolverConfig({
required AutodefinedReverseFlag autodefinedReverseFlag,
required String resourceId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Route53Resolver.UpdateResolverConfig'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'AutodefinedReverseFlag': autodefinedReverseFlag.value,
'ResourceId': resourceId,
},
);
return UpdateResolverConfigResponse.fromJson(jsonResponse.body);
}