disassociateWebsiteAuthorizationProvider method

Future<void> disassociateWebsiteAuthorizationProvider({
  1. required String authorizationProviderId,
  2. required String fleetArn,
})

Disassociates a website authorization provider from a specified fleet. After the disassociation, users can't load any associated websites that require this authorization provider.

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

Parameter authorizationProviderId : A unique identifier for the authorization provider.

Parameter fleetArn : The ARN of the fleet.

Implementation

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