CloudExtensions / Client / update_profile_entry

update_profile_entry

CloudExtensions.Client.update_profile_entry(**kwargs)

Updates a profile entry’s configuration. Only provided fields are changed; omitted fields remain unchanged.

See also: AWS API Documentation

Request Syntax

response = client.update_profile_entry(
    identifier='string',
    profileIdentifier='string',
    name='string',
    description='string',
    interfaces={
        'string': {
            'http': {
                'authentication': {
                    'none': True|False,
                    'runtimeCredentials': {}
                    ,
                    'extensionKey': {
                        'accessKeyId': 'string',
                        'secretKey': {
                            'literal': 'string',
                            'reference': 'string'
                        }
                    }
                },
                'basePath': 'string'
            }
        }
    },
    executionRole='string',
    versionPolicy={
        'updateStrategy': 'AUTOMATIC'|'MANUAL',
        'versionSelector': 'string'
    },
    settings={...}|[...]|123|123.4|'string'|True|None,
    approve=[
        'string',
    ]
)
Parameters:
  • identifier (string) –

    [REQUIRED]

    The identifier of the profile entry

  • profileIdentifier (string) –

    [REQUIRED]

    The identifier of the owning profile.

  • name (string) – A new name for the entry, unique within the profile.

  • description (string) – A new description of the entry’s purpose. An empty string removes the description.

  • interfaces (dict) –

    Per-interface options, 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 can be set: http.

        • 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 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.

          • basePath (string) –

            The path prefix under which this interface is served. Set by the service; a request that sets it is rejected.

  • executionRole (string) – The IAM role an extension assumes when calling AWS services. The role must be assumable by the Cloud Extensions Runtime’s principal. An empty string removes the entry’s role, so the profile’s default applies.

  • 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

  • settings (document) – Changes to the entry’s setting values, applied as a JSON merge patch (RFC 7396). An omitted setting is unchanged, null removes a setting so it takes its default if it has one, an object merges into a group’s stored values, and any other value replaces the stored one. An array replaces the whole stored array, and a null inside an array is rejected. Keys are the extension’s setting ids and the merged values are validated against the extension’s settings definitions.

  • approve (list) –

    The complete list of capability paths to approve, replacing the entry’s current approvals. A capability left out of the list is no longer approved. Omit approve to keep the current approvals.

    • (string) –

      The path of a capability declared by the extension.

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 set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is 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 set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is 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 set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is 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 set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is 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 set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is 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 set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is 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.InternalServerException

  • CloudExtensions.Client.exceptions.ConflictException

  • CloudExtensions.Client.exceptions.AccessDeniedException

  • CloudExtensions.Client.exceptions.ValidationException

  • CloudExtensions.Client.exceptions.ResourceNotFoundException

  • CloudExtensions.Client.exceptions.ThrottlingException