CreateProfileEntry
Creates a profile entry that binds an extension to a profile. The extension must exist, and the profile can't already have an entry for that extension.
Request Syntax
POST /profiles/profileIdentifier/entries HTTP/1.1
Content-type: application/json
{
"approve": [ "string" ],
"clientToken": "string",
"description": "string",
"executionRole": "string",
"extensionIdentifier": "string",
"interfaces": {
"string" : { ... }
},
"name": "string",
"settings": JSON value,
"tags": {
"string" : "string"
},
"versionPolicy": {
"updateStrategy": "string",
"versionSelector": "string"
}
}
URI Request Parameters
The request uses the following URI parameters.
- profileIdentifier
-
The ID or name of the profile to bind the extension to.
Length Constraints: Minimum length of 1. Maximum length of 1011.
Pattern:
([a-z0-9]{10,63}|[a-z][a-z0-9]+([_-][a-z0-9]+)*)Required: Yes
Request Body
The request accepts the following data in JSON format.
- approve
-
A list of capability paths to approve. Each path must correspond to a capability instance that the extension declares. A capability path is a capability ID, optionally followed by dot-separated child IDs or list indexes. You can specify up to 100 paths.
Type: Array of strings
Array Members: Minimum number of 0 items. Maximum number of 100 items.
Length Constraints: Minimum length of 3. Maximum length of 128.
Pattern:
[a-z][a-zA-Z0-9]{2,31}(\.([a-z][a-zA-Z0-9]{2,31}|0|[1-9][0-9]?))*Required: No
- clientToken
-
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
-
A description of the purpose of the entry. The description can be up to 256 characters long.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 256.
Pattern:
[^ \p{Cc}][^\p{Cc}]*Required: No
- executionRole
-
The ARN of the IAM role that the extension assumes when it calls AWS services. The principal of the Cloud Extensions orchestrator must be able to assume the role.
Type: String
Length Constraints: Minimum length of 20. Maximum length of 1011.
Pattern:
arn:[a-z0-9-]+:iam:[a-z0-9-]*:[0-9]{0,12}:role/[a-zA-Z0-9/_+=,.@-]+Required: No
- extensionIdentifier
-
The ID of the extension to bind, such as
aws:secretsmanager. The ID is the namespace and name of the extension, joined by a colon.Type: String
Length Constraints: Minimum length of 6. Maximum length of 49.
Pattern:
[a-z0-9]{3,16}:[a-z][a-z0-9]+([_-][a-z0-9]+)*Required: Yes
- interfaces
-
The options for each interface, keyed by the ID of an interface that the extension declares. You can specify options for up to 10 interfaces.
Type: String to InterfaceOptions object map
Map Entries: Minimum number of 0 items. Maximum number of 10 items.
Key Pattern:
[a-z]([a-zA-Z0-9]{2,31})Required: No
- name
-
The name of the entry, which must be unique within the profile. If you don't specify a name, the default is the name part of the extension ID.
Type: String
Length Constraints: Minimum length of 2. Maximum length of 32.
Pattern:
[a-z][a-z0-9]+([_-][a-z0-9]+)*Required: No
- settings
-
The setting values to use for this extension, as free-form JSON. The keys are the setting IDs of the extension. The values are validated against the setting definitions of the extension. A setting that you omit or set to null takes its default value, if it has one. A null value inside an array isn't valid.
Type: JSON value
Required: No
-
The tags to assign to the profile entry.
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
- versionPolicy
-
The policy that controls which extension version this entry tracks, and how the entry adopts new releases.
Type: VersionPolicy object
Required: No
Response Syntax
HTTP/1.1 201
Content-type: application/json
{
"approvedCapabilities": {
"string" : { ... }
},
"arn": "string",
"createdAt": "string",
"description": "string",
"effectiveSettings": JSON value,
"executionRole": "string",
"extensionDisplayName": "string",
"extensionId": "string",
"id": "string",
"inherited": {
"executionRole": "string",
"interfaceDefaults": {
"http": {
"authentication": { ... }
}
}
},
"interfaces": {
"string" : { ... }
},
"latestVersion": "string",
"name": "string",
"profileId": "string",
"profileName": "string",
"resolvedVersion": "string",
"updatedAt": "string",
"versionPolicy": {
"updateStrategy": "string",
"versionSelector": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 201 response.
The following data is returned in JSON format by the service.
- approvedCapabilities
-
A map of capability paths to their approved specifications. You must explicitly approve a capability before the extension can use it.
Type: String to CapabilityDefinition object map
Map Entries: Minimum number of 0 items. Maximum number of 100 items.
Key Length Constraints: Minimum length of 3. Maximum length of 128.
Key Pattern:
[a-z][a-zA-Z0-9]{2,31}(\.([a-z][a-zA-Z0-9]{2,31}|0|[1-9][0-9]?))* - arn
-
The Amazon Resource Name (ARN) of the profile entry.
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
-
The date and time when the profile entry was created.
Type: Timestamp
- description
-
A description of the purpose of the entry.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 256.
Pattern:
[^ \p{Cc}][^\p{Cc}]* - effectiveSettings
-
The setting values for this extension, including any default values that apply. The values are validated against the setting definitions of the extension.
Type: JSON value
- executionRole
-
The ARN of the IAM role that the extension assumes when it calls AWS services. The principal of the Cloud Extensions orchestrator must be able to assume the role.
Type: String
Length Constraints: Minimum length of 20. Maximum length of 1011.
Pattern:
arn:[a-z0-9-]+:iam:[a-z0-9-]*:[0-9]{0,12}:role/[a-zA-Z0-9/_+=,.@-]+ - extensionDisplayName
-
The display name of the extension that this entry references.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 64.
Pattern:
[^\s\p{Cc}]([^\p{Cc}]*[^\s\p{Cc}])? - extensionId
-
The ID of the extension that this entry references, such as
aws:secretsmanager.Type: String
Length Constraints: Minimum length of 6. Maximum length of 49.
Pattern:
[a-z0-9]{3,16}:[a-z][a-z0-9]+([_-][a-z0-9]+)* - id
-
The ID of the profile entry, which the service generates.
Type: String
Pattern:
[a-z0-9]{10,63} - inherited
-
The extension defaults of the profile. An option that is set in the
interfacesof the entry overrides the same option in the inheritedinterfaceDefaults.Type: ExtensionDefaults object
- interfaces
-
The options for each interface of this entry, keyed by the ID of an interface that the extension declares.
Type: String to InterfaceOptions object map
Map Entries: Minimum number of 0 items. Maximum number of 10 items.
Key Pattern:
[a-z]([a-zA-Z0-9]{2,31}) - latestVersion
-
The latest released version of the extension, whether or not the version policy of the entry selects it.
Type: String
Pattern:
(0|[1-9]\d{0,7})\.(0|[1-9]\d{0,7})\.(0|[1-9]\d{0,7}) - name
-
The name of the profile entry, which is unique within the profile. The default is the name part of the extension ID.
Type: String
Length Constraints: Minimum length of 2. Maximum length of 32.
Pattern:
[a-z][a-z0-9]+([_-][a-z0-9]+)* - profileId
-
The ID of the profile that this entry belongs to.
Type: String
Pattern:
[a-z0-9]{10,63} - profileName
-
The name of the profile that this entry belongs to.
Type: String
Length Constraints: Minimum length of 2. Maximum length of 32.
Pattern:
[a-z][a-z0-9]+([_-][a-z0-9]+)* - resolvedVersion
-
The extension version that the version policy of the entry selects. The Cloud Extensions orchestrator runs this version.
Type: String
Pattern:
(0|[1-9]\d{0,7})\.(0|[1-9]\d{0,7})\.(0|[1-9]\d{0,7}) - updatedAt
-
The date and time when the profile entry was last updated. This value is the same as
createdAtuntil the first update.Type: Timestamp
- versionPolicy
-
The policy that controls which extension version this entry tracks, and how the entry adopts new releases.
Type: VersionPolicy object
Errors
For information about the errors that are common to all actions, see Common Error Types.
- 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, seeconflict.
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-Afterheader. This value is present only when the service sets the header.
HTTP Status Code: 500
- ResourceNotFoundException
-
The specified resource doesn't exist, or you don't have permission to access it.
- identifier
-
The identifier that was used to look up the resource.
- message
-
A short summary that is the same for every
ResourceNotFoundException. For the details, seeresourceTypeandidentifier. - resourceType
-
The type of the resource that wasn't found.
HTTP Status Code: 404
- 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, seeresourceTypeandresourceId. - 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-Afterheader. 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, seereasonanderrors. - reason
-
A classification of the validation failure.
FIELD_VALIDATION_FAILEDmeans that one or more input fields failed validation.UNKNOWN_OPERATIONmeans that the requested operation doesn't exist.CANNOT_PARSEmeans that the request body couldn't be parsed, or doesn't have the shape that the operation expects.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: