aws_sdk_sagemaker/client/
create_compute_quota.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateComputeQuota`](crate::operation::create_compute_quota::builders::CreateComputeQuotaFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::create_compute_quota::builders::CreateComputeQuotaFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_compute_quota::builders::CreateComputeQuotaFluentBuilder::set_name):<br>required: **true**<br><p>Name to the compute allocation definition.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_compute_quota::builders::CreateComputeQuotaFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_compute_quota::builders::CreateComputeQuotaFluentBuilder::set_description):<br>required: **false**<br><p>Description of the compute allocation definition.</p><br>
    ///   - [`cluster_arn(impl Into<String>)`](crate::operation::create_compute_quota::builders::CreateComputeQuotaFluentBuilder::cluster_arn) / [`set_cluster_arn(Option<String>)`](crate::operation::create_compute_quota::builders::CreateComputeQuotaFluentBuilder::set_cluster_arn):<br>required: **true**<br><p>ARN of the cluster.</p><br>
    ///   - [`compute_quota_config(ComputeQuotaConfig)`](crate::operation::create_compute_quota::builders::CreateComputeQuotaFluentBuilder::compute_quota_config) / [`set_compute_quota_config(Option<ComputeQuotaConfig>)`](crate::operation::create_compute_quota::builders::CreateComputeQuotaFluentBuilder::set_compute_quota_config):<br>required: **true**<br><p>Configuration of the compute allocation definition. This includes the resource sharing option, and the setting to preempt low priority tasks.</p><br>
    ///   - [`compute_quota_target(ComputeQuotaTarget)`](crate::operation::create_compute_quota::builders::CreateComputeQuotaFluentBuilder::compute_quota_target) / [`set_compute_quota_target(Option<ComputeQuotaTarget>)`](crate::operation::create_compute_quota::builders::CreateComputeQuotaFluentBuilder::set_compute_quota_target):<br>required: **true**<br><p>The target entity to allocate compute resources to.</p><br>
    ///   - [`activation_state(ActivationState)`](crate::operation::create_compute_quota::builders::CreateComputeQuotaFluentBuilder::activation_state) / [`set_activation_state(Option<ActivationState>)`](crate::operation::create_compute_quota::builders::CreateComputeQuotaFluentBuilder::set_activation_state):<br>required: **false**<br><p>The state of the compute allocation being described. Use to enable or disable compute allocation.</p> <p>Default is <code>Enabled</code>.</p><br>
    ///   - [`tags(Tag)`](crate::operation::create_compute_quota::builders::CreateComputeQuotaFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_compute_quota::builders::CreateComputeQuotaFluentBuilder::set_tags):<br>required: **false**<br><p>Tags of the compute allocation definition.</p><br>
    /// - On success, responds with [`CreateComputeQuotaOutput`](crate::operation::create_compute_quota::CreateComputeQuotaOutput) with field(s):
    ///   - [`compute_quota_arn(Option<String>)`](crate::operation::create_compute_quota::CreateComputeQuotaOutput::compute_quota_arn): <p>ARN of the compute allocation definition.</p>
    ///   - [`compute_quota_id(Option<String>)`](crate::operation::create_compute_quota::CreateComputeQuotaOutput::compute_quota_id): <p>ID of the compute allocation definition.</p>
    /// - On failure, responds with [`SdkError<CreateComputeQuotaError>`](crate::operation::create_compute_quota::CreateComputeQuotaError)
    pub fn create_compute_quota(&self) -> crate::operation::create_compute_quota::builders::CreateComputeQuotaFluentBuilder {
        crate::operation::create_compute_quota::builders::CreateComputeQuotaFluentBuilder::new(self.handle.clone())
    }
}