describe_db_log_files
async
¶
describe_db_log_files(
*,
config_overrides: Optional[AsyncRDSClientConfig] = None,
db_instance_identifier: Optional[String] = None,
filename_contains: Optional[String] = None,
file_last_written: Optional[Long] = None,
file_size: Optional[Long] = None,
filters: Optional[FilterList] = None,
max_records: Optional[IntegerOptional] = None,
marker: Optional[String] = None,
) -> DescribeDBLogFilesResponse
Returns a list of DB log files for the DB instance.
This command doesn't apply to RDS Custom.
Parameters:
-
db_instance_identifier(Optional[String], default:None) –The customer-assigned name of the DB instance that contains the log files you want to list.
Constraints:
-
Must match the identifier of an existing DBInstance.
-
-
filename_contains(Optional[String], default:None) –Filters the available log files for log file names that contain the specified string.
-
file_last_written(Optional[Long], default:None) –Filters the available log files for files written since the specified date, in POSIX timestamp format with milliseconds.
-
file_size(Optional[Long], default:None) –Filters the available log files for files larger than the specified size.
-
filters(Optional[FilterList], default:None) –This parameter isn't currently supported.
-
max_records(Optional[IntegerOptional], default:None) –The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so you can retrieve the remaining results.
-
marker(Optional[String], default:None) –The pagination token provided in the previous request. If this parameter is specified the response includes only records beyond the marker, up to MaxRecords.
Raises:
-
DBInstanceNotFoundFault–DBInstanceIdentifierdoesn't refer to an existing DB instance. -
DBInstanceNotReadyFault–An attempt to download or examine log files didn't succeed because an Aurora Serverless v2 instance was paused.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe the log files for a DB instance The following example retrieves details about the log files for the specified DB instance.
Source code in docs_src/capo_rds/_services/async_rds.py
6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 | |