Class: AWSCDK::BedrockAgentCore::CfnConfigurationBundle::VersionCreatedBySourceProperty

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

Overview

The source that created a configuration bundle version.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, arn: nil) ⇒ VersionCreatedBySourceProperty

Returns a new instance of VersionCreatedBySourceProperty.

Parameters:

  • name (String)

    The name of the source (for example, user, optimization-job, or system).

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

    The Amazon Resource Name (ARN) of the source, if applicable.



676
677
678
679
680
681
# File 'bedrock_agent_core/cfn_configuration_bundle.rb', line 676

def initialize(name:, arn: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @arn = arn
  Jsii::Type.check_type(@arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arn") unless @arn.nil?
end

Instance Attribute Details

#arnString? (readonly)

The Amazon Resource Name (ARN) of the source, if applicable.



692
693
694
# File 'bedrock_agent_core/cfn_configuration_bundle.rb', line 692

def arn
  @arn
end

#nameString (readonly)

The name of the source (for example, user, optimization-job, or system).



687
688
689
# File 'bedrock_agent_core/cfn_configuration_bundle.rb', line 687

def name
  @name
end

Class Method Details

.jsii_propertiesObject



694
695
696
697
698
699
# File 'bedrock_agent_core/cfn_configuration_bundle.rb', line 694

def self.jsii_properties
  {
    :name => "name",
    :arn => "arn",
  }
end

Instance Method Details

#to_jsiiObject



701
702
703
704
705
706
707
708
# File 'bedrock_agent_core/cfn_configuration_bundle.rb', line 701

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "arn" => @arn,
  })
  result.compact
end