Class: AWSCDK::CodeBuild::CfnProject::CloudWatchLogsConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
code_build/cfn_project.rb

Overview

CloudWatchLogs is a property of the AWS CodeBuild Project LogsConfig property type that specifies settings for CloudWatch logs generated by an AWS CodeBuild build.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status:, group_name: nil, stream_name: nil) ⇒ CloudWatchLogsConfigProperty

Returns a new instance of CloudWatchLogsConfigProperty.

Parameters:

  • status (String)

    The current status of the logs in CloudWatch Logs for a build project. Valid values are:.

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

    The group name of the logs in CloudWatch Logs.

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

    The prefix of the stream name of the CloudWatch Logs.



1136
1137
1138
1139
1140
1141
1142
1143
# File 'code_build/cfn_project.rb', line 1136

def initialize(status:, group_name: nil, stream_name: nil)
  @status = status
  Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status")
  @group_name = group_name
  Jsii::Type.check_type(@group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "groupName") unless @group_name.nil?
  @stream_name = stream_name
  Jsii::Type.check_type(@stream_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "streamName") unless @stream_name.nil?
end

Instance Attribute Details

#group_nameString? (readonly)

The group name of the logs in CloudWatch Logs.

For more information, see Working with Log Groups and Log Streams .



1159
1160
1161
# File 'code_build/cfn_project.rb', line 1159

def group_name
  @group_name
end

#statusString (readonly)

The current status of the logs in CloudWatch Logs for a build project. Valid values are:.

  • ENABLED : CloudWatch Logs are enabled for this build project.
  • DISABLED : CloudWatch Logs are not enabled for this build project.


1152
1153
1154
# File 'code_build/cfn_project.rb', line 1152

def status
  @status
end

#stream_nameString? (readonly)

The prefix of the stream name of the CloudWatch Logs.

For more information, see Working with Log Groups and Log Streams .



1166
1167
1168
# File 'code_build/cfn_project.rb', line 1166

def stream_name
  @stream_name
end

Class Method Details

.jsii_propertiesObject



1168
1169
1170
1171
1172
1173
1174
# File 'code_build/cfn_project.rb', line 1168

def self.jsii_properties
  {
    :status => "status",
    :group_name => "groupName",
    :stream_name => "streamName",
  }
end

Instance Method Details

#to_jsiiObject



1176
1177
1178
1179
1180
1181
1182
1183
1184
# File 'code_build/cfn_project.rb', line 1176

def to_jsii
  result = {}
  result.merge!({
    "status" => @status,
    "groupName" => @group_name,
    "streamName" => @stream_name,
  })
  result.compact
end