delete_role_association
async
¶
delete_role_association(
target_arn: AmazonResourceName,
role_type: RoleTypeName,
principal: PrincipalInput,
*,
config_overrides: Optional[AsyncRedshiftServerlessClientConfig] = None,
) -> DeleteRoleAssociationResponse
Removes the association, if it exists, between an IAM principal and an Amazon Redshift system-defined role on Amazon Redshift Serverless with express configuration. This operation is idempotent. If the association doesn't exist, the request still succeeds.
Parameters:
-
target_arn(AmazonResourceName) –The Amazon Resource Name (ARN) of the default endpoint. Only
express-defaultis supported, and it must be in the same Amazon Web Services account as the caller. The ARN format isarn:aws-partition:redshift-serverless:region:account-id:workgroup/express/express-default, for examplearn:aws:redshift-serverless:us-east-1:111122223333:workgroup/express/express-default. -
role_type(RoleTypeName) –The case-sensitive system-defined role to remove the principal from. Valid values are
sys:superuser,sys:operator,sys:dba,sys:secadmin, andsys:monitor. -
principal(PrincipalInput) –The IAM role or IAM user to remove from the role type. Specify the ARN used to create the association. The IAM principal doesn't need to exist when you delete the association.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The resource could not be found.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input failed to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.