aws-sdk-ssm 1.131.0

AWS SDK for Amazon Simple Systems Manager (SSM)
Documentation
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
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetCommandInvocationOutput {
    /// <p>The parent command ID of the invocation plugin.</p>
    pub command_id: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the managed node targeted by the command. A <i>managed node</i> can be an Amazon Elastic Compute Cloud (Amazon EC2) instance, edge device, or on-premises server or VM in your hybrid environment that is configured for Amazon Web Services Systems Manager.</p>
    pub instance_id: ::std::option::Option<::std::string::String>,
    /// <p>The comment text for the command.</p>
    pub comment: ::std::option::Option<::std::string::String>,
    /// <p>The name of the document that was run. For example, <code>AWS-RunShellScript</code>.</p>
    pub document_name: ::std::option::Option<::std::string::String>,
    /// <p>The Systems Manager document (SSM document) version used in the request.</p>
    pub document_version: ::std::option::Option<::std::string::String>,
    /// <p>The name of the plugin, or <i>step name</i>, for which details are reported. For example, <code>aws:RunShellScript</code> is a plugin.</p>
    pub plugin_name: ::std::option::Option<::std::string::String>,
    /// <p>The error level response code for the plugin script. If the response code is <code>-1</code>, then the command hasn't started running on the managed node, or it wasn't received by the node.</p>
    pub response_code: i32,
    /// <p>The date and time the plugin started running. Date and time are written in ISO 8601 format. For example, June 7, 2017 is represented as 2017-06-7. The following sample Amazon Web Services CLI command uses the <code>InvokedBefore</code> filter.</p>
    /// <p><code>aws ssm list-commands --filters key=InvokedBefore,value=2017-06-07T00:00:00Z</code></p>
    /// <p>If the plugin hasn't started to run, the string is empty.</p>
    pub execution_start_date_time: ::std::option::Option<::std::string::String>,
    /// <p>Duration since <code>ExecutionStartDateTime</code>.</p>
    pub execution_elapsed_time: ::std::option::Option<::std::string::String>,
    /// <p>The date and time the plugin finished running. Date and time are written in ISO 8601 format. For example, June 7, 2017 is represented as 2017-06-7. The following sample Amazon Web Services CLI command uses the <code>InvokedAfter</code> filter.</p>
    /// <p><code>aws ssm list-commands --filters key=InvokedAfter,value=2017-06-07T00:00:00Z</code></p>
    /// <p>If the plugin hasn't started to run, the string is empty.</p>
    pub execution_end_date_time: ::std::option::Option<::std::string::String>,
    /// <p>The status of this invocation plugin. This status can be different than <code>StatusDetails</code>.</p>
    pub status: ::std::option::Option<crate::types::CommandInvocationStatus>,
    /// <p>A detailed status of the command execution for an invocation. <code>StatusDetails</code> includes more information than <code>Status</code> because it includes states resulting from error and concurrency control parameters. <code>StatusDetails</code> can show different results than <code>Status</code>. For more information about these statuses, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html">Understanding command statuses</a> in the <i>Amazon Web Services Systems Manager User Guide</i>. <code>StatusDetails</code> can be one of the following values:</p>
    /// <ul>
    /// <li>
    /// <p>Pending: The command hasn't been sent to the managed node.</p></li>
    /// <li>
    /// <p>In Progress: The command has been sent to the managed node but hasn't reached a terminal state.</p></li>
    /// <li>
    /// <p>Delayed: The system attempted to send the command to the target, but the target wasn't available. The managed node might not be available because of network issues, because the node was stopped, or for similar reasons. The system will try to send the command again.</p></li>
    /// <li>
    /// <p>Success: The command or plugin ran successfully. This is a terminal state.</p></li>
    /// <li>
    /// <p>Delivery Timed Out: The command wasn't delivered to the managed node before the delivery timeout expired. Delivery timeouts don't count against the parent command's <code>MaxErrors</code> limit, but they do contribute to whether the parent command status is Success or Incomplete. This is a terminal state.</p></li>
    /// <li>
    /// <p>Execution Timed Out: The command started to run on the managed node, but the execution wasn't complete before the timeout expired. Execution timeouts count against the <code>MaxErrors</code> limit of the parent command. This is a terminal state.</p></li>
    /// <li>
    /// <p>Failed: The command wasn't run successfully on the managed node. For a plugin, this indicates that the result code wasn't zero. For a command invocation, this indicates that the result code for one or more plugins wasn't zero. Invocation failures count against the <code>MaxErrors</code> limit of the parent command. This is a terminal state.</p></li>
    /// <li>
    /// <p>Cancelled: The command was terminated before it was completed. This is a terminal state.</p></li>
    /// <li>
    /// <p>Undeliverable: The command can't be delivered to the managed node. The node might not exist or might not be responding. Undeliverable invocations don't count against the parent command's <code>MaxErrors</code> limit and don't contribute to whether the parent command status is Success or Incomplete. This is a terminal state.</p></li>
    /// <li>
    /// <p>Terminated: The parent command exceeded its <code>MaxErrors</code> limit and subsequent command invocations were canceled by the system. This is a terminal state.</p></li>
    /// </ul>
    pub status_details: ::std::option::Option<::std::string::String>,
    /// <p>The first 24,000 characters written by the plugin to <code>stdout</code>. If the command hasn't finished running, if <code>ExecutionStatus</code> is neither Succeeded nor Failed, then this string is empty.</p>
    pub standard_output_content: ::std::option::Option<::std::string::String>,
    /// <p>The URL for the complete text written by the plugin to <code>stdout</code> in Amazon Simple Storage Service (Amazon S3). If an S3 bucket wasn't specified, then this string is empty.</p>
    pub standard_output_url: ::std::option::Option<::std::string::String>,
    /// <p>The first 8,000 characters written by the plugin to <code>stderr</code>. If the command hasn't finished running, then this string is empty.</p>
    pub standard_error_content: ::std::option::Option<::std::string::String>,
    /// <p>The URL for the complete text written by the plugin to <code>stderr</code>. If the command hasn't finished running, then this string is empty.</p>
    pub standard_error_url: ::std::option::Option<::std::string::String>,
    /// <p>Amazon CloudWatch Logs information where Systems Manager sent the command output.</p>
    pub cloud_watch_output_config: ::std::option::Option<crate::types::CloudWatchOutputConfig>,
    _request_id: Option<String>,
}
impl GetCommandInvocationOutput {
    /// <p>The parent command ID of the invocation plugin.</p>
    pub fn command_id(&self) -> ::std::option::Option<&str> {
        self.command_id.as_deref()
    }
    /// <p>The ID of the managed node targeted by the command. A <i>managed node</i> can be an Amazon Elastic Compute Cloud (Amazon EC2) instance, edge device, or on-premises server or VM in your hybrid environment that is configured for Amazon Web Services Systems Manager.</p>
    pub fn instance_id(&self) -> ::std::option::Option<&str> {
        self.instance_id.as_deref()
    }
    /// <p>The comment text for the command.</p>
    pub fn comment(&self) -> ::std::option::Option<&str> {
        self.comment.as_deref()
    }
    /// <p>The name of the document that was run. For example, <code>AWS-RunShellScript</code>.</p>
    pub fn document_name(&self) -> ::std::option::Option<&str> {
        self.document_name.as_deref()
    }
    /// <p>The Systems Manager document (SSM document) version used in the request.</p>
    pub fn document_version(&self) -> ::std::option::Option<&str> {
        self.document_version.as_deref()
    }
    /// <p>The name of the plugin, or <i>step name</i>, for which details are reported. For example, <code>aws:RunShellScript</code> is a plugin.</p>
    pub fn plugin_name(&self) -> ::std::option::Option<&str> {
        self.plugin_name.as_deref()
    }
    /// <p>The error level response code for the plugin script. If the response code is <code>-1</code>, then the command hasn't started running on the managed node, or it wasn't received by the node.</p>
    pub fn response_code(&self) -> i32 {
        self.response_code
    }
    /// <p>The date and time the plugin started running. Date and time are written in ISO 8601 format. For example, June 7, 2017 is represented as 2017-06-7. The following sample Amazon Web Services CLI command uses the <code>InvokedBefore</code> filter.</p>
    /// <p><code>aws ssm list-commands --filters key=InvokedBefore,value=2017-06-07T00:00:00Z</code></p>
    /// <p>If the plugin hasn't started to run, the string is empty.</p>
    pub fn execution_start_date_time(&self) -> ::std::option::Option<&str> {
        self.execution_start_date_time.as_deref()
    }
    /// <p>Duration since <code>ExecutionStartDateTime</code>.</p>
    pub fn execution_elapsed_time(&self) -> ::std::option::Option<&str> {
        self.execution_elapsed_time.as_deref()
    }
    /// <p>The date and time the plugin finished running. Date and time are written in ISO 8601 format. For example, June 7, 2017 is represented as 2017-06-7. The following sample Amazon Web Services CLI command uses the <code>InvokedAfter</code> filter.</p>
    /// <p><code>aws ssm list-commands --filters key=InvokedAfter,value=2017-06-07T00:00:00Z</code></p>
    /// <p>If the plugin hasn't started to run, the string is empty.</p>
    pub fn execution_end_date_time(&self) -> ::std::option::Option<&str> {
        self.execution_end_date_time.as_deref()
    }
    /// <p>The status of this invocation plugin. This status can be different than <code>StatusDetails</code>.</p>
    pub fn status(&self) -> ::std::option::Option<&crate::types::CommandInvocationStatus> {
        self.status.as_ref()
    }
    /// <p>A detailed status of the command execution for an invocation. <code>StatusDetails</code> includes more information than <code>Status</code> because it includes states resulting from error and concurrency control parameters. <code>StatusDetails</code> can show different results than <code>Status</code>. For more information about these statuses, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html">Understanding command statuses</a> in the <i>Amazon Web Services Systems Manager User Guide</i>. <code>StatusDetails</code> can be one of the following values:</p>
    /// <ul>
    /// <li>
    /// <p>Pending: The command hasn't been sent to the managed node.</p></li>
    /// <li>
    /// <p>In Progress: The command has been sent to the managed node but hasn't reached a terminal state.</p></li>
    /// <li>
    /// <p>Delayed: The system attempted to send the command to the target, but the target wasn't available. The managed node might not be available because of network issues, because the node was stopped, or for similar reasons. The system will try to send the command again.</p></li>
    /// <li>
    /// <p>Success: The command or plugin ran successfully. This is a terminal state.</p></li>
    /// <li>
    /// <p>Delivery Timed Out: The command wasn't delivered to the managed node before the delivery timeout expired. Delivery timeouts don't count against the parent command's <code>MaxErrors</code> limit, but they do contribute to whether the parent command status is Success or Incomplete. This is a terminal state.</p></li>
    /// <li>
    /// <p>Execution Timed Out: The command started to run on the managed node, but the execution wasn't complete before the timeout expired. Execution timeouts count against the <code>MaxErrors</code> limit of the parent command. This is a terminal state.</p></li>
    /// <li>
    /// <p>Failed: The command wasn't run successfully on the managed node. For a plugin, this indicates that the result code wasn't zero. For a command invocation, this indicates that the result code for one or more plugins wasn't zero. Invocation failures count against the <code>MaxErrors</code> limit of the parent command. This is a terminal state.</p></li>
    /// <li>
    /// <p>Cancelled: The command was terminated before it was completed. This is a terminal state.</p></li>
    /// <li>
    /// <p>Undeliverable: The command can't be delivered to the managed node. The node might not exist or might not be responding. Undeliverable invocations don't count against the parent command's <code>MaxErrors</code> limit and don't contribute to whether the parent command status is Success or Incomplete. This is a terminal state.</p></li>
    /// <li>
    /// <p>Terminated: The parent command exceeded its <code>MaxErrors</code> limit and subsequent command invocations were canceled by the system. This is a terminal state.</p></li>
    /// </ul>
    pub fn status_details(&self) -> ::std::option::Option<&str> {
        self.status_details.as_deref()
    }
    /// <p>The first 24,000 characters written by the plugin to <code>stdout</code>. If the command hasn't finished running, if <code>ExecutionStatus</code> is neither Succeeded nor Failed, then this string is empty.</p>
    pub fn standard_output_content(&self) -> ::std::option::Option<&str> {
        self.standard_output_content.as_deref()
    }
    /// <p>The URL for the complete text written by the plugin to <code>stdout</code> in Amazon Simple Storage Service (Amazon S3). If an S3 bucket wasn't specified, then this string is empty.</p>
    pub fn standard_output_url(&self) -> ::std::option::Option<&str> {
        self.standard_output_url.as_deref()
    }
    /// <p>The first 8,000 characters written by the plugin to <code>stderr</code>. If the command hasn't finished running, then this string is empty.</p>
    pub fn standard_error_content(&self) -> ::std::option::Option<&str> {
        self.standard_error_content.as_deref()
    }
    /// <p>The URL for the complete text written by the plugin to <code>stderr</code>. If the command hasn't finished running, then this string is empty.</p>
    pub fn standard_error_url(&self) -> ::std::option::Option<&str> {
        self.standard_error_url.as_deref()
    }
    /// <p>Amazon CloudWatch Logs information where Systems Manager sent the command output.</p>
    pub fn cloud_watch_output_config(&self) -> ::std::option::Option<&crate::types::CloudWatchOutputConfig> {
        self.cloud_watch_output_config.as_ref()
    }
}
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_COMMAND_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$CommandId",
        "com.amazonaws.ssm.synthetic",
        "GetCommandInvocationOutput",
    ),
    ::aws_smithy_schema::ShapeType::String,
    "CommandId",
    0,
);
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_INSTANCE_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$InstanceId",
        "com.amazonaws.ssm.synthetic",
        "GetCommandInvocationOutput",
    ),
    ::aws_smithy_schema::ShapeType::String,
    "InstanceId",
    1,
);
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_COMMENT: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$Comment",
        "com.amazonaws.ssm.synthetic",
        "GetCommandInvocationOutput",
    ),
    ::aws_smithy_schema::ShapeType::String,
    "Comment",
    2,
);
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_DOCUMENT_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$DocumentName",
        "com.amazonaws.ssm.synthetic",
        "GetCommandInvocationOutput",
    ),
    ::aws_smithy_schema::ShapeType::String,
    "DocumentName",
    3,
);
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_DOCUMENT_VERSION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$DocumentVersion",
        "com.amazonaws.ssm.synthetic",
        "GetCommandInvocationOutput",
    ),
    ::aws_smithy_schema::ShapeType::String,
    "DocumentVersion",
    4,
);
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_PLUGIN_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$PluginName",
        "com.amazonaws.ssm.synthetic",
        "GetCommandInvocationOutput",
    ),
    ::aws_smithy_schema::ShapeType::String,
    "PluginName",
    5,
);
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_RESPONSE_CODE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$ResponseCode",
        "com.amazonaws.ssm.synthetic",
        "GetCommandInvocationOutput",
    ),
    ::aws_smithy_schema::ShapeType::Integer,
    "ResponseCode",
    6,
);
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_EXECUTION_START_DATE_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$ExecutionStartDateTime",
        "com.amazonaws.ssm.synthetic",
        "GetCommandInvocationOutput",
    ),
    ::aws_smithy_schema::ShapeType::String,
    "ExecutionStartDateTime",
    7,
);
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_EXECUTION_ELAPSED_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$ExecutionElapsedTime",
        "com.amazonaws.ssm.synthetic",
        "GetCommandInvocationOutput",
    ),
    ::aws_smithy_schema::ShapeType::String,
    "ExecutionElapsedTime",
    8,
);
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_EXECUTION_END_DATE_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$ExecutionEndDateTime",
        "com.amazonaws.ssm.synthetic",
        "GetCommandInvocationOutput",
    ),
    ::aws_smithy_schema::ShapeType::String,
    "ExecutionEndDateTime",
    9,
);
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_STATUS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$Status",
        "com.amazonaws.ssm.synthetic",
        "GetCommandInvocationOutput",
    ),
    ::aws_smithy_schema::ShapeType::String,
    "Status",
    10,
);
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_STATUS_DETAILS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$StatusDetails",
        "com.amazonaws.ssm.synthetic",
        "GetCommandInvocationOutput",
    ),
    ::aws_smithy_schema::ShapeType::String,
    "StatusDetails",
    11,
);
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_OUTPUT_CONTENT: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$StandardOutputContent",
        "com.amazonaws.ssm.synthetic",
        "GetCommandInvocationOutput",
    ),
    ::aws_smithy_schema::ShapeType::String,
    "StandardOutputContent",
    12,
);
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_OUTPUT_URL: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$StandardOutputUrl",
        "com.amazonaws.ssm.synthetic",
        "GetCommandInvocationOutput",
    ),
    ::aws_smithy_schema::ShapeType::String,
    "StandardOutputUrl",
    13,
);
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_ERROR_CONTENT: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$StandardErrorContent",
        "com.amazonaws.ssm.synthetic",
        "GetCommandInvocationOutput",
    ),
    ::aws_smithy_schema::ShapeType::String,
    "StandardErrorContent",
    14,
);
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_ERROR_URL: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$StandardErrorUrl",
        "com.amazonaws.ssm.synthetic",
        "GetCommandInvocationOutput",
    ),
    ::aws_smithy_schema::ShapeType::String,
    "StandardErrorUrl",
    15,
);
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_CLOUD_WATCH_OUTPUT_CONFIG: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$CloudWatchOutputConfig",
        "com.amazonaws.ssm.synthetic",
        "GetCommandInvocationOutput",
    ),
    ::aws_smithy_schema::ShapeType::Structure,
    "CloudWatchOutputConfig",
    16,
);
static GETCOMMANDINVOCATIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
    ::aws_smithy_schema::ShapeId::from_parts(
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput",
        "com.amazonaws.ssm.synthetic",
        "GetCommandInvocationOutput",
    ),
    ::aws_smithy_schema::ShapeType::Structure,
    &[
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_COMMAND_ID,
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_INSTANCE_ID,
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_COMMENT,
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_DOCUMENT_NAME,
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_DOCUMENT_VERSION,
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_PLUGIN_NAME,
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_RESPONSE_CODE,
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_EXECUTION_START_DATE_TIME,
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_EXECUTION_ELAPSED_TIME,
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_EXECUTION_END_DATE_TIME,
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_STATUS,
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_STATUS_DETAILS,
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_OUTPUT_CONTENT,
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_OUTPUT_URL,
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_ERROR_CONTENT,
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_ERROR_URL,
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_CLOUD_WATCH_OUTPUT_CONFIG,
    ],
)
.with_original_name("GetCommandInvocationResult");
impl GetCommandInvocationOutput {
    /// The schema for this shape.
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &GETCOMMANDINVOCATIONOUTPUT_SCHEMA;
}
impl ::aws_smithy_schema::serde::SerializableStruct for GetCommandInvocationOutput {
    fn schema(&self) -> &::aws_smithy_schema::Schema<'_> {
        Self::SCHEMA
    }

    #[allow(unused_variables, clippy::diverging_sub_expression)]
    fn serialize_members(
        &self,
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
        if let Some(ref val) = self.command_id {
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_COMMAND_ID, val)?;
        }
        if let Some(ref val) = self.instance_id {
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_INSTANCE_ID, val)?;
        }
        if let Some(ref val) = self.comment {
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_COMMENT, val)?;
        }
        if let Some(ref val) = self.document_name {
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_DOCUMENT_NAME, val)?;
        }
        if let Some(ref val) = self.document_version {
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_DOCUMENT_VERSION, val)?;
        }
        if let Some(ref val) = self.plugin_name {
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_PLUGIN_NAME, val)?;
        }
        {
            let val = &self.response_code;
            ser.write_integer(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_RESPONSE_CODE, *val)?;
        }
        if let Some(ref val) = self.execution_start_date_time {
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_EXECUTION_START_DATE_TIME, val)?;
        }
        if let Some(ref val) = self.execution_elapsed_time {
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_EXECUTION_ELAPSED_TIME, val)?;
        }
        if let Some(ref val) = self.execution_end_date_time {
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_EXECUTION_END_DATE_TIME, val)?;
        }
        if let Some(ref val) = self.status {
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_STATUS, val.as_str())?;
        }
        if let Some(ref val) = self.status_details {
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_STATUS_DETAILS, val)?;
        }
        if let Some(ref val) = self.standard_output_content {
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_OUTPUT_CONTENT, val)?;
        }
        if let Some(ref val) = self.standard_output_url {
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_OUTPUT_URL, val)?;
        }
        if let Some(ref val) = self.standard_error_content {
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_ERROR_CONTENT, val)?;
        }
        if let Some(ref val) = self.standard_error_url {
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_ERROR_URL, val)?;
        }
        if let Some(ref val) = self.cloud_watch_output_config {
            ser.write_struct(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_CLOUD_WATCH_OUTPUT_CONFIG, val)?;
        }
        Ok(())
    }
}
impl crate::operation::get_command_invocation::builders::GetCommandInvocationOutputBuilder {
    #[allow(
        unused_variables,
        unreachable_code,
        clippy::single_match,
        clippy::match_single_binding,
        clippy::diverging_sub_expression
    )]
    pub(crate) fn deserialize_members(
        &mut self,
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
        deserializer.read_struct(&GETCOMMANDINVOCATIONOUTPUT_SCHEMA, &mut |member, deser| {
            match member.member_index() {
                Some(0) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.command_id = Some(deser.read_string(member)?);
                    }
                }
                Some(1) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.instance_id = Some(deser.read_string(member)?);
                    }
                }
                Some(2) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.comment = Some(deser.read_string(member)?);
                    }
                }
                Some(3) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.document_name = Some(deser.read_string(member)?);
                    }
                }
                Some(4) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.document_version = Some(deser.read_string(member)?);
                    }
                }
                Some(5) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.plugin_name = Some(deser.read_string(member)?);
                    }
                }
                Some(6) => {
                    self.response_code = Some(deser.read_integer(member)?);
                }
                Some(7) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.execution_start_date_time = Some(deser.read_string(member)?);
                    }
                }
                Some(8) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.execution_elapsed_time = Some(deser.read_string(member)?);
                    }
                }
                Some(9) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.execution_end_date_time = Some(deser.read_string(member)?);
                    }
                }
                Some(10) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.status = Some(crate::types::CommandInvocationStatus::from(deser.read_string(member)?.as_str()));
                    }
                }
                Some(11) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.status_details = Some(deser.read_string(member)?);
                    }
                }
                Some(12) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.standard_output_content = Some(deser.read_string(member)?);
                    }
                }
                Some(13) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.standard_output_url = Some(deser.read_string(member)?);
                    }
                }
                Some(14) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.standard_error_content = Some(deser.read_string(member)?);
                    }
                }
                Some(15) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.standard_error_url = Some(deser.read_string(member)?);
                    }
                }
                Some(16) => {
                    if deser.is_null() {
                        deser.read_null()?;
                    } else {
                        self.cloud_watch_output_config = Some(crate::types::CloudWatchOutputConfig::deserialize(deser)?);
                    }
                }
                _ => {}
            }
            Ok(())
        })
    }
}

