Class: AWSCDK::ImageBuilder::CfnImage::ImageLoggingConfigurationProperty

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

Overview

The logging configuration that's defined for the image.

Image Builder uses the defined settings to direct execution log output during image creation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(log_group_name: nil) ⇒ ImageLoggingConfigurationProperty

Returns a new instance of ImageLoggingConfigurationProperty.

Parameters:

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

    The log group name that Image Builder uses for image creation.



833
834
835
836
# File 'image_builder/cfn_image.rb', line 833

def initialize(log_group_name: nil)
  @log_group_name = log_group_name
  Jsii::Type.check_type(@log_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logGroupName") unless @log_group_name.nil?
end

Instance Attribute Details

#log_group_nameString? (readonly)

The log group name that Image Builder uses for image creation.

If not specified, the log group name defaults to /aws/imagebuilder/image-name .



844
845
846
# File 'image_builder/cfn_image.rb', line 844

def log_group_name
  @log_group_name
end

Class Method Details

.jsii_propertiesObject



846
847
848
849
850
# File 'image_builder/cfn_image.rb', line 846

def self.jsii_properties
  {
    :log_group_name => "logGroupName",
  }
end

Instance Method Details

#to_jsiiObject



852
853
854
855
856
857
858
# File 'image_builder/cfn_image.rb', line 852

def to_jsii
  result = {}
  result.merge!({
    "logGroupName" => @log_group_name,
  })
  result.compact
end