AWS Cloud9 现已不再向新客户提供。AWS Cloud9 的现有客户可以继续正常使用该服务。了解更多
使用 AWS CloudTrail 记录 AWS Cloud9 API 调用
AWS Cloud9 与 CloudTrail 集成,后者是在 AWS Cloud9 中提供用户、角色或 AWS 服务 所采取操作的记录的服务。CloudTrail 将 AWS Cloud9 的所有 API 调用作为事件捕获。捕获的调用包含来自 AWS Cloud9 控制台和来自对 AWS Cloud9 API 的代码调用的调用。如果您创建跟踪记录,则可以使 CloudTrail 事件持续传送到 Amazon Simple Storage Service (Amazon S3) 存储桶(包括 AWS Cloud9 事件)。如果您不配置跟踪记录,则仍可在 CloudTrail 控制台中的 Event history(事件历史记录)中查看最新事件。使用 CloudTrail 收集的信息,您可以确定向 AWS Cloud9 发出了什么请求、发出请求的 IP 地址、何人发出的请求、请求的发出时间以及其他详细信息。
要了解有关 CloudTrail 的更多信息,请参阅AWS CloudTrail用户指南。
CloudTrail 中的 AWS Cloud9 信息
在您创建 AWS 账户时,将在该账户上启用 CloudTrail。当 AWS Cloud9 中发生活动时,该活动将记录在 CloudTrail 事件中,并与其他 AWS 服务事件一同保存在事件历史记录 中。您可以在 AWS 账户中查看、搜索和下载最新事件。有关更多信息,请参阅使用 CloudTrail 事件历史记录查看事件。
对于 AWS 账户中的事件的持续记录(包括 AWS Cloud9 的事件),请创建跟踪记录。通过跟踪记录,CloudTrail 可将日志文件传送至 Simple Storage Service (Amazon S3) 存储桶。预设情况下,在控制台中创建跟踪记录时,此跟踪记录应用于所有AWS 区域。跟踪记录 AWS 分区所有区域的事件,将日志文件传送至指定的 S3 存储桶。此外,您可以配置其他 AWS 服务,进一步分析在 CloudTrail 日志中收集的事件数据并采取行动。有关更多信息,请参阅下列内容:
AWS Cloud9 支持将以下操作记录为 CloudTrail 日志文件中的事件:
-
CreateEnvironmentEC2
-
CreateEnvironmentSSH
-
CreateEnvironmentMembership
-
DeleteEnvironment
-
DeleteEnvironmentMembership
-
DescribeEnvironmentMemberships
-
DescribeEnvironments
-
DescribeEnvironmentStatus
-
ListEnvironments
-
ListTagsForResource
-
TagResource
-
UntagResource
-
UpdateEnvironment
-
UpdateEnvironmentMembership
注意
AWS Cloud9 的某些 CloudTrail 事件不是由公有 API 操作导致的。相反,以下事件是由影响用户身份验证和托管式临时凭证的内部更新启动的:
-
DisableManagedCredentialsByCollaborator
-
EnvironmentTokenSuccessfullyCreated
-
ManagedCredentialsUpdatedOnEnvironment
每个事件或日记账条目都包含有关生成请求的人员信息。身份信息可帮助您确定以下内容:
-
请求是使用根用户凭证还是 AWS Identity and Access Management IAM 用户凭证发出的。
-
请求是使用角色还是联合用户的临时安全凭证发出的。
-
请求是否由其他 AWS 服务 发出。
有关更多信息,请参阅 CloudTrail userIdentity 元素。
了解 AWS Cloud9 日志文件条目
跟踪是一种配置,可用于将事件作为日志文件传送到您指定的 Amazon S3 存储桶。CloudTrail 日志文件包含一个或多个日记账条目。一个事件表示来自任何源的一个请求,包括有关所请求的操作、操作的日期和时间以及请求参数等方面的信息。CloudTrail 日志文件不是公用 API 调用的有序堆栈跟踪,因此它们不会按任何特定顺序显示。
CreateEnvironmentEC2
下面的示例显示了一个 CloudTrail 日志条目,该条目演示了 CreateEnvironmentEC2
操作。
{ "Records": [ { "eventVersion": "1.05", "userIdentity": { "type": "IAMUser", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:iam::111122223333:user/MyUser", "accountId": "111122223333", "accessKeyId": "AKIAIOSFODNN7EXAMPLE", "userName": "MyUser", "sessionContext": { "attributes": { "mfaAuthenticated": "false", "creationDate": "2019-01-14T11:29:47Z" } }, "invokedBy": "signin.amazonaws.com" }, "eventTime": "2019-01-14T11:33:27Z", "eventSource": "cloud9.amazonaws.com", "eventName": "CreateEnvironmentEC2", "awsRegion": "us-west-2", "sourceIPAddress": "192.0.2.0", "userAgent": "signin.amazonaws.com", "requestParameters": { "instanceType": "t2.small", "subnetId": "subnet-1d4a9eEX", "description": "HIDDEN_DUE_TO_SECURITY_REASONS", "dryRun": true, "automaticStopTimeMinutes": 30, "name": "my-test-environment", "clientRequestToken": "cloud9-console-f8e37272-e541-435d-a567-5c684EXAMPLE" }, "responseElements": null, "requestID": "f0e629fb-fd37-49bd-b2cc-e9822EXAMPLE", "eventID": "8a906445-1b2a-47e9-8d7c-5b242EXAMPLE", "eventType": "AwsApiCall", "recipientAccountId": "111122223333" } ] }
CreateEnvironmentSSH
下面的示例显示了一个 CloudTrail 日志条目,该条目演示了 CreateEnvironmentSSH
操作。
{ "Records": [ { "eventVersion": "1.05", "userIdentity": { "type": "IAMUser", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:iam::111122223333:user/MyUser", "accountId": "111122223333", "accessKeyId": "AKIAIOSFODNN7EXAMPLE", "userName": "MyUser", "sessionContext": { "attributes": { "mfaAuthenticated": "false", "creationDate": "2019-01-14T11:29:47Z" } }, "invokedBy": "signin.amazonaws.com" }, "eventTime": "2019-01-14T11:33:27Z", "eventSource": "cloud9.amazonaws.com", "eventName": "CreateEnvironmentSSH", "awsRegion": "us-west-2", "sourceIPAddress": "192.0.2.0", "userAgent": "signin.amazonaws.com", "requestParameters": { "host": "198.51.100.0", "port": 22, "name": "my-ssh-environment", "description": "HIDDEN_DUE_TO_SECURITY_REASONS", "clientRequestToken": "cloud9-console-b015a0e9-469e-43e3-be90-6f432EXAMPLE", "loginName": "ec2-user" }, "responseElements": { "environmentId": "5c39cc4a85d74a8bbb6e23ed6EXAMPLE" }, "requestID": "f0e629fb-fd37-49bd-b2cc-e9822EXAMPLE", "eventID": "8a906445-1b2a-47e9-8d7c-5b242EXAMPLE", "eventType": "AwsApiCall", "recipientAccountId": "111122223333" } ] }
CreateEnvironmentMembership
下面的示例显示了一个 CloudTrail 日志条目,该条目演示了 CreateEnvironmentMembership
操作。
{ "Records": [ { "eventVersion": "1.05", "userIdentity": { "type": "IAMUser", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:iam::111122223333:user/MyUser", "accountId": "111122223333", "accessKeyId": "AKIAIOSFODNN7EXAMPLE", "userName": "MyUser", "sessionContext": { "attributes": { "mfaAuthenticated": "false", "creationDate": "2019-01-14T11:29:47Z" } }, "invokedBy": "signin.amazonaws.com" }, "eventTime": "2019-01-14T11:33:27Z", "eventSource": "cloud9.amazonaws.com", "eventName": "CreateEnvironmentMembership", "awsRegion": "us-west-2", "sourceIPAddress": "192.0.2.0", "userAgent": "signin.amazonaws.com", "requestParameters": { "environmentId": "2f5ff70a640f49398f67e3bdeEXAMPLE", "userArn": "arn:aws:iam::111122223333:user/MyUser", "permissions": "read-write" }, "responseElements": { "membership": { "environmentId": "2f5ff70a640f49398f67e3bdeEXAMPLE", "permissions": "read-write", "userId": "AIDACKCEVSQ6C2EXAMPLE", "userArn": "arn:aws:iam::111122223333:user/MyUser" } }, "requestID": "f0e629fb-fd37-49bd-b2cc-e9822EXAMPLE", "eventID": "8a906445-1b2a-47e9-8d7c-5b242EXAMPLE", "eventType": "AwsApiCall", "recipientAccountId": "111122223333" } ] }
DeleteEnvironment
下面的示例显示了一个 CloudTrail 日志条目,该条目演示了 DeleteEnvironment
操作。
{ "Records": [ { "eventVersion": "1.05", "userIdentity": { "type": "IAMUser", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:iam::111122223333:user/MyUser", "accountId": "111122223333", "accessKeyId": "AKIAIOSFODNN7EXAMPLE", "userName": "MyUser", "sessionContext": { "attributes": { "mfaAuthenticated": "false", "creationDate": "2019-01-14T11:29:47Z" } }, "invokedBy": "signin.amazonaws.com" }, "eventTime": "2019-01-14T11:33:27Z", "eventSource": "cloud9.amazonaws.com", "eventName": "DeleteEnvironment", "awsRegion": "us-west-2", "sourceIPAddress": "192.0.2.0", "userAgent": "signin.amazonaws.com", "requestParameters": { "environmentId": "2f5ff70a640f49398f67e3bdeEXAMPLE" }, "responseElements": null, "requestID": "f0e629fb-fd37-49bd-b2cc-e9822EXAMPLE", "eventID": "8a906445-1b2a-47e9-8d7c-5b242EXAMPLE", "eventType": "AwsApiCall", "recipientAccountId": "111122223333" } ] }
DeleteEnvironmentMembership
下面的示例显示了一个 CloudTrail 日志条目,该条目演示了 DeleteEnvironmentMembership
操作。
{ "Records": [ { "eventVersion": "1.05", "userIdentity": { "type": "IAMUser", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:iam::111122223333:user/MyUser", "accountId": "111122223333", "accessKeyId": "AKIAIOSFODNN7EXAMPLE", "userName": "MyUser", "sessionContext": { "attributes": { "mfaAuthenticated": "false", "creationDate": "2019-01-14T11:29:47Z" } }, "invokedBy": "signin.amazonaws.com" }, "eventTime": "2019-01-14T11:33:27Z", "eventSource": "cloud9.amazonaws.com", "eventName": "DeleteEnvironmentMembership", "awsRegion": "us-west-2", "sourceIPAddress": "192.0.2.0", "userAgent": "signin.amazonaws.com", "requestParameters": { "environmentId": "2f5ff70a640f49398f67e3bdeEXAMPLE", "userArn": "arn:aws:iam::111122223333:user/MyUser", }, "responseElements": null, "requestID": "f0e629fb-fd37-49bd-b2cc-e9822EXAMPLE", "eventID": "8a906445-1b2a-47e9-8d7c-5b242EXAMPLE", "eventType": "AwsApiCall", "recipientAccountId": "111122223333" } ] }
DescribeEnvironmentMemberships
下面的示例显示了一个 CloudTrail 日志条目,该条目演示了 DescribeEnvironmentMemberships
操作。
{ "Records": [ { "eventVersion": "1.05", "userIdentity": { "type": "IAMUser", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:iam::111122223333:user/MyUser", "accountId": "111122223333", "accessKeyId": "AKIAIOSFODNN7EXAMPLE", "userName": "MyUser", "sessionContext": { "attributes": { "mfaAuthenticated": "false", "creationDate": "2019-01-14T11:29:47Z" } }, "invokedBy": "signin.amazonaws.com" }, "eventTime": "2019-01-14T11:33:27Z", "eventSource": "cloud9.amazonaws.com", "eventName": "DescribeEnvironmentMemberships", "awsRegion": "us-west-2", "sourceIPAddress": "192.0.2.0", "userAgent": "signin.amazonaws.com", "requestParameters": { "nextToken": "NEXT_TOKEN_EXAMPLE", "permissions": [ "owner" ], "maxResults": 15 }, "responseElements": null, "requestID": "f0e629fb-fd37-49bd-b2cc-e9822EXAMPLE", "eventID": "8a906445-1b2a-47e9-8d7c-5b242EXAMPLE", "readOnly": true, "eventType": "AwsApiCall", "recipientAccountId": "111122223333" } ] }
DescribeEnvironments
下面的示例显示了一个 CloudTrail 日志条目,该条目演示了 DescribeEnvironments
操作。
{ "Records": [ { "eventVersion": "1.05", "userIdentity": { "type": "IAMUser", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:iam::111122223333:user/MyUser", "accountId": "111122223333", "accessKeyId": "AKIAIOSFODNN7EXAMPLE", "userName": "MyUser", "sessionContext": { "attributes": { "mfaAuthenticated": "false", "creationDate": "2019-01-14T11:29:47Z" } }, "invokedBy": "signin.amazonaws.com" }, "eventTime": "2019-01-14T11:33:27Z", "eventSource": "cloud9.amazonaws.com", "eventName": "DescribeEnvironments", "awsRegion": "us-west-2", "sourceIPAddress": "192.0.2.0", "userAgent": "signin.amazonaws.com", "requestParameters": { "environmentIds": [ "2f5ff70a640f49398f67e3bdeb811ab2" ] }, "responseElements": null, "requestID": "f0e629fb-fd37-49bd-b2cc-e9822EXAMPLE", "eventID": "8a906445-1b2a-47e9-8d7c-5b242EXAMPLE", "readOnly": true, "eventType": "AwsApiCall", "recipientAccountId": "111122223333" } ] }
DescribeEnvironmentStatus
下面的示例显示了一个 CloudTrail 日志条目,该条目演示了 DescribeEnvironmentStatus
操作。
{ "eventVersion": "1.08", "userIdentity": { "type": "AssumedRole", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:sts::123456789012:myuser_role", "accountId": "123456789012", "accessKeyId": "AKIAIOSFODNN7EXAMPLE", "sessionContext": { "sessionIssuer": { "type": "Role", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:sts::123456789012:myuser_role", "accountId": "123456789012", "userName": "barshane_role" }, "webIdFederationData": {}, "attributes": { "mfaAuthenticated": "false", "creationDate": "2021-03-12T15:10:54Z" } } }, "eventTime": "2021-03-12T15:13:31Z", "eventSource": "cloud9.amazonaws.com", "eventName": "DescribeEnvironmentStatus", "awsRegion": "us-east-1", "sourceIPAddress": "XX.XX.XXX.XX", "userAgent": "aws-internal/3 aws-sdk-java/1.11.951 Linux/4.9.230-0.1.ac.223.84.332.metal1.x86_64 OpenJDK_64-Bit_Server_VM/25.282-b08 java/1.8.0_282 vendor/Oracle_Corporation", "requestParameters": { "environmentId": "31ea8a12746a4221b7d8e07d9ef6ee21" }, "responseElements": null, "requestID": "68b163fb-aa88-4f40-bafd-4a18bf24cbd5", "eventID": "c0fc52a9-7331-4ad0-a8ee-157995dfb5e6", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "eventCategory": "Management", "recipientAccountId": "123456789012" }
ListEnvironments
下面的示例显示了一个 CloudTrail 日志条目,该条目演示了 ListEnvironments
操作。
{ "Records": [ { "eventVersion": "1.05", "userIdentity": { "type": "IAMUser", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:iam::111122223333:user/MyUser", "accountId": "111122223333", "accessKeyId": "AKIAIOSFODNN7EXAMPLE", "userName": "MyUser", "sessionContext": { "attributes": { "mfaAuthenticated": "false", "creationDate": "2019-01-14T11:29:47Z" } }, "invokedBy": "signin.amazonaws.com" }, "eventTime": "2019-01-14T11:33:27Z", "eventSource": "cloud9.amazonaws.com", "eventName": "ListEnvironments", "awsRegion": "us-west-2", "sourceIPAddress": "192.0.2.0", "userAgent": "signin.amazonaws.com", "requestParameters": { "nextToken": "NEXT_TOKEN_EXAMPLE", "maxResults": 15 }, "responseElements": null, "requestID": "f0e629fb-fd37-49bd-b2cc-e9822EXAMPLE", "eventID": "8a906445-1b2a-47e9-8d7c-5b242EXAMPLE", "readOnly": true, "eventType": "AwsApiCall", "recipientAccountId": "123456789012" } ] }
ListTagsForResource
下面的示例显示了一个 CloudTrail 日志条目,该条目演示了 ListTagsForResource
操作。
{ "eventVersion": "1.08", "userIdentity": { "type": "AssumedRole", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:sts::123456789012:myuser_role", "accountId": "123456789012", "accessKeyId": "AIDACKCEVSQ6C2EXAMPLE", "sessionContext": { "sessionIssuer": { "type": "Role", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "123456789012:myuser_role", "accountId": "123456789012", "userName": "barshane_role" }, "webIdFederationData": {}, "attributes": { "mfaAuthenticated": "false", "creationDate": "2021-03-23T16:41:51Z" } } }, "eventTime": "2021-03-23T16:42:58Z", "eventSource": "cloud9.amazonaws.com", "eventName": "ListTagsForResource", "awsRegion": "us-east-1", "sourceIPAddress": "XX.XX.XXX.XX", "userAgent": "aws-internal/3 aws-sdk-java/1.11.976 Linux/4.9.230-0.1.ac.224.84.332.metal1.x86_64 OpenJDK_64-Bit_Server_VM/25.282-b08 java/1.8.0_282 vendor/Oracle_Corporation cfg/retry-mode/legacy", "requestParameters": { "resourceARN": "arn:aws:cloud9:us-east-1:123456789012:environment:3XXXXXXXXX6a4221b7d8e07d9ef6ee21" }, "responseElements": { "tags": "HIDDEN_DUE_TO_SECURITY_REASONS" }, "requestID": "5750a344-8462-4020-82f9-f1d500a75162", "eventID": "188d572d-9a14-4082-b98b-0389964c7c30", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "eventCategory": "Management", "recipientAccountId": "123456789012" }
TagResource
下面的示例显示了一个 CloudTrail 日志条目,该条目演示了 TagResource
操作。
{ "eventVersion": "1.08", "userIdentity": { "type": "AssumedRole", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:sts:: 123456789012:myuser_role", "accountId": "123456789012", "accessKeyId": "AKIAIOSFODNN7EXAMPLE", "sessionContext": { "sessionIssuer": { "type": "Role", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:iam::123456789012:role/myuser_role", "accountId": "123456789012", "userName": "MyUser" }, "webIdFederationData": {}, "attributes": { "mfaAuthenticated": "false", "creationDate": "2021-03-23T15:03:57Z" } } }, "eventTime": "2021-03-23T15:08:16Z", "eventSource": "cloud9.amazonaws.com", "eventName": "TagResource", "awsRegion": "us-east-1", "sourceIPAddress": "54.XXX.XXX.XXX", "userAgent": "aws-internal/3 aws-sdk-java/1.11.976 Linux/4.9.230-0.1.ac.224.84.332.metal1.x86_64 OpenJDK_64-Bit_Server_VM/25.282-b08 java/1.8.0_282 vendor/Oracle_Corporation cfg/retry-mode/legacy", "requestParameters": { "resourceARN": "arn:aws:cloud9:us-east-1:123456789012:environment:3XXXXXXXXX6a4221b7d8e07d9ef6ee21", "tags": "HIDDEN_DUE_TO_SECURITY_REASONS" }, "responseElements": null, "requestID": "658e9d70-91c2-41b8-9a69-c6b4cc6a9456", "eventID": "022b2893-73d1-44cb-be6f-d3faa68e83b1", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "eventCategory": "Management", "recipientAccountId": "123456789012" }
UntagResource
下面的示例显示了一个 CloudTrail 日志条目,该条目演示了 UntagResource
操作。
{ "eventVersion": "1.08", "userIdentity": { "type": "AssumedRole", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:sts::123456789012/MyUser", "accountId": "123456789012", "accessKeyId": "AKIAIOSFODNN7EXAMPLE", "sessionContext": { "sessionIssuer": { "type": "Role", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:iam::123456789012:MyUser", "accountId": "123456789012", "userName": "MyUser" }, "webIdFederationData": {}, "attributes": { "mfaAuthenticated": "false", "creationDate": "2021-03-23T15:58:36Z" } } }, "eventTime": "2021-03-23T16:05:08Z", "eventSource": "cloud9.amazonaws.com", "eventName": "UntagResource", "awsRegion": "us-east-1", "sourceIPAddress": "3.XX.XX.XXX", "userAgent": "aws-internal/3 aws-sdk-java/1.11.976 Linux/4.9.230-0.1.ac.224.84.332.metal1.x86_64 OpenJDK_64-Bit_Server_VM/25.282-b08 java/1.8.0_282 vendor/Oracle_Corporation cfg/retry-mode/legacy", "requestParameters": { "resourceARN": "arn:aws:cloud9:us-east-1:123456789012:environment:3XXXXXXXXX6a4221b7d8e07d9ef6ee21", "tagKeys": "HIDDEN_DUE_TO_SECURITY_REASONS" }, "responseElements": null, "requestID": "0eadaef3-dc0a-4cd7-85f6-135b8529f75f", "eventID": "41f2f2e2-4b17-43d4-96fc-9857981ca1de", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "eventCategory": "Management", "recipientAccountId": "123456789012" }
UpdateEnvironment
下面的示例显示了一个 CloudTrail 日志条目,该条目演示了 UpdateEnvironment
操作。
{ "Records": [ { "eventVersion": "1.05", "userIdentity": { "type": "IAMUser", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:iam::111122223333:user/MyUser", "accountId": "111122223333", "accessKeyId": "AKIAIOSFODNN7EXAMPLE", "userName": "MyUser", "sessionContext": { "attributes": { "mfaAuthenticated": "false", "creationDate": "2019-01-14T11:29:47Z" } }, "invokedBy": "signin.amazonaws.com" }, "eventTime": "2019-01-14T11:33:27Z", "eventSource": "cloud9.amazonaws.com", "eventName": "UpdateEnvironment", "awsRegion": "us-west-2", "sourceIPAddress": "192.0.2.0", "userAgent": "signin.amazonaws.com", "requestParameters": { "environmentId": "2f5ff70a640f49398f67e3bdeEXAMPLE", "description": "HIDDEN_DUE_TO_SECURITY_REASONS", "name": "my-test-environment-renamed" }, "responseElements": null, "requestID": "f0e629fb-fd37-49bd-b2cc-e9822EXAMPLE", "eventID": "8a906445-1b2a-47e9-8d7c-5b242EXAMPLE", "eventType": "AwsApiCall", "recipientAccountId": "111122223333" } ] }
UpdateEnvironmentMembership
下面的示例显示了一个 CloudTrail 日志条目,该条目说明了 UpdateEnvironmentMembership
操作。
{ "Records": [ { "eventVersion": "1.05", "userIdentity": { "type": "IAMUser", "principalId": "AIDACKCEVSQ6C2EXAMPLE", "arn": "arn:aws:iam::111122223333:user/MyUser", "accountId": "111122223333", "accessKeyId": "AKIAIOSFODNN7EXAMPLE", "userName": "MyUser", "sessionContext": { "attributes": { "mfaAuthenticated": "false", "creationDate": "2019-01-14T11:29:47Z" } }, "invokedBy": "signin.amazonaws.com" }, "eventTime": "2019-01-14T11:33:27Z", "eventSource": "cloud9.amazonaws.com", "eventName": "UpdateEnvironmentMembership", "awsRegion": "us-west-2", "sourceIPAddress": "192.0.2.0", "userAgent": "signin.amazonaws.com", "requestParameters": { "environmentId": "2f5ff70a640f49398f67e3bdeEXAMPLE", "userArn": "arn:aws:iam::111122223333:user/MyUser", "permissions": "read-only" }, "responseElements": { "membership": { "environmentId": "2f5ff70a640f49398f67e3bdeEXAMPLE", "permissions": "read-only", "userId": "AIDACKCEVSQ6C2EXAMPLE", "userArn": "arn:aws:iam::111122223333:user/MyUser" } }, "requestID": "f0e629fb-fd37-49bd-b2cc-e9822EXAMPLE", "eventID": "8a906445-1b2a-47e9-8d7c-5b242EXAMPLE", "eventType": "AwsApiCall", "recipientAccountId": "111122223333" } ]}