All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.ec2.inputs.SpotInstanceRequestCreditSpecificationArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.66.3
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.ec2.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class SpotInstanceRequestCreditSpecificationArgs extends com.pulumi.resources.ResourceArgs {

    public static final SpotInstanceRequestCreditSpecificationArgs Empty = new SpotInstanceRequestCreditSpecificationArgs();

    /**
     * Credit option for CPU usage. Valid values include `standard` or `unlimited`. T3 instances are launched as unlimited by default. T2 instances are launched as standard by default.
     * 
     */
    @Import(name="cpuCredits")
    private @Nullable Output cpuCredits;

    /**
     * @return Credit option for CPU usage. Valid values include `standard` or `unlimited`. T3 instances are launched as unlimited by default. T2 instances are launched as standard by default.
     * 
     */
    public Optional> cpuCredits() {
        return Optional.ofNullable(this.cpuCredits);
    }

    private SpotInstanceRequestCreditSpecificationArgs() {}

    private SpotInstanceRequestCreditSpecificationArgs(SpotInstanceRequestCreditSpecificationArgs $) {
        this.cpuCredits = $.cpuCredits;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(SpotInstanceRequestCreditSpecificationArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private SpotInstanceRequestCreditSpecificationArgs $;

        public Builder() {
            $ = new SpotInstanceRequestCreditSpecificationArgs();
        }

        public Builder(SpotInstanceRequestCreditSpecificationArgs defaults) {
            $ = new SpotInstanceRequestCreditSpecificationArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param cpuCredits Credit option for CPU usage. Valid values include `standard` or `unlimited`. T3 instances are launched as unlimited by default. T2 instances are launched as standard by default.
         * 
         * @return builder
         * 
         */
        public Builder cpuCredits(@Nullable Output cpuCredits) {
            $.cpuCredits = cpuCredits;
            return this;
        }

        /**
         * @param cpuCredits Credit option for CPU usage. Valid values include `standard` or `unlimited`. T3 instances are launched as unlimited by default. T2 instances are launched as standard by default.
         * 
         * @return builder
         * 
         */
        public Builder cpuCredits(String cpuCredits) {
            return cpuCredits(Output.of(cpuCredits));
        }

        public SpotInstanceRequestCreditSpecificationArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy