blib/lib/Paws/IoTWireless/CreateDestination.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::IoTWireless::CreateDestination;
3 use Moose;
4 has ClientRequestToken => (is => 'ro', isa => 'Str');
5 has Description => (is => 'ro', isa => 'Str');
6 has Expression => (is => 'ro', isa => 'Str', required => 1);
7 has ExpressionType => (is => 'ro', isa => 'Str', required => 1);
8 has Name => (is => 'ro', isa => 'Str', required => 1);
9 has RoleArn => (is => 'ro', isa => 'Str', required => 1);
10 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::IoTWireless::Tag]');
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateDestination');
15 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/destinations');
16 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IoTWireless::CreateDestinationResponse');
18 1;
19  
20 ### main pod documentation begin ###
21  
22 =head1 NAME
23  
24 Paws::IoTWireless::CreateDestination - Arguments for method CreateDestination on L<Paws::IoTWireless>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method CreateDestination on the
29 L<AWS IoT Wireless|Paws::IoTWireless> service. Use the attributes of this class
30 as arguments to method CreateDestination.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDestination.
33  
34 =head1 SYNOPSIS
35  
36 my $api.iotwireless = Paws->service('IoTWireless');
37 my $CreateDestinationResponse = $api . iotwireless->CreateDestination(
38 Expression => 'MyExpression',
39 ExpressionType => 'RuleName',
40 Name => 'MyDestinationName',
41 RoleArn => 'MyRoleArn',
42 ClientRequestToken => 'MyClientRequestToken', # OPTIONAL
43 Description => 'MyDescription', # OPTIONAL
44 Tags => [
45 {
46 Key => 'MyTagKey', # min: 1, max: 128
47 Value => 'MyTagValue', # max: 256
48  
49 },
50 ...
51 ], # OPTIONAL
52 );
53  
54 # Results:
55 my $Arn = $CreateDestinationResponse->Arn;
56 my $Name = $CreateDestinationResponse->Name;
57  
58 # Returns a L<Paws::IoTWireless::CreateDestinationResponse> object.
59  
60 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.
61 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/api.iotwireless/CreateDestination>
62  
63 =head1 ATTRIBUTES
64  
65  
66 =head2 ClientRequestToken => Str
67  
68 Each resource must have a unique client request token. If you try to
69 create a new resource with the same token as a resource that already
70 exists, an exception occurs. If you omit this value, AWS SDKs will
71 automatically generate a unique client request.
72  
73  
74  
75 =head2 Description => Str
76  
77 The description of the new resource.
78  
79  
80  
81 =head2 B<REQUIRED> Expression => Str
82  
83 The rule name or topic rule to send messages to.
84  
85  
86  
87 =head2 B<REQUIRED> ExpressionType => Str
88  
89 The type of value in C<Expression>.
90  
91 Valid values are: C<"RuleName">, C<"MqttTopic">
92  
93 =head2 B<REQUIRED> Name => Str
94  
95 The name of the new resource.
96  
97  
98  
99 =head2 B<REQUIRED> RoleArn => Str
100  
101 The ARN of the IAM Role that authorizes the destination.
102  
103  
104  
105 =head2 Tags => ArrayRef[L<Paws::IoTWireless::Tag>]
106  
107 The tags to attach to the new destination. Tags are metadata that you
108 can use to manage a resource.
109  
110  
111  
112  
113 =head1 SEE ALSO
114  
115 This class forms part of L<Paws>, documenting arguments for method CreateDestination in L<Paws::IoTWireless>
116  
117 =head1 BUGS and CONTRIBUTIONS
118  
119 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
120  
121 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
122  
123 =cut
124