enableHostedZoneDNSSEC method

Future<EnableHostedZoneDNSSECResponse> enableHostedZoneDNSSEC({
  1. required String hostedZoneId,
})

Enables DNSSEC signing in a specific hosted zone.

May throw NoSuchHostedZone. May throw InvalidArgument. May throw ConcurrentModification. May throw KeySigningKeyWithActiveStatusNotFound. May throw InvalidKMSArn. May throw HostedZonePartiallyDelegated. May throw DNSSECNotFound. May throw InvalidKeySigningKeyStatus.

Parameter hostedZoneId : A unique string used to identify a hosted zone.

Implementation

Future<EnableHostedZoneDNSSECResponse> enableHostedZoneDNSSEC({
  required String hostedZoneId,
}) async {
  ArgumentError.checkNotNull(hostedZoneId, 'hostedZoneId');
  _s.validateStringLength(
    'hostedZoneId',
    hostedZoneId,
    0,
    32,
    isRequired: true,
  );
  final $result = await _protocol.send(
    method: 'POST',
    requestUri:
        '/2013-04-01/hostedzone/${Uri.encodeComponent(hostedZoneId)}/enable-dnssec',
    exceptionFnMap: _exceptionFns,
  );
  return EnableHostedZoneDNSSECResponse.fromXml($result.body);
}