Class: AWSCDK::ImageBuilder::CfnInfrastructureConfiguration::S3LogsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ImageBuilder::CfnInfrastructureConfiguration::S3LogsProperty
- Defined in:
- image_builder/cfn_infrastructure_configuration.rb
Overview
Amazon S3 logging configuration.
Instance Attribute Summary collapse
-
#s3_bucket_name ⇒ String?
readonly
The S3 bucket in which to store the logs.
-
#s3_key_prefix ⇒ String?
readonly
The Amazon S3 path to the bucket where the logs are stored.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(s3_bucket_name: nil, s3_key_prefix: nil) ⇒ S3LogsProperty
constructor
A new instance of S3LogsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(s3_bucket_name: nil, s3_key_prefix: nil) ⇒ S3LogsProperty
Returns a new instance of S3LogsProperty.
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_name ⇒ String? (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_prefix ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |