aws-sdk-cloudwatchevidently 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,6 +30,8 @@ module Aws::CloudWatchEvidently
30
30
  CreateLaunchResponse = Shapes::StructureShape.new(name: 'CreateLaunchResponse')
31
31
  CreateProjectRequest = Shapes::StructureShape.new(name: 'CreateProjectRequest')
32
32
  CreateProjectResponse = Shapes::StructureShape.new(name: 'CreateProjectResponse')
33
+ CreateSegmentRequest = Shapes::StructureShape.new(name: 'CreateSegmentRequest')
34
+ CreateSegmentResponse = Shapes::StructureShape.new(name: 'CreateSegmentResponse')
33
35
  CwDimensionSafeName = Shapes::StringShape.new(name: 'CwDimensionSafeName')
34
36
  CwLogGroupSafeName = Shapes::StringShape.new(name: 'CwLogGroupSafeName')
35
37
  DeleteExperimentRequest = Shapes::StructureShape.new(name: 'DeleteExperimentRequest')
@@ -40,6 +42,8 @@ module Aws::CloudWatchEvidently
40
42
  DeleteLaunchResponse = Shapes::StructureShape.new(name: 'DeleteLaunchResponse')
41
43
  DeleteProjectRequest = Shapes::StructureShape.new(name: 'DeleteProjectRequest')
42
44
  DeleteProjectResponse = Shapes::StructureShape.new(name: 'DeleteProjectResponse')
45
+ DeleteSegmentRequest = Shapes::StructureShape.new(name: 'DeleteSegmentRequest')
46
+ DeleteSegmentResponse = Shapes::StructureShape.new(name: 'DeleteSegmentResponse')
43
47
  Description = Shapes::StringShape.new(name: 'Description')
44
48
  Double = Shapes::FloatShape.new(name: 'Double')
45
49
  DoubleValueList = Shapes::ListShape.new(name: 'DoubleValueList')
@@ -95,6 +99,8 @@ module Aws::CloudWatchEvidently
95
99
  GetLaunchResponse = Shapes::StructureShape.new(name: 'GetLaunchResponse')
96
100
  GetProjectRequest = Shapes::StructureShape.new(name: 'GetProjectRequest')
97
101
  GetProjectResponse = Shapes::StructureShape.new(name: 'GetProjectResponse')
102
+ GetSegmentRequest = Shapes::StructureShape.new(name: 'GetSegmentRequest')
103
+ GetSegmentResponse = Shapes::StructureShape.new(name: 'GetSegmentResponse')
98
104
  GroupName = Shapes::StringShape.new(name: 'GroupName')
99
105
  GroupToWeightMap = Shapes::MapShape.new(name: 'GroupToWeightMap')
100
106
  Integer = Shapes::IntegerShape.new(name: 'Integer')
@@ -121,6 +127,10 @@ module Aws::CloudWatchEvidently
121
127
  ListLaunchesResponse = Shapes::StructureShape.new(name: 'ListLaunchesResponse')
122
128
  ListProjectsRequest = Shapes::StructureShape.new(name: 'ListProjectsRequest')
123
129
  ListProjectsResponse = Shapes::StructureShape.new(name: 'ListProjectsResponse')
130
+ ListSegmentReferencesRequest = Shapes::StructureShape.new(name: 'ListSegmentReferencesRequest')
131
+ ListSegmentReferencesResponse = Shapes::StructureShape.new(name: 'ListSegmentReferencesResponse')
132
+ ListSegmentsRequest = Shapes::StructureShape.new(name: 'ListSegmentsRequest')
133
+ ListSegmentsResponse = Shapes::StructureShape.new(name: 'ListSegmentsResponse')
124
134
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
125
135
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
126
136
  Long = Shapes::IntegerShape.new(name: 'Long')
@@ -128,6 +138,8 @@ module Aws::CloudWatchEvidently
128
138
  MaxFeatures = Shapes::IntegerShape.new(name: 'MaxFeatures')
129
139
  MaxLaunches = Shapes::IntegerShape.new(name: 'MaxLaunches')
130
140
  MaxProjects = Shapes::IntegerShape.new(name: 'MaxProjects')
141
+ MaxReferences = Shapes::IntegerShape.new(name: 'MaxReferences')
142
+ MaxSegments = Shapes::IntegerShape.new(name: 'MaxSegments')
131
143
  MetricDefinition = Shapes::StructureShape.new(name: 'MetricDefinition')
132
144
  MetricDefinitionConfig = Shapes::StructureShape.new(name: 'MetricDefinitionConfig')
133
145
  MetricDefinitionConfigEventPatternString = Shapes::StringShape.new(name: 'MetricDefinitionConfigEventPatternString')
@@ -144,6 +156,7 @@ module Aws::CloudWatchEvidently
144
156
  NextToken = Shapes::StringShape.new(name: 'NextToken')
145
157
  OnlineAbConfig = Shapes::StructureShape.new(name: 'OnlineAbConfig')
146
158
  OnlineAbDefinition = Shapes::StructureShape.new(name: 'OnlineAbDefinition')
159
+ PrimitiveBoolean = Shapes::BooleanShape.new(name: 'PrimitiveBoolean')
147
160
  Project = Shapes::StructureShape.new(name: 'Project')
148
161
  ProjectArn = Shapes::StringShape.new(name: 'ProjectArn')
149
162
  ProjectDataDelivery = Shapes::StructureShape.new(name: 'ProjectDataDelivery')
@@ -158,6 +171,8 @@ module Aws::CloudWatchEvidently
158
171
  PutProjectEventsResultEntry = Shapes::StructureShape.new(name: 'PutProjectEventsResultEntry')
159
172
  PutProjectEventsResultEntryList = Shapes::ListShape.new(name: 'PutProjectEventsResultEntryList')
160
173
  RandomizationSalt = Shapes::StringShape.new(name: 'RandomizationSalt')
174
+ RefResource = Shapes::StructureShape.new(name: 'RefResource')
175
+ RefResourceList = Shapes::ListShape.new(name: 'RefResourceList')
161
176
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
162
177
  ResultsPeriod = Shapes::IntegerShape.new(name: 'ResultsPeriod')
163
178
  RuleName = Shapes::StringShape.new(name: 'RuleName')
@@ -172,6 +187,15 @@ module Aws::CloudWatchEvidently
172
187
  ScheduledSplitsLaunchConfig = Shapes::StructureShape.new(name: 'ScheduledSplitsLaunchConfig')
173
188
  ScheduledSplitsLaunchDefinition = Shapes::StructureShape.new(name: 'ScheduledSplitsLaunchDefinition')
174
189
  ScheduledStepList = Shapes::ListShape.new(name: 'ScheduledStepList')
190
+ Segment = Shapes::StructureShape.new(name: 'Segment')
191
+ SegmentArn = Shapes::StringShape.new(name: 'SegmentArn')
192
+ SegmentList = Shapes::ListShape.new(name: 'SegmentList')
193
+ SegmentName = Shapes::StringShape.new(name: 'SegmentName')
194
+ SegmentOverride = Shapes::StructureShape.new(name: 'SegmentOverride')
195
+ SegmentOverridesList = Shapes::ListShape.new(name: 'SegmentOverridesList')
196
+ SegmentPattern = Shapes::StringShape.new(name: 'SegmentPattern')
197
+ SegmentRef = Shapes::StringShape.new(name: 'SegmentRef')
198
+ SegmentReferenceResourceType = Shapes::StringShape.new(name: 'SegmentReferenceResourceType')
175
199
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
176
200
  ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
177
201
  SplitWeight = Shapes::IntegerShape.new(name: 'SplitWeight')
@@ -190,6 +214,8 @@ module Aws::CloudWatchEvidently
190
214
  TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
191
215
  TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
192
216
  TagValue = Shapes::StringShape.new(name: 'TagValue')
217
+ TestSegmentPatternRequest = Shapes::StructureShape.new(name: 'TestSegmentPatternRequest')
218
+ TestSegmentPatternResponse = Shapes::StructureShape.new(name: 'TestSegmentPatternResponse')
193
219
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
194
220
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
195
221
  TimestampList = Shapes::ListShape.new(name: 'TimestampList')
@@ -256,6 +282,7 @@ module Aws::CloudWatchEvidently
256
282
  CreateExperimentRequest.add_member(:project, Shapes::ShapeRef.new(shape: ProjectRef, required: true, location: "uri", location_name: "project"))
257
283
  CreateExperimentRequest.add_member(:randomization_salt, Shapes::ShapeRef.new(shape: RandomizationSalt, location_name: "randomizationSalt"))
258
284
  CreateExperimentRequest.add_member(:sampling_rate, Shapes::ShapeRef.new(shape: SplitWeight, location_name: "samplingRate", metadata: {"box"=>true}))
285
+ CreateExperimentRequest.add_member(:segment, Shapes::ShapeRef.new(shape: SegmentRef, location_name: "segment"))
259
286
  CreateExperimentRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
260
287
  CreateExperimentRequest.add_member(:treatments, Shapes::ShapeRef.new(shape: TreatmentConfigList, required: true, location_name: "treatments"))
261
288
  CreateExperimentRequest.struct_class = Types::CreateExperimentRequest
@@ -298,6 +325,15 @@ module Aws::CloudWatchEvidently
298
325
  CreateProjectResponse.add_member(:project, Shapes::ShapeRef.new(shape: Project, required: true, location_name: "project"))
299
326
  CreateProjectResponse.struct_class = Types::CreateProjectResponse
300
327
 
328
+ CreateSegmentRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
329
+ CreateSegmentRequest.add_member(:name, Shapes::ShapeRef.new(shape: SegmentName, required: true, location_name: "name"))
330
+ CreateSegmentRequest.add_member(:pattern, Shapes::ShapeRef.new(shape: SegmentPattern, required: true, location_name: "pattern", metadata: {"jsonvalue"=>true}))
331
+ CreateSegmentRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
332
+ CreateSegmentRequest.struct_class = Types::CreateSegmentRequest
333
+
334
+ CreateSegmentResponse.add_member(:segment, Shapes::ShapeRef.new(shape: Segment, required: true, location_name: "segment"))
335
+ CreateSegmentResponse.struct_class = Types::CreateSegmentResponse
336
+
301
337
  DeleteExperimentRequest.add_member(:experiment, Shapes::ShapeRef.new(shape: ExperimentName, required: true, location: "uri", location_name: "experiment"))
302
338
  DeleteExperimentRequest.add_member(:project, Shapes::ShapeRef.new(shape: ProjectRef, required: true, location: "uri", location_name: "project"))
303
339
  DeleteExperimentRequest.struct_class = Types::DeleteExperimentRequest
@@ -321,6 +357,11 @@ module Aws::CloudWatchEvidently
321
357
 
322
358
  DeleteProjectResponse.struct_class = Types::DeleteProjectResponse
323
359
 
360
+ DeleteSegmentRequest.add_member(:segment, Shapes::ShapeRef.new(shape: SegmentRef, required: true, location: "uri", location_name: "segment"))
361
+ DeleteSegmentRequest.struct_class = Types::DeleteSegmentRequest
362
+
363
+ DeleteSegmentResponse.struct_class = Types::DeleteSegmentResponse
364
+
324
365
  DoubleValueList.member = Shapes::ShapeRef.new(shape: Double)
325
366
 
326
367
  EntityOverrideMap.key = Shapes::ShapeRef.new(shape: EntityId)
@@ -381,6 +422,7 @@ module Aws::CloudWatchEvidently
381
422
  Experiment.add_member(:randomization_salt, Shapes::ShapeRef.new(shape: RandomizationSalt, location_name: "randomizationSalt"))
382
423
  Experiment.add_member(:sampling_rate, Shapes::ShapeRef.new(shape: SplitWeight, location_name: "samplingRate"))
