Class CfnResourceVersion
- All Implemented Interfaces:
IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
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 more information on how to develop resources and ready them for registration, see Creating Resource Providers in the CloudFormation CLI 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.*; 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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnResourceVersion
.static interface
Logging configuration information for a resource.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.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
ModifierConstructorDescriptionprotected
CfnResourceVersion
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnResourceVersion
(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 extension.Whether the specified extension version is set as the default version.For resource type extensions, the provisioning behavior of the resource type.The Amazon Resource Name (ARN) of the extension.The ID of a specific version of the extension.The scope at which the extension is visible and usable 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 URL to the S3 bucket containing the resource project package that contains the necessary files for the resource you want to register.The name of the resource being registered.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setExecutionRoleArn
(String value) The Amazon Resource Name (ARN) of the IAM role for CloudFormation to assume when invoking the resource.void
Logging configuration information for a resource.void
setLoggingConfig
(IResolvable value) Logging configuration information for a resource.void
setSchemaHandlerPackage
(String value) A URL to the S3 bucket containing the resource project package that contains the necessary files for the resource you want to register.void
setTypeName
(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, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
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
-
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:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the extension. -
getAttrIsDefaultVersion
Whether the specified extension 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.
Valid values include:
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) of the extension. -
getAttrVersionId
The ID of a specific version of the extension.The version ID is the value at the end of the Amazon Resource Name (ARN) assigned to the extension version when it is registered.
If you specify a
VersionId
,DescribeType
returns information about that specific extension version. Otherwise, it returns information about the default extension version. -
getAttrVisibility
The scope at which the extension is visible and usable in CloudFormation operations.Valid values include:
PRIVATE
: The extension is only visible and usable within the account in which it is registered. CloudFormation marks any extensions you register asPRIVATE
.PUBLIC
: The extension is publicly visible and usable within any AWS account.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getSchemaHandlerPackage
A URL to the S3 bucket containing the resource project package that contains the necessary files for the resource you want to register. -
setSchemaHandlerPackage
A URL to the S3 bucket containing 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. -
setLoggingConfig
Logging configuration information for a resource. -
setLoggingConfig
@Stability(Stable) public void setLoggingConfig(@Nullable CfnResourceVersion.LoggingConfigProperty value) Logging configuration information for a resource.
-