-
Notifications
You must be signed in to change notification settings - Fork 17
/
AcceleratorType.go
93 lines (75 loc) · 2.18 KB
/
AcceleratorType.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
package awsstepfunctionstasks
import (
_init_ "github.com/aws/aws-cdk-go/awscdk/v2/jsii"
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
"github.com/aws/aws-cdk-go/awscdk/v2/awsec2"
)
// The size of the Elastic Inference (EI) instance to use for the production variant.
//
// EI instances provide on-demand GPU computing for inference.
//
// 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"
//
// acceleratorType := awscdk.Aws_stepfunctions_tasks.NewAcceleratorType(jsii.String("instanceTypeIdentifier"))
//
// See: https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html
//
type AcceleratorType interface {
// Return the accelerator type as a dotted string.
ToString() *string
}
// The jsii proxy struct for AcceleratorType
type jsiiProxy_AcceleratorType struct {
_ byte // padding
}
func NewAcceleratorType(instanceTypeIdentifier *string) AcceleratorType {
_init_.Initialize()
if err := validateNewAcceleratorTypeParameters(instanceTypeIdentifier); err != nil {
panic(err)
}
j := jsiiProxy_AcceleratorType{}
_jsii_.Create(
"aws-cdk-lib.aws_stepfunctions_tasks.AcceleratorType",
[]interface{}{instanceTypeIdentifier},
&j,
)
return &j
}
func NewAcceleratorType_Override(a AcceleratorType, instanceTypeIdentifier *string) {
_init_.Initialize()
_jsii_.Create(
"aws-cdk-lib.aws_stepfunctions_tasks.AcceleratorType",
[]interface{}{instanceTypeIdentifier},
a,
)
}
// AcceleratorType.
//
// This class takes a combination of a class and size.
func AcceleratorType_Of(acceleratorClass AcceleratorClass, instanceSize awsec2.InstanceSize) AcceleratorType {
_init_.Initialize()
if err := validateAcceleratorType_OfParameters(acceleratorClass, instanceSize); err != nil {
panic(err)
}
var returns AcceleratorType
_jsii_.StaticInvoke(
"aws-cdk-lib.aws_stepfunctions_tasks.AcceleratorType",
"of",
[]interface{}{acceleratorClass, instanceSize},
&returns,
)
return returns
}
func (a *jsiiProxy_AcceleratorType) ToString() *string {
var returns *string
_jsii_.Invoke(
a,
"toString",
nil, // no parameters
&returns,
)
return returns
}