com.pulumi.aws.apprunner.outputs.ServiceSourceConfigurationCodeRepositoryCodeConfiguration 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.
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.outputs;
import com.pulumi.aws.apprunner.outputs.ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ServiceSourceConfigurationCodeRepositoryCodeConfiguration {
/**
* @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.
*
*/
private @Nullable ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues codeConfigurationValues;
/**
* @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.
*
*/
private String configurationSource;
private ServiceSourceConfigurationCodeRepositoryCodeConfiguration() {}
/**
* @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);
}
/**
* @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 String configurationSource() {
return this.configurationSource;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ServiceSourceConfigurationCodeRepositoryCodeConfiguration defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues codeConfigurationValues;
private String configurationSource;
public Builder() {}
public Builder(ServiceSourceConfigurationCodeRepositoryCodeConfiguration defaults) {
Objects.requireNonNull(defaults);
this.codeConfigurationValues = defaults.codeConfigurationValues;
this.configurationSource = defaults.configurationSource;
}
@CustomType.Setter
public Builder codeConfigurationValues(@Nullable ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues codeConfigurationValues) {
this.codeConfigurationValues = codeConfigurationValues;
return this;
}
@CustomType.Setter
public Builder configurationSource(String configurationSource) {
if (configurationSource == null) {
throw new MissingRequiredPropertyException("ServiceSourceConfigurationCodeRepositoryCodeConfiguration", "configurationSource");
}
this.configurationSource = configurationSource;
return this;
}
public ServiceSourceConfigurationCodeRepositoryCodeConfiguration build() {
final var _resultValue = new ServiceSourceConfigurationCodeRepositoryCodeConfiguration();
_resultValue.codeConfigurationValues = codeConfigurationValues;
_resultValue.configurationSource = configurationSource;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy