blib/lib/Paws/CloudFront/CreateRealtimeLogConfig.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::CloudFront::CreateRealtimeLogConfig;
3 use Moose;
4 has EndPoints => (is => 'ro', isa => 'ArrayRef[Paws::CloudFront::EndPoint]', required => 1);
5 has Fields => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'Field', traits => ['NameInRequest'], required => 1);
6 has Name => (is => 'ro', isa => 'Str', required => 1);
7 has SamplingRate => (is => 'ro', isa => 'Int', required => 1);
8  
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateRealtimeLogConfig');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2020-05-31/realtime-log-config');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CloudFront::CreateRealtimeLogConfigResult');
16 class_has _result_key => (isa => 'Str', is => 'ro');
17 class_has _top_level_element => (isa => 'Str', is => 'ro', default => 'CreateRealtimeLogConfigRequest');
18 class_has _top_level_namespace => (isa => 'Str', is => 'ro', default => 'http://cloudfront.amazonaws.com/doc/2020-05-31/');
19 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::CloudFront::CreateRealtimeLogConfig - Arguments for method CreateRealtimeLogConfig on L<Paws::CloudFront>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method CreateRealtimeLogConfig2020_05_31 on the
30 L<Amazon CloudFront|Paws::CloudFront> service. Use the attributes of this class
31 as arguments to method CreateRealtimeLogConfig2020_05_31.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateRealtimeLogConfig2020_05_31.
34  
35 =head1 SYNOPSIS
36  
37 my $cloudfront = Paws->service('CloudFront');
38 my $CreateRealtimeLogConfigResult = $cloudfront->CreateRealtimeLogConfig(
39 EndPoints => [
40 {
41 StreamType => 'Mystring',
42 KinesisStreamConfig => {
43 RoleARN => 'Mystring',
44 StreamARN => 'Mystring',
45  
46 }, # OPTIONAL
47 },
48 ...
49 ],
50 Fields => [ 'Mystring', ... ],
51 Name => 'Mystring',
52 SamplingRate => 1,
53  
54 );
55  
56 # Results:
57 my $RealtimeLogConfig = $CreateRealtimeLogConfigResult->RealtimeLogConfig;
58  
59 # Returns a L<Paws::CloudFront::CreateRealtimeLogConfigResult> object.
60  
61 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.
62 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/cloudfront/CreateRealtimeLogConfig>
63  
64 =head1 ATTRIBUTES
65  
66  
67 =head2 B<REQUIRED> EndPoints => ArrayRef[L<Paws::CloudFront::EndPoint>]
68  
69 Contains information about the Amazon Kinesis data stream where you are
70 sending real-time log data.
71  
72  
73  
74 =head2 B<REQUIRED> Fields => ArrayRef[Str|Undef]
75  
76 A list of fields to include in each real-time log record.
77  
78 For more information about fields, see Real-time log configuration
79 fields
80 (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-fields)
81 in the I<Amazon CloudFront Developer Guide>.
82  
83  
84  
85 =head2 B<REQUIRED> Name => Str
86  
87 A unique name to identify this real-time log configuration.
88  
89  
90  
91 =head2 B<REQUIRED> SamplingRate => Int
92  
93 The sampling rate for this real-time log configuration. The sampling
94 rate determines the percentage of viewer requests that are represented
95 in the real-time log data. You must provide an integer between 1 and
96 100, inclusive.
97  
98  
99  
100  
101 =head1 SEE ALSO
102  
103 This class forms part of L<Paws>, documenting arguments for method CreateRealtimeLogConfig2020_05_31 in L<Paws::CloudFront>
104  
105 =head1 BUGS and CONTRIBUTIONS
106  
107 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
108  
109 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
110  
111 =cut
112