def update_access_key(UserName=None, AccessKeyId=None, Status=None):
    """
    Changes the status of the specified access key from Active to Inactive, or vice versa. This action can be used to disable a user's key as part of a key rotation work flow.
    If the UserName field is not specified, the UserName is determined implicitly based on the AWS access key ID used to sign the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.
    For information about rotating keys, see Managing Keys and Certificates in the IAM User Guide .
    See also: AWS API Documentation
    
    Examples
    The following command deactivates the specified access key (access key ID and secret access key) for the IAM user named Bob.
    Expected Output:
    
    :example: response = client.update_access_key(
        UserName='string',
        AccessKeyId='string',
        Status='Active'|'Inactive'
    )
    
    
    :type UserName: string
    :param UserName: The name of the user whose key you want to update.
            This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
            

    :type AccessKeyId: string
    :param AccessKeyId: [REQUIRED]
            The access key ID of the secret access key you want to update.
            This parameter allows (per its regex pattern ) a string of characters that can consist of any upper or lowercased letter or digit.
            

    :type Status: string
    :param Status: [REQUIRED]
            The status you want to assign to the secret access key. Active means the key can be used for API calls to AWS, while Inactive means the key cannot be used.
            

    :return: response = client.update_access_key(
        AccessKeyId='AKIAIOSFODNN7EXAMPLE',
        Status='Inactive',
        UserName='Bob',
    )
    
    print(response)
    
    
    """
    pass
