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

com.pulumi.aws.apprunner.inputs.ServiceSourceConfigurationArgs 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.ServiceSourceConfigurationAuthenticationConfigurationArgs;
import com.pulumi.aws.apprunner.inputs.ServiceSourceConfigurationCodeRepositoryArgs;
import com.pulumi.aws.apprunner.inputs.ServiceSourceConfigurationImageRepositoryArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ServiceSourceConfigurationArgs Empty = new ServiceSourceConfigurationArgs();

    /**
     * Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details.
     * 
     */
    @Import(name="authenticationConfiguration")
    private @Nullable Output authenticationConfiguration;

    /**
     * @return Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details.
     * 
     */
    public Optional> authenticationConfiguration() {
        return Optional.ofNullable(this.authenticationConfiguration);
    }

    /**
     * Whether continuous integration from the source repository is enabled for the App Runner service. If set to `true`, each repository change (source code commit or new image version) starts a deployment. Defaults to `true`.
     * 
     */
    @Import(name="autoDeploymentsEnabled")
    private @Nullable Output autoDeploymentsEnabled;

    /**
     * @return Whether continuous integration from the source repository is enabled for the App Runner service. If set to `true`, each repository change (source code commit or new image version) starts a deployment. Defaults to `true`.
     * 
     */
    public Optional> autoDeploymentsEnabled() {
        return Optional.ofNullable(this.autoDeploymentsEnabled);
    }

    /**
     * Description of a source code repository. See Code Repository below for more details.
     * 
     */
    @Import(name="codeRepository")
    private @Nullable Output codeRepository;

    /**
     * @return Description of a source code repository. See Code Repository below for more details.
     * 
     */
    public Optional> codeRepository() {
        return Optional.ofNullable(this.codeRepository);
    }

    /**
     * Description of a source image repository. See Image Repository below for more details.
     * 
     */
    @Import(name="imageRepository")
    private @Nullable Output imageRepository;

    /**
     * @return Description of a source image repository. See Image Repository below for more details.
     * 
     */
    public Optional> imageRepository() {
        return Optional.ofNullable(this.imageRepository);
    }

    private ServiceSourceConfigurationArgs() {}

    private ServiceSourceConfigurationArgs(ServiceSourceConfigurationArgs $) {
        this.authenticationConfiguration = $.authenticationConfiguration;
        this.autoDeploymentsEnabled = $.autoDeploymentsEnabled;
        this.codeRepository = $.codeRepository;
        this.imageRepository = $.imageRepository;
    }

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

    public static final class Builder {
        private ServiceSourceConfigurationArgs $;

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

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

        /**
         * @param authenticationConfiguration Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details.
         * 
         * @return builder
         * 
         */
        public Builder authenticationConfiguration(@Nullable Output authenticationConfiguration) {
            $.authenticationConfiguration = authenticationConfiguration;
            return this;
        }

        /**
         * @param authenticationConfiguration Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details.
         * 
         * @return builder
         * 
         */
        public Builder authenticationConfiguration(ServiceSourceConfigurationAuthenticationConfigurationArgs authenticationConfiguration) {
            return authenticationConfiguration(Output.of(authenticationConfiguration));
        }

        /**
         * @param autoDeploymentsEnabled Whether continuous integration from the source repository is enabled for the App Runner service. If set to `true`, each repository change (source code commit or new image version) starts a deployment. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder autoDeploymentsEnabled(@Nullable Output autoDeploymentsEnabled) {
            $.autoDeploymentsEnabled = autoDeploymentsEnabled;
            return this;
        }

        /**
         * @param autoDeploymentsEnabled Whether continuous integration from the source repository is enabled for the App Runner service. If set to `true`, each repository change (source code commit or new image version) starts a deployment. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder autoDeploymentsEnabled(Boolean autoDeploymentsEnabled) {
            return autoDeploymentsEnabled(Output.of(autoDeploymentsEnabled));
        }

        /**
         * @param codeRepository Description of a source code repository. See Code Repository below for more details.
         * 
         * @return builder
         * 
         */
        public Builder codeRepository(@Nullable Output codeRepository) {
            $.codeRepository = codeRepository;
            return this;
        }

        /**
         * @param codeRepository Description of a source code repository. See Code Repository below for more details.
         * 
         * @return builder
         * 
         */
        public Builder codeRepository(ServiceSourceConfigurationCodeRepositoryArgs codeRepository) {
            return codeRepository(Output.of(codeRepository));
        }

        /**
         * @param imageRepository Description of a source image repository. See Image Repository below for more details.
         * 
         * @return builder
         * 
         */
        public Builder imageRepository(@Nullable Output imageRepository) {
            $.imageRepository = imageRepository;
            return this;
        }

        /**
         * @param imageRepository Description of a source image repository. See Image Repository below for more details.
         * 
         * @return builder
         * 
         */
        public Builder imageRepository(ServiceSourceConfigurationImageRepositoryArgs imageRepository) {
            return imageRepository(Output.of(imageRepository));
        }

        public ServiceSourceConfigurationArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy