Class: AWSCDK::Lex::CfnBot::S3BucketLogDestinationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::S3BucketLogDestinationProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Specifies an Amazon S3 bucket for logging audio conversations.
Instance Attribute Summary collapse
-
#kms_key_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key for encrypting audio log files stored in an Amazon S3 bucket.
-
#log_prefix ⇒ String
readonly
The S3 prefix to assign to audio log files.
-
#s3_bucket_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of an Amazon S3 bucket where audio log files are stored.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(log_prefix:, s3_bucket_arn:, kms_key_arn: nil) ⇒ S3BucketLogDestinationProperty
constructor
A new instance of S3BucketLogDestinationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(log_prefix:, s3_bucket_arn:, kms_key_arn: nil) ⇒ S3BucketLogDestinationProperty
Returns a new instance of S3BucketLogDestinationProperty.
4913 4914 4915 4916 4917 4918 4919 4920 |
# File 'lex/cfn_bot.rb', line 4913 def initialize(log_prefix:, s3_bucket_arn:, kms_key_arn: nil) @log_prefix = log_prefix Jsii::Type.check_type(@log_prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logPrefix") @s3_bucket_arn = s3_bucket_arn Jsii::Type.check_type(@s3_bucket_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3BucketArn") @kms_key_arn = kms_key_arn Jsii::Type.check_type(@kms_key_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyArn") unless @kms_key_arn.nil? end |
Instance Attribute Details
#kms_key_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key for encrypting audio log files stored in an Amazon S3 bucket.
4936 4937 4938 |
# File 'lex/cfn_bot.rb', line 4936 def kms_key_arn @kms_key_arn end |
#log_prefix ⇒ String (readonly)
The S3 prefix to assign to audio log files.
4926 4927 4928 |
# File 'lex/cfn_bot.rb', line 4926 def log_prefix @log_prefix end |
#s3_bucket_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of an Amazon S3 bucket where audio log files are stored.
4931 4932 4933 |
# File 'lex/cfn_bot.rb', line 4931 def s3_bucket_arn @s3_bucket_arn end |
Class Method Details
.jsii_properties ⇒ Object
4938 4939 4940 4941 4942 4943 4944 |
# File 'lex/cfn_bot.rb', line 4938 def self.jsii_properties { :log_prefix => "logPrefix", :s3_bucket_arn => "s3BucketArn", :kms_key_arn => "kmsKeyArn", } end |
Instance Method Details
#to_jsii ⇒ Object
4946 4947 4948 4949 4950 4951 4952 4953 4954 |
# File 'lex/cfn_bot.rb', line 4946 def to_jsii result = {} result.merge!({ "logPrefix" => @log_prefix, "s3BucketArn" => @s3_bucket_arn, "kmsKeyArn" => @kms_key_arn, }) result.compact end |