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

com.pulumi.aws.apigateway.outputs.DeploymentCanarySettings 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.apigateway.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DeploymentCanarySettings {
    /**
     * @return Percentage (0.0-100.0) of traffic routed to the canary deployment.
     * 
     */
    private @Nullable Double percentTraffic;
    /**
     * @return Stage variable overrides used for the canary release deployment. They can override existing stage variables or add new stage variables for the canary release deployment. These stage variables are represented as a string-to-string map between stage variable names and their values.
     * 
     */
    private @Nullable Map stageVariableOverrides;
    /**
     * @return Boolean flag to indicate whether the canary release deployment uses the stage cache or not.
     * 
     */
    private @Nullable Boolean useStageCache;

    private DeploymentCanarySettings() {}
    /**
     * @return Percentage (0.0-100.0) of traffic routed to the canary deployment.
     * 
     */
    public Optional percentTraffic() {
        return Optional.ofNullable(this.percentTraffic);
    }
    /**
     * @return Stage variable overrides used for the canary release deployment. They can override existing stage variables or add new stage variables for the canary release deployment. These stage variables are represented as a string-to-string map between stage variable names and their values.
     * 
     */
    public Map stageVariableOverrides() {
        return this.stageVariableOverrides == null ? Map.of() : this.stageVariableOverrides;
    }
    /**
     * @return Boolean flag to indicate whether the canary release deployment uses the stage cache or not.
     * 
     */
    public Optional useStageCache() {
        return Optional.ofNullable(this.useStageCache);
    }

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

    public static Builder builder(DeploymentCanarySettings defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Double percentTraffic;
        private @Nullable Map stageVariableOverrides;
        private @Nullable Boolean useStageCache;
        public Builder() {}
        public Builder(DeploymentCanarySettings defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.percentTraffic = defaults.percentTraffic;
    	      this.stageVariableOverrides = defaults.stageVariableOverrides;
    	      this.useStageCache = defaults.useStageCache;
        }

        @CustomType.Setter
        public Builder percentTraffic(@Nullable Double percentTraffic) {

            this.percentTraffic = percentTraffic;
            return this;
        }
        @CustomType.Setter
        public Builder stageVariableOverrides(@Nullable Map stageVariableOverrides) {

            this.stageVariableOverrides = stageVariableOverrides;
            return this;
        }
        @CustomType.Setter
        public Builder useStageCache(@Nullable Boolean useStageCache) {

            this.useStageCache = useStageCache;
            return this;
        }
        public DeploymentCanarySettings build() {
            final var _resultValue = new DeploymentCanarySettings();
            _resultValue.percentTraffic = percentTraffic;
            _resultValue.stageVariableOverrides = stageVariableOverrides;
            _resultValue.useStageCache = useStageCache;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy