Class: AWSCDK::CodeBuild::CfnProject::S3LogsConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeBuild::CfnProject::S3LogsConfigProperty
- Defined in:
- code_build/cfn_project.rb
Overview
S3Logs is a property of the AWS CodeBuild Project LogsConfig property type that specifies settings for logs generated by an AWS CodeBuild build in an S3 bucket.
Instance Attribute Summary collapse
-
#encryption_disabled ⇒ Boolean, ...
readonly
Set to true if you do not want your S3 build log output encrypted.
-
#location ⇒ String?
readonly
The ARN of an S3 bucket and the path prefix for S3 logs.
-
#status ⇒ String
readonly
The current status of the S3 build logs.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(status:, encryption_disabled: nil, location: nil) ⇒ S3LogsConfigProperty
constructor
A new instance of S3LogsConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(status:, encryption_disabled: nil, location: nil) ⇒ S3LogsConfigProperty
Returns a new instance of S3LogsConfigProperty.
2067 2068 2069 2070 2071 2072 2073 2074 |
# File 'code_build/cfn_project.rb', line 2067 def initialize(status:, encryption_disabled: nil, location: nil) @status = status Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") @encryption_disabled = encryption_disabled Jsii::Type.check_type(@encryption_disabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "encryptionDisabled") unless @encryption_disabled.nil? @location = location Jsii::Type.check_type(@location, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "location") unless @location.nil? end |
Instance Attribute Details
#encryption_disabled ⇒ Boolean, ... (readonly)
Set to true if you do not want your S3 build log output encrypted.
By default S3 build logs are encrypted.
2090 2091 2092 |
# File 'code_build/cfn_project.rb', line 2090 def encryption_disabled @encryption_disabled end |
#location ⇒ String? (readonly)
The ARN of an S3 bucket and the path prefix for S3 logs.
If your Amazon S3 bucket name is my-bucket , and your path prefix is build-log , then acceptable formats are my-bucket/build-log or arn:aws:s3:::my-bucket/build-log .
2097 2098 2099 |
# File 'code_build/cfn_project.rb', line 2097 def location @location end |
#status ⇒ String (readonly)
The current status of the S3 build logs. Valid values are:.
ENABLED: S3 build logs are enabled for this build project.DISABLED: S3 build logs are not enabled for this build project.
2083 2084 2085 |
# File 'code_build/cfn_project.rb', line 2083 def status @status end |
Class Method Details
.jsii_properties ⇒ Object
2099 2100 2101 2102 2103 2104 2105 |
# File 'code_build/cfn_project.rb', line 2099 def self.jsii_properties { :status => "status", :encryption_disabled => "encryptionDisabled", :location => "location", } end |
Instance Method Details
#to_jsii ⇒ Object
2107 2108 2109 2110 2111 2112 2113 2114 2115 |
# File 'code_build/cfn_project.rb', line 2107 def to_jsii result = {} result.merge!({ "status" => @status, "encryptionDisabled" => @encryption_disabled, "location" => @location, }) result.compact end |