Class: AWSCDK::Athena::CfnWorkGroup::ManagedQueryResultsConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
athena/cfn_work_group.rb

Overview

The configuration for storing results in Athena owned storage, which includes whether this feature is enabled;

whether encryption configuration, if any, is used for encrypting query results.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled: nil, encryption_configuration: nil) ⇒ ManagedQueryResultsConfigurationProperty

Returns a new instance of ManagedQueryResultsConfigurationProperty.

Parameters:



1044
1045
1046
1047
1048
1049
# File 'athena/cfn_work_group.rb', line 1044

def initialize(enabled: nil, encryption_configuration: nil)
  @enabled = enabled
  Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") unless @enabled.nil?
  @encryption_configuration = encryption_configuration.is_a?(Hash) ? ::AWSCDK::Athena::CfnWorkGroup::ManagedStorageEncryptionConfigurationProperty.new(**encryption_configuration.transform_keys(&:to_sym)) : encryption_configuration
  Jsii::Type.check_type(@encryption_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hdGhlbmEuQ2ZuV29ya0dyb3VwLk1hbmFnZWRTdG9yYWdlRW5jcnlwdGlvbkNvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "encryptionConfiguration") unless @encryption_configuration.nil?
end

Instance Attribute Details

#enabledBoolean, ... (readonly)

If set to true, allows you to store query results in Athena owned storage.

If set to false, workgroup member stores query results in location specified under ResultConfiguration$OutputLocation . The default is false. A workgroup cannot have the ResultConfiguration$OutputLocation parameter when you set this field to true.



1057
1058
1059
# File 'athena/cfn_work_group.rb', line 1057

def enabled
  @enabled
end

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

If you encrypt query and calculation results in Athena owned storage, this field indicates the encryption option (for example, SSE_KMS or CSE_KMS) and key information.



1062
1063
1064
# File 'athena/cfn_work_group.rb', line 1062

def encryption_configuration
  @encryption_configuration
end

Class Method Details

.jsii_propertiesObject



1064
1065
1066
1067
1068
1069
# File 'athena/cfn_work_group.rb', line 1064

def self.jsii_properties
  {
    :enabled => "enabled",
    :encryption_configuration => "encryptionConfiguration",
  }
end

Instance Method Details

#to_jsiiObject



1071
1072
1073
1074
1075
1076
1077
1078
# File 'athena/cfn_work_group.rb', line 1071

def to_jsii
  result = {}
  result.merge!({
    "enabled" => @enabled,
    "encryptionConfiguration" => @encryption_configuration,
  })
  result.compact
end