Class: AWSCDK::GameLift::CfnContainerFleet::LogConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
game_lift/cfn_container_fleet.rb

Overview

A method for collecting container logs for the fleet.

Amazon GameLift Servers saves all standard output for each container in logs, including game session logs. You can select from the following methods:

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(log_destination: nil, log_group_arn: nil, s3_bucket_name: nil) ⇒ LogConfigurationProperty

Returns a new instance of LogConfigurationProperty.

Parameters:

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

    The type of log collection to use for a fleet.

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

    If log destination is CLOUDWATCH , logs are sent to the specified log group in Amazon CloudWatch.

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

    If log destination is S3 , logs are sent to the specified Amazon S3 bucket name.



1238
1239
1240
1241
1242
1243
1244
1245
# File 'game_lift/cfn_container_fleet.rb', line 1238

def initialize(log_destination: nil, log_group_arn: nil, s3_bucket_name: nil)
  @log_destination = log_destination
  Jsii::Type.check_type(@log_destination, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logDestination") unless @log_destination.nil?
  @log_group_arn = log_group_arn
  Jsii::Type.check_type(@log_group_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logGroupArn") unless @log_group_arn.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?
end

Instance Attribute Details

#log_destinationString? (readonly)

The type of log collection to use for a fleet.

  • CLOUDWATCH -- (default value) Send logs to an Amazon CloudWatch log group that you define. Each container emits a log stream, which is organized in the log group.
  • S3 -- Store logs in an Amazon S3 bucket that you define. This bucket must reside in the fleet's home AWS Region.
  • NONE -- Don't collect container logs.


1255
1256
1257
# File 'game_lift/cfn_container_fleet.rb', line 1255

def log_destination
  @log_destination
end

#log_group_arnString? (readonly)

If log destination is CLOUDWATCH , logs are sent to the specified log group in Amazon CloudWatch.



1260
1261
1262
# File 'game_lift/cfn_container_fleet.rb', line 1260

def log_group_arn
  @log_group_arn
end

#s3_bucket_nameString? (readonly)

If log destination is S3 , logs are sent to the specified Amazon S3 bucket name.



1265
1266
1267
# File 'game_lift/cfn_container_fleet.rb', line 1265

def s3_bucket_name
  @s3_bucket_name
end

Class Method Details

.jsii_propertiesObject



1267
1268
1269
1270
1271
1272
1273
# File 'game_lift/cfn_container_fleet.rb', line 1267

def self.jsii_properties
  {
    :log_destination => "logDestination",
    :log_group_arn => "logGroupArn",
    :s3_bucket_name => "s3BucketName",
  }
end

Instance Method Details

#to_jsiiObject



1275
1276
1277
1278
1279
1280
1281
1282
1283
# File 'game_lift/cfn_container_fleet.rb', line 1275

def to_jsii
  result = {}
  result.merge!({
    "logDestination" => @log_destination,
    "logGroupArn" => @log_group_arn,
    "s3BucketName" => @s3_bucket_name,
  })
  result.compact
end