Class: AWSCDK::Bedrock::CfnDataAutomationLibraryProps

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

Overview

Properties for defining a CfnDataAutomationLibrary.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(library_name:, encryption_configuration: nil, library_description: nil, tags: nil) ⇒ CfnDataAutomationLibraryProps

Returns a new instance of CfnDataAutomationLibraryProps.

Parameters:



13
14
15
16
17
18
19
20
21
22
# File 'bedrock/cfn_data_automation_library_props.rb', line 13

def initialize(library_name:, encryption_configuration: nil, library_description: nil, tags: nil)
  @library_name = library_name
  Jsii::Type.check_type(@library_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "libraryName")
  @encryption_configuration = encryption_configuration.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnDataAutomationLibrary::EncryptionConfigurationProperty.new(**encryption_configuration.transform_keys(&:to_sym)) : encryption_configuration
  Jsii::Type.check_type(@encryption_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkRhdGFBdXRvbWF0aW9uTGlicmFyeS5FbmNyeXB0aW9uQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "encryptionConfiguration") unless @encryption_configuration.nil?
  @library_description = library_description
  Jsii::Type.check_type(@library_description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "libraryDescription") unless @library_description.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

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

KMS Encryption Configuration.



33
34
35
# File 'bedrock/cfn_data_automation_library_props.rb', line 33

def encryption_configuration
  @encryption_configuration
end

#library_descriptionString? (readonly)

Description of the DataAutomationLibrary.



38
39
40
# File 'bedrock/cfn_data_automation_library_props.rb', line 38

def library_description
  @library_description
end

#library_nameString (readonly)

Name of the DataAutomationLibrary.



28
29
30
# File 'bedrock/cfn_data_automation_library_props.rb', line 28

def library_name
  @library_name
end

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

List of tags.



43
44
45
# File 'bedrock/cfn_data_automation_library_props.rb', line 43

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'bedrock/cfn_data_automation_library_props.rb', line 45

def self.jsii_properties
  {
    :library_name => "libraryName",
    :encryption_configuration => "encryptionConfiguration",
    :library_description => "libraryDescription",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 'bedrock/cfn_data_automation_library_props.rb', line 54

def to_jsii
  result = {}
  result.merge!({
    "libraryName" => @library_name,
    "encryptionConfiguration" => @encryption_configuration,
    "libraryDescription" => @library_description,
    "tags" => @tags,
  })
  result.compact
end