CfnAdapterProps Struct
Properties for defining a CfnAdapter.
| 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_textract as textract } from 'aws-cdk-lib';
const cfnAdapterProps: textract.CfnAdapterProps = {
adapterName: 'adapterName',
featureTypes: ['featureTypes'],
// the properties below are optional
autoUpdate: 'autoUpdate',
description: 'description',
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_textract as textract
cfn_adapter_props = textract.CfnAdapterProps(
adapter_name="adapterName",
feature_types=["featureTypes"],
# the properties below are optional
auto_update="autoUpdate",
description="description",
tags=[CfnTag(
key="key",
value="value"
)]
)
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.textract.*;
CfnAdapterProps cfnAdapterProps = CfnAdapterProps.builder()
.adapterName("adapterName")
.featureTypes(List.of("featureTypes"))
// the properties below are optional
.autoUpdate("autoUpdate")
.description("description")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.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.Textract;
var cfnAdapterProps = new CfnAdapterProps {
AdapterName = "adapterName",
FeatureTypes = new [] { "featureTypes" },
// the properties below are optional
AutoUpdate = "autoUpdate",
Description = "description",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
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"
cfnAdapterProps := &CfnAdapterProps{
AdapterName: jsii.String("adapterName"),
FeatureTypes: []*string{
jsii.String("featureTypes"),
},
// the properties below are optional
AutoUpdate: jsii.String("autoUpdate"),
Description: jsii.String("description"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
The name to be assigned to the adapter being created.
autoUpdateoptionalstringauto_updateoptionalstrautoUpdateoptionalStringAutoUpdateoptionalstringAutoUpdateoptional*string #Controls whether or not the adapter should automatically update.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The description to be assigned to the adapter being created.
featureTypesstring[]feature_typestyping.List[str]featureTypesList<String>FeatureTypesstring[]FeatureTypes*[]*string required #The type of feature that the adapter is being trained on.
Currently, supported feature types are: QUERIES