activateKeySigningKey method

Future<ActivateKeySigningKeyResponse> activateKeySigningKey({
  1. required String hostedZoneId,
  2. required String name,
})

Activates a key signing key (KSK) so that it can be used for signing by DNSSEC. This operation changes the KSK status to ACTIVE.

May throw ConcurrentModification. May throw NoSuchKeySigningKey. May throw InvalidKeySigningKeyStatus. May throw InvalidSigningStatus. May throw InvalidKMSArn.

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

Parameter name : An alphanumeric string used to identify a key signing key (KSK).

Implementation

Future<ActivateKeySigningKeyResponse> activateKeySigningKey({
  required String hostedZoneId,
  required String name,
}) async {
  ArgumentError.checkNotNull(hostedZoneId, 'hostedZoneId');
  _s.validateStringLength(
    'hostedZoneId',
    hostedZoneId,
    0,
    32,
    isRequired: true,
  );
  ArgumentError.checkNotNull(name, 'name');
  _s.validateStringLength(
    'name',
    name,
    3,
    128,
    isRequired: true,
  );
  final $result = await _protocol.send(
    method: 'POST',
    requestUri:
        '/2013-04-01/keysigningkey/${Uri.encodeComponent(hostedZoneId)}/${Uri.encodeComponent(name)}/activate',
    exceptionFnMap: _exceptionFns,
  );
  return ActivateKeySigningKeyResponse.fromXml($result.body);
}