Skip to main content

applications

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

Overview

Nameapplications
TypeResource
Idaws.appconfig.applications

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
descriptionstringThe description of the application.
idstringThe application ID. (pattern: <code>[a-z0-9]{4,7}</code>)
namestringThe application name.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_applicationselectapplication_id, regionRetrieves information about an application.
list_applicationsselectregionmax_results, next_tokenLists all applications in your Amazon Web Services account.
create_applicationinsertregionCreates an application. In AppConfig, an application is simply an organizational construct like a folder. This organizational construct has a relationship with some unit of executable code. For example, you could create an application called MyMobileApp to organize and manage configuration data for a mobile application installed by your users.
update_applicationupdateapplication_id, regionUpdates an application.
delete_applicationdeleteapplication_id, regionDeletes an application.
stop_deploymentexecapplication_id, environment_id, deployment_number, regionAllow-RevertStops a deployment. This API action works only on deployments that have a status of DEPLOYING, unless an AllowRevert parameter is supplied. If the AllowRevert parameter is supplied, the status of an in-progress deployment will be ROLLED_BACK. The status of a completed deployment will be REVERTED. AppConfig only allows a revert within 72 hours of deployment completion.
start_deploymentexecapplication_id, environment_id, region, DeploymentStrategyId, ConfigurationProfileId, ConfigurationVersionStarts a deployment. AppConfig Agent supports deploying feature flag or free-form configuration data to specific segments or individual users during a gradual rollout. Entity-based gradual deployments ensure that once a user or segment receives a configuration version, they continue to receive that same version throughout the deployment period, regardless of which compute resource serves their requests. For more information, see Using AppConfig Agent for user-based or entity-based gradual deployments

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
application_idstringThe application ID.
deployment_numberintegerThe sequence number of the deployment.
environment_idstringThe environment ID.
regionstringAWS region (default: us-east-1)
Allow-RevertbooleanA Boolean that enables AppConfig to rollback a COMPLETED deployment to the previous configuration version. This action moves the deployment to a status of REVERTED.
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. Next token is a pagination token generated by AppConfig to describe what page the previous List call ended on. For the first List request, the nextToken should not be set. On subsequent calls, the nextToken parameter should be set to the previous responses nextToken value. Use this token to get the next set of results.

SELECT examples

Retrieves information about an application.

SELECT
description,
id,
name
FROM aws.appconfig.applications
WHERE application_id = '{{ application_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an application. In AppConfig, an application is simply an organizational construct like a folder. This organizational construct has a relationship with some unit of executable code. For example, you could create an application called MyMobileApp to organize and manage configuration data for a mobile application installed by your users.

INSERT INTO aws.appconfig.applications (
Name,
Description,
Tags,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
description,
id,
name
;

UPDATE examples

Updates an application.

UPDATE aws.appconfig.applications
SET
Name = '{{ Name }}',
Description = '{{ Description }}'
WHERE
application_id = '{{ application_id }}' --required
AND region = '{{ region }}' --required
RETURNING
description,
id,
name;

DELETE examples

Deletes an application.

DELETE FROM aws.appconfig.applications
WHERE application_id = '{{ application_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Stops a deployment. This API action works only on deployments that have a status of DEPLOYING, unless an AllowRevert parameter is supplied. If the AllowRevert parameter is supplied, the status of an in-progress deployment will be ROLLED_BACK. The status of a completed deployment will be REVERTED. AppConfig only allows a revert within 72 hours of deployment completion.

EXEC aws.appconfig.applications.stop_deployment
@application_id='{{ application_id }}' --required,
@environment_id='{{ environment_id }}' --required,
@deployment_number='{{ deployment_number }}' --required,
@region='{{ region }}' --required,
@Allow-Revert={{ Allow-Revert }}
;