WorkspaceEvents

class aws_cdk.mixins_preview.aws_workspaces.events.WorkspaceEvents(*args: Any, **kwargs)

Bases: object

(experimental) EventBridge event patterns for Workspace.

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_workspaces import events as workspaces_events
from aws_cdk.interfaces import aws_workspaces as interfaces_workspaces

# workspace_ref: interfaces_workspaces.IWorkspaceRef

workspace_events = workspaces_events.WorkspaceEvents.from_workspace(workspace_ref)

Methods

work_spaces_access_pattern(*, action_type=None, client_ip_address=None, client_platform=None, directory_id=None, event_metadata=None, login_time=None, workspace_id=None, workspaces_client_product_name=None)

(experimental) EventBridge event pattern for Workspace WorkSpaces Access.

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

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

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

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

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

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

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

(experimental) Create WorkspaceEvents from a Workspace reference.

Parameters:

workspace_ref (IWorkspaceRef)

Stability:

experimental

Return type:

WorkspaceEvents