WorkGroupEvents

class aws_cdk.mixins_preview.aws_athena.events.WorkGroupEvents(*args: Any, **kwargs)

Bases: object

(experimental) EventBridge event patterns for WorkGroup.

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_athena import events as athena_events
from aws_cdk.interfaces import aws_athena as interfaces_athena

# work_group_ref: interfaces_athena.IWorkGroupRef

work_group_events = athena_events.WorkGroupEvents.from_work_group(work_group_ref)

Methods

athena_query_state_change_pattern(*, current_state=None, event_metadata=None, previous_state=None, query_execution_id=None, sequence_number=None, statement_type=None, version_id=None, workgroup_name=None)

(experimental) EventBridge event pattern for WorkGroup Athena Query State Change.

Parameters:
  • current_state (Optional[Sequence[str]]) – (experimental) currentState property. Specify an array of string values to match this event if the actual value of currentState 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

  • event_metadata (Union[AWSEventMetadataProps, Dict[str, Any], None]) – (experimental) EventBridge event metadata. Default: - -

  • previous_state (Optional[Sequence[str]]) – (experimental) previousState property. Specify an array of string values to match this event if the actual value of previousState 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

  • query_execution_id (Optional[Sequence[str]]) – (experimental) queryExecutionId property. Specify an array of string values to match this event if the actual value of queryExecutionId 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

  • sequence_number (Optional[Sequence[str]]) – (experimental) sequenceNumber property. Specify an array of string values to match this event if the actual value of sequenceNumber 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

  • statement_type (Optional[Sequence[str]]) – (experimental) statementType property. Specify an array of string values to match this event if the actual value of statementType 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

  • version_id (Optional[Sequence[str]]) – (experimental) versionId property. Specify an array of string values to match this event if the actual value of versionId 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

  • workgroup_name (Optional[Sequence[str]]) – (experimental) workgroupName property. Specify an array of string values to match this event if the actual value of workgroupName 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 WorkGroup reference

Stability:

experimental

Return type:

EventPattern

Static Methods

classmethod from_work_group(work_group_ref)

(experimental) Create WorkGroupEvents from a WorkGroup reference.

Parameters:

work_group_ref (IWorkGroupRef)

Stability:

experimental

Return type:

WorkGroupEvents