impl GetCommandInvocationOutput {
    /// Deserializes this structure from a [`ShapeDeserializer`].
    pub fn deserialize(
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
        let mut builder = Self::builder();
        builder.deserialize_members(deserializer)?;
        Ok(builder.build())
    }
}
impl ::aws_types::request_id::RequestId for GetCommandInvocationOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetCommandInvocationOutput {
    /// Creates a new builder-style object to manufacture [`GetCommandInvocationOutput`](crate::operation::get_command_invocation::GetCommandInvocationOutput).
    pub fn builder() -> crate::operation::get_command_invocation::builders::GetCommandInvocationOutputBuilder {
        crate::operation::get_command_invocation::builders::GetCommandInvocationOutputBuilder::default()
    }
}

/// A builder for [`GetCommandInvocationOutput`](crate::operation::get_command_invocation::GetCommandInvocationOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetCommandInvocationOutputBuilder {
    pub(crate) command_id: ::std::option::Option<::std::string::String>,
    pub(crate) instance_id: ::std::option::Option<::std::string::String>,
    pub(crate) comment: ::std::option::Option<::std::string::String>,
    pub(crate) document_name: ::std::option::Option<::std::string::String>,
    pub(crate) document_version: ::std::option::Option<::std::string::String>,
    pub(crate) plugin_name: ::std::option::Option<::std::string::String>,
    pub(crate) response_code: ::std::option::Option<i32>,
    pub(crate) execution_start_date_time: ::std::option::Option<::std::string::String>,
    pub(crate) execution_elapsed_time: ::std::option::Option<::std::string::String>,
    pub(crate) execution_end_date_time: ::std::option::Option<::std::string::String>,
    pub(crate) status: ::std::option::Option<crate::types::CommandInvocationStatus>,
    pub(crate) status_details: ::std::option::Option<::std::string::String>,
    pub(crate) standard_output_content: ::std::option::Option<::std::string::String>,
    pub(crate) standard_output_url: ::std::option::Option<::std::string::String>,
    pub(crate) standard_error_content: ::std::option::Option<::std::string::String>,
    pub(crate) standard_error_url: ::std::option::Option<::std::string::String>,
    pub(crate) cloud_watch_output_config: ::std::option::Option<crate::types::CloudWatchOutputConfig>,
    _request_id: Option<String>,
}
impl GetCommandInvocationOutputBuilder {
    /// <p>The parent command ID of the invocation plugin.</p>
    pub fn command_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.command_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The parent command ID of the invocation plugin.</p>
    pub fn set_command_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.command_id = input;
        self
    }
    /// <p>The parent command ID of the invocation plugin.</p>
    pub fn get_command_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.command_id
    }
    /// <p>The ID of the managed node targeted by the command. A <i>managed node</i> can be an Amazon Elastic Compute Cloud (Amazon EC2) instance, edge device, or on-premises server or VM in your hybrid environment that is configured for Amazon Web Services Systems Manager.</p>
    pub fn instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.instance_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the managed node targeted by the command. A <i>managed node</i> can be an Amazon Elastic Compute Cloud (Amazon EC2) instance, edge device, or on-premises server or VM in your hybrid environment that is configured for Amazon Web Services Systems Manager.</p>
    pub fn set_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.instance_id = input;
        self
    }
    /// <p>The ID of the managed node targeted by the command. A <i>managed node</i> can be an Amazon Elastic Compute Cloud (Amazon EC2) instance, edge device, or on-premises server or VM in your hybrid environment that is configured for Amazon Web Services Systems Manager.</p>
    pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.instance_id
    }
    /// <p>The comment text for the command.</p>
    pub fn comment(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.comment = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The comment text for the command.</p>
    pub fn set_comment(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.comment = input;
        self
    }
    /// <p>The comment text for the command.</p>
    pub fn get_comment(&self) -> &::std::option::Option<::std::string::String> {
        &self.comment
    }
    /// <p>The name of the document that was run. For example, <code>AWS-RunShellScript</code>.</p>
    pub fn document_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.document_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the document that was run. For example, <code>AWS-RunShellScript</code>.</p>
    pub fn set_document_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.document_name = input;
        self
    }
    /// <p>The name of the document that was run. For example, <code>AWS-RunShellScript</code>.</p>
    pub fn get_document_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.document_name
    }
    /// <p>The Systems Manager document (SSM document) version used in the request.</p>
    pub fn document_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.document_version = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Systems Manager document (SSM document) version used in the request.</p>
    pub fn set_document_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.document_version = input;
        self
    }
    /// <p>The Systems Manager document (SSM document) version used in the request.</p>
    pub fn get_document_version(&self) -> &::std::option::Option<::std::string::String> {
        &self.document_version
    }
    /// <p>The name of the plugin, or <i>step name</i>, for which details are reported. For example, <code>aws:RunShellScript</code> is a plugin.</p>
    pub fn plugin_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.plugin_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the plugin, or <i>step name</i>, for which details are reported. For example, <code>aws:RunShellScript</code> is a plugin.</p>
    pub fn set_plugin_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.plugin_name = input;
        self
    }
    /// <p>The name of the plugin, or <i>step name</i>, for which details are reported. For example, <code>aws:RunShellScript</code> is a plugin.</p>
    pub fn get_plugin_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.plugin_name
    }
    /// <p>The error level response code for the plugin script. If the response code is <code>-1</code>, then the command hasn't started running on the managed node, or it wasn't received by the node.</p>
    pub fn response_code(mut self, input: i32) -> Self {
        self.response_code = ::std::option::Option::Some(input);
        self
    }
    /// <p>The error level response code for the plugin script. If the response code is <code>-1</code>, then the command hasn't started running on the managed node, or it wasn't received by the node.</p>
    pub fn set_response_code(mut self, input: ::std::option::Option<i32>) -> Self {
        self.response_code = input;
        self
    }
    /// <p>The error level response code for the plugin script. If the response code is <code>-1</code>, then the command hasn't started running on the managed node, or it wasn't received by the node.</p>
    pub fn get_response_code(&self) -> &::std::option::Option<i32> {
        &self.response_code
    }
    /// <p>The date and time the plugin started running. Date and time are written in ISO 8601 format. For example, June 7, 2017 is represented as 2017-06-7. The following sample Amazon Web Services CLI command uses the <code>InvokedBefore</code> filter.</p>
    /// <p><code>aws ssm list-commands --filters key=InvokedBefore,value=2017-06-07T00:00:00Z</code></p>
    /// <p>If the plugin hasn't started to run, the string is empty.</p>
    pub fn execution_start_date_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.execution_start_date_time = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The date and time the plugin started running. Date and time are written in ISO 8601 format. For example, June 7, 2017 is represented as 2017-06-7. The following sample Amazon Web Services CLI command uses the <code>InvokedBefore</code> filter.</p>
    /// <p><code>aws ssm list-commands --filters key=InvokedBefore,value=2017-06-07T00:00:00Z</code></p>
    /// <p>If the plugin hasn't started to run, the string is empty.</p>
    pub fn set_execution_start_date_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.execution_start_date_time = input;
        self
    }
    /// <p>The date and time the plugin started running. Date and time are written in ISO 8601 format. For example, June 7, 2017 is represented as 2017-06-7. The following sample Amazon Web Services CLI command uses the <code>InvokedBefore</code> filter.</p>
    /// <p><code>aws ssm list-commands --filters key=InvokedBefore,value=2017-06-07T00:00:00Z</code></p>
    /// <p>If the plugin hasn't started to run, the string is empty.</p>
    pub fn get_execution_start_date_time(&self) -> &::std::option::Option<::std::string::String> {
        &self.execution_start_date_time
    }
    /// <p>Duration since <code>ExecutionStartDateTime</code>.</p>
    pub fn execution_elapsed_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.execution_elapsed_time = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Duration since <code>ExecutionStartDateTime</code>.</p>
    pub fn set_execution_elapsed_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.execution_elapsed_time = input;
        self
    }
    /// <p>Duration since <code>ExecutionStartDateTime</code>.</p>
    pub fn get_execution_elapsed_time(&self) -> &::std::option::Option<::std::string::String> {
        &self.execution_elapsed_time
    }
    /// <p>The date and time the plugin finished running. Date and time are written in ISO 8601 format. For example, June 7, 2017 is represented as 2017-06-7. The following sample Amazon Web Services CLI command uses the <code>InvokedAfter</code> filter.</p>
    /// <p><code>aws ssm list-commands --filters key=InvokedAfter,value=2017-06-07T00:00:00Z</code></p>
    /// <p>If the plugin hasn't started to run, the string is empty.</p>
    pub fn execution_end_date_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.execution_end_date_time = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The date and time the plugin finished running. Date and time are written in ISO 8601 format. For example, June 7, 2017 is represented as 2017-06-7. The following sample Amazon Web Services CLI command uses the <code>InvokedAfter</code> filter.</p>
    /// <p><code>aws ssm list-commands --filters key=InvokedAfter,value=2017-06-07T00:00:00Z</code></p>
    /// <p>If the plugin hasn't started to run, the string is empty.</p>
    pub fn set_execution_end_date_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.execution_end_date_time = input;
        self
    }
    /// <p>The date and time the plugin finished running. Date and time are written in ISO 8601 format. For example, June 7, 2017 is represented as 2017-06-7. The following sample Amazon Web Services CLI command uses the <code>InvokedAfter</code> filter.</p>
    /// <p><code>aws ssm list-commands --filters key=InvokedAfter,value=2017-06-07T00:00:00Z</code></p>
    /// <p>If the plugin hasn't started to run, the string is empty.</p>
    pub fn get_execution_end_date_time(&self) -> &::std::option::Option<::std::string::String> {
        &self.execution_end_date_time
    }
    /// <p>The status of this invocation plugin. This status can be different than <code>StatusDetails</code>.</p>
    pub fn status(mut self, input: crate::types::CommandInvocationStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The status of this invocation plugin. This status can be different than <code>StatusDetails</code>.</p>
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::CommandInvocationStatus>) -> Self {
        self.status = input;
        self
    }
    /// <p>The status of this invocation plugin. This status can be different than <code>StatusDetails</code>.</p>
    pub fn get_status(&self) -> &::std::option::Option<crate::types::CommandInvocationStatus> {
        &self.status
    }
    /// <p>A detailed status of the command execution for an invocation. <code>StatusDetails</code> includes more information than <code>Status</code> because it includes states resulting from error and concurrency control parameters. <code>StatusDetails</code> can show different results than <code>Status</code>. For more information about these statuses, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html">Understanding command statuses</a> in the <i>Amazon Web Services Systems Manager User Guide</i>. <code>StatusDetails</code> can be one of the following values:</p>
    /// <ul>
    /// <li>
    /// <p>Pending: The command hasn't been sent to the managed node.</p></li>
    /// <li>
    /// <p>In Progress: The command has been sent to the managed node but hasn't reached a terminal state.</p></li>
    /// <li>
    /// <p>Delayed: The system attempted to send the command to the target, but the target wasn't available. The managed node might not be available because of network issues, because the node was stopped, or for similar reasons. The system will try to send the command again.</p></li>
    /// <li>
    /// <p>Success: The command or plugin ran successfully. This is a terminal state.</p></li>
    /// <li>
    /// <p>Delivery Timed Out: The command wasn't delivered to the managed node before the delivery timeout expired. Delivery timeouts don't count against the parent command's <code>MaxErrors</code> limit, but they do contribute to whether the parent command status is Success or Incomplete. This is a terminal state.</p></li>
    /// <li>
    /// <p>Execution Timed Out: The command started to run on the managed node, but the execution wasn't complete before the timeout expired. Execution timeouts count against the <code>MaxErrors</code> limit of the parent command. This is a terminal state.</p></li>
    /// <li>
    /// <p>Failed: The command wasn't run successfully on the managed node. For a plugin, this indicates that the result code wasn't zero. For a command invocation, this indicates that the result code for one or more plugins wasn't zero. Invocation failures count against the <code>MaxErrors</code> limit of the parent command. This is a terminal state.</p></li>
    /// <li>
    /// <p>Cancelled: The command was terminated before it was completed. This is a terminal state.</p></li>
    /// <li>
    /// <p>Undeliverable: The command can't be delivered to the managed node. The node might not exist or might not be responding. Undeliverable invocations don't count against the parent command's <code>MaxErrors</code> limit and don't contribute to whether the parent command status is Success or Incomplete. This is a terminal state.</p></li>
    /// <li>
    /// <p>Terminated: The parent command exceeded its <code>MaxErrors</code> limit and subsequent command invocations were canceled by the system. This is a terminal state.</p></li>
    /// </ul>
    pub fn status_details(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.status_details = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A detailed status of the command execution for an invocation. <code>StatusDetails</code> includes more information than <code>Status</code> because it includes states resulting from error and concurrency control parameters. <code>StatusDetails</code> can show different results than <code>Status</code>. For more information about these statuses, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html">Understanding command statuses</a> in the <i>Amazon Web Services Systems Manager User Guide</i>. <code>StatusDetails</code> can be one of the following values:</p>
    /// <ul>
    /// <li>
    /// <p>Pending: The command hasn't been sent to the managed node.</p></li>
    /// <li>
    /// <p>In Progress: The command has been sent to the managed node but hasn't reached a terminal state.</p></li>
    /// <li>
    /// <p>Delayed: The system attempted to send the command to the target, but the target wasn't available. The managed node might not be available because of network issues, because the node was stopped, or for similar reasons. The system will try to send the command again.</p></li>
    /// <li>
    /// <p>Success: The command or plugin ran successfully. This is a terminal state.</p></li>
    /// <li>
    /// <p>Delivery Timed Out: The command wasn't delivered to the managed node before the delivery timeout expired. Delivery timeouts don't count against the parent command's <code>MaxErrors</code> limit, but they do contribute to whether the parent command status is Success or Incomplete. This is a terminal state.</p></li>
    /// <li>
    /// <p>Execution Timed Out: The command started to run on the managed node, but the execution wasn't complete before the timeout expired. Execution timeouts count against the <code>MaxErrors</code> limit of the parent command. This is a terminal state.</p></li>
    /// <li>
    /// <p>Failed: The command wasn't run successfully on the managed node. For a plugin, this indicates that the result code wasn't zero. For a command invocation, this indicates that the result code for one or more plugins wasn't zero. Invocation failures count against the <code>MaxErrors</code> limit of the parent command. This is a terminal state.</p></li>
    /// <li>
    /// <p>Cancelled: The command was terminated before it was completed. This is a terminal state.</p></li>
    /// <li>
    /// <p>Undeliverable: The command can't be delivered to the managed node. The node might not exist or might not be responding. Undeliverable invocations don't count against the parent command's <code>MaxErrors</code> limit and don't contribute to whether the parent command status is Success or Incomplete. This is a terminal state.</p></li>
    /// <li>
    /// <p>Terminated: The parent command exceeded its <code>MaxErrors</code> limit and subsequent command invocations were canceled by the system. This is a terminal state.</p></li>
    /// </ul>
    pub fn set_status_details(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.status_details = input;
        self
    }
    /// <p>A detailed status of the command execution for an invocation. <code>StatusDetails</code> includes more information than <code>Status</code> because it includes states resulting from error and concurrency control parameters. <code>StatusDetails</code> can show different results than <code>Status</code>. For more information about these statuses, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitor-commands.html">Understanding command statuses</a> in the <i>Amazon Web Services Systems Manager User Guide</i>. <code>StatusDetails</code> can be one of the following values:</p>
    /// <ul>
    /// <li>
    /// <p>Pending: The command hasn't been sent to the managed node.</p></li>
    /// <li>
    /// <p>In Progress: The command has been sent to the managed node but hasn't reached a terminal state.</p></li>
    /// <li>
    /// <p>Delayed: The system attempted to send the command to the target, but the target wasn't available. The managed node might not be available because of network issues, because the node was stopped, or for similar reasons. The system will try to send the command again.</p></li>
    /// <li>
    /// <p>Success: The command or plugin ran successfully. This is a terminal state.</p></li>
    /// <li>
    /// <p>Delivery Timed Out: The command wasn't delivered to the managed node before the delivery timeout expired. Delivery timeouts don't count against the parent command's <code>MaxErrors</code> limit, but they do contribute to whether the parent command status is Success or Incomplete. This is a terminal state.</p></li>
    /// <li>
    /// <p>Execution Timed Out: The command started to run on the managed node, but the execution wasn't complete before the timeout expired. Execution timeouts count against the <code>MaxErrors</code> limit of the parent command. This is a terminal state.</p></li>
    /// <li>
    /// <p>Failed: The command wasn't run successfully on the managed node. For a plugin, this indicates that the result code wasn't zero. For a command invocation, this indicates that the result code for one or more plugins wasn't zero. Invocation failures count against the <code>MaxErrors</code> limit of the parent command. This is a terminal state.</p></li>
    /// <li>
    /// <p>Cancelled: The command was terminated before it was completed. This is a terminal state.</p></li>
    /// <li>
    /// <p>Undeliverable: The command can't be delivered to the managed node. The node might not exist or might not be responding. Undeliverable invocations don't count against the parent command's <code>MaxErrors</code> limit and don't contribute to whether the parent command status is Success or Incomplete. This is a terminal state.</p></li>
    /// <li>
    /// <p>Terminated: The parent command exceeded its <code>MaxErrors</code> limit and subsequent command invocations were canceled by the system. This is a terminal state.</p></li>
    /// </ul>
    pub fn get_status_details(&self) -> &::std::option::Option<::std::string::String> {
        &self.status_details
    }
    /// <p>The first 24,000 characters written by the plugin to <code>stdout</code>. If the command hasn't finished running, if <code>ExecutionStatus</code> is neither Succeeded nor Failed, then this string is empty.</p>
    pub fn standard_output_content(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.standard_output_content = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The first 24,000 characters written by the plugin to <code>stdout</code>. If the command hasn't finished running, if <code>ExecutionStatus</code> is neither Succeeded nor Failed, then this string is empty.</p>
    pub fn set_standard_output_content(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.standard_output_content = input;
        self
    }
    /// <p>The first 24,000 characters written by the plugin to <code>stdout</code>. If the command hasn't finished running, if <code>ExecutionStatus</code> is neither Succeeded nor Failed, then this string is empty.</p>
    pub fn get_standard_output_content(&self) -> &::std::option::Option<::std::string::String> {
        &self.standard_output_content
    }
    /// <p>The URL for the complete text written by the plugin to <code>stdout</code> in Amazon Simple Storage Service (Amazon S3). If an S3 bucket wasn't specified, then this string is empty.</p>
    pub fn standard_output_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.standard_output_url = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The URL for the complete text written by the plugin to <code>stdout</code> in Amazon Simple Storage Service (Amazon S3). If an S3 bucket wasn't specified, then this string is empty.</p>
    pub fn set_standard_output_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.standard_output_url = input;
        self
    }
    /// <p>The URL for the complete text written by the plugin to <code>stdout</code> in Amazon Simple Storage Service (Amazon S3). If an S3 bucket wasn't specified, then this string is empty.</p>
    pub fn get_standard_output_url(&self) -> &::std::option::Option<::std::string::String> {
        &self.standard_output_url
    }
    /// <p>The first 8,000 characters written by the plugin to <code>stderr</code>. If the command hasn't finished running, then this string is empty.</p>
    pub fn standard_error_content(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.standard_error_content = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The first 8,000 characters written by the plugin to <code>stderr</code>. If the command hasn't finished running, then this string is empty.</p>
    pub fn set_standard_error_content(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.standard_error_content = input;
        self
    }
    /// <p>The first 8,000 characters written by the plugin to <code>stderr</code>. If the command hasn't finished running, then this string is empty.</p>
    pub fn get_standard_error_content(&self) -> &::std::option::Option<::std::string::String> {
        &self.standard_error_content
    }
    /// <p>The URL for the complete text written by the plugin to <code>stderr</code>. If the command hasn't finished running, then this string is empty.</p>
    pub fn standard_error_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.standard_error_url = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The URL for the complete text written by the plugin to <code>stderr</code>. If the command hasn't finished running, then this string is empty.</p>
    pub fn set_standard_error_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.standard_error_url = input;
        self
    }
    /// <p>The URL for the complete text written by the plugin to <code>stderr</code>. If the command hasn't finished running, then this string is empty.</p>
    pub fn get_standard_error_url(&self) -> &::std::option::Option<::std::string::String> {
        &self.standard_error_url
    }
    /// <p>Amazon CloudWatch Logs information where Systems Manager sent the command output.</p>
    pub fn cloud_watch_output_config(mut self, input: crate::types::CloudWatchOutputConfig) -> Self {
        self.cloud_watch_output_config = ::std::option::Option::Some(input);
        self
    }
    /// <p>Amazon CloudWatch Logs information where Systems Manager sent the command output.</p>
    pub fn set_cloud_watch_output_config(mut self, input: ::std::option::Option<crate::types::CloudWatchOutputConfig>) -> Self {
        self.cloud_watch_output_config = input;
        self
    }
    /// <p>Amazon CloudWatch Logs information where Systems Manager sent the command output.</p>
    pub fn get_cloud_watch_output_config(&self) -> &::std::option::Option<crate::types::CloudWatchOutputConfig> {
        &self.cloud_watch_output_config
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`GetCommandInvocationOutput`](crate::operation::get_command_invocation::GetCommandInvocationOutput).
    pub fn build(self) -> crate::operation::get_command_invocation::GetCommandInvocationOutput {
        crate::operation::get_command_invocation::GetCommandInvocationOutput {
            command_id: self.command_id,
            instance_id: self.instance_id,
            comment: self.comment,
            document_name: self.document_name,
            document_version: self.document_version,
            plugin_name: self.plugin_name,
            response_code: self.response_code.unwrap_or_default(),
            execution_start_date_time: self.execution_start_date_time,
            execution_elapsed_time: self.execution_elapsed_time,
            execution_end_date_time: self.execution_end_date_time,
            status: self.status,
            status_details: self.status_details,
            standard_output_content: self.standard_output_content,
            standard_output_url: self.standard_output_url,
            standard_error_content: self.standard_error_content,
            standard_error_url: self.standard_error_url,
            cloud_watch_output_config: self.cloud_watch_output_config,
            _request_id: self._request_id,
        }
    }
}