You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::CloudWatchLogs::Types::CreateLogGroupRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb

Overview

Note:

When making an API call, you may pass CreateLogGroupRequest data as a hash:

{
  log_group_name: "LogGroupName", # required
  kms_key_id: "KmsKeyId",
  tags: {
    "TagKey" => "TagValue",
  },
}

Instance Attribute Summary collapse

Instance Attribute Details

#kms_key_idString

The Amazon Resource Name (ARN) of the CMK to use when encrypting log data. For more information, see Amazon Resource Names - AWS Key Management Service (AWS KMS).

Returns:

  • (String)


162
163
164
165
166
167
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 162

class CreateLogGroupRequest < Struct.new(
  :log_group_name,
  :kms_key_id,
  :tags)
  include Aws::Structure
end

#log_group_nameString

The name of the log group.

Returns:

  • (String)


162
163
164
165
166
167
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 162

class CreateLogGroupRequest < Struct.new(
  :log_group_name,
  :kms_key_id,
  :tags)
  include Aws::Structure
end

#tagsHash<String,String>

The key-value pairs to use for the tags.

Returns:

  • (Hash<String,String>)


162
163
164
165
166
167
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 162

class CreateLogGroupRequest < Struct.new(
  :log_group_name,
  :kms_key_id,
  :tags)
  include Aws::Structure
end