Struct aws_sdk_ecs::client::fluent_builders::ExecuteCommand
source · pub struct ExecuteCommand { /* 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 ExecuteCommand
impl ExecuteCommand
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ExecuteCommand, AwsResponseRetryClassifier>, SdkError<ExecuteCommandError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<ExecuteCommand, AwsResponseRetryClassifier>, SdkError<ExecuteCommandError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<ExecuteCommandOutput, SdkError<ExecuteCommandError>>
pub async fn send(
self
) -> Result<ExecuteCommandOutput, SdkError<ExecuteCommandError>>
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 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 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 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 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.
Trait Implementations§
source§impl Clone for ExecuteCommand
impl Clone for ExecuteCommand
source§fn clone(&self) -> ExecuteCommand
fn clone(&self) -> ExecuteCommand
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more