pub struct ExecuteCommandFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ExecuteCommand
.
Runs a command remotely on a container within a task.
If you use a condition key in your IAM policy to refine the conditions for the policy statement, for example limit the actions to a specific cluster, you receive an AccessDeniedException
when there is a mismatch between the condition key value and the corresponding parameter value.
For information about required permissions and considerations, see Using Amazon ECS Exec for debugging in the Amazon ECS Developer Guide.
Implementations§
source§impl ExecuteCommandFluentBuilder
impl ExecuteCommandFluentBuilder
sourcepub fn as_input(&self) -> &ExecuteCommandInputBuilder
pub fn as_input(&self) -> &ExecuteCommandInputBuilder
Access the ExecuteCommand as a reference.
sourcepub async fn send(
self
) -> Result<ExecuteCommandOutput, SdkError<ExecuteCommandError, HttpResponse>>
pub async fn send( self ) -> Result<ExecuteCommandOutput, SdkError<ExecuteCommandError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ExecuteCommandOutput, ExecuteCommandError>, SdkError<ExecuteCommandError>>
pub async fn customize( self ) -> Result<CustomizableOperation<ExecuteCommandOutput, ExecuteCommandError>, SdkError<ExecuteCommandError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn cluster(self, input: impl Into<String>) -> Self
pub fn cluster(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_cluster(self, input: Option<String>) -> Self
pub fn set_cluster(self, input: Option<String>) -> Self
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.
sourcepub fn get_cluster(&self) -> &Option<String>
pub fn get_cluster(&self) -> &Option<String>
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.
sourcepub fn container(self, input: impl Into<String>) -> Self
pub fn container(self, input: impl Into<String>) -> Self
The name of the container to execute the command on. A container name only needs to be specified for tasks containing multiple containers.
sourcepub fn set_container(self, input: Option<String>) -> Self
pub fn set_container(self, input: Option<String>) -> Self
The name of the container to execute the command on. A container name only needs to be specified for tasks containing multiple containers.
sourcepub fn get_container(&self) -> &Option<String>
pub fn get_container(&self) -> &Option<String>
The name of the container to execute the command on. A container name only needs to be specified for tasks containing multiple containers.
sourcepub fn set_command(self, input: Option<String>) -> Self
pub fn set_command(self, input: Option<String>) -> Self
The command to run on the container.
sourcepub fn get_command(&self) -> &Option<String>
pub fn get_command(&self) -> &Option<String>
The command to run on the container.
sourcepub fn interactive(self, input: bool) -> Self
pub fn interactive(self, input: bool) -> Self
Use this flag to run your command in interactive mode.
sourcepub fn set_interactive(self, input: Option<bool>) -> Self
pub fn set_interactive(self, input: Option<bool>) -> Self
Use this flag to run your command in interactive mode.
sourcepub fn get_interactive(&self) -> &Option<bool>
pub fn get_interactive(&self) -> &Option<bool>
Use this flag to run your command in interactive mode.
sourcepub fn task(self, input: impl Into<String>) -> Self
pub fn task(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) or ID of the task the container is part of.
Trait Implementations§
source§impl Clone for ExecuteCommandFluentBuilder
impl Clone for ExecuteCommandFluentBuilder
source§fn clone(&self) -> ExecuteCommandFluentBuilder
fn clone(&self) -> ExecuteCommandFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more