-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnFlywheelProps.go
101 lines (98 loc) · 4.37 KB
/
CfnFlywheelProps.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
package awscomprehend
import (
"github.com/aws/aws-cdk-go/awscdk/v2"
)
// Properties for defining a `CfnFlywheel`.
//
// Example:
// // 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"
//
// cfnFlywheelProps := &CfnFlywheelProps{
// DataAccessRoleArn: jsii.String("dataAccessRoleArn"),
// DataLakeS3Uri: jsii.String("dataLakeS3Uri"),
// FlywheelName: jsii.String("flywheelName"),
//
// // the properties below are optional
// ActiveModelArn: jsii.String("activeModelArn"),
// DataSecurityConfig: &DataSecurityConfigProperty{
// DataLakeKmsKeyId: jsii.String("dataLakeKmsKeyId"),
// ModelKmsKeyId: jsii.String("modelKmsKeyId"),
// VolumeKmsKeyId: jsii.String("volumeKmsKeyId"),
// VpcConfig: &VpcConfigProperty{
// SecurityGroupIds: []*string{
// jsii.String("securityGroupIds"),
// },
// Subnets: []*string{
// jsii.String("subnets"),
// },
// },
// },
// ModelType: jsii.String("modelType"),
// Tags: []cfnTag{
// &cfnTag{
// Key: jsii.String("key"),
// Value: jsii.String("value"),
// },
// },
// TaskConfig: &TaskConfigProperty{
// LanguageCode: jsii.String("languageCode"),
//
// // the properties below are optional
// DocumentClassificationConfig: &DocumentClassificationConfigProperty{
// Mode: jsii.String("mode"),
//
// // the properties below are optional
// Labels: []*string{
// jsii.String("labels"),
// },
// },
// EntityRecognitionConfig: &EntityRecognitionConfigProperty{
// EntityTypes: []interface{}{
// &EntityTypesListItemProperty{
// Type: jsii.String("type"),
// },
// },
// },
// },
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-comprehend-flywheel.html
//
type CfnFlywheelProps struct {
// The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to access the flywheel data.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-comprehend-flywheel.html#cfn-comprehend-flywheel-dataaccessrolearn
//
DataAccessRoleArn *string `field:"required" json:"dataAccessRoleArn" yaml:"dataAccessRoleArn"`
// Amazon S3 URI of the data lake location.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-comprehend-flywheel.html#cfn-comprehend-flywheel-datalakes3uri
//
DataLakeS3Uri *string `field:"required" json:"dataLakeS3Uri" yaml:"dataLakeS3Uri"`
// Name for the flywheel.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-comprehend-flywheel.html#cfn-comprehend-flywheel-flywheelname
//
FlywheelName *string `field:"required" json:"flywheelName" yaml:"flywheelName"`
// The Amazon Resource Number (ARN) of the active model version.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-comprehend-flywheel.html#cfn-comprehend-flywheel-activemodelarn
//
ActiveModelArn *string `field:"optional" json:"activeModelArn" yaml:"activeModelArn"`
// Data security configuration.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-comprehend-flywheel.html#cfn-comprehend-flywheel-datasecurityconfig
//
DataSecurityConfig interface{} `field:"optional" json:"dataSecurityConfig" yaml:"dataSecurityConfig"`
// Model type of the flywheel's model.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-comprehend-flywheel.html#cfn-comprehend-flywheel-modeltype
//
ModelType *string `field:"optional" json:"modelType" yaml:"modelType"`
// Tags associated with the endpoint being created.
//
// A tag is a key-value pair that adds metadata to the endpoint. For example, a tag with "Sales" as the key might be added to an endpoint to indicate its use by the sales department.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-comprehend-flywheel.html#cfn-comprehend-flywheel-tags
//
Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
// Configuration about the model associated with a flywheel.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-comprehend-flywheel.html#cfn-comprehend-flywheel-taskconfig
//
TaskConfig interface{} `field:"optional" json:"taskConfig" yaml:"taskConfig"`
}