

# CreateProfile

Creates a profile. A profile is a named configuration context in which extensions run. The profile name must be unique within your account.

## Request Syntax
<a name="API_CreateProfile_RequestSyntax"></a>

```
POST /profiles HTTP/1.1
Content-type: application/json

{
   "clientToken": "{{string}}",
   "description": "{{string}}",
   "extensionDefaults": { 
      "executionRole": "{{string}}",
      "interfaceDefaults": { 
         "http": { 
            "authentication": { ... }
         }
      }
   },
   "name": "{{string}}",
   "tags": { 
      "{{string}}" : "{{string}}" 
   }
}
```

## URI Request Parameters
<a name="API_CreateProfile_RequestParameters"></a>

The request does not use any URI parameters.

## Request Body
<a name="API_CreateProfile_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [clientToken](#API_CreateProfile_RequestSyntax) **   <a name="systemsmanagercloudextensions-CreateProfile-request-clientToken"></a>
A unique, case-sensitive identifier that you provide to ensure that the request is processed at most once.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Pattern: `[!-~]+`   
Required: No

 ** [description](#API_CreateProfile_RequestSyntax) **   <a name="systemsmanagercloudextensions-CreateProfile-request-description"></a>
A description of the purpose or target environment of the profile. The description can be up to 256 characters long, and can't start with a space or contain control characters.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 256.  
Pattern: `[^ \p{Cc}][^\p{Cc}]*`   
Required: No

 ** [extensionDefaults](#API_CreateProfile_RequestSyntax) **   <a name="systemsmanagercloudextensions-CreateProfile-request-extensionDefaults"></a>
The default values that the extensions in this profile use. You can override these values in a profile entry.  
Type: [ExtensionDefaults](API_ExtensionDefaults.md) object  
Required: No

 ** [name](#API_CreateProfile_RequestSyntax) **   <a name="systemsmanagercloudextensions-CreateProfile-request-name"></a>
The name of the profile. The name must be unique within your account. The name must be 2 to 32 characters long, start with a lowercase letter, and contain only lowercase letters, digits, and single underscores or hyphens between them.  
Type: String  
Length Constraints: Minimum length of 2. Maximum length of 32.  
Pattern: `[a-z][a-z0-9]+([_-][a-z0-9]+)*`   
Required: Yes

 ** [tags](#API_CreateProfile_RequestSyntax) **   <a name="systemsmanagercloudextensions-CreateProfile-request-tags"></a>
The tags to assign to the profile.  
Type: String to string map  
Map Entries: Minimum number of 0 items. Maximum number of 50 items.  
Key Length Constraints: Minimum length of 1. Maximum length of 128.  
Value Length Constraints: Minimum length of 0. Maximum length of 256.  
Required: No

## Response Syntax
<a name="API_CreateProfile_ResponseSyntax"></a>

```
HTTP/1.1 201
Content-type: application/json

{
   "arn": "string",
   "createdAt": "string",
   "description": "string",
   "entryCount": number,
   "extensionDefaults": { 
      "executionRole": "string",
      "interfaceDefaults": { 
         "http": { 
            "authentication": { ... }
         }
      }
   },
   "id": "string",
   "name": "string",
   "updatedAt": "string"
}
```

## Response Elements
<a name="API_CreateProfile_ResponseElements"></a>

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

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

 ** [arn](#API_CreateProfile_ResponseSyntax) **   <a name="systemsmanagercloudextensions-CreateProfile-response-arn"></a>
The Amazon Resource Name (ARN) of the profile.  
Type: String  
Length Constraints: Minimum length of 20. Maximum length of 1011.  
Pattern: `arn:[a-z0-9-]+:cloudextensions:[a-z0-9-]*:([0-9]{0,12}|aws):[a-z]+/[a-zA-Z0-9/_:-]+` 

 ** [createdAt](#API_CreateProfile_ResponseSyntax) **   <a name="systemsmanagercloudextensions-CreateProfile-response-createdAt"></a>
The date and time when the profile was created.  
Type: Timestamp

 ** [description](#API_CreateProfile_ResponseSyntax) **   <a name="systemsmanagercloudextensions-CreateProfile-response-description"></a>
A description of the purpose or target environment of the profile.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 256.  
Pattern: `[^ \p{Cc}][^\p{Cc}]*` 

 ** [entryCount](#API_CreateProfile_ResponseSyntax) **   <a name="systemsmanagercloudextensions-CreateProfile-response-entryCount"></a>
The number of entries in the profile.  
Type: Integer

 ** [extensionDefaults](#API_CreateProfile_ResponseSyntax) **   <a name="systemsmanagercloudextensions-CreateProfile-response-extensionDefaults"></a>
The default values that the extensions in this profile use. You can override these values in a profile entry.  
Type: [ExtensionDefaults](API_ExtensionDefaults.md) object

 ** [id](#API_CreateProfile_ResponseSyntax) **   <a name="systemsmanagercloudextensions-CreateProfile-response-id"></a>
The ID of the profile, which the service generates.  
Type: String  
Pattern: `[a-z0-9]{10,63}` 

 ** [name](#API_CreateProfile_ResponseSyntax) **   <a name="systemsmanagercloudextensions-CreateProfile-response-name"></a>
The name of the profile.  
Type: String  
Length Constraints: Minimum length of 2. Maximum length of 32.  
Pattern: `[a-z][a-z0-9]+([_-][a-z0-9]+)*` 

 ** [updatedAt](#API_CreateProfile_ResponseSyntax) **   <a name="systemsmanagercloudextensions-CreateProfile-response-updatedAt"></a>
The date and time when the profile was last updated. This value is the same as `createdAt` until the first update.  
Type: Timestamp

## Errors
<a name="API_CreateProfile_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
You don't have permission to perform the operation.    
 ** message **   
A description of why the request was denied.
HTTP Status Code: 403

 ** ConflictException **   
The request conflicts with the current state of the resource.    
 ** conflict **   
The details of the conflict.  
 ** message **   
A short summary that is the same for every `ConflictException`. For the details, see `conflict`.
HTTP Status Code: 409

 ** InternalServerException **   
The service couldn't process the request because of an internal error. Retry the request with capped exponential backoff and jitter.    
 ** message **   
A short summary that is the same for every `InternalServerException`.  
 ** retryAfterSeconds **   
The number of seconds to wait before you retry the request, from the `Retry-After` header. This value is present only when the service sets the header.
HTTP Status Code: 500

 ** ServiceQuotaExceededException **   
The request would exceed a service quota for your account.    
 ** message **   
A short summary that is the same for every `ServiceQuotaExceededException`. For the details, see `resourceType` and `resourceId`.  
 ** quotaCode **   
The code of the quota that would be exceeded.  
 ** resourceId **   
The identifier of the resource whose quota would be exceeded.  
 ** resourceType **   
The type of the resource whose quota would be exceeded.  
 ** serviceCode **   
The service code to use to look up the quota.
HTTP Status Code: 402

 ** ThrottlingException **   
The request rate exceeded a limit. Retry the request with capped exponential backoff and jitter.    
 ** message **   
A description of the error.  
 ** retryAfterSeconds **   
The number of seconds to wait before you retry the request, from the `Retry-After` header. This value is present only when the service sets the header.
HTTP Status Code: 429

 ** ValidationException **   
The request is malformed or contains parameter values that aren't valid.    
 ** errors **   
A list of the specific reasons that the request failed validation, when available.  
 ** message **   
A short summary that is the same for every `ValidationException`. For the details, see `reason` and `errors`.  
 ** reason **   
A classification of the validation failure. `FIELD_VALIDATION_FAILED` means that one or more input fields failed validation. `UNKNOWN_OPERATION` means that the requested operation doesn't exist. `CANNOT_PARSE` means that the request body couldn't be parsed, or doesn't have the shape that the operation expects.
HTTP Status Code: 400

## See Also
<a name="API_CreateProfile_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/cloudextensions-2026-11-29/CreateProfile) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/cloudextensions-2026-11-29/CreateProfile) 
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/cloudextensions-2026-11-29/CreateProfile) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/cloudextensions-2026-11-29/CreateProfile) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/cloudextensions-2026-11-29/CreateProfile) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/cloudextensions-2026-11-29/CreateProfile) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/cloudextensions-2026-11-29/CreateProfile) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/cloudextensions-2026-11-29/CreateProfile) 
+  [AWS SDK for Python (Boto3)](https://docs.aws.amazon.com/goto/boto3/cloudextensions-2026-11-29/CreateProfile) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/cloudextensions-2026-11-29/CreateProfile) 