blib/lib/Paws/MediaLive/CreateInput.pm untested

filter: Statementstmt 0.0% 0 / 32 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 34 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::MediaLive::CreateInput;
3 use Moose;
4 has Destinations => (is => 'ro', isa => 'ArrayRef[Paws::MediaLive::InputDestinationRequest]', traits => ['NameInRequest'], request_name => 'destinations');
5 has InputDevices => (is => 'ro', isa => 'ArrayRef[Paws::MediaLive::InputDeviceSettings]', traits => ['NameInRequest'], request_name => 'inputDevices');
6 has InputSecurityGroups => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'inputSecurityGroups');
7 has MediaConnectFlows => (is => 'ro', isa => 'ArrayRef[Paws::MediaLive::MediaConnectFlowRequest]', traits => ['NameInRequest'], request_name => 'mediaConnectFlows');
8 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name');
9 has RequestId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'requestId');
10 has RoleArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'roleArn');
11 has Sources => (is => 'ro', isa => 'ArrayRef[Paws::MediaLive::InputSourceRequest]', traits => ['NameInRequest'], request_name => 'sources');
12 has Tags => (is => 'ro', isa => 'Paws::MediaLive::Tags', traits => ['NameInRequest'], request_name => 'tags');
13 has Type => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'type');
14 has Vpc => (is => 'ro', isa => 'Paws::MediaLive::InputVpcRequest', traits => ['NameInRequest'], request_name => 'vpc');
15  
16 use MooseX::ClassAttribute;
17  
18 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateInput');
19 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/prod/inputs');
20 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
21 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::MediaLive::CreateInputResponse');
22 1;
23  
24 ### main pod documentation begin ###
25  
26 =head1 NAME
27  
28 Paws::MediaLive::CreateInput - Arguments for method CreateInput on L<Paws::MediaLive>
29  
30 =head1 DESCRIPTION
31  
32 This class represents the parameters used for calling the method CreateInput on the
33 L<AWS Elemental MediaLive|Paws::MediaLive> service. Use the attributes of this class
34 as arguments to method CreateInput.
35  
36 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateInput.
37  
38 =head1 SYNOPSIS
39  
40 my $medialive = Paws->service('MediaLive');
41 my $CreateInputResponse = $medialive->CreateInput(
42 Destinations => [
43 {
44 StreamName => 'My__string', # OPTIONAL
45 },
46 ...
47 ], # OPTIONAL
48 InputDevices => [
49 {
50 Id => 'My__string', # OPTIONAL
51 },
52 ...
53 ], # OPTIONAL
54 InputSecurityGroups => [
55 'My__string', ... # OPTIONAL
56 ], # OPTIONAL
57 MediaConnectFlows => [
58 {
59 FlowArn => 'My__string', # OPTIONAL
60 },
61 ...
62 ], # OPTIONAL
63 Name => 'My__string', # OPTIONAL
64 RequestId => 'My__string', # OPTIONAL
65 RoleArn => 'My__string', # OPTIONAL
66 Sources => [
67 {
68 PasswordParam => 'My__string', # OPTIONAL
69 Url => 'My__string', # OPTIONAL
70 Username => 'My__string', # OPTIONAL
71 },
72 ...
73 ], # OPTIONAL
74 Tags => {
75 'My__string' => 'My__string', # key: OPTIONAL, value: OPTIONAL
76 }, # OPTIONAL
77 Type => 'UDP_PUSH', # OPTIONAL
78 Vpc => {
79 SubnetIds => [
80 'My__string', ... # OPTIONAL
81 ],
82 SecurityGroupIds => [
83 'My__string', ... # OPTIONAL
84 ],
85 }, # OPTIONAL
86 );
87  
88 # Results:
89 my $Destinations = $CreateInputResponse->Destinations;
90 my $InputDevices = $CreateInputResponse->InputDevices;
91 my $InputSecurityGroups = $CreateInputResponse->InputSecurityGroups;
92 my $MediaConnectFlows = $CreateInputResponse->MediaConnectFlows;
93 my $Name = $CreateInputResponse->Name;
94 my $RequestId = $CreateInputResponse->RequestId;
95 my $RoleArn = $CreateInputResponse->RoleArn;
96 my $Sources = $CreateInputResponse->Sources;
97 my $Tags = $CreateInputResponse->Tags;
98 my $Type = $CreateInputResponse->Type;
99 my $Vpc = $CreateInputResponse->Vpc;
100  
101 # Returns a L<Paws::MediaLive::CreateInputResponse> object.
102  
103 Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
104 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/medialive/CreateInput>
105  
106 =head1 ATTRIBUTES
107  
108  
109 =head2 Destinations => ArrayRef[L<Paws::MediaLive::InputDestinationRequest>]
110  
111 Destination settings for PUSH type inputs.
112  
113  
114  
115 =head2 InputDevices => ArrayRef[L<Paws::MediaLive::InputDeviceSettings>]
116  
117 Settings for the devices.
118  
119  
120  
121 =head2 InputSecurityGroups => ArrayRef[Str|Undef]
122  
123 A list of security groups referenced by IDs to attach to the input.
124  
125  
126  
127 =head2 MediaConnectFlows => ArrayRef[L<Paws::MediaLive::MediaConnectFlowRequest>]
128  
129 A list of the MediaConnect Flows that you want to use in this input.
130 You can specify as few as one Flow and presently, as many as two. The
131 only requirement is when you have more than one is that each Flow is in
132 a separate Availability Zone as this ensures your EML input is
133 redundant to AZ issues.
134  
135  
136  
137 =head2 Name => Str
138  
139 Name of the input.
140  
141  
142  
143 =head2 RequestId => Str
144  
145 Unique identifier of the request to ensure the request is handled
146 exactly once in case of retries.
147  
148  
149  
150 =head2 RoleArn => Str
151  
152 The Amazon Resource Name (ARN) of the role this input assumes during
153 and after creation.
154  
155  
156  
157 =head2 Sources => ArrayRef[L<Paws::MediaLive::InputSourceRequest>]
158  
159 The source URLs for a PULL-type input. Every PULL type input needs
160 exactly two source URLs for redundancy. Only specify sources for PULL
161 type Inputs. Leave Destinations empty.
162  
163  
164  
165 =head2 Tags => L<Paws::MediaLive::Tags>
166  
167 A collection of key-value pairs.
168  
169  
170  
171 =head2 Type => Str
172  
173  
174  
175 Valid values are: C<"UDP_PUSH">, C<"RTP_PUSH">, C<"RTMP_PUSH">, C<"RTMP_PULL">, C<"URL_PULL">, C<"MP4_FILE">, C<"MEDIACONNECT">, C<"INPUT_DEVICE">, C<"AWS_CDI">
176  
177 =head2 Vpc => L<Paws::MediaLive::InputVpcRequest>
178  
179  
180  
181  
182  
183  
184 =head1 SEE ALSO
185  
186 This class forms part of L<Paws>, documenting arguments for method CreateInput in L<Paws::MediaLive>
187  
188 =head1 BUGS and CONTRIBUTIONS
189  
190 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
191  
192 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
193  
194 =cut
195