AWS SDK

AWS SDK

rev. 18b1dd205ff4335251e6dd0ecb88193de1b1cede (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/get_command_invocation/_get_command_invocation_input.rs

@@ -0,1 +0,227 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
#[allow(missing_docs)] // documentation missing in model
           3  +
#[non_exhaustive]
           4  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           5  +
pub struct GetCommandInvocationInput {
           6  +
    /// <p>(Required) The parent command ID of the invocation plugin.</p>
           7  +
    pub command_id: ::std::option::Option<::std::string::String>,
           8  +
    /// <p>(Required) 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, and on-premises server or VM in your hybrid environment that is configured for Amazon Web Services Systems Manager.</p>
           9  +
    pub instance_id: ::std::option::Option<::std::string::String>,
          10  +
    /// <p>The name of the step for which you want detailed results. If the document contains only one step, you can omit the name and details for that step. If the document contains more than one step, you must specify the name of the step for which you want to view details. Be sure to specify the name of the step, not the name of a plugin like <code>aws:RunShellScript</code>.</p>
          11  +
    /// <p>To find the <code>PluginName</code>, check the document content and find the name of the step you want details for. Alternatively, use <code>ListCommandInvocations</code> with the <code>CommandId</code> and <code>Details</code> parameters. The <code>PluginName</code> is the <code>Name</code> attribute of the <code>CommandPlugin</code> object in the <code>CommandPlugins</code> list.</p>
          12  +
    pub plugin_name: ::std::option::Option<::std::string::String>,
          13  +
}
          14  +
impl GetCommandInvocationInput {
          15  +
    /// <p>(Required) The parent command ID of the invocation plugin.</p>
          16  +
    pub fn command_id(&self) -> ::std::option::Option<&str> {
          17  +
        self.command_id.as_deref()
          18  +
    }
          19  +
    /// <p>(Required) 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, and on-premises server or VM in your hybrid environment that is configured for Amazon Web Services Systems Manager.</p>
          20  +
    pub fn instance_id(&self) -> ::std::option::Option<&str> {
          21  +
        self.instance_id.as_deref()
          22  +
    }
          23  +
    /// <p>The name of the step for which you want detailed results. If the document contains only one step, you can omit the name and details for that step. If the document contains more than one step, you must specify the name of the step for which you want to view details. Be sure to specify the name of the step, not the name of a plugin like <code>aws:RunShellScript</code>.</p>
          24  +
    /// <p>To find the <code>PluginName</code>, check the document content and find the name of the step you want details for. Alternatively, use <code>ListCommandInvocations</code> with the <code>CommandId</code> and <code>Details</code> parameters. The <code>PluginName</code> is the <code>Name</code> attribute of the <code>CommandPlugin</code> object in the <code>CommandPlugins</code> list.</p>
          25  +
    pub fn plugin_name(&self) -> ::std::option::Option<&str> {
          26  +
        self.plugin_name.as_deref()
          27  +
    }
          28  +
}
          29  +
static GETCOMMANDINVOCATIONINPUT_MEMBER_COMMAND_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          30  +
    ::aws_smithy_schema::ShapeId::from_parts(
          31  +
        "com.amazonaws.ssm.synthetic#GetCommandInvocationInput$CommandId",
          32  +
        "com.amazonaws.ssm.synthetic",
          33  +
        "GetCommandInvocationInput",
          34  +
    ),
          35  +
    ::aws_smithy_schema::ShapeType::String,
          36  +
    "CommandId",
          37  +
    0,
          38  +
);
          39  +
static GETCOMMANDINVOCATIONINPUT_MEMBER_INSTANCE_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          40  +
    ::aws_smithy_schema::ShapeId::from_parts(
          41  +
        "com.amazonaws.ssm.synthetic#GetCommandInvocationInput$InstanceId",
          42  +
        "com.amazonaws.ssm.synthetic",
          43  +
        "GetCommandInvocationInput",
          44  +
    ),
          45  +
    ::aws_smithy_schema::ShapeType::String,
          46  +
    "InstanceId",
          47  +
    1,
          48  +
);
          49  +
static GETCOMMANDINVOCATIONINPUT_MEMBER_PLUGIN_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          50  +
    ::aws_smithy_schema::ShapeId::from_parts(
          51  +
        "com.amazonaws.ssm.synthetic#GetCommandInvocationInput$PluginName",
          52  +
        "com.amazonaws.ssm.synthetic",
          53  +
        "GetCommandInvocationInput",
          54  +
    ),
          55  +
    ::aws_smithy_schema::ShapeType::String,
          56  +
    "PluginName",
          57  +
    2,
          58  +
);
          59  +
static GETCOMMANDINVOCATIONINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          60  +
    ::aws_smithy_schema::ShapeId::from_parts(
          61  +
        "com.amazonaws.ssm.synthetic#GetCommandInvocationInput",
          62  +
        "com.amazonaws.ssm.synthetic",
          63  +
        "GetCommandInvocationInput",
          64  +
    ),
          65  +
    ::aws_smithy_schema::ShapeType::Structure,
          66  +
    &[
          67  +
        &GETCOMMANDINVOCATIONINPUT_MEMBER_COMMAND_ID,
          68  +
        &GETCOMMANDINVOCATIONINPUT_MEMBER_INSTANCE_ID,
          69  +
        &GETCOMMANDINVOCATIONINPUT_MEMBER_PLUGIN_NAME,
          70  +
    ],
          71  +
)
          72  +
.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
          73  +
.with_original_name("GetCommandInvocationRequest");
          74  +
impl GetCommandInvocationInput {
          75  +
    /// The schema for this shape.
          76  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &GETCOMMANDINVOCATIONINPUT_SCHEMA;
          77  +
}
          78  +
impl ::aws_smithy_schema::serde::SerializableStruct for GetCommandInvocationInput {
          79  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          80  +
    fn serialize_members(
          81  +
        &self,
          82  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          83  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          84  +
        if let Some(ref val) = self.command_id {
          85  +
            ser.write_string(&GETCOMMANDINVOCATIONINPUT_MEMBER_COMMAND_ID, val)?;
          86  +
        }
          87  +
        if let Some(ref val) = self.instance_id {
          88  +
            ser.write_string(&GETCOMMANDINVOCATIONINPUT_MEMBER_INSTANCE_ID, val)?;
          89  +
        }
          90  +
        if let Some(ref val) = self.plugin_name {
          91  +
            ser.write_string(&GETCOMMANDINVOCATIONINPUT_MEMBER_PLUGIN_NAME, val)?;
          92  +
        }
          93  +
        Ok(())
          94  +
    }
          95  +
}
          96  +
impl GetCommandInvocationInput {
          97  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          98  +
    pub fn deserialize(
          99  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         100  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         101  +
        #[allow(unused_variables, unused_mut)]
         102  +
        let mut builder = Self::builder();
         103  +
        #[allow(
         104  +
            unused_variables,
         105  +
            unreachable_code,
         106  +
            clippy::single_match,
         107  +
            clippy::match_single_binding,
         108  +
            clippy::diverging_sub_expression
         109  +
        )]
         110  +
        deserializer.read_struct(&GETCOMMANDINVOCATIONINPUT_SCHEMA, &mut |member, deser| {
         111  +
            match member.member_index() {
         112  +
                Some(0) => {
         113  +
                    if deser.is_null() {
         114  +
                        deser.read_null()?;
         115  +
                    } else {
         116  +
                        builder.command_id = Some(deser.read_string(member)?);
         117  +
                    }
         118  +
                }
         119  +
                Some(1) => {
         120  +
                    if deser.is_null() {
         121  +
                        deser.read_null()?;
         122  +
                    } else {
         123  +
                        builder.instance_id = Some(deser.read_string(member)?);
         124  +
                    }
         125  +
                }
         126  +
                Some(2) => {
         127  +
                    if deser.is_null() {
         128  +
                        deser.read_null()?;
         129  +
                    } else {
         130  +
                        builder.plugin_name = Some(deser.read_string(member)?);
         131  +
                    }
         132  +
                }
         133  +
                _ => {}
         134  +
            }
         135  +
            Ok(())
         136  +
        })?;
         137  +
        builder.command_id = builder.command_id.or(Some(String::new()));
         138  +
        builder.instance_id = builder.instance_id.or(Some(String::new()));
         139  +
        builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
         140  +
    }
         141  +
}
         142  +
