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

com.pulumi.aws.imagebuilder.outputs.GetImageImageScanningConfiguration 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.imagebuilder.outputs;

import com.pulumi.aws.imagebuilder.outputs.GetImageImageScanningConfigurationEcrConfiguration;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetImageImageScanningConfiguration {
    /**
     * @return Configuration block with ECR configuration.
     * 
     */
    private List ecrConfigurations;
    /**
     * @return Indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image.
     * 
     */
    private Boolean imageScanningEnabled;

    private GetImageImageScanningConfiguration() {}
    /**
     * @return Configuration block with ECR configuration.
     * 
     */
    public List ecrConfigurations() {
        return this.ecrConfigurations;
    }
    /**
     * @return Indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image.
     * 
     */
    public Boolean imageScanningEnabled() {
        return this.imageScanningEnabled;
    }

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

    public static Builder builder(GetImageImageScanningConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List ecrConfigurations;
        private Boolean imageScanningEnabled;
        public Builder() {}
        public Builder(GetImageImageScanningConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.ecrConfigurations = defaults.ecrConfigurations;
    	      this.imageScanningEnabled = defaults.imageScanningEnabled;
        }

        @CustomType.Setter
        public Builder ecrConfigurations(List ecrConfigurations) {
            if (ecrConfigurations == null) {
              throw new MissingRequiredPropertyException("GetImageImageScanningConfiguration", "ecrConfigurations");
            }
            this.ecrConfigurations = ecrConfigurations;
            return this;
        }
        public Builder ecrConfigurations(GetImageImageScanningConfigurationEcrConfiguration... ecrConfigurations) {
            return ecrConfigurations(List.of(ecrConfigurations));
        }
        @CustomType.Setter
        public Builder imageScanningEnabled(Boolean imageScanningEnabled) {
            if (imageScanningEnabled == null) {
              throw new MissingRequiredPropertyException("GetImageImageScanningConfiguration", "imageScanningEnabled");
            }
            this.imageScanningEnabled = imageScanningEnabled;
            return this;
        }
        public GetImageImageScanningConfiguration build() {
            final var _resultValue = new GetImageImageScanningConfiguration();
            _resultValue.ecrConfigurations = ecrConfigurations;
            _resultValue.imageScanningEnabled = imageScanningEnabled;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy