123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316 |
- {
- "version": "1.0",
- "examples": {
- "CreateEnvironmentEC2": [
- {
- "input": {
- "name": "my-demo-environment",
- "automaticStopTimeMinutes": 60,
- "description": "This is my demonstration environment.",
- "imageId": "amazonlinux-2023-x86_64",
- "instanceType": "t2.micro",
- "ownerArn": "arn:aws:iam::123456789012:user/MyDemoUser",
- "subnetId": "subnet-6300cd1b"
- },
- "output": {
- "environmentId": "8d9967e2f0624182b74e7690ad69ebEX"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "",
- "id": "createenvironmentec2-1516821730547",
- "title": "CreateEnvironmentEC2"
- }
- ],
- "CreateEnvironmentMembership": [
- {
- "input": {
- "environmentId": "8d9967e2f0624182b74e7690ad69ebEX",
- "permissions": "read-write",
- "userArn": "arn:aws:iam::123456789012:user/AnotherDemoUser"
- },
- "output": {
- "membership": {
- "environmentId": "8d9967e2f0624182b74e7690ad69ebEX",
- "permissions": "read-write",
- "userArn": "arn:aws:iam::123456789012:user/AnotherDemoUser",
- "userId": "AIDAJ3BA6O2FMJWCWXHEX"
- }
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "",
- "id": "createenvironmentmembership-1516822583452",
- "title": "CreateEnvironmentMembership"
- }
- ],
- "DeleteEnvironment": [
- {
- "input": {
- "environmentId": "8d9967e2f0624182b74e7690ad69ebEX"
- },
- "output": {
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "",
- "id": "deleteenvironment-1516822903149",
- "title": "DeleteEnvironment"
- }
- ],
- "DeleteEnvironmentMembership": [
- {
- "input": {
- "environmentId": "8d9967e2f0624182b74e7690ad69ebEX",
- "userArn": "arn:aws:iam::123456789012:user/AnotherDemoUser"
- },
- "output": {
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "",
- "id": "deleteenvironmentmembership-1516822975655",
- "title": "DeleteEnvironmentMembership"
- }
- ],
- "DescribeEnvironmentMemberships": [
- {
- "input": {
- "environmentId": "8d9967e2f0624182b74e7690ad69ebEX"
- },
- "output": {
- "memberships": [
- {
- "environmentId": "8d9967e2f0624182b74e7690ad69ebEX",
- "permissions": "read-write",
- "userArn": "arn:aws:iam::123456789012:user/AnotherDemoUser",
- "userId": "AIDAJ3BA6O2FMJWCWXHEX"
- },
- {
- "environmentId": "8d9967e2f0624182b74e7690ad69ebEX",
- "permissions": "owner",
- "userArn": "arn:aws:iam::123456789012:user/MyDemoUser",
- "userId": "AIDAJNUEDQAQWFELJDLEX"
- }
- ]
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "The following example gets information about all of the environment members for the specified development environment.",
- "id": "describeenvironmentmemberships1-1516823070453",
- "title": "DescribeEnvironmentMemberships1"
- },
- {
- "input": {
- "environmentId": "8d9967e2f0624182b74e7690ad69ebEX",
- "permissions": [
- "owner"
- ]
- },
- "output": {
- "memberships": [
- {
- "environmentId": "8d9967e2f0624182b74e7690ad69ebEX",
- "permissions": "owner",
- "userArn": "arn:aws:iam::123456789012:user/MyDemoUser",
- "userId": "AIDAJNUEDQAQWFELJDLEX"
- }
- ]
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "The following example gets information about the owner of the specified development environment.",
- "id": "describeenvironmentmemberships2-1516823191355",
- "title": "DescribeEnvironmentMemberships2"
- },
- {
- "input": {
- "userArn": "arn:aws:iam::123456789012:user/MyDemoUser"
- },
- "output": {
- "memberships": [
- {
- "environmentId": "10a75714bd494714929e7f5ec4125aEX",
- "lastAccess": "2018-01-19T11:06:13Z",
- "permissions": "owner",
- "userArn": "arn:aws:iam::123456789012:user/MyDemoUser",
- "userId": "AIDAJNUEDQAQWFELJDLEX"
- },
- {
- "environmentId": "12bfc3cd537f41cb9776f8af5525c9EX",
- "lastAccess": "2018-01-19T11:39:19Z",
- "permissions": "owner",
- "userArn": "arn:aws:iam::123456789012:user/MyDemoUser",
- "userId": "AIDAJNUEDQAQWFELJDLEX"
- }
- ]
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "The following example gets development environment membership information for the specified user.",
- "id": "describeenvironmentmemberships3-1516823268793",
- "title": "DescribeEnvironmentMemberships3"
- }
- ],
- "DescribeEnvironmentStatus": [
- {
- "input": {
- "environmentId": "8d9967e2f0624182b74e7690ad69ebEX"
- },
- "output": {
- "message": "Environment is ready to use",
- "status": "ready"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "",
- "id": "describeenvironmentstatus-1516823462133",
- "title": "DescribeEnvironmentStatus"
- }
- ],
- "DescribeEnvironments": [
- {
- "input": {
- "environmentIds": [
- "8d9967e2f0624182b74e7690ad69ebEX",
- "349c86d4579e4e7298d500ff57a6b2EX"
- ]
- },
- "output": {
- "environments": [
- {
- "name": "my-demo-environment",
- "type": "ec2",
- "arn": "arn:aws:cloud9:us-east-2:123456789012:environment:8d9967e2f0624182b74e7690ad69ebEX",
- "description": "This is my demonstration environment.",
- "id": "8d9967e2f0624182b74e7690ad69ebEX",
- "lifecycle": {
- "status": "CREATED"
- },
- "ownerArn": "arn:aws:iam::123456789012:user/MyDemoUser"
- },
- {
- "name": "another-demo-environment",
- "type": "ssh",
- "arn": "arn:aws:cloud9:us-east-2:123456789012:environment:349c86d4579e4e7298d500ff57a6b2EX",
- "description": "",
- "id": "349c86d4579e4e7298d500ff57a6b2EX",
- "lifecycle": {
- "status": "CREATED"
- },
- "ownerArn": "arn:aws:sts::123456789012:assumed-role/AnotherDemoUser/AnotherDemoUser"
- }
- ]
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "",
- "id": "describeenvironments-1516823568291",
- "title": "DescribeEnvironments"
- }
- ],
- "ListEnvironments": [
- {
- "input": {
- },
- "output": {
- "environmentIds": [
- "349c86d4579e4e7298d500ff57a6b2EX",
- "45a3da47af0840f2b0c0824f5ee232EX"
- ]
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "",
- "id": "listenvironments-1516823687205",
- "title": "ListEnvironments"
- }
- ],
- "UpdateEnvironment": [
- {
- "input": {
- "name": "my-changed-demo-environment",
- "description": "This is my changed demonstration environment.",
- "environmentId": "8d9967e2f0624182b74e7690ad69ebEX"
- },
- "output": {
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "",
- "id": "updateenvironment-1516823781910",
- "title": "UpdateEnvironment"
- }
- ],
- "UpdateEnvironmentMembership": [
- {
- "input": {
- "environmentId": "8d9967e2f0624182b74e7690ad69ebEX",
- "permissions": "read-only",
- "userArn": "arn:aws:iam::123456789012:user/AnotherDemoUser"
- },
- "output": {
- "membership": {
- "environmentId": "8d9967e2f0624182b74e7690ad69eb31",
- "permissions": "read-only",
- "userArn": "arn:aws:iam::123456789012:user/AnotherDemoUser",
- "userId": "AIDAJ3BA6O2FMJWCWXHEX"
- }
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "",
- "id": "updateenvironmentmembership-1516823876645",
- "title": "UpdateEnvironmentMembership"
- }
- ]
- }
- }
|