1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - | pub use crate::operation::delete_service_linked_role::_delete_service_linked_role_output::DeleteServiceLinkedRoleOutputBuilder;
|
3 - |
|
4 2 | pub use crate::operation::delete_service_linked_role::_delete_service_linked_role_input::DeleteServiceLinkedRoleInputBuilder;
|
5 3 |
|
4 + | pub use crate::operation::delete_service_linked_role::_delete_service_linked_role_output::DeleteServiceLinkedRoleOutputBuilder;
|
5 + |
|
6 6 | impl crate::operation::delete_service_linked_role::builders::DeleteServiceLinkedRoleInputBuilder {
|
7 7 | /// Sends a request with this input using the given client.
|
8 8 | pub async fn send_with(
|
9 9 | self,
|
10 10 | client: &crate::Client,
|
11 11 | ) -> ::std::result::Result<
|
12 12 | crate::operation::delete_service_linked_role::DeleteServiceLinkedRoleOutput,
|
13 13 | ::aws_smithy_runtime_api::client::result::SdkError<
|
14 14 | crate::operation::delete_service_linked_role::DeleteServiceLinkedRoleError,
|
15 15 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
16 16 | >,
|
17 17 | > {
|
18 18 | let mut fluent_builder = client.delete_service_linked_role();
|
19 19 | fluent_builder.inner = self;
|
20 20 | fluent_builder.send().await
|
21 21 | }
|
22 22 | }
|
23 23 | /// Fluent builder constructing a request to `DeleteServiceLinkedRole`.
|
24 24 | ///
|
25 25 | /// <p>Submits a service-linked role deletion request and returns a <code>DeletionTaskId</code>, 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 <code>DeletionTaskId</code> of the earlier request is returned.</p>
|
26 26 | /// <p>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 <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetServiceLinkedRoleDeletionStatus.html">GetServiceLinkedRoleDeletionStatus</a> 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 <a href="http://docs.aws.amazon.com/">Amazon Web Services documentation</a> for your service.</p>
|
27 27 | /// <p>For more information about service-linked roles, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-service-linked-role">Roles terms and concepts: Amazon Web Services service-linked role</a> in the <i>IAM User Guide</i>.</p>
|
28 28 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
29 29 | pub struct DeleteServiceLinkedRoleFluentBuilder {
|
30 30 | handle: ::std::sync::Arc<crate::client::Handle>,
|
31 31 | inner: crate::operation::delete_service_linked_role::builders::DeleteServiceLinkedRoleInputBuilder,
|
32 32 | config_override: ::std::option::Option<crate::config::Builder>,
|
33 33 | }
|
34 34 | impl
|
35 35 | crate::client::customize::internal::CustomizableSend<
|