blib/lib/Paws/MediaConnect/AddFlowSources.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::MediaConnect::AddFlowSources;
3 use Moose;
4 has FlowArn => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'flowArn', required => 1);
5 has Sources => (is => 'ro', isa => 'ArrayRef[Paws::MediaConnect::SetSourceRequest]', traits => ['NameInRequest'], request_name => 'sources', required => 1);
6  
7 use MooseX::ClassAttribute;
8  
9 class_has _api_call => (isa => 'Str', is => 'ro', default => 'AddFlowSources');
10 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/flows/{flowArn}/source');
11 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::MediaConnect::AddFlowSourcesResponse');
13 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::MediaConnect::AddFlowSources - Arguments for method AddFlowSources on L<Paws::MediaConnect>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method AddFlowSources on the
24 L<AWS MediaConnect|Paws::MediaConnect> service. Use the attributes of this class
25 as arguments to method AddFlowSources.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AddFlowSources.
28  
29 =head1 SYNOPSIS
30  
31 my $mediaconnect = Paws->service('MediaConnect');
32 my $AddFlowSourcesResponse = $mediaconnect->AddFlowSources(
33 FlowArn => 'My__string',
34 Sources => [
35 {
36 Decryption => {
37 RoleArn => 'My__string',
38 Algorithm => 'aes128', # values: aes128, aes192, aes256; OPTIONAL
39 ConstantInitializationVector => 'My__string',
40 DeviceId => 'My__string',
41 KeyType =>
42 'speke', # values: speke, static-key, srt-password; OPTIONAL
43 Region => 'My__string',
44 ResourceId => 'My__string',
45 SecretArn => 'My__string',
46 Url => 'My__string',
47 }, # OPTIONAL
48 Description => 'My__string',
49 EntitlementArn => 'My__string',
50 IngestPort => 1, # OPTIONAL
51 MaxBitrate => 1, # OPTIONAL
52 MaxLatency => 1, # OPTIONAL
53 MaxSyncBuffer => 1, # OPTIONAL
54 MediaStreamSourceConfigurations => [
55 {
56 EncodingName => 'jxsv', # values: jxsv, raw, smpte291, pcm
57 MediaStreamName => 'My__string',
58 InputConfigurations => [
59 {
60 InputPort => 1, # OPTIONAL
61 Interface => {
62 Name => 'My__string',
63  
64 },
65  
66 },
67 ...
68 ], # OPTIONAL
69 },
70 ...
71 ], # OPTIONAL
72 MinLatency => 1, # OPTIONAL
73 Name => 'My__string',
74 Protocol => 'zixi-push'
75 , # values: zixi-push, rtp-fec, rtp, zixi-pull, rist, st2110-jpegxs, cdi, srt-listener; OPTIONAL
76 StreamId => 'My__string',
77 VpcInterfaceName => 'My__string',
78 WhitelistCidr => 'My__string',
79 },
80 ...
81 ],
82  
83 );
84  
85 # Results:
86 my $FlowArn = $AddFlowSourcesResponse->FlowArn;
87 my $Sources = $AddFlowSourcesResponse->Sources;
88  
89 # Returns a L<Paws::MediaConnect::AddFlowSourcesResponse> object.
90  
91 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.
92 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/mediaconnect/AddFlowSources>
93  
94 =head1 ATTRIBUTES
95  
96  
97 =head2 B<REQUIRED> FlowArn => Str
98  
99 The flow that you want to mutate.
100  
101  
102  
103 =head2 B<REQUIRED> Sources => ArrayRef[L<Paws::MediaConnect::SetSourceRequest>]
104  
105 A list of sources that you want to add.
106  
107  
108  
109  
110 =head1 SEE ALSO
111  
112 This class forms part of L<Paws>, documenting arguments for method AddFlowSources in L<Paws::MediaConnect>
113  
114 =head1 BUGS and CONTRIBUTIONS
115  
116 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
117  
118 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
119  
120 =cut
121