CreateDeviceFleet
Creates a device fleet.
Request Syntax
{
"Description": "string
",
"DeviceFleetName": "string
",
"EnableIotRoleAlias": boolean
,
"OutputConfig": {
"KmsKeyId": "string
",
"PresetDeploymentConfig": "string
",
"PresetDeploymentType": "string
",
"S3OutputLocation": "string
"
},
"RoleArn": "string
",
"Tags": [
{
"Key": "string
",
"Value": "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
-
A description of the fleet.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 800.
Pattern:
^[-a-zA-Z0-9_.,;:! ]*$
Required: No
- DeviceFleetName
-
The name of the fleet that the device belongs to.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 63.
Pattern:
^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$
Required: Yes
- EnableIotRoleAlias
-
Whether to create an AWS IoT Role Alias during device fleet creation. The name of the role alias generated will match this pattern: "SageMakerEdge-{DeviceFleetName}".
For example, if your device fleet is called "demo-fleet", the name of the role alias will be "SageMakerEdge-demo-fleet".
Type: Boolean
Required: No
- OutputConfig
-
The output configuration for storing sample data collected by the fleet.
Type: EdgeOutputConfig object
Required: Yes
- RoleArn
-
The Amazon Resource Name (ARN) that has access to AWS Internet of Things (IoT).
Type: String
Length Constraints: Minimum length of 20. Maximum length of 2048.
Pattern:
^arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$
Required: No
- Tags
-
Creates tags for the specified fleet.
Type: Array of Tag objects
Array Members: Minimum number of 0 items. Maximum number of 50 items.
Required: No
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
- ResourceInUse
-
Resource being accessed is in use.
HTTP Status Code: 400
- ResourceLimitExceeded
-
You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: