Class: AWSCDK::BedrockAgentCore::CfnConfigurationBundle::VersionLineageMetadataProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/cfn_configuration_bundle.rb

Overview

The version lineage metadata that tracks parent versions and creation source.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(branch_name: nil, commit_message: nil, created_by: nil, parent_version_ids: nil) ⇒ VersionLineageMetadataProperty

Returns a new instance of VersionLineageMetadataProperty.

Parameters:



721
722
723
724
725
726
727
728
729
730
# File 'bedrock_agent_core/cfn_configuration_bundle.rb', line 721

def initialize(branch_name: nil, commit_message: nil, created_by: nil, parent_version_ids: nil)
  @branch_name = branch_name
  Jsii::Type.check_type(@branch_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "branchName") unless @branch_name.nil?
  @commit_message = commit_message
  Jsii::Type.check_type(@commit_message, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "commitMessage") unless @commit_message.nil?
  @created_by = created_by.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnConfigurationBundle::VersionCreatedBySourceProperty.new(**created_by.transform_keys(&:to_sym)) : created_by
  Jsii::Type.check_type(@created_by, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkNvbmZpZ3VyYXRpb25CdW5kbGUuVmVyc2lvbkNyZWF0ZWRCeVNvdXJjZVByb3BlcnR5In1dfX0=")), "createdBy") unless @created_by.nil?
  @parent_version_ids = parent_version_ids
  Jsii::Type.check_type(@parent_version_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "parentVersionIds") unless @parent_version_ids.nil?
end

Instance Attribute Details

#branch_nameString? (readonly)

The branch name for this version.



736
737
738
# File 'bedrock_agent_core/cfn_configuration_bundle.rb', line 736

def branch_name
  @branch_name
end

#commit_messageString? (readonly)

A commit message describing the changes in this version.



741
742
743
# File 'bedrock_agent_core/cfn_configuration_bundle.rb', line 741

def commit_message
  @commit_message
end

#created_byAWSCDK::IResolvable, ... (readonly)

The source that created a configuration bundle version.



746
747
748
# File 'bedrock_agent_core/cfn_configuration_bundle.rb', line 746

def created_by
  @created_by
end

#parent_version_idsArray<String>? (readonly)

A list of parent version identifiers.



751
752
753
# File 'bedrock_agent_core/cfn_configuration_bundle.rb', line 751

def parent_version_ids
  @parent_version_ids
end

Class Method Details

.jsii_propertiesObject



753
754
755
756
757
758
759
760
# File 'bedrock_agent_core/cfn_configuration_bundle.rb', line 753

def self.jsii_properties
  {
    :branch_name => "branchName",
    :commit_message => "commitMessage",
    :created_by => "createdBy",
    :parent_version_ids => "parentVersionIds",
  }
end

Instance Method Details

#to_jsiiObject



762
763
764
765
766
767
768
769
770
771
# File 'bedrock_agent_core/cfn_configuration_bundle.rb', line 762

def to_jsii
  result = {}
  result.merge!({
    "branchName" => @branch_name,
    "commitMessage" => @commit_message,
    "createdBy" => @created_by,
    "parentVersionIds" => @parent_version_ids,
  })
  result.compact
end