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

com.pulumi.azurenative.awsconnector.inputs.FunctionAssociationArgs 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.azurenative.awsconnector.inputs;

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


/**
 * Definition of FunctionAssociation
 * 
 */
public final class FunctionAssociationArgs extends com.pulumi.resources.ResourceArgs {

    public static final FunctionAssociationArgs Empty = new FunctionAssociationArgs();

    /**
     * The event type of the function, either ``viewer-request`` or ``viewer-response``. You cannot use origin-facing event types (``origin-request`` and ``origin-response``) with a CloudFront function.
     * 
     */
    @Import(name="eventType")
    private @Nullable Output eventType;

    /**
     * @return The event type of the function, either ``viewer-request`` or ``viewer-response``. You cannot use origin-facing event types (``origin-request`` and ``origin-response``) with a CloudFront function.
     * 
     */
    public Optional> eventType() {
        return Optional.ofNullable(this.eventType);
    }

    /**
     * The Amazon Resource Name (ARN) of the function.
     * 
     */
    @Import(name="functionARN")
    private @Nullable Output functionARN;

    /**
     * @return The Amazon Resource Name (ARN) of the function.
     * 
     */
    public Optional> functionARN() {
        return Optional.ofNullable(this.functionARN);
    }

    private FunctionAssociationArgs() {}

    private FunctionAssociationArgs(FunctionAssociationArgs $) {
        this.eventType = $.eventType;
        this.functionARN = $.functionARN;
    }

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

    public static final class Builder {
        private FunctionAssociationArgs $;

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

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

        /**
         * @param eventType The event type of the function, either ``viewer-request`` or ``viewer-response``. You cannot use origin-facing event types (``origin-request`` and ``origin-response``) with a CloudFront function.
         * 
         * @return builder
         * 
         */
        public Builder eventType(@Nullable Output eventType) {
            $.eventType = eventType;
            return this;
        }

        /**
         * @param eventType The event type of the function, either ``viewer-request`` or ``viewer-response``. You cannot use origin-facing event types (``origin-request`` and ``origin-response``) with a CloudFront function.
         * 
         * @return builder
         * 
         */
        public Builder eventType(String eventType) {
            return eventType(Output.of(eventType));
        }

        /**
         * @param functionARN The Amazon Resource Name (ARN) of the function.
         * 
         * @return builder
         * 
         */
        public Builder functionARN(@Nullable Output functionARN) {
            $.functionARN = functionARN;
            return this;
        }

        /**
         * @param functionARN The Amazon Resource Name (ARN) of the function.
         * 
         * @return builder
         * 
         */
        public Builder functionARN(String functionARN) {
            return functionARN(Output.of(functionARN));
        }

        public FunctionAssociationArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy