Class: AWSCDK::Athena::CfnPreparedStatementProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Athena::CfnPreparedStatementProps
- Defined in:
- athena/cfn_prepared_statement_props.rb
Overview
Properties for defining a CfnPreparedStatement.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description of the prepared statement.
-
#query_statement ⇒ String
readonly
The query string for the prepared statement.
-
#statement_name ⇒ String
readonly
The name of the prepared statement.
-
#work_group ⇒ String, AWSCDK::Interfaces::AWSAthena::IWorkGroupRef
readonly
The workgroup to which the prepared statement belongs.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(query_statement:, statement_name:, work_group:, description: nil) ⇒ CfnPreparedStatementProps
constructor
A new instance of CfnPreparedStatementProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(query_statement:, statement_name:, work_group:, description: nil) ⇒ CfnPreparedStatementProps
Returns a new instance of CfnPreparedStatementProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'athena/cfn_prepared_statement_props.rb', line 13 def initialize(query_statement:, statement_name:, work_group:, description: nil) @query_statement = query_statement Jsii::Type.check_type(@query_statement, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "queryStatement") @statement_name = statement_name Jsii::Type.check_type(@statement_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "statementName") @work_group = work_group Jsii::Type.check_type(@work_group, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19hdGhlbmEuSVdvcmtHcm91cFJlZiJ9XX19")), "workGroup") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
The description of the prepared statement.
43 44 45 |
# File 'athena/cfn_prepared_statement_props.rb', line 43 def description @description end |
#query_statement ⇒ String (readonly)
The query string for the prepared statement.
28 29 30 |
# File 'athena/cfn_prepared_statement_props.rb', line 28 def query_statement @query_statement end |
#statement_name ⇒ String (readonly)
The name of the prepared statement.
33 34 35 |
# File 'athena/cfn_prepared_statement_props.rb', line 33 def statement_name @statement_name end |
#work_group ⇒ String, AWSCDK::Interfaces::AWSAthena::IWorkGroupRef (readonly)
The workgroup to which the prepared statement belongs.
38 39 40 |
# File 'athena/cfn_prepared_statement_props.rb', line 38 def work_group @work_group end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'athena/cfn_prepared_statement_props.rb', line 45 def self.jsii_properties { :query_statement => "queryStatement", :statement_name => "statementName", :work_group => "workGroup", :description => "description", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'athena/cfn_prepared_statement_props.rb', line 54 def to_jsii result = {} result.merge!({ "queryStatement" => @query_statement, "statementName" => @statement_name, "workGroup" => @work_group, "description" => @description, }) result.compact end |