Skip to main content

extension_associations

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

Overview

Nameextension_associations
TypeResource
Idaws.appconfig.extension_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
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>)
extension_arnstringThe ARN of the extension defined in the association. (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>)
extension_version_numberintegerThe version number for the extension defined in the association.
idstringThe system-generated ID for the association.
parametersobjectThe parameter names and values defined in the association.
resource_arnstringThe ARNs of applications, configuration profiles, or environments defined in the association. (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>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_extension_associationselectextension_association_id, regionReturns information about an AppConfig extension association. For more information about extensions and associations, see Extending workflows in the AppConfig User Guide.
list_extension_associationsselectregionresource_identifier, extension_identifier, extension_version_number, max_results, next_tokenLists all AppConfig extension associations in the account. For more information about extensions and associations, see Extending workflows in the AppConfig User Guide.
create_extension_associationinsertregion, ExtensionIdentifier, ResourceIdentifierWhen you create an extension or configure an Amazon Web Services authored extension, you associate the extension with an AppConfig application, environment, or configuration profile. For example, you can choose to run the AppConfig deployment events to Amazon SNS Amazon Web Services authored extension and receive notifications on an Amazon SNS topic anytime a configuration deployment is started for a specific application. Defining which extension to associate with an AppConfig resource is called an extension association. An extension association is a specified relationship between an extension and an AppConfig resource, such as an application or a configuration profile. For more information about extensions and associations, see Extending workflows in the AppConfig User Guide.
update_extension_associationupdateextension_association_id, regionUpdates an association. For more information about extensions and associations, see Extending workflows in the AppConfig User Guide.
delete_extension_associationdeleteextension_association_id, regionDeletes an extension association. This action doesn't delete extensions defined in the association.

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_association_idstringThe ID of the extension association to delete.
regionstringAWS region (default: us-east-1)
extension_identifierstringThe name, the ID, or the Amazon Resource Name (ARN) of the extension.
extension_version_numberintegerThe version number for the extension defined in the association.
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.
next_tokenstringA token to start the list. Use this token to get the next set of results or pass null to get the first set of results.
resource_identifierstringThe ARN of an application, configuration profile, or environment.

SELECT examples

Returns information about an AppConfig extension association. For more information about extensions and associations, see Extending workflows in the AppConfig User Guide.

SELECT
arn,
extension_arn,
extension_version_number,
id,
parameters,
resource_arn
FROM aws.appconfig.extension_associations
WHERE extension_association_id = '{{ extension_association_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

When you create an extension or configure an Amazon Web Services authored extension, you associate the extension with an AppConfig application, environment, or configuration profile. For example, you can choose to run the AppConfig deployment events to Amazon SNS Amazon Web Services authored extension and receive notifications on an Amazon SNS topic anytime a configuration deployment is started for a specific application. Defining which extension to associate with an AppConfig resource is called an extension association. An extension association is a specified relationship between an extension and an AppConfig resource, such as an application or a configuration profile. For more information about extensions and associations, see Extending workflows in the AppConfig User Guide.

INSERT INTO aws.appconfig.extension_associations (
ExtensionIdentifier,
ExtensionVersionNumber,
ResourceIdentifier,
Parameters,
Tags,
region
)
SELECT
'{{ ExtensionIdentifier }}' /* required */,
{{ ExtensionVersionNumber }},
'{{ ResourceIdentifier }}' /* required */,
'{{ Parameters }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
arn,
extension_arn,
extension_version_number,
id,
parameters,
resource_arn
;

UPDATE examples

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

UPDATE aws.appconfig.extension_associations
SET
Parameters = '{{ Parameters }}'
WHERE
extension_association_id = '{{ extension_association_id }}' --required
AND region = '{{ region }}' --required
RETURNING
arn,
extension_arn,
extension_version_number,
id,
parameters,
resource_arn;

DELETE examples

Deletes an extension association. This action doesn't delete extensions defined in the association.

DELETE FROM aws.appconfig.extension_associations
WHERE extension_association_id = '{{ extension_association_id }}' --required
AND region = '{{ region }}' --required
;