#[non_exhaustive]pub struct CreateInputInput {Show 16 fields
pub destinations: Option<Vec<InputDestinationRequest>>,
pub input_devices: Option<Vec<InputDeviceSettings>>,
pub input_security_groups: Option<Vec<String>>,
pub media_connect_flows: Option<Vec<MediaConnectFlowRequest>>,
pub name: Option<String>,
pub request_id: Option<String>,
pub role_arn: Option<String>,
pub sources: Option<Vec<InputSourceRequest>>,
pub tags: Option<HashMap<String, String>>,
pub type: Option<InputType>,
pub vpc: Option<InputVpcRequest>,
pub srt_settings: Option<SrtSettingsRequest>,
pub input_network_location: Option<InputNetworkLocation>,
pub multicast_settings: Option<MulticastSettingsCreateRequest>,
pub smpte2110_receiver_group_settings: Option<Smpte2110ReceiverGroupSettings>,
pub sdi_sources: Option<Vec<String>>,
}
Expand description
The name of the input
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.destinations: Option<Vec<InputDestinationRequest>>
Destination settings for PUSH type inputs.
input_devices: Option<Vec<InputDeviceSettings>>
Settings for the devices.
input_security_groups: Option<Vec<String>>
A list of security groups referenced by IDs to attach to the input.
media_connect_flows: Option<Vec<MediaConnectFlowRequest>>
A list of the MediaConnect Flows that you want to use in this input. You can specify as few as one Flow and presently, as many as two. The only requirement is when you have more than one is that each Flow is in a separate Availability Zone as this ensures your EML input is redundant to AZ issues.
name: Option<String>
Name of the input.
request_id: Option<String>
Unique identifier of the request to ensure the request is handled exactly once in case of retries.
role_arn: Option<String>
The Amazon Resource Name (ARN) of the role this input assumes during and after creation.
sources: Option<Vec<InputSourceRequest>>
The source URLs for a PULL-type input. Every PULL type input needs exactly two source URLs for redundancy. Only specify sources for PULL type Inputs. Leave Destinations empty.
A collection of key-value pairs.
type: Option<InputType>
The different types of inputs that AWS Elemental MediaLive supports.
vpc: Option<InputVpcRequest>
Settings for a private VPC Input. When this property is specified, the input destination addresses will be created in a VPC rather than with public Internet addresses. This property requires setting the roleArn property on Input creation. Not compatible with the inputSecurityGroups property.
srt_settings: Option<SrtSettingsRequest>
The settings associated with an SRT input.
input_network_location: Option<InputNetworkLocation>
The location of this input. AWS, for an input existing in the AWS Cloud, On-Prem for an input in a customer network.
multicast_settings: Option<MulticastSettingsCreateRequest>
Multicast Input settings.
smpte2110_receiver_group_settings: Option<Smpte2110ReceiverGroupSettings>
Include this parameter if the input is a SMPTE 2110 input, to identify the stream sources for this input.
sdi_sources: Option<Vec<String>>
SDI Sources for this Input.
Implementations§
Source§impl CreateInputInput
impl CreateInputInput
Sourcepub fn destinations(&self) -> &[InputDestinationRequest]
pub fn destinations(&self) -> &[InputDestinationRequest]
Destination settings for PUSH type inputs.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .destinations.is_none()
.
Sourcepub fn input_devices(&self) -> &[InputDeviceSettings]
pub fn input_devices(&self) -> &[InputDeviceSettings]
Settings for the devices.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .input_devices.is_none()
.
Sourcepub fn input_security_groups(&self) -> &[String]
pub fn input_security_groups(&self) -> &[String]
A list of security groups referenced by IDs to attach to the input.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .input_security_groups.is_none()
.
Sourcepub fn media_connect_flows(&self) -> &[MediaConnectFlowRequest]
pub fn media_connect_flows(&self) -> &[MediaConnectFlowRequest]
A list of the MediaConnect Flows that you want to use in this input. You can specify as few as one Flow and presently, as many as two. The only requirement is when you have more than one is that each Flow is in a separate Availability Zone as this ensures your EML input is redundant to AZ issues.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .media_connect_flows.is_none()
.
Sourcepub fn request_id(&self) -> Option<&str>
pub fn request_id(&self) -> Option<&str>
Unique identifier of the request to ensure the request is handled exactly once in case of retries.
Sourcepub fn role_arn(&self) -> Option<&str>
pub fn role_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the role this input assumes during and after creation.
Sourcepub fn sources(&self) -> &[InputSourceRequest]
pub fn sources(&self) -> &[InputSourceRequest]
The source URLs for a PULL-type input. Every PULL type input needs exactly two source URLs for redundancy. Only specify sources for PULL type Inputs. Leave Destinations empty.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .sources.is_none()
.
A collection of key-value pairs.
Sourcepub fn type(&self) -> Option<&InputType>
pub fn type(&self) -> Option<&InputType>
The different types of inputs that AWS Elemental MediaLive supports.
Sourcepub fn vpc(&self) -> Option<&InputVpcRequest>
pub fn vpc(&self) -> Option<&InputVpcRequest>
Settings for a private VPC Input. When this property is specified, the input destination addresses will be created in a VPC rather than with public Internet addresses. This property requires setting the roleArn property on Input creation. Not compatible with the inputSecurityGroups property.
Sourcepub fn srt_settings(&self) -> Option<&SrtSettingsRequest>
pub fn srt_settings(&self) -> Option<&SrtSettingsRequest>
The settings associated with an SRT input.
Sourcepub fn input_network_location(&self) -> Option<&InputNetworkLocation>
pub fn input_network_location(&self) -> Option<&InputNetworkLocation>
The location of this input. AWS, for an input existing in the AWS Cloud, On-Prem for an input in a customer network.
Sourcepub fn multicast_settings(&self) -> Option<&MulticastSettingsCreateRequest>
pub fn multicast_settings(&self) -> Option<&MulticastSettingsCreateRequest>
Multicast Input settings.
Sourcepub fn smpte2110_receiver_group_settings(
&self,
) -> Option<&Smpte2110ReceiverGroupSettings>
pub fn smpte2110_receiver_group_settings( &self, ) -> Option<&Smpte2110ReceiverGroupSettings>
Include this parameter if the input is a SMPTE 2110 input, to identify the stream sources for this input.
Sourcepub fn sdi_sources(&self) -> &[String]
pub fn sdi_sources(&self) -> &[String]
SDI Sources for this Input.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .sdi_sources.is_none()
.
Source§impl CreateInputInput
impl CreateInputInput
Sourcepub fn builder() -> CreateInputInputBuilder
pub fn builder() -> CreateInputInputBuilder
Creates a new builder-style object to manufacture CreateInputInput
.
Trait Implementations§
Source§impl Clone for CreateInputInput
impl Clone for CreateInputInput
Source§fn clone(&self) -> CreateInputInput
fn clone(&self) -> CreateInputInput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CreateInputInput
impl Debug for CreateInputInput
Source§impl PartialEq for CreateInputInput
impl PartialEq for CreateInputInput
impl StructuralPartialEq for CreateInputInput
Auto Trait Implementations§
impl Freeze for CreateInputInput
impl RefUnwindSafe for CreateInputInput
impl Send for CreateInputInput
impl Sync for CreateInputInput
impl Unpin for CreateInputInput
impl UnwindSafe for CreateInputInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);