Class: AWSCDK::ImageBuilder::CfnInfrastructureConfiguration::S3LogsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
image_builder/cfn_infrastructure_configuration.rb

Overview

Amazon S3 logging configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s3_bucket_name: nil, s3_key_prefix: nil) ⇒ S3LogsProperty

Returns a new instance of S3LogsProperty.

Parameters:

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

    The S3 bucket in which to store the logs.

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

    The Amazon S3 path to the bucket where the logs are stored.



861
862
863
864
865
866
# File 'image_builder/cfn_infrastructure_configuration.rb', line 861

def initialize(s3_bucket_name: nil, s3_key_prefix: nil)
  @s3_bucket_name = s3_bucket_name
  Jsii::Type.check_type(@s3_bucket_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3BucketName") unless @s3_bucket_name.nil?
  @s3_key_prefix = s3_key_prefix
  Jsii::Type.check_type(@s3_key_prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3KeyPrefix") unless @s3_key_prefix.nil?
end

Instance Attribute Details

#s3_bucket_nameString? (readonly)

The S3 bucket in which to store the logs.



872
873
874
# File 'image_builder/cfn_infrastructure_configuration.rb', line 872

def s3_bucket_name
  @s3_bucket_name
end

#s3_key_prefixString? (readonly)

The Amazon S3 path to the bucket where the logs are stored.



877
878
879
# File 'image_builder/cfn_infrastructure_configuration.rb', line 877

def s3_key_prefix
  @s3_key_prefix
end

Class Method Details

.jsii_propertiesObject



879
880
881
882
883
884
# File 'image_builder/cfn_infrastructure_configuration.rb', line 879

def self.jsii_properties
  {
    :s3_bucket_name => "s3BucketName",
    :s3_key_prefix => "s3KeyPrefix",
  }
end

Instance Method Details

#to_jsiiObject



886
887
888
889
890
891
892
893
# File 'image_builder/cfn_infrastructure_configuration.rb', line 886

def to_jsii
  result = {}
  result.merge!({
    "s3BucketName" => @s3_bucket_name,
    "s3KeyPrefix" => @s3_key_prefix,
  })
  result.compact
end