# SchemaProperty

Defines the fields of a dataset.

- 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_forecast as forecast } from 'aws-cdk-lib';
const schemaProperty: forecast.CfnDataset.SchemaProperty = {
  attributes: [{
    attributeName: 'attributeName',
    attributeType: 'attributeType',
  }],
};
```

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_forecast as forecast

schema_property = forecast.CfnDataset.SchemaProperty(
    attributes=[forecast.CfnDataset.AttributesItemsProperty(
        attribute_name="attributeName",
        attribute_type="attributeType"
    )]
)
```

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

SchemaProperty schemaProperty = SchemaProperty.builder()
        .attributes(List.of(AttributesItemsProperty.builder()
                .attributeName("attributeName")
                .attributeType("attributeType")
                .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.Forecast;

var schemaProperty = new SchemaProperty {
    Attributes = new [] { new AttributesItemsProperty {
        AttributeName = "attributeName",
        AttributeType = "attributeType"
    } }
};
```

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"

schemaProperty := &SchemaProperty{
	Attributes: []interface{}{
		&AttributesItemsProperty{
			AttributeName: jsii.String("attributeName"),
			AttributeType: jsii.String("attributeType"),
		},
	},
}
```

## Properties

- `attributes`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataset.AttributesItemsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_forecast.CfnDataset.AttributesItemsProperty.html)[] — An array of attributes specifying the name and type of each field in a dataset.
