Class: AWSCDK::Bedrock::CfnBlueprintProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnBlueprintProps
- Defined in:
- bedrock/cfn_blueprint_props.rb
Overview
Properties for defining a CfnBlueprint.
Instance Attribute Summary collapse
-
#blueprint_name ⇒ String
readonly
The blueprint's name.
-
#kms_encryption_context ⇒ AWSCDK::IResolvable, ...
readonly
Name-value pairs to include as an encryption context.
-
#kms_key_id ⇒ String?
readonly
The AWS key to use for encryption.
-
#schema ⇒ Object
readonly
The blueprint's schema.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
List of Tags.
-
#type ⇒ String
readonly
The blueprint's type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(blueprint_name:, schema:, type:, kms_encryption_context: nil, kms_key_id: nil, tags: nil) ⇒ CfnBlueprintProps
constructor
A new instance of CfnBlueprintProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(blueprint_name:, schema:, type:, kms_encryption_context: nil, kms_key_id: nil, tags: nil) ⇒ CfnBlueprintProps
Returns a new instance of CfnBlueprintProps.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'bedrock/cfn_blueprint_props.rb', line 15 def initialize(blueprint_name:, schema:, type:, kms_encryption_context: nil, kms_key_id: nil, tags: nil) @blueprint_name = blueprint_name Jsii::Type.check_type(@blueprint_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "blueprintName") @schema = schema Jsii::Type.check_type(@schema, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "schema") @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") @kms_encryption_context = kms_encryption_context Jsii::Type.check_type(@kms_encryption_context, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "kmsEncryptionContext") unless @kms_encryption_context.nil? @kms_key_id = kms_key_id Jsii::Type.check_type(@kms_key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyId") unless @kms_key_id.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
#blueprint_name ⇒ String (readonly)
The blueprint's name.
34 35 36 |
# File 'bedrock/cfn_blueprint_props.rb', line 34 def blueprint_name @blueprint_name end |
#kms_encryption_context ⇒ AWSCDK::IResolvable, ... (readonly)
Name-value pairs to include as an encryption context.
49 50 51 |
# File 'bedrock/cfn_blueprint_props.rb', line 49 def kms_encryption_context @kms_encryption_context end |
#kms_key_id ⇒ String? (readonly)
The AWS key to use for encryption.
54 55 56 |
# File 'bedrock/cfn_blueprint_props.rb', line 54 def kms_key_id @kms_key_id end |
#schema ⇒ Object (readonly)
The blueprint's schema.
39 40 41 |
# File 'bedrock/cfn_blueprint_props.rb', line 39 def schema @schema end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
List of Tags.
59 60 61 |
# File 'bedrock/cfn_blueprint_props.rb', line 59 def @tags end |
#type ⇒ String (readonly)
The blueprint's type.
44 45 46 |
# File 'bedrock/cfn_blueprint_props.rb', line 44 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
61 62 63 64 65 66 67 68 69 70 |
# File 'bedrock/cfn_blueprint_props.rb', line 61 def self.jsii_properties { :blueprint_name => "blueprintName", :schema => "schema", :type => "type", :kms_encryption_context => "kmsEncryptionContext", :kms_key_id => "kmsKeyId", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'bedrock/cfn_blueprint_props.rb', line 72 def to_jsii result = {} result.merge!({ "blueprintName" => @blueprint_name, "schema" => @schema, "type" => @type, "kmsEncryptionContext" => @kms_encryption_context, "kmsKeyId" => @kms_key_id, "tags" => @tags, }) result.compact end |