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

Class: Aws::Pinpoint::Types::WriteSegmentRequest

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

Overview

Note:

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

{
  dimensions: {
    attributes: {
      "__string" => {
        attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
        values: ["__string"],
      },
    },
    behavior: {
      recency: {
        duration: "HR_24", # accepts HR_24, DAY_7, DAY_14, DAY_30
        recency_type: "ACTIVE", # accepts ACTIVE, INACTIVE
      },
    },
    demographic: {
      app_version: {
        dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
        values: ["__string"],
      },
      channel: {
        dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
        values: ["__string"],
      },
      device_type: {
        dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
        values: ["__string"],
      },
      make: {
        dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
        values: ["__string"],
      },
      model: {
        dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
        values: ["__string"],
      },
      platform: {
        dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
        values: ["__string"],
      },
    },
    location: {
      country: {
        dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
        values: ["__string"],
      },
    },
    user_attributes: {
      "__string" => {
        attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
        values: ["__string"],
      },
    },
  },
  name: "__string",
}

Segment definition.

Instance Attribute Summary collapse

Instance Attribute Details

#dimensionsTypes::SegmentDimensions

The segment dimensions attributes.



5349
5350
5351
5352
5353
# File 'gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/types.rb', line 5349

class WriteSegmentRequest < Struct.new(
  :dimensions,
  :name)
  include Aws::Structure
end

#nameString

The name of segment

Returns:

  • (String)


5349
5350
5351
5352
5353
# File 'gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/types.rb', line 5349

class WriteSegmentRequest < Struct.new(
  :dimensions,
  :name)
  include Aws::Structure
end