1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateSchedulingPolicy`](crate::operation::create_scheduling_policy::builders::CreateSchedulingPolicyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::create_scheduling_policy::builders::CreateSchedulingPolicyFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_scheduling_policy::builders::CreateSchedulingPolicyFluentBuilder::set_name): <p>The name of the scheduling policy. It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).</p>
    ///   - [`fairshare_policy(FairsharePolicy)`](crate::operation::create_scheduling_policy::builders::CreateSchedulingPolicyFluentBuilder::fairshare_policy) / [`set_fairshare_policy(Option<FairsharePolicy>)`](crate::operation::create_scheduling_policy::builders::CreateSchedulingPolicyFluentBuilder::set_fairshare_policy): <p>The fair share policy of the scheduling policy.</p>
    ///   - [`tags(HashMap<String, String>)`](crate::operation::create_scheduling_policy::builders::CreateSchedulingPolicyFluentBuilder::tags) / [`set_tags(Option<HashMap<String, String>>)`](crate::operation::create_scheduling_policy::builders::CreateSchedulingPolicyFluentBuilder::set_tags): <p>The tags that you apply to the scheduling policy to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services Resources</a> in <i>Amazon Web Services General Reference</i>.</p>  <p>These tags can be updated or removed using the <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_TagResource.html">TagResource</a> and <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_UntagResource.html">UntagResource</a> API operations.</p>
    /// - On success, responds with [`CreateSchedulingPolicyOutput`](crate::operation::create_scheduling_policy::CreateSchedulingPolicyOutput) with field(s):
    ///   - [`name(Option<String>)`](crate::operation::create_scheduling_policy::CreateSchedulingPolicyOutput::name): <p>The name of the scheduling policy.</p>
    ///   - [`arn(Option<String>)`](crate::operation::create_scheduling_policy::CreateSchedulingPolicyOutput::arn): <p>The Amazon Resource Name (ARN) of the scheduling policy. The format is <code>aws:<i>Partition</i>:batch:<i>Region</i>:<i>Account</i>:scheduling-policy/<i>Name</i> </code>. For example, <code>aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy</code>.</p>
    /// - On failure, responds with [`SdkError<CreateSchedulingPolicyError>`](crate::operation::create_scheduling_policy::CreateSchedulingPolicyError)
    pub fn create_scheduling_policy(
        &self,
    ) -> crate::operation::create_scheduling_policy::builders::CreateSchedulingPolicyFluentBuilder
    {
        crate::operation::create_scheduling_policy::builders::CreateSchedulingPolicyFluentBuilder::new(self.handle.clone())
    }
}