Class CfnSoftwarePackageVersionPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
AWS::IoT::SoftwarePackageVersion resource to create a software package version.
For information about working with software package versions, see AWS IoT Device Management Software Package Catalog and Creating a software package and package version in the AWS IoT Developer Guide . See also, CreatePackageVersion in the API Guide .
The associated software package must exist before the package version is created. If you create a software package and package version in the same CloudFormation template, set the software package as a dependency of the package version. If they are created out of sequence, you will receive an error.
Package versions and created in a
draftstate, for more information, see Package version lifecycle . To change the package version state after it’s created, use the UpdatePackageVersionAPI command.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.iot.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnSoftwarePackageVersionPropsMixin cfnSoftwarePackageVersionPropsMixin = CfnSoftwarePackageVersionPropsMixin.Builder.create(CfnSoftwarePackageVersionMixinProps.builder()
.artifact(PackageVersionArtifactProperty.builder()
.s3Location(S3LocationProperty.builder()
.bucket("bucket")
.key("key")
.version("version")
.build())
.build())
.attributes(Map.of(
"attributesKey", "attributes"))
.description("description")
.packageName("packageName")
.recipe("recipe")
.sbom(SbomProperty.builder()
.s3Location(S3LocationProperty.builder()
.bucket("bucket")
.key("key")
.version("version")
.build())
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.versionName("versionName")
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnSoftwarePackageVersionPropsMixin.static interfaceThe artifact location of the package version.static interfaceThe Amazon S3 location.static interfaceThe sbom zip archive location of the package version.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::IoT::SoftwarePackageVersion.CfnSoftwarePackageVersionPropsMixin(CfnSoftwarePackageVersionMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::IoT::SoftwarePackageVersion.protectedCfnSoftwarePackageVersionPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnSoftwarePackageVersionPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnSoftwarePackageVersionMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods 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, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnSoftwarePackageVersionPropsMixin
protected CfnSoftwarePackageVersionPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnSoftwarePackageVersionPropsMixin
protected CfnSoftwarePackageVersionPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnSoftwarePackageVersionPropsMixin
@Stability(Stable) public CfnSoftwarePackageVersionPropsMixin(@NotNull CfnSoftwarePackageVersionMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::IoT::SoftwarePackageVersion.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnSoftwarePackageVersionPropsMixin
@Stability(Stable) public CfnSoftwarePackageVersionPropsMixin(@NotNull CfnSoftwarePackageVersionMixinProps props) Create a mixin to apply properties toAWS::IoT::SoftwarePackageVersion.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-