Interface PutRegistryScanningConfigurationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<PutRegistryScanningConfigurationRequest.Builder,,PutRegistryScanningConfigurationRequest> EcrRequest.Builder,SdkBuilder<PutRegistryScanningConfigurationRequest.Builder,,PutRegistryScanningConfigurationRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
- PutRegistryScanningConfigurationRequest
-
Method Summary
Modifier and TypeMethodDescriptionoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) rules(Collection<RegistryScanningRule> rules) The scanning rules to use for the registry.rules(Consumer<RegistryScanningRule.Builder>... rules) The scanning rules to use for the registry.rules(RegistryScanningRule... rules) The scanning rules to use for the registry.The scanning type to set for the registry.The scanning type to set for the registry.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ecr.model.EcrRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
scanType
The scanning type to set for the registry.
When a registry scanning configuration is not defined, by default the
BASICscan type is used. When basic scanning is used, you may specify filters to determine which individual repositories, or all repositories, are scanned when new images are pushed to those repositories. Alternatively, you can do manual scans of images with basic scanning.When the
ENHANCEDscan type is set, Amazon Inspector provides automated vulnerability scanning. You may choose between continuous scanning or scan on push and you may specify filters to determine which individual repositories, or all repositories, are scanned.- Parameters:
scanType- The scanning type to set for the registry.When a registry scanning configuration is not defined, by default the
BASICscan type is used. When basic scanning is used, you may specify filters to determine which individual repositories, or all repositories, are scanned when new images are pushed to those repositories. Alternatively, you can do manual scans of images with basic scanning.When the
ENHANCEDscan type is set, Amazon Inspector provides automated vulnerability scanning. You may choose between continuous scanning or scan on push and you may specify filters to determine which individual repositories, or all repositories, are scanned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanType
The scanning type to set for the registry.
When a registry scanning configuration is not defined, by default the
BASICscan type is used. When basic scanning is used, you may specify filters to determine which individual repositories, or all repositories, are scanned when new images are pushed to those repositories. Alternatively, you can do manual scans of images with basic scanning.When the
ENHANCEDscan type is set, Amazon Inspector provides automated vulnerability scanning. You may choose between continuous scanning or scan on push and you may specify filters to determine which individual repositories, or all repositories, are scanned.- Parameters:
scanType- The scanning type to set for the registry.When a registry scanning configuration is not defined, by default the
BASICscan type is used. When basic scanning is used, you may specify filters to determine which individual repositories, or all repositories, are scanned when new images are pushed to those repositories. Alternatively, you can do manual scans of images with basic scanning.When the
ENHANCEDscan type is set, Amazon Inspector provides automated vulnerability scanning. You may choose between continuous scanning or scan on push and you may specify filters to determine which individual repositories, or all repositories, are scanned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rules
The scanning rules to use for the registry. A scanning rule is used to determine which repository filters are used and at what frequency scanning will occur.
- Parameters:
rules- The scanning rules to use for the registry. A scanning rule is used to determine which repository filters are used and at what frequency scanning will occur.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The scanning rules to use for the registry. A scanning rule is used to determine which repository filters are used and at what frequency scanning will occur.
- Parameters:
rules- The scanning rules to use for the registry. A scanning rule is used to determine which repository filters are used and at what frequency scanning will occur.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
PutRegistryScanningConfigurationRequest.Builder rules(Consumer<RegistryScanningRule.Builder>... rules) The scanning rules to use for the registry. A scanning rule is used to determine which repository filters are used and at what frequency scanning will occur.
This is a convenience method that creates an instance of theRegistryScanningRule.Builderavoiding the need to create one manually viaRegistryScanningRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torules(List<RegistryScanningRule>).- Parameters:
rules- a consumer that will call methods onRegistryScanningRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
PutRegistryScanningConfigurationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) - Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
PutRegistryScanningConfigurationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) - Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-