CloudExtensions / Client / update_profile
update_profile¶
- CloudExtensions.Client.update_profile(**kwargs)¶
Updates a profile’s mutable properties. Only provided fields are changed; omitted fields remain unchanged.
See also: AWS API Documentation
Request Syntax
response = client.update_profile( identifier='string', name='string', description='string', extensionDefaults={ 'executionRole': 'string', 'interfaceDefaults': { 'http': { 'authentication': { 'none': True|False, 'runtimeCredentials': {} , 'extensionKey': { 'accessKeyId': 'string', 'secretKey': { 'literal': 'string', 'reference': 'string' } } } } } } )
- Parameters:
identifier (string) –
[REQUIRED]
The identifier (id or name) of the profile to update.
name (string) – The new name of the profile. Must be unique within the account.
description (string) – A human-readable description of the profile’s purpose or target environment. An empty string removes the description.
extensionDefaults (dict) –
Default values used by the extensions in this profile. These can be overridden at the profile entry level.
executionRole (string) –
The IAM role an extension should assume when calling AWS services. This role must be assumable by the Cloud Extensions Runtime’s principal. On update, an empty string removes the default role.
interfaceDefaults (dict) –
Default options for the interfaces of the extensions in this profile, by interface type.
http (dict) –
Default options for HTTP interfaces.
authentication (dict) –
The default authentication for clients calling an HTTP interface. Applies unless the profile entry sets authentication in that interface’s options.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
none,runtimeCredentials,extensionKey.none (boolean) –
Whether clients may interact with the extension interface without authenticating.
runtimeCredentials (dict) –
Clients sign requests with SigV4 using the AWS credentials the Cloud Extensions Runtime gets from its environment.
extensionKey (dict) –
Clients sign requests with SigV4 using a key the service issues.
accessKeyId (string) –
The service-generated SigV4 access key id. Set by the service; a value supplied in a request is ignored.
secretKey (dict) –
The SigV4 secret key, supplied inline or by reference to a Secrets Manager secret. If omitted, the service generates a literal; an update that supplies no secret key rotates it.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
literal,reference.literal (string) –
The secret key value supplied inline. Returned unmasked only in the create or update response that sets or rotates it; masked everywhere else.
reference (string) –
The ARN of a Secrets Manager secret holding the secret key.
- Return type:
dict
- Returns:
Response Syntax
{ 'id': 'string', 'name': 'string', 'arn': 'string', 'entryCount': 123, 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1), 'description': 'string', 'extensionDefaults': { 'executionRole': 'string', 'interfaceDefaults': { 'http': { 'authentication': { 'none': True|False, 'runtimeCredentials': {}, 'extensionKey': { 'accessKeyId': 'string', 'secretKey': { 'literal': 'string', 'reference': 'string' } } } } } } }
Response Structure
(dict) –
A profile represents a deployment target — the configuration context in which extensions run. Profiles own profile entries that bind specific extensions to the profile’s execution environment.
id (string) –
The service-generated id of the profile.
name (string) –
The name of the profile.
arn (string) –
The Amazon Resource Name (ARN) of the profile.
entryCount (integer) –
The number of entries in this profile.
createdAt (datetime) –
When the profile was created.
updatedAt (datetime) –
When the profile was last updated. Equal to createdAt until the first update.
description (string) –
A human-readable description of this profile’s purpose or target environment.
extensionDefaults (dict) –
Default values used by the extensions in this profile. These can be overridden at the profile entry level.
executionRole (string) –
The IAM role an extension should assume when calling AWS services. This role must be assumable by the Cloud Extensions Runtime’s principal. On update, an empty string removes the default role.
interfaceDefaults (dict) –
Default options for the interfaces of the extensions in this profile, by interface type.
http (dict) –
Default options for HTTP interfaces.
authentication (dict) –
The default authentication for clients calling an HTTP interface. Applies unless the profile entry sets authentication in that interface’s options.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
none,runtimeCredentials,extensionKey. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
none (boolean) –
Whether clients may interact with the extension interface without authenticating.
runtimeCredentials (dict) –
Clients sign requests with SigV4 using the AWS credentials the Cloud Extensions Runtime gets from its environment.
extensionKey (dict) –
Clients sign requests with SigV4 using a key the service issues.
accessKeyId (string) –
The service-generated SigV4 access key id. Set by the service; a value supplied in a request is ignored.
secretKey (dict) –
The SigV4 secret key, supplied inline or by reference to a Secrets Manager secret. If omitted, the service generates a literal; an update that supplies no secret key rotates it.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
literal,reference. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
literal (string) –
The secret key value supplied inline. Returned unmasked only in the create or update response that sets or rotates it; masked everywhere else.
reference (string) –
The ARN of a Secrets Manager secret holding the secret key.
Exceptions