# CfnIntegrationProps

Properties for defining a `CfnIntegration`.

Extends: CfnIntegrationProps
Used as props by: CfnIntegration

- Source: Generated code
- Type last changed: v2.173.0 · 12 Dec 2024

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as logs } from 'aws-cdk-lib';
const cfnIntegrationProps: logs.CfnIntegrationProps = {
  integrationName: 'integrationName',
  integrationType: 'integrationType',
  resourceConfig: {
    openSearchResourceConfig: {
      dashboardViewerPrincipals: ['dashboardViewerPrincipals'],
      dataSourceRoleArn: 'dataSourceRoleArn',

      // the properties below are optional
      applicationArn: 'applicationArn',
      kmsKeyArn: 'kmsKeyArn',
      retentionDays: 123,
    },
  },
};
```

## Properties

- `integrationName`: string (required) — The name of this integration.

- `integrationType`: string (required) — The type of integration.

  Integrations with OpenSearch Service have the type `OPENSEARCH` .

- `resourceConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnIntegration.ResourceConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_logs.CfnIntegration.ResourceConfigProperty.html) (required) — This structure contains configuration details about an integration between CloudWatch Logs and another entity.
