DetectorEvents

class aws_cdk.mixins_preview.aws_guardduty.events.DetectorEvents(*args: Any, **kwargs)

Bases: object

(experimental) EventBridge event patterns for Detector.

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_guardduty import events as guardduty_events
from aws_cdk.interfaces import aws_guardduty as interfaces_guardduty

# detector_ref: interfaces_guardduty.IDetectorRef

detector_events = guardduty_events.DetectorEvents.from_detector(detector_ref)

Methods

guard_duty_finding_pattern(*, account_id=None, arn=None, created_at=None, description=None, event_metadata=None, id=None, partition=None, region=None, resource=None, schema_version=None, service=None, severity=None, title=None, type=None, updated_at=None)

(experimental) EventBridge event pattern for Detector GuardDuty Finding.

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

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

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

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

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

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

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

  • resource (Union[Resource, Dict[str, Any], None]) – (experimental) resource property. Specify an array of string values to match this event if the actual value of resource 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

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

  • service (Union[Service, Dict[str, Any], None]) – (experimental) service property. Specify an array of string values to match this event if the actual value of service 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

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

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

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

(experimental) Create DetectorEvents from a Detector reference.

Parameters:

detector_ref (IDetectorRef)

Stability:

experimental

Return type:

DetectorEvents