aws_sdk_workmail/client/
create_resource.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateResource`](crate::operation::create_resource::builders::CreateResourceFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`organization_id(impl Into<String>)`](crate::operation::create_resource::builders::CreateResourceFluentBuilder::organization_id) / [`set_organization_id(Option<String>)`](crate::operation::create_resource::builders::CreateResourceFluentBuilder::set_organization_id):<br>required: **true**<br><p>The identifier associated with the organization for which the resource is created.</p><br>
    ///   - [`name(impl Into<String>)`](crate::operation::create_resource::builders::CreateResourceFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_resource::builders::CreateResourceFluentBuilder::set_name):<br>required: **true**<br><p>The name of the new resource.</p><br>
    ///   - [`r#type(ResourceType)`](crate::operation::create_resource::builders::CreateResourceFluentBuilder::type) / [`set_type(Option<ResourceType>)`](crate::operation::create_resource::builders::CreateResourceFluentBuilder::set_type):<br>required: **true**<br><p>The type of the new resource. The available types are <code>equipment</code> and <code>room</code>.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_resource::builders::CreateResourceFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_resource::builders::CreateResourceFluentBuilder::set_description):<br>required: **false**<br><p>Resource description.</p><br>
    ///   - [`hidden_from_global_address_list(bool)`](crate::operation::create_resource::builders::CreateResourceFluentBuilder::hidden_from_global_address_list) / [`set_hidden_from_global_address_list(Option<bool>)`](crate::operation::create_resource::builders::CreateResourceFluentBuilder::set_hidden_from_global_address_list):<br>required: **false**<br><p>If this parameter is enabled, the resource will be hidden from the address book.</p><br>
    /// - On success, responds with [`CreateResourceOutput`](crate::operation::create_resource::CreateResourceOutput) with field(s):
    ///   - [`resource_id(Option<String>)`](crate::operation::create_resource::CreateResourceOutput::resource_id): <p>The identifier of the new resource.</p>
    /// - On failure, responds with [`SdkError<CreateResourceError>`](crate::operation::create_resource::CreateResourceError)
    pub fn create_resource(&self) -> crate::operation::create_resource::builders::CreateResourceFluentBuilder {
        crate::operation::create_resource::builders::CreateResourceFluentBuilder::new(self.handle.clone())
    }
}