1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateFlowVersion`](crate::operation::create_flow_version::builders::CreateFlowVersionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`flow_identifier(impl Into<String>)`](crate::operation::create_flow_version::builders::CreateFlowVersionFluentBuilder::flow_identifier) / [`set_flow_identifier(Option<String>)`](crate::operation::create_flow_version::builders::CreateFlowVersionFluentBuilder::set_flow_identifier):<br>required: **true**<br><p>The unique identifier of the flow that you want to create a version of.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_flow_version::builders::CreateFlowVersionFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_flow_version::builders::CreateFlowVersionFluentBuilder::set_description):<br>required: **false**<br><p>A description of the version of the flow.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_flow_version::builders::CreateFlowVersionFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_flow_version::builders::CreateFlowVersionFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p><br>
    /// - On success, responds with [`CreateFlowVersionOutput`](crate::operation::create_flow_version::CreateFlowVersionOutput) with field(s):
    ///   - [`name(String)`](crate::operation::create_flow_version::CreateFlowVersionOutput::name): <p>The name of the version.</p>
    ///   - [`description(Option<String>)`](crate::operation::create_flow_version::CreateFlowVersionOutput::description): <p>The description of the version.</p>
    ///   - [`execution_role_arn(String)`](crate::operation::create_flow_version::CreateFlowVersionOutput::execution_role_arn): <p>The Amazon Resource Name (ARN) of the service role with permissions to create a flow. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-permissions.html">Create a service role for flows in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p>
    ///   - [`customer_encryption_key_arn(Option<String>)`](crate::operation::create_flow_version::CreateFlowVersionOutput::customer_encryption_key_arn): <p>The KMS key that the flow is encrypted with.</p>
    ///   - [`id(String)`](crate::operation::create_flow_version::CreateFlowVersionOutput::id): <p>The unique identifier of the flow.</p>
    ///   - [`arn(String)`](crate::operation::create_flow_version::CreateFlowVersionOutput::arn): <p>The Amazon Resource Name (ARN) of the flow.</p>
    ///   - [`status(FlowStatus)`](crate::operation::create_flow_version::CreateFlowVersionOutput::status): <p>The status of the flow.</p>
    ///   - [`created_at(DateTime)`](crate::operation::create_flow_version::CreateFlowVersionOutput::created_at): <p>The time at which the flow was created.</p>
    ///   - [`version(String)`](crate::operation::create_flow_version::CreateFlowVersionOutput::version): <p>The version of the flow that was created. Versions are numbered incrementally, starting from 1.</p>
    ///   - [`definition(Option<FlowDefinition>)`](crate::operation::create_flow_version::CreateFlowVersionOutput::definition): <p>A definition of the nodes and connections in the flow.</p>
    /// - On failure, responds with [`SdkError<CreateFlowVersionError>`](crate::operation::create_flow_version::CreateFlowVersionError)
    pub fn create_flow_version(&self) -> crate::operation::create_flow_version::builders::CreateFlowVersionFluentBuilder {
        crate::operation::create_flow_version::builders::CreateFlowVersionFluentBuilder::new(self.handle.clone())
    }
}