Skip to main content

applications

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

Overview

Nameapplications
TypeResource
Idaws.servicecatalog_appregistry.applications

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe identifier of the application. (pattern: <code>[a-z0-9]+</code>)
namestringThe name of the application. The name must be unique in the region in which you are creating the application. (pattern: <code>[-.\w]+</code>)
application_tagobjectA key-value pair that identifies an associated resource.
arnstringThe Amazon resource name (ARN) that specifies the application across services. (pattern: <code>arn:aws[-a-z]*:servicecatalog:[a-z]{2}(-gov)?-[a-z]+-\d:\d{12}:/applications/[a-z0-9]+</code>)
associated_resource_countintegerThe number of top-level resources that were registered as part of this application.
creation_timestring (date-time)The ISO-8601 formatted timestamp of the moment when the application was created.
descriptionstringThe description of the application.
integrationsobjectThe information about the integration of the application with other services, such as Resource Groups.
last_update_timestring (date-time)The ISO-8601 formatted timestamp of the moment when the application was last updated.
tagsobjectKey-value pairs associated with the application.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_applicationselectapplication, regionRetrieves metadata information about one of your applications. The application can be specified by its ARN, ID, or name (which is unique within one account in one region at a given point in time). Specify by ARN or ID in automated workflows if you want to make sure that the exact same application is returned or a ResourceNotFoundException is thrown, avoiding the ABA addressing problem.
list_applicationsselectregionnextToken, maxResultsRetrieves a list of all of your applications. Results are paginated.
create_applicationinsertregion, name, clientTokenCreates a new application that is the top-level node in a hierarchy of related cloud resource abstractions.
update_applicationupdateapplication, regionUpdates an existing application with new attributes.
delete_applicationdeleteapplication, regionDeletes an application that is specified either by its application ID, name, or ARN. All associated attribute groups and resources must be disassociated from it before deleting an application.

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
applicationstringThe name, ID, or ARN of the application.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe upper bound of the number of results to return (cannot exceed 25). If this parameter is omitted, it defaults to 25. This value is optional.
nextTokenstringThe token to use to get the next page of results after a previous API call.

SELECT examples

Retrieves metadata information about one of your applications. The application can be specified by its ARN, ID, or name (which is unique within one account in one region at a given point in time). Specify by ARN or ID in automated workflows if you want to make sure that the exact same application is returned or a ResourceNotFoundException is thrown, avoiding the ABA addressing problem.

SELECT
id,
name,
application_tag,
arn,
associated_resource_count,
creation_time,
description,
integrations,
last_update_time,
tags
FROM aws.servicecatalog_appregistry.applications
WHERE application = '{{ application }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new application that is the top-level node in a hierarchy of related cloud resource abstractions.

INSERT INTO aws.servicecatalog_appregistry.applications (
name,
description,
tags,
clientToken,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ tags }}',
'{{ clientToken }}' /* required */,
'{{ region }}'
RETURNING
application
;

UPDATE examples

Updates an existing application with new attributes.

UPDATE aws.servicecatalog_appregistry.applications
SET
name = '{{ name }}',
description = '{{ description }}'
WHERE
application = '{{ application }}' --required
AND region = '{{ region }}' --required
RETURNING
application;

DELETE examples

Deletes an application that is specified either by its application ID, name, or ARN. All associated attribute groups and resources must be disassociated from it before deleting an application.

DELETE FROM aws.servicecatalog_appregistry.applications
WHERE application = '{{ application }}' --required
AND region = '{{ region }}' --required
;