Skip to main content

application_versions

Creates, updates, deletes or gets an application_version resource or lists application_versions in a region

Overview

Nameapplication_versions
TypeResource
DescriptionResource Type definition for AWS::ElasticBeanstalk::ApplicationVersion
Idawscc.elasticbeanstalk.application_versions

Fields

NameDatatypeDescription
idstring
application_namestringThe name of the Elastic Beanstalk application that is associated with this application version.
descriptionstringA description of this application version.
source_bundleobjectThe Amazon S3 bucket and key that identify the location of the source bundle for this version.
regionstringAWS region.

For more information, see AWS::ElasticBeanstalk::ApplicationVersion.

Methods

NameResourceAccessible byRequired Params
create_resourceapplication_versionsINSERTApplicationName, SourceBundle, region
delete_resourceapplication_versionsDELETEIdentifier, region
update_resourceapplication_versionsUPDATEIdentifier, PatchDocument, region
list_resourcesapplication_versions_list_onlySELECTregion
get_resourceapplication_versionsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual application_version.

SELECT
region,
id,
application_name,
description,
source_bundle
FROM awscc.elasticbeanstalk.application_versions
WHERE
region = '{{ region }}' AND
Identifier = '{{ application_name }}|{{ id }}';

INSERT example

Use the following StackQL query and manifest file to create a new application_version resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.elasticbeanstalk.application_versions (
ApplicationName,
SourceBundle,
region
)
SELECT
'{{ application_name }}',
'{{ source_bundle }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

Use the following StackQL query and manifest file to update a application_version resource, using stack-deploy.

/*+ update */
UPDATE awscc.elasticbeanstalk.application_versions
SET PatchDocument = string('{{ {
"Description": description
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ application_name }}|{{ id }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.elasticbeanstalk.application_versions
WHERE
Identifier = '{{ application_name }}|{{ id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the application_versions resource, the following permissions are required:

elasticbeanstalk:CreateApplicationVersion,
elasticbeanstalk:DescribeApplicationVersions,
s3:GetObject,
s3:PutObject