View a markdown version of this page

UpdateProfileEntry - AWS Systems Manager Cloud Extensions

UpdateProfileEntry

Updates the configuration of a profile entry. The operation changes only the fields that you provide. Fields that you omit stay unchanged.

Request Syntax

PATCH /profiles/profileIdentifier/entries/identifier HTTP/1.1 Content-type: application/json { "approve": [ "string" ], "description": "string", "executionRole": "string", "interfaces": { "string" : { ... } }, "name": "string", "settings": JSON value, "versionPolicy": { "updateStrategy": "string", "versionSelector": "string" } }

URI Request Parameters

The request uses the following URI parameters.

identifier

The ID or name of the profile entry.

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

profileIdentifier

The ID or name of the profile that owns the entry.

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

The complete list of capability paths to approve. This list replaces the current approvals of the entry. A capability that you leave out of the list is no longer approved. To keep the current approvals, omit this parameter. 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

description

A new description of the purpose of the entry. An empty string removes the description.

Type: String

Length Constraints: Minimum length of 0. 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. An empty string removes the role from the entry, so the default role of the profile applies.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 1011.

Pattern: $|^arn:[a-z0-9-]+:iam:[a-z0-9-]*:[0-9]{0,12}:role/[a-zA-Z0-9/_+=,.@-]+

Required: No

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

A new name for the entry, which must be unique within the profile.

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 changes to the setting values of the entry, applied as a JSON merge patch (RFC 7396). A setting that you omit stays the same. A null value removes a setting, so that the setting takes its default value, if it has one. An object merges into the stored values of a group setting. Any other value replaces the stored value. An array replaces the whole stored array, and a null value inside an array isn't valid. The keys are the setting IDs of the extension, and the merged values are validated against the setting definitions of the extension.

Type: JSON value

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 200 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 200 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 interfaces of the entry overrides the same option in the inherited interfaceDefaults.

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 createdAt until 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, 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

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, see resourceType and identifier.

resourceType

The type of the resource that wasn't found.

HTTP Status Code: 404

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

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