Class: AWSCDK::ServiceCatalog::ProductStackHistory

Inherits:
Constructs::Construct
  • Object
show all
Defined in:
service_catalog/product_stack_history.rb

Overview

A Construct that contains a Service Catalog product stack with its previous deployments maintained.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scope, id, props) ⇒ ProductStackHistory

Returns a new instance of ProductStackHistory.

Parameters:



11
12
13
14
15
16
17
# File 'service_catalog/product_stack_history.rb', line 11

def initialize(scope, id, props)
  props = props.is_a?(Hash) ? ::AWSCDK::ServiceCatalog::ProductStackHistoryProps.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope")
  Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id")
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VydmljZWNhdGFsb2cuUHJvZHVjdFN0YWNrSGlzdG9yeVByb3BzIn0=")), "props")
  Jsii::Object.instance_method(:initialize).bind(self).call(scope, id, props)
end

Class Method Details

.jsii_overridable_methodsObject



19
20
21
22
23
24
25
26
27
# File 'service_catalog/product_stack_history.rb', line 19

def self.jsii_overridable_methods
  {
    :node => { kind: :property, name: "node", is_optional: false },
    :to_string => { kind: :method, name: "toString", is_optional: false },
    :with => { kind: :method, name: "with", is_optional: false },
    :current_version => { kind: :method, name: "currentVersion", is_optional: false },
    :version_from_snapshot => { kind: :method, name: "versionFromSnapshot", is_optional: false },
  }
end

.PROPERTY_INJECTION_IDString

Uniquely identifies this class.

Returns:

  • (String)


39
40
41
# File 'service_catalog/product_stack_history.rb', line 39

def self.PROPERTY_INJECTION_ID()
  Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_servicecatalog.ProductStackHistory", "PROPERTY_INJECTION_ID")
end

Instance Method Details

#current_versionAWSCDK::ServiceCatalog::CloudFormationProductVersion

Retains product stack template as a snapshot when deployed and retrieves a CloudFormationProductVersion for the current product version.



69
70
71
# File 'service_catalog/product_stack_history.rb', line 69

def current_version()
  jsii_call_method("currentVersion", [])
end

#nodeConstructs::Node

The tree node.

Returns:

  • (Constructs::Node)


32
33
34
# File 'service_catalog/product_stack_history.rb', line 32

def node()
  jsii_get_property("node")
end

#to_stringString

Returns a string representation of this construct.

Returns:

  • (String)


46
47
48
# File 'service_catalog/product_stack_history.rb', line 46

def to_string()
  jsii_call_method("toString", [])
end

#version_from_snapshot(product_version_name) ⇒ AWSCDK::ServiceCatalog::CloudFormationProductVersion

Retrieves a CloudFormationProductVersion from a previously deployed productVersionName.

Parameters:

  • product_version_name (String)

Returns:



77
78
79
80
# File 'service_catalog/product_stack_history.rb', line 77

def version_from_snapshot(product_version_name)
  Jsii::Type.check_type(product_version_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "productVersionName")
  jsii_call_method("versionFromSnapshot", [product_version_name])
end

#with(*mixins) ⇒ Constructs::IConstruct

Applies one or more mixins to this construct.

Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited. Use multiple with() calls if subsequent mixins should apply to added constructs.

Parameters:

  • mixins (Array<Constructs::IMixin>)

    The mixins to apply.

Returns:

  • (Constructs::IConstruct)

    This construct for chaining



59
60
61
62
63
64
# File 'service_catalog/product_stack_history.rb', line 59

def with(*mixins)
  mixins.each_with_index do |item, index|
    Jsii::Type.check_type(item, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLklNaXhpbiJ9")), "mixins[#{index}]")
  end
  jsii_call_method("with", [*mixins])
end