Skip to main content

Security Events Schema

Events emitted from Stax Events follow a defined schema. For generic guidance, see Event Schemas.

Security: UserAuthenticationEvent

An event where a Stax user has authenticated to Stax.

{
"version": "0",
"id": "8309d283-775a-29bc-9b9d-f6589ecc3541",
"detail-type": "Security: UserAuthenticationEvent",
"source": "aws.partner/stax.io/123456789012/default",
"account": "123456789012",
"time": "2019-08-24T14:15:22Z",
"region": "string",
"resources": [],
"detail": {
"meta": {
"customer": {
"id": "string",
"name": "string"
},
"organization": {
"id": "string",
"name": "string",
"alias": "string"
},
"user": {
"id": "string",
"username": "string"
},
"aws": {
"accountId": "string",
"accountName": "string",
"region": "string"
}
},
"staxEventVersion": "string",
"staxEventID": "string",
"staxEventTime": "2019-08-24T14:15:22Z",
"staxEventSource": "stax.auth",
"staxEventType": "Security",
"staxEventName": "UserAuthenticationEvent",
"userID": "string",
"username": "string",
"email": "user@example.com",
"role": "string",
"status": "string",
"firstName": "string",
"lastName": "string",
"message": "string",
"authMethod": "Login", "loginType": "Federated"
}
}

This event contains the following unique properties in the detail object:

PropertyTypeRequiredEnumNote
→ userIDstringtrue
→ usernamestringtrue
→ emailstringtrue
→ rolestringtrue
→ statusstringfalseSUCCESS, FAILED
→ firstNamestringfalse
→ lastNamestringfalse
→ messagestringfalse
→ authMethodstringtrueLogin, RefreshToken
→ loginTypestringfalseStax, FederatedPopulated when authMethod is 'Login'

Security: APITokenAuthenticationEvent

An event where a Stax API token has authenticated to Stax.

{
"version": "0",
"id": "8309d283-775a-29bc-9b9d-f6589ecc3541",
"detail-type": "Security: APITokenAuthenticationEvent",
"source": "aws.partner/stax.io/123456789012/default",
"account": "123456789012",
"time": "2019-08-24T14:15:22Z",
"region": "string",
"resources": [],
"detail": {
"meta": {
"customer": {
"id": "string",
"name": "string"
},
"organization": {
"id": "string",
"name": "string",
"alias": "string"
},
"user": {
"id": "string",
"username": "string"
},
"aws": {
"accountId": "string",
"accountName": "string",
"region": "string"
}
},
"staxEventVersion": "string",
"staxEventID": "string",
"staxEventTime": "2019-08-24T14:15:22Z",
"staxEventSource": "stax.auth",
"staxEventType": "Security",
"staxEventName": "APITokenAuthenticationEvent",
"userID": "string",
"role": "string",
"status": "string",
"name": "string",
"message": "string",
"authMethod": "Login"
}
}

This event contains the following unique properties in the detail object:

PropertyTypeRequiredEnum
→ userIDstringtrue
→ rolestringtrue
→ statusstringfalse
→ namestringtrue
→ messagestringfalse
→ authMethodstringtrue

Security: UserCreateEvent

An event where a new Stax user has been created.

note

This event does not apply to federated users which are synchronized between your identity provider (IdP) and the Stax Identity Service.

{
"version": "0",
"id": "8309d283-775a-29bc-9b9d-f6589ecc3541",
"detail-type": "Security: UserCreateEvent",
"source": "aws.partner/stax.io/123456789012/default",
"account": "123456789012",
"time": "2019-08-24T14:15:22Z",
"region": "string",
"resources": [],
"detail": {
"meta": {
"customer": {
"id": "string",
"name": "string"
},
"organization": {
"id": "string",
"name": "string",
"alias": "string"
},
"user": {
"id": "string",
"username": "string"
},
"aws": {
"accountId": "string",
"accountName": "string",
"region": "string"
}
},
"staxEventVersion": "string",
"staxEventID": "string",
"staxEventTime": "2019-08-24T14:15:22Z",
"staxEventSource": "stax.identity",
"staxEventType": "Security",
"staxEventName": "UserCreateEvent",
"role": "string",
"userID": "string",
"email": "user@example.com",
"status": "string",
"errorCode": "string",
"firstName": "string",
"lastName": "string",
"message": "string",
"userStatus": "string"
}
}

This event contains the following unique properties in the detail object:

PropertyTypeRequiredEnum
→ rolestringfalsecustomer_root, customer_admin, customer_user, customer_readonly, customer_costadmin
→ userIDstringfalse
→ emailstring(email)true
→ statusstringtrueSUCCESS, FAILED
→ errorCodestringfalseLocalUserInviteDisabled, ResourceAlreadyExists
→ firstNamestringtrue
→ lastNamestringtrue
→ messagestringtrue
→ userStatusstringtrueINVITED

Security: UserUpdateEvent

An event where a Stax user has been updated.

{
"version": "0",
"id": "8309d283-775a-29bc-9b9d-f6589ecc3541",
"detail-type": "Security: UserUpdateEvent",
"source": "aws.partner/stax.io/123456789012/default",
"account": "123456789012",
"time": "2019-08-24T14:15:22Z",
"region": "string",
"resources": [],
"detail": {
"meta": {
"customer": {
"id": "string",
"name": "string"
},
"organization": {
"id": "string",
"name": "string",
"alias": "string"
},
"user": {
"id": "string",
"username": "string"
},
"aws": {
"accountId": "string",
"accountName": "string",
"region": "string"
}
},
"staxEventVersion": "string",
"staxEventID": "string",
"staxEventTime": "2019-08-24T14:15:22Z",
"staxEventSource": "stax.identity",
"staxEventType": "Security",
"staxEventName": "UserUpdateEvent",
"role": "string",
"userID": "string",
"email": "user@example.com",
"status": "string",
"errorCode": "string",
"firstName": "string",
"lastName": "string",
"message": "string",
"userStatus": "string"
}
}

This event contains the following unique properties in the detail object:

PropertyTypeRequiredEnum
→ rolestringfalsecustomer_root, customer_admin, customer_user, customer_readonly
→ userIDstringtrue
→ emailstring(email)false
→ statusstringtrueSUCCESS, FAILED
→ errorCodestringfalseUserNotFound, UserDisabled, ResourceAlreadyExists
→ firstNamestringfalse
→ lastNamestringfalse
→ messagestringtrue
→ userStatusstringtrueACTIVE,DISABLED

Security: UserDeleteEvent

An event where a Stax user has been deleted.

{
"version": "0",
"id": "8309d283-775a-29bc-9b9d-f6589ecc3541",
"detail-type": "Security: UserDeleteEvent",
"source": "aws.partner/stax.io/123456789012/default",
"account": "123456789012",
"time": "2019-08-24T14:15:22Z",
"region": "string",
"resources": [],
"detail": {
"meta": {
"customer": {
"id": "string",
"name": "string"
},
"organization": {
"id": "string",
"name": "string",
"alias": "string"
},
"user": {
"id": "string",
"username": "string"
},
"aws": {
"accountId": "string",
"accountName": "string",
"region": "string"
}
},
"staxEventVersion": "string",
"staxEventID": "string",
"staxEventTime": "2019-08-24T14:15:22Z",
"staxEventSource": "stax.identity",
"staxEventType": "Security",
"staxEventName": "UserDeleteEvent",
"userID": "string",
"email": "user@example.com",
"status": "string",
"errorCode": "string",
"firstName": "string",
"lastName": "string",
"message": "string",
"userStatus": "string"
}
}

This event contains the following unique properties in the detail object:

PropertyTypeRequiredEnum
→ userIDstringtrue
→ emailstring(email)false
→ statusstringtrueSUCCESS, FAILED
→ errorCodestringfalseUserNotFound
→ firstNamestringfalse
→ lastNamestringfalse
→ messagestringtrue
→ userStatusstringtrueDELETED

Security: UserEmailVerificationEvent

An event where an email address verification email has been sent to a Stax user.

{
"version": "0",
"id": "8309d283-775a-29bc-9b9d-f6589ecc3541",
"detail-type": "Security: UserEmailVerificationEvent",
"source": "aws.partner/stax.io/123456789012/default",
"account": "123456789012",
"time": "2019-08-24T14:15:22Z",
"region": "string",
"resources": [],
"detail": {
"meta": {
"customer": {
"id": "string",
"name": "string"
},
"organization": {
"id": "string",
"name": "string",
"alias": "string"
},
"user": {
"id": "string",
"username": "string"
},
"aws": {
"accountId": "string",
"accountName": "string",
"region": "string"
}
},
"staxEventVersion": "string",
"staxEventID": "string",
"staxEventTime": "2019-08-24T14:15:22Z",
"staxEventSource": "stax.identity",
"staxEventType": "Security",
"staxEventName": "UserEmailVerificationEvent",
"userID": "string",
"email": "user@example.com",
"status": "string",
"firstName": "string",
"lastName": "string",
"message": "string"
}
}

This event contains the following unique properties in the detail object:

PropertyTypeRequiredEnum
→ userIDstringtrue
→ emailstring(email)false
→ statusstringtrueSUCCESS, FAILED
→ firstNamestringfalseBadRequest
→ lastNamestringfalse
→ messagestringtrue

Security: UserPasswordResetEvent

An event where a password reset email has been sent to a Stax user.

{
"version": "0",
"id": "8309d283-775a-29bc-9b9d-f6589ecc3541",
"detail-type": "Security: UserPasswordResetEvent",
"source": "aws.partner/stax.io/123456789012/default",
"account": "123456789012",
"time": "2019-08-24T14:15:22Z",
"region": "string",
"resources": [],
"detail": {
"meta": {
"customer": {
"id": "string",
"name": "string"
},
"organization": {
"id": "string",
"name": "string",
"alias": "string"
},
"user": {
"id": "string",
"username": "string"
},
"aws": {
"accountId": "string",
"accountName": "string",
"region": "string"
}
},
"staxEventVersion": "string",
"staxEventID": "string",
"staxEventTime": "2019-08-24T14:15:22Z",
"staxEventSource": "stax.identity",
"staxEventType": "Security",
"staxEventName": "UserPasswordResetEvent",
"userID": "string",
"email": "user@example.com",
"status": "string",
"firstName": "string",
"lastName": "string",
"message": "string"
}
}

This event contains the following unique properties in the detail object:

PropertyTypeRequiredEnum
→ userIDstringtrue
→ emailstring(email)false
→ statusstringtrueSUCCESS, FAILED
→ firstNamestringfalseBadRequest
→ lastNamestringfalse
→ messagestringtrue

Security: GroupCreateEvent

An event where a new Stax group has been created.

{
"version": "0",
"id": "8309d283-775a-29bc-9b9d-f6589ecc3541",
"detail-type": "Security: GroupCreateEvent",
"source": "aws.partner/stax.io/123456789012/default",
"account": "123456789012",
"time": "2019-08-24T14:15:22Z",
"region": "string",
"resources": [],
"detail": {
"meta": {
"customer": {
"id": "string",
"name": "string"
},
"organization": {
"id": "string",
"name": "string",
"alias": "string"
},
"user": {
"id": "string",
"username": "string"
},
"aws": {
"accountId": "string",
"accountName": "string",
"region": "string"
}
},
"staxEventVersion": "string",
"staxEventID": "string",
"staxEventTime": "2019-08-24T14:15:22Z",
"staxEventSource": "stax.identity",
"staxEventType": "Security",
"staxEventName": "GroupCreateEvent",
"groupID": "string",
"groupName": "string",
"status": "string",
"errorCode": "string",
"message": "string"
}
}

This event contains the following unique properties in the detail object:

PropertyTypeRequiredEnum
→ groupIDstringfalse
→ groupNamestringtrue
→ statusstringtrueSUCCESS, FAILED
→ errorCodestringfalseResourceAlreadyExists
→ messagestringtrue

Security: GroupUpdateEvent

An event where a Stax group has been updated.

{
"version": "0",
"id": "8309d283-775a-29bc-9b9d-f6589ecc3541",
"detail-type": "Security: GroupUpdateEvent",
"source": "aws.partner/stax.io/123456789012/default",
"account": "123456789012",
"time": "2019-08-24T14:15:22Z",
"region": "string",
"resources": [],
"detail": {
"meta": {
"customer": {
"id": "string",
"name": "string"
},
"organization": {
"id": "string",
"name": "string",
"alias": "string"
},
"user": {
"id": "string",
"username": "string"
},
"aws": {
"accountId": "string",
"accountName": "string",
"region": "string"
}
},
"staxEventVersion": "string",
"staxEventID": "string",
"staxEventTime": "2019-08-24T14:15:22Z",
"staxEventSource": "stax.identity",
"staxEventType": "Security",
"staxEventName": "GroupUpdateEvent",
"groupID": "string",
"groupName": "string",
"status": "string",
"errorCode": "string",
"message": "string"
}
}

This event contains the following unique properties in the detail object:

PropertyTypeRequiredEnum
→ groupIDstringtrue
→ groupNamestringfalse
→ statusstringtrueSUCCESS, FAILED
→ errorCodestringfalseGroupNotFound, ResourceAlreadyExists
→ messagestringtrue

Security: GroupDeleteEvent

An event where a Stax group has been deleted.

{
"version": "0",
"id": "8309d283-775a-29bc-9b9d-f6589ecc3541",
"detail-type": "Security: GroupDeleteEvent",
"source": "aws.partner/stax.io/123456789012/default",
"account": "123456789012",
"time": "2019-08-24T14:15:22Z",
"region": "string",
"resources": [],
"detail": {
"meta": {
"customer": {
"id": "string",
"name": "string"
},
"organization": {
"id": "string",
"name": "string",
"alias": "string"
},
"user": {
"id": "string",
"username": "string"
},
"aws": {
"accountId": "string",
"accountName": "string",
"region": "string"
}
},
"staxEventVersion": "string",
"staxEventID": "string",
"staxEventTime": "2019-08-24T14:15:22Z",
"staxEventSource": "stax.identity",
"staxEventType": "Security",
"staxEventName": "GroupDeleteEvent",
"groupID": "string",
"groupName": "string",
"status": "string",
"errorCode": "string",
"message": "string"
}
}

This event contains the following unique properties in the detail object:

PropertyTypeRequiredEnum
→ groupIDstringtrue
→ groupNamestringfalse
→ statusstringtrueSUCCESS, FAILED
→ errorCodestringfalseGroupNotFound
→ messagestringtrue

Security: GroupAddMemberEvent

An event where a Stax user has been added to a Stax group.

{
"version": "0",
"id": "8309d283-775a-29bc-9b9d-f6589ecc3541",
"detail-type": "Security: GroupAddMemberEvent",
"source": "aws.partner/stax.io/123456789012/default",
"account": "123456789012",
"time": "2019-08-24T14:15:22Z",
"region": "string",
"resources": [],
"detail": {
"meta": {
"customer": {
"id": "string",
"name": "string"
},
"organization": {
"id": "string",
"name": "string",
"alias": "string"
},
"user": {
"id": "string",
"username": "string"
},
"aws": {
"accountId": "string",
"accountName": "string",
"region": "string"
}
},
"staxEventVersion": "string",
"staxEventID": "string",
"staxEventTime": "2019-08-24T14:15:22Z",
"staxEventSource": "stax.identity",
"staxEventType": "Security",
"staxEventName": "GroupAddMemberEvent",
"groupID": "string",
"groupName": "string",
"userID": "string",
"email": "user@example.com",
"firstName": "string",
"lastName": "string",
"status": "string",
"errorCode": "string",
"message": "string"
}
}

This event contains the following unique properties in the detail object:

PropertyTypeRequiredEnum
→ groupIDstringtrue
→ groupNamestringfalse
→ userIDstringtrue
→ emailstring(email)false
→ firstNamestringfalse
→ lastNamestringfalse
→ statusstringtrueSUCCESS, FAILED
→ errorCodestringfalseNotFound
→ messagestringtrue

Security: GroupRemoveMemberEvent

An event where a Stax user has been removed from a Stax group.

{
"version": "0",
"id": "8309d283-775a-29bc-9b9d-f6589ecc3541",
"detail-type": "Security: GroupRemoveMemberEvent",
"source": "aws.partner/stax.io/123456789012/default",
"account": "123456789012",
"time": "2019-08-24T14:15:22Z",
"region": "string",
"resources": [],
"detail": {
"meta": {
"customer": {
"id": "string",
"name": "string"
},
"organization": {
"id": "string",
"name": "string",
"alias": "string"
},
"user": {
"id": "string",
"username": "string"
},
"aws": {
"accountId": "string",
"accountName": "string",
"region": "string"
}
},
"staxEventVersion": "string",
"staxEventID": "string",
"staxEventTime": "2019-08-24T14:15:22Z",
"staxEventSource": "stax.identity",
"staxEventType": "Security",
"staxEventName": "GroupRemoveMemberEvent",
"groupID": "string",
"groupName": "string",
"userID": "string",
"email": "user@example.com",
"firstName": "string",
"lastName": "string",
"status": "string",
"errorCode": "string",
"message": "string"
}
}

This event contains the following unique properties in the detail object:

PropertyTypeRequiredEnum
→ groupIDstringtrue
→ groupNamestringfalse
→ userIDstringtrue
→ emailstring(email)false
→ firstNamestringfalse
→ lastNamestringfalse
→ statusstringtrueSUCCESS, FAILED
→ errorCodestringfalseNotFound
→ messagestringtrue

Security: PolicyCreateEvent

An event where a Stax policy has been created

{
"version": "0",
"id": "f081be37-5ac7-7cb0-ad04-08b73bb977a1",
"detail-type": "Security: PolicyCreateEvent",
"source": "aws.partner/stax.io/123456789012/default",
"account": "123456789012",
"time": "2020-10-06T05:40:11Z",
"region": "string",
"resources": [],
"detail": {
"meta": {
"customer": {
"id": "string",
"name": "string"
},
"organization": {
"alias": "string",
"id": "string",
"name": "string"
},
"user": {
"id": "string",
"username": "string"
}
},
"policyId": "string",
"policyName": "string",
"status": "SUCCESS",
"staxEventID": "string",
"staxEventName": "PolicyCreateEvent",
"staxEventSource": "stax.account",
"staxEventTime": "2020-10-06T05:40:11.595518Z",
"staxEventType": "Security",
"staxEventVersion": "1"
}
}

This event contains the following unique properties in the detail object:

PropertyTypeRequiredEnum
→ policyIdstringfalse
→ policyNamestringtrue
→ statusstringtrueSUCCESS
FAILED
→ errorCodestringfalsePolicyNameConflict
→ messagestringfalse

Security: PolicyUpdateEvent

An event where a Stax policy has been modified.

{
"version": "0",
"id": "e59038df-5128-77c3-69f3-a0aee3daf88c",
"detail-type": "Security: PolicyUpdateEvent",
"source": "aws.partner/stax.io/123456789012/default",
"account": "123456789012",
"time": "2020-10-06T05:26:32Z",
"region": "string",
"resources": [],
"detail": {
"meta": {
"customer": {
"id": "string",
"name": "string"
},
"organization": {
"alias": "string",
"id": "string",
"name": "string"
},
"user": {
"id": "string",
"username": "string"
}
},
"policyId": "string",
"policyName": "string",
"status": "SUCCESS",
"staxEventID": "string",
"staxEventName": "PolicyUpdateEvent",
"staxEventSource": "stax.account",
"staxEventTime": "2020-10-06T05:26:32.485063Z",
"staxEventType": "Security",
"staxEventVersion": "1"
}
}

This event contains the following unique properties in the detail object:

PropertyTypeRequiredEnum
→ policyIdstringtrue
→ policyNamestringfalse
→ statusstringtrueSUCCESS
FAILED
→ errorCodeanyfalsePolicyNotFound
PolicyNameConflict
→ messageanyfalse

Security: PolicyDeleteEvent

An event where a Stax policy has been deleted

{
"version": "0",
"id": "074da2bb-bda2-1c87-a2aa-db123f3a3bc6",
"detail-type": "Security: PolicyDeleteEvent",
"source": "aws.partner/stax.io/123456789012/default",
"account": "123456789012",
"time": "2020-10-06T05:59:30Z",
"region": "string",
"resources": [],
"detail": {
"meta": {
"customer": {
"id": "string",
"name": "string"
},
"organization": {
"alias": "string",
"id": "string",
"name": "string"
},
"user": {
"id": "string",
"username": "string"
}
},
"policyId": "string",
"status": "SUCCESS",
"staxEventID": "string",
"staxEventName": "PolicyDeleteEvent",
"staxEventSource": "stax.account",
"staxEventTime": "2020-10-06T05:59:30.670672Z",
"staxEventType": "Security",
"staxEventVersion": "1"
}
}

This event contains the following unique properties in the detail object:

PropertyTypeRequiredEnum
→ policyIdstringtrue
→ policyNamestringfalse
→ statusstringtrueSUCCESS
FAILED
→ errorCodeanyfalsePolicyNotFound
PolicyInUse
→ messagestringfalse

Security: PolicyAttachToOrganizationEvent

An event where a Stax policy has been attached to a Stax organization

{
"version": "0",
"id": "be1b3c29-4046-8707-a8af-fb89c7f200c8",
"detail-type": "Security: PolicyAttachToOrganizationEvent",
"source": "aws.partner/stax.io/123456789012/default",
"account": "123456789012",
"time": "2020-10-06T06:16:11Z",
"region": "string",
"resources": [],
"detail": {
"meta": {
"customer": {
"id": "string",
"name": "string"
},
"organization": {
"alias": "string",
"id": "string",
"name": "string"
},
"user": {
"id": "string",
"username": "string"
}
},
"organizationId": "string",
"policyId": "string",
"status": "SUCCESS",
"staxEventID": "string",
"staxEventName": "PolicyAttachToOrganizationEvent",
"staxEventSource": "stax.account",
"staxEventTime": "2020-10-06T06:16:11.707693Z",
"staxEventType": "Security",
"staxEventVersion": "1"
}
}

This event contains the following unique properties in the detail object:

PropertyTypeRequiredEnum
→ policyIdstringtrue
→ organizationIdstringtrue
→ policyNamestringfalse
→ statusstringtrueSUCCESS
FAILED
→ errorCodeanyfalsePolicyReserved
PolicyNotAttachable
PolicyNotFound
PolicyAlreadyAttached
MaximumPoliciesReached
→ messagestringfalse

Security: PolicyDetachFromOrganizationEvent

An event where a Stax policy has been detached from a Stax organization

{
"version": "0",
"id": "3e74347b-a9e0-6c15-d2cd-115e9b578177",
"detail-type": "Security: PolicyDetachFromOrganizationEvent",
"source": "aws.partner/stax.io/123456789012/default",
"account": "123456789012",
"time": "2020-10-06T06:28:38Z",
"region": "string",
"resources": [],
"detail": {
"meta": {
"customer": {
"id": "string",
"name": "string"
},
"organization": {
"alias": "string",
"id": "string",
"name": "string"
},
"user": {
"id": "string",
"username": "string"
}
},
"organizationId": "string",
"policyId": "string",
"status": "SUCCESS",
"staxEventID": "string",
"staxEventName": "PolicyDetachFromOrganizationEvent",
"staxEventSource": "stax.account",
"staxEventTime": "2020-10-06T06:28:38.343113Z",
"staxEventType": "Security",
"staxEventVersion": "1"
}
}

This event contains the following unique properties in the detail object:

PropertyTypeRequiredEnum
→ policyIdstringtrue
→ organizationIdstringtrue
→ policyNamestringfalse
→ statusstringtrueSUCCESS
FAILED
→ errorCodeanyfalsePolicyNotFound
PolicyReserved
→ messagestringfalse

Security: ApiTokenCreateEvent

An event where a Stax API token has been created

{
"version": "0",
"id": "b2c83e1f-5ac3-3651-5f90-572c32109474",
"detail-type": "Security: ApiTokenCreateEvent",
"source": "aws.partner/stax.io/123456789012/default",
"account": "123456789012",
"time": "2020-10-06T07:02:45Z",
"region": "string",
"resources": [],
"detail": {
"apiTokenName": "string",
"apiTokenRole": "string",
"meta": {
"customer": {
"id": "string",
"name": "string"
},
"organization": {
"alias": "string",
"id": "string",
"name": "string"
},
"user": {
"id": "string",
"username": "string"
}
},
"status": "SUCCESS",
"staxEventID": "string",
"staxEventName": "ApiTokenCreateEvent",
"staxEventSource": "stax.api",
"staxEventTime": "2020-10-06T07:02:45.787741Z",
"staxEventType": "Security",
"staxEventVersion": "1"
}
}

This event contains the following unique properties in the detail object:

PropertyTypeRequiredEnum
→ apiTokenIdstringfalse
→ apiTokenNamestringtrue
→ apiTokenRolestringtrue
→ descriptionstringfalse
→ ssmKeyIdstringfalse
→ statusstringtrueSUCCESS
FAILED
→ errorCodeanyfalseApiTokenNameConflict
SsmStoreFailed
→ messagestringfalse

Security: ApiTokenUpdateEvent

An event where a Stax API token has been modified.

{
"version": "0",
"id": "d365c825-63c1-95da-5fbc-9f35f6ff5513",
"detail-type": "Security: ApiTokenUpdateEvent",
"source": "aws.partner/stax.io/123456789012/default",
"account": "123456789012",
"time": "2020-10-06T07:04:36Z",
"region": "string",
"resources": [],
"detail": {
"apiTokenId": "string",
"apiTokenName": "string",
"apiTokenRole": "string",
"description": "string",
"meta": {
"customer": {
"id": "string",
"name": "string"
},
"organization": {
"alias": "string",
"id": "string",
"name": "string"
},
"user": {
"id": "string",
"username": "string"
}
},
"status": "SUCCESS",
"staxEventID": "string",
"staxEventName": "ApiTokenUpdateEvent",
"staxEventSource": "stax.api",
"staxEventTime": "2020-10-06T07:04:36.083333Z",
"staxEventType": "Security",
"staxEventVersion": "1"
}
}

This event contains the following unique properties in the detail object:

PropertyTypeRequiredEnum
→ apiTokenIdstringtrue
→ apiTokenNamestringfalse
→ apiTokenRolestringfalse
→ descriptionstringfalse
→ statusstringtrueSUCCESS
FAILED
→ errorCodeanyfalseApiTokenNotFound
→ messagestringfalse

Security: ApiTokenDeleteEvent

An event where a Stax API token has been deleted.

{
"version": "0",
"id": "0851b84b-4222-e977-6461-57d399f16878",
"detail-type": "Security: ApiTokenDeleteEvent",
"source": "aws.partner/stax.io/123456789012/default",
"account": "123456789012",
"time": "2020-10-06T07:06:55Z",
"region": "string",
"resources": [],
"detail": {
"apiTokenId": "string",
"meta": {
"customer": {
"id": "string",
"name": "string"
},
"organization": {
"alias": "string",
"id": "string",
"name": "string"
},
"user": {
"id": "string",
"username": "string"
}
},
"status": "SUCCESS",
"staxEventID": "string",
"staxEventName": "ApiTokenDeleteEvent",
"staxEventSource": "stax.api",
"staxEventTime": "2020-10-06T07:06:55.101194Z",
"staxEventType": "Security",
"staxEventVersion": "1"
}
}

This event contains the following unique properties in the detail object:

PropertyTypeRequiredEnum
→ apiTokenIdstringtrue
→ apiTokenNamestringfalse
→ apiTokenRolestringfalse
→ descriptionstringfalse
→ statusstringtrueSUCCESS
FAILED
→ errorCodeanyfalseApiTokenNotFound
→ messagestringfalse