AccountEvents

class aws_cdk.mixins_preview.aws_organizations.events.AccountEvents(*args: Any, **kwargs)

Bases: object

(experimental) EventBridge event patterns for Account.

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_organizations import events as organizations_events
from aws_cdk.interfaces import aws_organizations as interfaces_aws_organizations

# account_ref: interfaces_aws_organizations.IAccountRef

account_events = organizations_events.AccountEvents.from_account(account_ref)

Methods

aws_service_event_via_cloud_trail_pattern(*, aws_region=None, event_id=None, event_metadata=None, event_name=None, event_source=None, event_time=None, event_type=None, event_version=None, read_only=None, service_event_details=None, source_ip_address=None, user_agent=None, user_identity=None)

(experimental) EventBridge event pattern for Account AWS Service Event via CloudTrail.

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

  • event_name (Optional[Sequence[str]]) – (experimental) eventName property. Specify an array of string values to match this event if the actual value of eventName 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_source (Optional[Sequence[str]]) – (experimental) eventSource property. Specify an array of string values to match this event if the actual value of eventSource 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_time (Optional[Sequence[str]]) – (experimental) eventTime property. Specify an array of string values to match this event if the actual value of eventTime 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_type (Optional[Sequence[str]]) – (experimental) eventType property. Specify an array of string values to match this event if the actual value of eventType 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_version (Optional[Sequence[str]]) – (experimental) eventVersion property. Specify an array of string values to match this event if the actual value of eventVersion 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

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

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

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

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

(experimental) Create AccountEvents from a Account reference.

Parameters:

account_ref (IAccountRef)

Stability:

experimental

Return type:

AccountEvents

AWSServiceEventViaCloudTrail

class AccountEvents.AWSServiceEventViaCloudTrail

Bases: object

(experimental) aws.organizations@AWSServiceEventViaCloudTrail event types for Account.

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_organizations import events as organizations_events

a_wSService_event_via_cloud_trail = organizations_events.AccountEvents.AWSServiceEventViaCloudTrail()
Stability:

experimental

AWSServiceEventViaCloudTrailProps

class AccountEvents.AWSServiceEventViaCloudTrail.AWSServiceEventViaCloudTrailProps(*, aws_region=None, event_id=None, event_metadata=None, event_name=None, event_source=None, event_time=None, event_type=None, event_version=None, read_only=None, service_event_details=None, source_ip_address=None, user_agent=None, user_identity=None)

Bases: object

(experimental) Props type for Account aws.organizations@AWSServiceEventViaCloudTrail event.

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

  • event_name (Optional[Sequence[str]]) – (experimental) eventName property. Specify an array of string values to match this event if the actual value of eventName 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_source (Optional[Sequence[str]]) – (experimental) eventSource property. Specify an array of string values to match this event if the actual value of eventSource 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_time (Optional[Sequence[str]]) – (experimental) eventTime property. Specify an array of string values to match this event if the actual value of eventTime 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_type (Optional[Sequence[str]]) – (experimental) eventType property. Specify an array of string values to match this event if the actual value of eventType 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_version (Optional[Sequence[str]]) – (experimental) eventVersion property. Specify an array of string values to match this event if the actual value of eventVersion 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

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

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

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

  • user_identity (Union[UserIdentity, Dict[str, Any], None]) – (experimental) userIdentity property. Specify an array of string values to match this event if the actual value of userIdentity 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_organizations import events as organizations_events

a_wSService_event_via_cloud_trail_props = organizations_events.AccountEvents.AWSServiceEventViaCloudTrail.AWSServiceEventViaCloudTrailProps(
    aws_region=["awsRegion"],
    event_id=["eventId"],
    event_metadata=AWSEventMetadataProps(
        region=["region"],
        resources=["resources"],
        version=["version"]
    ),
    event_name=["eventName"],
    event_source=["eventSource"],
    event_time=["eventTime"],
    event_type=["eventType"],
    event_version=["eventVersion"],
    read_only=["readOnly"],
    service_event_details=organizations_events.AccountEvents.AWSServiceEventViaCloudTrail.ServiceEventDetails(
        create_account_status=organizations_events.AccountEvents.AWSServiceEventViaCloudTrail.CreateAccountStatus(
            account_id=["accountId"],
            account_name=["accountName"],
            completed_timestamp=["completedTimestamp"],
            id=["id"],
            requested_timestamp=["requestedTimestamp"],
            state=["state"]
        )
    ),
    source_ip_address=["sourceIpAddress"],
    user_agent=["userAgent"],
    user_identity=organizations_events.AccountEvents.AWSServiceEventViaCloudTrail.UserIdentity(
        account_id=["accountId"],
        invoked_by=["invokedBy"]
    )
)

