Class CfnModuleVersion
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::CloudFormation::ModuleVersion
.
Registers the specified version of the module with the CloudFormation service. Registering a module makes it available for use in CloudFormation templates in your AWS account and Region.
To specify a module version as the default version, use the [AWS::CloudFormation::ModuleDefaultVersion](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-moduledefaultversion.html)
resource.
For more information using modules, see Using modules to encapsulate and reuse resource configurations and Registering extensions in the CloudFormation User Guide . For information on developing modules, see Developing modules in the CloudFormation CLI 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.core.*; CfnModuleVersion cfnModuleVersion = CfnModuleVersion.Builder.create(this, "MyCfnModuleVersion") .moduleName("moduleName") .modulePackage("modulePackage") .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnModuleVersion
(Construct scope, String id, CfnModuleVersionProps props) Create a newAWS::CloudFormation::ModuleVersion
.protected
CfnModuleVersion
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnModuleVersion
(software.amazon.jsii.JsiiObjectRef objRef) -
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 module version was registered.The ID of this version of the module.The scope at which the module is visible and usable in CloudFormation operations.The name of the module being registered.A URL to the S3 bucket containing the package that contains the template fragment and schema files for the module version to register.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setModuleName
(String value) The name of the module being registered.void
setModulePackage
(String value) A URL to the S3 bucket containing the package that contains the template fragment and schema files for the module version to register.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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 Construct scope, @NotNull String id, @NotNull CfnModuleVersionProps props) Create a newAWS::CloudFormation::ModuleVersion
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in 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. -
getAttrSchema
The schema that defines the module. -
getAttrTimeCreated
When the specified module version was registered. -
getAttrVersionId
The ID of this version of the module. -
getAttrVisibility
The scope at which the module is visible and usable in CloudFormation operations.Valid values include:
PRIVATE
: The module is only visible and usable within the account in which it's registered.PUBLIC
: The module is publicly visible and usable within any Amazon account.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getModuleName
The name of the module being registered. -
setModuleName
The name of the module being registered. -
getModulePackage
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 .
-
setModulePackage
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 .
-