Struct aws_sdk_iam::operation::delete_instance_profile::builders::DeleteInstanceProfileFluentBuilder
source · pub struct DeleteInstanceProfileFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DeleteInstanceProfile
.
Deletes the specified instance profile. The instance profile must not have an associated role.
Make sure that you do not have any Amazon EC2 instances running with the instance profile you are about to delete. Deleting a role or instance profile that is associated with a running instance will break any applications running on the instance.
For more information about instance profiles, see Using instance profiles in the IAM User Guide.
Implementations§
source§impl DeleteInstanceProfileFluentBuilder
impl DeleteInstanceProfileFluentBuilder
sourcepub fn as_input(&self) -> &DeleteInstanceProfileInputBuilder
pub fn as_input(&self) -> &DeleteInstanceProfileInputBuilder
Access the DeleteInstanceProfile as a reference.
sourcepub async fn send(
self
) -> Result<DeleteInstanceProfileOutput, SdkError<DeleteInstanceProfileError, HttpResponse>>
pub async fn send( self ) -> Result<DeleteInstanceProfileOutput, SdkError<DeleteInstanceProfileError, 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 fn customize(
self
) -> CustomizableOperation<DeleteInstanceProfileOutput, DeleteInstanceProfileError, Self>
pub fn customize( self ) -> CustomizableOperation<DeleteInstanceProfileOutput, DeleteInstanceProfileError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn instance_profile_name(self, input: impl Into<String>) -> Self
pub fn instance_profile_name(self, input: impl Into<String>) -> Self
The name of the instance profile to delete.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
sourcepub fn set_instance_profile_name(self, input: Option<String>) -> Self
pub fn set_instance_profile_name(self, input: Option<String>) -> Self
The name of the instance profile to delete.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
sourcepub fn get_instance_profile_name(&self) -> &Option<String>
pub fn get_instance_profile_name(&self) -> &Option<String>
The name of the instance profile to delete.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
Trait Implementations§
source§impl Clone for DeleteInstanceProfileFluentBuilder
impl Clone for DeleteInstanceProfileFluentBuilder
source§fn clone(&self) -> DeleteInstanceProfileFluentBuilder
fn clone(&self) -> DeleteInstanceProfileFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more