Package software.amazon.awscdk
Class CfnModuleVersionProps.Builder
java.lang.Object
software.amazon.awscdk.CfnModuleVersionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModuleVersionProps>
- Enclosing interface:
CfnModuleVersionProps
@Stability(Stable)
public static final class CfnModuleVersionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModuleVersionProps>
A builder for
CfnModuleVersionProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.moduleName
(String moduleName) Sets the value ofCfnModuleVersionProps.getModuleName()
modulePackage
(String modulePackage) Sets the value ofCfnModuleVersionProps.getModulePackage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
moduleName
Sets the value ofCfnModuleVersionProps.getModuleName()
- Parameters:
moduleName
- The name of the module being registered. This parameter is required.- Returns:
this
-
modulePackage
Sets the value ofCfnModuleVersionProps.getModulePackage()
- Parameters:
modulePackage
- A URL to the S3 bucket containing the package that contains the template fragment and schema files for the module version to register. This parameter is required.The user registering the module version must be able to access the module package in the S3 bucket. That's, the user needs to have GetObject permissions for the package. For more information, see Actions, Resources, and Condition Keys for Amazon S3 in the AWS Identity and Access Management User Guide .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnModuleVersionProps>
- Returns:
- a new instance of
CfnModuleVersionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-