Class: Aws::ElasticLoadBalancing::Types::AccessLog

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-elasticloadbalancing/types.rb

Overview

Note:

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

{
  enabled: false, # required
  s3_bucket_name: "S3BucketName",
  emit_interval: 1,
  s3_bucket_prefix: "AccessLogPrefix",
}

Information about the ‘AccessLog` attribute.

Instance Attribute Summary collapse

Instance Attribute Details

#emit_intervalInteger

The interval for publishing the access logs. You can specify an interval of either 5 minutes or 60 minutes.

Default: 60 minutes

Returns:

  • (Integer)


46
47
48
49
50
51
52
# File 'lib/aws-sdk-elasticloadbalancing/types.rb', line 46

class AccessLog < Struct.new(
  :enabled,
  :s3_bucket_name,
  :emit_interval,
  :s3_bucket_prefix)
  include Aws::Structure
end

#enabledBoolean

Specifies whether access logs are enabled for the load balancer.

Returns:

  • (Boolean)


46
47
48
49
50
51
52
# File 'lib/aws-sdk-elasticloadbalancing/types.rb', line 46

class AccessLog < Struct.new(
  :enabled,
  :s3_bucket_name,
  :emit_interval,
  :s3_bucket_prefix)
  include Aws::Structure
end

#s3_bucket_nameString

The name of the Amazon S3 bucket where the access logs are stored.

Returns:

  • (String)


46
47
48
49
50
51
52
# File 'lib/aws-sdk-elasticloadbalancing/types.rb', line 46

class AccessLog < Struct.new(
  :enabled,
  :s3_bucket_name,
  :emit_interval,
  :s3_bucket_prefix)
  include Aws::Structure
end

#s3_bucket_prefixString

The logical hierarchy you created for your Amazon S3 bucket, for example ‘my-bucket-prefix/prod`. If the prefix is not provided, the log is placed at the root level of the bucket.

Returns:

  • (String)


46
47
48
49
50
51
52
# File 'lib/aws-sdk-elasticloadbalancing/types.rb', line 46

class AccessLog < Struct.new(
  :enabled,
  :s3_bucket_name,
  :emit_interval,
  :s3_bucket_prefix)
  include Aws::Structure
end