blib/lib/Paws/CloudWatch/PutMetricStream.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::CloudWatch::PutMetricStream;
3 use Moose;
4 has ExcludeFilters => (is => 'ro', isa => 'ArrayRef[Paws::CloudWatch::MetricStreamFilter]');
5 has FirehoseArn => (is => 'ro', isa => 'Str', required => 1);
6 has IncludeFilters => (is => 'ro', isa => 'ArrayRef[Paws::CloudWatch::MetricStreamFilter]');
7 has Name => (is => 'ro', isa => 'Str', required => 1);
8 has OutputFormat => (is => 'ro', isa => 'Str', required => 1);
9 has RoleArn => (is => 'ro', isa => 'Str', required => 1);
10 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::CloudWatch::Tag]');
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutMetricStream');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CloudWatch::PutMetricStreamOutput');
16 class_has _result_key => (isa => 'Str', is => 'ro', default => 'PutMetricStreamResult');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::CloudWatch::PutMetricStream - Arguments for method PutMetricStream on L<Paws::CloudWatch>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method PutMetricStream on the
28 L<Amazon CloudWatch|Paws::CloudWatch> service. Use the attributes of this class
29 as arguments to method PutMetricStream.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutMetricStream.
32  
33 =head1 SYNOPSIS
34  
35 my $monitoring = Paws->service('CloudWatch');
36 my $PutMetricStreamOutput = $monitoring->PutMetricStream(
37 FirehoseArn => 'MyAmazonResourceName',
38 Name => 'MyMetricStreamName',
39 OutputFormat => 'json',
40 RoleArn => 'MyAmazonResourceName',
41 ExcludeFilters => [
42 {
43 Namespace => 'MyNamespace', # min: 1, max: 255; OPTIONAL
44 },
45 ...
46 ], # OPTIONAL
47 IncludeFilters => [
48 {
49 Namespace => 'MyNamespace', # min: 1, max: 255; OPTIONAL
50 },
51 ...
52 ], # OPTIONAL
53 Tags => [
54 {
55 Key => 'MyTagKey', # min: 1, max: 128
56 Value => 'MyTagValue', # max: 256
57  
58 },
59 ...
60 ], # OPTIONAL
61 );
62  
63 # Results:
64 my $Arn = $PutMetricStreamOutput->Arn;
65  
66 # Returns a L<Paws::CloudWatch::PutMetricStreamOutput> object.
67  
68 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.
69 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/monitoring/PutMetricStream>
70  
71 =head1 ATTRIBUTES
72  
73  
74 =head2 ExcludeFilters => ArrayRef[L<Paws::CloudWatch::MetricStreamFilter>]
75  
76 If you specify this parameter, the stream sends metrics from all metric
77 namespaces except for the namespaces that you specify here.
78  
79 You cannot include C<ExcludeFilters> and C<IncludeFilters> in the same
80 operation.
81  
82  
83  
84 =head2 B<REQUIRED> FirehoseArn => Str
85  
86 The ARN of the Amazon Kinesis Firehose delivery stream to use for this
87 metric stream. This Amazon Kinesis Firehose delivery stream must
88 already exist and must be in the same account as the metric stream.
89  
90  
91  
92 =head2 IncludeFilters => ArrayRef[L<Paws::CloudWatch::MetricStreamFilter>]
93  
94 If you specify this parameter, the stream sends only the metrics from
95 the metric namespaces that you specify here.
96  
97 You cannot include C<IncludeFilters> and C<ExcludeFilters> in the same
98 operation.
99  
100  
101  
102 =head2 B<REQUIRED> Name => Str
103  
104 If you are creating a new metric stream, this is the name for the new
105 stream. The name must be different than the names of other metric
106 streams in this account and Region.
107  
108 If you are updating a metric stream, specify the name of that stream
109 here.
110  
111 Valid characters are A-Z, a-z, 0-9, "-" and "_".
112  
113  
114  
115 =head2 B<REQUIRED> OutputFormat => Str
116  
117 The output format for the stream. Valid values are C<json> and
118 C<opentelemetry0.7>. For more information about metric stream output
119 formats, see Metric streams output formats
120 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html).
121  
122 Valid values are: C<"json">, C<"opentelemetry0.7">
123  
124 =head2 B<REQUIRED> RoleArn => Str
125  
126 The ARN of an IAM role that this metric stream will use to access
127 Amazon Kinesis Firehose resources. This IAM role must already exist and
128 must be in the same account as the metric stream. This IAM role must
129 include the following permissions:
130  
131 =over
132  
133 =item *
134  
135 firehose:PutRecord
136  
137 =item *
138  
139 firehose:PutRecordBatch
140  
141 =back
142  
143  
144  
145  
146 =head2 Tags => ArrayRef[L<Paws::CloudWatch::Tag>]
147  
148 A list of key-value pairs to associate with the metric stream. You can
149 associate as many as 50 tags with a metric stream.
150  
151 Tags can help you organize and categorize your resources. You can also
152 use them to scope user permissions by granting a user permission to
153 access or change only resources with certain tag values.
154  
155  
156  
157  
158 =head1 SEE ALSO
159  
160 This class forms part of L<Paws>, documenting arguments for method PutMetricStream in L<Paws::CloudWatch>
161  
162 =head1 BUGS and CONTRIBUTIONS
163  
164 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
165  
166 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
167  
168 =cut
169