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

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

// *** 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.aws.apprunner.inputs.ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs Empty = new ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs();

    /**
     * Basic configuration for building and running the App Runner service. Use this parameter to quickly launch an App Runner service without providing an apprunner.yaml file in the source code repository (or ignoring the file if it exists). See Code Configuration Values below for more details.
     * 
     */
    @Import(name="codeConfigurationValues")
    private @Nullable Output codeConfigurationValues;

    /**
     * @return Basic configuration for building and running the App Runner service. Use this parameter to quickly launch an App Runner service without providing an apprunner.yaml file in the source code repository (or ignoring the file if it exists). See Code Configuration Values below for more details.
     * 
     */
    public Optional> codeConfigurationValues() {
        return Optional.ofNullable(this.codeConfigurationValues);
    }

    /**
     * Source of the App Runner configuration. Valid values: `REPOSITORY`, `API`. Values are interpreted as follows:
     * * `REPOSITORY` - App Runner reads configuration values from the apprunner.yaml file in the
     *   source code repository and ignores the CodeConfigurationValues parameter.
     * * `API` - App Runner uses configuration values provided in the CodeConfigurationValues
     *   parameter and ignores the apprunner.yaml file in the source code repository.
     * 
     */
    @Import(name="configurationSource", required=true)
    private Output configurationSource;

    /**
     * @return Source of the App Runner configuration. Valid values: `REPOSITORY`, `API`. Values are interpreted as follows:
     * * `REPOSITORY` - App Runner reads configuration values from the apprunner.yaml file in the
     *   source code repository and ignores the CodeConfigurationValues parameter.
     * * `API` - App Runner uses configuration values provided in the CodeConfigurationValues
     *   parameter and ignores the apprunner.yaml file in the source code repository.
     * 
     */
    public Output configurationSource() {
        return this.configurationSource;
    }

    private ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs() {}

    private ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs(ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs $) {
        this.codeConfigurationValues = $.codeConfigurationValues;
        this.configurationSource = $.configurationSource;
    }

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

    public static final class Builder {
        private ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs $;

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

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

        /**
         * @param codeConfigurationValues Basic configuration for building and running the App Runner service. Use this parameter to quickly launch an App Runner service without providing an apprunner.yaml file in the source code repository (or ignoring the file if it exists). See Code Configuration Values below for more details.
         * 
         * @return builder
         * 
         */
        public Builder codeConfigurationValues(@Nullable Output codeConfigurationValues) {
            $.codeConfigurationValues = codeConfigurationValues;
            return this;
        }

        /**
         * @param codeConfigurationValues Basic configuration for building and running the App Runner service. Use this parameter to quickly launch an App Runner service without providing an apprunner.yaml file in the source code repository (or ignoring the file if it exists). See Code Configuration Values below for more details.
         * 
         * @return builder
         * 
         */
        public Builder codeConfigurationValues(ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValuesArgs codeConfigurationValues) {
            return codeConfigurationValues(Output.of(codeConfigurationValues));
        }

        /**
         * @param configurationSource Source of the App Runner configuration. Valid values: `REPOSITORY`, `API`. Values are interpreted as follows:
         * * `REPOSITORY` - App Runner reads configuration values from the apprunner.yaml file in the
         *   source code repository and ignores the CodeConfigurationValues parameter.
         * * `API` - App Runner uses configuration values provided in the CodeConfigurationValues
         *   parameter and ignores the apprunner.yaml file in the source code repository.
         * 
         * @return builder
         * 
         */
        public Builder configurationSource(Output configurationSource) {
            $.configurationSource = configurationSource;
            return this;
        }

        /**
         * @param configurationSource Source of the App Runner configuration. Valid values: `REPOSITORY`, `API`. Values are interpreted as follows:
         * * `REPOSITORY` - App Runner reads configuration values from the apprunner.yaml file in the
         *   source code repository and ignores the CodeConfigurationValues parameter.
         * * `API` - App Runner uses configuration values provided in the CodeConfigurationValues
         *   parameter and ignores the apprunner.yaml file in the source code repository.
         * 
         * @return builder
         * 
         */
        public Builder configurationSource(String configurationSource) {
            return configurationSource(Output.of(configurationSource));
        }

        public ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs build() {
            if ($.configurationSource == null) {
                throw new MissingRequiredPropertyException("ServiceSourceConfigurationCodeRepositoryCodeConfigurationArgs", "configurationSource");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy