Class: AWSCDK::Timestream::CfnScheduledQuery::S3ConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
timestream/cfn_scheduled_query.rb

Overview

Details on S3 location for error reports that result from running a query.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket_name:, encryption_option: nil, object_key_prefix: nil) ⇒ S3ConfigurationProperty

Returns a new instance of S3ConfigurationProperty.

Parameters:

  • bucket_name (String)

    Name of the S3 bucket under which error reports will be created.

  • encryption_option (String, nil) (defaults to: nil)

    Encryption at rest options for the error reports.

  • object_key_prefix (String, nil) (defaults to: nil)

    Prefix for the error report key.



1002
1003
1004
1005
1006
1007
1008
1009
# File 'timestream/cfn_scheduled_query.rb', line 1002

def initialize(bucket_name:, encryption_option: nil, object_key_prefix: nil)
  @bucket_name = bucket_name
  Jsii::Type.check_type(@bucket_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketName")
  @encryption_option = encryption_option
  Jsii::Type.check_type(@encryption_option, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "encryptionOption") unless @encryption_option.nil?
  @object_key_prefix = object_key_prefix
  Jsii::Type.check_type(@object_key_prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "objectKeyPrefix") unless @object_key_prefix.nil?
end

Instance Attribute Details

#bucket_nameString (readonly)

Name of the S3 bucket under which error reports will be created.



1015
1016
1017
# File 'timestream/cfn_scheduled_query.rb', line 1015

def bucket_name
  @bucket_name
end

#encryption_optionString? (readonly)

Encryption at rest options for the error reports.

If no encryption option is specified, Timestream will choose SSE_S3 as default.



1022
1023
1024
# File 'timestream/cfn_scheduled_query.rb', line 1022

def encryption_option
  @encryption_option
end

#object_key_prefixString? (readonly)

Prefix for the error report key.

Timestream by default adds the following prefix to the error report path.



1029
1030
1031
# File 'timestream/cfn_scheduled_query.rb', line 1029

def object_key_prefix
  @object_key_prefix
end

Class Method Details

.jsii_propertiesObject



1031
1032
1033
1034
1035
1036
1037
# File 'timestream/cfn_scheduled_query.rb', line 1031

def self.jsii_properties
  {
    :bucket_name => "bucketName",
    :encryption_option => "encryptionOption",
    :object_key_prefix => "objectKeyPrefix",
  }
end

Instance Method Details

#to_jsiiObject



1039
1040
1041
1042
1043
1044
1045
1046
1047
# File 'timestream/cfn_scheduled_query.rb', line 1039

def to_jsii
  result = {}
  result.merge!({
    "bucketName" => @bucket_name,
    "encryptionOption" => @encryption_option,
    "objectKeyPrefix" => @object_key_prefix,
  })
  result.compact
end