Package software.amazon.awscdk
Class CfnModuleVersion
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.CfnModuleVersion
- All Implemented Interfaces:
IInspectable,IModuleVersionRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:30.873Z")
@Stability(Stable)
public class CfnModuleVersion
extends CfnResource
implements IInspectable, IModuleVersionRef
The
AWS::CloudFormation::ModuleVersion resource registers the specified version of the module with the CloudFormation registry.
Registering a module makes it available for use in CloudFormation templates in your AWS account and Region.
For more information, see Create reusable resource configurations that can be included across templates with CloudFormation modules in the CloudFormation User Guide .
For information about the CloudFormation registry, see Managing extensions with the CloudFormation registry in the AWS CloudFormation User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
CfnModuleVersion cfnModuleVersion = CfnModuleVersion.Builder.create(this, "MyCfnModuleVersion")
.moduleName("moduleName")
.modulePackage("modulePackage")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IModuleVersionRef
IModuleVersionRef.Jsii$Default, IModuleVersionRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnModuleVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnModuleVersion(software.amazon.jsii.JsiiObjectRef objRef) CfnModuleVersion(software.constructs.Construct scope, String id, CfnModuleVersionProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the module.The description of the module.The URL of a page providing detailed documentation for this module.Whether the specified module version is set as the default version.The schema that defines the module.When the specified private module version was registered or activated in your account.The ID of this version of the module.The visibility level that determines who can see and use this module in CloudFormation operations:.The name of the module being registered.A URL to the S3 bucket for the package that contains the template fragment and schema files for the module version to register.A reference to a ModuleVersion resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetModuleName(String value) The name of the module being registered.voidsetModulePackage(String value) A URL to the S3 bucket for the package that contains the template fragment and schema files for the module version to register.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnModuleVersion
protected CfnModuleVersion(software.amazon.jsii.JsiiObjectRef objRef) -
CfnModuleVersion
protected CfnModuleVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnModuleVersion
@Stability(Stable) public CfnModuleVersion(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnModuleVersionProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the module. -
getAttrDescription
The description of the module. -
getAttrDocumentationUrl
The URL of a page providing detailed documentation for this module. -
getAttrIsDefaultVersion
Whether the specified module version is set as the default version.This applies only to private extensions you have registered in your account, and extensions published by AWS . For public third-party extensions, whether they are activated in your account, CloudFormation returns
null. -
getAttrSchema
The schema that defines the module. -
getAttrTimeCreated
When the specified private module version was registered or activated in your account. -
getAttrVersionId
The ID of this version of the module. -
getAttrVisibility
The visibility level that determines who can see and use this module in CloudFormation operations:.PRIVATE: The module is only visible and usable within the account where it was registered. CloudFormation automatically marks any modules you register asPRIVATE.PUBLIC: The module is publicly visible and usable within any AWS account.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getModuleVersionRef
A reference to a ModuleVersion resource.- Specified by:
getModuleVersionRefin interfaceIModuleVersionRef
-
getModuleName
The name of the module being registered. -
setModuleName
The name of the module being registered. -
getModulePackage
A URL to the S3 bucket for the package that contains the template fragment and schema files for the module version to register. -
setModulePackage
A URL to the S3 bucket for the package that contains the template fragment and schema files for the module version to register.
-