impl GetCommandInvocationInput {
         143  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         144  +
    pub fn deserialize_with_response(
         145  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         146  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         147  +
        _status: u16,
         148  +
        _body: &[u8],
         149  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         150  +
        Self::deserialize(deserializer)
         151  +
    }
         152  +
}
         153  +
impl GetCommandInvocationInput {
         154  +
    /// Creates a new builder-style object to manufacture [`GetCommandInvocationInput`](crate::operation::get_command_invocation::GetCommandInvocationInput).
         155  +
    pub fn builder() -> crate::operation::get_command_invocation::builders::GetCommandInvocationInputBuilder {
         156  +
        crate::operation::get_command_invocation::builders::GetCommandInvocationInputBuilder::default()
         157  +
    }
         158  +
}
         159  +
         160  +
/// A builder for [`GetCommandInvocationInput`](crate::operation::get_command_invocation::GetCommandInvocationInput).
         161  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         162  +
#[non_exhaustive]
         163  +
pub struct GetCommandInvocationInputBuilder {
         164  +
    pub(crate) command_id: ::std::option::Option<::std::string::String>,
         165  +
    pub(crate) instance_id: ::std::option::Option<::std::string::String>,
         166  +
    pub(crate) plugin_name: ::std::option::Option<::std::string::String>,
         167  +
}
         168  +
impl GetCommandInvocationInputBuilder {
         169  +
    /// <p>(Required) The parent command ID of the invocation plugin.</p>
         170  +
    /// This field is required.
         171  +
    pub fn command_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         172  +
        self.command_id = ::std::option::Option::Some(input.into());
         173  +
        self
         174  +
    }
         175  +
    /// <p>(Required) The parent command ID of the invocation plugin.</p>
         176  +
    pub fn set_command_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         177  +
        self.command_id = input;
         178  +
        self
         179  +
    }
         180  +
    /// <p>(Required) The parent command ID of the invocation plugin.</p>
         181  +
    pub fn get_command_id(&self) -> &::std::option::Option<::std::string::String> {
         182  +
        &self.command_id
         183  +
    }
         184  +
    /// <p>(Required) 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, and on-premises server or VM in your hybrid environment that is configured for Amazon Web Services Systems Manager.</p>
         185  +
    /// This field is required.
         186  +
    pub fn instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         187  +
        self.instance_id = ::std::option::Option::Some(input.into());
         188  +
        self
         189  +
    }
         190  +
    /// <p>(Required) 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, and on-premises server or VM in your hybrid environment that is configured for Amazon Web Services Systems Manager.</p>
         191  +
    pub fn set_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         192  +
        self.instance_id = input;
         193  +
        self
         194  +
    }
         195  +
    /// <p>(Required) 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, and on-premises server or VM in your hybrid environment that is configured for Amazon Web Services Systems Manager.</p>
         196  +
    pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> {
         197  +
        &self.instance_id
         198  +
    }
         199  +
    /// <p>The name of the step for which you want detailed results. If the document contains only one step, you can omit the name and details for that step. If the document contains more than one step, you must specify the name of the step for which you want to view details. Be sure to specify the name of the step, not the name of a plugin like <code>aws:RunShellScript</code>.</p>
         200  +
    /// <p>To find the <code>PluginName</code>, check the document content and find the name of the step you want details for. Alternatively, use <code>ListCommandInvocations</code> with the <code>CommandId</code> and <code>Details</code> parameters. The <code>PluginName</code> is the <code>Name</code> attribute of the <code>CommandPlugin</code> object in the <code>CommandPlugins</code> list.</p>
         201  +
    pub fn plugin_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         202  +
        self.plugin_name = ::std::option::Option::Some(input.into());
         203  +
        self
         204  +
    }
         205  +
    /// <p>The name of the step for which you want detailed results. If the document contains only one step, you can omit the name and details for that step. If the document contains more than one step, you must specify the name of the step for which you want to view details. Be sure to specify the name of the step, not the name of a plugin like <code>aws:RunShellScript</code>.</p>
         206  +
    /// <p>To find the <code>PluginName</code>, check the document content and find the name of the step you want details for. Alternatively, use <code>ListCommandInvocations</code> with the <code>CommandId</code> and <code>Details</code> parameters. The <code>PluginName</code> is the <code>Name</code> attribute of the <code>CommandPlugin</code> object in the <code>CommandPlugins</code> list.</p>
         207  +
    pub fn set_plugin_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         208  +
        self.plugin_name = input;
         209  +
        self
         210  +
    }
         211  +
    /// <p>The name of the step for which you want detailed results. If the document contains only one step, you can omit the name and details for that step. If the document contains more than one step, you must specify the name of the step for which you want to view details. Be sure to specify the name of the step, not the name of a plugin like <code>aws:RunShellScript</code>.</p>
         212  +
    /// <p>To find the <code>PluginName</code>, check the document content and find the name of the step you want details for. Alternatively, use <code>ListCommandInvocations</code> with the <code>CommandId</code> and <code>Details</code> parameters. The <code>PluginName</code> is the <code>Name</code> attribute of the <code>CommandPlugin</code> object in the <code>CommandPlugins</code> list.</p>
         213  +
    pub fn get_plugin_name(&self) -> &::std::option::Option<::std::string::String> {
         214  +
        &self.plugin_name
         215  +
    }
         216  +
    /// Consumes the builder and constructs a [`GetCommandInvocationInput`](crate::operation::get_command_invocation::GetCommandInvocationInput).
         217  +
    pub fn build(
         218  +
        self,
         219  +
    ) -> ::std::result::Result<crate::operation::get_command_invocation::GetCommandInvocationInput, ::aws_smithy_types::error::operation::BuildError>
         220  +
    {
         221  +
        ::std::result::Result::Ok(crate::operation::get_command_invocation::GetCommandInvocationInput {
         222  +
            command_id: self.command_id,
         223  +
            instance_id: self.instance_id,
         224  +
            plugin_name: self.plugin_name,
         225  +
        })
         226  +
    }
         227  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/get_command_invocation/_get_command_invocation_output.rs

@@ -0,1 +0,1049 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
#[allow(missing_docs)] // documentation missing in model
           3  +
#[non_exhaustive]
           4  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           5  +
pub struct GetCommandInvocationOutput {
           6  +
    /// <p>The parent command ID of the invocation plugin.</p>
           7  +
    pub command_id: ::std::option::Option<::std::string::String>,
           8  +
    /// <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>
           9  +
    pub instance_id: ::std::option::Option<::std::string::String>,
          10  +
    /// <p>The comment text for the command.</p>
          11  +
    pub comment: ::std::option::Option<::std::string::String>,
          12  +
    /// <p>The name of the document that was run. For example, <code>AWS-RunShellScript</code>.</p>
          13  +
    pub document_name: ::std::option::Option<::std::string::String>,
          14  +
    /// <p>The Systems Manager document (SSM document) version used in the request.</p>
          15  +
    pub document_version: ::std::option::Option<::std::string::String>,
          16  +
    /// <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>
          17  +
    pub plugin_name: ::std::option::Option<::std::string::String>,
          18  +
    /// <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>
          19  +
    pub response_code: i32,
          20  +
    /// <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>
          21  +
    /// <p><code>aws ssm list-commands --filters key=InvokedBefore,value=2017-06-07T00:00:00Z</code></p>
          22  +
    /// <p>If the plugin hasn't started to run, the string is empty.</p>
          23  +
    pub execution_start_date_time: ::std::option::Option<::std::string::String>,
          24  +
    /// <p>Duration since <code>ExecutionStartDateTime</code>.</p>
          25  +
    pub execution_elapsed_time: ::std::option::Option<::std::string::String>,
          26  +
    /// <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>
          27  +
    /// <p><code>aws ssm list-commands --filters key=InvokedAfter,value=2017-06-07T00:00:00Z</code></p>
          28  +
    /// <p>If the plugin hasn't started to run, the string is empty.</p>
          29  +
    pub execution_end_date_time: ::std::option::Option<::std::string::String>,
          30  +
    /// <p>The status of this invocation plugin. This status can be different than <code>StatusDetails</code>.</p>
          31  +
    pub status: ::std::option::Option<crate::types::CommandInvocationStatus>,
          32  +
    /// <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>
          33  +
    /// <ul>
          34  +
    /// <li>
          35  +
    /// <p>Pending: The command hasn't been sent to the managed node.</p></li>
          36  +
    /// <li>
          37  +
    /// <p>In Progress: The command has been sent to the managed node but hasn't reached a terminal state.</p></li>
          38  +
    /// <li>
          39  +
    /// <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>
          40  +
    /// <li>
          41  +
    /// <p>Success: The command or plugin ran successfully. This is a terminal state.</p></li>
          42  +
    /// <li>
          43  +
    /// <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>
          44  +
    /// <li>
          45  +
    /// <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>
          46  +
    /// <li>
          47  +
    /// <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>
          48  +
    /// <li>
          49  +
    /// <p>Cancelled: The command was terminated before it was completed. This is a terminal state.</p></li>
          50  +
    /// <li>
          51  +
    /// <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>
          52  +
    /// <li>
          53  +
    /// <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>
          54  +
    /// </ul>
          55  +
    pub status_details: ::std::option::Option<::std::string::String>,
          56  +
    /// <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>
          57  +
    pub standard_output_content: ::std::option::Option<::std::string::String>,
          58  +
    /// <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>
          59  +
    pub standard_output_url: ::std::option::Option<::std::string::String>,
          60  +
    /// <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>
          61  +
    pub standard_error_content: ::std::option::Option<::std::string::String>,
          62  +
    /// <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>
          63  +
    pub standard_error_url: ::std::option::Option<::std::string::String>,
          64  +
    /// <p>Amazon CloudWatch Logs information where Systems Manager sent the command output.</p>
          65  +
    pub cloud_watch_output_config: ::std::option::Option<crate::types::CloudWatchOutputConfig>,
          66  +
    _request_id: Option<String>,
          67  +
}
          68  +
impl GetCommandInvocationOutput {
          69  +
    /// <p>The parent command ID of the invocation plugin.</p>
          70  +
    pub fn command_id(&self) -> ::std::option::Option<&str> {
          71  +
        self.command_id.as_deref()
          72  +
    }
          73  +
    /// <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>
          74  +
    pub fn instance_id(&self) -> ::std::option::Option<&str> {
          75  +
        self.instance_id.as_deref()
          76  +
    }
          77  +
    /// <p>The comment text for the command.</p>
          78  +
    pub fn comment(&self) -> ::std::option::Option<&str> {
          79  +
        self.comment.as_deref()
          80  +
    }
          81  +
    /// <p>The name of the document that was run. For example, <code>AWS-RunShellScript</code>.</p>
          82  +
    pub fn document_name(&self) -> ::std::option::Option<&str> {
          83  +
        self.document_name.as_deref()
          84  +
    }
          85  +
    /// <p>The Systems Manager document (SSM document) version used in the request.</p>
          86  +
    pub fn document_version(&self) -> ::std::option::Option<&str> {
          87  +
        self.document_version.as_deref()
          88  +
    }
          89  +
    /// <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>
          90  +
    pub fn plugin_name(&self) -> ::std::option::Option<&str> {
          91  +
        self.plugin_name.as_deref()
          92  +
    }
          93  +
    /// <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>
          94  +
    pub fn response_code(&self) -> i32 {
          95  +
        self.response_code
          96  +
    }
          97  +
    /// <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>
          98  +
    /// <p><code>aws ssm list-commands --filters key=InvokedBefore,value=2017-06-07T00:00:00Z</code></p>
          99  +
    /// <p>If the plugin hasn't started to run, the string is empty.</p>
         100  +
    pub fn execution_start_date_time(&self) -> ::std::option::Option<&str> {
         101  +
        self.execution_start_date_time.as_deref()
         102  +
    }
         103  +
    /// <p>Duration since <code>ExecutionStartDateTime</code>.</p>
         104  +
    pub fn execution_elapsed_time(&self) -> ::std::option::Option<&str> {
         105  +
        self.execution_elapsed_time.as_deref()
         106  +
    }
         107  +
    /// <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>
         108  +
    /// <p><code>aws ssm list-commands --filters key=InvokedAfter,value=2017-06-07T00:00:00Z</code></p>
         109  +
    /// <p>If the plugin hasn't started to run, the string is empty.</p>
         110  +
    pub fn execution_end_date_time(&self) -> ::std::option::Option<&str> {
         111  +
        self.execution_end_date_time.as_deref()
         112  +
    }
         113  +
    /// <p>The status of this invocation plugin. This status can be different than <code>StatusDetails</code>.</p>
         114  +
    pub fn status(&self) -> ::std::option::Option<&crate::types::CommandInvocationStatus> {
         115  +
        self.status.as_ref()
         116  +
    }
         117  +
    /// <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>
         118  +
    /// <ul>
         119  +
    /// <li>
         120  +
    /// <p>Pending: The command hasn't been sent to the managed node.</p></li>
         121  +
    /// <li>
         122  +
    /// <p>In Progress: The command has been sent to the managed node but hasn't reached a terminal state.</p></li>
         123  +
    /// <li>
         124  +
    /// <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>
         125  +
    /// <li>
         126  +
    /// <p>Success: The command or plugin ran successfully. This is a terminal state.</p></li>
         127  +
    /// <li>
         128  +
    /// <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>
         129  +
    /// <li>
         130  +
    /// <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>
         131  +
    /// <li>
         132  +
    /// <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>
         133  +
    /// <li>
         134  +
    /// <p>Cancelled: The command was terminated before it was completed. This is a terminal state.</p></li>
         135  +
    /// <li>
         136  +
    /// <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>
         137  +
    /// <li>
         138  +
    /// <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>
         139  +
    /// </ul>
         140  +
    pub fn status_details(&self) -> ::std::option::Option<&str> {
         141  +
        self.status_details.as_deref()
         142  +
    }
         143  +
    /// <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>
         144  +
    pub fn standard_output_content(&self) -> ::std::option::Option<&str> {
         145  +
        self.standard_output_content.as_deref()
         146  +
    }
         147  +
    /// <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>
         148  +
    pub fn standard_output_url(&self) -> ::std::option::Option<&str> {
         149  +
        self.standard_output_url.as_deref()
         150  +
    }
         151  +
    /// <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>
         152  +
    pub fn standard_error_content(&self) -> ::std::option::Option<&str> {
         153  +
        self.standard_error_content.as_deref()
         154  +
    }
         155  +
    /// <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>
         156  +
    pub fn standard_error_url(&self) -> ::std::option::Option<&str> {
         157  +
        self.standard_error_url.as_deref()
         158  +
    }
         159  +
    /// <p>Amazon CloudWatch Logs information where Systems Manager sent the command output.</p>
         160  +
    pub fn cloud_watch_output_config(&self) -> ::std::option::Option<&crate::types::CloudWatchOutputConfig> {
         161  +
        self.cloud_watch_output_config.as_ref()
         162  +
    }
         163  +
}
         164  +
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_COMMAND_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         165  +
    ::aws_smithy_schema::ShapeId::from_parts(
         166  +
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$CommandId",
         167  +
        "com.amazonaws.ssm.synthetic",
         168  +
        "GetCommandInvocationOutput",
         169  +
    ),
         170  +
    ::aws_smithy_schema::ShapeType::String,
         171  +
    "CommandId",
         172  +
    0,
         173  +
);
         174  +
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_INSTANCE_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         175  +
    ::aws_smithy_schema::ShapeId::from_parts(
         176  +
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$InstanceId",
         177  +
        "com.amazonaws.ssm.synthetic",
         178  +
        "GetCommandInvocationOutput",
         179  +
    ),
         180  +
    ::aws_smithy_schema::ShapeType::String,
         181  +
    "InstanceId",
         182  +
    1,
         183  +
);
         184  +
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_COMMENT: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         185  +
    ::aws_smithy_schema::ShapeId::from_parts(
         186  +
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$Comment",
         187  +
        "com.amazonaws.ssm.synthetic",
         188  +
        "GetCommandInvocationOutput",
         189  +
    ),
         190  +
    ::aws_smithy_schema::ShapeType::String,
         191  +
    "Comment",
         192  +
    2,
         193  +
);
         194  +
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_DOCUMENT_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         195  +
    ::aws_smithy_schema::ShapeId::from_parts(
         196  +
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$DocumentName",
         197  +
        "com.amazonaws.ssm.synthetic",
         198  +
        "GetCommandInvocationOutput",
         199  +
    ),
         200  +
    ::aws_smithy_schema::ShapeType::String,
         201  +
    "DocumentName",
         202  +
    3,
         203  +
);
         204  +
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_DOCUMENT_VERSION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         205  +
    ::aws_smithy_schema::ShapeId::from_parts(
         206  +
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$DocumentVersion",
         207  +
        "com.amazonaws.ssm.synthetic",
         208  +
        "GetCommandInvocationOutput",
         209  +
    ),
         210  +
    ::aws_smithy_schema::ShapeType::String,
         211  +
    "DocumentVersion",
         212  +
    4,
         213  +
);
         214  +
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_PLUGIN_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         215  +
    ::aws_smithy_schema::ShapeId::from_parts(
         216  +
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$PluginName",
         217  +
        "com.amazonaws.ssm.synthetic",
         218  +
        "GetCommandInvocationOutput",
         219  +
    ),
         220  +
    ::aws_smithy_schema::ShapeType::String,
         221  +
    "PluginName",
         222  +
    5,
         223  +
);
         224  +
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_RESPONSE_CODE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         225  +
    ::aws_smithy_schema::ShapeId::from_parts(
         226  +
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$ResponseCode",
         227  +
        "com.amazonaws.ssm.synthetic",
         228  +
        "GetCommandInvocationOutput",
         229  +
    ),
         230  +
    ::aws_smithy_schema::ShapeType::Integer,
         231  +
    "ResponseCode",
         232  +
    6,
         233  +
);
         234  +
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_EXECUTION_START_DATE_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         235  +
    ::aws_smithy_schema::ShapeId::from_parts(
         236  +
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$ExecutionStartDateTime",
         237  +
        "com.amazonaws.ssm.synthetic",
         238  +
        "GetCommandInvocationOutput",
         239  +
    ),
         240  +
    ::aws_smithy_schema::ShapeType::String,
         241  +
    "ExecutionStartDateTime",
         242  +
    7,
         243  +
);
         244  +
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_EXECUTION_ELAPSED_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         245  +
    ::aws_smithy_schema::ShapeId::from_parts(
         246  +
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$ExecutionElapsedTime",
         247  +
        "com.amazonaws.ssm.synthetic",
         248  +
        "GetCommandInvocationOutput",
         249  +
    ),
         250  +
    ::aws_smithy_schema::ShapeType::String,
         251  +
    "ExecutionElapsedTime",
         252  +
    8,
         253  +
);
         254  +
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_EXECUTION_END_DATE_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         255  +
    ::aws_smithy_schema::ShapeId::from_parts(
         256  +
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$ExecutionEndDateTime",
         257  +
        "com.amazonaws.ssm.synthetic",
         258  +
        "GetCommandInvocationOutput",
         259  +
    ),
         260  +
    ::aws_smithy_schema::ShapeType::String,
         261  +
    "ExecutionEndDateTime",
         262  +
    9,
         263  +
);
         264  +
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_STATUS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         265  +
    ::aws_smithy_schema::ShapeId::from_parts(
         266  +
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$Status",
         267  +
        "com.amazonaws.ssm.synthetic",
         268  +
        "GetCommandInvocationOutput",
         269  +
    ),
         270  +
    ::aws_smithy_schema::ShapeType::String,
         271  +
    "Status",
         272  +
    10,
         273  +
);
         274  +
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_STATUS_DETAILS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         275  +
    ::aws_smithy_schema::ShapeId::from_parts(
         276  +
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$StatusDetails",
         277  +
        "com.amazonaws.ssm.synthetic",
         278  +
        "GetCommandInvocationOutput",
         279  +
    ),
         280  +
    ::aws_smithy_schema::ShapeType::String,
         281  +
    "StatusDetails",
         282  +
    11,
         283  +
);
         284  +
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_OUTPUT_CONTENT: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         285  +
    ::aws_smithy_schema::ShapeId::from_parts(
         286  +
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$StandardOutputContent",
         287  +
        "com.amazonaws.ssm.synthetic",
         288  +
        "GetCommandInvocationOutput",
         289  +
    ),
         290  +
    ::aws_smithy_schema::ShapeType::String,
         291  +
    "StandardOutputContent",
         292  +
    12,
         293  +
);
         294  +
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_OUTPUT_URL: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         295  +
    ::aws_smithy_schema::ShapeId::from_parts(
         296  +
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$StandardOutputUrl",
         297  +
        "com.amazonaws.ssm.synthetic",
         298  +
        "GetCommandInvocationOutput",
         299  +
    ),
         300  +
    ::aws_smithy_schema::ShapeType::String,
         301  +
    "StandardOutputUrl",
         302  +
    13,
         303  +
);
         304  +
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_ERROR_CONTENT: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         305  +
    ::aws_smithy_schema::ShapeId::from_parts(
         306  +
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$StandardErrorContent",
         307  +
        "com.amazonaws.ssm.synthetic",
         308  +
        "GetCommandInvocationOutput",
         309  +
    ),
         310  +
    ::aws_smithy_schema::ShapeType::String,
         311  +
    "StandardErrorContent",
         312  +
    14,
         313  +
);
         314  +
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_ERROR_URL: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         315  +
    ::aws_smithy_schema::ShapeId::from_parts(
         316  +
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$StandardErrorUrl",
         317  +
        "com.amazonaws.ssm.synthetic",
         318  +
        "GetCommandInvocationOutput",
         319  +
    ),
         320  +
    ::aws_smithy_schema::ShapeType::String,
         321  +
    "StandardErrorUrl",
         322  +
    15,
         323  +
);
         324  +
static GETCOMMANDINVOCATIONOUTPUT_MEMBER_CLOUD_WATCH_OUTPUT_CONFIG: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         325  +
    ::aws_smithy_schema::ShapeId::from_parts(
         326  +
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput$CloudWatchOutputConfig",
         327  +
        "com.amazonaws.ssm.synthetic",
         328  +
        "GetCommandInvocationOutput",
         329  +
    ),
         330  +
    ::aws_smithy_schema::ShapeType::Structure,
         331  +
    "CloudWatchOutputConfig",
         332  +
    16,
         333  +
);
         334  +
static GETCOMMANDINVOCATIONOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         335  +
    ::aws_smithy_schema::ShapeId::from_parts("synthetic#request_id", "synthetic", "request_id"),
         336  +
    ::aws_smithy_schema::ShapeType::String,
         337  +
    "request_id",
         338  +
    17,
         339  +
)
         340  +
.with_http_header("x-amzn-requestid");
         341  +
static GETCOMMANDINVOCATIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
         342  +
    ::aws_smithy_schema::ShapeId::from_parts(
         343  +
        "com.amazonaws.ssm.synthetic#GetCommandInvocationOutput",
         344  +
        "com.amazonaws.ssm.synthetic",
         345  +
        "GetCommandInvocationOutput",
         346  +
    ),
         347  +
    ::aws_smithy_schema::ShapeType::Structure,
         348  +
    &[
         349  +
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_COMMAND_ID,
         350  +
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_INSTANCE_ID,
         351  +
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_COMMENT,
         352  +
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_DOCUMENT_NAME,
         353  +
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_DOCUMENT_VERSION,
         354  +
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_PLUGIN_NAME,
         355  +
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_RESPONSE_CODE,
         356  +
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_EXECUTION_START_DATE_TIME,
         357  +
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_EXECUTION_ELAPSED_TIME,
         358  +
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_EXECUTION_END_DATE_TIME,
         359  +
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_STATUS,
         360  +
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_STATUS_DETAILS,
         361  +
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_OUTPUT_CONTENT,
         362  +
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_OUTPUT_URL,
         363  +
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_ERROR_CONTENT,
         364  +
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_ERROR_URL,
         365  +
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER_CLOUD_WATCH_OUTPUT_CONFIG,
         366  +
        &GETCOMMANDINVOCATIONOUTPUT_MEMBER__REQUEST_ID,
         367  +
    ],
         368  +
)
         369  +
.with_original_name("GetCommandInvocationResult");
         370  +
impl GetCommandInvocationOutput {
         371  +
    /// The schema for this shape.
         372  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &GETCOMMANDINVOCATIONOUTPUT_SCHEMA;
         373  +
}
         374  +
impl ::aws_smithy_schema::serde::SerializableStruct for GetCommandInvocationOutput {
         375  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
         376  +
    fn serialize_members(
         377  +
        &self,
         378  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
         379  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
         380  +
        if let Some(ref val) = self.command_id {
         381  +
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_COMMAND_ID, val)?;
         382  +
        }
         383  +
        if let Some(ref val) = self.instance_id {
         384  +
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_INSTANCE_ID, val)?;
         385  +
        }
         386  +
        if let Some(ref val) = self.comment {
         387  +
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_COMMENT, val)?;
         388  +
        }
         389  +
        if let Some(ref val) = self.document_name {
         390  +
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_DOCUMENT_NAME, val)?;
         391  +
        }
         392  +
        if let Some(ref val) = self.document_version {
         393  +
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_DOCUMENT_VERSION, val)?;
         394  +
        }
         395  +
        if let Some(ref val) = self.plugin_name {
         396  +
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_PLUGIN_NAME, val)?;
         397  +
        }
         398  +
        {
         399  +
            let val = &self.response_code;
         400  +
            ser.write_integer(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_RESPONSE_CODE, *val)?;
         401  +
        }
         402  +
        if let Some(ref val) = self.execution_start_date_time {
         403  +
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_EXECUTION_START_DATE_TIME, val)?;
         404  +
        }
         405  +
        if let Some(ref val) = self.execution_elapsed_time {
         406  +
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_EXECUTION_ELAPSED_TIME, val)?;
         407  +
        }
         408  +
        if let Some(ref val) = self.execution_end_date_time {
         409  +
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_EXECUTION_END_DATE_TIME, val)?;
         410  +
        }
         411  +
        if let Some(ref val) = self.status {
         412  +
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_STATUS, val.as_str())?;
         413  +
        }
         414  +
        if let Some(ref val) = self.status_details {
         415  +
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_STATUS_DETAILS, val)?;
         416  +
        }
         417  +
        if let Some(ref val) = self.standard_output_content {
         418  +
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_OUTPUT_CONTENT, val)?;
         419  +
        }
         420  +
        if let Some(ref val) = self.standard_output_url {
         421  +
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_OUTPUT_URL, val)?;
         422  +
        }
         423  +
        if let Some(ref val) = self.standard_error_content {
         424  +
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_ERROR_CONTENT, val)?;
         425  +
        }
         426  +
        if let Some(ref val) = self.standard_error_url {
         427  +
            ser.write_string(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_STANDARD_ERROR_URL, val)?;
         428  +
        }
         429  +
        if let Some(ref val) = self.cloud_watch_output_config {
         430  +
            ser.write_struct(&GETCOMMANDINVOCATIONOUTPUT_MEMBER_CLOUD_WATCH_OUTPUT_CONFIG, val)?;
         431  +
        }
         432  +
        Ok(())
         433  +
    }
         434  +
}
         435  +
impl GetCommandInvocationOutput {
         436  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         437  +
    pub fn deserialize(
         438  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         439  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         440  +
        #[allow(unused_variables, unused_mut)]
         441  +
        let mut builder = Self::builder();
         442  +
        #[allow(
         443  +
            unused_variables,
         444  +
            unreachable_code,
         445  +
            clippy::single_match,
         446  +
            clippy::match_single_binding,
         447  +
            clippy::diverging_sub_expression
         448  +
        )]
         449  +
        deserializer.read_struct(&GETCOMMANDINVOCATIONOUTPUT_SCHEMA, &mut |member, deser| {
         450  +
            match member.member_index() {
         451  +
                Some(0) => {
         452  +
                    if deser.is_null() {
         453  +
                        deser.read_null()?;
         454  +
                    } else {
         455  +
                        builder.command_id = Some(deser.read_string(member)?);
         456  +
                    }
         457  +
                }
         458  +
                Some(1) => {
         459  +
                    if deser.is_null() {
         460  +
                        deser.read_null()?;
         461  +
                    } else {
         462  +
                        builder.instance_id = Some(deser.read_string(member)?);
         463  +
                    }
         464  +
                }
         465  +
                Some(2) => {
         466  +
                    if deser.is_null() {
         467  +
                        deser.read_null()?;
         468  +
                    } else {
         469  +
                        builder.comment = Some(deser.read_string(member)?);
         470  +
                    }
         471  +
                }
         472  +
                Some(3) => {
         473  +
                    if deser.is_null() {
         474  +
                        deser.read_null()?;
         475  +
                    } else {
         476  +
                        builder.document_name = Some(deser.read_string(member)?);
         477  +
                    }
         478  +
                }
         479  +
                Some(4) => {
         480  +
                    if deser.is_null() {
         481  +
                        deser.read_null()?;
         482  +
                    } else {
         483  +
                        builder.document_version = Some(deser.read_string(member)?);
         484  +
                    }
         485  +
                }
         486  +
                Some(5) => {
         487  +
                    if deser.is_null() {
         488  +
                        deser.read_null()?;
         489  +
                    } else {
         490  +
                        builder.plugin_name = Some(deser.read_string(member)?);
         491  +
                    }
         492  +
                }
         493  +
                Some(6) => {
         494  +
                    builder.response_code = Some(deser.read_integer(member)?);
         495  +
                }
         496  +
                Some(7) => {
         497  +
                    if deser.is_null() {
         498  +
                        deser.read_null()?;
         499  +
                    } else {
         500  +
                        builder.execution_start_date_time = Some(deser.read_string(member)?);
         501  +
                    }
         502  +
                }
         503  +
                Some(8) => {
         504  +
                    if deser.is_null() {
         505  +
                        deser.read_null()?;
         506  +
                    } else {
         507  +
                        builder.execution_elapsed_time = Some(deser.read_string(member)?);
         508  +
                    }
         509  +
                }
         510  +
                Some(9) => {
         511  +
                    if deser.is_null() {
         512  +
                        deser.read_null()?;
         513  +
                    } else {
         514  +
                        builder.execution_end_date_time = Some(deser.read_string(member)?);
         515  +
                    }
         516  +
                }
         517  +
                Some(10) => {
         518  +
                    if deser.is_null() {
         519  +
                        deser.read_null()?;
         520  +
                    } else {
         521  +
                        builder.status = Some(crate::types::CommandInvocationStatus::from(deser.read_string(member)?.as_str()));
         522  +
                    }
         523  +
                }
         524  +
                Some(11) => {
         525  +
                    if deser.is_null() {
         526  +
                        deser.read_null()?;
         527  +
                    } else {
         528  +
                        builder.status_details = Some(deser.read_string(member)?);
         529  +
                    }
         530  +
                }
         531  +
                Some(12) => {
         532  +
                    if deser.is_null() {
         533  +
                        deser.read_null()?;
         534  +
                    } else {
         535  +
                        builder.standard_output_content = Some(deser.read_string(member)?);
         536  +
                    }
         537  +
                }
         538  +
                Some(13) => {
         539  +
                    if deser.is_null() {
         540  +
                        deser.read_null()?;
         541  +
                    } else {
         542  +
                        builder.standard_output_url = Some(deser.read_string(member)?);
         543  +
                    }
         544  +
                }
         545  +
                Some(14) => {
         546  +
                    if deser.is_null() {
         547  +
                        deser.read_null()?;
         548  +
                    } else {
         549  +
                        builder.standard_error_content = Some(deser.read_string(member)?);
         550  +
                    }
         551  +
                }
         552  +
                Some(15) => {
         553  +
                    if deser.is_null() {
         554  +
                        deser.read_null()?;
         555  +
                    } else {
         556  +
                        builder.standard_error_url = Some(deser.read_string(member)?);
         557  +
                    }
         558  +
                }
         559  +
                Some(16) => {
         560  +
                    if deser.is_null() {
         561  +
                        deser.read_null()?;
         562  +
                    } else {
         563  +
                        builder.cloud_watch_output_config = Some(crate::types::CloudWatchOutputConfig::deserialize(deser)?);
         564  +
                    }
         565  +
                }
         566  +
                Some(17) => {
         567  +
                    builder._request_id = Some(deser.read_string(member)?);
         568  +
                }
         569  +
                _ => {}
         570  +
            }
         571  +
            Ok(())
         572  +
        })?;
         573  +
        Ok(builder.build())
         574  +
    }
         575  +
}
         576  +
impl GetCommandInvocationOutput {
         577  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         578  +
    /// Header-bound members are read directly from headers, avoiding runtime
         579  +
    /// member iteration overhead. Body members are read via the deserializer.
         580  +
    pub fn deserialize_with_response(
         581  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         582  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         583  +
        _status: u16,
         584  +
        _body: &[u8],
         585  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         586  +
        #[allow(unused_variables, unused_mut)]
         587  +
        let mut builder = Self::builder();
         588  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         589  +
            builder._request_id = Some(val.to_string());
         590  +
        }
         591  +
         592  +
        #[allow(
         593  +
            unused_variables,
         594  +
            unreachable_code,
         595  +
            clippy::single_match,
         596  +
            clippy::match_single_binding,
         597  +
            clippy::diverging_sub_expression
         598  +
        )]
         599  +
        deserializer.read_struct(&GETCOMMANDINVOCATIONOUTPUT_SCHEMA, &mut |member, deser| {
         600  +
            match member.member_index() {
         601  +
                Some(0) => {
         602  +
                    builder.command_id = Some(deser.read_string(member)?);
         603  +
                }
         604  +
                Some(1) => {
         605  +
                    builder.instance_id = Some(deser.read_string(member)?);
         606  +
                }
         607  +
                Some(2) => {
         608  +
                    builder.comment = Some(deser.read_string(member)?);
         609  +
                }
         610  +
                Some(3) => {
         611  +
                    builder.document_name = Some(deser.read_string(member)?);
         612  +
                }
         613  +
                Some(4) => {
         614  +
                    builder.document_version = Some(deser.read_string(member)?);
         615  +
                }
         616  +
                Some(5) => {
         617  +
                    builder.plugin_name = Some(deser.read_string(member)?);
         618  +
                }
         619  +
                Some(6) => {
         620  +
                    builder.response_code = Some(deser.read_integer(member)?);
         621  +
                }
         622  +
                Some(7) => {
         623  +
                    builder.execution_start_date_time = Some(deser.read_string(member)?);
         624  +
                }
         625  +
                Some(8) => {
         626  +
                    builder.execution_elapsed_time = Some(deser.read_string(member)?);
         627  +
                }
         628  +
                Some(9) => {
         629  +
                    builder.execution_end_date_time = Some(deser.read_string(member)?);
         630  +
                }
         631  +
                Some(10) => {
         632  +
                    builder.status = Some(crate::types::CommandInvocationStatus::from(deser.read_string(member)?.as_str()));
         633  +
                }
         634  +
                Some(11) => {
         635  +
                    builder.status_details = Some(deser.read_string(member)?);
         636  +
                }
         637  +
                Some(12) => {
         638  +
                    builder.standard_output_content = Some(deser.read_string(member)?);
         639  +
                }
         640  +
                Some(13) => {
         641  +
                    builder.standard_output_url = Some(deser.read_string(member)?);
         642  +
                }
         643  +
                Some(14) => {
         644  +
                    builder.standard_error_content = Some(deser.read_string(member)?);
         645  +
                }
         646  +
                Some(15) => {
         647  +
                    builder.standard_error_url = Some(deser.read_string(member)?);
         648  +
                }
         649  +
                Some(16) => {
         650  +
                    builder.cloud_watch_output_config = Some(crate::types::CloudWatchOutputConfig::deserialize(deser)?);
         651  +
                }
         652  +
                _ => {}
         653  +
            }
         654  +
            Ok(())
         655  +
        })?;
         656  +
        Ok(builder.build())
         657  +
    }
         658  +
}
         659  +
impl ::aws_types::request_id::RequestId for GetCommandInvocationOutput {
         660  +
    fn request_id(&self) -> Option<&str> {
         661  +
        self._request_id.as_deref()
         662  +
    }
         663  +
}
         664  +
impl GetCommandInvocationOutput {
         665  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         666  +
        self._request_id = request_id;
         667  +
        self
         668  +
    }
         669  +
}
         670  +
impl GetCommandInvocationOutput {
         671  +
    /// Creates a new builder-style object to manufacture [`GetCommandInvocationOutput`](crate::operation::get_command_invocation::GetCommandInvocationOutput).
         672  +
    pub fn builder() -> crate::operation::get_command_invocation::builders::GetCommandInvocationOutputBuilder {
         673  +
        crate::operation::get_command_invocation::builders::GetCommandInvocationOutputBuilder::default()
         674  +
    }
         675  +
}
         676  +
         677  +
/// A builder for [`GetCommandInvocationOutput`](crate::operation::get_command_invocation::GetCommandInvocationOutput).
         678  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         679  +
#[non_exhaustive]
         680  +
pub struct GetCommandInvocationOutputBuilder {
         681  +
    pub(crate) command_id: ::std::option::Option<::std::string::String>,
         682  +
    pub(crate) instance_id: ::std::option::Option<::std::string::String>,
         683  +
    pub(crate) comment: ::std::option::Option<::std::string::String>,
         684  +
    pub(crate) document_name: ::std::option::Option<::std::string::String>,
         685  +
    pub(crate) document_version: ::std::option::Option<::std::string::String>,
         686  +
    pub(crate) plugin_name: ::std::option::Option<::std::string::String>,
         687  +
    pub(crate) response_code: ::std::option::Option<i32>,
         688  +
    pub(crate) execution_start_date_time: ::std::option::Option<::std::string::String>,
         689  +
    pub(crate) execution_elapsed_time: ::std::option::Option<::std::string::String>,
         690  +
    pub(crate) execution_end_date_time: ::std::option::Option<::std::string::String>,
         691  +
    pub(crate) status: ::std::option::Option<crate::types::CommandInvocationStatus>,
         692  +
    pub(crate) status_details: ::std::option::Option<::std::string::String>,
         693  +
    pub(crate) standard_output_content: ::std::option::Option<::std::string::String>,
         694  +
    pub(crate) standard_output_url: ::std::option::Option<::std::string::String>,
         695  +
    pub(crate) standard_error_content: ::std::option::Option<::std::string::String>,
         696  +
    pub(crate) standard_error_url: ::std::option::Option<::std::string::String>,
         697  +
    pub(crate) cloud_watch_output_config: ::std::option::Option<crate::types::CloudWatchOutputConfig>,
         698  +
    _request_id: Option<String>,
         699  +
}
         700  +
impl GetCommandInvocationOutputBuilder {
         701  +
    /// <p>The parent command ID of the invocation plugin.</p>
         702  +
    pub fn command_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         703  +
        self.command_id = ::std::option::Option::Some(input.into());
         704  +
        self
         705  +
    }
         706  +
    /// <p>The parent command ID of the invocation plugin.</p>
         707  +
    pub fn set_command_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         708  +
        self.command_id = input;
         709  +
        self
         710  +
    }
         711  +
    /// <p>The parent command ID of the invocation plugin.</p>
         712  +
    pub fn get_command_id(&self) -> &::std::option::Option<::std::string::String> {
         713  +
        &self.command_id
         714  +
    }
         715  +
    /// <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>
         716  +
    pub fn instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         717  +
        self.instance_id = ::std::option::Option::Some(input.into());
         718  +
        self
         719  +
    }
         720  +
    /// <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>
         721  +
    pub fn set_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         722  +
        self.instance_id = input;
         723  +
        self
         724  +
    }
         725  +
    /// <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>
         726  +
    pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> {
         727  +
        &self.instance_id
         728  +
    }
         729  +
    /// <p>The comment text for the command.</p>
         730  +
    pub fn comment(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         731  +
        self.comment = ::std::option::Option::Some(input.into());
         732  +
        self
         733  +
    }
         734  +
    /// <p>The comment text for the command.</p>
         735  +
    pub fn set_comment(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         736  +
        self.comment = input;
         737  +
        self
         738  +
    }
         739  +
    /// <p>The comment text for the command.</p>
         740  +
    pub fn get_comment(&self) -> &::std::option::Option<::std::string::String> {
         741  +
        &self.comment
         742  +
    }
         743  +
    /// <p>The name of the document that was run. For example, <code>AWS-RunShellScript</code>.</p>
         744  +
    pub fn document_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         745  +
        self.document_name = ::std::option::Option::Some(input.into());
         746  +
        self
         747  +
    }
         748  +
    /// <p>The name of the document that was run. For example, <code>AWS-RunShellScript</code>.</p>
         749  +
    pub fn set_document_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         750  +
        self.document_name = input;
         751  +
        self
         752  +
    }
         753  +
    /// <p>The name of the document that was run. For example, <code>AWS-RunShellScript</code>.</p>
         754  +
    pub fn get_document_name(&self) -> &::std::option::Option<::std::string::String> {
         755  +
        &self.document_name
         756  +
    }
         757  +
    /// <p>The Systems Manager document (SSM document) version used in the request.</p>
         758  +
    pub fn document_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         759  +
        self.document_version = ::std::option::Option::Some(input.into());
         760  +
        self
         761  +
    }
         762  +
    /// <p>The Systems Manager document (SSM document) version used in the request.</p>
         763  +
    pub fn set_document_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         764  +
        self.document_version = input;
         765  +
        self
         766  +
    }
         767  +
    /// <p>The Systems Manager document (SSM document) version used in the request.</p>
         768  +
    pub fn get_document_version(&self) -> &::std::option::Option<::std::string::String> {
         769  +
        &self.document_version
         770  +
    }
         771  +
    /// <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>
         772  +
    pub fn plugin_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         773  +
        self.plugin_name = ::std::option::Option::Some(input.into());
         774  +
        self
         775  +
    }
         776  +
    /// <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>
         777  +
    pub fn set_plugin_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         778  +
        self.plugin_name = input;
         779  +
        self
         780  +
    }
         781  +
    /// <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>
         782  +
    pub fn get_plugin_name(&self) -> &::std::option::Option<::std::string::String> {
         783  +
        &self.plugin_name
         784  +
    }
         785  +
    /// <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>
         786  +
    pub fn response_code(mut self, input: i32) -> Self {
         787  +
        self.response_code = ::std::option::Option::Some(input);
         788  +
        self
         789  +
    }
         790  +
    /// <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>
         791  +
    pub fn set_response_code(mut self, input: ::std::option::Option<i32>) -> Self {
         792  +
        self.response_code = input;
         793  +
        self
         794  +
    }
         795  +
    /// <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>
         796  +
    pub fn get_response_code(&self) -> &::std::option::Option<i32> {
         797  +
        &self.response_code
         798  +
    }
         799  +
    /// <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>
         800  +
    /// <p><code>aws ssm list-commands --filters key=InvokedBefore,value=2017-06-07T00:00:00Z</code></p>
         801  +
    /// <p>If the plugin hasn't started to run, the string is empty.</p>
         802  +
    pub fn execution_start_date_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         803  +
        self.execution_start_date_time = ::std::option::Option::Some(input.into());
         804  +
        self
         805  +
    }
         806  +
    /// <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>
         807  +
    /// <p><code>aws ssm list-commands --filters key=InvokedBefore,value=2017-06-07T00:00:00Z</code></p>
         808  +
    /// <p>If the plugin hasn't started to run, the string is empty.</p>
         809  +
    pub fn set_execution_start_date_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         810  +
        self.execution_start_date_time = input;
         811  +
        self
         812  +
    }
         813  +
    /// <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>
         814  +
    /// <p><code>aws ssm list-commands --filters key=InvokedBefore,value=2017-06-07T00:00:00Z</code></p>
         815  +
    /// <p>If the plugin hasn't started to run, the string is empty.</p>
         816  +
    pub fn get_execution_start_date_time(&self) -> &::std::option::Option<::std::string::String> {
         817  +
        &self.execution_start_date_time
         818  +
    }
         819  +
    /// <p>Duration since <code>ExecutionStartDateTime</code>.</p>
         820  +
    pub fn execution_elapsed_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         821  +
        self.execution_elapsed_time = ::std::option::Option::Some(input.into());
         822  +
        self
         823  +
    }
         824  +
    /// <p>Duration since <code>ExecutionStartDateTime</code>.</p>
         825  +
    pub fn set_execution_elapsed_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         826  +
        self.execution_elapsed_time = input;
         827  +
        self
         828  +
    }
         829  +
    /// <p>Duration since <code>ExecutionStartDateTime</code>.</p>
         830  +
    pub fn get_execution_elapsed_time(&self) -> &::std::option::Option<::std::string::String> {
         831  +
        &self.execution_elapsed_time
         832  +
    }
         833  +
    /// <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>
         834  +
    /// <p><code>aws ssm list-commands --filters key=InvokedAfter,value=2017-06-07T00:00:00Z</code></p>
         835  +
    /// <p>If the plugin hasn't started to run, the string is empty.</p>
         836  +
    pub fn execution_end_date_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         837  +
        self.execution_end_date_time = ::std::option::Option::Some(input.into());
         838  +
        self
         839  +
    }
         840  +
    /// <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>
         841  +
    /// <p><code>aws ssm list-commands --filters key=InvokedAfter,value=2017-06-07T00:00:00Z</code></p>
         842  +
    /// <p>If the plugin hasn't started to run, the string is empty.</p>
         843  +
    pub fn set_execution_end_date_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         844  +
        self.execution_end_date_time = input;
         845  +
        self
         846  +
    }
         847  +
    /// <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>
         848  +
    /// <p><code>aws ssm list-commands --filters key=InvokedAfter,value=2017-06-07T00:00:00Z</code></p>
         849  +
    /// <p>If the plugin hasn't started to run, the string is empty.</p>
         850  +
    pub fn get_execution_end_date_time(&self) -> &::std::option::Option<::std::string::String> {
         851  +
        &self.execution_end_date_time
         852  +
    }
         853  +
    /// <p>The status of this invocation plugin. This status can be different than <code>StatusDetails</code>.</p>
         854  +
    pub fn status(mut self, input: crate::types::CommandInvocationStatus) -> Self {
         855  +
        self.status = ::std::option::Option::Some(input);
         856  +
        self
         857  +
    }
         858  +
    /// <p>The status of this invocation plugin. This status can be different than <code>StatusDetails</code>.</p>
         859  +
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::CommandInvocationStatus>) -> Self {
         860  +
        self.status = input;
         861  +
        self
         862  +
    }
         863  +
    /// <p>The status of this invocation plugin. This status can be different than <code>StatusDetails</code>.</p>
         864  +
    pub fn get_status(&self) -> &::std::option::Option<crate::types::CommandInvocationStatus> {
         865  +
        &self.status
         866  +
    }
         867  +
    /// <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>
         868  +
    /// <ul>
         869  +
    /// <li>
         870  +
    /// <p>Pending: The command hasn't been sent to the managed node.</p></li>
         871  +
    /// <li>
         872  +
    /// <p>In Progress: The command has been sent to the managed node but hasn't reached a terminal state.</p></li>
         873  +
    /// <li>
         874  +
    /// <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>
         875  +
    /// <li>
         876  +
    /// <p>Success: The command or plugin ran successfully. This is a terminal state.</p></li>
         877  +
    /// <li>
         878  +
    /// <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>
         879  +
    /// <li>
         880  +
    /// <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>
         881  +
    /// <li>
         882  +
    /// <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>
         883  +
    /// <li>
         884  +
    /// <p>Cancelled: The command was terminated before it was completed. This is a terminal state.</p></li>
         885  +
    /// <li>
         886  +
    /// <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>
         887  +
    /// <li>
         888  +
    /// <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>
         889  +
    /// </ul>
         890  +
    pub fn status_details(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         891  +
        self.status_details = ::std::option::Option::Some(input.into());
         892  +
        self
         893  +
    }
         894  +
    /// <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>
         895  +
    /// <ul>
         896  +
    /// <li>
         897  +
    /// <p>Pending: The command hasn't been sent to the managed node.</p></li>
         898  +
    /// <li>
         899  +
    /// <p>In Progress: The command has been sent to the managed node but hasn't reached a terminal state.</p></li>
         900  +
    /// <li>
         901  +
    /// <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>
         902  +
    /// <li>
         903  +
    /// <p>Success: The command or plugin ran successfully. This is a terminal state.</p></li>
         904  +
    /// <li>
         905  +
    /// <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>
         906  +
    /// <li>
         907  +
    /// <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>
         908  +
    /// <li>
         909  +
    /// <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>
         910  +
    /// <li>
         911  +
    /// <p>Cancelled: The command was terminated before it was completed. This is a terminal state.</p></li>
         912  +
    /// <li>
         913  +
    /// <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>
         914  +
    /// <li>
         915  +
    /// <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>
         916  +
    /// </ul>
         917  +
    pub fn set_status_details(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         918  +
        self.status_details = input;
         919  +
        self
         920  +
    }
         921  +
    /// <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>
         922  +
    /// <ul>
         923  +
    /// <li>
         924  +
    /// <p>Pending: The command hasn't been sent to the managed node.</p></li>
         925  +
    /// <li>
         926  +
    /// <p>In Progress: The command has been sent to the managed node but hasn't reached a terminal state.</p></li>
         927  +
    /// <li>
         928  +
    /// <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>
         929  +
    /// <li>
         930  +
    /// <p>Success: The command or plugin ran successfully. This is a terminal state.</p></li>
         931  +
    /// <li>
         932  +
    /// <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>
         933  +
    /// <li>
         934  +
    /// <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>
         935  +
    /// <li>
         936  +
    /// <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>
         937  +
    /// <li>
         938  +
    /// <p>Cancelled: The command was terminated before it was completed. This is a terminal state.</p></li>
         939  +
    /// <li>
         940  +
    /// <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>
         941  +
    /// <li>
         942  +
    /// <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>
         943  +
    /// </ul>
         944  +
    pub fn get_status_details(&self) -> &::std::option::Option<::std::string::String> {
         945  +
        &self.status_details
         946  +
    }
         947  +
    /// <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>
         948  +
    pub fn standard_output_content(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         949  +
        self.standard_output_content = ::std::option::Option::Some(input.into());
         950  +
        self
         951  +
    }
         952  +
    /// <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>
         953  +
    pub fn set_standard_output_content(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         954  +
        self.standard_output_content = input;
         955  +
        self
         956  +
    }
         957  +
    /// <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>
         958  +
    pub fn get_standard_output_content(&self) -> &::std::option::Option<::std::string::String> {
         959  +
        &self.standard_output_content
         960  +
    }
         961  +
    /// <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>
         962  +
    pub fn standard_output_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         963  +
        self.standard_output_url = ::std::option::Option::Some(input.into());
         964  +
        self
         965  +
    }
         966  +
    /// <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>
         967  +
    pub fn set_standard_output_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         968  +
        self.standard_output_url = input;
         969  +
        self
         970  +
    }
         971  +
    /// <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>
         972  +
    pub fn get_standard_output_url(&self) -> &::std::option::Option<::std::string::String> {
         973  +
        &self.standard_output_url
         974  +
    }
         975  +
    /// <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>
         976  +
    pub fn standard_error_content(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         977  +
        self.standard_error_content = ::std::option::Option::Some(input.into());
         978  +
        self
         979  +
    }
         980  +
    /// <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>
         981  +
    pub fn set_standard_error_content(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         982  +
        self.standard_error_content = input;
         983  +
        self
         984  +
    }
         985  +
    /// <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>
         986  +
    pub fn get_standard_error_content(&self) -> &::std::option::Option<::std::string::String> {
         987  +
        &self.standard_error_content
         988  +
    }
         989  +
    /// <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>
         990  +
    pub fn standard_error_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         991  +
        self.standard_error_url = ::std::option::Option::Some(input.into());
         992  +
        self
         993  +
    }
         994  +
    /// <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>
         995  +
    pub fn set_standard_error_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         996  +
        self.standard_error_url = input;
         997  +
        self
         998  +
    }
         999  +
    /// <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>
        1000  +
    pub fn get_standard_error_url(&self) -> &::std::option::Option<::std::string::String> {
        1001  +
        &self.standard_error_url
        1002  +
    }
        1003  +
    /// <p>Amazon CloudWatch Logs information where Systems Manager sent the command output.</p>
        1004  +
    pub fn cloud_watch_output_config(mut self, input: crate::types::CloudWatchOutputConfig) -> Self {
        1005  +
        self.cloud_watch_output_config = ::std::option::Option::Some(input);
        1006  +
        self
        1007  +
    }
        1008  +
    /// <p>Amazon CloudWatch Logs information where Systems Manager sent the command output.</p>
        1009  +
    pub fn set_cloud_watch_output_config(mut self, input: ::std::option::Option<crate::types::CloudWatchOutputConfig>) -> Self {
        1010  +
        self.cloud_watch_output_config = input;
        1011  +
        self
        1012  +
    }
        1013  +
    /// <p>Amazon CloudWatch Logs information where Systems Manager sent the command output.</p>
        1014  +
    pub fn get_cloud_watch_output_config(&self) -> &::std::option::Option<crate::types::CloudWatchOutputConfig> {
        1015  +
        &self.cloud_watch_output_config
        1016  +
    }
        1017  +
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        1018  +
        self._request_id = Some(request_id.into());
        1019  +
        self
        1020  +
    }
        1021  +
        1022  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        1023  +
        self._request_id = request_id;
        1024  +
        self
        1025  +
    }
        1026  +
    /// Consumes the builder and constructs a [`GetCommandInvocationOutput`](crate::operation::get_command_invocation::GetCommandInvocationOutput).
        1027  +
    pub fn build(self) -> crate::operation::get_command_invocation::GetCommandInvocationOutput {
        1028  +
        crate::operation::get_command_invocation::GetCommandInvocationOutput {
        1029  +
            command_id: self.command_id,
        1030  +
            instance_id: self.instance_id,
        1031  +
            comment: self.comment,
        1032  +
            document_name: self.document_name,
        1033  +
            document_version: self.document_version,
        1034  +
            plugin_name: self.plugin_name,
        1035  +
            response_code: self.response_code.unwrap_or_default(),
        1036  +
            execution_start_date_time: self.execution_start_date_time,
        1037  +
            execution_elapsed_time: self.execution_elapsed_time,
        1038  +
            execution_end_date_time: self.execution_end_date_time,
        1039  +
            status: self.status,
        1040  +
            status_details: self.status_details,
        1041  +
            standard_output_content: self.standard_output_content,
        1042  +
            standard_output_url: self.standard_output_url,
        1043  +
            standard_error_content: self.standard_error_content,
        1044  +
            standard_error_url: self.standard_error_url,
        1045  +
            cloud_watch_output_config: self.cloud_watch_output_config,
        1046  +
            _request_id: self._request_id,
        1047  +
        }
        1048  +
    }
        1049  +
}