aws_sdk_greengrass/client/
get_associated_role.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 [`GetAssociatedRole`](crate::operation::get_associated_role::builders::GetAssociatedRoleFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`group_id(impl Into<String>)`](crate::operation::get_associated_role::builders::GetAssociatedRoleFluentBuilder::group_id) / [`set_group_id(Option<String>)`](crate::operation::get_associated_role::builders::GetAssociatedRoleFluentBuilder::set_group_id):<br>required: **true**<br>The ID of the Greengrass group.<br>
7    /// - On success, responds with [`GetAssociatedRoleOutput`](crate::operation::get_associated_role::GetAssociatedRoleOutput) with field(s):
8    ///   - [`associated_at(Option<String>)`](crate::operation::get_associated_role::GetAssociatedRoleOutput::associated_at): The time when the role was associated with the group.
9    ///   - [`role_arn(Option<String>)`](crate::operation::get_associated_role::GetAssociatedRoleOutput::role_arn): The ARN of the role that is associated with the group.
10    /// - On failure, responds with [`SdkError<GetAssociatedRoleError>`](crate::operation::get_associated_role::GetAssociatedRoleError)
11    pub fn get_associated_role(&self) -> crate::operation::get_associated_role::builders::GetAssociatedRoleFluentBuilder {
12        crate::operation::get_associated_role::builders::GetAssociatedRoleFluentBuilder::new(self.handle.clone())
13    }
14}