com.pulumi.aws.ecr.inputs.RepositoryImageScanningConfigurationArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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