Skip to main content

extensions

Creates, updates, deletes, gets or lists an extensions resource.

Overview

Nameextensions
TypeResource
Idaws.appconfig.extensions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
actionsobjectThe actions defined in the extension.
arnstringThe system-generated Amazon Resource Name (ARN) for the extension. (pattern: <code>arn:(aws[a-zA-Z-]*)?:[a-z]+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\d{1})?:(\d{12})?:[a-zA-Z0-9-_/:.]+</code>)
descriptionstringInformation about the extension.
idstringThe system-generated ID of the extension. (pattern: <code>[a-z0-9]{4,7}</code>)
namestringThe extension name.
parametersobjectThe parameters accepted by the extension. You specify parameter values when you associate the extension to an AppConfig resource by using the CreateExtensionAssociation API action. For Lambda extension actions, these parameters are included in the Lambda request object.
version_numberintegerThe extension version number.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_extensionselectextension_identifier, regionversion_numberReturns information about an AppConfig extension.
list_extensionsselectregionmax_results, next_token, nameLists all custom and Amazon Web Services authored AppConfig extensions in the account. For more information about extensions, see Extending workflows in the AppConfig User Guide.
create_extensioninsertregionLatest-Version-NumberCreates an AppConfig extension. An extension augments your ability to inject logic or behavior at different points during the AppConfig workflow of creating or deploying a configuration. You can create your own extensions or use the Amazon Web Services authored extensions provided by AppConfig. For an AppConfig extension that uses Lambda, you must create a Lambda function to perform any computation and processing defined in the extension. If you plan to create custom versions of the Amazon Web Services authored notification extensions, you only need to specify an Amazon Resource Name (ARN) in the Uri field for the new extension version. For a custom EventBridge notification extension, enter the ARN of the EventBridge default events in the Uri field. For a custom Amazon SNS notification extension, enter the ARN of an Amazon SNS topic in the Uri field. For a custom Amazon SQS notification extension, enter the ARN of an Amazon SQS message queue in the Uri field. For more information about extensions, see Extending workflows in the AppConfig User Guide.
update_extensionupdateextension_identifier, regionUpdates an AppConfig extension. For more information about extensions, see Extending workflows in the AppConfig User Guide.
delete_extensiondeleteextension_identifier, regionversionDeletes an AppConfig extension. You must delete all associations to an extension before you delete the extension.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
extension_identifierstringThe name, ID, or Amazon Resource Name (ARN) of the extension you want to delete.
regionstringAWS region (default: us-east-1)
Latest-Version-NumberintegerYou can omit this field when you create an extension. When you create a new version, specify the most recent current version number. For example, you create version 3, enter 2 for this field.
max_resultsintegerThe maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
namestringThe extension name.
next_tokenstringA token to start the list. Use this token to get the next set of results.
versionintegerA specific version of an extension to delete. If omitted, the highest version is deleted.
version_numberintegerThe extension version number. If no version number was defined, AppConfig uses the highest version.

SELECT examples

Returns information about an AppConfig extension.

SELECT
actions,
arn,
description,
id,
name,
parameters,
version_number
FROM aws.appconfig.extensions
WHERE extension_identifier = '{{ extension_identifier }}' -- required
AND region = '{{ region }}' -- required
AND version_number = '{{ version_number }}'
;

INSERT examples

Creates an AppConfig extension. An extension augments your ability to inject logic or behavior at different points during the AppConfig workflow of creating or deploying a configuration. You can create your own extensions or use the Amazon Web Services authored extensions provided by AppConfig. For an AppConfig extension that uses Lambda, you must create a Lambda function to perform any computation and processing defined in the extension. If you plan to create custom versions of the Amazon Web Services authored notification extensions, you only need to specify an Amazon Resource Name (ARN) in the Uri field for the new extension version. For a custom EventBridge notification extension, enter the ARN of the EventBridge default events in the Uri field. For a custom Amazon SNS notification extension, enter the ARN of an Amazon SNS topic in the Uri field. For a custom Amazon SQS notification extension, enter the ARN of an Amazon SQS message queue in the Uri field. For more information about extensions, see Extending workflows in the AppConfig User Guide.

INSERT INTO aws.appconfig.extensions (
Name,
Description,
Actions,
Parameters,
Tags,
region,
`Latest-Version-Number`
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ Actions }}',
'{{ Parameters }}',
'{{ Tags }}',
'{{ region }}',
'{{ Latest-Version-Number }}'
RETURNING
actions,
arn,
description,
id,
name,
parameters,
version_number
;

UPDATE examples

Updates an AppConfig extension. For more information about extensions, see Extending workflows in the AppConfig User Guide.

UPDATE aws.appconfig.extensions
SET
Description = '{{ Description }}',
Actions = '{{ Actions }}',
Parameters = '{{ Parameters }}',
VersionNumber = {{ VersionNumber }}
WHERE
extension_identifier = '{{ extension_identifier }}' --required
AND region = '{{ region }}' --required
RETURNING
actions,
arn,
description,
id,
name,
parameters,
version_number;

DELETE examples

Deletes an AppConfig extension. You must delete all associations to an extension before you delete the extension.

DELETE FROM aws.appconfig.extensions
WHERE extension_identifier = '{{ extension_identifier }}' --required
AND region = '{{ region }}' --required
AND version = '{{ version }}'
;