disassociateWebsiteCertificateAuthority method

Future<void> disassociateWebsiteCertificateAuthority({
  1. required String fleetArn,
  2. required String websiteCaId,
})

Removes a certificate authority (CA).

May throw UnauthorizedException. May throw InternalServerErrorException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw TooManyRequestsException.

Parameter fleetArn : The ARN of the fleet.

Parameter websiteCaId : A unique identifier for the CA.

Implementation

Future<void> disassociateWebsiteCertificateAuthority({
  required String fleetArn,
  required String websiteCaId,
}) async {
  ArgumentError.checkNotNull(fleetArn, 'fleetArn');
  _s.validateStringLength(
    'fleetArn',
    fleetArn,
    20,
    2048,
    isRequired: true,
  );
  ArgumentError.checkNotNull(websiteCaId, 'websiteCaId');
  _s.validateStringLength(
    'websiteCaId',
    websiteCaId,
    1,
    256,
    isRequired: true,
  );
  final $payload = <String, dynamic>{
    'FleetArn': fleetArn,
    'WebsiteCaId': websiteCaId,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/disassociateWebsiteCertificateAuthority',
    exceptionFnMap: _exceptionFns,
  );
}