Class CfnResourceVersion
- All Implemented Interfaces:
IInspectable,IResourceVersionRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
AWS::CloudFormation::ResourceVersion resource registers a resource version with the CloudFormation registry.
Registering a resource version makes it available for use in CloudFormation templates in your AWS account , and includes:
- Validating the resource schema.
- Determining which handlers, if any, have been specified for the resource.
- Making the resource available for use in your account.
For information about the CloudFormation registry, see Managing extensions with the CloudFormation registry in the AWS CloudFormation User Guide .
You can have a maximum of 50 resource versions registered at a time. This maximum is per account and per Region.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudformation.*;
CfnResourceVersion cfnResourceVersion = CfnResourceVersion.Builder.create(this, "MyCfnResourceVersion")
.schemaHandlerPackage("schemaHandlerPackage")
.typeName("typeName")
// the properties below are optional
.executionRoleArn("executionRoleArn")
.loggingConfig(LoggingConfigProperty.builder()
.logGroupName("logGroupName")
.logRoleArn("logRoleArn")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnResourceVersion.static interfaceLogging configuration information for a resource.Nested 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.services.cloudformation.IResourceVersionRef
IResourceVersionRef.Jsii$Default, IResourceVersionRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnResourceVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnResourceVersion(software.amazon.jsii.JsiiObjectRef objRef) CfnResourceVersion(software.constructs.Construct scope, String id, CfnResourceVersionProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the resource.Whether the specified resource version is set as the default version.For resource type extensions, the provisioning behavior of the resource type.The Amazon Resource Name (ARN) for the extension.The ID of a specific version of the resource.The visibility level that determines who can see and use this resource in CloudFormation operations:.The Amazon Resource Name (ARN) of the IAM role for CloudFormation to assume when invoking the resource.Logging configuration information for a resource.A reference to a ResourceVersion resource.A URL to the S3 bucket for the resource project package that contains the necessary files for the resource you want to register.The name of the resource being registered.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetExecutionRoleArn(String value) The Amazon Resource Name (ARN) of the IAM role for CloudFormation to assume when invoking the resource.voidsetLoggingConfig(IResolvable value) Logging configuration information for a resource.voidLogging configuration information for a resource.voidsetSchemaHandlerPackage(String value) A URL to the S3 bucket for the resource project package that contains the necessary files for the resource you want to register.voidsetTypeName(String value) The name of the resource being registered.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
-
CfnResourceVersion
protected CfnResourceVersion(software.amazon.jsii.JsiiObjectRef objRef) -
CfnResourceVersion
protected CfnResourceVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnResourceVersion
@Stability(Stable) public CfnResourceVersion(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnResourceVersionProps 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 resource. -
getAttrIsDefaultVersion
Whether the specified resource 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. -
getAttrProvisioningType
For resource type extensions, the provisioning behavior of the resource type.CloudFormation determines the provisioning type during registration, based on the types of handlers in the schema handler package submitted.
Possible values:
FULLY_MUTABLE: The resource type includes an update handler to process updates to the type during stack update operations.IMMUTABLE: The resource type doesn't include an update handler, so the type can't be updated and must instead be replaced during stack update operations.NON_PROVISIONABLE: The resource type doesn't include all the following handlers, and therefore can't actually be provisioned.- create
- read
- delete
-
getAttrTypeArn
The Amazon Resource Name (ARN) for the extension. -
getAttrVersionId
The ID of a specific version of the resource.The version ID is the value at the end of the Amazon Resource Name (ARN) assigned to the resource version when it is registered.
-
getAttrVisibility
The visibility level that determines who can see and use this resource in CloudFormation operations:.PRIVATE: The resource is only visible and usable within the account where it was registered. CloudFormation automatically marks any resources you register asPRIVATE.PUBLIC: The resource is publicly visible and usable within any AWS account.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getResourceVersionRef
A reference to a ResourceVersion resource.- Specified by:
getResourceVersionRefin interfaceIResourceVersionRef
-
getSchemaHandlerPackage
A URL to the S3 bucket for the resource project package that contains the necessary files for the resource you want to register. -
setSchemaHandlerPackage
A URL to the S3 bucket for the resource project package that contains the necessary files for the resource you want to register. -
getTypeName
The name of the resource being registered. -
setTypeName
The name of the resource being registered. -
getExecutionRoleArn
The Amazon Resource Name (ARN) of the IAM role for CloudFormation to assume when invoking the resource. -
setExecutionRoleArn
The Amazon Resource Name (ARN) of the IAM role for CloudFormation to assume when invoking the resource. -
getLoggingConfig
Logging configuration information for a resource.Returns union: either
IResolvableorCfnResourceVersion.LoggingConfigProperty -
setLoggingConfig
Logging configuration information for a resource. -
setLoggingConfig
@Stability(Stable) public void setLoggingConfig(@Nullable CfnResourceVersion.LoggingConfigProperty value) Logging configuration information for a resource.
-