CreateFleet - Amazon WorkLink


Creates a fleet. A fleet consists of resources and the configuration that delivers associated websites to authorized users who download and set up the Amazon WorkLink app.

Request Syntax

POST /createFleet HTTP/1.1 Content-type: application/json { "DisplayName": "string", "FleetName": "string", "OptimizeForEndUserLocation": boolean, "Tags": { "string" : "string" } }

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.


The fleet name to display.

Type: String

Length Constraints: Maximum length of 100.

Required: No


A unique name for the fleet.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 48.

Pattern: ^[a-z0-9](?:[a-z0-9\-]{0,46}[a-z0-9])?$

Required: Yes


The option to optimize for better performance by routing traffic through the closest AWS Region to users, which may be outside of your home Region.

Type: Boolean

Required: No


The tags to add to the resource. A tag is a key-value pair.

Type: String to string map

Map Entries: Maximum number of 50 items.

Key Length Constraints: Minimum length of 1. Maximum length of 128.

Key Pattern: ^(?!aws:)[a-zA-Z+-=._:/]+$

Value Length Constraints: Maximum length of 256.

Required: No

Response Syntax

HTTP/1.1 200 Content-type: application/json { "FleetArn": "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.


The Amazon Resource Name (ARN) of the fleet.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 2048.


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


The service is temporarily unavailable.

HTTP Status Code: 500


The request is not valid.

HTTP Status Code: 400


The resource already exists.

HTTP Status Code: 400


The requested resource was not found.

HTTP Status Code: 404


The number of requests exceeds the limit.

HTTP Status Code: 429


You are not authorized to perform this action.

HTTP Status Code: 403

See Also

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