NAV
javascript

AWS EventBridge: Event bus myapp-event-bus-dev

This is the event bus for our imaginary company. You can customise the description and add metadata to all your events!

myapp.applications

FlexApplicationConfirmed

Event is raised when the user flexs their application using the mobile application.

Rules

  1. myapp-api-dev-PostMessageToASlackChannelFlexAp-U2KWLOKONNME

Send example event using AWS CLI

aws events put-events --entries "[{\"Time\":\"2020-07-14T00:00:00Z\",\"Source\":\"myapp.applications\",\"Resources\":[\"1\"],\"DetailType\":\"UserCreated\",\"Detail\":\"{\\\"data\\\":{\\\"brand\\\":{\\\"code\\\":\\\"00001\\\"},\\\"user\\\":{\\\"email\\\":\\\"test@test.com\\\",\\\"id\\\":1},\\\"newCoverAmount\\\":1000,\\\"previousCoverAmount\\\":1000},\\\"metadata\\\":{\\\"correlationId\\\":\\\"5e2ad09c-c502-11eb-8529-0242ac130003\\\",\\\"service\\\":\\\"myapp-some-service\\\"}}\",\"EventBusName\":\"myapp-event-bus-dev\"}]"

Example of Event

{
    "Time": "2020-07-14T00:00:00Z",
    "Source": "myapp.applications",
    "Resources": [
        "1"
    ],
    "DetailType": "UserCreated",
    "Detail": {
        "data": {
            "brand": {
                "code": "00001"
            },
            "user": {
                "email": "test@test.com",
                "id": 1
            },
            "newCoverAmount": 1000,
            "previousCoverAmount": 1000
        },
        "metadata": {
            "correlationId": "5e2ad09c-c502-11eb-8529-0242ac130003",
            "service": "myapp-some-service"
        }
    },
    "EventBusName": "myapp-event-bus-dev"
}

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "FlexApplicationConfirmed",
    "definitions": {
        "Brand": {
            "properties": {
                "code": {
                    "type": "string"
                }
            },
            "required": [
                "code"
            ],
            "type": "object"
        },
        "Data": {
            "properties": {
                "brand": {
                    "$ref": "#/definitions/Brand"
                },
                "newCoverAmount": {
                    "type": "string"
                },
                "previousCoverAmount": {
                    "type": "string"
                },
                "user": {
                    "$ref": "#/definitions/User"
                }
            },
            "required": [
                "newCoverAmount",
                "previousCoverAmount",
                "brand",
                "user"
            ],
            "type": "object"
        },
        "FlexApplicationConfirmed": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "correlationId": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service",
                "correlationId"
            ],
            "type": "object"
        },
        "User": {
            "properties": {
                "email": {
                    "type": "string"
                },
                "id": {
                    "type": "number"
                }
            },
            "required": [
                "id",
                "email"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/FlexApplicationConfirmed"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "object"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "FlexApplicationConfirmed",
    "x-amazon-events-source": "myapp.applications"
}
property description
newCoverAmount The new amount the user will be covered for
previousCoverAmount The previous amount the user was covered for

myapp.items

ItemCreated

Event is raised when an item is created on the ecommerce store

Rules

  1. myapp-api-dev-RecalcCoverAmountItemCreate-NO3O92D7677H

Send example event using AWS CLI

aws events put-events --entries "[{\"Time\":\"2020-07-14T00:00:00Z\",\"Source\":\"myapp.items\",\"Resources\":[\"1\"],\"DetailType\":\"ItemCreated\",\"Detail\":\"{\\\"data\\\":{\\\"amountInCents\\\":10000,\\\"applicationId\\\":\\\"5e2ad09c-c502-11eb-8529-0242ac130003\\\",\\\"connections\\\":[1,2,3],\\\"createdAt\\\":\\\"2020-01-01T07:09:01+00:00\\\",\\\"description\\\":\\\"New Item Description\\\",\\\"id\\\":1},\\\"metadata\\\":{\\\"correlationId\\\":\\\"5e2ad09c-c502-11eb-8529-0242ac130003\\\",\\\"service\\\":\\\"myapp-some-service\\\"}}\",\"EventBusName\":\"myapp-event-bus-dev\"}]"

Example of Event

{
    "Time": "2020-07-14T00:00:00Z",
    "Source": "myapp.items",
    "Resources": [
        "1"
    ],
    "DetailType": "ItemCreated",
    "Detail": {
        "data": {
            "amountInCents": 10000,
            "applicationId": "5e2ad09c-c502-11eb-8529-0242ac130003",
            "connections": [
                1,
                2,
                3
            ],
            "createdAt": "2020-01-01T07:09:01+00:00",
            "description": "New Item Description",
            "id": 1
        },
        "metadata": {
            "correlationId": "5e2ad09c-c502-11eb-8529-0242ac130003",
            "service": "myapp-some-service"
        }
    },
    "EventBusName": "myapp-event-bus-dev"
}

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "ItemCreated",
    "definitions": {
        "Data": {
            "properties": {
                "amountInCents": {
                    "type": "number"
                },
                "applicationId": {
                    "type": "number"
                },
                "connections": {
                    "items": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "type": "array"
                },
                "createdAt": {
                    "format": "date-time",
                    "type": "string"
                },
                "description": {
                    "type": "string"
                },
                "id": {
                    "type": "number"
                },
                "image": {
                    "type": "string"
                },
                "questions": {
                    "items": {
                        "$ref": "#/definitions/DataItem"
                    },
                    "type": "array"
                },
                "slug": {
                    "type": "string"
                },
                "subtitle": {
                    "type": "string"
                },
                "title": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                },
                "updatedAt": {
                    "format": "date-time",
                    "type": "string"
                }
            },
            "required": [
                "amountInCents",
                "createdAt",
                "image",
                "subtitle",
                "questions",
                "id",
                "applicationId",
                "title",
                "type",
                "connections",
                "slug",
                "updatedAt"
            ],
            "type": "object"
        },
        "DataItem": {
            "properties": {
                "active": {
                    "type": "boolean"
                },
                "field": {
                    "type": "string"
                },
                "helptext": {
                    "type": "string"
                },
                "question": {
                    "type": "string"
                },
                "required": {
                    "type": "boolean"
                }
            },
            "required": [
                "field",
                "question",
                "helptext",
                "active",
                "required"
            ],
            "type": "object"
        },
        "ItemCreated": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/ItemCreated"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "string"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "ItemCreated",
    "x-amazon-events-source": "myapp.items"
}
property description
id Unique identifier for the item
createdAt Date the item was created
description Description the user inserted

ItemDeleted

Event is raised when an item is deleted on the ecommerce store

Rules

  1. myapp-api-dev-RecalcCoverAmountItemCreate-NO3O92D7677H

Send example event using AWS CLI

aws events put-events --entries "[{\"Time\":\"2020-07-14T00:00:00Z\",\"Source\":\"myapp.items\",\"Resources\":[\"1\"],\"DetailType\":\"ItemDeleted\",\"Detail\":\"{\\\"data\\\":{\\\"amountInCents\\\":10000,\\\"applicationId\\\":\\\"5e2ad09c-c502-11eb-8529-0242ac130003\\\",\\\"connections\\\":[1,2,3],\\\"createdAt\\\":\\\"2020-01-01T07:09:01+00:00\\\",\\\"description\\\":\\\"New Item Description\\\",\\\"id\\\":1},\\\"metadata\\\":{\\\"correlationId\\\":\\\"5e2ad09c-c502-11eb-8529-0242ac130003\\\",\\\"service\\\":\\\"myapp-some-service\\\"}}\",\"EventBusName\":\"myapp-event-bus-dev\"}]"

Example of Event

{
    "Time": "2020-07-14T00:00:00Z",
    "Source": "myapp.items",
    "Resources": [
        "1"
    ],
    "DetailType": "ItemDeleted",
    "Detail": {
        "data": {
            "amountInCents": 10000,
            "applicationId": "5e2ad09c-c502-11eb-8529-0242ac130003",
            "connections": [
                1,
                2,
                3
            ],
            "createdAt": "2020-01-01T07:09:01+00:00",
            "description": "New Item Description",
            "id": 1
        },
        "metadata": {
            "correlationId": "5e2ad09c-c502-11eb-8529-0242ac130003",
            "service": "myapp-some-service"
        }
    },
    "EventBusName": "myapp-event-bus-dev"
}

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "ItemDeleted",
    "definitions": {
        "Data": {
            "properties": {
                "amountInCents": {
                    "type": "number"
                },
                "applicationId": {
                    "type": "number"
                },
                "beneficiaries": {
                    "type": [
                        "object",
                        "null"
                    ]
                },
                "createdAt": {
                    "format": "date-time",
                    "type": "string"
                },
                "description": {
                    "type": [
                        "object",
                        "null"
                    ]
                },
                "hasBeenShared": {
                    "type": "boolean"
                },
                "id": {
                    "type": "number"
                },
                "image": {
                    "type": "string"
                },
                "questions": {
                    "items": {
                        "$ref": "#/definitions/DataItem"
                    },
                    "type": "array"
                },
                "slug": {
                    "type": "string"
                },
                "subtitle": {
                    "type": "string"
                },
                "title": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                },
                "updatedAt": {
                    "format": "date-time",
                    "type": "string"
                }
            },
            "required": [
                "amountInCents",
                "image",
                "hasBeenShared",
                "questions",
                "description",
                "title",
                "type",
                "createdAt",
                "subtitle",
                "id",
                "applicationId",
                "beneficiaries",
                "slug",
                "updatedAt"
            ],
            "type": "object"
        },
        "DataItem": {
            "properties": {
                "active": {
                    "type": "boolean"
                },
                "field": {
                    "type": "string"
                },
                "helptext": {
                    "type": "string"
                },
                "question": {
                    "type": "string"
                },
                "required": {
                    "type": "boolean"
                }
            },
            "required": [
                "field",
                "question",
                "helptext",
                "active",
                "required"
            ],
            "type": "object"
        },
        "ItemDeleted": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/ItemDeleted"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "string"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "ItemDeleted",
    "x-amazon-events-source": "myapp.items"
}
property description
id Unique identifier for the item
createdAt Date the item was created
description Description the user inserted

ItemShared

Event is raised when an item is shared on social media

Rules

  1. email-platform-dev-SendEmailItemSharedByEmail-MKAR27RGSF1

Send example event using AWS CLI

aws events put-events --entries "[{\"Time\":\"2020-07-14T00:00:00Z\",\"Source\":\"myapp.items\",\"Resources\":[\"1\"],\"DetailType\":\"ItemShared\",\"Detail\":\"{\\\"data\\\":{\\\"amountInCents\\\":10000,\\\"applicationId\\\":\\\"5e2ad09c-c502-11eb-8529-0242ac130003\\\",\\\"connections\\\":[1,2,3],\\\"createdAt\\\":\\\"2020-01-01T07:09:01+00:00\\\",\\\"description\\\":\\\"New Item Description\\\",\\\"id\\\":1},\\\"metadata\\\":{\\\"correlationId\\\":\\\"5e2ad09c-c502-11eb-8529-0242ac130003\\\",\\\"service\\\":\\\"myapp-some-service\\\"}}\",\"EventBusName\":\"myapp-event-bus-dev\"}]"

Example of Event

