Class: AWSCDK::SSM::CfnMaintenanceWindowTask::CloudWatchOutputConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ssm/cfn_maintenance_window_task.rb

Overview

Configuration options for sending command output to Amazon CloudWatch Logs.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cloud_watch_log_group_name: nil, cloud_watch_output_enabled: nil) ⇒ CloudWatchOutputConfigProperty

Returns a new instance of CloudWatchOutputConfigProperty.

Parameters:

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

    The name of the CloudWatch Logs log group where you want to send command output.

  • cloud_watch_output_enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Enables Systems Manager to send command output to CloudWatch Logs.



681
682
683
684
685
686
# File 'ssm/cfn_maintenance_window_task.rb', line 681

def initialize(cloud_watch_log_group_name: nil, cloud_watch_output_enabled: nil)
  @cloud_watch_log_group_name = cloud_watch_log_group_name
  Jsii::Type.check_type(@cloud_watch_log_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cloudWatchLogGroupName") unless @cloud_watch_log_group_name.nil?
  @cloud_watch_output_enabled = cloud_watch_output_enabled
  Jsii::Type.check_type(@cloud_watch_output_enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "cloudWatchOutputEnabled") unless @cloud_watch_output_enabled.nil?
end

Instance Attribute Details

#cloud_watch_log_group_nameString? (readonly)

The name of the CloudWatch Logs log group where you want to send command output.

If you don't specify a group name, AWS Systems Manager automatically creates a log group for you. The log group uses the following naming format:

aws/ssm/ *SystemsManagerDocumentName*



696
697
698
# File 'ssm/cfn_maintenance_window_task.rb', line 696

def cloud_watch_log_group_name
  @cloud_watch_log_group_name
end

#cloud_watch_output_enabledBoolean, ... (readonly)

Enables Systems Manager to send command output to CloudWatch Logs.



701
702
703
# File 'ssm/cfn_maintenance_window_task.rb', line 701

def cloud_watch_output_enabled
  @cloud_watch_output_enabled
end

Class Method Details

.jsii_propertiesObject



703
704
705
706
707
708
# File 'ssm/cfn_maintenance_window_task.rb', line 703

def self.jsii_properties
  {
    :cloud_watch_log_group_name => "cloudWatchLogGroupName",
    :cloud_watch_output_enabled => "cloudWatchOutputEnabled",
  }
end

Instance Method Details

#to_jsiiObject



710
711
712
713
714
715
716
717
# File 'ssm/cfn_maintenance_window_task.rb', line 710

def to_jsii
  result = {}
  result.merge!({
    "cloudWatchLogGroupName" => @cloud_watch_log_group_name,
    "cloudWatchOutputEnabled" => @cloud_watch_output_enabled,
  })
  result.compact
end