Class CfnModuleVersion.Builder

java.lang.Object
software.amazon.awscdk.core.CfnModuleVersion.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModuleVersion>
Enclosing class:
CfnModuleVersion

@Stability(Stable) public static final class CfnModuleVersion.Builder extends Object implements software.amazon.jsii.Builder<CfnModuleVersion>
A fluent builder for CfnModuleVersion.
  • Method Details

    • create

      @Stability(Stable) public static CfnModuleVersion.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnModuleVersion.Builder.
    • moduleName

      @Stability(Stable) public CfnModuleVersion.Builder moduleName(String moduleName)
      The name of the module being registered.

      Parameters:
      moduleName - The name of the module being registered. This parameter is required.
      Returns:
      this
    • modulePackage

      @Stability(Stable) public CfnModuleVersion.Builder modulePackage(String modulePackage)
      A URL to the S3 bucket containing the package that contains the template fragment and schema files for the module version to register.

      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 .

      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.
      Returns:
      this
    • build

      @Stability(Stable) public CfnModuleVersion build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnModuleVersion>
      Returns:
      a newly built instance of CfnModuleVersion.