aws_sdk_wellarchitected/client/
create_milestone.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateMilestone`](crate::operation::create_milestone::builders::CreateMilestoneFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`workload_id(impl Into<String>)`](crate::operation::create_milestone::builders::CreateMilestoneFluentBuilder::workload_id) / [`set_workload_id(Option<String>)`](crate::operation::create_milestone::builders::CreateMilestoneFluentBuilder::set_workload_id):<br>required: **true**<br><p>The ID assigned to the workload. This ID is unique within an Amazon Web Services Region.</p><br>
    ///   - [`milestone_name(impl Into<String>)`](crate::operation::create_milestone::builders::CreateMilestoneFluentBuilder::milestone_name) / [`set_milestone_name(Option<String>)`](crate::operation::create_milestone::builders::CreateMilestoneFluentBuilder::set_milestone_name):<br>required: **true**<br><p>The name of the milestone in a workload.</p> <p>Milestone names must be unique within a workload.</p><br>
    ///   - [`client_request_token(impl Into<String>)`](crate::operation::create_milestone::builders::CreateMilestoneFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::create_milestone::builders::CreateMilestoneFluentBuilder::set_client_request_token):<br>required: **true**<br><p>A unique case-sensitive string used to ensure that this request is idempotent (executes only once).</p> <p>You should not reuse the same token for other requests. If you retry a request with the same client request token and the same parameters after the original request has completed successfully, the result of the original request is returned.</p><important>  <p>This token is listed as required, however, if you do not specify it, the Amazon Web Services SDKs automatically generate one for you. If you are not using the Amazon Web Services SDK or the CLI, you must provide this token or the request will fail.</p> </important><br>
    /// - On success, responds with [`CreateMilestoneOutput`](crate::operation::create_milestone::CreateMilestoneOutput) with field(s):
    ///   - [`workload_id(Option<String>)`](crate::operation::create_milestone::CreateMilestoneOutput::workload_id): <p>The ID assigned to the workload. This ID is unique within an Amazon Web Services Region.</p>
    ///   - [`milestone_number(Option<i32>)`](crate::operation::create_milestone::CreateMilestoneOutput::milestone_number): <p>The milestone number.</p> <p>A workload can have a maximum of 100 milestones.</p>
    /// - On failure, responds with [`SdkError<CreateMilestoneError>`](crate::operation::create_milestone::CreateMilestoneError)
    pub fn create_milestone(&self) -> crate::operation::create_milestone::builders::CreateMilestoneFluentBuilder {
        crate::operation::create_milestone::builders::CreateMilestoneFluentBuilder::new(self.handle.clone())
    }
}