Class: AWSCDK::S3::CfnBucket::InventoryTableConfigurationProperty

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

Overview

The inventory table configuration for an S3 Metadata configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of InventoryTableConfigurationProperty.

Parameters:

  • configuration_state (String)

    The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled.

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

    The encryption configuration for the inventory table.

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

    The Amazon Resource Name (ARN) for the inventory table.

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

    The name of the inventory table.



1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
# File 's3/cfn_bucket.rb', line 1958

def initialize(configuration_state:, encryption_configuration: 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?
  @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)

The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled.



1973
1974
1975
# File 's3/cfn_bucket.rb', line 1973

def configuration_state
  @configuration_state
end

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

The encryption configuration for the inventory table.



1978
1979
1980
# File 's3/cfn_bucket.rb', line 1978

def encryption_configuration
  @encryption_configuration
end

#table_arnString? (readonly)

The Amazon Resource Name (ARN) for the inventory table.



1983
1984
1985
# File 's3/cfn_bucket.rb', line 1983

def table_arn
  @table_arn
end

#table_nameString? (readonly)

The name of the inventory table.



1988
1989
1990
# File 's3/cfn_bucket.rb', line 1988

def table_name
  @table_name
end

Class Method Details

.jsii_propertiesObject



1990
1991
1992
1993
1994
1995
1996
1997
# File 's3/cfn_bucket.rb', line 1990

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

Instance Method Details

#to_jsiiObject



1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
# File 's3/cfn_bucket.rb', line 1999

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