1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// The fields that you want to update in the output.
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateFlowOutputInput {
/// The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
#[doc(hidden)]
pub cidr_allow_list: std::option::Option<std::vec::Vec<std::string::String>>,
/// A description of the output. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the end user.
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
/// The IP address where you want to send the output.
#[doc(hidden)]
pub destination: std::option::Option<std::string::String>,
/// The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Allowable encryption types: static-key.
#[doc(hidden)]
pub encryption: std::option::Option<crate::types::UpdateEncryption>,
/// The flow that is associated with the output that you want to update.
#[doc(hidden)]
pub flow_arn: std::option::Option<std::string::String>,
/// The maximum latency in milliseconds. This parameter applies only to RIST-based, Zixi-based, and Fujitsu-based streams.
#[doc(hidden)]
pub max_latency: std::option::Option<i32>,
/// The media streams that are associated with the output, and the parameters for those associations.
#[doc(hidden)]
pub media_stream_output_configurations:
std::option::Option<std::vec::Vec<crate::types::MediaStreamOutputConfigurationRequest>>,
/// The minimum latency in milliseconds for SRT-based streams. In streams that use the SRT protocol, this value that you set on your MediaConnect source or output represents the minimal potential latency of that connection. The latency of the stream is set to the highest number between the sender’s minimum latency and the receiver’s minimum latency.
#[doc(hidden)]
pub min_latency: std::option::Option<i32>,
/// The ARN of the output that you want to update.
#[doc(hidden)]
pub output_arn: std::option::Option<std::string::String>,
/// The port to use when content is distributed to this output.
#[doc(hidden)]
pub port: std::option::Option<i32>,
/// The protocol to use for the output.
#[doc(hidden)]
pub protocol: std::option::Option<crate::types::Protocol>,
/// The remote ID for the Zixi-pull stream.
#[doc(hidden)]
pub remote_id: std::option::Option<std::string::String>,
/// The port that the flow uses to send outbound requests to initiate connection with the sender.
#[doc(hidden)]
pub sender_control_port: std::option::Option<i32>,
/// The IP address that the flow communicates with to initiate connection with the sender.
#[doc(hidden)]
pub sender_ip_address: std::option::Option<std::string::String>,
/// The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams.
#[doc(hidden)]
pub smoothing_latency: std::option::Option<i32>,
/// The stream ID that you want to use for this transport. This parameter applies only to Zixi and SRT caller-based streams.
#[doc(hidden)]
pub stream_id: std::option::Option<std::string::String>,
/// The name of the VPC interface attachment to use for this output.
#[doc(hidden)]
pub vpc_interface_attachment: std::option::Option<crate::types::VpcInterfaceAttachment>,
}
impl UpdateFlowOutputInput {
/// The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
pub fn cidr_allow_list(&self) -> std::option::Option<&[std::string::String]> {
self.cidr_allow_list.as_deref()
}
/// A description of the output. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the end user.
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
/// The IP address where you want to send the output.
pub fn destination(&self) -> std::option::Option<&str> {
self.destination.as_deref()
}
/// The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Allowable encryption types: static-key.
pub fn encryption(&self) -> std::option::Option<&crate::types::UpdateEncryption> {
self.encryption.as_ref()
}
/// The flow that is associated with the output that you want to update.
pub fn flow_arn(&self) -> std::option::Option<&str> {
self.flow_arn.as_deref()
}
/// The maximum latency in milliseconds. This parameter applies only to RIST-based, Zixi-based, and Fujitsu-based streams.
pub fn max_latency(&self) -> std::option::Option<i32> {
self.max_latency
}
/// The media streams that are associated with the output, and the parameters for those associations.
pub fn media_stream_output_configurations(
&self,
) -> std::option::Option<&[crate::types::MediaStreamOutputConfigurationRequest]> {
self.media_stream_output_configurations.as_deref()
}
/// The minimum latency in milliseconds for SRT-based streams. In streams that use the SRT protocol, this value that you set on your MediaConnect source or output represents the minimal potential latency of that connection. The latency of the stream is set to the highest number between the sender’s minimum latency and the receiver’s minimum latency.
pub fn min_latency(&self) -> std::option::Option<i32> {
self.min_latency
}
/// The ARN of the output that you want to update.
pub fn output_arn(&self) -> std::option::Option<&str> {
self.output_arn.as_deref()
}
/// The port to use when content is distributed to this output.
pub fn port(&self) -> std::option::Option<i32> {
self.port
}
/// The protocol to use for the output.
pub fn protocol(&self) -> std::option::Option<&crate::types::Protocol> {
self.protocol.as_ref()
}
/// The remote ID for the Zixi-pull stream.
pub fn remote_id(&self) -> std::option::Option<&str> {
self.remote_id.as_deref()
}
/// The port that the flow uses to send outbound requests to initiate connection with the sender.
pub fn sender_control_port(&self) -> std::option::Option<i32> {
self.sender_control_port
}
/// The IP address that the flow communicates with to initiate connection with the sender.
pub fn sender_ip_address(&self) -> std::option::Option<&str> {
self.sender_ip_address.as_deref()
}
/// The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams.
pub fn smoothing_latency(&self) -> std::option::Option<i32> {
self.smoothing_latency
}
/// The stream ID that you want to use for this transport. This parameter applies only to Zixi and SRT caller-based streams.
pub fn stream_id(&self) -> std::option::Option<&str> {
self.stream_id.as_deref()
}
/// The name of the VPC interface attachment to use for this output.
pub fn vpc_interface_attachment(
&self,
) -> std::option::Option<&crate::types::VpcInterfaceAttachment> {
self.vpc_interface_attachment.as_ref()
}
}
impl UpdateFlowOutputInput {
/// Creates a new builder-style object to manufacture [`UpdateFlowOutputInput`](crate::operation::update_flow_output::UpdateFlowOutputInput).
pub fn builder() -> crate::operation::update_flow_output::builders::UpdateFlowOutputInputBuilder
{
crate::operation::update_flow_output::builders::UpdateFlowOutputInputBuilder::default()
}
}
/// A builder for [`UpdateFlowOutputInput`](crate::operation::update_flow_output::UpdateFlowOutputInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct UpdateFlowOutputInputBuilder {
pub(crate) cidr_allow_list: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) destination: std::option::Option<std::string::String>,
pub(crate) encryption: std::option::Option<crate::types::UpdateEncryption>,
pub(crate) flow_arn: std::option::Option<std::string::String>,
pub(crate) max_latency: std::option::Option<i32>,
pub(crate) media_stream_output_configurations:
std::option::Option<std::vec::Vec<crate::types::MediaStreamOutputConfigurationRequest>>,
pub(crate) min_latency: std::option::Option<i32>,
pub(crate) output_arn: std::option::Option<std::string::String>,
pub(crate) port: std::option::Option<i32>,
pub(crate) protocol: std::option::Option<crate::types::Protocol>,
pub(crate) remote_id: std::option::Option<std::string::String>,
pub(crate) sender_control_port: std::option::Option<i32>,
pub(crate) sender_ip_address: std::option::Option<std::string::String>,
pub(crate) smoothing_latency: std::option::Option<i32>,
pub(crate) stream_id: std::option::Option<std::string::String>,
pub(crate) vpc_interface_attachment: std::option::Option<crate::types::VpcInterfaceAttachment>,
}
impl UpdateFlowOutputInputBuilder {
/// Appends an item to `cidr_allow_list`.
///
/// To override the contents of this collection use [`set_cidr_allow_list`](Self::set_cidr_allow_list).
///
/// The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
pub fn cidr_allow_list(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.cidr_allow_list.unwrap_or_default();
v.push(input.into());
self.cidr_allow_list = Some(v);
self
}
/// The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
pub fn set_cidr_allow_list(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.cidr_allow_list = input;
self
}
/// A description of the output. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the end user.
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
/// A description of the output. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the end user.
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
/// The IP address where you want to send the output.
pub fn destination(mut self, input: impl Into<std::string::String>) -> Self {
self.destination = Some(input.into());
self
}
/// The IP address where you want to send the output.
pub fn set_destination(mut self, input: std::option::Option<std::string::String>) -> Self {
self.destination = input;
self
}
/// The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Allowable encryption types: static-key.
pub fn encryption(mut self, input: crate::types::UpdateEncryption) -> Self {
self.encryption = Some(input);
self
}
/// The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key). Allowable encryption types: static-key.
pub fn set_encryption(
mut self,
input: std::option::Option<crate::types::UpdateEncryption>,
) -> Self {
self.encryption = input;
self
}
/// The flow that is associated with the output that you want to update.
pub fn flow_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.flow_arn = Some(input.into());
self
}
/// The flow that is associated with the output that you want to update.
pub fn set_flow_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.flow_arn = input;
self
}
/// The maximum latency in milliseconds. This parameter applies only to RIST-based, Zixi-based, and Fujitsu-based streams.
pub fn max_latency(mut self, input: i32) -> Self {
self.max_latency = Some(input);
self
}
/// The maximum latency in milliseconds. This parameter applies only to RIST-based, Zixi-based, and Fujitsu-based streams.
pub fn set_max_latency(mut self, input: std::option::Option<i32>) -> Self {
self.max_latency = input;
self
}
/// Appends an item to `media_stream_output_configurations`.
///
/// To override the contents of this collection use [`set_media_stream_output_configurations`](Self::set_media_stream_output_configurations).
///
/// The media streams that are associated with the output, and the parameters for those associations.
pub fn media_stream_output_configurations(
mut self,
input: crate::types::MediaStreamOutputConfigurationRequest,
) -> Self {
let mut v = self.media_stream_output_configurations.unwrap_or_default();
v.push(input);
self.media_stream_output_configurations = Some(v);
self
}
/// The media streams that are associated with the output, and the parameters for those associations.
pub fn set_media_stream_output_configurations(
mut self,
input: std::option::Option<
std::vec::Vec<crate::types::MediaStreamOutputConfigurationRequest>,
>,
) -> Self {
self.media_stream_output_configurations = input;
self
}
/// The minimum latency in milliseconds for SRT-based streams. In streams that use the SRT protocol, this value that you set on your MediaConnect source or output represents the minimal potential latency of that connection. The latency of the stream is set to the highest number between the sender’s minimum latency and the receiver’s minimum latency.
pub fn min_latency(mut self, input: i32) -> Self {
self.min_latency = Some(input);
self
}
/// The minimum latency in milliseconds for SRT-based streams. In streams that use the SRT protocol, this value that you set on your MediaConnect source or output represents the minimal potential latency of that connection. The latency of the stream is set to the highest number between the sender’s minimum latency and the receiver’s minimum latency.
pub fn set_min_latency(mut self, input: std::option::Option<i32>) -> Self {
self.min_latency = input;
self
}
/// The ARN of the output that you want to update.
pub fn output_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.output_arn = Some(input.into());
self
}
/// The ARN of the output that you want to update.
pub fn set_output_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.output_arn = input;
self
}
/// The port to use when content is distributed to this output.
pub fn port(mut self, input: i32) -> Self {
self.port = Some(input);
self
}
/// The port to use when content is distributed to this output.
pub fn set_port(mut self, input: std::option::Option<i32>) -> Self {
self.port = input;
self
}
/// The protocol to use for the output.
pub fn protocol(mut self, input: crate::types::Protocol) -> Self {
self.protocol = Some(input);
self
}
/// The protocol to use for the output.
pub fn set_protocol(mut self, input: std::option::Option<crate::types::Protocol>) -> Self {
self.protocol = input;
self
}
/// The remote ID for the Zixi-pull stream.
pub fn remote_id(mut self, input: impl Into<std::string::String>) -> Self {
self.remote_id = Some(input.into());
self
}
/// The remote ID for the Zixi-pull stream.
pub fn set_remote_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.remote_id = input;
self
}
/// The port that the flow uses to send outbound requests to initiate connection with the sender.
pub fn sender_control_port(mut self, input: i32) -> Self {
self.sender_control_port = Some(input);
self
}
/// The port that the flow uses to send outbound requests to initiate connection with the sender.
pub fn set_sender_control_port(mut self, input: std::option::Option<i32>) -> Self {
self.sender_control_port = input;
self
}
/// The IP address that the flow communicates with to initiate connection with the sender.
pub fn sender_ip_address(mut self, input: impl Into<std::string::String>) -> Self {
self.sender_ip_address = Some(input.into());
self
}
/// The IP address that the flow communicates with to initiate connection with the sender.
pub fn set_sender_ip_address(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.sender_ip_address = input;
self
}
/// The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams.
pub fn smoothing_latency(mut self, input: i32) -> Self {
self.smoothing_latency = Some(input);
self
}
/// The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams.
pub fn set_smoothing_latency(mut self, input: std::option::Option<i32>) -> Self {
self.smoothing_latency = input;
self
}
/// The stream ID that you want to use for this transport. This parameter applies only to Zixi and SRT caller-based streams.
pub fn stream_id(mut self, input: impl Into<std::string::String>) -> Self {
self.stream_id = Some(input.into());
self
}
/// The stream ID that you want to use for this transport. This parameter applies only to Zixi and SRT caller-based streams.
pub fn set_stream_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.stream_id = input;
self
}
/// The name of the VPC interface attachment to use for this output.
pub fn vpc_interface_attachment(mut self, input: crate::types::VpcInterfaceAttachment) -> Self {
self.vpc_interface_attachment = Some(input);
self
}
/// The name of the VPC interface attachment to use for this output.
pub fn set_vpc_interface_attachment(
mut self,
input: std::option::Option<crate::types::VpcInterfaceAttachment>,
) -> Self {
self.vpc_interface_attachment = input;
self
}
/// Consumes the builder and constructs a [`UpdateFlowOutputInput`](crate::operation::update_flow_output::UpdateFlowOutputInput).
pub fn build(
self,
) -> Result<
crate::operation::update_flow_output::UpdateFlowOutputInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(
crate::operation::update_flow_output::UpdateFlowOutputInput {
cidr_allow_list: self.cidr_allow_list,
description: self.description,
destination: self.destination,
encryption: self.encryption,
flow_arn: self.flow_arn,
max_latency: self.max_latency,
media_stream_output_configurations: self.media_stream_output_configurations,
min_latency: self.min_latency,
output_arn: self.output_arn,
port: self.port,
protocol: self.protocol,
remote_id: self.remote_id,
sender_control_port: self.sender_control_port,
sender_ip_address: self.sender_ip_address,
smoothing_latency: self.smoothing_latency,
stream_id: self.stream_id,
vpc_interface_attachment: self.vpc_interface_attachment,
},
)
}
}