Class CfnPublicTypeVersion
- All Implemented Interfaces:
IInspectable,IPublicTypeVersionRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
AWS::CloudFormation::PublicTypeVersion resource tests and publishes a registered extension as a public, third-party extension.
CloudFormation first tests the extension to make sure it meets all necessary requirements for being published in the CloudFormation registry. If it does, CloudFormation then publishes it to the registry as a public third-party extension in this Region. Public extensions are available for use by all CloudFormation users.
- For resource types, testing includes passing all contracts tests defined for the type.
- For modules, testing includes determining if the module's model meets all necessary requirements.
For more information, see Testing your public extension prior to publishing in the AWS CloudFormation Command Line Interface (CLI) User Guide .
If you don't specify a version, CloudFormation uses the default version of the extension in your account and Region for testing.
To perform testing, CloudFormation assumes the execution role specified when the type was registered.
An extension must have a test status of PASSED before it can be published. For more information, see Publishing extensions to make them available for public use in the AWS CloudFormation Command Line Interface (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.*;
CfnPublicTypeVersion cfnPublicTypeVersion = CfnPublicTypeVersion.Builder.create(this, "MyCfnPublicTypeVersion")
.arn("arn")
.logDeliveryBucket("logDeliveryBucket")
.publicVersionNumber("publicVersionNumber")
.type("type")
.typeName("typeName")
.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.IPublicTypeVersionRef
IPublicTypeVersionRef.Jsii$Default, IPublicTypeVersionRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnPublicTypeVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPublicTypeVersion(software.amazon.jsii.JsiiObjectRef objRef) CfnPublicTypeVersion(software.constructs.Construct scope, String id) CfnPublicTypeVersion(software.constructs.Construct scope, String id, CfnPublicTypeVersionProps props) -
Method Summary
Modifier and TypeMethodDescriptiongetArn()The Amazon Resource Number (ARN) of the extension.The Amazon Resource Number (ARN) assigned to the public extension upon publication.The publisher ID of the extension publisher.The Amazon Resource Number (ARN) assigned to this version of the extension.The S3 bucket to which CloudFormation delivers the contract test execution logs.A reference to a PublicTypeVersion resource.The version number to assign to this version of the extension.getType()The type of the extension to test.The name of the extension to test.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe Amazon Resource Number (ARN) of the extension.voidsetLogDeliveryBucket(String value) The S3 bucket to which CloudFormation delivers the contract test execution logs.voidsetPublicVersionNumber(String value) The version number to assign to this version of the extension.voidThe type of the extension to test.voidsetTypeName(String value) The name of the extension to test.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
-
CfnPublicTypeVersion
protected CfnPublicTypeVersion(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPublicTypeVersion
protected CfnPublicTypeVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPublicTypeVersion
@Stability(Stable) public CfnPublicTypeVersion(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnPublicTypeVersionProps 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.
-
CfnPublicTypeVersion
@Stability(Stable) public CfnPublicTypeVersion(@NotNull software.constructs.Construct scope, @NotNull String id) - 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.
-
-
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.
-
getAttrPublicTypeArn
The Amazon Resource Number (ARN) assigned to the public extension upon publication. -
getAttrPublisherId
The publisher ID of the extension publisher.This applies only to public third-party extensions. For private registered extensions, and extensions provided by AWS , CloudFormation returns
null. -
getAttrTypeVersionArn
The Amazon Resource Number (ARN) assigned to this version of the extension. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getPublicTypeVersionRef
A reference to a PublicTypeVersion resource.- Specified by:
getPublicTypeVersionRefin interfaceIPublicTypeVersionRef
-
getArn
The Amazon Resource Number (ARN) of the extension. -
setArn
The Amazon Resource Number (ARN) of the extension. -
getLogDeliveryBucket
The S3 bucket to which CloudFormation delivers the contract test execution logs. -
setLogDeliveryBucket
The S3 bucket to which CloudFormation delivers the contract test execution logs. -
getPublicVersionNumber
The version number to assign to this version of the extension. -
setPublicVersionNumber
The version number to assign to this version of the extension. -
getType
The type of the extension to test. -
setType
The type of the extension to test. -
getTypeName
The name of the extension to test. -
setTypeName
The name of the extension to test.
-