# DataSourceProperty

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_opsworks as opsworks } from 'aws-cdk-lib';
const dataSourceProperty: opsworks.CfnApp.DataSourceProperty = {
  arn: 'arn',
  databaseName: 'databaseName',
  type: 'type',
};
```

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_opsworks as opsworks

data_source_property = opsworks.CfnApp.DataSourceProperty(
    arn="arn",
    database_name="databaseName",
    type="type"
)
```

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.opsworks.*;

DataSourceProperty dataSourceProperty = DataSourceProperty.builder()
        .arn("arn")
        .databaseName("databaseName")
        .type("type")
        .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.OpsWorks;

var dataSourceProperty = new DataSourceProperty {
    Arn = "arn",
    DatabaseName = "databaseName",
    Type = "type"
};
```

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"

dataSourceProperty := &DataSourceProperty{
	Arn: jsii.String("arn"),
	DatabaseName: jsii.String("databaseName"),
	Type: jsii.String("type"),
}
```

## Properties

- `arn`: string — The data source's ARN.

- `databaseName`: string — The database name.

- `type`: string — The data source's type, `AutoSelectOpsworksMysqlInstance` , `OpsworksMysqlInstance` , `RdsDbInstance` , or `None` .
