CloudExtensions / Client / get_profile_entry
get_profile_entry¶
- CloudExtensions.Client.get_profile_entry(**kwargs)¶
Retrieves a profile entry by its profile identifier and entry identifier.
See also: AWS API Documentation
Request Syntax
response = client.get_profile_entry( identifier='string', profileIdentifier='string' )
- Parameters:
identifier (string) –
[REQUIRED]
The identifier (id or name) of the profile entry.
profileIdentifier (string) –
[REQUIRED]
The identifier of the owning profile.
- Return type:
dict
- Returns:
Response Syntax
{ 'id': 'string', 'name': 'string', 'arn': 'string', 'profileId': 'string', 'profileName': 'string', 'extensionId': 'string', 'extensionDisplayName': 'string', 'versionPolicy': { 'updateStrategy': 'AUTOMATIC'|'MANUAL', 'versionSelector': 'string' }, 'resolvedVersion': 'string', 'latestVersion': 'string', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1), 'executionRole': 'string', 'description': 'string', 'effectiveSettings': {...}|[...]|123|123.4|'string'|True|None, 'approvedCapabilities': { 'string': { 'filesystem': { 'directory': 'string', 'paths': [ 'string', ], 'accessMode': 'READ_ONLY'|'READ_WRITE', 'createMode': 'PRIVATE'|'PUBLIC' }, 'aws': { 'services': { 'string': [ 'string', ] } }, 'exec': { 'command': 'string', 'args': [ 'string', ], 'timeoutInSeconds': 123 } } }, 'inherited': { 'executionRole': 'string', 'interfaceDefaults': { 'http': { 'authentication': { 'none': True|False, 'runtimeCredentials': {}, 'extensionKey': { 'accessKeyId': 'string', 'secretKey': { 'literal': 'string', 'reference': 'string' } } } } } }, 'interfaces': { 'string': { 'http': { 'authentication': { 'none': True|False, 'runtimeCredentials': {}, 'extensionKey': { 'accessKeyId': 'string', 'secretKey': { 'literal': 'string', 'reference': 'string' } } }, 'basePath': 'string' } } } }
Response Structure
(dict) –
A profile entry binds an extension to a profile, defining which version to track and how the extension is configured for that deployment context. Each profile can have one entry per extension.
id (string) –
The service-generated id of the profile entry.
name (string) –
The name of the profile entry, unique within the profile. Defaults to the name in the extension’s id.
arn (string) –
The Amazon Resource Name (ARN) of the profile entry.
profileId (string) –
The id of the profile this entry belongs to.
profileName (string) –
The name of the profile this entry belongs to.
extensionId (string) –
The id of the extension this entry references, such as aws:secretsmanager.
extensionDisplayName (string) –
The display name of the extension this entry references.
versionPolicy (dict) –
Controls which extension version this entry tracks and how it adopts new releases.
updateStrategy (string) –
The update strategy to use when a new extension version is available.
versionSelector (string) –
An optional version selector that constrains which versions are eligible. If the strategy is AUTOMATIC, this allows limiting updates to patches within a minor version. When MANUAL, the value must correspond to a specific Extension version
resolvedVersion (string) –
The extension version the entry’s version policy selects, which the Cloud Extensions Runtime runs.
latestVersion (string) –
The extension’s latest released version, whether or not the entry’s version policy selects it.
createdAt (datetime) –
When the profile entry was created.
updatedAt (datetime) –
When the profile entry was last updated. Equal to createdAt until the first update.
executionRole (string) –
The IAM role an extension assumes when calling AWS services. The role must be assumable by the Cloud Extensions Runtime’s principal.
description (string) –
A description of the entry’s purpose.
effectiveSettings (document) –
The setting values to use for this extension, including any applied default values. The settings will be validated against the extension’s settings’ definitions.
approvedCapabilities (dict) –
A map of capability paths to their approved specifications. Capabilities must be explicitly approved before the extension can use them.
(string) –
The path of an approved capability.
(dict) –
The approved specification of the capability.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
filesystem,aws,exec. 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'}
filesystem (dict) –
Access to the host filesystem.
directory (string) –
A base directory path. If provided, grants access to this directory and its contents.
paths (list) –
Specific file paths to grant access to. Use when access to individual files is needed rather than an entire directory.
(string) –
A file path to grant access to.
accessMode (string) –
The level of filesystem access requested.
createMode (string) –
Controls the visibility of files created by the extension. Required when accessMode is READ_WRITE.
aws (dict) –
Permission to call AWS service APIs.
services (dict) –
A map of AWS service names to the list of API operations the extension is allowed to invoke.
(string) –
The name of an AWS service.
(list) –
The API operations of the service the extension is allowed to invoke.
(string) –
The name of an API operation.
exec (dict) –
Permission to execute a host command.
command (string) –
The command to execute.
args (list) –
Arguments passed to the command.
(string) –
An argument passed to the command.
timeoutInSeconds (integer) –
Maximum time in seconds the command is allowed to run before being terminated.
inherited (dict) –
The profile’s extension defaults. An option set in an entry’s interfaces overrides the same option in the inherited interfaceDefaults.
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.
interfaces (dict) –
Per-interface options for this entry, keyed by the id of an interface the extension declares.
(string) –
The id of an interface the extension declares.
(dict) –
The options for the interface.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
http. 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'}
http (dict) –
Options for an HTTP interface.
authentication (dict) –
How clients authenticate when calling this interface. Overrides the authentication in the profile’s interfaceDefaults.
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.
basePath (string) –
The path prefix under which this interface is served. Set by the service; a request that sets it is rejected.
Exceptions
CloudExtensions.Client.exceptions.InternalServerExceptionCloudExtensions.Client.exceptions.AccessDeniedExceptionCloudExtensions.Client.exceptions.ValidationExceptionCloudExtensions.Client.exceptions.ResourceNotFoundExceptionCloudExtensions.Client.exceptions.ThrottlingException