2017/11/30 - AWS Cloud9 - 10 new api methods
Changes Adds support for creating and managing AWS Cloud9 development environments. AWS Cloud9 is a cloud-based integrated development environment (IDE) that you use to write, run, and debug code.
Deletes an AWS Cloud9 development environment. If the environment is hosted on an Amazon Elastic Compute Cloud (Amazon EC2) instance, also terminates the instance.
See also: AWS API Documentation
Request Syntax
client.delete_environment( environmentId='string' )
string
[REQUIRED]
The ID of the environment to delete.
dict
Response Syntax
{}
Response Structure
(dict) --
Changes the settings of an existing environment member for an AWS Cloud9 development environment.
See also: AWS API Documentation
Request Syntax
client.update_environment_membership( environmentId='string', userArn='string', permissions='read-write'|'read-only' )
string
[REQUIRED]
The ID of the environment for the environment member whose settings you want to change.
string
[REQUIRED]
The Amazon Resource Name (ARN) of the environment member whose settings you want to change.
string
[REQUIRED]
The replacement type of environment member permissions you want to associate with this environment member. Available values include:
read-only : Has read-only access to the environment.
read-write : Has read-write access to the environment.
dict
Response Syntax
{ 'membership': { 'permissions': 'owner'|'read-write'|'read-only', 'userId': 'string', 'userArn': 'string', 'environmentId': 'string', 'lastAccess': datetime(2015, 1, 1) } }
Response Structure
(dict) --
membership (dict) --
Information about the environment member whose settings were changed.
permissions (string) --
The type of environment member permissions associated with this environment member. Available values include:
owner : Owns the environment.
read-only : Has read-only access to the environment.
read-write : Has read-write access to the environment.
userId (string) --
The user ID in AWS Identity and Access Management (AWS IAM) of the environment member.
userArn (string) --
The Amazon Resource Name (ARN) of the environment member.
environmentId (string) --
The ID of the environment for the environment member.
lastAccess (datetime) --
The time, expressed in epoch time format, when the environment member last opened the environment.
Deletes an environment member from an AWS Cloud9 development environment.
See also: AWS API Documentation
Request Syntax
client.delete_environment_membership( environmentId='string', userArn='string' )
string
[REQUIRED]
The ID of the environment to delete the environment member from.
string
[REQUIRED]
The Amazon Resource Name (ARN) of the environment member to delete from the environment.
dict
Response Syntax
{}
Response Structure
(dict) --
Gets a list of AWS Cloud9 development environment identifiers.
See also: AWS API Documentation
Request Syntax
client.list_environments( nextToken='string', maxResults=123 )
string
During a previous call, if there are more than 25 items in the list, only the first 25 items are returned, along with a unique string called a next token . To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.
integer
The maximum number of environments to get identifiers for.
dict
Response Syntax
{ 'nextToken': 'string', 'environmentIds': [ 'string', ] }
Response Structure
(dict) --
nextToken (string) --
If there are more than 25 items in the list, only the first 25 items are returned, along with a unique string called a next token . To get the next batch of items in the list, call this operation again, adding the next token to the call.
environmentIds (list) --
The list of environment identifiers.
(string) --
Adds an environment member to an AWS Cloud9 development environment.
See also: AWS API Documentation
Request Syntax
client.create_environment_membership( environmentId='string', userArn='string', permissions='read-write'|'read-only' )
string
[REQUIRED]
The ID of the environment that contains the environment member you want to add.
string
[REQUIRED]
The Amazon Resource Name (ARN) of the environment member you want to add.
string
[REQUIRED]
The type of environment member permissions you want to associate with this environment member. Available values include:
read-only : Has read-only access to the environment.
read-write : Has read-write access to the environment.
dict
Response Syntax
{ 'membership': { 'permissions': 'owner'|'read-write'|'read-only', 'userId': 'string', 'userArn': 'string', 'environmentId': 'string', 'lastAccess': datetime(2015, 1, 1) } }
Response Structure
(dict) --
membership (dict) --
Information about the environment member that was added.
permissions (string) --
The type of environment member permissions associated with this environment member. Available values include:
owner : Owns the environment.
read-only : Has read-only access to the environment.
read-write : Has read-write access to the environment.
userId (string) --
The user ID in AWS Identity and Access Management (AWS IAM) of the environment member.
userArn (string) --
The Amazon Resource Name (ARN) of the environment member.
environmentId (string) --
The ID of the environment for the environment member.
lastAccess (datetime) --
The time, expressed in epoch time format, when the environment member last opened the environment.
Gets information about environment members for an AWS Cloud9 development environment.
See also: AWS API Documentation
Request Syntax
client.describe_environment_memberships( userArn='string', environmentId='string', permissions=[ 'owner'|'read-write'|'read-only', ], nextToken='string', maxResults=123 )
string
The Amazon Resource Name (ARN) of an individual environment member to get information about. If no value is specified, information about all environment members are returned.
string
The ID of the environment to get environment member information about.
list
The type of environment member permissions to get information about. Available values include:
owner : Owns the environment.
read-only : Has read-only access to the environment.
read-write : Has read-write access to the environment.
If no value is specified, information about all environment members are returned.
(string) --
string
During a previous call, if there are more than 25 items in the list, only the first 25 items are returned, along with a unique string called a next token . To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.
integer
The maximum number of environment members to get information about.
dict
Response Syntax
{ 'memberships': [ { 'permissions': 'owner'|'read-write'|'read-only', 'userId': 'string', 'userArn': 'string', 'environmentId': 'string', 'lastAccess': datetime(2015, 1, 1) }, ], 'nextToken': 'string' }
Response Structure
(dict) --
memberships (list) --
Information about the environment members for the environment.
(dict) --
Information about an environment member for an AWS Cloud9 development environment.
permissions (string) --
The type of environment member permissions associated with this environment member. Available values include:
owner : Owns the environment.
read-only : Has read-only access to the environment.
read-write : Has read-write access to the environment.
userId (string) --
The user ID in AWS Identity and Access Management (AWS IAM) of the environment member.
userArn (string) --
The Amazon Resource Name (ARN) of the environment member.
environmentId (string) --
The ID of the environment for the environment member.
lastAccess (datetime) --
The time, expressed in epoch time format, when the environment member last opened the environment.
nextToken (string) --
If there are more than 25 items in the list, only the first 25 items are returned, along with a unique string called a next token . To get the next batch of items in the list, call this operation again, adding the next token to the call.
Gets information about AWS Cloud9 development environments.
See also: AWS API Documentation
Request Syntax
client.describe_environments( environmentIds=[ 'string', ] )
list
[REQUIRED]
The IDs of invidividual environments to get information about.
(string) --
dict
Response Syntax
{ 'environments': [ { 'id': 'string', 'name': 'string', 'description': 'string', 'type': 'ssh'|'ec2', 'arn': 'string', 'ownerArn': 'string' }, ] }
Response Structure
(dict) --
environments (list) --
Information about the environments that are returned.
(dict) --
Information about an AWS Cloud9 development environment.
id (string) --
The ID of the environment.
name (string) --
The name of the environment.
description (string) --
The description for the environment.
type (string) --
The type of environment. Valid values include the following:
ec2 : An environment hosted on an Amazon Elastic Compute Cloud (Amazon EC2) instance.
ssh : An environment hosted on your own server.
arn (string) --
The Amazon Resource Name (ARN) of the environment.
ownerArn (string) --
The Amazon Resource Name (ARN) of the environment owner.
Changes the settings of an existing AWS Cloud9 development environment.
See also: AWS API Documentation
Request Syntax
client.update_environment( environmentId='string', name='string', description='string' )
string
[REQUIRED]
The ID of the environment to change settings.
string
Any replacement name for the environment.
string
Any new or replacement description for the environment.
dict
Response Syntax
{}
Response Structure
(dict) --
Creates an AWS Cloud9 development environment, launches an Amazon Elastic Compute Cloud (Amazon EC2) instance, and then hosts the environment on the instance.
See also: AWS API Documentation
Request Syntax
client.create_environment_ec2( name='string', description='string', clientRequestToken='string', instanceType='string', subnetId='string', automaticStopTimeMinutes=123, ownerArn='string' )
string
[REQUIRED]
The name of the environment to create.
This name is visible to other AWS IAM users in the same AWS account.
string
The description of the environment to create.
string
A unique, case-sensitive string that helps AWS Cloud9 to ensure this operation completes no more than one time.
For more information, see Client Tokens in the Amazon EC2 API Reference .
string
[REQUIRED]
The type of instance to host the environment on (for example, t2.micro ).
string
The ID of the subnet in Amazon VPC that AWS Cloud9 will use to communicate with the Amazon EC2 instance.
integer
The number of minutes until the running instance is shut down after the environment has last been used.
string
The Amazon Resource Name (ARN) of the environment owner. This ARN can be the ARN of any AWS IAM principal. If this value is not specified, the ARN defaults to this environment's creator.
dict
Response Syntax
{ 'environmentId': 'string' }
Response Structure
(dict) --
environmentId (string) --
The ID of the environment that was created.
Gets status information for an AWS Cloud9 development environment.
See also: AWS API Documentation
Request Syntax
client.describe_environment_status( environmentId='string' )
string
[REQUIRED]
The ID of the environment to get status information about.
dict
Response Syntax
{ 'status': 'error'|'creating'|'connecting'|'ready'|'stopping'|'stopped'|'deleting', 'message': 'string' }
Response Structure
(dict) --
status (string) --
The status of the environment. Available values include:
connecting : The environment is connecting.
creating : The environment is being created.
deleting : The environment is being deleted.
error : The environment is in an error state.
ready : The environment is ready.
stopped : The environment is stopped.
stopping : The environment is stopping.
message (string) --
Any informational message about the status of the environment.