StartDevEnvironment - Amazon CodeCatalyst

StartDevEnvironment

Starts a specified Dev Environment and puts it into an active state.

Request Syntax

PUT /v1/spaces/spaceName/projects/projectName/devEnvironments/id/start HTTP/1.1 Content-type: application/json { "ides": [ { "name": "string", "runtime": "string" } ], "inactivityTimeoutMinutes": number, "instanceType": "string" }

URI Request Parameters

The request uses the following URI parameters.

id

The system-generated unique ID of the Dev Environment.

Pattern: [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}

Required: Yes

projectName

The name of the project in the space.

Length Constraints: Minimum length of 3. Maximum length of 63.

Pattern: [a-zA-Z0-9]+(?:[-_\.][a-zA-Z0-9]+)*

Required: Yes

spaceName

The name of the space.

Length Constraints: Minimum length of 3. Maximum length of 63.

Pattern: [a-zA-Z0-9]+(?:[-_\.][a-zA-Z0-9]+)*

Required: Yes

Request Body

The request accepts the following data in JSON format.

ides

Information about the integrated development environment (IDE) configured for a Dev Environment.

Type: Array of IdeConfiguration objects

Array Members: Minimum number of 0 items. Maximum number of 1 item.

Required: No

inactivityTimeoutMinutes

The amount of time the Dev Environment will run without any activity detected before stopping, in minutes. Only whole integers are allowed. Dev Environments consume compute minutes when running.

Type: Integer

Valid Range: Minimum value of 0. Maximum value of 1200.

Required: No

instanceType

The Amazon EC2 instace type to use for the Dev Environment.

Type: String

Valid Values: dev.standard1.small | dev.standard1.medium | dev.standard1.large | dev.standard1.xlarge

Required: No

Response Syntax

HTTP/1.1 200 Content-type: application/json { "id": "string", "projectName": "string", "spaceName": "string", "status": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

id

The system-generated unique ID of the Dev Environment.

Type: String

Pattern: [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}

projectName

The name of the project in the space.

Type: String

Length Constraints: Minimum length of 3. Maximum length of 63.

Pattern: [a-zA-Z0-9]+(?:[-_\.][a-zA-Z0-9]+)*

spaceName

The name of the space.

Type: String

Length Constraints: Minimum length of 3. Maximum length of 63.

Pattern: [a-zA-Z0-9]+(?:[-_\.][a-zA-Z0-9]+)*

status

The status of the Dev Environment.

Type: String

Valid Values: PENDING | RUNNING | STARTING | STOPPING | STOPPED | FAILED | DELETING | DELETED

Errors

AccessDeniedException

The request was denied because you don't have sufficient access to perform this action. Verify that you are a member of a role that allows this action.

HTTP Status Code: 403

ConflictException

The request was denied because the requested operation would cause a conflict with the current state of a service resource associated with the request. Another user might have updated the resource. Reload, make sure you have the latest data, and then try again.

HTTP Status Code: 409

ResourceNotFoundException

The request was denied because the specified resource was not found. Verify that the spelling is correct and that you have access to the resource.

HTTP Status Code: 404

ServiceQuotaExceededException

The request was denied because one or more resources has reached its limits for the tier the space belongs to. Either reduce the number of resources, or change the tier if applicable.

HTTP Status Code: 402

ThrottlingException

The request was denied due to request throttling.

HTTP Status Code: 429

ValidationException

The request was denied because an input failed to satisfy the constraints specified by the service. Check the spelling and input requirements, and then try again.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: