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

com.pulumi.aws.sagemaker.inputs.EndpointDeploymentConfigArgs Maven / Gradle / Ivy

Go to download

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

There is a newer version: 6.60.0-alpha.1731982519
Show 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.sagemaker.inputs;

import com.pulumi.aws.sagemaker.inputs.EndpointDeploymentConfigAutoRollbackConfigurationArgs;
import com.pulumi.aws.sagemaker.inputs.EndpointDeploymentConfigBlueGreenUpdatePolicyArgs;
import com.pulumi.aws.sagemaker.inputs.EndpointDeploymentConfigRollingUpdatePolicyArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final EndpointDeploymentConfigArgs Empty = new EndpointDeploymentConfigArgs();

    /**
     * Automatic rollback configuration for handling endpoint deployment failures and recovery. See Auto Rollback Configuration.
     * 
     */
    @Import(name="autoRollbackConfiguration")
    private @Nullable Output autoRollbackConfiguration;

    /**
     * @return Automatic rollback configuration for handling endpoint deployment failures and recovery. See Auto Rollback Configuration.
     * 
     */
    public Optional> autoRollbackConfiguration() {
        return Optional.ofNullable(this.autoRollbackConfiguration);
    }

    /**
     * Update policy for a blue/green deployment. If this update policy is specified, SageMaker creates a new fleet during the deployment while maintaining the old fleet. SageMaker flips traffic to the new fleet according to the specified traffic routing configuration. Only one update policy should be used in the deployment configuration. If no update policy is specified, SageMaker uses a blue/green deployment strategy with all at once traffic shifting by default. See Blue Green Update Config.
     * 
     */
    @Import(name="blueGreenUpdatePolicy")
    private @Nullable Output blueGreenUpdatePolicy;

    /**
     * @return Update policy for a blue/green deployment. If this update policy is specified, SageMaker creates a new fleet during the deployment while maintaining the old fleet. SageMaker flips traffic to the new fleet according to the specified traffic routing configuration. Only one update policy should be used in the deployment configuration. If no update policy is specified, SageMaker uses a blue/green deployment strategy with all at once traffic shifting by default. See Blue Green Update Config.
     * 
     */
    public Optional> blueGreenUpdatePolicy() {
        return Optional.ofNullable(this.blueGreenUpdatePolicy);
    }

    /**
     * Specifies a rolling deployment strategy for updating a SageMaker endpoint. See Rolling Update Policy.
     * 
     */
    @Import(name="rollingUpdatePolicy")
    private @Nullable Output rollingUpdatePolicy;

    /**
     * @return Specifies a rolling deployment strategy for updating a SageMaker endpoint. See Rolling Update Policy.
     * 
     */
    public Optional> rollingUpdatePolicy() {
        return Optional.ofNullable(this.rollingUpdatePolicy);
    }

    private EndpointDeploymentConfigArgs() {}

    private EndpointDeploymentConfigArgs(EndpointDeploymentConfigArgs $) {
        this.autoRollbackConfiguration = $.autoRollbackConfiguration;
        this.blueGreenUpdatePolicy = $.blueGreenUpdatePolicy;
        this.rollingUpdatePolicy = $.rollingUpdatePolicy;
    }

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

    public static final class Builder {
        private EndpointDeploymentConfigArgs $;

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

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

        /**
         * @param autoRollbackConfiguration Automatic rollback configuration for handling endpoint deployment failures and recovery. See Auto Rollback Configuration.
         * 
         * @return builder
         * 
         */
        public Builder autoRollbackConfiguration(@Nullable Output autoRollbackConfiguration) {
            $.autoRollbackConfiguration = autoRollbackConfiguration;
            return this;
        }

        /**
         * @param autoRollbackConfiguration Automatic rollback configuration for handling endpoint deployment failures and recovery. See Auto Rollback Configuration.
         * 
         * @return builder
         * 
         */
        public Builder autoRollbackConfiguration(EndpointDeploymentConfigAutoRollbackConfigurationArgs autoRollbackConfiguration) {
            return autoRollbackConfiguration(Output.of(autoRollbackConfiguration));
        }

        /**
         * @param blueGreenUpdatePolicy Update policy for a blue/green deployment. If this update policy is specified, SageMaker creates a new fleet during the deployment while maintaining the old fleet. SageMaker flips traffic to the new fleet according to the specified traffic routing configuration. Only one update policy should be used in the deployment configuration. If no update policy is specified, SageMaker uses a blue/green deployment strategy with all at once traffic shifting by default. See Blue Green Update Config.
         * 
         * @return builder
         * 
         */
        public Builder blueGreenUpdatePolicy(@Nullable Output blueGreenUpdatePolicy) {
            $.blueGreenUpdatePolicy = blueGreenUpdatePolicy;
            return this;
        }

        /**
         * @param blueGreenUpdatePolicy Update policy for a blue/green deployment. If this update policy is specified, SageMaker creates a new fleet during the deployment while maintaining the old fleet. SageMaker flips traffic to the new fleet according to the specified traffic routing configuration. Only one update policy should be used in the deployment configuration. If no update policy is specified, SageMaker uses a blue/green deployment strategy with all at once traffic shifting by default. See Blue Green Update Config.
         * 
         * @return builder
         * 
         */
        public Builder blueGreenUpdatePolicy(EndpointDeploymentConfigBlueGreenUpdatePolicyArgs blueGreenUpdatePolicy) {
            return blueGreenUpdatePolicy(Output.of(blueGreenUpdatePolicy));
        }

        /**
         * @param rollingUpdatePolicy Specifies a rolling deployment strategy for updating a SageMaker endpoint. See Rolling Update Policy.
         * 
         * @return builder
         * 
         */
        public Builder rollingUpdatePolicy(@Nullable Output rollingUpdatePolicy) {
            $.rollingUpdatePolicy = rollingUpdatePolicy;
            return this;
        }

        /**
         * @param rollingUpdatePolicy Specifies a rolling deployment strategy for updating a SageMaker endpoint. See Rolling Update Policy.
         * 
         * @return builder
         * 
         */
        public Builder rollingUpdatePolicy(EndpointDeploymentConfigRollingUpdatePolicyArgs rollingUpdatePolicy) {
            return rollingUpdatePolicy(Output.of(rollingUpdatePolicy));
        }

        public EndpointDeploymentConfigArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy