Class: AWSCDK::BedrockAgentCore::CfnConfigurationBundleProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnConfigurationBundleProps
- Defined in:
- bedrock_agent_core/cfn_configuration_bundle_props.rb
Overview
Properties for defining a CfnConfigurationBundle.
Instance Attribute Summary collapse
-
#branch_name ⇒ String?
readonly
The branch name for version tracking.
-
#bundle_name ⇒ String
readonly
The name for the configuration bundle.
-
#commit_message ⇒ String?
readonly
A commit message describing the version of the configuration bundle.
-
#components ⇒ AWSCDK::IResolvable, Hash{String => AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnConfigurationBundle::ComponentConfigurationProperty}
readonly
A map of component identifiers to their configurations.
-
#created_by ⇒ AWSCDK::IResolvable, ...
readonly
The source that created a configuration bundle version.
-
#description ⇒ String?
readonly
The description for the configuration bundle.
-
#kms_key_arn ⇒ String?
readonly
The ARN of the KMS key used to encrypt component configurations.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
Tags to assign to the configuration bundle.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bundle_name:, components:, branch_name: nil, commit_message: nil, created_by: nil, description: nil, kms_key_arn: nil, tags: nil) ⇒ CfnConfigurationBundleProps
constructor
A new instance of CfnConfigurationBundleProps.
- #to_jsii ⇒ Object
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.
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 = 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 = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#branch_name ⇒ String? (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_name ⇒ String (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_message ⇒ String? (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 end |
#components ⇒ AWSCDK::IResolvable, Hash{String => AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnConfigurationBundle::ComponentConfigurationProperty} (readonly)
A map of component identifiers to their configurations.
47 48 49 |
# File 'bedrock_agent_core/cfn_configuration_bundle_props.rb', line 47 def components @components end |
#created_by ⇒ AWSCDK::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 |
#description ⇒ String? (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_arn ⇒ String? (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 |
#tags ⇒ Array<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 end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |