com.pulumi.aws.apprunner.outputs.ServiceInstanceConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.apprunner.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ServiceInstanceConfiguration {
/**
* @return Number of CPU units reserved for each instance of your App Runner service represented as a String. Defaults to `1024`. Valid values: `256|512|1024|2048|4096|(0.25|0.5|1|2|4) vCPU`.
*
*/
private @Nullable String cpu;
/**
* @return ARN of an IAM role that provides permissions to your App Runner service. These are permissions that your code needs when it calls any AWS APIs.
*
*/
private @Nullable String instanceRoleArn;
/**
* @return Amount of memory, in MB or GB, reserved for each instance of your App Runner service. Defaults to `2048`. Valid values: `512|1024|2048|3072|4096|6144|8192|10240|12288|(0.5|1|2|3|4|6|8|10|12) GB`.
*
*/
private @Nullable String memory;
private ServiceInstanceConfiguration() {}
/**
* @return Number of CPU units reserved for each instance of your App Runner service represented as a String. Defaults to `1024`. Valid values: `256|512|1024|2048|4096|(0.25|0.5|1|2|4) vCPU`.
*
*/
public Optional cpu() {
return Optional.ofNullable(this.cpu);
}
/**
* @return ARN of an IAM role that provides permissions to your App Runner service. These are permissions that your code needs when it calls any AWS APIs.
*
*/
public Optional instanceRoleArn() {
return Optional.ofNullable(this.instanceRoleArn);
}
/**
* @return Amount of memory, in MB or GB, reserved for each instance of your App Runner service. Defaults to `2048`. Valid values: `512|1024|2048|3072|4096|6144|8192|10240|12288|(0.5|1|2|3|4|6|8|10|12) GB`.
*
*/
public Optional memory() {
return Optional.ofNullable(this.memory);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ServiceInstanceConfiguration defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String cpu;
private @Nullable String instanceRoleArn;
private @Nullable String memory;
public Builder() {}
public Builder(ServiceInstanceConfiguration defaults) {
Objects.requireNonNull(defaults);
this.cpu = defaults.cpu;
this.instanceRoleArn = defaults.instanceRoleArn;
this.memory = defaults.memory;
}
@CustomType.Setter
public Builder cpu(@Nullable String cpu) {
this.cpu = cpu;
return this;
}
@CustomType.Setter
public Builder instanceRoleArn(@Nullable String instanceRoleArn) {
this.instanceRoleArn = instanceRoleArn;
return this;
}
@CustomType.Setter
public Builder memory(@Nullable String memory) {
this.memory = memory;
return this;
}
public ServiceInstanceConfiguration build() {
final var _resultValue = new ServiceInstanceConfiguration();
_resultValue.cpu = cpu;
_resultValue.instanceRoleArn = instanceRoleArn;
_resultValue.memory = memory;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy