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

com.pulumi.aws.apprunner.inputs.ServiceInstanceConfigurationArgs Maven / Gradle / Ivy

Go to download

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

The 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.apprunner.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 ServiceInstanceConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final ServiceInstanceConfigurationArgs Empty = new ServiceInstanceConfigurationArgs();

    /**
     * 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`.
     * 
     */
    @Import(name="cpu")
    private @Nullable Output cpu;

    /**
     * @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);
    }

    /**
     * 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.
     * 
     */
    @Import(name="instanceRoleArn")
    private @Nullable Output instanceRoleArn;

    /**
     * @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);
    }

    /**
     * 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`.
     * 
     */
    @Import(name="memory")
    private @Nullable Output memory;

    /**
     * @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);
    }

    private ServiceInstanceConfigurationArgs() {}

    private ServiceInstanceConfigurationArgs(ServiceInstanceConfigurationArgs $) {
        this.cpu = $.cpu;
        this.instanceRoleArn = $.instanceRoleArn;
        this.memory = $.memory;
    }

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

    public static final class Builder {
        private ServiceInstanceConfigurationArgs $;

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

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

        /**
         * @param cpu 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`.
         * 
         * @return builder
         * 
         */
        public Builder cpu(@Nullable Output cpu) {
            $.cpu = cpu;
            return this;
        }

        /**
         * @param cpu 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`.
         * 
         * @return builder
         * 
         */
        public Builder cpu(String cpu) {
            return cpu(Output.of(cpu));
        }

        /**
         * @param instanceRoleArn 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.
         * 
         * @return builder
         * 
         */
        public Builder instanceRoleArn(@Nullable Output instanceRoleArn) {
            $.instanceRoleArn = instanceRoleArn;
            return this;
        }

        /**
         * @param instanceRoleArn 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.
         * 
         * @return builder
         * 
         */
        public Builder instanceRoleArn(String instanceRoleArn) {
            return instanceRoleArn(Output.of(instanceRoleArn));
        }

        /**
         * @param memory 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`.
         * 
         * @return builder
         * 
         */
        public Builder memory(@Nullable Output memory) {
            $.memory = memory;
            return this;
        }

        /**
         * @param memory 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`.
         * 
         * @return builder
         * 
         */
        public Builder memory(String memory) {
            return memory(Output.of(memory));
        }

        public ServiceInstanceConfigurationArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy