CloudExtensions / Client / get_extension

get_extension

CloudExtensions.Client.get_extension(**kwargs)

Retrieves a released extension by its id. By default returns the latest version; use the version parameter to retrieve a specific release.

See also: AWS API Documentation

Request Syntax

response = client.get_extension(
    identifier='string',
    extensionVersion='string'
)
Parameters:
  • identifier (string) –

    [REQUIRED]

    The id of the extension, such as aws:secretsmanager.

  • extensionVersion (string) – The version to retrieve. Omit it to retrieve the latest release.

Return type:

dict

Returns:

Response Syntax

{
    'id': 'string',
    'displayName': 'string',
    'arn': 'string',
    'version': 'string',
    'overview': 'string',
    'documentationLink': 'string',
    'releaseNotes': 'string',
    'releasedAt': datetime(2015, 1, 1),
    'description': 'string',
    'configuration': {
        'settings': [
            {
                'id': 'string',
                'displayName': 'string',
                'description': 'string',
                'required': True|False,
                'activeWhen': 'string',
                'definition': {
                    'string': {
                        'default': 'string',
                        'format': 'arn'|'filepath',
                        'pattern': 'string',
                        'enum': [
                            'string',
                        ],
                        'minLength': 123,
                        'maxLength': 123
                    },
                    'integer': {
                        'default': 123,
                        'min': 123,
                        'max': 123
                    },
                    'float': {
                        'default': 123.0,
                        'min': 123.0,
                        'max': 123.0
                    },
                    'boolean': {
                        'default': True|False
                    },
                    'array': {
                        'minLength': 123,
                        'maxLength': 123,
                        'itemDefinition': {'... recursive ...'}
                    },
                    'group': {
                        'settings': {'... recursive ...'},
                        'capabilities': [
                            {
                                'id': 'string',
                                'purpose': 'string',
                                'required': True|False,
                                'definition': {
                                    'filesystem': {
                                        'directory': 'string',
                                        'paths': [
                                            'string',
                                        ],
                                        'accessMode': 'READ_ONLY'|'READ_WRITE',
                                        'createMode': 'PRIVATE'|'PUBLIC'
                                    },
                                    'aws': {
                                        'services': {
                                            'string': [
                                                'string',
                                            ]
                                        }
                                    },
                                    'exec': {
                                        'command': 'string',
                                        'args': [
                                            'string',
                                        ],
                                        'timeoutInSeconds': 123
                                    }
                                }
                            },
                        ]
                    }
                }
            },
        ],
        'capabilities': [
            {
                'id': 'string',
                'purpose': 'string',
                'required': True|False,
                'definition': {
                    'filesystem': {
                        'directory': 'string',
                        'paths': [
                            'string',
                        ],
                        'accessMode': 'READ_ONLY'|'READ_WRITE',
                        'createMode': 'PRIVATE'|'PUBLIC'
                    },
                    'aws': {
                        'services': {
                            'string': [
                                'string',
                            ]
                        }
                    },
                    'exec': {
                        'command': 'string',
                        'args': [
                            'string',
                        ],
                        'timeoutInSeconds': 123
                    }
                }
            },
        ],
        'interfaces': [
            {
                'id': 'string'
            },
        ]
    }
}

Response Structure

  • (dict) –

    A released, immutable extension package. Represents a versioned unit of compute that can be deployed to profiles via profile entries. Each extension version is a published snapshot of an extension draft.

    • id (string) –

      The extension’s id, in the form namespace:name, such as aws:secretsmanager.

    • displayName (string) –

      The extension’s display name.

    • arn (string) –

      The Amazon Resource Name (ARN) of the extension.

    • version (string) –

      The semantic version of this release.

    • overview (string) –

      A short summary of what the extension does, suitable for a catalog listing.

    • documentationLink (string) –

      A link to external documentation for this extension.

    • releaseNotes (string) –

      Author-provided notes describing what changed in this release.

    • releasedAt (datetime) –

      The timestamp when this version was released.

    • description (string) –

      A full description of the extension’s purpose and functionality.

    • configuration (dict) –

      The settings, capabilities and interfaces declared by this extension version.

      • settings (list) –

        The configurable settings exposed by this extension.

        • (dict) –

          Defines a configurable setting that an extension exposes to deployers. Settings are part of an extension’s declared configuration schema.

          • id (string) –

            A unique identifier for this setting within the extension’s configuration.

          • displayName (string) –

            A short, human-readable label for this setting, suitable for display in a UI.

          • description (string) –

            A description of what this setting controls and how it affects the extension’s behavior.

          • required (boolean) –

            Whether the deployer must provide a value for this setting. Defaults to false.

          • activeWhen (string) –

            A conditional expression referencing another setting’s id. When specified, this setting is only active (visible and applicable) when the referenced condition is met.

          • definition (dict) –

            The type and constraints for this setting’s value.

            Note

            This is a Tagged Union structure. Only one of the following top level keys will be set: string, integer, float, boolean, array, group. 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'}
            
            • string (dict) –

              The setting’s value is a string.

              • default (string) –

                The default value used when the deployer does not provide one.

              • format (string) –

                A named format constraint that implies additional validation (e.g. ‘arn’ or ‘filepath’).

              • pattern (string) –

                A regular expression the value must match.

              • enum (list) –

                An explicit list of allowed values. The deployer must choose from this set.

                • (string) –

                  An allowed value, between 1 and 16 characters.

              • minLength (integer) –

                The shortest length the value may have.

              • maxLength (integer) –

                The longest length the value may have. Must be greater than 0 and at least minLength.

            • integer (dict) –

              The setting’s value is a whole number.

              • default (integer) –

                The default value used when the deployer does not provide one.

              • min (integer) –

                The smallest allowed value, inclusive.

              • max (integer) –

                The largest allowed value, inclusive. Must be at least min.

            • float (dict) –

              The setting’s value is a number that may have a fractional part.

              • default (float) –

                The default value used when the deployer does not provide one.

              • min (float) –

                The smallest allowed value, inclusive.

              • max (float) –

                The largest allowed value, inclusive. Must be at least min.

            • boolean (dict) –

              The setting’s value is true or false.

              • default (boolean) –

                The default value used when the deployer does not provide one.

            • array (dict) –

              The setting’s value is a JSON array whose items share one definition.

              • minLength (integer) –

                The fewest items the array may hold.

              • maxLength (integer) –

                The most items the array may hold, between 1 and 100. Must be at least minLength.

              • itemDefinition (dict) –

                The definition for each element in the array.

                Note

                This is a Tagged Union structure. Only one of the following top level keys will be set: string, integer, float, boolean, array, group. 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'}
                
            • group (dict) –

              The setting’s value is a JSON object holding a nested set of settings.

              • settings (list) –

                The settings within this group.

              • capabilities (list) –

                Optional capabilities scoped to this group.

                • (dict) –

                  Declares a host capability that an extension requires. Capabilities must be explicitly approved by the deployer before the extension can use them.

                  • id (string) –

                    A unique identifier for this capability within the extension’s configuration.

                  • purpose (string) –

                    A description of why the extension needs this capability and how it will be used.

                  • required (boolean) –

                    Whether this capability is mandatory for the extension to function. Defaults to false.

                  • definition (dict) –

                    The type-specific details of the requested 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.

      • capabilities (list) –

        The host capabilities this extension requires to function (filesystem access, AWS service calls, exec permissions).

        • (dict) –

          Declares a host capability that an extension requires. Capabilities must be explicitly approved by the deployer before the extension can use them.

          • id (string) –

            A unique identifier for this capability within the extension’s configuration.

          • purpose (string) –

            A description of why the extension needs this capability and how it will be used.

          • required (boolean) –

            Whether this capability is mandatory for the extension to function. Defaults to false.

          • definition (dict) –

            The type-specific details of the requested 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.

      • interfaces (list) –

        The interfaces this extension serves to clients.

        • (dict) –

          Declares an HTTP interface that an extension serves to clients.

          • id (string) –

            A unique identifier for this interface within the extension’s configuration.

Exceptions