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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • database_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 the aws_events.Match for more advanced matching options. Default: - Filter with the Database reference

  • event_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

Stability:

experimental

Return type:

EventPattern

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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • database_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 the aws_events.Match for more advanced matching options. Default: - Filter with the Database reference

  • event_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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • 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 the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

Stability:

experimental

Return type:

EventPattern

Static Methods

classmethod from_database(database_ref)

(experimental) Create DatabaseEvents from a Database reference.

Parameters:

database_ref (IDatabaseRef)

Stability:

experimental

Return type:

DatabaseEvents