383
424
  Experiment.add_member(:schedule, Shapes::ShapeRef.new(shape: ExperimentSchedule, location_name: "schedule"))
425
+ Experiment.add_member(:segment, Shapes::ShapeRef.new(shape: SegmentArn, location_name: "segment"))
384
426
  Experiment.add_member(:status, Shapes::ShapeRef.new(shape: ExperimentStatus, required: true, location_name: "status"))
385
427
  Experiment.add_member(:status_reason, Shapes::ShapeRef.new(shape: Description, location_name: "statusReason"))
386
428
  Experiment.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
@@ -495,6 +537,12 @@ module Aws::CloudWatchEvidently
495
537
  GetProjectResponse.add_member(:project, Shapes::ShapeRef.new(shape: Project, required: true, location_name: "project"))
496
538
  GetProjectResponse.struct_class = Types::GetProjectResponse
497
539
 
540
+ GetSegmentRequest.add_member(:segment, Shapes::ShapeRef.new(shape: SegmentRef, required: true, location: "uri", location_name: "segment"))
541
+ GetSegmentRequest.struct_class = Types::GetSegmentRequest
542
+
543
+ GetSegmentResponse.add_member(:segment, Shapes::ShapeRef.new(shape: Segment, required: true, location_name: "segment"))
544
+ GetSegmentResponse.struct_class = Types::GetSegmentResponse
545
+
498
546
  GroupToWeightMap.key = Shapes::ShapeRef.new(shape: GroupName)
499
547
  GroupToWeightMap.value = Shapes::ShapeRef.new(shape: SplitWeight)
500
548
 
@@ -576,6 +624,24 @@ module Aws::CloudWatchEvidently
576
624
  ListProjectsResponse.add_member(:projects, Shapes::ShapeRef.new(shape: ProjectSummariesList, location_name: "projects"))
577
625
  ListProjectsResponse.struct_class = Types::ListProjectsResponse
578
626
 
627
+ ListSegmentReferencesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxReferences, location: "querystring", location_name: "maxResults"))
628
+ ListSegmentReferencesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
629
+ ListSegmentReferencesRequest.add_member(:segment, Shapes::ShapeRef.new(shape: SegmentRef, required: true, location: "uri", location_name: "segment"))
630
+ ListSegmentReferencesRequest.add_member(:type, Shapes::ShapeRef.new(shape: SegmentReferenceResourceType, required: true, location: "querystring", location_name: "type"))
631
+ ListSegmentReferencesRequest.struct_class = Types::ListSegmentReferencesRequest
632
+
633
+ ListSegmentReferencesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
634
+ ListSegmentReferencesResponse.add_member(:referenced_by, Shapes::ShapeRef.new(shape: RefResourceList, location_name: "referencedBy"))
635
+ ListSegmentReferencesResponse.struct_class = Types::ListSegmentReferencesResponse
636
+
637
+ ListSegmentsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxSegments, location: "querystring", location_name: "maxResults"))
638
+ ListSegmentsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
639
+ ListSegmentsRequest.struct_class = Types::ListSegmentsRequest
640
+
641
+ ListSegmentsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
642
+ ListSegmentsResponse.add_member(:segments, Shapes::ShapeRef.new(shape: SegmentList, location_name: "segments"))
643
+ ListSegmentsResponse.struct_class = Types::ListSegmentsResponse
644
+
579
645
  ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
580
646
  ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
581
647
 
@@ -682,6 +748,17 @@ module Aws::CloudWatchEvidently
682
748
 
683
749
  PutProjectEventsResultEntryList.member = Shapes::ShapeRef.new(shape: PutProjectEventsResultEntry)
684
750
 
