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

software.amazon.awscdk.services.apprunner.alpha.Cpu Maven / Gradle / Ivy

There is a newer version: 2.173.2-alpha.0
Show newest version
package software.amazon.awscdk.services.apprunner.alpha;

/**
 * (experimental) The number of CPU units reserved for each instance of your App Runner service.
 * 

* Example: *

*

 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.services.apprunner.alpha.*;
 * Cpu cpu = Cpu.of("unit");
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.60.1 (build 2799dc8)", date = "2022-07-13T22:14:11.912Z") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.apprunner.alpha.$Module.class, fqn = "@aws-cdk/aws-apprunner-alpha.Cpu") public class Cpu extends software.amazon.jsii.JsiiObject { protected Cpu(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected Cpu(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } static { ONE_VCPU = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.apprunner.alpha.Cpu.class, "ONE_VCPU", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.apprunner.alpha.Cpu.class)); TWO_VCPU = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.apprunner.alpha.Cpu.class, "TWO_VCPU", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.apprunner.alpha.Cpu.class)); } /** * (experimental) Custom CPU unit. *

* @see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-instanceconfiguration.html#cfn-apprunner-service-instanceconfiguration-cpu * @param unit custom CPU unit. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.apprunner.alpha.Cpu of(final @org.jetbrains.annotations.NotNull java.lang.String unit) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.apprunner.alpha.Cpu.class, "of", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.apprunner.alpha.Cpu.class), new Object[] { java.util.Objects.requireNonNull(unit, "unit is required") }); } /** * (experimental) 1 vCPU. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public final static software.amazon.awscdk.services.apprunner.alpha.Cpu ONE_VCPU; /** * (experimental) 2 vCPU. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public final static software.amazon.awscdk.services.apprunner.alpha.Cpu TWO_VCPU; /** * (experimental) The unit of CPU. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getUnit() { return software.amazon.jsii.Kernel.get(this, "unit", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy