aws-sdk-eventbridge 1.37.0 → 1.38.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -80,6 +80,8 @@ module Aws::EventBridge
80
80
  CreateConnectionOAuthRequestParameters = Shapes::StructureShape.new(name: 'CreateConnectionOAuthRequestParameters')
81
81
  CreateConnectionRequest = Shapes::StructureShape.new(name: 'CreateConnectionRequest')
82
82
  CreateConnectionResponse = Shapes::StructureShape.new(name: 'CreateConnectionResponse')
83
+ CreateEndpointRequest = Shapes::StructureShape.new(name: 'CreateEndpointRequest')
84
+ CreateEndpointResponse = Shapes::StructureShape.new(name: 'CreateEndpointResponse')
83
85
  CreateEventBusRequest = Shapes::StructureShape.new(name: 'CreateEventBusRequest')
84
86
  CreateEventBusResponse = Shapes::StructureShape.new(name: 'CreateEventBusResponse')
85
87
  CreatePartnerEventSourceRequest = Shapes::StructureShape.new(name: 'CreatePartnerEventSourceRequest')
@@ -97,6 +99,8 @@ module Aws::EventBridge
97
99
  DeleteArchiveResponse = Shapes::StructureShape.new(name: 'DeleteArchiveResponse')
98
100
  DeleteConnectionRequest = Shapes::StructureShape.new(name: 'DeleteConnectionRequest')
99
101
  DeleteConnectionResponse = Shapes::StructureShape.new(name: 'DeleteConnectionResponse')
102
+ DeleteEndpointRequest = Shapes::StructureShape.new(name: 'DeleteEndpointRequest')
103
+ DeleteEndpointResponse = Shapes::StructureShape.new(name: 'DeleteEndpointResponse')
100
104
  DeleteEventBusRequest = Shapes::StructureShape.new(name: 'DeleteEventBusRequest')
101
105
  DeletePartnerEventSourceRequest = Shapes::StructureShape.new(name: 'DeletePartnerEventSourceRequest')
102
106
  DeleteRuleRequest = Shapes::StructureShape.new(name: 'DeleteRuleRequest')
@@ -106,6 +110,8 @@ module Aws::EventBridge
106
110
  DescribeArchiveResponse = Shapes::StructureShape.new(name: 'DescribeArchiveResponse')
107
111
  DescribeConnectionRequest = Shapes::StructureShape.new(name: 'DescribeConnectionRequest')
108
112
  DescribeConnectionResponse = Shapes::StructureShape.new(name: 'DescribeConnectionResponse')
113
+ DescribeEndpointRequest = Shapes::StructureShape.new(name: 'DescribeEndpointRequest')
114
+ DescribeEndpointResponse = Shapes::StructureShape.new(name: 'DescribeEndpointResponse')
109
115
  DescribeEventBusRequest = Shapes::StructureShape.new(name: 'DescribeEventBusRequest')
110
116
  DescribeEventBusResponse = Shapes::StructureShape.new(name: 'DescribeEventBusResponse')
111
117
  DescribeEventSourceRequest = Shapes::StructureShape.new(name: 'DescribeEventSourceRequest')
@@ -119,6 +125,17 @@ module Aws::EventBridge
119
125
  DisableRuleRequest = Shapes::StructureShape.new(name: 'DisableRuleRequest')
120
126
  EcsParameters = Shapes::StructureShape.new(name: 'EcsParameters')
121
127
  EnableRuleRequest = Shapes::StructureShape.new(name: 'EnableRuleRequest')
128
+ Endpoint = Shapes::StructureShape.new(name: 'Endpoint')
129
+ EndpointArn = Shapes::StringShape.new(name: 'EndpointArn')
130
+ EndpointDescription = Shapes::StringShape.new(name: 'EndpointDescription')
131
+ EndpointEventBus = Shapes::StructureShape.new(name: 'EndpointEventBus')
132
+ EndpointEventBusList = Shapes::ListShape.new(name: 'EndpointEventBusList')
133
+ EndpointId = Shapes::StringShape.new(name: 'EndpointId')
134
+ EndpointList = Shapes::ListShape.new(name: 'EndpointList')
135
+ EndpointName = Shapes::StringShape.new(name: 'EndpointName')
136
+ EndpointState = Shapes::StringShape.new(name: 'EndpointState')
137
+ EndpointStateReason = Shapes::StringShape.new(name: 'EndpointStateReason')
138
+ EndpointUrl = Shapes::StringShape.new(name: 'EndpointUrl')
122
139
  ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
123
140
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
124
141
  EventBus = Shapes::StructureShape.new(name: 'EventBus')
@@ -135,11 +152,15 @@ module Aws::EventBridge
135
152
  EventSourceNamePrefix = Shapes::StringShape.new(name: 'EventSourceNamePrefix')
136
153
  EventSourceState = Shapes::StringShape.new(name: 'EventSourceState')
137
154
  EventTime = Shapes::TimestampShape.new(name: 'EventTime')
155
+ FailoverConfig = Shapes::StructureShape.new(name: 'FailoverConfig')
138
156
  HeaderKey = Shapes::StringShape.new(name: 'HeaderKey')
139
157
  HeaderParametersMap = Shapes::MapShape.new(name: 'HeaderParametersMap')
140
158
  HeaderValue = Shapes::StringShape.new(name: 'HeaderValue')
159
+ HealthCheck = Shapes::StringShape.new(name: 'HealthCheck')
160
+ HomeRegion = Shapes::StringShape.new(name: 'HomeRegion')
141
161
  HttpParameters = Shapes::StructureShape.new(name: 'HttpParameters')
142
162
  HttpsEndpoint = Shapes::StringShape.new(name: 'HttpsEndpoint')
163
+ IamRoleArn = Shapes::StringShape.new(name: 'IamRoleArn')
143
164
  IllegalStatusException = Shapes::StructureShape.new(name: 'IllegalStatusException')
144
165
  InputTransformer = Shapes::StructureShape.new(name: 'InputTransformer')
145
166
  InputTransformerPathKey = Shapes::StringShape.new(name: 'InputTransformerPathKey')
@@ -158,6 +179,8 @@ module Aws::EventBridge
158
179
  ListArchivesResponse = Shapes::StructureShape.new(name: 'ListArchivesResponse')
159
180
  ListConnectionsRequest = Shapes::StructureShape.new(name: 'ListConnectionsRequest')
160
181
  ListConnectionsResponse = Shapes::StructureShape.new(name: 'ListConnectionsResponse')
182
+ ListEndpointsRequest = Shapes::StructureShape.new(name: 'ListEndpointsRequest')
183
+ ListEndpointsResponse = Shapes::StructureShape.new(name: 'ListEndpointsResponse')
161
184
  ListEventBusesRequest = Shapes::StructureShape.new(name: 'ListEventBusesRequest')
162
185
  ListEventBusesResponse = Shapes::StructureShape.new(name: 'ListEventBusesResponse')
163
186
  ListEventSourcesRequest = Shapes::StructureShape.new(name: 'ListEventSourcesRequest')
@@ -184,6 +207,7 @@ module Aws::EventBridge
184
207
  MessageGroupId = Shapes::StringShape.new(name: 'MessageGroupId')
185
208
  NetworkConfiguration = Shapes::StructureShape.new(name: 'NetworkConfiguration')
186
209
  NextToken = Shapes::StringShape.new(name: 'NextToken')
210
+ NonPartnerEventBusArn = Shapes::StringShape.new(name: 'NonPartnerEventBusArn')
187
211
  NonPartnerEventBusName = Shapes::StringShape.new(name: 'NonPartnerEventBusName')
188
212
  NonPartnerEventBusNameOrArn = Shapes::StringShape.new(name: 'NonPartnerEventBusNameOrArn')
189
213
  OperationDisabledException = Shapes::StructureShape.new(name: 'OperationDisabledException')
@@ -203,6 +227,7 @@ module Aws::EventBridge
203
227
  PlacementStrategyField = Shapes::StringShape.new(name: 'PlacementStrategyField')
204
228
  PlacementStrategyType = Shapes::StringShape.new(name: 'PlacementStrategyType')
205
229
  PolicyLengthExceededException = Shapes::StructureShape.new(name: 'PolicyLengthExceededException')
230
+ Primary = Shapes::StructureShape.new(name: 'Primary')
206
231
  Principal = Shapes::StringShape.new(name: 'Principal')
207
232
  PropagateTags = Shapes::StringShape.new(name: 'PropagateTags')
208
233
  PutEventsRequest = Shapes::StructureShape.new(name: 'PutEventsRequest')
@@ -244,12 +269,16 @@ module Aws::EventBridge
244
269
  ReplayName = Shapes::StringShape.new(name: 'ReplayName')
245
270
  ReplayState = Shapes::StringShape.new(name: 'ReplayState')
246
271
  ReplayStateReason = Shapes::StringShape.new(name: 'ReplayStateReason')
