| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::IoT::IotEventsAction; | ||
| 3 | use Moose; | ||
| 4 | has BatchMode => (is => 'ro', isa => 'Bool', request_name => 'batchMode', traits => ['NameInRequest']); | ||
| 5 | has InputName => (is => 'ro', isa => 'Str', request_name => 'inputName', traits => ['NameInRequest'], required => 1); | ||
| 6 | has MessageId => (is => 'ro', isa => 'Str', request_name => 'messageId', traits => ['NameInRequest']); | ||
| 7 | has RoleArn => (is => 'ro', isa => 'Str', request_name => 'roleArn', traits => ['NameInRequest'], required => 1); | ||
| 8 | |||
| 9 | 1; | ||
| 10 | |||
| 11 | ### main pod documentation begin ### | ||
| 12 | |||
| 13 | =head1 NAME | ||
| 14 | |||
| 15 | Paws::IoT::IotEventsAction | ||
| 16 | |||
| 17 | =head1 USAGE | ||
| 18 | |||
| 19 | This class represents one of two things: | ||
| 20 | |||
| 21 | =head3 Arguments in a call to a service | ||
| 22 | |||
| 23 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 24 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 25 | |||
| 26 | As an example, if Att1 is expected to be a Paws::IoT::IotEventsAction object: | ||
| 27 | |||
| 28 | $service_obj->Method(Att1 => { BatchMode => $value, ..., RoleArn => $value }); | ||
| 29 | |||
| 30 | =head3 Results returned from an API call | ||
| 31 | |||
| 32 | Use accessors for each attribute. If Att1 is expected to be an Paws::IoT::IotEventsAction object: | ||
| 33 | |||
| 34 | $result = $service_obj->Method(...); | ||
| 35 | $result->Att1->BatchMode | ||
| 36 | |||
| 37 | =head1 DESCRIPTION | ||
| 38 | |||
| 39 | Sends an input to an AWS IoT Events detector. | ||
| 40 | |||
| 41 | =head1 ATTRIBUTES | ||
| 42 | |||
| 43 | |||
| 44 | =head2 BatchMode => Bool | ||
| 45 | |||
| 46 | Whether to process the event actions as a batch. The default value is | ||
| 47 | C<false>. | ||
| 48 | |||
| 49 | When C<batchMode> is C<true>, you can't specify a C<messageId>. | ||
| 50 | |||
| 51 | When C<batchMode> is C<true> and the rule SQL statement evaluates to an | ||
| 52 | Array, each Array element is treated as a separate message when it's | ||
| 53 | sent to AWS IoT Events by calling C<BatchPutMessage> | ||
| 54 | (https://docs.aws.amazon.com/iotevents/latest/apireference/API_iotevents-data_BatchPutMessage.html). | ||
| 55 | The resulting array can't have more than 10 messages. | ||
| 56 | |||
| 57 | |||
| 58 | =head2 B<REQUIRED> InputName => Str | ||
| 59 | |||
| 60 | The name of the AWS IoT Events input. | ||
| 61 | |||
| 62 | |||
| 63 | =head2 MessageId => Str | ||
| 64 | |||
| 65 | The ID of the message. The default C<messageId> is a new UUID value. | ||
| 66 | |||
| 67 | When C<batchMode> is C<true>, you can't specify a C<messageId>--a new | ||
| 68 | UUID value will be assigned. | ||
| 69 | |||
| 70 | Assign a value to this property to ensure that only one input (message) | ||
| 71 | with a given C<messageId> will be processed by an AWS IoT Events | ||
| 72 | detector. | ||
| 73 | |||
| 74 | |||
| 75 | =head2 B<REQUIRED> RoleArn => Str | ||
| 76 | |||
| 77 | The ARN of the role that grants AWS IoT permission to send an input to | ||
| 78 | an AWS IoT Events detector. ("Action":"iotevents:BatchPutMessage"). | ||
| 79 | |||
| 80 | |||
| 81 | |||
| 82 | =head1 SEE ALSO | ||
| 83 | |||
| 84 | This class forms part of L<Paws>, describing an object used in L<Paws::IoT> | ||
| 85 | |||
| 86 | =head1 BUGS and CONTRIBUTIONS | ||
| 87 | |||
| 88 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 89 | |||
| 90 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 91 | |||
| 92 | =cut | ||
| 93 |