Class: AWSCDK::Interfaces::AWSAthena::PreparedStatementReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_athena/prepared_statement_reference.rb

Overview

A reference to a PreparedStatement resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(statement_name:, work_group:) ⇒ PreparedStatementReference

Returns a new instance of PreparedStatementReference.

Parameters:

  • statement_name (String)

    The StatementName of the PreparedStatement resource.

  • work_group (String)

    The WorkGroup of the PreparedStatement resource.



9
10
11
12
13
14
# File 'interfaces/aws_athena/prepared_statement_reference.rb', line 9

def initialize(statement_name:, work_group:)
  @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("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "workGroup")
end

Instance Attribute Details

#statement_nameString (readonly)

The StatementName of the PreparedStatement resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_athena/prepared_statement_reference.rb', line 19

def statement_name
  @statement_name
end

#work_groupString (readonly)

The WorkGroup of the PreparedStatement resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_athena/prepared_statement_reference.rb', line 23

def work_group
  @work_group
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_athena/prepared_statement_reference.rb', line 25

def self.jsii_properties
  {
    :statement_name => "statementName",
    :work_group => "workGroup",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'interfaces/aws_athena/prepared_statement_reference.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "statementName" => @statement_name,
    "workGroup" => @work_group,
  })
  result.compact
end