Attributes

aws_region

(experimental) awsRegion property.

Specify an array of string values to match this event if the actual value of awsRegion 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

event_id

(experimental) eventID property.

Specify an array of string values to match this event if the actual value of eventID 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

event_metadata

(experimental) EventBridge event metadata.

Default:

Stability:

experimental

event_name

(experimental) eventName property.

Specify an array of string values to match this event if the actual value of eventName 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

event_source

(experimental) eventSource property.

Specify an array of string values to match this event if the actual value of eventSource 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

event_time

(experimental) eventTime property.

Specify an array of string values to match this event if the actual value of eventTime 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

event_type

(experimental) eventType property.

Specify an array of string values to match this event if the actual value of eventType 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

event_version

(experimental) eventVersion property.

Specify an array of string values to match this event if the actual value of eventVersion 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

read_only

(experimental) readOnly property.

Specify an array of string values to match this event if the actual value of readOnly 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

service_event_details

(experimental) serviceEventDetails property.

Specify an array of string values to match this event if the actual value of serviceEventDetails 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

source_ip_address

(experimental) sourceIPAddress property.

Specify an array of string values to match this event if the actual value of sourceIPAddress 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

user_agent

(experimental) userAgent property.

Specify an array of string values to match this event if the actual value of userAgent 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

user_identity

(experimental) userIdentity property.

Specify an array of string values to match this event if the actual value of userIdentity 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

CreateAccountStatus

class AccountEvents.AWSServiceEventViaCloudTrail.CreateAccountStatus(*, account_id=None, account_name=None, completed_timestamp=None, id=None, requested_timestamp=None, state=None)

Bases: object

(experimental) Type definition for CreateAccountStatus.

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: - Filter with the Account reference

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

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

  • 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

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

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

create_account_status = organizations_events.AccountEvents.AWSServiceEventViaCloudTrail.CreateAccountStatus(
    account_id=["accountId"],
    account_name=["accountName"],
    completed_timestamp=["completedTimestamp"],
    id=["id"],
    requested_timestamp=["requestedTimestamp"],
    state=["state"]
)

Attributes

account_id

(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:
  • Filter with the Account reference

Stability:

experimental

account_name

(experimental) accountName property.

Specify an array of string values to match this event if the actual value of accountName 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

completed_timestamp

(experimental) completedTimestamp property.

Specify an array of string values to match this event if the actual value of completedTimestamp 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

id

(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

Stability:

experimental

requested_timestamp

(experimental) requestedTimestamp property.

Specify an array of string values to match this event if the actual value of requestedTimestamp 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

state

(experimental) state property.

Specify an array of string values to match this event if the actual value of state 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

ServiceEventDetails

class AccountEvents.AWSServiceEventViaCloudTrail.ServiceEventDetails(*, create_account_status=None)

Bases: object

(experimental) Type definition for ServiceEventDetails.

Parameters:

create_account_status (Union[CreateAccountStatus, Dict[str, Any], None]) – (experimental) createAccountStatus property. Specify an array of string values to match this event if the actual value of createAccountStatus 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_organizations import events as organizations_events

service_event_details = organizations_events.AccountEvents.AWSServiceEventViaCloudTrail.ServiceEventDetails(
    create_account_status=organizations_events.AccountEvents.AWSServiceEventViaCloudTrail.CreateAccountStatus(
        account_id=["accountId"],
        account_name=["accountName"],
        completed_timestamp=["completedTimestamp"],
        id=["id"],
        requested_timestamp=["requestedTimestamp"],
        state=["state"]
    )
)

Attributes

create_account_status

(experimental) createAccountStatus property.

Specify an array of string values to match this event if the actual value of createAccountStatus 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

UserIdentity

class AccountEvents.AWSServiceEventViaCloudTrail.UserIdentity(*, account_id=None, invoked_by=None)

Bases: object

(experimental) Type definition for UserIdentity.

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

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

user_identity = organizations_events.AccountEvents.AWSServiceEventViaCloudTrail.UserIdentity(
    account_id=["accountId"],
    invoked_by=["invokedBy"]
)

Attributes

account_id

(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

Stability:

experimental

invoked_by

(experimental) invokedBy property.

Specify an array of string values to match this event if the actual value of invokedBy 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