Class: AWSCDK::ECS::CfnExpressGatewayService::ExpressGatewayServiceAWSLogsConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ecs/cfn_express_gateway_service.rb

Overview

Specifies the Amazon CloudWatch Logs configuration for the Express service container.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(log_group:, log_stream_prefix:) ⇒ ExpressGatewayServiceAWSLogsConfigurationProperty

Returns a new instance of ExpressGatewayServiceAWSLogsConfigurationProperty.

Parameters:

  • log_group (String)

    The name of the CloudWatch Logs log group to send container logs to.

  • log_stream_prefix (String)

    The prefix for the CloudWatch Logs log stream names.



1127
1128
1129
1130
1131
1132
# File 'ecs/cfn_express_gateway_service.rb', line 1127

def initialize(log_group:, log_stream_prefix:)
  @log_group = log_group
  Jsii::Type.check_type(@log_group, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logGroup")
  @log_stream_prefix = log_stream_prefix
  Jsii::Type.check_type(@log_stream_prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logStreamPrefix")
end

Instance Attribute Details

#log_groupString (readonly)

The name of the CloudWatch Logs log group to send container logs to.



1138
1139
1140
# File 'ecs/cfn_express_gateway_service.rb', line 1138

def log_group
  @log_group
end

#log_stream_prefixString (readonly)

Note:

Default: - "ecs"

The prefix for the CloudWatch Logs log stream names.

The default for an Express service is ecs .



1146
1147
1148
# File 'ecs/cfn_express_gateway_service.rb', line 1146

def log_stream_prefix
  @log_stream_prefix
end

Class Method Details

.jsii_propertiesObject



1148
1149
1150
1151
1152
1153
# File 'ecs/cfn_express_gateway_service.rb', line 1148

def self.jsii_properties
  {
    :log_group => "logGroup",
    :log_stream_prefix => "logStreamPrefix",
  }
end

Instance Method Details

#to_jsiiObject



1155
1156
1157
1158
1159
1160
1161
1162
# File 'ecs/cfn_express_gateway_service.rb', line 1155

def to_jsii
  result = {}
  result.merge!({
    "logGroup" => @log_group,
    "logStreamPrefix" => @log_stream_prefix,
  })
  result.compact
end