Class: AWSCDK::Lex::CfnBot::S3BucketLogDestinationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lex/cfn_bot.rb

Overview

Specifies an Amazon S3 bucket for logging audio conversations.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(log_prefix:, s3_bucket_arn:, kms_key_arn: nil) ⇒ S3BucketLogDestinationProperty

Returns a new instance of S3BucketLogDestinationProperty.

Parameters:

  • log_prefix (String)

    The S3 prefix to assign to audio log files.

  • s3_bucket_arn (String)

    The Amazon Resource Name (ARN) of an Amazon S3 bucket where audio log files are stored.

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

    The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key for encrypting audio log files stored in an Amazon S3 bucket.



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_arnString? (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_prefixString (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_arnString (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_propertiesObject



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_jsiiObject



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