CreateEksAnywhereSubscription
Creates an EKS Anywhere subscription. When a subscription is created, it is a contract agreement for the length of the term specified in the request. Licenses that are used to validate support are provisioned in AWS License Manager and the caller account is granted access to EKS Anywhere Curated Packages.
Request Syntax
POST /eks-anywhere-subscriptions HTTP/1.1
Content-type: application/json
{
"autoRenew": boolean
,
"clientRequestToken": "string
",
"licenseQuantity": number
,
"licenseType": "string
",
"name": "string
",
"tags": {
"string
" : "string
"
},
"term": {
"duration": number
,
"unit": "string
"
}
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
- autoRenew
-
A boolean indicating whether the subscription auto renews at the end of the term.
Type: Boolean
Required: No
- clientRequestToken
-
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Type: String
Required: No
- licenseQuantity
-
The number of licenses to purchase with the subscription. Valid values are between 1 and 100. This value can't be changed after creating the subscription.
Type: Integer
Required: No
- licenseType
-
The license type for all licenses in the subscription. Valid value is CLUSTER. With the CLUSTER license type, each license covers support for a single EKS Anywhere cluster.
Type: String
Valid Values:
Cluster
Required: No
- name
-
The unique name for your subscription. It must be unique in your AWS account in the AWS Region you're creating the subscription in. The name can contain only alphanumeric characters (case-sensitive), hyphens, and underscores. It must start with an alphabetic character and can't be longer than 100 characters.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 100.
Pattern:
^[0-9A-Za-z][A-Za-z0-9\-_]*
Required: Yes
-
The metadata for a subscription to assist with categorization and organization. Each tag consists of a key and an optional value. Subscription tags don't propagate to any other resources associated with the subscription.
Type: String to string map
Map Entries: Maximum number of 50 items.
Key Length Constraints: Minimum length of 1. Maximum length of 128.
Value Length Constraints: Maximum length of 256.
Required: No
- term
-
An object representing the term duration and term unit type of your subscription. This determines the term length of your subscription. Valid values are MONTHS for term unit and 12 or 36 for term duration, indicating a 12 month or 36 month subscription. This value cannot be changed after creating the subscription.
Type: EksAnywhereSubscriptionTerm object
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"subscription": {
"arn": "string",
"autoRenew": boolean,
"createdAt": number,
"effectiveDate": number,
"expirationDate": number,
"id": "string",
"licenseArns": [ "string" ],
"licenseQuantity": number,
"licenseType": "string",
"status": "string",
"tags": {
"string" : "string"
},
"term": {
"duration": number,
"unit": "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.
- subscription
-
The full description of the subscription.
Type: EksAnywhereSubscription object
Errors
For information about the errors that are common to all actions, see Common Errors.
- ClientException
-
These errors are usually caused by a client action. Actions can include using an action or resource on behalf of an IAM principal that doesn't have permissions to use the action or resource or specifying an identifier that is not valid.
HTTP Status Code: 400
- InvalidParameterException
-
The specified parameter is invalid. Review the available parameters for the API request.
HTTP Status Code: 400
- ResourceLimitExceededException
-
You have encountered a service limit on the specified resource.
HTTP Status Code: 400
- ServerException
-
These errors are usually caused by a server-side issue.
HTTP Status Code: 500
- ServiceUnavailableException
-
The service is unavailable. Back off and retry the operation.
HTTP Status Code: 503
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: