DatabaseEvents
- class aws_cdk.mixins_preview.aws_glue.events.DatabaseEvents(*args: Any, **kwargs)
Bases:
object(experimental) EventBridge event patterns for Database.
- Stability:
experimental
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_glue import events as glue_events from aws_cdk.interfaces import aws_glue as interfaces_glue # database_ref: interfaces_glue.IDatabaseRef database_events = glue_events.DatabaseEvents.from_database(database_ref)
Methods
- glue_data_catalog_database_state_change_pattern(*, changed_tables=None, database_name=None, event_metadata=None, type_of_change=None)
(experimental) EventBridge event pattern for Database Glue Data Catalog Database State Change.
- Parameters:
changed_tables (
Optional[Sequence[str]]) – (experimental) changedTables property. Specify an array of string values to match this event if the actual value of changedTables is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fielddatabase_name (
Optional[Sequence[str]]) – (experimental) databaseName property. Specify an array of string values to match this event if the actual value of databaseName is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options. Default: - Filter with the Database referenceevent_metadata (
Union[AWSEventMetadataProps,Dict[str,Any],None]) – (experimental) EventBridge event metadata. Default: - -type_of_change (
Optional[Sequence[str]]) – (experimental) typeOfChange property. Specify an array of string values to match this event if the actual value of typeOfChange is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this field
- Stability:
experimental
- Return type:
- glue_data_catalog_table_state_change_pattern(*, changed_partitions=None, database_name=None, event_metadata=None, table_name=None, type_of_change=None)
(experimental) EventBridge event pattern for Database Glue Data Catalog Table State Change.
- Parameters:
changed_partitions (
Optional[Sequence[str]]) – (experimental) changedPartitions property. Specify an array of string values to match this event if the actual value of changedPartitions is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fielddatabase_name (
Optional[Sequence[str]]) – (experimental) databaseName property. Specify an array of string values to match this event if the actual value of databaseName is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options. Default: - Filter with the Database referenceevent_metadata (
Union[AWSEventMetadataProps,Dict[str,Any],None]) – (experimental) EventBridge event metadata. Default: - -table_name (
Optional[Sequence[str]]) – (experimental) tableName property. Specify an array of string values to match this event if the actual value of tableName is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldtype_of_change (
Optional[Sequence[str]]) – (experimental) typeOfChange property. Specify an array of string values to match this event if the actual value of typeOfChange is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this field
- Stability:
experimental
- Return type:
Static Methods
- classmethod from_database(database_ref)
(experimental) Create DatabaseEvents from a Database reference.
- Parameters:
database_ref (
IDatabaseRef)- Stability:
experimental
- Return type: