com.pulumi.aws.cloudfront.inputs.DistributionDefaultCacheBehaviorFunctionAssociationArgs 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.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.Objects;
public final class DistributionDefaultCacheBehaviorFunctionAssociationArgs extends com.pulumi.resources.ResourceArgs {
public static final DistributionDefaultCacheBehaviorFunctionAssociationArgs Empty = new DistributionDefaultCacheBehaviorFunctionAssociationArgs();
/**
* Specific event to trigger this function. Valid values: `viewer-request` or `viewer-response`.
*
*/
@Import(name="eventType", required=true)
private Output eventType;
/**
* @return Specific event to trigger this function. Valid values: `viewer-request` or `viewer-response`.
*
*/
public Output eventType() {
return this.eventType;
}
/**
* ARN of the CloudFront function.
*
*/
@Import(name="functionArn", required=true)
private Output functionArn;
/**
* @return ARN of the CloudFront function.
*
*/
public Output functionArn() {
return this.functionArn;
}
private DistributionDefaultCacheBehaviorFunctionAssociationArgs() {}
private DistributionDefaultCacheBehaviorFunctionAssociationArgs(DistributionDefaultCacheBehaviorFunctionAssociationArgs $) {
this.eventType = $.eventType;
this.functionArn = $.functionArn;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DistributionDefaultCacheBehaviorFunctionAssociationArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private DistributionDefaultCacheBehaviorFunctionAssociationArgs $;
public Builder() {
$ = new DistributionDefaultCacheBehaviorFunctionAssociationArgs();
}
public Builder(DistributionDefaultCacheBehaviorFunctionAssociationArgs defaults) {
$ = new DistributionDefaultCacheBehaviorFunctionAssociationArgs(Objects.requireNonNull(defaults));
}
/**
* @param eventType Specific event to trigger this function. Valid values: `viewer-request` or `viewer-response`.
*
* @return builder
*
*/
public Builder eventType(Output eventType) {
$.eventType = eventType;
return this;
}
/**
* @param eventType Specific event to trigger this function. Valid values: `viewer-request` or `viewer-response`.
*
* @return builder
*
*/
public Builder eventType(String eventType) {
return eventType(Output.of(eventType));
}
/**
* @param functionArn ARN of the CloudFront function.
*
* @return builder
*
*/
public Builder functionArn(Output functionArn) {
$.functionArn = functionArn;
return this;
}
/**
* @param functionArn ARN of the CloudFront function.
*
* @return builder
*
*/
public Builder functionArn(String functionArn) {
return functionArn(Output.of(functionArn));
}
public DistributionDefaultCacheBehaviorFunctionAssociationArgs build() {
if ($.eventType == null) {
throw new MissingRequiredPropertyException("DistributionDefaultCacheBehaviorFunctionAssociationArgs", "eventType");
}
if ($.functionArn == null) {
throw new MissingRequiredPropertyException("DistributionDefaultCacheBehaviorFunctionAssociationArgs", "functionArn");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy