aws_sdk_greengrass/client/get_service_role_for_account.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetServiceRoleForAccount`](crate::operation::get_service_role_for_account::builders::GetServiceRoleForAccountFluentBuilder) operation.
4 ///
5 /// - The fluent builder takes no input, just [`send`](crate::operation::get_service_role_for_account::builders::GetServiceRoleForAccountFluentBuilder::send) it.
6 /// - On success, responds with [`GetServiceRoleForAccountOutput`](crate::operation::get_service_role_for_account::GetServiceRoleForAccountOutput) with field(s):
7 /// - [`associated_at(Option<String>)`](crate::operation::get_service_role_for_account::GetServiceRoleForAccountOutput::associated_at): The time when the service role was associated with the account.
8 /// - [`role_arn(Option<String>)`](crate::operation::get_service_role_for_account::GetServiceRoleForAccountOutput::role_arn): The ARN of the role which is associated with the account.
9 /// - On failure, responds with [`SdkError<GetServiceRoleForAccountError>`](crate::operation::get_service_role_for_account::GetServiceRoleForAccountError)
10 pub fn get_service_role_for_account(&self) -> crate::operation::get_service_role_for_account::builders::GetServiceRoleForAccountFluentBuilder {
11 crate::operation::get_service_role_for_account::builders::GetServiceRoleForAccountFluentBuilder::new(self.handle.clone())
12 }
13}