Class: AWSCDK::Panorama::CfnPackageVersionProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
panorama/cfn_package_version_props.rb

Overview

Properties for defining a CfnPackageVersion.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(package_id:, package_version:, patch_version:, mark_latest: nil, owner_account: nil, updated_latest_patch_version: nil) ⇒ CfnPackageVersionProps

Returns a new instance of CfnPackageVersionProps.

Parameters:

  • package_id (String)

    A package ID.

  • package_version (String)

    A package version.

  • patch_version (String)

    A patch version.

  • mark_latest (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Whether to mark the new version as the latest version.

  • owner_account (String, nil) (defaults to: nil)

    An owner account.

  • updated_latest_patch_version (String, nil) (defaults to: nil)

    If the version was marked latest, the new version to maker as latest.



15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'panorama/cfn_package_version_props.rb', line 15

def initialize(package_id:, package_version:, patch_version:, mark_latest: nil, owner_account: nil, updated_latest_patch_version: nil)
  @package_id = package_id
  Jsii::Type.check_type(@package_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "packageId")
  @package_version = package_version
  Jsii::Type.check_type(@package_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "packageVersion")
  @patch_version = patch_version
  Jsii::Type.check_type(@patch_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "patchVersion")
  @mark_latest = mark_latest
  Jsii::Type.check_type(@mark_latest, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "markLatest") unless @mark_latest.nil?
  @owner_account = 
  Jsii::Type.check_type(@owner_account, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ownerAccount") unless @owner_account.nil?
  @updated_latest_patch_version = updated_latest_patch_version
  Jsii::Type.check_type(@updated_latest_patch_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "updatedLatestPatchVersion") unless @updated_latest_patch_version.nil?
end

Instance Attribute Details

#mark_latestBoolean, ... (readonly)

Whether to mark the new version as the latest version.



49
50
51
# File 'panorama/cfn_package_version_props.rb', line 49

def mark_latest
  @mark_latest
end

#owner_accountString? (readonly)

An owner account.



54
55
56
# File 'panorama/cfn_package_version_props.rb', line 54

def 
  @owner_account
end

#package_idString (readonly)

A package ID.



34
35
36
# File 'panorama/cfn_package_version_props.rb', line 34

def package_id
  @package_id
end

#package_versionString (readonly)

A package version.



39
40
41
# File 'panorama/cfn_package_version_props.rb', line 39

def package_version
  @package_version
end

#patch_versionString (readonly)

A patch version.



44
45
46
# File 'panorama/cfn_package_version_props.rb', line 44

def patch_version
  @patch_version
end

#updated_latest_patch_versionString? (readonly)

If the version was marked latest, the new version to maker as latest.



59
60
61
# File 'panorama/cfn_package_version_props.rb', line 59

def updated_latest_patch_version
  @updated_latest_patch_version
end

Class Method Details

.jsii_propertiesObject



61
62
63
64
65
66
67
68
69
70
# File 'panorama/cfn_package_version_props.rb', line 61

def self.jsii_properties
  {
    :package_id => "packageId",
    :package_version => "packageVersion",
    :patch_version => "patchVersion",
    :mark_latest => "markLatest",
    :owner_account => "ownerAccount",
    :updated_latest_patch_version => "updatedLatestPatchVersion",
  }
end

Instance Method Details

#to_jsiiObject



72
73
74
75
76
77
78
79
80
81
82
83
# File 'panorama/cfn_package_version_props.rb', line 72

def to_jsii
  result = {}
  result.merge!({
    "packageId" => @package_id,
    "packageVersion" => @package_version,
    "patchVersion" => @patch_version,
    "markLatest" => @mark_latest,
    "ownerAccount" => @owner_account,
    "updatedLatestPatchVersion" => @updated_latest_patch_version,
  })
  result.compact
end