{
    "Time": "2020-07-14T00:00:00Z",
    "Source": "myapp.items",
    "Resources": [
        "1"
    ],
    "DetailType": "ItemShared",
    "Detail": {
        "data": {
            "amountInCents": 10000,
            "applicationId": "5e2ad09c-c502-11eb-8529-0242ac130003",
            "connections": [
                1,
                2,
                3
            ],
            "createdAt": "2020-01-01T07:09:01+00:00",
            "description": "New Item Description",
            "id": 1
        },
        "metadata": {
            "correlationId": "5e2ad09c-c502-11eb-8529-0242ac130003",
            "service": "myapp-some-service"
        }
    },
    "EventBusName": "myapp-event-bus-dev"
}

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "ItemShared",
    "definitions": {
        "Brand": {
            "properties": {
                "code": {
                    "type": "string"
                }
            },
            "required": [
                "code"
            ],
            "type": "object"
        },
        "Data": {
            "properties": {
                "brand": {
                    "$ref": "#/definitions/Brand"
                },
                "item": {
                    "$ref": "#/definitions/Item"
                },
                "message": {
                    "type": [
                        "object",
                        "null"
                    ]
                },
                "shareTo": {
                    "type": "string"
                },
                "shareVia": {
                    "type": "string"
                },
                "user": {
                    "$ref": "#/definitions/User"
                }
            },
            "required": [
                "shareVia",
                "item",
                "shareTo",
                "message",
                "brand",
                "user"
            ],
            "type": "object"
        },
        "Item": {
            "properties": {
                "id": {
                    "type": "number"
                },
                "share": {
                    "$ref": "#/definitions/Share"
                }
            },
            "required": [
                "share",
                "id"
            ],
            "type": "object"
        },
        "ItemShared": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "correlationId": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service",
                "correlationId"
            ],
            "type": "object"
        },
        "Share": {
            "properties": {
                "uuid": {
                    "type": "string"
                }
            },
            "required": [
                "uuid"
            ],
            "type": "object"
        },
        "User": {
            "properties": {
                "email": {
                    "type": "string"
                },
                "firstName": {
                    "type": "string"
                },
                "id": {
                    "type": "number"
                }
            },
            "required": [
                "firstName",
                "id",
                "email"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/ItemShared"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "object"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "ItemShared",
    "x-amazon-events-source": "myapp.items"
}
property description
id Unique identifier for the item
createdAt Date the item was created
description Description the user inserted

ItemUpdated

Event is raised when an item is updated

Rules

  1. myapp-api-dev-NotifyConnectionsOnDWUpdateDeath-1D5ADSK92FPCZ
  2. myapp-api-dev-RecalcCoverAmountItemCoverA-BEXBF65NW81U

Send example event using AWS CLI

aws events put-events --entries "[{\"Time\":\"2020-07-14T00:00:00Z\",\"Source\":\"myapp.items\",\"Resources\":[\"1\"],\"DetailType\":\"ItemUpdated\",\"Detail\":\"{\\\"data\\\":{\\\"amountInCents\\\":10000,\\\"applicationId\\\":\\\"5e2ad09c-c502-11eb-8529-0242ac130003\\\",\\\"connections\\\":[1,2,3],\\\"createdAt\\\":\\\"2020-01-01T07:09:01+00:00\\\",\\\"description\\\":\\\"New Item Description\\\",\\\"id\\\":1},\\\"metadata\\\":{\\\"correlationId\\\":\\\"5e2ad09c-c502-11eb-8529-0242ac130003\\\",\\\"service\\\":\\\"myapp-some-service\\\"}}\",\"EventBusName\":\"myapp-event-bus-dev\"}]"

Example of Event

{
    "Time": "2020-07-14T00:00:00Z",
    "Source": "myapp.items",
    "Resources": [
        "1"
    ],
    "DetailType": "ItemUpdated",
    "Detail": {
        "data": {
            "amountInCents": 10000,
            "applicationId": "5e2ad09c-c502-11eb-8529-0242ac130003",
            "connections": [
                1,
                2,
                3
            ],
            "createdAt": "2020-01-01T07:09:01+00:00",
            "description": "New Item Description",
            "id": 1
        },
        "metadata": {
            "correlationId": "5e2ad09c-c502-11eb-8529-0242ac130003",
            "service": "myapp-some-service"
        }
    },
    "EventBusName": "myapp-event-bus-dev"
}

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "ItemUpdated",
    "definitions": {
        "Data": {
            "properties": {
                "changed": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                "new": {
                    "$ref": "#/definitions/New"
                },
                "old": {
                    "$ref": "#/definitions/New"
                }
            },
            "required": [
                "new",
                "old",
                "changed"
            ],
            "type": "object"
        },
        "ItemUpdated": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service"
            ],
            "type": "object"
        },
        "New": {
            "properties": {
                "amountInCents": {
                    "type": "number"
                },
                "applicationId": {
                    "type": "number"
                },
                "beneficiaries": {
                    "items": {
                        "type": "object"
                    },
                    "type": "array"
                },
                "connectionIds": {
                    "items": {
                        "type": "number"
                    },
                    "type": "array"
                },
                "createdAt": {
                    "format": "date-time",
                    "type": "string"
                },
                "description": {
                    "type": "string"
                },
                "hasBeenShared": {
                    "type": "boolean"
                },
                "id": {
                    "type": "number"
                },
                "image": {
                    "type": "string"
                },
                "questions": {
                    "items": {
                        "$ref": "#/definitions/NewItem"
                    },
                    "type": "array"
                },
                "slug": {
                    "type": "string"
                },
                "subtitle": {
                    "type": "string"
                },
                "title": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                },
                "updatedAt": {
                    "format": "date-time",
                    "type": "string"
                }
            },
            "required": [
                "amountInCents",
                "image",
                "hasBeenShared",
                "questions",
                "description",
                "title",
                "type",
                "createdAt",
                "connectionIds",
                "subtitle",
                "id",
                "applicationId",
                "beneficiaries",
                "slug",
                "updatedAt"
            ],
            "type": "object"
        },
        "NewItem": {
            "properties": {
                "active": {
                    "type": "boolean"
                },
                "field": {
                    "type": "string"
                },
                "helptext": {
                    "type": "string"
                },
                "question": {
                    "type": "string"
                },
                "required": {
                    "type": "boolean"
                }
            },
            "required": [
                "field",
                "question",
                "helptext",
                "active",
                "required"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/ItemUpdated"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "string"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "ItemUpdated",
    "x-amazon-events-source": "myapp.items"
}
property description
id Unique identifier for the item
createdAt Date the item was created
description Description the user inserted

ItemesUpdated

Rules

  1. myapp-api-dev-RecalcCoverAmountItemesUpda-WDKHI1RM3YWA

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "ItemesUpdated",
    "definitions": {
        "Data": {
            "properties": {
                "applicationId": {
                    "type": "number"
                },
                "items": {
                    "items": {
                        "$ref": "#/definitions/DataItem"
                    },
                    "type": "array"
                }
            },
            "required": [
                "items",
                "applicationId"
            ],
            "type": "object"
        },
        "DataItem": {
            "properties": {
                "amountInCents": {
                    "type": "number"
                },
                "applicationId": {
                    "type": "number"
                },
                "beneficiaries": {
                    "type": [
                        "object",
                        "null"
                    ]
                },
                "createdAt": {
                    "format": "date-time",
                    "type": "string"
                },
                "description": {
                    "type": "string"
                },
                "hasBeenShared": {
                    "type": "boolean"
                },
                "id": {
                    "type": "number"
                },
                "image": {
                    "type": "string"
                },
                "questions": {
                    "items": {
                        "$ref": "#/definitions/DataItemItem"
                    },
                    "type": "array"
                },
                "slug": {
                    "type": "string"
                },
                "subtitle": {
                    "type": "string"
                },
                "title": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                },
                "updatedAt": {
                    "format": "date-time",
                    "type": "string"
                }
            },
            "required": [
                "amountInCents",
                "image",
                "hasBeenShared",
                "questions",
                "description",
                "title",
                "type",
                "createdAt",
                "subtitle",
                "id",
                "applicationId",
                "beneficiaries",
                "slug",
                "updatedAt"
            ],
            "type": "object"
        },
        "DataItemItem": {
            "properties": {
                "active": {
                    "type": "boolean"
                },
                "field": {
                    "type": "string"
                },
                "helptext": {
                    "type": "string"
                },
                "question": {
                    "type": "string"
                },
                "required": {
                    "type": "boolean"
                }
            },
            "required": [
                "field",
                "question",
                "helptext",
                "active",
                "required"
            ],
            "type": "object"
        },
        "ItemesUpdated": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/ItemesUpdated"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "string"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "ItemesUpdated",
    "x-amazon-events-source": "myapp.items"
}