272
+ ReplicationConfig = Shapes::StructureShape.new(name: 'ReplicationConfig')
273
+ ReplicationState = Shapes::StringShape.new(name: 'ReplicationState')
247
274
  ResourceAlreadyExistsException = Shapes::StructureShape.new(name: 'ResourceAlreadyExistsException')
248
275
  ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
249
276
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
250
277
  RetentionDays = Shapes::IntegerShape.new(name: 'RetentionDays')
251
278
  RetryPolicy = Shapes::StructureShape.new(name: 'RetryPolicy')
252
279
  RoleArn = Shapes::StringShape.new(name: 'RoleArn')
280
+ Route = Shapes::StringShape.new(name: 'Route')
281
+ RoutingConfig = Shapes::StructureShape.new(name: 'RoutingConfig')
253
282
  Rule = Shapes::StructureShape.new(name: 'Rule')
254
283
  RuleArn = Shapes::StringShape.new(name: 'RuleArn')
255
284
  RuleDescription = Shapes::StringShape.new(name: 'RuleDescription')
@@ -269,6 +298,7 @@ module Aws::EventBridge
269
298
  SageMakerPipelineParameterValue = Shapes::StringShape.new(name: 'SageMakerPipelineParameterValue')
270
299
  SageMakerPipelineParameters = Shapes::StructureShape.new(name: 'SageMakerPipelineParameters')
271
300
  ScheduleExpression = Shapes::StringShape.new(name: 'ScheduleExpression')
301
+ Secondary = Shapes::StructureShape.new(name: 'Secondary')
272
302
  SecretsManagerSecretArn = Shapes::StringShape.new(name: 'SecretsManagerSecretArn')
273
303
  Sql = Shapes::StringShape.new(name: 'Sql')
274
304
  SqsParameters = Shapes::StructureShape.new(name: 'SqsParameters')
@@ -312,6 +342,8 @@ module Aws::EventBridge
312
342
  UpdateConnectionOAuthRequestParameters = Shapes::StructureShape.new(name: 'UpdateConnectionOAuthRequestParameters')
313
343
  UpdateConnectionRequest = Shapes::StructureShape.new(name: 'UpdateConnectionRequest')
314
344
  UpdateConnectionResponse = Shapes::StructureShape.new(name: 'UpdateConnectionResponse')
345
+ UpdateEndpointRequest = Shapes::StructureShape.new(name: 'UpdateEndpointRequest')
346
+ UpdateEndpointResponse = Shapes::StructureShape.new(name: 'UpdateEndpointResponse')
315
347
 
316
348
  ActivateEventSourceRequest.add_member(:name, Shapes::ShapeRef.new(shape: EventSourceName, required: true, location_name: "Name"))
317
349
  ActivateEventSourceRequest.struct_class = Types::ActivateEventSourceRequest
@@ -502,6 +534,23 @@ module Aws::EventBridge
502
534
  CreateConnectionResponse.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModifiedTime"))
503
535
  CreateConnectionResponse.struct_class = Types::CreateConnectionResponse
504
536
 
537
+ CreateEndpointRequest.add_member(:name, Shapes::ShapeRef.new(shape: EndpointName, required: true, location_name: "Name"))
538
+ CreateEndpointRequest.add_member(:description, Shapes::ShapeRef.new(shape: EndpointDescription, location_name: "Description"))
539
+ CreateEndpointRequest.add_member(:routing_config, Shapes::ShapeRef.new(shape: RoutingConfig, required: true, location_name: "RoutingConfig"))
540
+ CreateEndpointRequest.add_member(:replication_config, Shapes::ShapeRef.new(shape: ReplicationConfig, location_name: "ReplicationConfig"))
541
+ CreateEndpointRequest.add_member(:event_buses, Shapes::ShapeRef.new(shape: EndpointEventBusList, required: true, location_name: "EventBuses"))
542
+ CreateEndpointRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "RoleArn"))
543
+ CreateEndpointRequest.struct_class = Types::CreateEndpointRequest
544
+
545
+ CreateEndpointResponse.add_member(:name, Shapes::ShapeRef.new(shape: EndpointName, location_name: "Name"))
546
+ CreateEndpointResponse.add_member(:arn, Shapes::ShapeRef.new(shape: EndpointArn, location_name: "Arn"))
547
+ CreateEndpointResponse.add_member(:routing_config, Shapes::ShapeRef.new(shape: RoutingConfig, location_name: "RoutingConfig"))
548
+ CreateEndpointResponse.add_member(:replication_config, Shapes::ShapeRef.new(shape: ReplicationConfig, location_name: "ReplicationConfig"))
549
+ CreateEndpointResponse.add_member(:event_buses, Shapes::ShapeRef.new(shape: EndpointEventBusList, location_name: "EventBuses"))
550
+ CreateEndpointResponse.add_member(:role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "RoleArn"))
551
+ CreateEndpointResponse.add_member(:state, Shapes::ShapeRef.new(shape: EndpointState, location_name: "State"))
552
+ CreateEndpointResponse.struct_class = Types::CreateEndpointResponse
553
+
505
554
  CreateEventBusRequest.add_member(:name, Shapes::ShapeRef.new(shape: EventBusName, required: true, location_name: "Name"))
506
555
  CreateEventBusRequest.add_member(:event_source_name, Shapes::ShapeRef.new(shape: EventSourceName, location_name: "EventSourceName"))
507
556
  CreateEventBusRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
@@ -553,6 +602,11 @@ module Aws::EventBridge
553
602
  DeleteConnectionResponse.add_member(:last_authorized_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastAuthorizedTime"))
554
603
  DeleteConnectionResponse.struct_class = Types::DeleteConnectionResponse
555
604
 
605
+ DeleteEndpointRequest.add_member(:name, Shapes::ShapeRef.new(shape: EndpointName, required: true, location_name: "Name"))
606
+ DeleteEndpointRequest.struct_class = Types::DeleteEndpointRequest
607
+
608
+ DeleteEndpointResponse.struct_class = Types::DeleteEndpointResponse
609
+
556
610
  DeleteEventBusRequest.add_member(:name, Shapes::ShapeRef.new(shape: EventBusName, required: true, location_name: "Name"))
557
611
  DeleteEventBusRequest.struct_class = Types::DeleteEventBusRequest
558
612
 
@@ -612,6 +666,25 @@ module Aws::EventBridge
612
666
  DescribeConnectionResponse.add_member(:last_authorized_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastAuthorizedTime"))
613
667
  DescribeConnectionResponse.struct_class = Types::DescribeConnectionResponse
614
668
 
669
+ DescribeEndpointRequest.add_member(:name, Shapes::ShapeRef.new(shape: EndpointName, required: true, location_name: "Name"))
670
+ DescribeEndpointRequest.add_member(:home_region, Shapes::ShapeRef.new(shape: HomeRegion, location_name: "HomeRegion"))
671
+ DescribeEndpointRequest.struct_class = Types::DescribeEndpointRequest
672
+
673
+ DescribeEndpointResponse.add_member(:name, Shapes::ShapeRef.new(shape: EndpointName, location_name: "Name"))
674
+ DescribeEndpointResponse.add_member(:description, Shapes::ShapeRef.new(shape: EndpointDescription, location_name: "Description"))
675
+ DescribeEndpointResponse.add_member(:arn, Shapes::ShapeRef.new(shape: EndpointArn, location_name: "Arn"))
676
+ DescribeEndpointResponse.add_member(:routing_config, Shapes::ShapeRef.new(shape: RoutingConfig, location_name: "RoutingConfig"))
677
+ DescribeEndpointResponse.add_member(:replication_config, Shapes::ShapeRef.new(shape: ReplicationConfig, location_name: "ReplicationConfig"))
678
+ DescribeEndpointResponse.add_member(:event_buses, Shapes::ShapeRef.new(shape: EndpointEventBusList, location_name: "EventBuses"))
679
+ DescribeEndpointResponse.add_member(:role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "RoleArn"))
680
+ DescribeEndpointResponse.add_member(:endpoint_id, Shapes::ShapeRef.new(shape: EndpointId, location_name: "EndpointId"))
681
+ DescribeEndpointResponse.add_member(:endpoint_url, Shapes::ShapeRef.new(shape: EndpointUrl, location_name: "EndpointUrl"))
682
+ DescribeEndpointResponse.add_member(:state, Shapes::ShapeRef.new(shape: EndpointState, location_name: "State"))
683
+ DescribeEndpointResponse.add_member(:state_reason, Shapes::ShapeRef.new(shape: EndpointStateReason, location_name: "StateReason"))
684
+ DescribeEndpointResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationTime"))
685
+ DescribeEndpointResponse.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModifiedTime"))
686
+ DescribeEndpointResponse.struct_class = Types::DescribeEndpointResponse
687
+
615
688
  DescribeEventBusRequest.add_member(:name, Shapes::ShapeRef.new(shape: EventBusNameOrArn, location_name: "Name"))
616
689
  DescribeEventBusRequest.struct_class = Types::DescribeEventBusRequest
617
690
 
@@ -695,6 +768,28 @@ module Aws::EventBridge
695
768
  EnableRuleRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: EventBusNameOrArn, location_name: "EventBusName"))
696
769
  EnableRuleRequest.struct_class = Types::EnableRuleRequest
697
770
 
771
+ Endpoint.add_member(:name, Shapes::ShapeRef.new(shape: EndpointName, location_name: "Name"))
772
+ Endpoint.add_member(:description, Shapes::ShapeRef.new(shape: EndpointDescription, location_name: "Description"))
773
+ Endpoint.add_member(:arn, Shapes::ShapeRef.new(shape: EndpointArn, location_name: "Arn"))
774
+ Endpoint.add_member(:routing_config, Shapes::ShapeRef.new(shape: RoutingConfig, location_name: "RoutingConfig"))
775
+ Endpoint.add_member(:replication_config, Shapes::ShapeRef.new(shape: ReplicationConfig, location_name: "ReplicationConfig"))
776
+ Endpoint.add_member(:event_buses, Shapes::ShapeRef.new(shape: EndpointEventBusList, location_name: "EventBuses"))
777
+ Endpoint.add_member(:role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "RoleArn"))
778
+ Endpoint.add_member(:endpoint_id, Shapes::ShapeRef.new(shape: EndpointId, location_name: "EndpointId"))
779
+ Endpoint.add_member(:endpoint_url, Shapes::ShapeRef.new(shape: EndpointUrl, location_name: "EndpointUrl"))
780
+ Endpoint.add_member(:state, Shapes::ShapeRef.new(shape: EndpointState, location_name: "State"))
781
+ Endpoint.add_member(:state_reason, Shapes::ShapeRef.new(shape: EndpointStateReason, location_name: "StateReason"))
782
+ Endpoint.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationTime"))
783
+ Endpoint.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModifiedTime"))
784
+ Endpoint.struct_class = Types::Endpoint
785
+
786
+ EndpointEventBus.add_member(:event_bus_arn, Shapes::ShapeRef.new(shape: NonPartnerEventBusArn, required: true, location_name: "EventBusArn"))
787
+ EndpointEventBus.struct_class = Types::EndpointEventBus
788
+
789
+ EndpointEventBusList.member = Shapes::ShapeRef.new(shape: EndpointEventBus)
790
+
791
+ EndpointList.member = Shapes::ShapeRef.new(shape: Endpoint)
792
+
698
793
  EventBus.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
699
794
  EventBus.add_member(:arn, Shapes::ShapeRef.new(shape: String, location_name: "Arn"))
700
795
  EventBus.add_member(:policy, Shapes::ShapeRef.new(shape: String, location_name: "Policy"))
@@ -714,6 +809,10 @@ module Aws::EventBridge
714
809
 
715
810
  EventSourceList.member = Shapes::ShapeRef.new(shape: EventSource)
716
811
 
812
+ FailoverConfig.add_member(:primary, Shapes::ShapeRef.new(shape: Primary, required: true, location_name: "Primary"))
813
+ FailoverConfig.add_member(:secondary, Shapes::ShapeRef.new(shape: Secondary, required: true, location_name: "Secondary"))
814
+ FailoverConfig.struct_class = Types::FailoverConfig
815
+
717
816
  HeaderParametersMap.key = Shapes::ShapeRef.new(shape: HeaderKey)
718
817
  HeaderParametersMap.value = Shapes::ShapeRef.new(shape: HeaderValue)
719
818
 
@@ -770,6 +869,16 @@ module Aws::EventBridge
770
869
  ListConnectionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
771
870
  ListConnectionsResponse.struct_class = Types::ListConnectionsResponse
772
871
 
872
+ ListEndpointsRequest.add_member(:name_prefix, Shapes::ShapeRef.new(shape: EndpointName, location_name: "NamePrefix"))
873
+ ListEndpointsRequest.add_member(:home_region, Shapes::ShapeRef.new(shape: HomeRegion, location_name: "HomeRegion"))
874
+ ListEndpointsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
875
+ ListEndpointsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: LimitMax100, location_name: "MaxResults"))
876
+ ListEndpointsRequest.struct_class = Types::ListEndpointsRequest
877
+
878
+ ListEndpointsResponse.add_member(:endpoints, Shapes::ShapeRef.new(shape: EndpointList, location_name: "Endpoints"))
879
+ ListEndpointsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
880
+ ListEndpointsResponse.struct_class = Types::ListEndpointsResponse
881
+
773
882
  ListEventBusesRequest.add_member(:name_prefix, Shapes::ShapeRef.new(shape: EventBusName, location_name: "NamePrefix"))