751
+ RefResource.add_member(:arn, Shapes::ShapeRef.new(shape: String, location_name: "arn"))
752
+ RefResource.add_member(:end_time, Shapes::ShapeRef.new(shape: String, location_name: "endTime"))
753
+ RefResource.add_member(:last_updated_on, Shapes::ShapeRef.new(shape: String, location_name: "lastUpdatedOn"))
754
+ RefResource.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
755
+ RefResource.add_member(:start_time, Shapes::ShapeRef.new(shape: String, location_name: "startTime"))
756
+ RefResource.add_member(:status, Shapes::ShapeRef.new(shape: String, location_name: "status"))
757
+ RefResource.add_member(:type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "type"))
758
+ RefResource.struct_class = Types::RefResource
759
+
760
+ RefResourceList.member = Shapes::ShapeRef.new(shape: RefResource)
761
+
685
762
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
686
763
  ResourceNotFoundException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, location_name: "resourceId"))
687
764
  ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "resourceType"))
@@ -696,10 +773,12 @@ module Aws::CloudWatchEvidently
696
773
  S3DestinationConfig.struct_class = Types::S3DestinationConfig
697
774
 
698
775
  ScheduledSplit.add_member(:group_weights, Shapes::ShapeRef.new(shape: GroupToWeightMap, location_name: "groupWeights"))
776
+ ScheduledSplit.add_member(:segment_overrides, Shapes::ShapeRef.new(shape: SegmentOverridesList, location_name: "segmentOverrides"))
699
777
  ScheduledSplit.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "startTime"))
700
778
  ScheduledSplit.struct_class = Types::ScheduledSplit
701
779
 
702
780
  ScheduledSplitConfig.add_member(:group_weights, Shapes::ShapeRef.new(shape: GroupToWeightMap, required: true, location_name: "groupWeights"))
781
+ ScheduledSplitConfig.add_member(:segment_overrides, Shapes::ShapeRef.new(shape: SegmentOverridesList, location_name: "segmentOverrides"))
703
782
  ScheduledSplitConfig.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "startTime"))
704
783
  ScheduledSplitConfig.struct_class = Types::ScheduledSplitConfig
705
784
 
@@ -713,6 +792,26 @@ module Aws::CloudWatchEvidently
713
792
 
714
793
  ScheduledStepList.member = Shapes::ShapeRef.new(shape: ScheduledSplit)
715
794
 
795
+ Segment.add_member(:arn, Shapes::ShapeRef.new(shape: SegmentArn, required: true, location_name: "arn"))
796
+ Segment.add_member(:created_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdTime"))
797
+ Segment.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
798
+ Segment.add_member(:experiment_count, Shapes::ShapeRef.new(shape: Long, location_name: "experimentCount"))
799
+ Segment.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "lastUpdatedTime"))
800
+ Segment.add_member(:launch_count, Shapes::ShapeRef.new(shape: Long, location_name: "launchCount"))
801
+ Segment.add_member(:name, Shapes::ShapeRef.new(shape: SegmentName, required: true, location_name: "name"))
802
+ Segment.add_member(:pattern, Shapes::ShapeRef.new(shape: SegmentPattern, required: true, location_name: "pattern", metadata: {"jsonvalue"=>true}))
803
+ Segment.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
804
+ Segment.struct_class = Types::Segment
805
+
806
+ SegmentList.member = Shapes::ShapeRef.new(shape: Segment)
807
+
808
+ SegmentOverride.add_member(:evaluation_order, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "evaluationOrder"))
809
+ SegmentOverride.add_member(:segment, Shapes::ShapeRef.new(shape: SegmentRef, required: true, location_name: "segment"))
810
+ SegmentOverride.add_member(:weights, Shapes::ShapeRef.new(shape: GroupToWeightMap, required: true, location_name: "weights"))
811
+ SegmentOverride.struct_class = Types::SegmentOverride
812
+
813
+ SegmentOverridesList.member = Shapes::ShapeRef.new(shape: SegmentOverride)
814
+
716
815
  ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
717
816
  ServiceQuotaExceededException.add_member(:quota_code, Shapes::ShapeRef.new(shape: String, location_name: "quotaCode"))
718
817
  ServiceQuotaExceededException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, location_name: "resourceId"))
@@ -767,6 +866,13 @@ module Aws::CloudWatchEvidently
767
866
 
768
867
  TagResourceResponse.struct_class = Types::TagResourceResponse
769
868
 
869
+ TestSegmentPatternRequest.add_member(:pattern, Shapes::ShapeRef.new(shape: SegmentPattern, required: true, location_name: "pattern", metadata: {"jsonvalue"=>true}))
870
+ TestSegmentPatternRequest.add_member(:payload, Shapes::ShapeRef.new(shape: JsonValue, required: true, location_name: "payload", metadata: {"jsonvalue"=>true}))
871
+ TestSegmentPatternRequest.struct_class = Types::TestSegmentPatternRequest
872
+
873
+ TestSegmentPatternResponse.add_member(:match, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "match"))
874
+ TestSegmentPatternResponse.struct_class = Types::TestSegmentPatternResponse
875
+
770
876
  ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
771
877
  ThrottlingException.add_member(:quota_code, Shapes::ShapeRef.new(shape: String, location_name: "quotaCode"))
772
878
  ThrottlingException.add_member(:service_code, Shapes::ShapeRef.new(shape: String, location_name: "serviceCode"))
@@ -806,7 +912,9 @@ module Aws::CloudWatchEvidently
806
912
  UpdateExperimentRequest.add_member(:online_ab_config, Shapes::ShapeRef.new(shape: OnlineAbConfig, location_name: "onlineAbConfig"))
807
913
  UpdateExperimentRequest.add_member(:project, Shapes::ShapeRef.new(shape: ProjectRef, required: true, location: "uri", location_name: "project"))
808
914
  UpdateExperimentRequest.add_member(:randomization_salt, Shapes::ShapeRef.new(shape: RandomizationSalt, location_name: "randomizationSalt"))
915
+ UpdateExperimentRequest.add_member(:remove_segment, Shapes::ShapeRef.new(shape: PrimitiveBoolean, location_name: "removeSegment"))
809
916
  UpdateExperimentRequest.add_member(:sampling_rate, Shapes::ShapeRef.new(shape: SplitWeight, location_name: "samplingRate", metadata: {"box"=>true}))
917
+ UpdateExperimentRequest.add_member(:segment, Shapes::ShapeRef.new(shape: SegmentRef, location_name: "segment"))
810
918
  UpdateExperimentRequest.add_member(:treatments, Shapes::ShapeRef.new(shape: TreatmentConfigList, location_name: "treatments"))
811
919
  UpdateExperimentRequest.struct_class = Types::UpdateExperimentRequest
812
920
 
@@ -974,6 +1082,18 @@ module Aws::CloudWatchEvidently
974
1082
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
975
1083
  end)
976
1084
 
1085
+ api.add_operation(:create_segment, Seahorse::Model::Operation.new.tap do |o|
1086
+ o.name = "CreateSegment"
1087
+ o.http_method = "POST"
1088
+ o.http_request_uri = "/segments"
1089
+ o.input = Shapes::ShapeRef.new(shape: CreateSegmentRequest)
1090
+ o.output = Shapes::ShapeRef.new(shape: CreateSegmentResponse)
1091
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1092
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1093
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1094
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1095
+ end)
1096
+
977
1097
  api.add_operation(:delete_experiment, Seahorse::Model::Operation.new.tap do |o|
978
1098
  o.name = "DeleteExperiment"
979
1099
  o.http_method = "DELETE"
@@ -1027,6 +1147,19 @@ module Aws::CloudWatchEvidently
1027
1147
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1028
1148
  end)
1029
1149
 
1150
+ api.add_operation(:delete_segment, Seahorse::Model::Operation.new.tap do |o|
1151
+ o.name = "DeleteSegment"
1152
+ o.http_method = "DELETE"
1153
+ o.http_request_uri = "/segments/{segment}"
1154
+ o.input = Shapes::ShapeRef.new(shape: DeleteSegmentRequest)
1155
+ o.output = Shapes::ShapeRef.new(shape: DeleteSegmentResponse)
1156
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1157
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1158
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1159
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1160
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1161
+ end)
1162
+
1030
1163
  api.add_operation(:evaluate_feature, Seahorse::Model::Operation.new.tap do |o|
1031
1164
  o.name = "EvaluateFeature"
1032
1165
  o.http_method = "POST"
@@ -1103,6 +1236,18 @@ module Aws::CloudWatchEvidently
1103
1236
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1104
1237
  end)
1105
1238
 
1239
+ api.add_operation(:get_segment, Seahorse::Model::Operation.new.tap do |o|
1240
+ o.name = "GetSegment"
1241
+ o.http_method = "GET"
1242
+ o.http_request_uri = "/segments/{segment}"
1243
+ o.input = Shapes::ShapeRef.new(shape: GetSegmentRequest)
1244
+ o.output = Shapes::ShapeRef.new(shape: GetSegmentResponse)
1245
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1246
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1247
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1248
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1249
+ end)
1250
+
1106
1251
  api.add_operation(:list_experiments, Seahorse::Model::Operation.new.tap do |o|
1107
1252
  o.name = "ListExperiments"
1108
1253
  o.http_method = "GET"
@@ -1172,6 +1317,41 @@ module Aws::CloudWatchEvidently
1172
1317
  )
1173
1318
  end)
1174
1319
 
1320
+ api.add_operation(:list_segment_references, Seahorse::Model::Operation.new.tap do |o|
1321
+ o.name = "ListSegmentReferences"
1322
+ o.http_method = "GET"
1323
+ o.http_request_uri = "/segments/{segment}/references"
1324
+ o.input = Shapes::ShapeRef.new(shape: ListSegmentReferencesRequest)
1325
+ o.output = Shapes::ShapeRef.new(shape: ListSegmentReferencesResponse)
1326
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1327
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1328
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1329
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1330
+ o[:pager] = Aws::Pager.new(
1331
+ limit_key: "max_results",
1332
+ tokens: {
1333
+ "next_token" => "next_token"
1334
+ }
1335
+ )
1336
+ end)
1337
+
1338
+ api.add_operation(:list_segments, Seahorse::Model::Operation.new.tap do |o|
1339
+ o.name = "ListSegments"
1340
+ o.http_method = "GET"
1341
+ o.http_request_uri = "/segments"
1342
+ o.input = Shapes::ShapeRef.new(shape: ListSegmentsRequest)
1343
+ o.output = Shapes::ShapeRef.new(shape: ListSegmentsResponse)
1344
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1345
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1346
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1347
+ o[:pager] = Aws::Pager.new(
1348
+ limit_key: "max_results",
1349
+ tokens: {
1350
+ "next_token" => "next_token"
1351
+ }
1352
+ )
1353
+ end)
1354
+
1175
1355
  api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
1176
1356
  o.name = "ListTagsForResource"
1177
1357
  o.http_method = "GET"
@@ -1263,6 +1443,17 @@ module Aws::CloudWatchEvidently
1263
1443
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1264
1444
  end)
1265
1445
 
1446
+ api.add_operation(:test_segment_pattern, Seahorse::Model::Operation.new.tap do |o|
1447
+ o.name = "TestSegmentPattern"
1448
+ o.http_method = "POST"
1449
+ o.http_request_uri = "/test-segment-pattern"
1450
+ o.input = Shapes::ShapeRef.new(shape: TestSegmentPatternRequest)
1451
+ o.output = Shapes::ShapeRef.new(shape: TestSegmentPatternResponse)
1452
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1453
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1454
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1455
+ end)
1456
+
1266
1457
  api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
1267
1458
  o.name = "UntagResource"
1268
1459
  o.http_method = "DELETE"
@@ -1318,6 +1509,7 @@ module Aws::CloudWatchEvidently
1318
1509
  o.input = Shapes::ShapeRef.new(shape: UpdateProjectRequest)
1319
1510
  o.output = Shapes::ShapeRef.new(shape: UpdateProjectResponse)
1320
1511
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1512
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1321
1513
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1322
1514
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1323
1515
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)