blib/lib/Paws/IoT/CreateDynamicThingGroup.pm untested

filter: Statementstmt 0.0% 0 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::IoT::CreateDynamicThingGroup;
3 use Moose;
4 has IndexName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'indexName');
5 has QueryString => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'queryString', required => 1);
6 has QueryVersion => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'queryVersion');
7 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::IoT::Tag]', traits => ['NameInRequest'], request_name => 'tags');
8 has ThingGroupName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'thingGroupName', required => 1);
9 has ThingGroupProperties => (is => 'ro', isa => 'Paws::IoT::ThingGroupProperties', traits => ['NameInRequest'], request_name => 'thingGroupProperties');
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateDynamicThingGroup');
14 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/dynamic-thing-groups/{thingGroupName}');
15 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
16 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IoT::CreateDynamicThingGroupResponse');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::IoT::CreateDynamicThingGroup - Arguments for method CreateDynamicThingGroup on L<Paws::IoT>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method CreateDynamicThingGroup on the
28 L<AWS IoT|Paws::IoT> service. Use the attributes of this class
29 as arguments to method CreateDynamicThingGroup.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDynamicThingGroup.
32  
33 =head1 SYNOPSIS
34  
35 my $iot = Paws->service('IoT');
36 my $CreateDynamicThingGroupResponse = $iot->CreateDynamicThingGroup(
37 QueryString => 'MyQueryString',
38 ThingGroupName => 'MyThingGroupName',
39 IndexName => 'MyIndexName', # OPTIONAL
40 QueryVersion => 'MyQueryVersion', # OPTIONAL
41 Tags => [
42 {
43 Key => 'MyTagKey', # min: 1, max: 128
44 Value => 'MyTagValue', # min: 1, max: 256; OPTIONAL
45 },
46 ...
47 ], # OPTIONAL
48 ThingGroupProperties => {
49 AttributePayload => {
50 Attributes => {
51 'MyAttributeName' =>
52 'MyAttributeValue', # key: max: 128, value: max: 800
53 }, # OPTIONAL
54 Merge => 1, # OPTIONAL
55 }, # OPTIONAL
56 ThingGroupDescription =>
57 'MyThingGroupDescription', # max: 2028; OPTIONAL
58 }, # OPTIONAL
59 );
60  
61 # Results:
62 my $IndexName = $CreateDynamicThingGroupResponse->IndexName;
63 my $QueryString = $CreateDynamicThingGroupResponse->QueryString;
64 my $QueryVersion = $CreateDynamicThingGroupResponse->QueryVersion;
65 my $ThingGroupArn = $CreateDynamicThingGroupResponse->ThingGroupArn;
66 my $ThingGroupId = $CreateDynamicThingGroupResponse->ThingGroupId;
67 my $ThingGroupName = $CreateDynamicThingGroupResponse->ThingGroupName;
68  
69 # Returns a L<Paws::IoT::CreateDynamicThingGroupResponse> object.
70  
71 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.
72 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iot/CreateDynamicThingGroup>
73  
74 =head1 ATTRIBUTES
75  
76  
77 =head2 IndexName => Str
78  
79 The dynamic thing group index name.
80  
81 Currently one index is supported: "AWS_Things".
82  
83  
84  
85 =head2 B<REQUIRED> QueryString => Str
86  
87 The dynamic thing group search query string.
88  
89 See Query Syntax
90 (https://docs.aws.amazon.com/iot/latest/developerguide/query-syntax.html)
91 for information about query string syntax.
92  
93  
94  
95 =head2 QueryVersion => Str
96  
97 The dynamic thing group query version.
98  
99 Currently one query version is supported: "2017-09-30". If not
100 specified, the query version defaults to this value.
101  
102  
103  
104 =head2 Tags => ArrayRef[L<Paws::IoT::Tag>]
105  
106 Metadata which can be used to manage the dynamic thing group.
107  
108  
109  
110 =head2 B<REQUIRED> ThingGroupName => Str
111  
112 The dynamic thing group name to create.
113  
114  
115  
116 =head2 ThingGroupProperties => L<Paws::IoT::ThingGroupProperties>
117  
118 The dynamic thing group properties.
119  
120  
121  
122  
123 =head1 SEE ALSO
124  
125 This class forms part of L<Paws>, documenting arguments for method CreateDynamicThingGroup in L<Paws::IoT>
126  
127 =head1 BUGS and CONTRIBUTIONS
128  
129 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
130  
131 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
132  
133 =cut
134