Struct aws_sdk_iam::client::fluent_builders::DeleteServiceLinkedRole [−][src]
pub struct DeleteServiceLinkedRole<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to DeleteServiceLinkedRole
.
Submits a service-linked role deletion request and returns a
DeletionTaskId
, which you can use to check the status of the deletion.
Before you call this operation, confirm that the role has no active sessions and that
any resources used by the role in the linked service are deleted. If you call this
operation more than once for the same service-linked role and an earlier deletion task
is not complete, then the DeletionTaskId
of the earlier request is
returned.
If you submit a deletion request for a service-linked role whose linked service is still accessing a resource, then the deletion task fails. If it fails, the GetServiceLinkedRoleDeletionStatus operation returns the reason for the failure, usually including the resources that must be deleted. To delete the service-linked role, you must first remove those resources from the linked service and then submit the deletion request again. Resources are specific to the service that is linked to the role. For more information about removing resources from a service, see the Amazon Web Services documentation for your service.
For more information about service-linked roles, see Roles terms and concepts: Amazon Web Services service-linked role in the IAM User Guide.
Implementations
impl<C, M, R> DeleteServiceLinkedRole<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> DeleteServiceLinkedRole<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<DeleteServiceLinkedRoleOutput, SdkError<DeleteServiceLinkedRoleError>> where
R::Policy: SmithyRetryPolicy<DeleteServiceLinkedRoleInputOperationOutputAlias, DeleteServiceLinkedRoleOutput, DeleteServiceLinkedRoleError, DeleteServiceLinkedRoleInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<DeleteServiceLinkedRoleOutput, SdkError<DeleteServiceLinkedRoleError>> where
R::Policy: SmithyRetryPolicy<DeleteServiceLinkedRoleInputOperationOutputAlias, DeleteServiceLinkedRoleOutput, DeleteServiceLinkedRoleError, DeleteServiceLinkedRoleInputOperationRetryAlias>,
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.
The name of the service-linked role to be deleted.
The name of the service-linked role to be deleted.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for DeleteServiceLinkedRole<C, M, R>
impl<C, M, R> Send for DeleteServiceLinkedRole<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for DeleteServiceLinkedRole<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for DeleteServiceLinkedRole<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for DeleteServiceLinkedRole<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more