deleteResourcePermissionStatement method
Remove a permission statement from the account's SignIn resource-based policy
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw TooManyRequestsError.
May throw ValidationException.
Parameter statementId :
Unique identifier of the permission statement to delete
Parameter clientToken :
Idempotency token for the request
Implementation
Future<void> deleteResourcePermissionStatement({
required String statementId,
String? clientToken,
}) async {
final $payload = <String, dynamic>{
'statementId': statementId,
'clientToken': clientToken ?? _s.generateIdempotencyToken(),
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/delete-resource-permission-statement',
endpoint: _resolveEndpoint(
isControlPlane: true,
),
exceptionFnMap: _exceptionFns,
);
}