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

com.pulumi.aws.ecr.inputs.RepositoryImageScanningConfigurationArgs 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.ecr.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.util.Objects;


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

    public static final RepositoryImageScanningConfigurationArgs Empty = new RepositoryImageScanningConfigurationArgs();

    /**
     * Indicates whether images are scanned after being pushed to the repository (true) or not scanned (false).
     * 
     */
    @Import(name="scanOnPush", required=true)
    private Output scanOnPush;

    /**
     * @return Indicates whether images are scanned after being pushed to the repository (true) or not scanned (false).
     * 
     */
    public Output scanOnPush() {
        return this.scanOnPush;
    }

    private RepositoryImageScanningConfigurationArgs() {}

    private RepositoryImageScanningConfigurationArgs(RepositoryImageScanningConfigurationArgs $) {
        this.scanOnPush = $.scanOnPush;
    }

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

    public static final class Builder {
        private RepositoryImageScanningConfigurationArgs $;

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

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

        /**
         * @param scanOnPush Indicates whether images are scanned after being pushed to the repository (true) or not scanned (false).
         * 
         * @return builder
         * 
         */
        public Builder scanOnPush(Output scanOnPush) {
            $.scanOnPush = scanOnPush;
            return this;
        }

        /**
         * @param scanOnPush Indicates whether images are scanned after being pushed to the repository (true) or not scanned (false).
         * 
         * @return builder
         * 
         */
        public Builder scanOnPush(Boolean scanOnPush) {
            return scanOnPush(Output.of(scanOnPush));
        }

        public RepositoryImageScanningConfigurationArgs build() {
            if ($.scanOnPush == null) {
                throw new MissingRequiredPropertyException("RepositoryImageScanningConfigurationArgs", "scanOnPush");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy