Skip to main content

integrations

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

Overview

Nameintegrations
TypeResource
Idaws.securityagent.integrations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
display_namestringThe display name of the integration.
installation_idstringThe installation identifier from the integration provider.
integration_idstringUnique identifier for an integration.
kms_key_idstringIdentifier of a KMS key. Can be a key ID, key ARN, alias name, or alias ARN.
private_connection_namestringThe unique name of a private connection within your account.
providerstringThird-party provider type. (GITHUB, GITLAB, BITBUCKET, CONFLUENCE)
provider_typestringThe type of the integration provider. (SOURCE_CODE, DOCUMENTATION)
target_urlstringThe HTTPS URL of the customer self-hosted instance, such as a GitHub Enterprise Server or self-managed GitLab instance. This value is absent for SaaS integrations.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_integrationselectregionRetrieves information about an integration.
list_integrationsselectregionLists the integrations in your account, optionally filtered by provider or provider type.
create_integrationinsertregion, provider, input, integrationDisplayNameCreates a new integration with a third-party provider, such as GitHub, for code review and remediation.
delete_integrationdeleteregionDeletes an integration with a third-party provider.

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 integration.

SELECT
display_name,
installation_id,
integration_id,
kms_key_id,
private_connection_name,
provider,
provider_type,
target_url
FROM aws.securityagent.integrations
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new integration with a third-party provider, such as GitHub, for code review and remediation.

INSERT INTO aws.securityagent.integrations (
provider,
input,
integrationDisplayName,
kmsKeyId,
tags,
privateConnectionName,
region
)
SELECT
'{{ provider }}' /* required */,
'{{ input }}' /* required */,
'{{ integrationDisplayName }}' /* required */,
'{{ kmsKeyId }}',
'{{ tags }}',
'{{ privateConnectionName }}',
'{{ region }}'
RETURNING
integration_id
;

DELETE examples

Deletes an integration with a third-party provider.

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