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

com.pulumi.aws.appsync.inputs.ResolverCachingConfigArgs 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.appsync.inputs;

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


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

    public static final ResolverCachingConfigArgs Empty = new ResolverCachingConfigArgs();

    /**
     * The caching keys for a resolver that has caching activated. Valid values are entries from the $context.arguments, $context.source, and $context.identity maps.
     * 
     */
    @Import(name="cachingKeys")
    private @Nullable Output> cachingKeys;

    /**
     * @return The caching keys for a resolver that has caching activated. Valid values are entries from the $context.arguments, $context.source, and $context.identity maps.
     * 
     */
    public Optional>> cachingKeys() {
        return Optional.ofNullable(this.cachingKeys);
    }

    /**
     * The TTL in seconds for a resolver that has caching activated. Valid values are between `1` and `3600` seconds.
     * 
     */
    @Import(name="ttl")
    private @Nullable Output ttl;

    /**
     * @return The TTL in seconds for a resolver that has caching activated. Valid values are between `1` and `3600` seconds.
     * 
     */
    public Optional> ttl() {
        return Optional.ofNullable(this.ttl);
    }

    private ResolverCachingConfigArgs() {}

    private ResolverCachingConfigArgs(ResolverCachingConfigArgs $) {
        this.cachingKeys = $.cachingKeys;
        this.ttl = $.ttl;
    }

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

    public static final class Builder {
        private ResolverCachingConfigArgs $;

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

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

        /**
         * @param cachingKeys The caching keys for a resolver that has caching activated. Valid values are entries from the $context.arguments, $context.source, and $context.identity maps.
         * 
         * @return builder
         * 
         */
        public Builder cachingKeys(@Nullable Output> cachingKeys) {
            $.cachingKeys = cachingKeys;
            return this;
        }

        /**
         * @param cachingKeys The caching keys for a resolver that has caching activated. Valid values are entries from the $context.arguments, $context.source, and $context.identity maps.
         * 
         * @return builder
         * 
         */
        public Builder cachingKeys(List cachingKeys) {
            return cachingKeys(Output.of(cachingKeys));
        }

        /**
         * @param cachingKeys The caching keys for a resolver that has caching activated. Valid values are entries from the $context.arguments, $context.source, and $context.identity maps.
         * 
         * @return builder
         * 
         */
        public Builder cachingKeys(String... cachingKeys) {
            return cachingKeys(List.of(cachingKeys));
        }

        /**
         * @param ttl The TTL in seconds for a resolver that has caching activated. Valid values are between `1` and `3600` seconds.
         * 
         * @return builder
         * 
         */
        public Builder ttl(@Nullable Output ttl) {
            $.ttl = ttl;
            return this;
        }

        /**
         * @param ttl The TTL in seconds for a resolver that has caching activated. Valid values are between `1` and `3600` seconds.
         * 
         * @return builder
         * 
         */
        public Builder ttl(Integer ttl) {
            return ttl(Output.of(ttl));
        }

        public ResolverCachingConfigArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy