Menu
Amazon AppStream 2.0
API Reference (API Version 2016-12-01)

CreateStack

Creates a stack.

Request Syntax

{
   "Description": "string",
   "DisplayName": "string",
   "Name": "string",
   "StorageConnectors": [ 
      { 
         "ConnectorType": "string",
         "ResourceIdentifier": "string"
      }
   ]
}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

Description

The description for display.

Type: String

Length Constraints: Maximum length of 256.

Required: No

DisplayName

The stack name for display.

Type: String

Length Constraints: Maximum length of 100.

Required: No

Name

The name of the stack.

Type: String

Length Constraints: Minimum length of 1.

Required: Yes

StorageConnectors

The storage connectors to enable.

Type: Array of StorageConnector objects

Required: No

Response Syntax

{
   "Stack": { 
      "Arn": "string",
      "CreatedTime": number,
      "Description": "string",
      "DisplayName": "string",
      "Name": "string",
      "StackErrors": [ 
         { 
            "ErrorCode": "string",
            "ErrorMessage": "string"
         }
      ],
      "StorageConnectors": [ 
         { 
            "ConnectorType": "string",
            "ResourceIdentifier": "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.

Stack

Information about the stack.

Type: Stack object

Errors

For information about the errors that are common to all actions, see Common Errors.

ConcurrentModificationException

An API error occurred. Wait a few minutes and try again.

HTTP Status Code: 400

InvalidParameterCombinationException

Indicates an incorrect combination of parameters, or a missing parameter.

HTTP Status Code: 400

InvalidRoleException

The specified role is invalid.

HTTP Status Code: 400

LimitExceededException

The requested limit exceeds the permitted limit for an account.

HTTP Status Code: 400

ResourceAlreadyExistsException

The specified resource already exists.

HTTP Status Code: 400

ResourceNotFoundException

The specified resource was not found.

HTTP Status Code: 400

See Also

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