Class CodeSigningConfigProps.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CodeSigningConfigProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CodeSigningConfigProps>
- Enclosing interface:
CodeSigningConfigProps
@Stability(Stable)
public static final class CodeSigningConfigProps.Builder
extends Object
implements software.amazon.jsii.Builder<CodeSigningConfigProps>
A builder for
CodeSigningConfigProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCodeSigningConfigProps.getDescription()
signingProfiles
(List<? extends ISigningProfile> signingProfiles) Sets the value ofCodeSigningConfigProps.getSigningProfiles()
untrustedArtifactOnDeployment
(UntrustedArtifactOnDeployment untrustedArtifactOnDeployment) Sets the value ofCodeSigningConfigProps.getUntrustedArtifactOnDeployment()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
signingProfiles
@Stability(Stable) public CodeSigningConfigProps.Builder signingProfiles(List<? extends ISigningProfile> signingProfiles) Sets the value ofCodeSigningConfigProps.getSigningProfiles()
- Parameters:
signingProfiles
- List of signing profiles that defines a trusted user who can sign a code package. This parameter is required.- Returns:
this
-
description
Sets the value ofCodeSigningConfigProps.getDescription()
- Parameters:
description
- Code signing configuration description.- Returns:
this
-
untrustedArtifactOnDeployment
@Stability(Stable) public CodeSigningConfigProps.Builder untrustedArtifactOnDeployment(UntrustedArtifactOnDeployment untrustedArtifactOnDeployment) Sets the value ofCodeSigningConfigProps.getUntrustedArtifactOnDeployment()
- Parameters:
untrustedArtifactOnDeployment
- Code signing configuration policy for deployment validation failure. If you set the policy to Enforce, Lambda blocks the deployment request if signature validation checks fail. If you set the policy to Warn, Lambda allows the deployment and creates a CloudWatch log.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CodeSigningConfigProps>
- Returns:
- a new instance of
CodeSigningConfigProps
- Throws:
NullPointerException
- if any required attribute was not provided
-