View a markdown version of this page

UpdateProfile - AWS Systems Manager Cloud Extensions

UpdateProfile

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

Request Syntax

PATCH /profiles/identifier HTTP/1.1 Content-type: application/json { "description": "string", "extensionDefaults": { "executionRole": "string", "interfaceDefaults": { "http": { "authentication": { ... } } } }, "name": "string" }

URI Request Parameters

The request uses the following URI parameters.

identifier

The ID or name of the profile to update.

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.

description

A description of the purpose or target environment of the profile. The description can be up to 256 characters long. 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

extensionDefaults

The default values that the extensions in this profile use. You can override these values in a profile entry. The values that you provide are merged with the current defaults, and a value that you omit stays the same. For authentication, a value of the same kind merges into the current setting, a value of a different kind switches the profile to that kind, and an empty authentication object resets the profile to runtimeCredentials.

Type: ExtensionDefaults object

Required: No

name

The new 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: No

Response Syntax

HTTP/1.1 200 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

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

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

arn

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

The date and time when the profile was created.

Type: Timestamp

description

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

The number of entries in the profile.

Type: Integer

extensionDefaults

The default values that the extensions in this profile use. You can override these values in a profile entry.

Type: ExtensionDefaults object

id

The ID of the profile, which the service generates.

Type: String

Pattern: [a-z0-9]{10,63}

name

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

The date and time when the profile was last updated. This value is the same as createdAt until the first update.

Type: Timestamp

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: