Skip to main content

aws_sdk_securityagent/client/
create_agent_space.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 [`CreateAgentSpace`](crate::operation::create_agent_space::builders::CreateAgentSpaceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::create_agent_space::builders::CreateAgentSpaceFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_agent_space::builders::CreateAgentSpaceFluentBuilder::set_name):<br>required: **true**<br><p>The name of the agent space.</p><br>
7    ///   - [`description(impl Into<String>)`](crate::operation::create_agent_space::builders::CreateAgentSpaceFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_agent_space::builders::CreateAgentSpaceFluentBuilder::set_description):<br>required: **false**<br><p>A description of the agent space.</p><br>
8    ///   - [`aws_resources(AwsResources)`](crate::operation::create_agent_space::builders::CreateAgentSpaceFluentBuilder::aws_resources) / [`set_aws_resources(Option<AwsResources>)`](crate::operation::create_agent_space::builders::CreateAgentSpaceFluentBuilder::set_aws_resources):<br>required: **false**<br><p>The AWS resources to associate with the agent space.</p><br>
9    ///   - [`target_domain_ids(impl Into<String>)`](crate::operation::create_agent_space::builders::CreateAgentSpaceFluentBuilder::target_domain_ids) / [`set_target_domain_ids(Option<Vec::<String>>)`](crate::operation::create_agent_space::builders::CreateAgentSpaceFluentBuilder::set_target_domain_ids):<br>required: **false**<br><p>The list of target domain identifiers to associate with the agent space.</p><br>
10    ///   - [`code_review_settings(CodeReviewSettings)`](crate::operation::create_agent_space::builders::CreateAgentSpaceFluentBuilder::code_review_settings) / [`set_code_review_settings(Option<CodeReviewSettings>)`](crate::operation::create_agent_space::builders::CreateAgentSpaceFluentBuilder::set_code_review_settings):<br>required: **false**<br><p>The code review settings for the agent space.</p><br>
11    ///   - [`kms_key_id(impl Into<String>)`](crate::operation::create_agent_space::builders::CreateAgentSpaceFluentBuilder::kms_key_id) / [`set_kms_key_id(Option<String>)`](crate::operation::create_agent_space::builders::CreateAgentSpaceFluentBuilder::set_kms_key_id):<br>required: **false**<br><p>The identifier of the AWS KMS key to use for encrypting data in the agent space.</p><br>
12    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_agent_space::builders::CreateAgentSpaceFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_agent_space::builders::CreateAgentSpaceFluentBuilder::set_tags):<br>required: **false**<br><p>The tags to associate with the agent space.</p><br>
13    /// - On success, responds with [`CreateAgentSpaceOutput`](crate::operation::create_agent_space::CreateAgentSpaceOutput) with field(s):
14    ///   - [`agent_space_id(String)`](crate::operation::create_agent_space::CreateAgentSpaceOutput::agent_space_id): <p>The unique identifier of the created agent space.</p>
15    ///   - [`name(String)`](crate::operation::create_agent_space::CreateAgentSpaceOutput::name): <p>The name of the agent space.</p>
16    ///   - [`description(Option<String>)`](crate::operation::create_agent_space::CreateAgentSpaceOutput::description): <p>The description of the agent space.</p>
17    ///   - [`aws_resources(Option<AwsResources>)`](crate::operation::create_agent_space::CreateAgentSpaceOutput::aws_resources): <p>The AWS resources associated with the agent space.</p>
18    ///   - [`target_domain_ids(Option<Vec::<String>>)`](crate::operation::create_agent_space::CreateAgentSpaceOutput::target_domain_ids): <p>The list of target domain identifiers associated with the agent space.</p>
19    ///   - [`code_review_settings(Option<CodeReviewSettings>)`](crate::operation::create_agent_space::CreateAgentSpaceOutput::code_review_settings): <p>The code review settings for the agent space.</p>
20    ///   - [`kms_key_id(Option<String>)`](crate::operation::create_agent_space::CreateAgentSpaceOutput::kms_key_id): <p>The identifier of the AWS KMS key used to encrypt data in the agent space.</p>
21    ///   - [`created_at(Option<DateTime>)`](crate::operation::create_agent_space::CreateAgentSpaceOutput::created_at): <p>The date and time the agent space was created, in UTC format.</p>
22    ///   - [`updated_at(Option<DateTime>)`](crate::operation::create_agent_space::CreateAgentSpaceOutput::updated_at): <p>The date and time the agent space was last updated, in UTC format.</p>
23    /// - On failure, responds with [`SdkError<CreateAgentSpaceError>`](crate::operation::create_agent_space::CreateAgentSpaceError)
24    pub fn create_agent_space(&self) -> crate::operation::create_agent_space::builders::CreateAgentSpaceFluentBuilder {
25        crate::operation::create_agent_space::builders::CreateAgentSpaceFluentBuilder::new(self.handle.clone())
26    }
27}