myapp.php_platform

UserCreated

Rules

  1. email-platform-dev-SendEmailUserCreatedEvent-1RLPO22B6WFL3

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "UserCreated",
    "definitions": {
        "UserCreated": {
            "properties": {
                "email": {
                    "type": "string"
                },
                "firstName": {
                    "type": "string"
                },
                "userId": {
                    "type": "number"
                }
            },
            "required": [
                "firstName",
                "userId",
                "email"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/UserCreated"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "object"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "UserCreated",
    "x-amazon-events-source": "myapp.php_platform"
}

myapp.policies

FlexApplicationConfirmed

Rules

  1. myapp-api-dev-PostMessageToASlackChannelFlexAp-U2KWLOKONNME

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "FlexApplicationConfirmed",
    "definitions": {
        "Brand": {
            "properties": {
                "code": {
                    "type": "string"
                }
            },
            "required": [
                "code"
            ],
            "type": "object"
        },
        "Data": {
            "properties": {
                "brand": {
                    "$ref": "#/definitions/Brand"
                },
                "newCoverAmount": {
                    "type": "string"
                },
                "previousCoverAmount": {
                    "type": "string"
                },
                "user": {
                    "$ref": "#/definitions/User"
                }
            },
            "required": [
                "newCoverAmount",
                "previousCoverAmount",
                "brand",
                "user"
            ],
            "type": "object"
        },
        "FlexApplicationConfirmed": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "correlationId": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service",
                "correlationId"
            ],
            "type": "object"
        },
        "User": {
            "properties": {
                "email": {
                    "type": "string"
                },
                "id": {
                    "type": "number"
                }
            },
            "required": [
                "id",
                "email"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/FlexApplicationConfirmed"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "object"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "FlexApplicationConfirmed",
    "x-amazon-events-source": "myapp.policies"
}

FlexiblePolicyCreated

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "FlexiblePolicyCreated",
    "definitions": {
        "Brand": {
            "properties": {
                "code": {
                    "type": "string"
                }
            },
            "required": [
                "code"
            ],
            "type": "object"
        },
        "Data": {
            "properties": {
                "brand": {
                    "$ref": "#/definitions/Brand"
                },
                "newCoverAmount": {
                    "type": "string"
                },
                "previousCoverAmount": {
                    "type": "string"
                },
                "user": {
                    "$ref": "#/definitions/User"
                }
            },
            "required": [
                "newCoverAmount",
                "previousCoverAmount",
                "brand",
                "user"
            ],
            "type": "object"
        },
        "FlexiblePolicyCreated": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "correlationId": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service",
                "correlationId"
            ],
            "type": "object"
        },
        "User": {
            "properties": {
                "email": {
                    "type": "string"
                },
                "id": {
                    "type": "number"
                }
            },
            "required": [
                "id",
                "email"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/FlexiblePolicyCreated"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "object"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "FlexiblePolicyCreated",
    "x-amazon-events-source": "myapp.policies"
}

PolicyRefreshAccepted

Rules

  1. email-platform-dev-SendEmailPolicyRefreshAcceptedE-NKFFQ65N6I6O

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "PolicyRefreshAccepted",
    "definitions": {
        "Application": {
            "properties": {
                "coverAmount": {
                    "type": "number"
                }
            },
            "required": [
                "coverAmount"
            ],
            "type": "object"
        },
        "Brand": {
            "properties": {
                "code": {
                    "type": "string"
                }
            },
            "required": [
                "code"
            ],
            "type": "object"
        },
        "Data": {
            "properties": {
                "application": {
                    "$ref": "#/definitions/Application"
                },
                "brand": {
                    "$ref": "#/definitions/Brand"
                },
                "numberOfYearsLeftOnPolicy": {
                    "type": "number"
                },
                "upcomingPremiumAmount": {
                    "type": "string"
                },
                "user": {
                    "$ref": "#/definitions/User"
                }
            },
            "required": [
                "numberOfYearsLeftOnPolicy",
                "application",
                "upcomingPremiumAmount",
                "brand",
                "user"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "correlationId": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service",
                "correlationId"
            ],
            "type": "object"
        },
        "PolicyRefreshAccepted": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        },
        "User": {
            "properties": {
                "email": {
                    "type": "string"
                },
                "firstName": {
                    "type": "string"
                },
                "id": {
                    "type": "number"
                }
            },
            "required": [
                "firstName",
                "id",
                "email"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/PolicyRefreshAccepted"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "object"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "PolicyRefreshAccepted",
    "x-amazon-events-source": "myapp.policies"
}

PolicyRefreshApproaching

Rules

  1. email-platform-dev-SendEmailPolicyRefreshApproachi-1900I0C4RKDO4

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "PolicyRefreshApproaching",
    "definitions": {
        "Brand": {
            "properties": {
                "code": {
                    "type": "string"
                }
            },
            "required": [
                "code"
            ],
            "type": "object"
        },
        "Data": {
            "properties": {
                "brand": {
                    "$ref": "#/definitions/Brand"
                },
                "numberOfDaysUntilRefresh": {
                    "type": "number"
                },
                "numberOfYearsInitiallyInsuredFor": {
                    "type": "number"
                },
                "numberOfYearsIntoPolicy": {
                    "type": "number"
                },
                "numberOfYearsLeftOnPolicy": {
                    "type": "number"
                },
                "policyRefreshToken": {
                    "type": "string"
                },
                "refreshDate": {
                    "format": "date-time",
                    "type": "string"
                },
                "upcomingPremiumAmount": {
                    "type": "string"
                },
                "user": {
                    "$ref": "#/definitions/User"
                }
            },
            "required": [
                "numberOfYearsIntoPolicy",
                "refreshDate",
                "policyRefreshToken",
                "numberOfDaysUntilRefresh",
                "numberOfYearsLeftOnPolicy",
                "upcomingPremiumAmount",
                "brand",
                "user",
                "numberOfYearsInitiallyInsuredFor"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "correlationId": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service",
                "correlationId"
            ],
            "type": "object"
        },
        "PolicyRefreshApproaching": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        },
        "User": {
            "properties": {
                "email": {
                    "type": "string"
                },
                "firstName": {
                    "type": "string"
                },
                "id": {
                    "type": "number"
                }
            },
            "required": [
                "firstName",
                "id",
                "email"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/PolicyRefreshApproaching"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "object"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "PolicyRefreshApproaching",
    "x-amazon-events-source": "myapp.policies"
}

PolicyRenewed

Rules

  1. email-platform-dev-SendEmailPolicyRenewedEvent-LMS71LTU69CY

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "PolicyRenewed",
    "definitions": {
        "Application": {
            "properties": {
                "coverAmount": {
                    "type": "number"
                }
            },
            "required": [
                "coverAmount"
            ],
            "type": "object"
        },
        "Brand": {
            "properties": {
                "code": {
                    "type": "string"
                }
            },
            "required": [
                "code"
            ],
            "type": "object"
        },
        "Data": {
            "properties": {
                "application": {
                    "$ref": "#/definitions/Application"
                },
                "brand": {
                    "$ref": "#/definitions/Brand"
                },
                "currentPremiumAmount": {
                    "type": "string"
                },
                "numberOfYearsLeftOnPolicy": {
                    "type": "number"
                },
                "user": {
                    "$ref": "#/definitions/User"
                }
            },
            "required": [
                "numberOfYearsLeftOnPolicy",
                "application",
                "currentPremiumAmount",
                "brand",
                "user"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "correlationId": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service",
                "correlationId"
            ],
            "type": "object"
        },
        "PolicyRenewed": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        },
        "User": {
            "properties": {
                "email": {
                    "type": "string"
                },
                "firstName": {
                    "type": "string"
                },
                "id": {
                    "type": "number"
                }
            },
            "required": [
                "firstName",
                "id",
                "email"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/PolicyRenewed"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "object"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "PolicyRenewed",
    "x-amazon-events-source": "myapp.policies"
}

myapp.quotes

QuoteCreated

Rules

  1. email-platform-dev-SendEmailUserCreatedEvent-1RLPO22B6WFL3

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "QuoteCreated",
    "definitions": {
        "Brand": {
            "properties": {
                "code": {
                    "type": "string"
                }
            },
            "required": [
                "code"
            ],
            "type": "object"
        },
        "Data": {
            "properties": {
                "brand": {
                    "$ref": "#/definitions/Brand"
                },
                "coverAmount": {
                    "type": "string"
                },
                "monthlyPremium": {
                    "type": "string"
                },
                "user": {
                    "$ref": "#/definitions/User"
                }
            },
            "required": [
                "brand",
                "user",
                "coverAmount",
                "monthlyPremium"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "correlationId": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service",
                "correlationId"
            ],
            "type": "object"
        },
        "QuoteCreated": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        },
        "User": {
            "properties": {
                "email": {
                    "type": "string"
                },
                "firstName": {
                    "type": "string"
                },
                "id": {
                    "type": "number"
                },
                "resumeSetupToken": {
                    "type": "string"
                }
            },
            "required": [
                "firstName",
                "resumeSetupToken",
                "id",
                "email"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/QuoteCreated"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "object"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "QuoteCreated",
    "x-amazon-events-source": "myapp.quotes"
}

QuoteExpiryApproaching

Rules

  1. email-platform-dev-SendEmailUserCreatedEvent-1RLPO22B6WFL3

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "QuoteExpiryApproaching",
    "definitions": {
        "Brand": {
            "properties": {
                "code": {
                    "type": "string"
                }
            },
            "required": [
                "code"
            ],
            "type": "object"
        },
        "Data": {
            "properties": {
                "brand": {
                    "$ref": "#/definitions/Brand"
                },
                "coverAmount": {
                    "type": "number"
                },
                "monthlyPremium": {
                    "format": "double",
                    "type": "number"
                },
                "user": {
                    "$ref": "#/definitions/User"
                }
            },
            "required": [
                "brand",
                "user",
                "coverAmount",
                "monthlyPremium"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "correlationId": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service",
                "correlationId"
            ],
            "type": "object"
        },
        "QuoteExpiryApproaching": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        },
        "User": {
            "properties": {
                "email": {
                    "type": "string"
                },
                "firstName": {
                    "type": "string"
                },
                "id": {
                    "type": "number"
                }
            },
            "required": [
                "firstName",
                "id",
                "email"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/QuoteExpiryApproaching"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "object"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "QuoteExpiryApproaching",
    "x-amazon-events-source": "myapp.quotes"
}

myapp.subscriptions

CancelSubscription

Rules

  1. subscriptions-service-dev-CancelSubscriptionCancel-XEOQEIXBOQ6Y

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "CancelSubscription",
    "definitions": {
        "Brand": {
            "properties": {
                "code": {
                    "type": "string"
                }
            },
            "required": [
                "code"
            ],
            "type": "object"
        },
        "CancelSubscription": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        },
        "Data": {
            "properties": {
                "brand": {
                    "$ref": "#/definitions/Brand"
                },
                "id": {
                    "type": "number"
                },
                "paymentType": {
                    "type": "string"
                },
                "reason": {
                    "type": "string"
                },
                "stripeId": {
                    "type": "string"
                },
                "user": {
                    "$ref": "#/definitions/User"
                }
            },
            "required": [
                "reason",
                "stripeId",
                "id",
                "brand",
                "user",
                "paymentType"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "correlationId": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service",
                "correlationId"
            ],
            "type": "object"
        },
        "User": {
            "properties": {
                "email": {
                    "type": "string"
                },
                "firstName": {
                    "type": "string"
                },
                "id": {
                    "type": "number"
                }
            },
            "required": [
                "firstName",
                "id",
                "email"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/CancelSubscription"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "object"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "CancelSubscription",
    "x-amazon-events-source": "myapp.subscriptions"
}

CanceledSubscription

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "CanceledSubscription",
    "definitions": {
        "CanceledSubscription": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        },
        "Data": {
            "properties": {
                "reason": {
                    "type": "string"
                }
            },
            "required": [
                "reason"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "correlationId": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service",
                "correlationId"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/CanceledSubscription"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "object"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "CanceledSubscription",
    "x-amazon-events-source": "myapp.subscriptions"
}

InitialPaymentCompleted

Rules

  1. myapp-api-dev-NotifyConnectionsInitialPaymentC-5TEQS65T9C48
  2. email-platform-dev-SendEmailUserCreatedEvent-1RLPO22B6WFL3

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "InitialPaymentCompleted",
    "definitions": {
        "Brand": {
            "properties": {
                "code": {
                    "type": "string"
                }
            },
            "required": [
                "code"
            ],
            "type": "object"
        },
        "Data": {
            "properties": {
                "brand": {
                    "$ref": "#/definitions/Brand"
                },
                "user": {
                    "$ref": "#/definitions/User"
                }
            },
            "required": [
                "brand",
                "user"
            ],
            "type": "object"
        },
        "InitialPaymentCompleted": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "correlationId": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service",
                "correlationId"
            ],
            "type": "object"
        },
        "User": {
            "properties": {
                "email": {
                    "type": "string"
                },
                "firstName": {
                    "type": "string"
                },
                "id": {
                    "type": "number"
                }
            },
            "required": [
                "firstName",
                "id",
                "email"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/InitialPaymentCompleted"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "object"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "InitialPaymentCompleted",
    "x-amazon-events-source": "myapp.subscriptions"
}

PaymentFailed

Rules

  1. email-platform-dev-SendEmailDirectDebitPaymentFail-DM11CY6SYDHA

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "PaymentFailed",
    "definitions": {
        "Brand": {
            "properties": {
                "code": {
                    "type": "string"
                }
            },
            "required": [
                "code"
            ],
            "type": "object"
        },
        "Data": {
            "properties": {
                "brand": {
                    "$ref": "#/definitions/Brand"
                },
                "paymentType": {
                    "type": "string"
                },
                "policyDays": {
                    "type": "number"
                },
                "reason": {
                    "type": "string"
                },
                "user": {
                    "$ref": "#/definitions/User"
                }
            },
            "required": [
                "reason",
                "brand",
                "policyDays",
                "user",
                "paymentType"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "correlationId": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service",
                "correlationId"
            ],
            "type": "object"
        },
        "PaymentFailed": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        },
        "User": {
            "properties": {
                "email": {
                    "type": "string"
                },
                "firstName": {
                    "type": "string"
                },
                "id": {
                    "type": "number"
                }
            },
            "required": [
                "firstName",
                "id",
                "email"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/PaymentFailed"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "object"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "PaymentFailed",
    "x-amazon-events-source": "myapp.subscriptions"
}

SubscriptionCancelled

Rules

  1. email-platform-dev-SendEmailSubscriptionCancelledE-1ENN9RKA9GMRS

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "SubscriptionCancelled",
    "definitions": {
        "Brand": {
            "properties": {
                "code": {
                    "type": "string"
                }
            },
            "required": [
                "code"
            ],
            "type": "object"
        },
        "Data": {
            "properties": {
                "brand": {
                    "$ref": "#/definitions/Brand"
                },
                "id": {
                    "type": "number"
                },
                "reason": {
                    "type": "string"
                },
                "user": {
                    "$ref": "#/definitions/User"
                }
            },
            "required": [
                "reason",
                "id",
                "brand",
                "user"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "correlationId": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service",
                "correlationId"
            ],
            "type": "object"
        },
        "SubscriptionCancelled": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        },
        "User": {
            "properties": {
                "email": {
                    "type": "string"
                },
                "firstName": {
                    "type": "string"
                },
                "id": {
                    "type": "number"
                }
            },
            "required": [
                "firstName",
                "id",
                "email"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/SubscriptionCancelled"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "string"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "SubscriptionCancelled",
    "x-amazon-events-source": "myapp.subscriptions"
}

myapp.users

LeadCaptured

Rules

  1. myapp-api-dev-ProcessReferralLifeSearchLeadCap-MXPS0H49KAG7

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "LeadCaptured",
    "definitions": {
        "Brand": {
            "properties": {
                "code": {
                    "type": "string"
                }
            },
            "required": [
                "code"
            ],
            "type": "object"
        },
        "Data": {
            "properties": {
                "brand": {
                    "$ref": "#/definitions/Brand"
                },
                "phoneNumber": {
                    "type": "string"
                },
                "referredMethod": {
                    "type": "string"
                },
                "referredTo": {
                    "type": "string"
                },
                "user": {
                    "$ref": "#/definitions/User"
                }
            },
            "required": [
                "phoneNumber",
                "referredTo",
                "referredMethod",
                "brand",
                "user"
            ],
            "type": "object"
        },
        "LeadCaptured": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "correlationId": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service",
                "correlationId"
            ],
            "type": "object"
        },
        "User": {
            "properties": {
                "id": {
                    "type": "number"
                }
            },
            "required": [
                "id"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/LeadCaptured"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "object"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "LeadCaptured",
    "x-amazon-events-source": "myapp.users"
}

NotifyConnection

Rules

  1. email-platform-dev-SendEmailUserCreatedEvent-1RLPO22B6WFL3

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "NotifyConnection",
    "definitions": {
        "Brand": {
            "properties": {
                "code": {
                    "type": "string"
                }
            },
            "required": [
                "code"
            ],
            "type": "object"
        },
        "Data": {
            "properties": {
                "action": {
                    "type": "string"
                },
                "brand": {
                    "$ref": "#/definitions/Brand"
                },
                "items": {
                    "items": {
                        "$ref": "#/definitions/DataItem"
                    },
                    "type": "array"
                },
                "email": {
                    "type": "string"
                },
                "hasAccount": {
                    "type": "boolean"
                },
                "id": {
                    "type": "number"
                },
                "inviteToken": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "user": {
                    "$ref": "#/definitions/User"
                }
            },
            "required": [
                "inviteToken",
                "hasAccount",
                "items",
                "name",
                "action",
                "id",
                "brand",
                "user",
                "email"
            ],
            "type": "object"
        },
        "DataItem": {
            "properties": {
                "amountInCents": {
                    "type": "number"
                },
                "description": {
                    "type": "string"
                },
                "id": {
                    "type": "number"
                },
                "title": {
                    "type": "string"
                }
            },
            "required": [
                "amountInCents",
                "description",
                "id",
                "title"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "correlationId": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service",
                "correlationId"
            ],
            "type": "object"
        },
        "NotifyConnection": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        },
        "User": {
            "properties": {
                "firstName": {
                    "type": "string"
                },
                "id": {
                    "type": "number"
                },
                "lastName": {
                    "type": "string"
                }
            },
            "required": [
                "firstName",
                "lastName",
                "id"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/NotifyConnection"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "string"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "NotifyConnection",
    "x-amazon-events-source": "myapp.users"
}

NotifyCustomers

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "NotifyCustomers",
    "definitions": {
        "Brand": {
            "properties": {
                "code": {
                    "type": "string"
                }
            },
            "required": [
                "code"
            ],
            "type": "object"
        },
        "Data": {
            "properties": {
                "action": {
                    "type": "string"
                },
                "brand": {
                    "$ref": "#/definitions/Brand"
                },
                "items": {
                    "items": {
                        "$ref": "#/definitions/DataItem"
                    },
                    "type": "array"
                },
                "email": {
                    "type": "string"
                },
                "hasAccount": {
                    "type": "boolean"
                },
                "id": {
                    "type": "number"
                },
                "name": {
                    "type": "string"
                },
                "user": {
                    "$ref": "#/definitions/User"
                }
            },
            "required": [
                "hasAccount",
                "items",
                "name",
                "action",
                "id",
                "brand",
                "user",
                "email"
            ],
            "type": "object"
        },
        "DataItem": {
            "properties": {
                "amountInCents": {
                    "type": "number"
                },
                "description": {
                    "type": "string"
                },
                "id": {
                    "type": "number"
                },
                "title": {
                    "type": "string"
                }
            },
            "required": [
                "amountInCents",
                "description",
                "id",
                "title"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "correlationId": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service",
                "correlationId"
            ],
            "type": "object"
        },
        "NotifyCustomers": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        },
        "User": {
            "properties": {
                "firstName": {
                    "type": "string"
                },
                "id": {
                    "type": "number"
                },
                "lastName": {
                    "type": "string"
                }
            },
            "required": [
                "firstName",
                "lastName",
                "id"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/NotifyCustomers"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "string"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "NotifyCustomers",
    "x-amazon-events-source": "myapp.users"
}

UnsubscribeFromEmails

Rules

  1. user-service-dev-UnsubscribeFromEmailsUnsubscribeF-1AEVDBIAA49H2

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "UnsubscribeFromEmails",
    "definitions": {
        "Brand": {
            "properties": {
                "code": {
                    "type": "string"
                }
            },
            "required": [
                "code"
            ],
            "type": "object"
        },
        "Data": {
            "properties": {
                "brand": {
                    "$ref": "#/definitions/Brand"
                },
                "email": {
                    "type": "string"
                },
                "firstName": {
                    "type": "string"
                }
            },
            "required": [
                "firstName",
                "brand",
                "email"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "correlationId": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service",
                "correlationId"
            ],
            "type": "object"
        },
        "UnsubscribeFromEmails": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/UnsubscribeFromEmails"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "string"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "UnsubscribeFromEmails",
    "x-amazon-events-source": "myapp.users"
}

UserCreated

Rules

  1. email-platform-dev-SendEmailUserCreatedEvent-1RLPO22B6WFL3

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "UserCreated",
    "definitions": {
        "Brand": {
            "properties": {
                "code": {
                    "type": "string"
                }
            },
            "required": [
                "code"
            ],
            "type": "object"
        },
        "Data": {
            "properties": {
                "brand": {
                    "$ref": "#/definitions/Brand"
                },
                "confirmEmailToken": {
                    "type": "string"
                },
                "email": {
                    "type": "string"
                },
                "firstName": {
                    "type": "string"
                },
                "id": {
                    "type": "number"
                }
            },
            "required": [
                "confirmEmailToken",
                "firstName",
                "id",
                "brand",
                "email"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "correlationId": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service",
                "correlationId"
            ],
            "type": "object"
        },
        "UserCreated": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/UserCreated"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "object"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "UserCreated",
    "x-amazon-events-source": "myapp.users"
}

UserForgotPassword

Rules

  1. email-platform-dev-SendEmailUserCreatedEvent-1RLPO22B6WFL3

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "UserForgotPassword",
    "definitions": {
        "Brand": {
            "properties": {
                "code": {
                    "type": "string"
                }
            },
            "required": [
                "code"
            ],
            "type": "object"
        },
        "Data": {
            "properties": {
                "brand": {
                    "$ref": "#/definitions/Brand"
                },
                "email": {
                    "type": "string"
                },
                "firstName": {
                    "type": "string"
                },
                "id": {
                    "type": "number"
                },
                "resetPasswordToken": {
                    "type": "string"
                }
            },
            "required": [
                "firstName",
                "resetPasswordToken",
                "id",
                "brand",
                "email"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "correlationId": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service",
                "correlationId"
            ],
            "type": "object"
        },
        "UserForgotPassword": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/UserForgotPassword"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "object"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "UserForgotPassword",
    "x-amazon-events-source": "myapp.users"
}

UserHasNotConfirmedAccount

Rules

  1. email-platform-dev-SendEmailUserCreatedEvent-1RLPO22B6WFL3

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "UserHasNotConfirmedAccount",
    "definitions": {
        "Brand": {
            "properties": {
                "code": {
                    "type": "string"
                }
            },
            "required": [
                "code"
            ],
            "type": "object"
        },
        "Data": {
            "properties": {
                "brand": {
                    "$ref": "#/definitions/Brand"
                },
                "confirmEmailToken": {
                    "type": "string"
                },
                "confirmedEmailStatus": {
                    "type": "string"
                },
                "email": {
                    "type": "string"
                },
                "firstName": {
                    "type": "string"
                },
                "id": {
                    "type": "number"
                }
            },
            "required": [
                "confirmEmailToken",
                "firstName",
                "confirmedEmailStatus",
                "id",
                "brand",
                "email"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "correlationId": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service",
                "correlationId"
            ],
            "type": "object"
        },
        "UserHasNotConfirmedAccount": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/UserHasNotConfirmedAccount"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "object"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "UserHasNotConfirmedAccount",
    "x-amazon-events-source": "myapp.users"
}

UserLoggedIn

Rules

  1. email-platform-dev-SendEmailUserLoggedInEvent-1ILDQX0OES2DG

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "UserLoggedIn",
    "definitions": {
        "Brand": {
            "properties": {
                "code": {
                    "type": "string"
                }
            },
            "required": [
                "code"
            ],
            "type": "object"
        },
        "Data": {
            "properties": {
                "brand": {
                    "$ref": "#/definitions/Brand"
                },
                "confirmEmailToken": {
                    "type": "string"
                },
                "confirmedEmailStatus": {
                    "type": "string"
                },
                "email": {
                    "type": "string"
                },
                "firstName": {
                    "type": "string"
                },
                "id": {
                    "type": "number"
                }
            },
            "required": [
                "confirmEmailToken",
                "firstName",
                "confirmedEmailStatus",
                "id",
                "brand",
                "email"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "correlationId": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service",
                "correlationId"
            ],
            "type": "object"
        },
        "UserLoggedIn": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/UserLoggedIn"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "object"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "UserLoggedIn",
    "x-amazon-events-source": "myapp.users"
}

UserMedicalConditionOutcomeProcessed

Rules

  1. medical-conditions-servic-UpdateDecisionUserMedica-1RARYGR8TQN46
  2. medical-conditions-servic-WriteConditionToS3Medica-1D5JCH6KY905K

Schema

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "UserMedicalConditionOutcomeProcessed",
    "definitions": {
        "Choice": {
            "properties": {
                "label": {
                    "type": "string"
                }
            },
            "type": "object"
        },
        "Data": {
            "properties": {
                "condition": {
                    "type": "string"
                },
                "decisionId": {
                    "type": "number"
                },
                "outcome": {
                    "type": "string"
                },
                "surveyResponse": {
                    "$ref": "#/definitions/SurveyResponse"
                },
                "userId": {
                    "type": "number"
                }
            },
            "required": [
                "condition",
                "surveyResponse",
                "decisionId",
                "userId",
                "outcome"
            ],
            "type": "object"
        },
        "Definition": {
            "properties": {
                "fields": {
                    "items": {
                        "$ref": "#/definitions/DefinitionItem"
                    },
                    "type": "array"
                },
                "id": {
                    "type": "string"
                },
                "title": {
                    "type": "string"
                }
            },
            "required": [
                "id",
                "fields",
                "title"
            ],
            "type": "object"
        },
        "DefinitionItem": {
            "properties": {
                "choices": {
                    "items": {
                        "$ref": "#/definitions/DefinitionItemItem"
                    },
                    "type": "array"
                },
                "id": {
                    "type": "string"
                },
                "properties": {
                    "$ref": "#/definitions/Properties"
                },
                "ref": {
                    "type": "string"
                },
                "title": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                }
            },
            "required": [
                "ref",
                "id",
                "title",
                "type",
                "properties"
            ],
            "type": "object"
        },
        "DefinitionItemItem": {
            "properties": {
                "id": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "label": {
                    "type": [
                        "string",
                        "null"
                    ]
                }
            },
            "required": [
                "id",
                "label"
            ],
            "type": [
                "object",
                "null"
            ]
        },
        "Field": {
            "properties": {
                "id": {
                    "type": "string"
                },
                "ref": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                }
            },
            "required": [
                "ref",
                "id",
                "type"
            ],
            "type": "object"
        },
        "Form_response": {
            "properties": {
                "answers": {
                    "items": {
                        "$ref": "#/definitions/Form_responseItem"
                    },
                    "type": "array"
                },
                "definition": {
                    "$ref": "#/definitions/Definition"
                },
                "form_id": {
                    "type": "string"
                },
                "hidden": {
                    "$ref": "#/definitions/Hidden"
                },
                "landed_at": {
                    "format": "date-time",
                    "type": "string"
                },
                "submitted_at": {
                    "format": "date-time",
                    "type": "string"
                },
                "token": {
                    "type": "string"
                }
            },
            "required": [
                "hidden",
                "submitted_at",
                "answers",
                "form_id",
                "landed_at",
                "definition",
                "token"
            ],
            "type": "object"
        },
        "Form_responseItem": {
            "properties": {
                "choice": {
                    "$ref": "#/definitions/Choice"
                },
                "field": {
                    "$ref": "#/definitions/Field"
                },
                "number": {
                    "type": "number"
                },
                "type": {
                    "type": "string"
                }
            },
            "required": [
                "field",
                "type"
            ],
            "type": "object"
        },
        "Hidden": {
            "properties": {
                "condition": {
                    "type": "string"
                },
                "decision_id": {
                    "type": "string"
                },
                "first_name": {
                    "type": "string"
                },
                "offline": {
                    "type": "string"
                },
                "user_id": {
                    "type": "string"
                }
            },
            "required": [
                "offline",
                "condition",
                "decision_id",
                "user_id",
                "first_name"
            ],
            "type": "object"
        },
        "Metadata": {
            "properties": {
                "domain": {
                    "type": "string"
                },
                "service": {
                    "type": "string"
                }
            },
            "required": [
                "service",
                "domain"
            ],
            "type": "object"
        },
        "Properties": {
            "type": "object"
        },
        "SurveyResponse": {
            "properties": {
                "event_id": {
                    "type": "string"
                },
                "event_type": {
                    "type": "string"
                },
                "form_response": {
                    "$ref": "#/definitions/Form_response"
                }
            },
            "required": [
                "event_id",
                "event_type",
                "form_response"
            ],
            "type": "object"
        },
        "UserMedicalConditionOutcomeProcessed": {
            "properties": {
                "data": {
                    "$ref": "#/definitions/Data"
                },
                "metadata": {
                    "$ref": "#/definitions/Metadata"
                }
            },
            "required": [
                "metadata",
                "data"
            ],
            "type": "object"
        }
    },
    "properties": {
        "account": {
            "type": "string"
        },
        "detail": {
            "$ref": "#/definitions/UserMedicalConditionOutcomeProcessed"
        },
        "detail-type": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "region": {
            "type": "string"
        },
        "resources": {
            "items": {
                "type": "string"
            },
            "type": "array"
        },
        "source": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "detail-type",
        "resources",
        "detail",
        "id",
        "source",
        "time",
        "region",
        "version",
        "account"
    ],
    "type": "object",
    "x-amazon-events-detail-type": "UserMedicalConditionOutcomeProcessed",
    "x-amazon-events-source": "myapp.users"
}

}