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

com.pulumi.aws.ecr.inputs.PullThroughCacheRuleState Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The 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.ecr.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;


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

    public static final PullThroughCacheRuleState Empty = new PullThroughCacheRuleState();

    /**
     * ARN of the Secret which will be used to authenticate against the registry.
     * 
     */
    @Import(name="credentialArn")
    private @Nullable Output credentialArn;

    /**
     * @return ARN of the Secret which will be used to authenticate against the registry.
     * 
     */
    public Optional> credentialArn() {
        return Optional.ofNullable(this.credentialArn);
    }

    /**
     * The repository name prefix to use when caching images from the source registry.
     * 
     */
    @Import(name="ecrRepositoryPrefix")
    private @Nullable Output ecrRepositoryPrefix;

    /**
     * @return The repository name prefix to use when caching images from the source registry.
     * 
     */
    public Optional> ecrRepositoryPrefix() {
        return Optional.ofNullable(this.ecrRepositoryPrefix);
    }

    /**
     * The registry ID where the repository was created.
     * 
     */
    @Import(name="registryId")
    private @Nullable Output registryId;

    /**
     * @return The registry ID where the repository was created.
     * 
     */
    public Optional> registryId() {
        return Optional.ofNullable(this.registryId);
    }

    /**
     * The registry URL of the upstream public registry to use as the source.
     * 
     */
    @Import(name="upstreamRegistryUrl")
    private @Nullable Output upstreamRegistryUrl;

    /**
     * @return The registry URL of the upstream public registry to use as the source.
     * 
     */
    public Optional> upstreamRegistryUrl() {
        return Optional.ofNullable(this.upstreamRegistryUrl);
    }

    private PullThroughCacheRuleState() {}

    private PullThroughCacheRuleState(PullThroughCacheRuleState $) {
        this.credentialArn = $.credentialArn;
        this.ecrRepositoryPrefix = $.ecrRepositoryPrefix;
        this.registryId = $.registryId;
        this.upstreamRegistryUrl = $.upstreamRegistryUrl;
    }

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

    public static final class Builder {
        private PullThroughCacheRuleState $;

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

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

        /**
         * @param credentialArn ARN of the Secret which will be used to authenticate against the registry.
         * 
         * @return builder
         * 
         */
        public Builder credentialArn(@Nullable Output credentialArn) {
            $.credentialArn = credentialArn;
            return this;
        }

        /**
         * @param credentialArn ARN of the Secret which will be used to authenticate against the registry.
         * 
         * @return builder
         * 
         */
        public Builder credentialArn(String credentialArn) {
            return credentialArn(Output.of(credentialArn));
        }

        /**
         * @param ecrRepositoryPrefix The repository name prefix to use when caching images from the source registry.
         * 
         * @return builder
         * 
         */
        public Builder ecrRepositoryPrefix(@Nullable Output ecrRepositoryPrefix) {
            $.ecrRepositoryPrefix = ecrRepositoryPrefix;
            return this;
        }

        /**
         * @param ecrRepositoryPrefix The repository name prefix to use when caching images from the source registry.
         * 
         * @return builder
         * 
         */
        public Builder ecrRepositoryPrefix(String ecrRepositoryPrefix) {
            return ecrRepositoryPrefix(Output.of(ecrRepositoryPrefix));
        }

        /**
         * @param registryId The registry ID where the repository was created.
         * 
         * @return builder
         * 
         */
        public Builder registryId(@Nullable Output registryId) {
            $.registryId = registryId;
            return this;
        }

        /**
         * @param registryId The registry ID where the repository was created.
         * 
         * @return builder
         * 
         */
        public Builder registryId(String registryId) {
            return registryId(Output.of(registryId));
        }

        /**
         * @param upstreamRegistryUrl The registry URL of the upstream public registry to use as the source.
         * 
         * @return builder
         * 
         */
        public Builder upstreamRegistryUrl(@Nullable Output upstreamRegistryUrl) {
            $.upstreamRegistryUrl = upstreamRegistryUrl;
            return this;
        }

        /**
         * @param upstreamRegistryUrl The registry URL of the upstream public registry to use as the source.
         * 
         * @return builder
         * 
         */
        public Builder upstreamRegistryUrl(String upstreamRegistryUrl) {
            return upstreamRegistryUrl(Output.of(upstreamRegistryUrl));
        }

        public PullThroughCacheRuleState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy