aws_sdk_workmail/client/associate_delegate_to_resource.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`AssociateDelegateToResource`](crate::operation::associate_delegate_to_resource::builders::AssociateDelegateToResourceFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::operation::associate_delegate_to_resource::builders::AssociateDelegateToResourceFluentBuilder::organization_id) / [`set_organization_id(Option<String>)`](crate::operation::associate_delegate_to_resource::builders::AssociateDelegateToResourceFluentBuilder::set_organization_id):<br>required: **true**<br><p>The organization under which the resource exists.</p><br>
/// - [`resource_id(impl Into<String>)`](crate::operation::associate_delegate_to_resource::builders::AssociateDelegateToResourceFluentBuilder::resource_id) / [`set_resource_id(Option<String>)`](crate::operation::associate_delegate_to_resource::builders::AssociateDelegateToResourceFluentBuilder::set_resource_id):<br>required: **true**<br><p>The resource for which members (users or groups) are associated.</p> <p>The identifier can accept <i>ResourceId</i>, <i>Resourcename</i>, or <i>email</i>. The following identity formats are available:</p> <ul> <li> <p>Resource ID: r-0123456789a0123456789b0123456789</p></li> <li> <p>Email address: resource@domain.tld</p></li> <li> <p>Resource name: resource</p></li> </ul><br>
/// - [`entity_id(impl Into<String>)`](crate::operation::associate_delegate_to_resource::builders::AssociateDelegateToResourceFluentBuilder::entity_id) / [`set_entity_id(Option<String>)`](crate::operation::associate_delegate_to_resource::builders::AssociateDelegateToResourceFluentBuilder::set_entity_id):<br>required: **true**<br><p>The member (user or group) to associate to the resource.</p> <p>The entity ID can accept <i>UserId or GroupID</i>, <i>Username or Groupname</i>, or <i>email</i>.</p> <ul> <li> <p>Entity: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234</p></li> <li> <p>Email address: entity@domain.tld</p></li> <li> <p>Entity: entity</p></li> </ul><br>
/// - On success, responds with [`AssociateDelegateToResourceOutput`](crate::operation::associate_delegate_to_resource::AssociateDelegateToResourceOutput)
/// - On failure, responds with [`SdkError<AssociateDelegateToResourceError>`](crate::operation::associate_delegate_to_resource::AssociateDelegateToResourceError)
pub fn associate_delegate_to_resource(
&self,
) -> crate::operation::associate_delegate_to_resource::builders::AssociateDelegateToResourceFluentBuilder {
crate::operation::associate_delegate_to_resource::builders::AssociateDelegateToResourceFluentBuilder::new(self.handle.clone())
}
}