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

com.pulumi.aws.cloudfront.inputs.FunctionState 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.72.0
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 java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final FunctionState Empty = new FunctionState();

    /**
     * Amazon Resource Name (ARN) identifying your CloudFront Function.
     * 
     */
    @Import(name="arn")
    private @Nullable Output arn;

    /**
     * @return Amazon Resource Name (ARN) identifying your CloudFront Function.
     * 
     */
    public Optional> arn() {
        return Optional.ofNullable(this.arn);
    }

    /**
     * Source code of the function
     * 
     */
    @Import(name="code")
    private @Nullable Output code;

    /**
     * @return Source code of the function
     * 
     */
    public Optional> code() {
        return Optional.ofNullable(this.code);
    }

    /**
     * Comment.
     * 
     */
    @Import(name="comment")
    private @Nullable Output comment;

    /**
     * @return Comment.
     * 
     */
    public Optional> comment() {
        return Optional.ofNullable(this.comment);
    }

    /**
     * ETag hash of the function. This is the value for the `DEVELOPMENT` stage of the function.
     * 
     */
    @Import(name="etag")
    private @Nullable Output etag;

    /**
     * @return ETag hash of the function. This is the value for the `DEVELOPMENT` stage of the function.
     * 
     */
    public Optional> etag() {
        return Optional.ofNullable(this.etag);
    }

    /**
     * List of `aws.cloudfront.KeyValueStore` ARNs to be associated to the function. AWS limits associations to on key value store per function.
     * 
     */
    @Import(name="keyValueStoreAssociations")
    private @Nullable Output> keyValueStoreAssociations;

    /**
     * @return List of `aws.cloudfront.KeyValueStore` ARNs to be associated to the function. AWS limits associations to on key value store per function.
     * 
     */
    public Optional>> keyValueStoreAssociations() {
        return Optional.ofNullable(this.keyValueStoreAssociations);
    }

    /**
     * ETag hash of any `LIVE` stage of the function.
     * 
     */
    @Import(name="liveStageEtag")
    private @Nullable Output liveStageEtag;

    /**
     * @return ETag hash of any `LIVE` stage of the function.
     * 
     */
    public Optional> liveStageEtag() {
        return Optional.ofNullable(this.liveStageEtag);
    }

    /**
     * Unique name for your CloudFront Function.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Unique name for your CloudFront Function.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Whether to publish creation/change as Live CloudFront Function Version. Defaults to `true`.
     * 
     */
    @Import(name="publish")
    private @Nullable Output publish;

    /**
     * @return Whether to publish creation/change as Live CloudFront Function Version. Defaults to `true`.
     * 
     */
    public Optional> publish() {
        return Optional.ofNullable(this.publish);
    }

    /**
     * Identifier of the function's runtime. Valid values are `cloudfront-js-1.0` and `cloudfront-js-2.0`.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="runtime")
    private @Nullable Output runtime;

    /**
     * @return Identifier of the function's runtime. Valid values are `cloudfront-js-1.0` and `cloudfront-js-2.0`.
     * 
     * The following arguments are optional:
     * 
     */
    public Optional> runtime() {
        return Optional.ofNullable(this.runtime);
    }

    /**
     * Status of the function. Can be `UNPUBLISHED`, `UNASSOCIATED` or `ASSOCIATED`.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return Status of the function. Can be `UNPUBLISHED`, `UNASSOCIATED` or `ASSOCIATED`.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    private FunctionState() {}

    private FunctionState(FunctionState $) {
        this.arn = $.arn;
        this.code = $.code;
        this.comment = $.comment;
        this.etag = $.etag;
        this.keyValueStoreAssociations = $.keyValueStoreAssociations;
        this.liveStageEtag = $.liveStageEtag;
        this.name = $.name;
        this.publish = $.publish;
        this.runtime = $.runtime;
        this.status = $.status;
    }

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

    public static final class Builder {
        private FunctionState $;

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

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

        /**
         * @param arn Amazon Resource Name (ARN) identifying your CloudFront Function.
         * 
         * @return builder
         * 
         */
        public Builder arn(@Nullable Output arn) {
            $.arn = arn;
            return this;
        }

        /**
         * @param arn Amazon Resource Name (ARN) identifying your CloudFront Function.
         * 
         * @return builder
         * 
         */
        public Builder arn(String arn) {
            return arn(Output.of(arn));
        }

        /**
         * @param code Source code of the function
         * 
         * @return builder
         * 
         */
        public Builder code(@Nullable Output code) {
            $.code = code;
            return this;
        }

        /**
         * @param code Source code of the function
         * 
         * @return builder
         * 
         */
        public Builder code(String code) {
            return code(Output.of(code));
        }

        /**
         * @param comment Comment.
         * 
         * @return builder
         * 
         */
        public Builder comment(@Nullable Output comment) {
            $.comment = comment;
            return this;
        }

        /**
         * @param comment Comment.
         * 
         * @return builder
         * 
         */
        public Builder comment(String comment) {
            return comment(Output.of(comment));
        }

        /**
         * @param etag ETag hash of the function. This is the value for the `DEVELOPMENT` stage of the function.
         * 
         * @return builder
         * 
         */
        public Builder etag(@Nullable Output etag) {
            $.etag = etag;
            return this;
        }

        /**
         * @param etag ETag hash of the function. This is the value for the `DEVELOPMENT` stage of the function.
         * 
         * @return builder
         * 
         */
        public Builder etag(String etag) {
            return etag(Output.of(etag));
        }

        /**
         * @param keyValueStoreAssociations List of `aws.cloudfront.KeyValueStore` ARNs to be associated to the function. AWS limits associations to on key value store per function.
         * 
         * @return builder
         * 
         */
        public Builder keyValueStoreAssociations(@Nullable Output> keyValueStoreAssociations) {
            $.keyValueStoreAssociations = keyValueStoreAssociations;
            return this;
        }

        /**
         * @param keyValueStoreAssociations List of `aws.cloudfront.KeyValueStore` ARNs to be associated to the function. AWS limits associations to on key value store per function.
         * 
         * @return builder
         * 
         */
        public Builder keyValueStoreAssociations(List keyValueStoreAssociations) {
            return keyValueStoreAssociations(Output.of(keyValueStoreAssociations));
        }

        /**
         * @param keyValueStoreAssociations List of `aws.cloudfront.KeyValueStore` ARNs to be associated to the function. AWS limits associations to on key value store per function.
         * 
         * @return builder
         * 
         */
        public Builder keyValueStoreAssociations(String... keyValueStoreAssociations) {
            return keyValueStoreAssociations(List.of(keyValueStoreAssociations));
        }

        /**
         * @param liveStageEtag ETag hash of any `LIVE` stage of the function.
         * 
         * @return builder
         * 
         */
        public Builder liveStageEtag(@Nullable Output liveStageEtag) {
            $.liveStageEtag = liveStageEtag;
            return this;
        }

        /**
         * @param liveStageEtag ETag hash of any `LIVE` stage of the function.
         * 
         * @return builder
         * 
         */
        public Builder liveStageEtag(String liveStageEtag) {
            return liveStageEtag(Output.of(liveStageEtag));
        }

        /**
         * @param name Unique name for your CloudFront Function.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Unique name for your CloudFront Function.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param publish Whether to publish creation/change as Live CloudFront Function Version. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder publish(@Nullable Output publish) {
            $.publish = publish;
            return this;
        }

        /**
         * @param publish Whether to publish creation/change as Live CloudFront Function Version. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder publish(Boolean publish) {
            return publish(Output.of(publish));
        }

        /**
         * @param runtime Identifier of the function's runtime. Valid values are `cloudfront-js-1.0` and `cloudfront-js-2.0`.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder runtime(@Nullable Output runtime) {
            $.runtime = runtime;
            return this;
        }

        /**
         * @param runtime Identifier of the function's runtime. Valid values are `cloudfront-js-1.0` and `cloudfront-js-2.0`.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder runtime(String runtime) {
            return runtime(Output.of(runtime));
        }

        /**
         * @param status Status of the function. Can be `UNPUBLISHED`, `UNASSOCIATED` or `ASSOCIATED`.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Status of the function. Can be `UNPUBLISHED`, `UNASSOCIATED` or `ASSOCIATED`.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        public FunctionState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy