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

com.pulumi.aws.cloudfront.outputs.DistributionOrderedCacheBehaviorFunctionAssociation 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.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class DistributionOrderedCacheBehaviorFunctionAssociation {
    /**
     * @return Specific event to trigger this function. Valid values: `viewer-request` or `viewer-response`.
     * 
     */
    private String eventType;
    /**
     * @return ARN of the CloudFront function.
     * 
     */
    private String functionArn;

    private DistributionOrderedCacheBehaviorFunctionAssociation() {}
    /**
     * @return Specific event to trigger this function. Valid values: `viewer-request` or `viewer-response`.
     * 
     */
    public String eventType() {
        return this.eventType;
    }
    /**
     * @return ARN of the CloudFront function.
     * 
     */
    public String functionArn() {
        return this.functionArn;
    }

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

    public static Builder builder(DistributionOrderedCacheBehaviorFunctionAssociation defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String eventType;
        private String functionArn;
        public Builder() {}
        public Builder(DistributionOrderedCacheBehaviorFunctionAssociation defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.eventType = defaults.eventType;
    	      this.functionArn = defaults.functionArn;
        }

        @CustomType.Setter
        public Builder eventType(String eventType) {
            if (eventType == null) {
              throw new MissingRequiredPropertyException("DistributionOrderedCacheBehaviorFunctionAssociation", "eventType");
            }
            this.eventType = eventType;
            return this;
        }
        @CustomType.Setter
        public Builder functionArn(String functionArn) {
            if (functionArn == null) {
              throw new MissingRequiredPropertyException("DistributionOrderedCacheBehaviorFunctionAssociation", "functionArn");
            }
            this.functionArn = functionArn;
            return this;
        }
        public DistributionOrderedCacheBehaviorFunctionAssociation build() {
            final var _resultValue = new DistributionOrderedCacheBehaviorFunctionAssociation();
            _resultValue.eventType = eventType;
            _resultValue.functionArn = functionArn;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy