aws-sdk-networkmonitor 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-networkmonitor/client.rb +1016 -0
- data/lib/aws-sdk-networkmonitor/client_api.rb +475 -0
- data/lib/aws-sdk-networkmonitor/customizations.rb +0 -0
- data/lib/aws-sdk-networkmonitor/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-networkmonitor/endpoint_provider.rb +54 -0
- data/lib/aws-sdk-networkmonitor/endpoints.rb +184 -0
- data/lib/aws-sdk-networkmonitor/errors.rb +162 -0
- data/lib/aws-sdk-networkmonitor/plugins/endpoints.rb +93 -0
- data/lib/aws-sdk-networkmonitor/resource.rb +26 -0
- data/lib/aws-sdk-networkmonitor/types.rb +965 -0
- data/lib/aws-sdk-networkmonitor/waiters.rb +15 -0
- data/lib/aws-sdk-networkmonitor.rb +58 -0
- metadata +95 -0
@@ -0,0 +1,475 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::NetworkMonitor
|
11
|
+
# @api private
|
12
|
+
module ClientApi
|
13
|
+
|
14
|
+
include Seahorse::Model
|
15
|
+
|
16
|
+
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
17
|
+
AddressFamily = Shapes::StringShape.new(name: 'AddressFamily')
|
18
|
+
AggregationPeriod = Shapes::IntegerShape.new(name: 'AggregationPeriod')
|
19
|
+
Arn = Shapes::StringShape.new(name: 'Arn')
|
20
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
21
|
+
CreateMonitorInput = Shapes::StructureShape.new(name: 'CreateMonitorInput')
|
22
|
+
CreateMonitorOutput = Shapes::StructureShape.new(name: 'CreateMonitorOutput')
|
23
|
+
CreateMonitorProbeInput = Shapes::StructureShape.new(name: 'CreateMonitorProbeInput')
|
24
|
+
CreateMonitorProbeInputList = Shapes::ListShape.new(name: 'CreateMonitorProbeInputList')
|
25
|
+
CreateProbeInput = Shapes::StructureShape.new(name: 'CreateProbeInput')
|
26
|
+
CreateProbeOutput = Shapes::StructureShape.new(name: 'CreateProbeOutput')
|
27
|
+
DeleteMonitorInput = Shapes::StructureShape.new(name: 'DeleteMonitorInput')
|
28
|
+
DeleteMonitorOutput = Shapes::StructureShape.new(name: 'DeleteMonitorOutput')
|
29
|
+
DeleteProbeInput = Shapes::StructureShape.new(name: 'DeleteProbeInput')
|
30
|
+
DeleteProbeOutput = Shapes::StructureShape.new(name: 'DeleteProbeOutput')
|
31
|
+
Destination = Shapes::StringShape.new(name: 'Destination')
|
32
|
+
GetMonitorInput = Shapes::StructureShape.new(name: 'GetMonitorInput')
|
33
|
+
GetMonitorOutput = Shapes::StructureShape.new(name: 'GetMonitorOutput')
|
34
|
+
GetProbeInput = Shapes::StructureShape.new(name: 'GetProbeInput')
|
35
|
+
GetProbeOutput = Shapes::StructureShape.new(name: 'GetProbeOutput')
|
36
|
+
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
37
|
+
Iso8601Timestamp = Shapes::TimestampShape.new(name: 'Iso8601Timestamp')
|
38
|
+
ListMonitorsInput = Shapes::StructureShape.new(name: 'ListMonitorsInput')
|
39
|
+
ListMonitorsOutput = Shapes::StructureShape.new(name: 'ListMonitorsOutput')
|
40
|
+
ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
|
41
|
+
ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
|
42
|
+
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
43
|
+
MonitorArn = Shapes::StringShape.new(name: 'MonitorArn')
|
44
|
+
MonitorList = Shapes::ListShape.new(name: 'MonitorList')
|
45
|
+
MonitorState = Shapes::StringShape.new(name: 'MonitorState')
|
46
|
+
MonitorSummary = Shapes::StructureShape.new(name: 'MonitorSummary')
|
47
|
+
PacketSize = Shapes::IntegerShape.new(name: 'PacketSize')
|
48
|
+
PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
|
49
|
+
Port = Shapes::IntegerShape.new(name: 'Port')
|
50
|
+
Probe = Shapes::StructureShape.new(name: 'Probe')
|
51
|
+
ProbeId = Shapes::StringShape.new(name: 'ProbeId')
|
52
|
+
ProbeInput = Shapes::StructureShape.new(name: 'ProbeInput')
|
53
|
+
ProbeList = Shapes::ListShape.new(name: 'ProbeList')
|
54
|
+
ProbeState = Shapes::StringShape.new(name: 'ProbeState')
|
55
|
+
Protocol = Shapes::StringShape.new(name: 'Protocol')
|
56
|
+
ResourceName = Shapes::StringShape.new(name: 'ResourceName')
|
57
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
58
|
+
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
59
|
+
String = Shapes::StringShape.new(name: 'String')
|
60
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
61
|
+
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
62
|
+
TagMap = Shapes::MapShape.new(name: 'TagMap')
|
63
|
+
TagResourceInput = Shapes::StructureShape.new(name: 'TagResourceInput')
|
64
|
+
TagResourceOutput = Shapes::StructureShape.new(name: 'TagResourceOutput')
|
65
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
66
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
67
|
+
UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
|
68
|
+
UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
|
69
|
+
UpdateMonitorInput = Shapes::StructureShape.new(name: 'UpdateMonitorInput')
|
70
|
+
UpdateMonitorOutput = Shapes::StructureShape.new(name: 'UpdateMonitorOutput')
|
71
|
+
UpdateProbeInput = Shapes::StructureShape.new(name: 'UpdateProbeInput')
|
72
|
+
UpdateProbeOutput = Shapes::StructureShape.new(name: 'UpdateProbeOutput')
|
73
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
74
|
+
VpcId = Shapes::StringShape.new(name: 'VpcId')
|
75
|
+
|
76
|
+
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
77
|
+
AccessDeniedException.struct_class = Types::AccessDeniedException
|
78
|
+
|
79
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
80
|
+
ConflictException.struct_class = Types::ConflictException
|
81
|
+
|
82
|
+
CreateMonitorInput.add_member(:monitor_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "monitorName"))
|
83
|
+
CreateMonitorInput.add_member(:probes, Shapes::ShapeRef.new(shape: CreateMonitorProbeInputList, location_name: "probes"))
|
84
|
+
CreateMonitorInput.add_member(:aggregation_period, Shapes::ShapeRef.new(shape: AggregationPeriod, location_name: "aggregationPeriod"))
|
85
|
+
CreateMonitorInput.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
86
|
+
CreateMonitorInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
87
|
+
CreateMonitorInput.struct_class = Types::CreateMonitorInput
|
88
|
+
|
89
|
+
CreateMonitorOutput.add_member(:monitor_arn, Shapes::ShapeRef.new(shape: MonitorArn, required: true, location_name: "monitorArn"))
|
90
|
+
CreateMonitorOutput.add_member(:monitor_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "monitorName"))
|
91
|
+
CreateMonitorOutput.add_member(:state, Shapes::ShapeRef.new(shape: MonitorState, required: true, location_name: "state"))
|
92
|
+
CreateMonitorOutput.add_member(:aggregation_period, Shapes::ShapeRef.new(shape: AggregationPeriod, location_name: "aggregationPeriod"))
|
93
|
+
CreateMonitorOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
94
|
+
CreateMonitorOutput.struct_class = Types::CreateMonitorOutput
|
95
|
+
|
96
|
+
CreateMonitorProbeInput.add_member(:source_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "sourceArn"))
|
97
|
+
CreateMonitorProbeInput.add_member(:destination, Shapes::ShapeRef.new(shape: Destination, required: true, location_name: "destination"))
|
98
|
+
CreateMonitorProbeInput.add_member(:destination_port, Shapes::ShapeRef.new(shape: Port, location_name: "destinationPort"))
|
99
|
+
CreateMonitorProbeInput.add_member(:protocol, Shapes::ShapeRef.new(shape: Protocol, required: true, location_name: "protocol"))
|
100
|
+
CreateMonitorProbeInput.add_member(:packet_size, Shapes::ShapeRef.new(shape: PacketSize, location_name: "packetSize"))
|
101
|
+
CreateMonitorProbeInput.add_member(:probe_tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "probeTags"))
|
102
|
+
CreateMonitorProbeInput.struct_class = Types::CreateMonitorProbeInput
|
103
|
+
|
104
|
+
CreateMonitorProbeInputList.member = Shapes::ShapeRef.new(shape: CreateMonitorProbeInput)
|
105
|
+
|
106
|
+
CreateProbeInput.add_member(:monitor_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "monitorName"))
|
107
|
+
CreateProbeInput.add_member(:probe, Shapes::ShapeRef.new(shape: ProbeInput, required: true, location_name: "probe"))
|
108
|
+
CreateProbeInput.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
109
|
+
CreateProbeInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
110
|
+
CreateProbeInput.struct_class = Types::CreateProbeInput
|
111
|
+
|
112
|
+
CreateProbeOutput.add_member(:probe_id, Shapes::ShapeRef.new(shape: ProbeId, location_name: "probeId"))
|
113
|
+
CreateProbeOutput.add_member(:probe_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "probeArn"))
|
114
|
+
CreateProbeOutput.add_member(:source_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "sourceArn"))
|
115
|
+
CreateProbeOutput.add_member(:destination, Shapes::ShapeRef.new(shape: Destination, required: true, location_name: "destination"))
|
116
|
+
CreateProbeOutput.add_member(:destination_port, Shapes::ShapeRef.new(shape: Port, location_name: "destinationPort"))
|
117
|
+
CreateProbeOutput.add_member(:protocol, Shapes::ShapeRef.new(shape: Protocol, required: true, location_name: "protocol"))
|
118
|
+
CreateProbeOutput.add_member(:packet_size, Shapes::ShapeRef.new(shape: PacketSize, location_name: "packetSize"))
|
119
|
+
CreateProbeOutput.add_member(:address_family, Shapes::ShapeRef.new(shape: AddressFamily, location_name: "addressFamily"))
|
120
|
+
CreateProbeOutput.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, location_name: "vpcId"))
|
121
|
+
CreateProbeOutput.add_member(:state, Shapes::ShapeRef.new(shape: ProbeState, location_name: "state"))
|
122
|
+
CreateProbeOutput.add_member(:created_at, Shapes::ShapeRef.new(shape: Iso8601Timestamp, location_name: "createdAt"))
|
123
|
+
CreateProbeOutput.add_member(:modified_at, Shapes::ShapeRef.new(shape: Iso8601Timestamp, location_name: "modifiedAt"))
|
124
|
+
CreateProbeOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
125
|
+
CreateProbeOutput.struct_class = Types::CreateProbeOutput
|
126
|
+
|
127
|
+
DeleteMonitorInput.add_member(:monitor_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "monitorName"))
|
128
|
+
DeleteMonitorInput.struct_class = Types::DeleteMonitorInput
|
129
|
+
|
130
|
+
DeleteMonitorOutput.struct_class = Types::DeleteMonitorOutput
|
131
|
+
|
132
|
+
DeleteProbeInput.add_member(:monitor_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "monitorName"))
|
133
|
+
DeleteProbeInput.add_member(:probe_id, Shapes::ShapeRef.new(shape: ProbeId, required: true, location: "uri", location_name: "probeId"))
|
134
|
+
DeleteProbeInput.struct_class = Types::DeleteProbeInput
|
135
|
+
|
136
|
+
DeleteProbeOutput.struct_class = Types::DeleteProbeOutput
|
137
|
+
|
138
|
+
GetMonitorInput.add_member(:monitor_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "monitorName"))
|
139
|
+
GetMonitorInput.struct_class = Types::GetMonitorInput
|
140
|
+
|
141
|
+
GetMonitorOutput.add_member(:monitor_arn, Shapes::ShapeRef.new(shape: MonitorArn, required: true, location_name: "monitorArn"))
|
142
|
+
GetMonitorOutput.add_member(:monitor_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "monitorName"))
|
143
|
+
GetMonitorOutput.add_member(:state, Shapes::ShapeRef.new(shape: MonitorState, required: true, location_name: "state"))
|
144
|
+
GetMonitorOutput.add_member(:aggregation_period, Shapes::ShapeRef.new(shape: AggregationPeriod, required: true, location_name: "aggregationPeriod"))
|
145
|
+
GetMonitorOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
146
|
+
GetMonitorOutput.add_member(:probes, Shapes::ShapeRef.new(shape: ProbeList, location_name: "probes"))
|
147
|
+
GetMonitorOutput.add_member(:created_at, Shapes::ShapeRef.new(shape: Iso8601Timestamp, required: true, location_name: "createdAt"))
|
148
|
+
GetMonitorOutput.add_member(:modified_at, Shapes::ShapeRef.new(shape: Iso8601Timestamp, required: true, location_name: "modifiedAt"))
|
149
|
+
GetMonitorOutput.struct_class = Types::GetMonitorOutput
|
150
|
+
|
151
|
+
GetProbeInput.add_member(:monitor_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "monitorName"))
|
152
|
+
GetProbeInput.add_member(:probe_id, Shapes::ShapeRef.new(shape: ProbeId, required: true, location: "uri", location_name: "probeId"))
|
153
|
+
GetProbeInput.struct_class = Types::GetProbeInput
|
154
|
+
|
155
|
+
GetProbeOutput.add_member(:probe_id, Shapes::ShapeRef.new(shape: ProbeId, location_name: "probeId"))
|
156
|
+
GetProbeOutput.add_member(:probe_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "probeArn"))
|
157
|
+
GetProbeOutput.add_member(:source_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "sourceArn"))
|
158
|
+
GetProbeOutput.add_member(:destination, Shapes::ShapeRef.new(shape: Destination, required: true, location_name: "destination"))
|
159
|
+
GetProbeOutput.add_member(:destination_port, Shapes::ShapeRef.new(shape: Port, location_name: "destinationPort"))
|
160
|
+
GetProbeOutput.add_member(:protocol, Shapes::ShapeRef.new(shape: Protocol, required: true, location_name: "protocol"))
|
161
|
+
GetProbeOutput.add_member(:packet_size, Shapes::ShapeRef.new(shape: PacketSize, location_name: "packetSize"))
|
162
|
+
GetProbeOutput.add_member(:address_family, Shapes::ShapeRef.new(shape: AddressFamily, location_name: "addressFamily"))
|
163
|
+
GetProbeOutput.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, location_name: "vpcId"))
|
164
|
+
GetProbeOutput.add_member(:state, Shapes::ShapeRef.new(shape: ProbeState, location_name: "state"))
|
165
|
+
GetProbeOutput.add_member(:created_at, Shapes::ShapeRef.new(shape: Iso8601Timestamp, location_name: "createdAt"))
|
166
|
+
GetProbeOutput.add_member(:modified_at, Shapes::ShapeRef.new(shape: Iso8601Timestamp, location_name: "modifiedAt"))
|
167
|
+
GetProbeOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
168
|
+
GetProbeOutput.struct_class = Types::GetProbeOutput
|
169
|
+
|
170
|
+
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
171
|
+
InternalServerException.struct_class = Types::InternalServerException
|
172
|
+
|
173
|
+
ListMonitorsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
|
174
|
+
ListMonitorsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
175
|
+
ListMonitorsInput.add_member(:state, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "state"))
|
176
|
+
ListMonitorsInput.struct_class = Types::ListMonitorsInput
|
177
|
+
|
178
|
+
ListMonitorsOutput.add_member(:monitors, Shapes::ShapeRef.new(shape: MonitorList, required: true, location_name: "monitors"))
|
179
|
+
ListMonitorsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
180
|
+
ListMonitorsOutput.struct_class = Types::ListMonitorsOutput
|
181
|
+
|
182
|
+
ListTagsForResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
|
183
|
+
ListTagsForResourceInput.struct_class = Types::ListTagsForResourceInput
|
184
|
+
|
185
|
+
ListTagsForResourceOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
186
|
+
ListTagsForResourceOutput.struct_class = Types::ListTagsForResourceOutput
|
187
|
+
|
188
|
+
MonitorList.member = Shapes::ShapeRef.new(shape: MonitorSummary)
|
189
|
+
|
190
|
+
MonitorSummary.add_member(:monitor_arn, Shapes::ShapeRef.new(shape: MonitorArn, required: true, location_name: "monitorArn"))
|
191
|
+
MonitorSummary.add_member(:monitor_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "monitorName"))
|
192
|
+
MonitorSummary.add_member(:state, Shapes::ShapeRef.new(shape: MonitorState, required: true, location_name: "state"))
|
193
|
+
MonitorSummary.add_member(:aggregation_period, Shapes::ShapeRef.new(shape: AggregationPeriod, location_name: "aggregationPeriod"))
|
194
|
+
MonitorSummary.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
195
|
+
MonitorSummary.struct_class = Types::MonitorSummary
|
196
|
+
|
197
|
+
Probe.add_member(:probe_id, Shapes::ShapeRef.new(shape: ProbeId, location_name: "probeId"))
|
198
|
+
Probe.add_member(:probe_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "probeArn"))
|
199
|
+
Probe.add_member(:source_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "sourceArn"))
|
200
|
+
Probe.add_member(:destination, Shapes::ShapeRef.new(shape: Destination, required: true, location_name: "destination"))
|
201
|
+
Probe.add_member(:destination_port, Shapes::ShapeRef.new(shape: Port, location_name: "destinationPort"))
|
202
|
+
Probe.add_member(:protocol, Shapes::ShapeRef.new(shape: Protocol, required: true, location_name: "protocol"))
|
203
|
+
Probe.add_member(:packet_size, Shapes::ShapeRef.new(shape: PacketSize, location_name: "packetSize"))
|
204
|
+
Probe.add_member(:address_family, Shapes::ShapeRef.new(shape: AddressFamily, location_name: "addressFamily"))
|
205
|
+
Probe.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, location_name: "vpcId"))
|
206
|
+
Probe.add_member(:state, Shapes::ShapeRef.new(shape: ProbeState, location_name: "state"))
|
207
|
+
Probe.add_member(:created_at, Shapes::ShapeRef.new(shape: Iso8601Timestamp, location_name: "createdAt"))
|
208
|
+
Probe.add_member(:modified_at, Shapes::ShapeRef.new(shape: Iso8601Timestamp, location_name: "modifiedAt"))
|
209
|
+
Probe.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
210
|
+
Probe.struct_class = Types::Probe
|
211
|
+
|
212
|
+
ProbeInput.add_member(:source_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "sourceArn"))
|
213
|
+
ProbeInput.add_member(:destination, Shapes::ShapeRef.new(shape: Destination, required: true, location_name: "destination"))
|
214
|
+
ProbeInput.add_member(:destination_port, Shapes::ShapeRef.new(shape: Port, location_name: "destinationPort"))
|
215
|
+
ProbeInput.add_member(:protocol, Shapes::ShapeRef.new(shape: Protocol, required: true, location_name: "protocol"))
|
216
|
+
ProbeInput.add_member(:packet_size, Shapes::ShapeRef.new(shape: PacketSize, location_name: "packetSize"))
|
217
|
+
ProbeInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
218
|
+
ProbeInput.struct_class = Types::ProbeInput
|
219
|
+
|
220
|
+
ProbeList.member = Shapes::ShapeRef.new(shape: Probe)
|
221
|
+
|
222
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
223
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
224
|
+
|
225
|
+
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
226
|
+
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
227
|
+
|
228
|
+
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
229
|
+
|
230
|
+
TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
|
231
|
+
TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
|
232
|
+
|
233
|
+
TagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
|
234
|
+
TagResourceInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "tags"))
|
235
|
+
TagResourceInput.struct_class = Types::TagResourceInput
|
236
|
+
|
237
|
+
TagResourceOutput.struct_class = Types::TagResourceOutput
|
238
|
+
|
239
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
240
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
241
|
+
|
242
|
+
UntagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
|
243
|
+
UntagResourceInput.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
|
244
|
+
UntagResourceInput.struct_class = Types::UntagResourceInput
|
245
|
+
|
246
|
+
UntagResourceOutput.struct_class = Types::UntagResourceOutput
|
247
|
+
|
248
|
+
UpdateMonitorInput.add_member(:monitor_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "monitorName"))
|
249
|
+
UpdateMonitorInput.add_member(:aggregation_period, Shapes::ShapeRef.new(shape: AggregationPeriod, required: true, location_name: "aggregationPeriod"))
|
250
|
+
UpdateMonitorInput.struct_class = Types::UpdateMonitorInput
|
251
|
+
|
252
|
+
UpdateMonitorOutput.add_member(:monitor_arn, Shapes::ShapeRef.new(shape: MonitorArn, required: true, location_name: "monitorArn"))
|
253
|
+
UpdateMonitorOutput.add_member(:monitor_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "monitorName"))
|
254
|
+
UpdateMonitorOutput.add_member(:state, Shapes::ShapeRef.new(shape: MonitorState, required: true, location_name: "state"))
|
255
|
+
UpdateMonitorOutput.add_member(:aggregation_period, Shapes::ShapeRef.new(shape: AggregationPeriod, location_name: "aggregationPeriod"))
|
256
|
+
UpdateMonitorOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
257
|
+
UpdateMonitorOutput.struct_class = Types::UpdateMonitorOutput
|
258
|
+
|
259
|
+
UpdateProbeInput.add_member(:monitor_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "monitorName"))
|
260
|
+
UpdateProbeInput.add_member(:probe_id, Shapes::ShapeRef.new(shape: ProbeId, required: true, location: "uri", location_name: "probeId"))
|
261
|
+
UpdateProbeInput.add_member(:state, Shapes::ShapeRef.new(shape: ProbeState, location_name: "state"))
|
262
|
+
UpdateProbeInput.add_member(:destination, Shapes::ShapeRef.new(shape: Destination, location_name: "destination"))
|
263
|
+
UpdateProbeInput.add_member(:destination_port, Shapes::ShapeRef.new(shape: Port, location_name: "destinationPort"))
|
264
|
+
UpdateProbeInput.add_member(:protocol, Shapes::ShapeRef.new(shape: Protocol, location_name: "protocol"))
|
265
|
+
UpdateProbeInput.add_member(:packet_size, Shapes::ShapeRef.new(shape: PacketSize, location_name: "packetSize"))
|
266
|
+
UpdateProbeInput.struct_class = Types::UpdateProbeInput
|
267
|
+
|
268
|
+
UpdateProbeOutput.add_member(:probe_id, Shapes::ShapeRef.new(shape: ProbeId, location_name: "probeId"))
|
269
|
+
UpdateProbeOutput.add_member(:probe_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "probeArn"))
|
270
|
+
UpdateProbeOutput.add_member(:source_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "sourceArn"))
|
271
|
+
UpdateProbeOutput.add_member(:destination, Shapes::ShapeRef.new(shape: Destination, required: true, location_name: "destination"))
|
272
|
+
UpdateProbeOutput.add_member(:destination_port, Shapes::ShapeRef.new(shape: Port, location_name: "destinationPort"))
|
273
|
+
UpdateProbeOutput.add_member(:protocol, Shapes::ShapeRef.new(shape: Protocol, required: true, location_name: "protocol"))
|
274
|
+
UpdateProbeOutput.add_member(:packet_size, Shapes::ShapeRef.new(shape: PacketSize, location_name: "packetSize"))
|
275
|
+
UpdateProbeOutput.add_member(:address_family, Shapes::ShapeRef.new(shape: AddressFamily, location_name: "addressFamily"))
|
276
|
+
UpdateProbeOutput.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, location_name: "vpcId"))
|
277
|
+
UpdateProbeOutput.add_member(:state, Shapes::ShapeRef.new(shape: ProbeState, location_name: "state"))
|
278
|
+
UpdateProbeOutput.add_member(:created_at, Shapes::ShapeRef.new(shape: Iso8601Timestamp, location_name: "createdAt"))
|
279
|
+
UpdateProbeOutput.add_member(:modified_at, Shapes::ShapeRef.new(shape: Iso8601Timestamp, location_name: "modifiedAt"))
|
280
|
+
UpdateProbeOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
281
|
+
UpdateProbeOutput.struct_class = Types::UpdateProbeOutput
|
282
|
+
|
283
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
284
|
+
ValidationException.struct_class = Types::ValidationException
|
285
|
+
|
286
|
+
|
287
|
+
# @api private
|
288
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
289
|
+
|
290
|
+
api.version = "2023-08-01"
|
291
|
+
|
292
|
+
api.metadata = {
|
293
|
+
"apiVersion" => "2023-08-01",
|
294
|
+
"endpointPrefix" => "networkmonitor",
|
295
|
+
"jsonVersion" => "1.1",
|
296
|
+
"protocol" => "rest-json",
|
297
|
+
"serviceFullName" => "Amazon CloudWatch Network Monitor",
|
298
|
+
"serviceId" => "NetworkMonitor",
|
299
|
+
"signatureVersion" => "v4",
|
300
|
+
"signingName" => "networkmonitor",
|
301
|
+
"uid" => "networkmonitor-2023-08-01",
|
302
|
+
}
|
303
|
+
|
304
|
+
api.add_operation(:create_monitor, Seahorse::Model::Operation.new.tap do |o|
|
305
|
+
o.name = "CreateMonitor"
|
306
|
+
o.http_method = "POST"
|
307
|
+
o.http_request_uri = "/monitors"
|
308
|
+
o.input = Shapes::ShapeRef.new(shape: CreateMonitorInput)
|
309
|
+
o.output = Shapes::ShapeRef.new(shape: CreateMonitorOutput)
|
310
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
311
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
312
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
313
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
314
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
315
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
316
|
+
end)
|
317
|
+
|
318
|
+
api.add_operation(:create_probe, Seahorse::Model::Operation.new.tap do |o|
|
319
|
+
o.name = "CreateProbe"
|
320
|
+
o.http_method = "POST"
|
321
|
+
o.http_request_uri = "/monitors/{monitorName}/probes"
|
322
|
+
o.input = Shapes::ShapeRef.new(shape: CreateProbeInput)
|
323
|
+
o.output = Shapes::ShapeRef.new(shape: CreateProbeOutput)
|
324
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
325
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
326
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
327
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
328
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
329
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
330
|
+
end)
|
331
|
+
|
332
|
+
api.add_operation(:delete_monitor, Seahorse::Model::Operation.new.tap do |o|
|
333
|
+
o.name = "DeleteMonitor"
|
334
|
+
o.http_method = "DELETE"
|
335
|
+
o.http_request_uri = "/monitors/{monitorName}"
|
336
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteMonitorInput)
|
337
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteMonitorOutput)
|
338
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
339
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
340
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
341
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
342
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
343
|
+
end)
|
344
|
+
|
345
|
+
api.add_operation(:delete_probe, Seahorse::Model::Operation.new.tap do |o|
|
346
|
+
o.name = "DeleteProbe"
|
347
|
+
o.http_method = "DELETE"
|
348
|
+
o.http_request_uri = "/monitors/{monitorName}/probes/{probeId}"
|
349
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteProbeInput)
|
350
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteProbeOutput)
|
351
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
352
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
353
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
354
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
355
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
356
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
357
|
+
end)
|
358
|
+
|
359
|
+
api.add_operation(:get_monitor, Seahorse::Model::Operation.new.tap do |o|
|
360
|
+
o.name = "GetMonitor"
|
361
|
+
o.http_method = "GET"
|
362
|
+
o.http_request_uri = "/monitors/{monitorName}"
|
363
|
+
o.input = Shapes::ShapeRef.new(shape: GetMonitorInput)
|
364
|
+
o.output = Shapes::ShapeRef.new(shape: GetMonitorOutput)
|
365
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
366
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
367
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
368
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
369
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
370
|
+
end)
|
371
|
+
|
372
|
+
api.add_operation(:get_probe, Seahorse::Model::Operation.new.tap do |o|
|
373
|
+
o.name = "GetProbe"
|
374
|
+
o.http_method = "GET"
|
375
|
+
o.http_request_uri = "/monitors/{monitorName}/probes/{probeId}"
|
376
|
+
o.input = Shapes::ShapeRef.new(shape: GetProbeInput)
|
377
|
+
o.output = Shapes::ShapeRef.new(shape: GetProbeOutput)
|
378
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
379
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
380
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
381
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
382
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
383
|
+
end)
|
384
|
+
|
385
|
+
api.add_operation(:list_monitors, Seahorse::Model::Operation.new.tap do |o|
|
386
|
+
o.name = "ListMonitors"
|
387
|
+
o.http_method = "GET"
|
388
|
+
o.http_request_uri = "/monitors"
|
389
|
+
o.input = Shapes::ShapeRef.new(shape: ListMonitorsInput)
|
390
|
+
o.output = Shapes::ShapeRef.new(shape: ListMonitorsOutput)
|
391
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
392
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
393
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
394
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
395
|
+
o[:pager] = Aws::Pager.new(
|
396
|
+
limit_key: "max_results",
|
397
|
+
tokens: {
|
398
|
+
"next_token" => "next_token"
|
399
|
+
}
|
400
|
+
)
|
401
|
+
end)
|
402
|
+
|
403
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
404
|
+
o.name = "ListTagsForResource"
|
405
|
+
o.http_method = "GET"
|
406
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
407
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceInput)
|
408
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceOutput)
|
409
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
410
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
411
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
412
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
413
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
414
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
415
|
+
end)
|
416
|
+
|
417
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
418
|
+
o.name = "TagResource"
|
419
|
+
o.http_method = "POST"
|
420
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
421
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceInput)
|
422
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceOutput)
|
423
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
424
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
425
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
426
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
427
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
428
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
429
|
+
end)
|
430
|
+
|
431
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
432
|
+
o.name = "UntagResource"
|
433
|
+
o.http_method = "DELETE"
|
434
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
435
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceInput)
|
436
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceOutput)
|
437
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
438
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
439
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
440
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
441
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
442
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
443
|
+
end)
|
444
|
+
|
445
|
+
api.add_operation(:update_monitor, Seahorse::Model::Operation.new.tap do |o|
|
446
|
+
o.name = "UpdateMonitor"
|
447
|
+
o.http_method = "PATCH"
|
448
|
+
o.http_request_uri = "/monitors/{monitorName}"
|
449
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateMonitorInput)
|
450
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateMonitorOutput)
|
451
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
452
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
453
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
454
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
455
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
456
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
457
|
+
end)
|
458
|
+
|
459
|
+
api.add_operation(:update_probe, Seahorse::Model::Operation.new.tap do |o|
|
460
|
+
o.name = "UpdateProbe"
|
461
|
+
o.http_method = "PATCH"
|
462
|
+
o.http_request_uri = "/monitors/{monitorName}/probes/{probeId}"
|
463
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateProbeInput)
|
464
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateProbeOutput)
|
465
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
466
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
467
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
468
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
469
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
470
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
471
|
+
end)
|
472
|
+
end
|
473
|
+
|
474
|
+
end
|
475
|
+
end
|
File without changes
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::NetworkMonitor
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
54
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
+
if self[:use_dual_stack].nil?
|
56
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
+
end
|
58
|
+
self[:use_fips] = options[:use_fips]
|
59
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
+
if self[:use_fips].nil?
|
61
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
+
end
|
63
|
+
self[:endpoint] = options[:endpoint]
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::NetworkMonitor
|
11
|
+
class EndpointProvider
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
20
|
+
end
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://networkmonitor-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://networkmonitor-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
+
end
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://networkmonitor.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
45
|
+
end
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://networkmonitor.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
47
|
+
end
|
48
|
+
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
50
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|