Class: AWSCDK::Bedrock::CfnDataAutomationProject::AudioExtractionCategoryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnDataAutomationProject::AudioExtractionCategoryProperty
- Defined in:
- bedrock/cfn_data_automation_project.rb
Overview
Settings for generating data from audio.
Instance Attribute Summary collapse
-
#state ⇒ String
readonly
Whether generating categorical data from audio is enabled.
-
#type_configuration ⇒ AWSCDK::IResolvable, ...
readonly
This element contains information about extractions from different types.
-
#types ⇒ Array<String>?
readonly
The types of data to generate.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(state:, type_configuration: nil, types: nil) ⇒ AudioExtractionCategoryProperty
constructor
A new instance of AudioExtractionCategoryProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(state:, type_configuration: nil, types: nil) ⇒ AudioExtractionCategoryProperty
Returns a new instance of AudioExtractionCategoryProperty.
651 652 653 654 655 656 657 658 |
# File 'bedrock/cfn_data_automation_project.rb', line 651 def initialize(state:, type_configuration: nil, types: nil) @state = state Jsii::Type.check_type(@state, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "state") @type_configuration = type_configuration.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnDataAutomationProject::AudioExtractionCategoryTypeConfigurationProperty.new(**type_configuration.transform_keys(&:to_sym)) : type_configuration Jsii::Type.check_type(@type_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkRhdGFBdXRvbWF0aW9uUHJvamVjdC5BdWRpb0V4dHJhY3Rpb25DYXRlZ29yeVR5cGVDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "typeConfiguration") unless @type_configuration.nil? @types = types Jsii::Type.check_type(@types, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "types") unless @types.nil? end |
Instance Attribute Details
#state ⇒ String (readonly)
Whether generating categorical data from audio is enabled.
664 665 666 |
# File 'bedrock/cfn_data_automation_project.rb', line 664 def state @state end |
#type_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
This element contains information about extractions from different types.
Used to enable speaker and channel labeling for transcripts.
671 672 673 |
# File 'bedrock/cfn_data_automation_project.rb', line 671 def type_configuration @type_configuration end |
#types ⇒ Array<String>? (readonly)
The types of data to generate.
676 677 678 |
# File 'bedrock/cfn_data_automation_project.rb', line 676 def types @types end |
Class Method Details
.jsii_properties ⇒ Object
678 679 680 681 682 683 684 |
# File 'bedrock/cfn_data_automation_project.rb', line 678 def self.jsii_properties { :state => "state", :type_configuration => "typeConfiguration", :types => "types", } end |
Instance Method Details
#to_jsii ⇒ Object
686 687 688 689 690 691 692 693 694 |
# File 'bedrock/cfn_data_automation_project.rb', line 686 def to_jsii result = {} result.merge!({ "state" => @state, "typeConfiguration" => @type_configuration, "types" => @types, }) result.compact end |