-
Notifications
You must be signed in to change notification settings - Fork 17
/
EmrCancelStep.go
895 lines (769 loc) · 20.8 KB
/
EmrCancelStep.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
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/awscloudwatch"
"github.com/aws/aws-cdk-go/awscdk/v2/awsiam"
"github.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctions"
"github.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks/internal"
"github.com/aws/constructs-go/constructs/v10"
)
// A Step Functions Task to to cancel a Step on an EMR Cluster.
//
// Example:
// tasks.NewEmrCancelStep(this, jsii.String("Task"), &EmrCancelStepProps{
// ClusterId: jsii.String("ClusterId"),
// StepId: jsii.String("StepId"),
// })
//
type EmrCancelStep interface {
awsstepfunctions.TaskStateBase
Branches() *[]awsstepfunctions.StateGraph
Comment() *string
DefaultChoice() awsstepfunctions.State
SetDefaultChoice(val awsstepfunctions.State)
// Continuable states of this Chainable.
EndStates() *[]awsstepfunctions.INextable
// Descriptive identifier for this chainable.
Id() *string
InputPath() *string
Iteration() awsstepfunctions.StateGraph
SetIteration(val awsstepfunctions.StateGraph)
// The tree node.
Node() constructs.Node
OutputPath() *string
Parameters() *map[string]interface{}
ResultPath() *string
ResultSelector() *map[string]interface{}
// First state of this Chainable.
StartState() awsstepfunctions.State
// Tokenized string that evaluates to the state's ID.
StateId() *string
StateName() *string
TaskMetrics() *awsstepfunctions.TaskMetricsConfig
TaskPolicies() *[]awsiam.PolicyStatement
// Add a parallel branch to this state.
AddBranch(branch awsstepfunctions.StateGraph)
// Add a recovery handler for this state.
//
// When a particular error occurs, execution will continue at the error
// handler instead of failing the state machine execution.
AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase
// Add a choice branch to this state.
AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions)
// Add a map iterator to this state.
AddIterator(iteration awsstepfunctions.StateGraph)
// Add a prefix to the stateId of this state.
AddPrefix(x *string)
// Add retry configuration for this state.
//
// This controls if and how the execution will be retried if a particular
// error occurs.
AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase
// Register this state as part of the given graph.
//
// Don't call this. It will be called automatically when you work
// with states normally.
BindToGraph(graph awsstepfunctions.StateGraph)
// Make the indicated state the default choice transition of this state.
MakeDefault(def awsstepfunctions.State)
// Make the indicated state the default transition of this state.
MakeNext(next awsstepfunctions.State)
// Return the given named metric for this Task.
// Default: - sum over 5 minutes.
//
Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Metric for the number of times this activity fails.
// Default: - sum over 5 minutes.
//
MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Metric for the number of times the heartbeat times out for this activity.
// Default: - sum over 5 minutes.
//
MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// The interval, in milliseconds, between the time the Task starts and the time it closes.
// Default: - average over 5 minutes.
//
MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Metric for the number of times this activity is scheduled.
// Default: - sum over 5 minutes.
//
MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// The interval, in milliseconds, for which the activity stays in the schedule state.
// Default: - average over 5 minutes.
//
MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Metric for the number of times this activity is started.
// Default: - sum over 5 minutes.
//
MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Metric for the number of times this activity succeeds.
// Default: - sum over 5 minutes.
//
MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// The interval, in milliseconds, between the time the activity is scheduled and the time it closes.
// Default: - average over 5 minutes.
//
MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Metric for the number of times this activity times out.
// Default: - sum over 5 minutes.
//
MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
// Continue normal execution with the given state.
Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain
// Render parallel branches in ASL JSON format.
RenderBranches() interface{}
// Render the choices in ASL JSON format.
RenderChoices() interface{}
// Render InputPath/Parameters/OutputPath in ASL JSON format.
RenderInputOutput() interface{}
// Render map iterator in ASL JSON format.
RenderIterator() interface{}
// Render the default next state in ASL JSON format.
RenderNextEnd() interface{}
// Render ResultSelector in ASL JSON format.
RenderResultSelector() interface{}
// Render error recovery options in ASL JSON format.
RenderRetryCatch() interface{}
// Return the Amazon States Language object for this state.
ToStateJson() *map[string]interface{}
// Returns a string representation of this construct.
ToString() *string
// Allows the state to validate itself.
ValidateState() *[]*string
// Called whenever this state is bound to a graph.
//
// Can be overridden by subclasses.
WhenBoundToGraph(graph awsstepfunctions.StateGraph)
}
// The jsii proxy struct for EmrCancelStep
type jsiiProxy_EmrCancelStep struct {
internal.Type__awsstepfunctionsTaskStateBase
}
func (j *jsiiProxy_EmrCancelStep) Branches() *[]awsstepfunctions.StateGraph {
var returns *[]awsstepfunctions.StateGraph
_jsii_.Get(
j,
"branches",
&returns,
)
return returns
}
func (j *jsiiProxy_EmrCancelStep) Comment() *string {
var returns *string
_jsii_.Get(
j,
"comment",
&returns,
)
return returns
}
func (j *jsiiProxy_EmrCancelStep) DefaultChoice() awsstepfunctions.State {
var returns awsstepfunctions.State
_jsii_.Get(
j,
"defaultChoice",
&returns,
)
return returns
}
func (j *jsiiProxy_EmrCancelStep) EndStates() *[]awsstepfunctions.INextable {
var returns *[]awsstepfunctions.INextable
_jsii_.Get(
j,
"endStates",
&returns,
)
return returns
}
func (j *jsiiProxy_EmrCancelStep) Id() *string {
var returns *string
_jsii_.Get(
j,
"id",
&returns,
)
return returns
}
func (j *jsiiProxy_EmrCancelStep) InputPath() *string {
var returns *string
_jsii_.Get(
j,
"inputPath",
&returns,
)
return returns
}
func (j *jsiiProxy_EmrCancelStep) Iteration() awsstepfunctions.StateGraph {
var returns awsstepfunctions.StateGraph
_jsii_.Get(
j,
"iteration",
&returns,
)
return returns
}
func (j *jsiiProxy_EmrCancelStep) Node() constructs.Node {
var returns constructs.Node
_jsii_.Get(
j,
"node",
&returns,
)
return returns
}
func (j *jsiiProxy_EmrCancelStep) OutputPath() *string {
var returns *string
_jsii_.Get(
j,
"outputPath",
&returns,
)
return returns
}
func (j *jsiiProxy_EmrCancelStep) Parameters() *map[string]interface{} {
var returns *map[string]interface{}
_jsii_.Get(
j,
"parameters",
&returns,
)
return returns
}
func (j *jsiiProxy_EmrCancelStep) ResultPath() *string {
var returns *string
_jsii_.Get(
j,
"resultPath",
&returns,
)
return returns
}
func (j *jsiiProxy_EmrCancelStep) ResultSelector() *map[string]interface{} {
var returns *map[string]interface{}
_jsii_.Get(
j,
"resultSelector",
&returns,
)
return returns
}
func (j *jsiiProxy_EmrCancelStep) StartState() awsstepfunctions.State {
var returns awsstepfunctions.State
_jsii_.Get(
j,
"startState",
&returns,
)
return returns
}
func (j *jsiiProxy_EmrCancelStep) StateId() *string {
var returns *string
_jsii_.Get(
j,
"stateId",
&returns,
)
return returns
}
func (j *jsiiProxy_EmrCancelStep) StateName() *string {
var returns *string
_jsii_.Get(
j,
"stateName",
&returns,
)
return returns
}
func (j *jsiiProxy_EmrCancelStep) TaskMetrics() *awsstepfunctions.TaskMetricsConfig {
var returns *awsstepfunctions.TaskMetricsConfig
_jsii_.Get(
j,
"taskMetrics",
&returns,
)
return returns
}
func (j *jsiiProxy_EmrCancelStep) TaskPolicies() *[]awsiam.PolicyStatement {
var returns *[]awsiam.PolicyStatement
_jsii_.Get(
j,
"taskPolicies",
&returns,
)
return returns
}
func NewEmrCancelStep(scope constructs.Construct, id *string, props *EmrCancelStepProps) EmrCancelStep {
_init_.Initialize()
if err := validateNewEmrCancelStepParameters(scope, id, props); err != nil {
panic(err)
}
j := jsiiProxy_EmrCancelStep{}
_jsii_.Create(
"aws-cdk-lib.aws_stepfunctions_tasks.EmrCancelStep",
[]interface{}{scope, id, props},
&j,
)
return &j
}
func NewEmrCancelStep_Override(e EmrCancelStep, scope constructs.Construct, id *string, props *EmrCancelStepProps) {
_init_.Initialize()
_jsii_.Create(
"aws-cdk-lib.aws_stepfunctions_tasks.EmrCancelStep",
[]interface{}{scope, id, props},
e,
)
}
func (j *jsiiProxy_EmrCancelStep)SetDefaultChoice(val awsstepfunctions.State) {
_jsii_.Set(
j,
"defaultChoice",
val,
)
}
func (j *jsiiProxy_EmrCancelStep)SetIteration(val awsstepfunctions.StateGraph) {
_jsii_.Set(
j,
"iteration",
val,
)
}
// Return only the states that allow chaining from an array of states.
func EmrCancelStep_FilterNextables(states *[]awsstepfunctions.State) *[]awsstepfunctions.INextable {
_init_.Initialize()
if err := validateEmrCancelStep_FilterNextablesParameters(states); err != nil {
panic(err)
}
var returns *[]awsstepfunctions.INextable
_jsii_.StaticInvoke(
"aws-cdk-lib.aws_stepfunctions_tasks.EmrCancelStep",
"filterNextables",
[]interface{}{states},
&returns,
)
return returns
}
// Find the set of end states states reachable through transitions from the given start state.
func EmrCancelStep_FindReachableEndStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State {
_init_.Initialize()
if err := validateEmrCancelStep_FindReachableEndStatesParameters(start, options); err != nil {
panic(err)
}
var returns *[]awsstepfunctions.State
_jsii_.StaticInvoke(
"aws-cdk-lib.aws_stepfunctions_tasks.EmrCancelStep",
"findReachableEndStates",
[]interface{}{start, options},
&returns,
)
return returns
}
// Find the set of states reachable through transitions from the given start state.
//
// This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
func EmrCancelStep_FindReachableStates(start awsstepfunctions.State, options *awsstepfunctions.FindStateOptions) *[]awsstepfunctions.State {
_init_.Initialize()
if err := validateEmrCancelStep_FindReachableStatesParameters(start, options); err != nil {
panic(err)
}
var returns *[]awsstepfunctions.State
_jsii_.StaticInvoke(
"aws-cdk-lib.aws_stepfunctions_tasks.EmrCancelStep",
"findReachableStates",
[]interface{}{start, options},
&returns,
)
return returns
}
// Checks if `x` is a construct.
//
// Use this method instead of `instanceof` to properly detect `Construct`
// instances, even when the construct library is symlinked.
//
// Explanation: in JavaScript, multiple copies of the `constructs` library on
// disk are seen as independent, completely different libraries. As a
// consequence, the class `Construct` in each copy of the `constructs` library
// is seen as a different class, and an instance of one class will not test as
// `instanceof` the other class. `npm install` will not create installations
// like this, but users may manually symlink construct libraries together or
// use a monorepo tool: in those cases, multiple copies of the `constructs`
// library can be accidentally installed, and `instanceof` will behave
// unpredictably. It is safest to avoid using `instanceof`, and using
// this type-testing method instead.
//
// Returns: true if `x` is an object created from a class which extends `Construct`.
func EmrCancelStep_IsConstruct(x interface{}) *bool {
_init_.Initialize()
if err := validateEmrCancelStep_IsConstructParameters(x); err != nil {
panic(err)
}
var returns *bool
_jsii_.StaticInvoke(
"aws-cdk-lib.aws_stepfunctions_tasks.EmrCancelStep",
"isConstruct",
[]interface{}{x},
&returns,
)
return returns
}
// Add a prefix to the stateId of all States found in a construct tree.
func EmrCancelStep_PrefixStates(root constructs.IConstruct, prefix *string) {
_init_.Initialize()
if err := validateEmrCancelStep_PrefixStatesParameters(root, prefix); err != nil {
panic(err)
}
_jsii_.StaticInvokeVoid(
"aws-cdk-lib.aws_stepfunctions_tasks.EmrCancelStep",
"prefixStates",
[]interface{}{root, prefix},
)
}
func (e *jsiiProxy_EmrCancelStep) AddBranch(branch awsstepfunctions.StateGraph) {
if err := e.validateAddBranchParameters(branch); err != nil {
panic(err)
}
_jsii_.InvokeVoid(
e,
"addBranch",
[]interface{}{branch},
)
}
func (e *jsiiProxy_EmrCancelStep) AddCatch(handler awsstepfunctions.IChainable, props *awsstepfunctions.CatchProps) awsstepfunctions.TaskStateBase {
if err := e.validateAddCatchParameters(handler, props); err != nil {
panic(err)
}
var returns awsstepfunctions.TaskStateBase
_jsii_.Invoke(
e,
"addCatch",
[]interface{}{handler, props},
&returns,
)
return returns
}
func (e *jsiiProxy_EmrCancelStep) AddChoice(condition awsstepfunctions.Condition, next awsstepfunctions.State, options *awsstepfunctions.ChoiceTransitionOptions) {
if err := e.validateAddChoiceParameters(condition, next, options); err != nil {
panic(err)
}
_jsii_.InvokeVoid(
e,
"addChoice",
[]interface{}{condition, next, options},
)
}
func (e *jsiiProxy_EmrCancelStep) AddIterator(iteration awsstepfunctions.StateGraph) {
if err := e.validateAddIteratorParameters(iteration); err != nil {
panic(err)
}
_jsii_.InvokeVoid(
e,
"addIterator",
[]interface{}{iteration},
)
}
func (e *jsiiProxy_EmrCancelStep) AddPrefix(x *string) {
if err := e.validateAddPrefixParameters(x); err != nil {
panic(err)
}
_jsii_.InvokeVoid(
e,
"addPrefix",
[]interface{}{x},
)
}
func (e *jsiiProxy_EmrCancelStep) AddRetry(props *awsstepfunctions.RetryProps) awsstepfunctions.TaskStateBase {
if err := e.validateAddRetryParameters(props); err != nil {
panic(err)
}
var returns awsstepfunctions.TaskStateBase
_jsii_.Invoke(
e,
"addRetry",
[]interface{}{props},
&returns,
)
return returns
}
func (e *jsiiProxy_EmrCancelStep) BindToGraph(graph awsstepfunctions.StateGraph) {
if err := e.validateBindToGraphParameters(graph); err != nil {
panic(err)
}
_jsii_.InvokeVoid(
e,
"bindToGraph",
[]interface{}{graph},
)
}
func (e *jsiiProxy_EmrCancelStep) MakeDefault(def awsstepfunctions.State) {
if err := e.validateMakeDefaultParameters(def); err != nil {
panic(err)
}
_jsii_.InvokeVoid(
e,
"makeDefault",
[]interface{}{def},
)
}
func (e *jsiiProxy_EmrCancelStep) MakeNext(next awsstepfunctions.State) {
if err := e.validateMakeNextParameters(next); err != nil {
panic(err)
}
_jsii_.InvokeVoid(
e,
"makeNext",
[]interface{}{next},
)
}
func (e *jsiiProxy_EmrCancelStep) Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric {
if err := e.validateMetricParameters(metricName, props); err != nil {
panic(err)
}
var returns awscloudwatch.Metric
_jsii_.Invoke(
e,
"metric",
[]interface{}{metricName, props},
&returns,
)
return returns
}
func (e *jsiiProxy_EmrCancelStep) MetricFailed(props *awscloudwatch.MetricOptions) awscloudwatch.Metric {
if err := e.validateMetricFailedParameters(props); err != nil {
panic(err)
}
var returns awscloudwatch.Metric
_jsii_.Invoke(
e,
"metricFailed",
[]interface{}{props},
&returns,
)
return returns
}
func (e *jsiiProxy_EmrCancelStep) MetricHeartbeatTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric {
if err := e.validateMetricHeartbeatTimedOutParameters(props); err != nil {
panic(err)
}
var returns awscloudwatch.Metric
_jsii_.Invoke(
e,
"metricHeartbeatTimedOut",
[]interface{}{props},
&returns,
)
return returns
}
func (e *jsiiProxy_EmrCancelStep) MetricRunTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric {
if err := e.validateMetricRunTimeParameters(props); err != nil {
panic(err)
}
var returns awscloudwatch.Metric
_jsii_.Invoke(
e,
"metricRunTime",
[]interface{}{props},
&returns,
)
return returns
}
func (e *jsiiProxy_EmrCancelStep) MetricScheduled(props *awscloudwatch.MetricOptions) awscloudwatch.Metric {
if err := e.validateMetricScheduledParameters(props); err != nil {
panic(err)
}
var returns awscloudwatch.Metric
_jsii_.Invoke(
e,
"metricScheduled",
[]interface{}{props},
&returns,
)
return returns
}
func (e *jsiiProxy_EmrCancelStep) MetricScheduleTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric {
if err := e.validateMetricScheduleTimeParameters(props); err != nil {
panic(err)
}
var returns awscloudwatch.Metric
_jsii_.Invoke(
e,
"metricScheduleTime",
[]interface{}{props},
&returns,
)
return returns
}
func (e *jsiiProxy_EmrCancelStep) MetricStarted(props *awscloudwatch.MetricOptions) awscloudwatch.Metric {
if err := e.validateMetricStartedParameters(props); err != nil {
panic(err)
}
var returns awscloudwatch.Metric
_jsii_.Invoke(
e,
"metricStarted",
[]interface{}{props},
&returns,
)
return returns
}
func (e *jsiiProxy_EmrCancelStep) MetricSucceeded(props *awscloudwatch.MetricOptions) awscloudwatch.Metric {
if err := e.validateMetricSucceededParameters(props); err != nil {
panic(err)
}
var returns awscloudwatch.Metric
_jsii_.Invoke(
e,
"metricSucceeded",
[]interface{}{props},
&returns,
)
return returns
}
func (e *jsiiProxy_EmrCancelStep) MetricTime(props *awscloudwatch.MetricOptions) awscloudwatch.Metric {
if err := e.validateMetricTimeParameters(props); err != nil {
panic(err)
}
var returns awscloudwatch.Metric
_jsii_.Invoke(
e,
"metricTime",
[]interface{}{props},
&returns,
)
return returns
}
func (e *jsiiProxy_EmrCancelStep) MetricTimedOut(props *awscloudwatch.MetricOptions) awscloudwatch.Metric {
if err := e.validateMetricTimedOutParameters(props); err != nil {
panic(err)
}
var returns awscloudwatch.Metric
_jsii_.Invoke(
e,
"metricTimedOut",
[]interface{}{props},
&returns,
)
return returns
}
func (e *jsiiProxy_EmrCancelStep) Next(next awsstepfunctions.IChainable) awsstepfunctions.Chain {
if err := e.validateNextParameters(next); err != nil {
panic(err)
}
var returns awsstepfunctions.Chain
_jsii_.Invoke(
e,
"next",
[]interface{}{next},
&returns,
)
return returns
}
func (e *jsiiProxy_EmrCancelStep) RenderBranches() interface{} {
var returns interface{}
_jsii_.Invoke(
e,
"renderBranches",
nil, // no parameters
&returns,
)
return returns
}
func (e *jsiiProxy_EmrCancelStep) RenderChoices() interface{} {
var returns interface{}
_jsii_.Invoke(
e,
"renderChoices",
nil, // no parameters
&returns,
)
return returns
}
func (e *jsiiProxy_EmrCancelStep) RenderInputOutput() interface{} {
var returns interface{}
_jsii_.Invoke(
e,
"renderInputOutput",
nil, // no parameters
&returns,
)
return returns
}
func (e *jsiiProxy_EmrCancelStep) RenderIterator() interface{} {
var returns interface{}
_jsii_.Invoke(
e,
"renderIterator",
nil, // no parameters
&returns,
)
return returns
}
func (e *jsiiProxy_EmrCancelStep) RenderNextEnd() interface{} {
var returns interface{}
_jsii_.Invoke(
e,
"renderNextEnd",
nil, // no parameters
&returns,
)
return returns
}
func (e *jsiiProxy_EmrCancelStep) RenderResultSelector() interface{} {
var returns interface{}
_jsii_.Invoke(
e,
"renderResultSelector",
nil, // no parameters
&returns,
)
return returns
}
func (e *jsiiProxy_EmrCancelStep) RenderRetryCatch() interface{} {
var returns interface{}
_jsii_.Invoke(
e,
"renderRetryCatch",
nil, // no parameters
&returns,
)
return returns
}
func (e *jsiiProxy_EmrCancelStep) ToStateJson() *map[string]interface{} {
var returns *map[string]interface{}
_jsii_.Invoke(
e,
"toStateJson",
nil, // no parameters
&returns,
)
return returns
}
func (e *jsiiProxy_EmrCancelStep) ToString() *string {
var returns *string
_jsii_.Invoke(
e,
"toString",
nil, // no parameters
&returns,
)
return returns
}
func (e *jsiiProxy_EmrCancelStep) ValidateState() *[]*string {
var returns *[]*string
_jsii_.Invoke(
e,
"validateState",
nil, // no parameters
&returns,
)
return returns
}
func (e *jsiiProxy_EmrCancelStep) WhenBoundToGraph(graph awsstepfunctions.StateGraph) {
if err := e.validateWhenBoundToGraphParameters(graph); err != nil {
panic(err)
}
_jsii_.InvokeVoid(
e,
"whenBoundToGraph",
[]interface{}{graph},
)
}