-
Notifications
You must be signed in to change notification settings - Fork 17
/
ReleaseLabel.go
130 lines (114 loc) · 2.93 KB
/
ReleaseLabel.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
package awsstepfunctionstasks
import (
_init_ "github.com/aws/aws-cdk-go/awscdk/v2/jsii"
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
)
// The Amazon EMR release version to use for the job run.
//
// Can be extended to include new EMR releases
//
// For example, `new ReleaseLabel('emr-x.xx.x-latest');`
//
// Example:
// tasks.NewEmrContainersStartJobRun(this, jsii.String("EMR Containers Start Job Run"), &EmrContainersStartJobRunProps{
// VirtualCluster: tasks.VirtualClusterInput_FromVirtualClusterId(jsii.String("de92jdei2910fwedz")),
// ReleaseLabel: tasks.ReleaseLabel_EMR_6_2_0(),
// JobName: jsii.String("EMR-Containers-Job"),
// JobDriver: &JobDriver{
// SparkSubmitJobDriver: &SparkSubmitJobDriver{
// EntryPoint: sfn.TaskInput_FromText(jsii.String("local:///usr/lib/spark/examples/src/main/python/pi.py")),
// },
// },
// ApplicationConfig: []applicationConfiguration{
// &applicationConfiguration{
// Classification: tasks.Classification_SPARK_DEFAULTS(),
// Properties: map[string]*string{
// "spark.executor.instances": jsii.String("1"),
// "spark.executor.memory": jsii.String("512M"),
// },
// },
// },
// })
//
type ReleaseLabel interface {
// A literal string that contains the release-version ex.
//
// 'emr-x.x.x-latest'
Label() *string
}
// The jsii proxy struct for ReleaseLabel
type jsiiProxy_ReleaseLabel struct {
_ byte // padding
}
func (j *jsiiProxy_ReleaseLabel) Label() *string {
var returns *string
_jsii_.Get(
j,
"label",
&returns,
)
return returns
}
// Initializes the label string.
func NewReleaseLabel(label *string) ReleaseLabel {
_init_.Initialize()
if err := validateNewReleaseLabelParameters(label); err != nil {
panic(err)
}
j := jsiiProxy_ReleaseLabel{}
_jsii_.Create(
"aws-cdk-lib.aws_stepfunctions_tasks.ReleaseLabel",
[]interface{}{label},
&j,
)
return &j
}
// Initializes the label string.
func NewReleaseLabel_Override(r ReleaseLabel, label *string) {
_init_.Initialize()
_jsii_.Create(
"aws-cdk-lib.aws_stepfunctions_tasks.ReleaseLabel",
[]interface{}{label},
r,
)
}
func ReleaseLabel_EMR_5_32_0() ReleaseLabel {
_init_.Initialize()
var returns ReleaseLabel
_jsii_.StaticGet(
"aws-cdk-lib.aws_stepfunctions_tasks.ReleaseLabel",
"EMR_5_32_0",
&returns,
)
return returns
}
func ReleaseLabel_EMR_5_33_0() ReleaseLabel {
_init_.Initialize()
var returns ReleaseLabel
_jsii_.StaticGet(
"aws-cdk-lib.aws_stepfunctions_tasks.ReleaseLabel",
"EMR_5_33_0",
&returns,
)
return returns
}
func ReleaseLabel_EMR_6_2_0() ReleaseLabel {
_init_.Initialize()
var returns ReleaseLabel
_jsii_.StaticGet(
"aws-cdk-lib.aws_stepfunctions_tasks.ReleaseLabel",
"EMR_6_2_0",
&returns,
)
return returns
}
func ReleaseLabel_EMR_6_3_0() ReleaseLabel {
_init_.Initialize()
var returns ReleaseLabel
_jsii_.StaticGet(
"aws-cdk-lib.aws_stepfunctions_tasks.ReleaseLabel",
"EMR_6_3_0",
&returns,
)
return returns
}