aws_sdk_bedrockagentcorecontrol/client/
create_code_interpreter.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 [`CreateCodeInterpreter`](crate::operation::create_code_interpreter::builders::CreateCodeInterpreterFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::create_code_interpreter::builders::CreateCodeInterpreterFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_code_interpreter::builders::CreateCodeInterpreterFluentBuilder::set_name):<br>required: **true**<br><p>The name of the code interpreter. The name must be unique within your account.</p><br>
7    ///   - [`description(impl Into<String>)`](crate::operation::create_code_interpreter::builders::CreateCodeInterpreterFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_code_interpreter::builders::CreateCodeInterpreterFluentBuilder::set_description):<br>required: **false**<br><p>The description of the code interpreter.</p><br>
8    ///   - [`execution_role_arn(impl Into<String>)`](crate::operation::create_code_interpreter::builders::CreateCodeInterpreterFluentBuilder::execution_role_arn) / [`set_execution_role_arn(Option<String>)`](crate::operation::create_code_interpreter::builders::CreateCodeInterpreterFluentBuilder::set_execution_role_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the IAM role that provides permissions for the code interpreter to access Amazon Web Services services.</p><br>
9    ///   - [`network_configuration(CodeInterpreterNetworkConfiguration)`](crate::operation::create_code_interpreter::builders::CreateCodeInterpreterFluentBuilder::network_configuration) / [`set_network_configuration(Option<CodeInterpreterNetworkConfiguration>)`](crate::operation::create_code_interpreter::builders::CreateCodeInterpreterFluentBuilder::set_network_configuration):<br>required: **true**<br><p>The network configuration for the code interpreter. This configuration specifies the network mode for the code interpreter.</p><br>
10    ///   - [`client_token(impl Into<String>)`](crate::operation::create_code_interpreter::builders::CreateCodeInterpreterFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_code_interpreter::builders::CreateCodeInterpreterFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request but does not return an error.</p><br>
11    /// - On success, responds with [`CreateCodeInterpreterOutput`](crate::operation::create_code_interpreter::CreateCodeInterpreterOutput) with field(s):
12    ///   - [`code_interpreter_id(String)`](crate::operation::create_code_interpreter::CreateCodeInterpreterOutput::code_interpreter_id): <p>The unique identifier of the created code interpreter.</p>
13    ///   - [`code_interpreter_arn(String)`](crate::operation::create_code_interpreter::CreateCodeInterpreterOutput::code_interpreter_arn): <p>The Amazon Resource Name (ARN) of the created code interpreter.</p>
14    ///   - [`created_at(DateTime)`](crate::operation::create_code_interpreter::CreateCodeInterpreterOutput::created_at): <p>The timestamp when the code interpreter was created.</p>
15    ///   - [`status(CodeInterpreterStatus)`](crate::operation::create_code_interpreter::CreateCodeInterpreterOutput::status): <p>The current status of the code interpreter.</p>
16    /// - On failure, responds with [`SdkError<CreateCodeInterpreterError>`](crate::operation::create_code_interpreter::CreateCodeInterpreterError)
17    pub fn create_code_interpreter(&self) -> crate::operation::create_code_interpreter::builders::CreateCodeInterpreterFluentBuilder {
18        crate::operation::create_code_interpreter::builders::CreateCodeInterpreterFluentBuilder::new(self.handle.clone())
19    }
20}