blib/lib/Paws/XRay/CreateSamplingRule.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::XRay::CreateSamplingRule;
3 use Moose;
4 has SamplingRule => (is => 'ro', isa => 'Paws::XRay::SamplingRule', required => 1);
5 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::XRay::Tag]');
6  
7 use MooseX::ClassAttribute;
8  
9 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateSamplingRule');
10 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/CreateSamplingRule');
11 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::XRay::CreateSamplingRuleResult');
13 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::XRay::CreateSamplingRule - Arguments for method CreateSamplingRule on L<Paws::XRay>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method CreateSamplingRule on the
24 L<AWS X-Ray|Paws::XRay> service. Use the attributes of this class
25 as arguments to method CreateSamplingRule.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateSamplingRule.
28  
29 =head1 SYNOPSIS
30  
31 my $xray = Paws->service('XRay');
32 my $CreateSamplingRuleResult = $xray->CreateSamplingRule(
33 SamplingRule => {
34 FixedRate => 1, # max: 1
35 HTTPMethod => 'MyHTTPMethod', # max: 10
36 Host => 'MyHost', # max: 64
37 Priority => 1, # min: 1, max: 9999
38 ReservoirSize => 1,
39 ResourceARN => 'MyResourceARN', # max: 500
40 ServiceName => 'MyServiceName', # max: 64
41 ServiceType => 'MyServiceType', # max: 64
42 URLPath => 'MyURLPath', # max: 128
43 Version => 1, # min: 1
44 Attributes => {
45 'MyAttributeKey' =>
46 'MyAttributeValue', # key: min: 1, max: 32, value: min: 1, max: 32
47 }, # max: 5; OPTIONAL
48 RuleARN => 'MyString', # OPTIONAL
49 RuleName => 'MyRuleName', # min: 1, max: 32; OPTIONAL
50 },
51 Tags => [
52 {
53 Key => 'MyTagKey', # min: 1, max: 128
54 Value => 'MyTagValue', # max: 256
55  
56 },
57 ...
58 ], # OPTIONAL
59 );
60  
61 # Results:
62 my $SamplingRuleRecord = $CreateSamplingRuleResult->SamplingRuleRecord;
63  
64 # Returns a L<Paws::XRay::CreateSamplingRuleResult> object.
65  
66 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.
67 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/xray/CreateSamplingRule>
68  
69 =head1 ATTRIBUTES
70  
71  
72 =head2 B<REQUIRED> SamplingRule => L<Paws::XRay::SamplingRule>
73  
74 The rule definition.
75  
76  
77  
78 =head2 Tags => ArrayRef[L<Paws::XRay::Tag>]
79  
80 A map that contains one or more tag keys and tag values to attach to an
81 X-Ray sampling rule. For more information about ways to use tags, see
82 Tagging AWS resources
83 (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in the
84 I<AWS General Reference>.
85  
86 The following restrictions apply to tags:
87  
88 =over
89  
90 =item *
91  
92 Maximum number of user-applied tags per resource: 50
93  
94 =item *
95  
96 Maximum tag key length: 128 Unicode characters
97  
98 =item *
99  
100 Maximum tag value length: 256 Unicode characters
101  
102 =item *
103  
104 Valid values for key and value: a-z, A-Z, 0-9, space, and the following
105 characters: _ . : / = + - and @
106  
107 =item *
108  
109 Tag keys and values are case sensitive.
110  
111 =item *
112  
113 Don't use C<aws:> as a prefix for keys; it's reserved for AWS use.
114  
115 =back
116  
117  
118  
119  
120  
121 =head1 SEE ALSO
122  
123 This class forms part of L<Paws>, documenting arguments for method CreateSamplingRule in L<Paws::XRay>
124  
125 =head1 BUGS and CONTRIBUTIONS
126  
127 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
128  
129 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
130  
131 =cut
132