Class: AWSCDK::Connect::CfnInstanceStorageConfig::S3ConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
connect/cfn_instance_storage_config.rb

Overview

Information about the Amazon Simple Storage Service (Amazon S3) storage type.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket_name:, bucket_prefix:, encryption_config: nil) ⇒ S3ConfigProperty

Returns a new instance of S3ConfigProperty.

Parameters:



754
755
756
757
758
759
760
761
# File 'connect/cfn_instance_storage_config.rb', line 754

def initialize(bucket_name:, bucket_prefix:, encryption_config: nil)
  @bucket_name = bucket_name
  Jsii::Type.check_type(@bucket_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketName")
  @bucket_prefix = bucket_prefix
  Jsii::Type.check_type(@bucket_prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketPrefix")
  @encryption_config = encryption_config.is_a?(Hash) ? ::AWSCDK::Connect::CfnInstanceStorageConfig::EncryptionConfigProperty.new(**encryption_config.transform_keys(&:to_sym)) : encryption_config
  Jsii::Type.check_type(@encryption_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmbkluc3RhbmNlU3RvcmFnZUNvbmZpZy5FbmNyeXB0aW9uQ29uZmlnUHJvcGVydHkifV19fQ==")), "encryptionConfig") unless @encryption_config.nil?
end

Instance Attribute Details

#bucket_nameString (readonly)

The S3 bucket name.



767
768
769
# File 'connect/cfn_instance_storage_config.rb', line 767

def bucket_name
  @bucket_name
end

#bucket_prefixString (readonly)

The S3 bucket prefix.



772
773
774
# File 'connect/cfn_instance_storage_config.rb', line 772

def bucket_prefix
  @bucket_prefix
end

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

The Amazon S3 encryption configuration.



777
778
779
# File 'connect/cfn_instance_storage_config.rb', line 777

def encryption_config
  @encryption_config
end

Class Method Details

.jsii_propertiesObject



779
780
781
782
783
784
785
# File 'connect/cfn_instance_storage_config.rb', line 779

def self.jsii_properties
  {
    :bucket_name => "bucketName",
    :bucket_prefix => "bucketPrefix",
    :encryption_config => "encryptionConfig",
  }
end

Instance Method Details

#to_jsiiObject



787
788
789
790
791
792
793
794
795
# File 'connect/cfn_instance_storage_config.rb', line 787

def to_jsii
  result = {}
  result.merge!({
    "bucketName" => @bucket_name,
    "bucketPrefix" => @bucket_prefix,
    "encryptionConfig" => @encryption_config,
  })
  result.compact
end