deleteManagedLoginBranding method

Future<void> deleteManagedLoginBranding({
  1. required String managedLoginBrandingId,
  2. required String userPoolId,
})

Deletes a managed login branding style. When you delete a style, you delete the branding association for an app client. When an app client doesn't have a style assigned, your managed login pages for that app client are nonfunctional until you create a new style or switch the domain branding version.

Learn more

May throw ConcurrentModificationException. May throw InternalErrorException. May throw InvalidParameterException. May throw NotAuthorizedException. May throw OperationNotEnabledException. May throw ResourceNotFoundException. May throw TooManyRequestsException.

Parameter managedLoginBrandingId : The ID of the managed login branding style that you want to delete.

Parameter userPoolId : The ID of the user pool that contains the managed login branding style that you want to delete.

Implementation

Future<void> deleteManagedLoginBranding({
  required String managedLoginBrandingId,
  required String userPoolId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target':
        'AWSCognitoIdentityProviderService.DeleteManagedLoginBranding'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ManagedLoginBrandingId': managedLoginBrandingId,
      'UserPoolId': userPoolId,
    },
  );
}