Skip to content

Put Integration

cloudwatchlogs_put_integration R Documentation

Creates an integration between CloudWatch Logs and another service in this account

Description

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.

Usage

cloudwatchlogs_put_integration(integrationName, resourceConfig,
  integrationType)

Arguments

integrationName

[required] A name for the integration.

resourceConfig

[required] A structure that contains configuration information for the integration that you are creating.

integrationType

[required] The type of integration. Currently, the only supported type is OPENSEARCH.

Value

A list with the following syntax:

list(
  integrationName = "string",
  integrationStatus = "PROVISIONING"|"ACTIVE"|"FAILED"
)

Request syntax

svc$put_integration(
  integrationName = "string",
  resourceConfig = list(
    openSearchResourceConfig = list(
      kmsKeyArn = "string",
      dataSourceRoleArn = "string",
      dashboardViewerPrincipals = list(
        "string"
      ),
      applicationArn = "string",
      retentionDays = 123
    )
  ),
  integrationType = "OPENSEARCH"
)