Skip to content
v2.278.0

CfnPackageVersionProps Struct ​

Properties for defining a CfnPackageVersion.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_panorama as panorama } from 'aws-cdk-lib';
const cfnPackageVersionProps: panorama.CfnPackageVersionProps = {
  packageId: 'packageId',
  packageVersion: 'packageVersion',
  patchVersion: 'patchVersion',

  // the properties below are optional
  markLatest: false,
  ownerAccount: 'ownerAccount',
  updatedLatestPatchVersion: 'updatedLatestPatchVersion',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_panorama as panorama

cfn_package_version_props = panorama.CfnPackageVersionProps(
    package_id="packageId",
    package_version="packageVersion",
    patch_version="patchVersion",

    # the properties below are optional
    mark_latest=False,
    owner_account="ownerAccount",
    updated_latest_patch_version="updatedLatestPatchVersion"
)
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.panorama.*;

CfnPackageVersionProps cfnPackageVersionProps = CfnPackageVersionProps.builder()
        .packageId("packageId")
        .packageVersion("packageVersion")
        .patchVersion("patchVersion")

        // the properties below are optional
        .markLatest(false)
        .ownerAccount("ownerAccount")
        .updatedLatestPatchVersion("updatedLatestPatchVersion")
        .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.Panorama;

var cfnPackageVersionProps = new CfnPackageVersionProps {
    PackageId = "packageId",
    PackageVersion = "packageVersion",
    PatchVersion = "patchVersion",

    // the properties below are optional
    MarkLatest = false,
    OwnerAccount = "ownerAccount",
    UpdatedLatestPatchVersion = "updatedLatestPatchVersion"
};
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"

cfnPackageVersionProps := &CfnPackageVersionProps{
	PackageId: jsii.String("packageId"),
	PackageVersion: jsii.String("packageVersion"),
	PatchVersion: jsii.String("patchVersion"),

	// the properties below are optional
	MarkLatest: jsii.Boolean(false),
	OwnerAccount: jsii.String("ownerAccount"),
	UpdatedLatestPatchVersion: jsii.String("updatedLatestPatchVersion"),
}

Properties ​

markLatestoptionalboolean | IResolvablemark_latestoptionaltyping.Union[bool, IResolvable]markLatestoptionalBooleanMarkLatestoptionalboolMarkLatestoptionalinterface{} #
Whether to mark the new version as the latest version.
ownerAccountoptionalstringowner_accountoptionalstrownerAccountoptionalStringOwnerAccountoptionalstringOwnerAccountoptional*string #
An owner account.
packageIdstringpackage_idstrpackageIdStringPackageIdstringPackageId*string required #
A package ID.
packageVersionstringpackage_versionstrpackageVersionStringPackageVersionstringPackageVersion*string required #
A package version.
patchVersionstringpatch_versionstrpatchVersionStringPatchVersionstringPatchVersion*string required #
A patch version.
updatedLatestPatchVersionoptionalstringupdated_latest_patch_versionoptionalstrupdatedLatestPatchVersionoptionalStringUpdatedLatestPatchVersionoptionalstringUpdatedLatestPatchVersionoptional*string #
If the version was marked latest, the new version to maker as latest.