Skip to main content

integrations

Creates, updates, deletes or gets an integration resource or lists integrations in a region

Overview

Nameintegrations
TypeResource
DescriptionResource Schema for Logs Integration Resource
Idaws.logs.integrations

Fields

NameDatatypeDescription
integration_namestringUser provided identifier for integration, unique to the user account.
integration_typestringThe type of the Integration.
resource_configobjectOpenSearchResourceConfig for the given Integration
integration_statusstringStatus of creation for the Integration and its resources
regionstringAWS region.

For more information, see AWS::Logs::Integration.

Methods

NameAccessible byRequired Params
create_resourceINSERTIntegrationName, IntegrationType, ResourceConfig, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all integrations in a region.

SELECT
region,
integration_name,
integration_type,
resource_config,
integration_status
FROM aws.logs.integrations
WHERE region = 'us-east-1';

Gets all properties from an individual integration.

SELECT
region,
integration_name,
integration_type,
resource_config,
integration_status
FROM aws.logs.integrations
WHERE region = 'us-east-1' AND data__Identifier = '<IntegrationName>';

INSERT example

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

/*+ create */
INSERT INTO aws.logs.integrations (
IntegrationName,
IntegrationType,
ResourceConfig,
region
)
SELECT
'{{ IntegrationName }}',
'{{ IntegrationType }}',
'{{ ResourceConfig }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.logs.integrations
WHERE data__Identifier = '<IntegrationName>'
AND region = 'us-east-1';

Permissions

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

Create

logs:PutIntegration,
logs:GetIntegration,
aoss:CreateCollection,
aoss:CreateSecurityPolicy,
aoss:CreateAccessPolicy,
aoss:CreateLifeCyclePolicy,
aoss:BatchGetCollection,
aoss:DeleteCollection,
aoss:DeleteSecurityPolicy,
aoss:DeleteAccessPolicy,
aoss:DeleteLifeCyclePolicy,
aoss:GetAccessPolicy,
aoss:GetSecurityPolicy,
aoss:BatchGetLifecyclePolicy,
aoss:TagResource,
aoss:APIAccessAll,
opensearch:AddDirectQueryDataSource,
opensearch:DeleteDirectQueryDataSource,
opensearch:GetDirectQueryDataSource,
opensearch:CreateApplication,
opensearch:GetApplication,
opensearch:UpdateApplication,
opensearch:DeleteApplication,
opensearch:ApplicationAccessAll,
opensearch:DashboardsAccessAll,
opensearch:StartDirectQuery,
opensearch:GetDirectQuery,
iam:PassRole,
iam:CreateServiceLinkedRole,
iam:AttachRolePolicy,
iam:AttachUserPolicy,
es:AddDirectQueryDataSource,
es:CreateApplication,
es:UpdateApplication,
es:GetApplication,
es:DeleteApplication,
es:DeleteDirectQueryDataSource,
es:GetDirectQueryDataSource,
es:AddTags,
es:ListApplications

Read

logs:GetIntegration

Delete

logs:DeleteIntegration

List

logs:ListIntegrations