CfnSoftwarePackageVersionProps Struct
Properties for defining a CfnSoftwarePackageVersion.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const cfnSoftwarePackageVersionProps: iot.CfnSoftwarePackageVersionProps = {
packageName: 'packageName',
// the properties below are optional
artifact: {
s3Location: {
bucket: 'bucket',
key: 'key',
version: 'version',
},
},
attributes: {
attributesKey: 'attributes',
},
description: 'description',
recipe: 'recipe',
sbom: {
s3Location: {
bucket: 'bucket',
key: 'key',
version: 'version',
},
},
tags: [{
key: 'key',
value: 'value',
}],
versionName: 'versionName',
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iot as iot
cfn_software_package_version_props = iot.CfnSoftwarePackageVersionProps(
package_name="packageName",
# the properties below are optional
artifact=iot.CfnSoftwarePackageVersion.PackageVersionArtifactProperty(
s3_location=iot.CfnSoftwarePackageVersion.S3LocationProperty(
bucket="bucket",
key="key",
version="version"
)
),
attributes={
"attributes_key": "attributes"
},
description="description",
recipe="recipe",
sbom=iot.CfnSoftwarePackageVersion.SbomProperty(
s3_location=iot.CfnSoftwarePackageVersion.S3LocationProperty(
bucket="bucket",
key="key",
version="version"
)
),
tags=[CfnTag(
key="key",
value="value"
)],
version_name="versionName"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iot.*;
CfnSoftwarePackageVersionProps cfnSoftwarePackageVersionProps = CfnSoftwarePackageVersionProps.builder()
.packageName("packageName")
// the properties below are optional
.artifact(PackageVersionArtifactProperty.builder()
.s3Location(S3LocationProperty.builder()
.bucket("bucket")
.key("key")
.version("version")
.build())
.build())
.attributes(Map.of(
"attributesKey", "attributes"))
.description("description")
.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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoT;
var cfnSoftwarePackageVersionProps = new CfnSoftwarePackageVersionProps {
PackageName = "packageName",
// the properties below are optional
Artifact = new PackageVersionArtifactProperty {
S3Location = new S3LocationProperty {
Bucket = "bucket",
Key = "key",
Version = "version"
}
},
Attributes = new Dictionary<string, string> {
{ "attributesKey", "attributes" }
},
Description = "description",
Recipe = "recipe",
Sbom = new SbomProperty {
S3Location = new S3LocationProperty {
Bucket = "bucket",
Key = "key",
Version = "version"
}
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VersionName = "versionName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnSoftwarePackageVersionProps := &CfnSoftwarePackageVersionProps{
PackageName: jsii.String("packageName"),
// the properties below are optional
Artifact: &PackageVersionArtifactProperty{
S3Location: &S3LocationProperty{
Bucket: jsii.String("bucket"),
Key: jsii.String("key"),
Version: jsii.String("version"),
},
},
Attributes: map[string]*string{
"attributesKey": jsii.String("attributes"),
},
Description: jsii.String("description"),
Recipe: jsii.String("recipe"),
Sbom: &SbomProperty{
S3Location: &S3LocationProperty{
Bucket: jsii.String("bucket"),
Key: jsii.String("key"),
Version: jsii.String("version"),
},
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
VersionName: jsii.String("versionName"),
}
Properties
artifactoptionalIResolvable | CfnSoftwarePackageVersion.artifactoptionaltyping.Union[IResolvable, PackageVersionArtifactProperty]artifactoptionalIResolvableArtifactoptionalIResolvableArtifactoptionalinterface{} #The artifact location of the package version.
attributesoptionalIResolvable | { [key: string]: string }attributesoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]attributesoptionalIResolvableAttributesoptionalIResolvableAttributesoptionalinterface{} #Metadata that can be used to define a package version’s configuration.
For example, the S3 file location, configuration options that are being sent to the device or fleet.
The combined size of all the attributes on a package version is limited to 3KB.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #A summary of the package version being created.
This can be used to outline the package's contents or purpose.
The name of the associated software package.
recipeoptionalstringrecipeoptionalstrrecipeoptionalStringRecipeoptionalstringRecipeoptional*string #The inline json job document associated with a software package version.
sbomoptionalIResolvable | CfnSoftwarePackageVersion.sbomoptionaltyping.Union[IResolvable, SbomProperty]sbomoptionalIResolvableSbomoptionalIResolvableSbomoptionalinterface{} #The sbom zip archive location of the package version.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #Metadata that can be used to manage the package version.
versionNameoptionalstringversion_nameoptionalstrversionNameoptionalStringVersionNameoptionalstringVersionNameoptional*string #The name of the new package version.