SchemaProperty Struct
Defines the fields of a dataset.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
} }
};
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
attributesoptionalIResolvable | IResolvable | CfnDataset.attributesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AttributesItemsProperty]]]attributesoptionalIResolvableAttributesoptionalIResolvableAttributesoptionalinterface{} #An array of attributes specifying the name and type of each field in a dataset.