Class: Aws::Pinpoint::Types::UpdateSegmentRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::Pinpoint::Types::UpdateSegmentRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-pinpoint/types.rb
Overview
Note:
When making an API call, you may pass UpdateSegmentRequest data as a hash:
{
application_id: "__string", # required
segment_id: "__string", # required
write_segment_request: { # required
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"],
},
gps_point: {
coordinates: {
latitude: 1.0,
longitude: 1.0,
},
range_in_kilometers: 1.0,
},
},
metrics: {
"__string" => {
comparison_operator: "__string",
value: 1.0,
},
},
user_attributes: {
"__string" => {
attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"],
},
},
},
name: "__string",
segment_groups: {
groups: [
{
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"],
},
gps_point: {
coordinates: {
latitude: 1.0,
longitude: 1.0,
},
range_in_kilometers: 1.0,
},
},
metrics: {
"__string" => {
comparison_operator: "__string",
value: 1.0,
},
},
user_attributes: {
"__string" => {
attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"],
},
},
},
],
source_segments: [
{
id: "__string",
version: 1,
},
],
source_type: "ALL", # accepts ALL, ANY, NONE
type: "ALL", # accepts ALL, ANY, NONE
},
],
include: "ALL", # accepts ALL, ANY, NONE
},
},
}
Instance Attribute Summary collapse
- #application_id ⇒ String
- #segment_id ⇒ String
-
#write_segment_request ⇒ Types::WriteSegmentRequest
Segment definition.
Instance Attribute Details
#application_id ⇒ String
10206 10207 10208 10209 10210 10211 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 10206 class UpdateSegmentRequest < Struct.new( :application_id, :segment_id, :write_segment_request) include Aws::Structure end |
#segment_id ⇒ String
10206 10207 10208 10209 10210 10211 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 10206 class UpdateSegmentRequest < Struct.new( :application_id, :segment_id, :write_segment_request) include Aws::Structure end |
#write_segment_request ⇒ Types::WriteSegmentRequest
Segment definition.
10206 10207 10208 10209 10210 10211 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 10206 class UpdateSegmentRequest < Struct.new( :application_id, :segment_id, :write_segment_request) include Aws::Structure end |