Class: AWSCDK::Bedrock::CfnBlueprintProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_blueprint_props.rb

Overview

Properties for defining a CfnBlueprint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(blueprint_name:, schema:, type:, kms_encryption_context: nil, kms_key_id: nil, tags: nil) ⇒ CfnBlueprintProps

Returns a new instance of CfnBlueprintProps.

Parameters:

  • blueprint_name (String)

    The blueprint's name.

  • schema (Object)

    The blueprint's schema.

  • type (String)

    The blueprint's type.

  • kms_encryption_context (AWSCDK::IResolvable, Hash{String => String}, nil) (defaults to: nil)

    Name-value pairs to include as an encryption context.

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

    The AWS key to use for encryption.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    List of Tags.



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 = 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

#blueprint_nameString (readonly)

The blueprint's name.



34
35
36
# File 'bedrock/cfn_blueprint_props.rb', line 34

def blueprint_name
  @blueprint_name
end

#kms_encryption_contextAWSCDK::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_idString? (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

#schemaObject (readonly)

The blueprint's schema.



39
40
41
# File 'bedrock/cfn_blueprint_props.rb', line 39

def schema
  @schema
end

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

List of Tags.



59
60
61
# File 'bedrock/cfn_blueprint_props.rb', line 59

def tags
  @tags
end

#typeString (readonly)

The blueprint's type.



44
45
46
# File 'bedrock/cfn_blueprint_props.rb', line 44

def type
  @type
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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