774
883
  ListEventBusesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
775
884
  ListEventBusesRequest.add_member(:limit, Shapes::ShapeRef.new(shape: LimitMax100, location_name: "Limit"))
@@ -890,7 +999,11 @@ module Aws::EventBridge
890
999
 
891
1000
  PolicyLengthExceededException.struct_class = Types::PolicyLengthExceededException
892
1001
 
1002
+ Primary.add_member(:health_check, Shapes::ShapeRef.new(shape: HealthCheck, required: true, location_name: "HealthCheck"))
1003
+ Primary.struct_class = Types::Primary
1004
+
893
1005
  PutEventsRequest.add_member(:entries, Shapes::ShapeRef.new(shape: PutEventsRequestEntryList, required: true, location_name: "Entries"))
1006
+ PutEventsRequest.add_member(:endpoint_id, Shapes::ShapeRef.new(shape: EndpointId, location_name: "EndpointId"))
894
1007
  PutEventsRequest.struct_class = Types::PutEventsRequest
895
1008
 
896
1009
  PutEventsRequestEntry.add_member(:time, Shapes::ShapeRef.new(shape: EventTime, location_name: "Time"))
@@ -1027,6 +1140,9 @@ module Aws::EventBridge
1027
1140
 
1028
1141
  ReplayList.member = Shapes::ShapeRef.new(shape: Replay)
1029
1142
 
1143
+ ReplicationConfig.add_member(:state, Shapes::ShapeRef.new(shape: ReplicationState, location_name: "State"))
1144
+ ReplicationConfig.struct_class = Types::ReplicationConfig
1145
+
1030
1146
  ResourceAlreadyExistsException.struct_class = Types::ResourceAlreadyExistsException
1031
1147
 
1032
1148
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
@@ -1035,6 +1151,9 @@ module Aws::EventBridge
1035
1151
  RetryPolicy.add_member(:maximum_event_age_in_seconds, Shapes::ShapeRef.new(shape: MaximumEventAgeInSeconds, location_name: "MaximumEventAgeInSeconds"))
1036
1152
  RetryPolicy.struct_class = Types::RetryPolicy
1037
1153
 
1154
+ RoutingConfig.add_member(:failover_config, Shapes::ShapeRef.new(shape: FailoverConfig, required: true, location_name: "FailoverConfig"))
1155
+ RoutingConfig.struct_class = Types::RoutingConfig
1156
+
1038
1157
  Rule.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, location_name: "Name"))
1039
1158
  Rule.add_member(:arn, Shapes::ShapeRef.new(shape: RuleArn, location_name: "Arn"))
1040
1159
  Rule.add_member(:event_pattern, Shapes::ShapeRef.new(shape: EventPattern, location_name: "EventPattern"))
@@ -1070,6 +1189,9 @@ module Aws::EventBridge
1070
1189
  SageMakerPipelineParameters.add_member(:pipeline_parameter_list, Shapes::ShapeRef.new(shape: SageMakerPipelineParameterList, location_name: "PipelineParameterList"))
1071
1190
  SageMakerPipelineParameters.struct_class = Types::SageMakerPipelineParameters
1072
1191
 
1192
+ Secondary.add_member(:route, Shapes::ShapeRef.new(shape: Route, required: true, location_name: "Route"))
1193
+ Secondary.struct_class = Types::Secondary
1194
+
1073
1195
  SqsParameters.add_member(:message_group_id, Shapes::ShapeRef.new(shape: MessageGroupId, location_name: "MessageGroupId"))
1074
1196
  SqsParameters.struct_class = Types::SqsParameters
1075
1197
 
@@ -1204,6 +1326,25 @@ module Aws::EventBridge
1204
1326
  UpdateConnectionResponse.add_member(:last_authorized_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastAuthorizedTime"))
1205
1327
  UpdateConnectionResponse.struct_class = Types::UpdateConnectionResponse
1206
1328
 
1329
+ UpdateEndpointRequest.add_member(:name, Shapes::ShapeRef.new(shape: EndpointName, required: true, location_name: "Name"))
1330
+ UpdateEndpointRequest.add_member(:description, Shapes::ShapeRef.new(shape: EndpointDescription, location_name: "Description"))
1331
+ UpdateEndpointRequest.add_member(:routing_config, Shapes::ShapeRef.new(shape: RoutingConfig, location_name: "RoutingConfig"))
1332
+ UpdateEndpointRequest.add_member(:replication_config, Shapes::ShapeRef.new(shape: ReplicationConfig, location_name: "ReplicationConfig"))
1333
+ UpdateEndpointRequest.add_member(:event_buses, Shapes::ShapeRef.new(shape: EndpointEventBusList, location_name: "EventBuses"))
1334
+ UpdateEndpointRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "RoleArn"))
1335
+ UpdateEndpointRequest.struct_class = Types::UpdateEndpointRequest
1336
+
1337
+ UpdateEndpointResponse.add_member(:name, Shapes::ShapeRef.new(shape: EndpointName, location_name: "Name"))
1338
+ UpdateEndpointResponse.add_member(:arn, Shapes::ShapeRef.new(shape: EndpointArn, location_name: "Arn"))
1339
+ UpdateEndpointResponse.add_member(:routing_config, Shapes::ShapeRef.new(shape: RoutingConfig, location_name: "RoutingConfig"))
1340
+ UpdateEndpointResponse.add_member(:replication_config, Shapes::ShapeRef.new(shape: ReplicationConfig, location_name: "ReplicationConfig"))
1341
+ UpdateEndpointResponse.add_member(:event_buses, Shapes::ShapeRef.new(shape: EndpointEventBusList, location_name: "EventBuses"))
1342
+ UpdateEndpointResponse.add_member(:role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "RoleArn"))
1343
+ UpdateEndpointResponse.add_member(:endpoint_id, Shapes::ShapeRef.new(shape: EndpointId, location_name: "EndpointId"))
1344
+ UpdateEndpointResponse.add_member(:endpoint_url, Shapes::ShapeRef.new(shape: EndpointUrl, location_name: "EndpointUrl"))
1345
+ UpdateEndpointResponse.add_member(:state, Shapes::ShapeRef.new(shape: EndpointState, location_name: "State"))
1346
+ UpdateEndpointResponse.struct_class = Types::UpdateEndpointResponse
1347
+
1207
1348
 
1208
1349
  # @api private
1209
1350
  API = Seahorse::Model::Api.new.tap do |api|
@@ -1284,6 +1425,17 @@ module Aws::EventBridge
1284
1425
  o.errors << Shapes::ShapeRef.new(shape: InternalException)
1285
1426
  end)
1286
1427
 
1428
+ api.add_operation(:create_endpoint, Seahorse::Model::Operation.new.tap do |o|
1429
+ o.name = "CreateEndpoint"
1430
+ o.http_method = "POST"
1431
+ o.http_request_uri = "/"
1432
+ o.input = Shapes::ShapeRef.new(shape: CreateEndpointRequest)
1433
+ o.output = Shapes::ShapeRef.new(shape: CreateEndpointResponse)
1434
+ o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
1435
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1436
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
1437
+ end)
1438
+
1287
1439
  api.add_operation(:create_event_bus, Seahorse::Model::Operation.new.tap do |o|
1288
1440
  o.name = "CreateEventBus"
1289
1441
  o.http_method = "POST"
@@ -1369,6 +1521,17 @@ module Aws::EventBridge
1369
1521
  o.errors << Shapes::ShapeRef.new(shape: InternalException)
1370
1522
  end)
1371
1523
 
1524
+ api.add_operation(:delete_endpoint, Seahorse::Model::Operation.new.tap do |o|
1525
+ o.name = "DeleteEndpoint"
1526
+ o.http_method = "POST"
1527
+ o.http_request_uri = "/"
1528
+ o.input = Shapes::ShapeRef.new(shape: DeleteEndpointRequest)
1529
+ o.output = Shapes::ShapeRef.new(shape: DeleteEndpointResponse)
1530
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
1531
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1532
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
1533
+ end)
1534
+
1372
1535
  api.add_operation(:delete_event_bus, Seahorse::Model::Operation.new.tap do |o|
1373
1536
  o.name = "DeleteEventBus"
1374
1537
  o.http_method = "POST"
@@ -1433,6 +1596,16 @@ module Aws::EventBridge
1433
1596
  o.errors << Shapes::ShapeRef.new(shape: InternalException)
1434
1597
  end)
1435
1598
 
1599
+ api.add_operation(:describe_endpoint, Seahorse::Model::Operation.new.tap do |o|
1600
+ o.name = "DescribeEndpoint"
1601
+ o.http_method = "POST"
1602
+ o.http_request_uri = "/"
1603
+ o.input = Shapes::ShapeRef.new(shape: DescribeEndpointRequest)
1604
+ o.output = Shapes::ShapeRef.new(shape: DescribeEndpointResponse)
1605
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1606
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
1607
+ end)
1608
+
1436
1609
  api.add_operation(:describe_event_bus, Seahorse::Model::Operation.new.tap do |o|
1437
1610
  o.name = "DescribeEventBus"
1438
1611
  o.http_method = "POST"
@@ -1537,6 +1710,15 @@ module Aws::EventBridge
1537
1710
  o.errors << Shapes::ShapeRef.new(shape: InternalException)
1538
1711
  end)
1539
1712
 
1713
+ api.add_operation(:list_endpoints, Seahorse::Model::Operation.new.tap do |o|
1714
+ o.name = "ListEndpoints"
1715
+ o.http_method = "POST"
1716
+ o.http_request_uri = "/"
1717
+ o.input = Shapes::ShapeRef.new(shape: ListEndpointsRequest)
1718
+ o.output = Shapes::ShapeRef.new(shape: ListEndpointsResponse)
1719
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
1720
+ end)
1721
+
1540
1722
  api.add_operation(:list_event_buses, Seahorse::Model::Operation.new.tap do |o|
1541
1723
  o.name = "ListEventBuses"
1542
1724
  o.http_method = "POST"
@@ -1792,6 +1974,17 @@ module Aws::EventBridge
1792
1974
  o.errors << Shapes::ShapeRef.new(shape: InternalException)
1793
1975
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1794
1976
  end)
1977
+
1978
+ api.add_operation(:update_endpoint, Seahorse::Model::Operation.new.tap do |o|
1979
+ o.name = "UpdateEndpoint"
1980
+ o.http_method = "POST"
1981
+ o.http_request_uri = "/"
1982
+ o.input = Shapes::ShapeRef.new(shape: UpdateEndpointRequest)
1983
+ o.output = Shapes::ShapeRef.new(shape: UpdateEndpointResponse)
1984
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1985
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
1986
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
1987
+ end)
1795
1988
  end
1796
1989
 
1797
1990
  end
@@ -0,0 +1,75 @@
1
+ # frozen_string_literal: true
2
+
3
+
4
+ module Aws
5
+ module EventBridge
6
+ module Plugins
7
+ # Resolve Multi-Region Endpoints
8
+ class MultiRegionEndpoint < Seahorse::Client::Plugin
9
+
10
+ def add_handlers(handlers, _config)
11
+ handlers.add(Handler, operations: [:put_events])
12
+ end
13
+
14
+ # After extracting out any ARN input, resolve a new URL with it.
15
+ class Handler < Seahorse::Client::Handler
16
+ def call(context)
17
+ if (multi_region_endpoint_id = context.params[:endpoint_id])
18
+
19
+ validate_multi_region_endpoint!(multi_region_endpoint_id)
20
+ validate_config!(context)
21
+
22
+ url = context.http_request.endpoint
23
+ region = context.config.region
24
+
25
+ # if regional_endpoint is false, a custom endpoint was provided
26
+ # customer provided endpoints should be used as is
27
+ if context.config.regional_endpoint
28
+ sfx = Aws::Partitions::EndpointProvider.dns_suffix_for(
29
+ region, 'events', { dualstack: context.config.use_dualstack_endpoint }
30
+ )
31
+ url.host = "#{multi_region_endpoint_id}.endpoint.events.#{sfx}"
32
+ end
33
+
34
+ context.config.sigv4_signer = sigv4a_signer(context)
35
+ end
36
+
37
+ @handler.call(context)
38
+ end
39
+
40
+ private
41
+
42
+ def validate_multi_region_endpoint!(multi_region_endpoint_id)
43
+ unless !multi_region_endpoint_id.empty? &&
44
+ valid_hostname?(multi_region_endpoint_id)
45
+ raise ArgumentError, 'multi_region_endpoint_id must be a valid host label.'
46
+ end
47
+ end
48
+
49
+ def valid_hostname?(str)
50
+ str =~ /^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])(\.([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9]))*$/
51
+ end
52
+
53
+ def validate_config!(context)
54
+ if context.config.use_fips_endpoint
55
+ raise ArgumentError,
56
+ 'FIPS is not supported with EventBridge multi-region endpoints.'
57
+ end
58
+ end
59
+
60
+ def sigv4a_signer(context)
61
+ existing = context.config.sigv4_signer
62
+ Aws::Sigv4::Signer.new(
63
+ service: existing.service,
64
+ region: '*',
65
+ credentials_provider: existing.credentials_provider,
66
+ signing_algorithm: :sigv4a,
67
+ uri_escape_path: true,
68
+ unsigned_headers: existing.unsigned_headers
69
+ )
70
+ end
71
+ end
72
+ end
73
+ end
74
+ end
75
+ end