Skip to main content

applications

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

Overview

Nameapplications
TypeResource
Idaws.securityagent.applications

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_idstringApplication identifier.
application_namestringThe name of the application.
default_kms_key_idstringIdentifier of a KMS key. Can be a key ID, key ARN, alias name, or alias ARN.
domainstringThe domain associated with the application.
idc_configurationobjectThe IAM Identity Center configuration for the application.
role_arnstringARN of the IAM role that the application uses to access AWS resources on your behalf.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_applicationselectregionRetrieves information about an application.
list_applicationsselectregionReturns a paginated list of application summaries in your account.
create_applicationinsertregionCreates a new application. An application is the top-level organizational unit that supports IAM Identity Center integration.
update_applicationupdateregion, applicationIdUpdates the configuration of an existing application, including the IAM role and default KMS key.
delete_applicationdeleteregionDeletes an application and its associated configuration, including IAM Identity Center settings.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves information about an application.

SELECT
application_id,
application_name,
default_kms_key_id,
domain,
idc_configuration,
role_arn
FROM aws.securityagent.applications
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new application. An application is the top-level organizational unit that supports IAM Identity Center integration.

INSERT INTO aws.securityagent.applications (
idcInstanceArn,
roleArn,
defaultKmsKeyId,
tags,
region
)
SELECT
'{{ idcInstanceArn }}',
'{{ roleArn }}',
'{{ defaultKmsKeyId }}',
'{{ tags }}',
'{{ region }}'
RETURNING
application_id
;

UPDATE examples

Updates the configuration of an existing application, including the IAM role and default KMS key.

UPDATE aws.securityagent.applications
SET
applicationId = '{{ applicationId }}',
roleArn = '{{ roleArn }}',
defaultKmsKeyId = '{{ defaultKmsKeyId }}'
WHERE
region = '{{ region }}' --required
AND applicationId = '{{ applicationId }}' --required
RETURNING
application_id;

DELETE examples

Deletes an application and its associated configuration, including IAM Identity Center settings.

DELETE FROM aws.securityagent.applications
WHERE region = '{{ region }}' --required
;