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

com.pulumi.aws.cloudfront.inputs.DistributionDefaultCacheBehaviorForwardedValuesCookiesArgs 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.cloudfront.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final DistributionDefaultCacheBehaviorForwardedValuesCookiesArgs Empty = new DistributionDefaultCacheBehaviorForwardedValuesCookiesArgs();

    /**
     * Whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify `all`, `none` or `whitelist`. If `whitelist`, you must include the subsequent `whitelisted_names`.
     * 
     */
    @Import(name="forward", required=true)
    private Output forward;

    /**
     * @return Whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify `all`, `none` or `whitelist`. If `whitelist`, you must include the subsequent `whitelisted_names`.
     * 
     */
    public Output forward() {
        return this.forward;
    }

    /**
     * If you have specified `whitelist` to `forward`, the whitelisted cookies that you want CloudFront to forward to your origin.
     * 
     */
    @Import(name="whitelistedNames")
    private @Nullable Output> whitelistedNames;

    /**
     * @return If you have specified `whitelist` to `forward`, the whitelisted cookies that you want CloudFront to forward to your origin.
     * 
     */
    public Optional>> whitelistedNames() {
        return Optional.ofNullable(this.whitelistedNames);
    }

    private DistributionDefaultCacheBehaviorForwardedValuesCookiesArgs() {}

    private DistributionDefaultCacheBehaviorForwardedValuesCookiesArgs(DistributionDefaultCacheBehaviorForwardedValuesCookiesArgs $) {
        this.forward = $.forward;
        this.whitelistedNames = $.whitelistedNames;
    }

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

    public static final class Builder {
        private DistributionDefaultCacheBehaviorForwardedValuesCookiesArgs $;

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

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

        /**
         * @param forward Whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify `all`, `none` or `whitelist`. If `whitelist`, you must include the subsequent `whitelisted_names`.
         * 
         * @return builder
         * 
         */
        public Builder forward(Output forward) {
            $.forward = forward;
            return this;
        }

        /**
         * @param forward Whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior. You can specify `all`, `none` or `whitelist`. If `whitelist`, you must include the subsequent `whitelisted_names`.
         * 
         * @return builder
         * 
         */
        public Builder forward(String forward) {
            return forward(Output.of(forward));
        }

        /**
         * @param whitelistedNames If you have specified `whitelist` to `forward`, the whitelisted cookies that you want CloudFront to forward to your origin.
         * 
         * @return builder
         * 
         */
        public Builder whitelistedNames(@Nullable Output> whitelistedNames) {
            $.whitelistedNames = whitelistedNames;
            return this;
        }

        /**
         * @param whitelistedNames If you have specified `whitelist` to `forward`, the whitelisted cookies that you want CloudFront to forward to your origin.
         * 
         * @return builder
         * 
         */
        public Builder whitelistedNames(List whitelistedNames) {
            return whitelistedNames(Output.of(whitelistedNames));
        }

        /**
         * @param whitelistedNames If you have specified `whitelist` to `forward`, the whitelisted cookies that you want CloudFront to forward to your origin.
         * 
         * @return builder
         * 
         */
        public Builder whitelistedNames(String... whitelistedNames) {
            return whitelistedNames(List.of(whitelistedNames));
        }

        public DistributionDefaultCacheBehaviorForwardedValuesCookiesArgs build() {
            if ($.forward == null) {
                throw new MissingRequiredPropertyException("DistributionDefaultCacheBehaviorForwardedValuesCookiesArgs", "forward");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy