Skip to main content

integrations

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

Overview

Nameintegrations
TypeResource
Idaws.logs.integrations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
integration_detailsobjectA structure that contains information about the integration configuration. For an integration with OpenSearch Service, this includes information about OpenSearch Service resources such as the collection, the workspace, and policies.
integration_namestringThe name of the integration. (pattern: <code>[.-_/#A-Za-z0-9]+</code>)
integration_statusstringThe current status of this integration. (PROVISIONING, ACTIVE, FAILED)
integration_typestringThe type of integration. Integrations with OpenSearch Service have the type OPENSEARCH. (OPENSEARCH)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_integrationselectregionReturns information about one integration between CloudWatch Logs and OpenSearch Service.
list_integrationsselectregionReturns a list of integrations between CloudWatch Logs and other services in this account. Currently, only one integration can be created in an account, and this integration must be with OpenSearch Service.
associate_source_to_s3_table_integrationupdateregion, integrationArn, dataSourceAssociates a data source with an S3 Table Integration for query access in the 'logs' namespace. This enables querying log data using analytics engines that support Iceberg such as Amazon Athena, Amazon Redshift, and Apache Spark.
disassociate_source_from_s3_table_integrationupdateregion, identifierDisassociates a data source from an S3 Table Integration, removing query access and deleting all associated data from the integration.
put_integrationreplaceregion, integrationName, resourceConfig, integrationTypeCreates an integration between CloudWatch Logs and another service in this account. Currently, only integrations with OpenSearch Service are supported, and currently you can have only one integration in your account. Integrating with OpenSearch Service makes it possible for you to create curated vended logs dashboards, powered by OpenSearch Service analytics. For more information, see Vended log dashboards powered by Amazon OpenSearch Service. You can use this operation only to create a new integration. You can't modify an existing integration.
delete_integrationdeleteregionDeletes the integration between CloudWatch Logs and OpenSearch Service. If your integration has active vended logs dashboards, you must specify true for the force parameter, otherwise the operation will fail. If you delete the integration by setting force to true, all your vended logs dashboards powered by OpenSearch Service will be deleted and the data that was on them will no longer be accessible.

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

Returns information about one integration between CloudWatch Logs and OpenSearch Service.

SELECT
integration_details,
integration_name,
integration_status,
integration_type
FROM aws.logs.integrations
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Associates a data source with an S3 Table Integration for query access in the 'logs' namespace. This enables querying log data using analytics engines that support Iceberg such as Amazon Athena, Amazon Redshift, and Apache Spark.

UPDATE aws.logs.integrations
SET
integrationArn = '{{ integrationArn }}',
dataSource = '{{ dataSource }}'
WHERE
region = '{{ region }}' --required
AND integrationArn = '{{ integrationArn }}' --required
AND dataSource = '{{ dataSource }}' --required
RETURNING
identifier;

REPLACE examples

Creates an integration between CloudWatch Logs and another service in this account. Currently, only integrations with OpenSearch Service are supported, and currently you can have only one integration in your account. Integrating with OpenSearch Service makes it possible for you to create curated vended logs dashboards, powered by OpenSearch Service analytics. For more information, see Vended log dashboards powered by Amazon OpenSearch Service. You can use this operation only to create a new integration. You can't modify an existing integration.

REPLACE aws.logs.integrations
SET
integrationName = '{{ integrationName }}',
resourceConfig = '{{ resourceConfig }}',
integrationType = '{{ integrationType }}'
WHERE
region = '{{ region }}' --required
AND integrationName = '{{ integrationName }}' --required
AND resourceConfig = '{{ resourceConfig }}' --required
AND integrationType = '{{ integrationType }}' --required
RETURNING
integration_name,
integration_status;

DELETE examples

Deletes the integration between CloudWatch Logs and OpenSearch Service. If your integration has active vended logs dashboards, you must specify true for the force parameter, otherwise the operation will fail. If you delete the integration by setting force to true, all your vended logs dashboards powered by OpenSearch Service will be deleted and the data that was on them will no longer be accessible.

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