# ResourceConfigProperty

This structure contains configuration details about an integration between CloudWatch Logs and another entity.

- Source: Generated at build time
- Type last changed: v2.173.0 · 12 Dec 2024

## Example

TypeScript:

```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 resourceConfigProperty: logs.CfnIntegration.ResourceConfigProperty = {
  openSearchResourceConfig: {
    dashboardViewerPrincipals: ['dashboardViewerPrincipals'],
    dataSourceRoleArn: 'dataSourceRoleArn',

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

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_logs as logs

resource_config_property = logs.CfnIntegration.ResourceConfigProperty(
    open_search_resource_config=logs.CfnIntegration.OpenSearchResourceConfigProperty(
        dashboard_viewer_principals=["dashboardViewerPrincipals"],
        data_source_role_arn="dataSourceRoleArn",

        # the properties below are optional
        application_arn="applicationArn",
        kms_key_arn="kmsKeyArn",
        retention_days=123
    )
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.logs.*;

ResourceConfigProperty resourceConfigProperty = ResourceConfigProperty.builder()
        .openSearchResourceConfig(OpenSearchResourceConfigProperty.builder()
                .dashboardViewerPrincipals(List.of("dashboardViewerPrincipals"))
                .dataSourceRoleArn("dataSourceRoleArn")

                // the properties below are optional
                .applicationArn("applicationArn")
                .kmsKeyArn("kmsKeyArn")
                .retentionDays(123)
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Logs;

var resourceConfigProperty = new ResourceConfigProperty {
    OpenSearchResourceConfig = new OpenSearchResourceConfigProperty {
        DashboardViewerPrincipals = new [] { "dashboardViewerPrincipals" },
        DataSourceRoleArn = "dataSourceRoleArn",

        // the properties below are optional
        ApplicationArn = "applicationArn",
        KmsKeyArn = "kmsKeyArn",
        RetentionDays = 123
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

resourceConfigProperty := &ResourceConfigProperty{
	OpenSearchResourceConfig: &OpenSearchResourceConfigProperty{
		DashboardViewerPrincipals: []*string{
			jsii.String("dashboardViewerPrincipals"),
		},
		DataSourceRoleArn: jsii.String("dataSourceRoleArn"),

		// the properties below are optional
		ApplicationArn: jsii.String("applicationArn"),
		KmsKeyArn: jsii.String("kmsKeyArn"),
		RetentionDays: jsii.Number(123),
	},
}
```

## Properties

- `openSearchResourceConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnIntegration.OpenSearchResourceConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.CfnIntegration.OpenSearchResourceConfigProperty.html) — This structure contains configuration details about an integration between CloudWatch Logs and OpenSearch Service.
