aws-sdk-batch 1.115.0

AWS SDK for AWS Batch
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateQuotaShare`](crate::operation::create_quota_share::builders::CreateQuotaShareFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`quota_share_name(impl Into<String>)`](crate::operation::create_quota_share::builders::CreateQuotaShareFluentBuilder::quota_share_name) / [`set_quota_share_name(Option<String>)`](crate::operation::create_quota_share::builders::CreateQuotaShareFluentBuilder::set_quota_share_name):<br>required: **true**<br><p>The name of the quota share. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).</p><br>
    ///   - [`job_queue(impl Into<String>)`](crate::operation::create_quota_share::builders::CreateQuotaShareFluentBuilder::job_queue) / [`set_job_queue(Option<String>)`](crate::operation::create_quota_share::builders::CreateQuotaShareFluentBuilder::set_job_queue):<br>required: **true**<br><p>The Batch job queue associated with the quota share. This can be the job queue name or ARN. A job queue must be in the <code>VALID</code> state before you can associate it with a quota share.</p><br>
    ///   - [`capacity_limits(QuotaShareCapacityLimit)`](crate::operation::create_quota_share::builders::CreateQuotaShareFluentBuilder::capacity_limits) / [`set_capacity_limits(Option<Vec::<QuotaShareCapacityLimit>>)`](crate::operation::create_quota_share::builders::CreateQuotaShareFluentBuilder::set_capacity_limits):<br>required: **true**<br><p>A list that specifies the quantity and type of compute capacity allocated to the quota share.</p><br>
    ///   - [`resource_sharing_configuration(QuotaShareResourceSharingConfiguration)`](crate::operation::create_quota_share::builders::CreateQuotaShareFluentBuilder::resource_sharing_configuration) / [`set_resource_sharing_configuration(Option<QuotaShareResourceSharingConfiguration>)`](crate::operation::create_quota_share::builders::CreateQuotaShareFluentBuilder::set_resource_sharing_configuration):<br>required: **true**<br><p>Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity.</p><br>
    ///   - [`preemption_configuration(QuotaSharePreemptionConfiguration)`](crate::operation::create_quota_share::builders::CreateQuotaShareFluentBuilder::preemption_configuration) / [`set_preemption_configuration(Option<QuotaSharePreemptionConfiguration>)`](crate::operation::create_quota_share::builders::CreateQuotaShareFluentBuilder::set_preemption_configuration):<br>required: **true**<br><p>Specifies the preemption behavior for jobs in a quota share.</p><br>
    ///   - [`state(QuotaShareState)`](crate::operation::create_quota_share::builders::CreateQuotaShareFluentBuilder::state) / [`set_state(Option<QuotaShareState>)`](crate::operation::create_quota_share::builders::CreateQuotaShareFluentBuilder::set_state):<br>required: **false**<br><p>The state of the quota share. If the quota share is <code>ENABLED</code>, it is able to accept jobs. If the quota share is <code>DISABLED</code>, new jobs won't be accepted but jobs already submitted can finish. The default state is <code>ENABLED</code>.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_quota_share::builders::CreateQuotaShareFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_quota_share::builders::CreateQuotaShareFluentBuilder::set_tags):<br>required: **false**<br><p>The tags that you apply to the quota share 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/batch/latest/userguide/using-tags.html">Tagging your Batch resources</a> in <i>Batch User Guide</i>.</p><br>
    /// - On success, responds with [`CreateQuotaShareOutput`](crate::operation::create_quota_share::CreateQuotaShareOutput) with field(s):
    ///   - [`quota_share_name(Option<String>)`](crate::operation::create_quota_share::CreateQuotaShareOutput::quota_share_name): <p>The name of the quota share.</p>
    ///   - [`quota_share_arn(Option<String>)`](crate::operation::create_quota_share::CreateQuotaShareOutput::quota_share_arn): <p>The Amazon Resource Name (ARN) of the quota share.</p>
    /// - On failure, responds with [`SdkError<CreateQuotaShareError>`](crate::operation::create_quota_share::CreateQuotaShareError)
    pub fn create_quota_share(&self) -> crate::operation::create_quota_share::builders::CreateQuotaShareFluentBuilder {
        crate::operation::create_quota_share::builders::CreateQuotaShareFluentBuilder::new(self.handle.clone())
    }
}