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

com.pulumi.aws.elb.SslNegotiationPolicyArgs 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.elb;

import com.pulumi.aws.elb.inputs.SslNegotiationPolicyAttributeArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SslNegotiationPolicyArgs Empty = new SslNegotiationPolicyArgs();

    /**
     * An SSL Negotiation policy attribute. Each has two properties:
     * 
     */
    @Import(name="attributes")
    private @Nullable Output> attributes;

    /**
     * @return An SSL Negotiation policy attribute. Each has two properties:
     * 
     */
    public Optional>> attributes() {
        return Optional.ofNullable(this.attributes);
    }

    /**
     * The load balancer port to which the policy
     * should be applied. This must be an active listener on the load
     * balancer.
     * 
     */
    @Import(name="lbPort", required=true)
    private Output lbPort;

    /**
     * @return The load balancer port to which the policy
     * should be applied. This must be an active listener on the load
     * balancer.
     * 
     */
    public Output lbPort() {
        return this.lbPort;
    }

    /**
     * The load balancer to which the policy
     * should be attached.
     * 
     */
    @Import(name="loadBalancer", required=true)
    private Output loadBalancer;

    /**
     * @return The load balancer to which the policy
     * should be attached.
     * 
     */
    public Output loadBalancer() {
        return this.loadBalancer;
    }

    /**
     * The name of the SSL negotiation policy.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the SSL negotiation policy.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Map of arbitrary keys and values that, when changed, will trigger a redeployment.
     * 
     * To set your attributes, please see the [AWS Elastic Load Balancing Developer Guide](http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-security-policy-table.html) for a listing of the supported SSL protocols, SSL options, and SSL ciphers.
     * 
     * > **NOTE:** The AWS documentation references Server Order Preference, which the AWS Elastic Load Balancing API refers to as `Server-Defined-Cipher-Order`. If you wish to set Server Order Preference, use this value instead.
     * 
     */
    @Import(name="triggers")
    private @Nullable Output> triggers;

    /**
     * @return Map of arbitrary keys and values that, when changed, will trigger a redeployment.
     * 
     * To set your attributes, please see the [AWS Elastic Load Balancing Developer Guide](http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-security-policy-table.html) for a listing of the supported SSL protocols, SSL options, and SSL ciphers.
     * 
     * > **NOTE:** The AWS documentation references Server Order Preference, which the AWS Elastic Load Balancing API refers to as `Server-Defined-Cipher-Order`. If you wish to set Server Order Preference, use this value instead.
     * 
     */
    public Optional>> triggers() {
        return Optional.ofNullable(this.triggers);
    }

    private SslNegotiationPolicyArgs() {}

    private SslNegotiationPolicyArgs(SslNegotiationPolicyArgs $) {
        this.attributes = $.attributes;
        this.lbPort = $.lbPort;
        this.loadBalancer = $.loadBalancer;
        this.name = $.name;
        this.triggers = $.triggers;
    }

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

    public static final class Builder {
        private SslNegotiationPolicyArgs $;

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

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

        /**
         * @param attributes An SSL Negotiation policy attribute. Each has two properties:
         * 
         * @return builder
         * 
         */
        public Builder attributes(@Nullable Output> attributes) {
            $.attributes = attributes;
            return this;
        }

        /**
         * @param attributes An SSL Negotiation policy attribute. Each has two properties:
         * 
         * @return builder
         * 
         */
        public Builder attributes(List attributes) {
            return attributes(Output.of(attributes));
        }

        /**
         * @param attributes An SSL Negotiation policy attribute. Each has two properties:
         * 
         * @return builder
         * 
         */
        public Builder attributes(SslNegotiationPolicyAttributeArgs... attributes) {
            return attributes(List.of(attributes));
        }

        /**
         * @param lbPort The load balancer port to which the policy
         * should be applied. This must be an active listener on the load
         * balancer.
         * 
         * @return builder
         * 
         */
        public Builder lbPort(Output lbPort) {
            $.lbPort = lbPort;
            return this;
        }

        /**
         * @param lbPort The load balancer port to which the policy
         * should be applied. This must be an active listener on the load
         * balancer.
         * 
         * @return builder
         * 
         */
        public Builder lbPort(Integer lbPort) {
            return lbPort(Output.of(lbPort));
        }

        /**
         * @param loadBalancer The load balancer to which the policy
         * should be attached.
         * 
         * @return builder
         * 
         */
        public Builder loadBalancer(Output loadBalancer) {
            $.loadBalancer = loadBalancer;
            return this;
        }

        /**
         * @param loadBalancer The load balancer to which the policy
         * should be attached.
         * 
         * @return builder
         * 
         */
        public Builder loadBalancer(String loadBalancer) {
            return loadBalancer(Output.of(loadBalancer));
        }

        /**
         * @param name The name of the SSL negotiation policy.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the SSL negotiation policy.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param triggers Map of arbitrary keys and values that, when changed, will trigger a redeployment.
         * 
         * To set your attributes, please see the [AWS Elastic Load Balancing Developer Guide](http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-security-policy-table.html) for a listing of the supported SSL protocols, SSL options, and SSL ciphers.
         * 
         * > **NOTE:** The AWS documentation references Server Order Preference, which the AWS Elastic Load Balancing API refers to as `Server-Defined-Cipher-Order`. If you wish to set Server Order Preference, use this value instead.
         * 
         * @return builder
         * 
         */
        public Builder triggers(@Nullable Output> triggers) {
            $.triggers = triggers;
            return this;
        }

        /**
         * @param triggers Map of arbitrary keys and values that, when changed, will trigger a redeployment.
         * 
         * To set your attributes, please see the [AWS Elastic Load Balancing Developer Guide](http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-security-policy-table.html) for a listing of the supported SSL protocols, SSL options, and SSL ciphers.
         * 
         * > **NOTE:** The AWS documentation references Server Order Preference, which the AWS Elastic Load Balancing API refers to as `Server-Defined-Cipher-Order`. If you wish to set Server Order Preference, use this value instead.
         * 
         * @return builder
         * 
         */
        public Builder triggers(Map triggers) {
            return triggers(Output.of(triggers));
        }

        public SslNegotiationPolicyArgs build() {
            if ($.lbPort == null) {
                throw new MissingRequiredPropertyException("SslNegotiationPolicyArgs", "lbPort");
            }
            if ($.loadBalancer == null) {
                throw new MissingRequiredPropertyException("SslNegotiationPolicyArgs", "loadBalancer");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy