@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-04-27T09:48:07.785Z") @Stability(value=Stable) public class CfnModuleVersion extends CfnResource implements IInspectable
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();
Modifier and Type | Class and Description |
---|---|
static class |
CfnModuleVersion.Builder
A fluent builder for
CfnModuleVersion . |
software.amazon.jsii.JsiiObject.InitializationMode
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnModuleVersion(Construct scope,
String id,
CfnModuleVersionProps props)
Create a new `AWS::CloudFormation::ModuleVersion`.
|
protected |
CfnModuleVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnModuleVersion(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
String |
getAttrArn()
The Amazon Resource Name (ARN) of the module.
|
String |
getAttrDescription()
The description of the module.
|
String |
getAttrDocumentationUrl()
The URL of a page providing detailed documentation for this module.
|
IResolvable |
getAttrIsDefaultVersion()
Whether the specified module version is set as the default version.
|
String |
getAttrSchema()
The schema that defines the module.
|
String |
getAttrTimeCreated()
When the specified module version was registered.
|
String |
getAttrVersionId()
The ID of this version of the module.
|
String |
getAttrVisibility()
The scope at which the module is visible and usable in CloudFormation operations.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getModuleName()
The name of the module being registered.
|
String |
getModulePackage()
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.
|
protected Map<String,Object> |
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.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnModuleVersion(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnModuleVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public CfnModuleVersion(@NotNull Construct scope, @NotNull String id, @NotNull CfnModuleVersionProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.@Stability(value=Stable) public void inspect(@NotNull TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrDescription()
@Stability(value=Stable) @NotNull public String getAttrDocumentationUrl()
@Stability(value=Stable) @NotNull public IResolvable getAttrIsDefaultVersion()
@Stability(value=Stable) @NotNull public String getAttrSchema()
@Stability(value=Stable) @NotNull public String getAttrTimeCreated()
@Stability(value=Stable) @NotNull public String getAttrVersionId()
@Stability(value=Stable) @NotNull public String getAttrVisibility()
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.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties
in class CfnResource
@Stability(value=Stable) @NotNull public String getModuleName()
@Stability(value=Stable) public void setModuleName(@NotNull String value)
@Stability(value=Stable) @NotNull public String getModulePackage()
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 .
@Stability(value=Stable) public void setModulePackage(@NotNull String value)
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 .
Copyright © 2023. All rights reserved.