describe_events
async
¶
describe_events(
*,
config_overrides: Optional[AsyncDocDBClientConfig] = None,
source_identifier: Optional[String] = None,
source_type: Optional[SourceType] = None,
start_time: Optional[TStamp] = None,
end_time: Optional[TStamp] = None,
duration: Optional[IntegerOptional] = None,
event_categories: Optional[EventCategoriesList] = None,
filters: Optional[FilterList] = None,
max_records: Optional[IntegerOptional] = None,
marker: Optional[String] = None,
) -> EventsMessage
Returns events related to instances, security groups, snapshots, and DB parameter groups for the past 14 days. You can obtain events specific to a particular DB instance, security group, snapshot, or parameter group by providing the name as a parameter. By default, the events of the past hour are returned.
Parameters:
-
source_identifier(Optional[String], default:None) –The identifier of the event source for which events are returned. If not specified, then all sources are included in the response.
Constraints:
-
If
SourceIdentifieris provided,SourceTypemust also be provided. -
If the source type is
DBInstance, aDBInstanceIdentifiermust be provided. -
If the source type is
DBSecurityGroup, aDBSecurityGroupNamemust be provided. -
If the source type is
DBParameterGroup, aDBParameterGroupNamemust be provided. -
If the source type is
DBSnapshot, aDBSnapshotIdentifiermust be provided. -
Cannot end with a hyphen or contain two consecutive hyphens.
-
-
source_type(Optional[SourceType], default:None) –The event source to retrieve events for. If no value is specified, all events are returned.
-
start_time(Optional[TStamp], default:None) –The beginning of the time interval to retrieve events for, specified in ISO 8601 format.
Example: 2009-07-08T18:00Z
-
end_time(Optional[TStamp], default:None) –The end of the time interval for which to retrieve events, specified in ISO 8601 format.
Example: 2009-07-08T18:00Z
-
duration(Optional[IntegerOptional], default:None) –The number of minutes to retrieve events for.
Default: 60
-
event_categories(Optional[EventCategoriesList], default:None) –A list of event categories that trigger notifications for an event notification subscription.
-
filters(Optional[FilterList], default:None) –This parameter is not 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
MaxRecordsvalue, a pagination token (marker) is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 100.
-
marker(Optional[String], default:None) –An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_docdb/_services/async_doc_db.py
2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 | |