Class: Aws::S3::Types::InventoryConfiguration

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

Overview

Note:

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

{
  destination: { # required
    s3_bucket_destination: { # required
      account_id: "AccountId",
      bucket: "BucketName", # required
      format: "CSV", # required, accepts CSV, ORC
      prefix: "Prefix",
      encryption: {
        sses3: {
        },
        ssekms: {
          key_id: "SSEKMSKeyId", # required
        },
      },
    },
  },
  is_enabled: false, # required
  filter: {
    prefix: "Prefix", # required
  },
  id: "InventoryId", # required
  included_object_versions: "All", # required, accepts All, Current
  optional_fields: ["Size"], # accepts Size, LastModifiedDate, StorageClass, ETag, IsMultipartUploaded, ReplicationStatus, EncryptionStatus
  schedule: { # required
    frequency: "Daily", # required, accepts Daily, Weekly
  },
}

Instance Attribute Summary collapse

Instance Attribute Details

#destinationTypes::InventoryDestination

Contains information about where to publish the inventory results.



3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
# File 'lib/aws-sdk-s3/types.rb', line 3714

class InventoryConfiguration < Struct.new(
  :destination,
  :is_enabled,
  :filter,
  :id,
  :included_object_versions,
  :optional_fields,
  :schedule)
  include Aws::Structure
end

#filterTypes::InventoryFilter

Specifies an inventory filter. The inventory only includes objects that meet the filter’s criteria.



3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
# File 'lib/aws-sdk-s3/types.rb', line 3714

class InventoryConfiguration < Struct.new(
  :destination,
  :is_enabled,
  :filter,
  :id,
  :included_object_versions,
  :optional_fields,
  :schedule)
  include Aws::Structure
end

#idString

The ID used to identify the inventory configuration.

Returns:

  • (String)


3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
# File 'lib/aws-sdk-s3/types.rb', line 3714

class InventoryConfiguration < Struct.new(
  :destination,
  :is_enabled,
  :filter,
  :id,
  :included_object_versions,
  :optional_fields,
  :schedule)
  include Aws::Structure
end

#included_object_versionsString

Specifies which object version(s) to included in the inventory results.

Returns:

  • (String)


3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
# File 'lib/aws-sdk-s3/types.rb', line 3714

class InventoryConfiguration < Struct.new(
  :destination,
  :is_enabled,
  :filter,
  :id,
  :included_object_versions,
  :optional_fields,
  :schedule)
  include Aws::Structure
end

#is_enabledBoolean

Specifies whether the inventory is enabled or disabled.

Returns:

  • (Boolean)


3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
# File 'lib/aws-sdk-s3/types.rb', line 3714

class InventoryConfiguration < Struct.new(
  :destination,
  :is_enabled,
  :filter,
  :id,
  :included_object_versions,
  :optional_fields,
  :schedule)
  include Aws::Structure
end

#optional_fieldsArray<String>

Contains the optional fields that are included in the inventory results.

Returns:

  • (Array<String>)


3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
# File 'lib/aws-sdk-s3/types.rb', line 3714

class InventoryConfiguration < Struct.new(
  :destination,
  :is_enabled,
  :filter,
  :id,
  :included_object_versions,
  :optional_fields,
  :schedule)
  include Aws::Structure
end

#scheduleTypes::InventorySchedule

Specifies the schedule for generating inventory results.



3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
# File 'lib/aws-sdk-s3/types.rb', line 3714

class InventoryConfiguration < Struct.new(
  :destination,
  :is_enabled,
  :filter,
  :id,
  :included_object_versions,
  :optional_fields,
  :schedule)
  include Aws::Structure
end