Amazon Kinesis trigger surveillants Amazon Kinesis Stream, and it is trigger function that it receives data record which is added at Amazon Kinesis Stream and executes script.
Amazon Kinesis trigger uses Kinesis Client Library(KCL). Action and specification limits of trigger apply KCL.
For more details, refer to "Development of Amazon Kinesis Consumer which uses Amazon Kinesis Client Library"(http://docs.aws.amazon.com/kinesis/latest/dev/developing-consumers-with-kcl.html).
For IAM authority Amazon Kinesis trigger needs, refer to "Amazon Web Services Adopter IAM authority" - "Amazon Kinesis trigger".
Amazon Kinesis trigger settings
Enter trigger name.
Access Key ID
Enter Access Key ID.
Secret Access Key
Enter Secret Access Key.
[US East (N. Virginia)]:(default)
[US West (N. California)]
[US West (Oregon)]
[Asia Pacific (Singapore)]
[Asia Pacific (Sydney)]
[Asia Pacific (Tokyo)]
Enter stream name which is a target of watching observation.
Kinesis application name
Enter Kinesis application name.
Creates Amazon DynamoDB Table at specified Kinesis application name, and manages acquisition situation of data record when making trigger.
Shard iterator type
Select shard iterator type.
Read from latest data record in shard.
[TRIM_HORIZON] Read from the oldest data record in shard.
Enter or select encode.
When encode is entered,specify encode supported by Java SE Runtime Environment 8.
For more details, refer to "Supported Encodings"(http://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html).
Default value is "UTF-8".
Enter stream interval of surveillance in milli-second unit.
Default value is "1000".
Default value is applied if omitted, "0" is entered, or iniquitous value is entered.
Specify value less than "300000", if you select [LATEST] in [Shard iterator type].
Executing contents settings
Owner of trigger
Selects creating owner of trigger.
Only user who have authority of administrator can select. (General user cannot select except for themselves.)
Executing user name
Select user who execute script specified in [Script].
Enter password corresponded with user specified in [Executing user name].
Select service included in script which executes at trigger.
Project registered as service is shown.
select script which executes at trigger.
Script in service specified in [Service]is shown.
Script input variable set in script specified in [Script] is shown.
When creating trigger,Amazon DynamoDB table is created in Kinesis application name, but the table is not deleted when the trigger is deleted.
If it is not necessary, delete from AWS management console.
When registering trigger in varid state and the state change from invalid into valid, KCL worker is created.
Therefore, It is not possible to start reading from data record which was read immediately before changing the state into disabled.
If the encoding to use when sending data to the Amazon Kinesis Stream and the encoding specified in the [Encoding] are different, it may fail to decode the data and Trigger might not fire.
Data record retrieval will not be executed after the first polling interval after a trigger is registered.
Instead, it starts from the second polling interval.