1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ExecuteCommand`](crate::operation::execute_command::builders::ExecuteCommandFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`cluster(impl Into<String>)`](crate::operation::execute_command::builders::ExecuteCommandFluentBuilder::cluster) / [`set_cluster(Option<String>)`](crate::operation::execute_command::builders::ExecuteCommandFluentBuilder::set_cluster): <p>The Amazon Resource Name (ARN) or short name of the cluster the task is running in. If you do not specify a cluster, the default cluster is assumed.</p>
    ///   - [`container(impl Into<String>)`](crate::operation::execute_command::builders::ExecuteCommandFluentBuilder::container) / [`set_container(Option<String>)`](crate::operation::execute_command::builders::ExecuteCommandFluentBuilder::set_container): <p>The name of the container to execute the command on. A container name only needs to be specified for tasks containing multiple containers.</p>
    ///   - [`command(impl Into<String>)`](crate::operation::execute_command::builders::ExecuteCommandFluentBuilder::command) / [`set_command(Option<String>)`](crate::operation::execute_command::builders::ExecuteCommandFluentBuilder::set_command): <p>The command to run on the container.</p>
    ///   - [`interactive(bool)`](crate::operation::execute_command::builders::ExecuteCommandFluentBuilder::interactive) / [`set_interactive(Option<bool>)`](crate::operation::execute_command::builders::ExecuteCommandFluentBuilder::set_interactive): <p>Use this flag to run your command in interactive mode.</p>
    ///   - [`task(impl Into<String>)`](crate::operation::execute_command::builders::ExecuteCommandFluentBuilder::task) / [`set_task(Option<String>)`](crate::operation::execute_command::builders::ExecuteCommandFluentBuilder::set_task): <p>The Amazon Resource Name (ARN) or ID of the task the container is part of.</p>
    /// - On success, responds with [`ExecuteCommandOutput`](crate::operation::execute_command::ExecuteCommandOutput) with field(s):
    ///   - [`cluster_arn(Option<String>)`](crate::operation::execute_command::ExecuteCommandOutput::cluster_arn): <p>The Amazon Resource Name (ARN) of the cluster.</p>
    ///   - [`container_arn(Option<String>)`](crate::operation::execute_command::ExecuteCommandOutput::container_arn): <p>The Amazon Resource Name (ARN) of the container.</p>
    ///   - [`container_name(Option<String>)`](crate::operation::execute_command::ExecuteCommandOutput::container_name): <p>The name of the container.</p>
    ///   - [`interactive(bool)`](crate::operation::execute_command::ExecuteCommandOutput::interactive): <p>Determines whether the execute command session is running in interactive mode. Amazon ECS only supports initiating interactive sessions, so you must specify <code>true</code> for this value.</p>
    ///   - [`session(Option<Session>)`](crate::operation::execute_command::ExecuteCommandOutput::session): <p>The details of the SSM session that was created for this instance of execute-command.</p>
    ///   - [`task_arn(Option<String>)`](crate::operation::execute_command::ExecuteCommandOutput::task_arn): <p>The Amazon Resource Name (ARN) of the task.</p>
    /// - On failure, responds with [`SdkError<ExecuteCommandError>`](crate::operation::execute_command::ExecuteCommandError)
    pub fn execute_command(&self) -> crate::operation::execute_command::builders::ExecuteCommandFluentBuilder {
        crate::operation::execute_command::builders::ExecuteCommandFluentBuilder::new(self.handle.clone())
    }
}