Class: AWSCDK::BedrockAgentCore::CfnConfigurationBundleProps

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

Overview

Properties for defining a CfnConfigurationBundle.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bundle_name:, components:, branch_name: nil, commit_message: nil, created_by: nil, description: nil, kms_key_arn: nil, tags: nil) ⇒ CfnConfigurationBundleProps

Returns a new instance of CfnConfigurationBundleProps.

Parameters:



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'bedrock_agent_core/cfn_configuration_bundle_props.rb', line 17

def initialize(bundle_name:, components:, branch_name: nil, commit_message: nil, created_by: nil, description: nil, kms_key_arn: nil, tags: nil)
  @bundle_name = bundle_name
  Jsii::Type.check_type(@bundle_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bundleName")
  @components = components
  Jsii::Type.check_type(@components, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5DZm5Db25maWd1cmF0aW9uQnVuZGxlLkNvbXBvbmVudENvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoibWFwIn19XX19")), "components")
  @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?
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @kms_key_arn = kms_key_arn
  Jsii::Type.check_type(@kms_key_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyArn") unless @kms_key_arn.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#branch_nameString? (readonly)

The branch name for version tracking.



52
53
54
# File 'bedrock_agent_core/cfn_configuration_bundle_props.rb', line 52

def branch_name
  @branch_name
end

#bundle_nameString (readonly)

The name for the configuration bundle.

Names must be unique within your account.



42
43
44
# File 'bedrock_agent_core/cfn_configuration_bundle_props.rb', line 42

def bundle_name
  @bundle_name
end

#commit_messageString? (readonly)

A commit message describing the version of the configuration bundle.



57
58
59
# File 'bedrock_agent_core/cfn_configuration_bundle_props.rb', line 57

def commit_message
  @commit_message
end

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

The source that created a configuration bundle version.



62
63
64
# File 'bedrock_agent_core/cfn_configuration_bundle_props.rb', line 62

def created_by
  @created_by
end

#descriptionString? (readonly)

The description for the configuration bundle.



67
68
69
# File 'bedrock_agent_core/cfn_configuration_bundle_props.rb', line 67

def description
  @description
end

#kms_key_arnString? (readonly)

The ARN of the KMS key used to encrypt component configurations.



72
73
74
# File 'bedrock_agent_core/cfn_configuration_bundle_props.rb', line 72

def kms_key_arn
  @kms_key_arn
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

Tags to assign to the configuration bundle.



77
78
79
# File 'bedrock_agent_core/cfn_configuration_bundle_props.rb', line 77

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



79
80
81
82
83
84
85
86
87
88
89
90
# File 'bedrock_agent_core/cfn_configuration_bundle_props.rb', line 79

def self.jsii_properties
  {
    :bundle_name => "bundleName",
    :components => "components",
    :branch_name => "branchName",
    :commit_message => "commitMessage",
    :created_by => "createdBy",
    :description => "description",
    :kms_key_arn => "kmsKeyArn",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



92
93
94
95
96
97
98
99
100
101
102
103
104
105
# File 'bedrock_agent_core/cfn_configuration_bundle_props.rb', line 92

def to_jsii
  result = {}
  result.merge!({
    "bundleName" => @bundle_name,
    "components" => @components,
    "branchName" => @branch_name,
    "commitMessage" => @commit_message,
    "createdBy" => @created_by,
    "description" => @description,
    "kmsKeyArn" => @kms_key_arn,
    "tags" => @tags,
  })
  result.compact
end