Class: AWSCDK::S3::CfnBucket::AnnotationTableConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
s3/cfn_bucket.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configuration_state:, encryption_configuration: nil, role: nil, table_arn: nil, table_name: nil) ⇒ AnnotationTableConfigurationProperty

Returns a new instance of AnnotationTableConfigurationProperty.

Parameters:

  • configuration_state (String)

    Specifies whether annotation table configuration is enabled or disabled.

  • encryption_configuration (AWSCDK::IResolvable, AWSCDK::S3::CfnBucket::MetadataTableEncryptionConfigurationProperty, nil) (defaults to: nil)

    The encryption settings for an S3 Metadata journal table or inventory table configuration.

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

    The ARN of the IAM role that grants Amazon S3 Metadata permission to read annotations from your bucket.

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

    The ARN of the annotation table.

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

    The name of the annotation table.



1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
# File 's3/cfn_bucket.rb', line 1165

def initialize(configuration_state:, encryption_configuration: nil, role: nil, table_arn: nil, table_name: nil)
  @configuration_state = configuration_state
  Jsii::Type.check_type(@configuration_state, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "configurationState")
  @encryption_configuration = encryption_configuration.is_a?(Hash) ? ::AWSCDK::S3::CfnBucket::MetadataTableEncryptionConfigurationProperty.new(**encryption_configuration.transform_keys(&:to_sym)) : encryption_configuration
  Jsii::Type.check_type(@encryption_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zMy5DZm5CdWNrZXQuTWV0YWRhdGFUYWJsZUVuY3J5cHRpb25Db25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "encryptionConfiguration") unless @encryption_configuration.nil?
  @role = role
  Jsii::Type.check_type(@role, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "role") unless @role.nil?
  @table_arn = table_arn
  Jsii::Type.check_type(@table_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tableArn") unless @table_arn.nil?
  @table_name = table_name
  Jsii::Type.check_type(@table_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tableName") unless @table_name.nil?
end

Instance Attribute Details

#configuration_stateString (readonly)

Specifies whether annotation table configuration is enabled or disabled.



1182
1183
1184
# File 's3/cfn_bucket.rb', line 1182

def configuration_state
  @configuration_state
end

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

The encryption settings for an S3 Metadata journal table or inventory table configuration.



1187
1188
1189
# File 's3/cfn_bucket.rb', line 1187

def encryption_configuration
  @encryption_configuration
end

#roleString? (readonly)

The ARN of the IAM role that grants Amazon S3 Metadata permission to read annotations from your bucket.



1192
1193
1194
# File 's3/cfn_bucket.rb', line 1192

def role
  @role
end

#table_arnString? (readonly)

The ARN of the annotation table.



1197
1198
1199
# File 's3/cfn_bucket.rb', line 1197

def table_arn
  @table_arn
end

#table_nameString? (readonly)

The name of the annotation table.



1202
1203
1204
# File 's3/cfn_bucket.rb', line 1202

def table_name
  @table_name
end

Class Method Details

.jsii_propertiesObject



1204
1205
1206
1207
1208
1209
1210
1211
1212
# File 's3/cfn_bucket.rb', line 1204

def self.jsii_properties
  {
    :configuration_state => "configurationState",
    :encryption_configuration => "encryptionConfiguration",
    :role => "role",
    :table_arn => "tableArn",
    :table_name => "tableName",
  }
end

Instance Method Details

#to_jsiiObject



1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
# File 's3/cfn_bucket.rb', line 1214

def to_jsii
  result = {}
  result.merge!({
    "configurationState" => @configuration_state,
    "encryptionConfiguration" => @encryption_configuration,
    "role" => @role,
    "tableArn" => @table_arn,
    "tableName" => @table_name,
  })
  result.compact
end