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_aws_glue

# database_ref: interfaces_aws_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

GlueDataCatalogDatabaseStateChange

class DatabaseEvents.GlueDataCatalogDatabaseStateChange

Bases: object

(experimental) aws.glue@GlueDataCatalogDatabaseStateChange event types 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

glue_data_catalog_database_state_change = glue_events.DatabaseEvents.GlueDataCatalogDatabaseStateChange()
Stability:

experimental

GlueDataCatalogDatabaseStateChangeProps

class DatabaseEvents.GlueDataCatalogDatabaseStateChange.GlueDataCatalogDatabaseStateChangeProps(*, changed_tables=None, database_name=None, event_metadata=None, type_of_change=None)

Bases: object

(experimental) Props type for Database aws.glue@GlueDataCatalogDatabaseStateChange event.

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

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

glue_data_catalog_database_state_change_props = glue_events.DatabaseEvents.GlueDataCatalogDatabaseStateChange.GlueDataCatalogDatabaseStateChangeProps(
    changed_tables=["changedTables"],
    database_name=["databaseName"],
    event_metadata=AWSEventMetadataProps(
        region=["region"],
        resources=["resources"],
        version=["version"]
    ),
    type_of_change=["typeOfChange"]
)

Attributes

changed_tables

(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

Stability:

experimental

database_name

(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

Stability:

experimental

event_metadata

(experimental) EventBridge event metadata.

Default:

Stability:

experimental

type_of_change

(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

GlueDataCatalogTableStateChange

class DatabaseEvents.GlueDataCatalogTableStateChange

Bases: object

(experimental) aws.glue@GlueDataCatalogTableStateChange event types 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

glue_data_catalog_table_state_change = glue_events.DatabaseEvents.GlueDataCatalogTableStateChange()
Stability:

experimental

GlueDataCatalogTableStateChangeProps

class DatabaseEvents.GlueDataCatalogTableStateChange.GlueDataCatalogTableStateChangeProps(*, changed_partitions=None, database_name=None, event_metadata=None, table_name=None, type_of_change=None)

Bases: object

(experimental) Props type for Database aws.glue@GlueDataCatalogTableStateChange event.

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

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

glue_data_catalog_table_state_change_props = glue_events.DatabaseEvents.GlueDataCatalogTableStateChange.GlueDataCatalogTableStateChangeProps(
    changed_partitions=["changedPartitions"],
    database_name=["databaseName"],
    event_metadata=AWSEventMetadataProps(
        region=["region"],
        resources=["resources"],
        version=["version"]
    ),
    table_name=["tableName"],
    type_of_change=["typeOfChange"]
)

Attributes

changed_partitions

(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

Stability:

experimental

database_name

(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

Stability:

experimental

event_metadata

(experimental) EventBridge event metadata.

Default:

Stability:

experimental

table_name

(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

Stability:

experimental

type_of_change

(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