common.h
Go to the documentation of this file.
1 /*
2  * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 #pragma once
16 #include <sstream>
17 
18 #define KINESIS_MANAGER_STATUS_SUCCEEDED(status) (!(KINESIS_MANAGER_STATUS_FAILED(status)))
19 #define KINESIS_MANAGER_STATUS_FAILED(status) \
20  ((status)&Aws::Kinesis::KINESIS_MANAGER_STATUS_ERROR_BASE)
21 
22 #ifndef INVALID_STREAM_ID
23 #define INVALID_STREAM_ID (-1)
24 #endif
25 
26 namespace Aws {
27 namespace Kinesis {
28 
56 
58 constexpr uint32_t kDefaultMessageQueueSize = 1000;
60 
71 const struct
72 {
73  const char * prefix;
74  const char * stream_count;
75  const char * stream_namespace;
76  const char * topic_name;
77  const char * message_queue_size;
78  const char * topic_type;
79  const char * log4cplus_config;
80  const char * stream_name;
81  const char * rekognition_topic_name;
83 } kStreamParameters{
84  "kinesis_video",
85  "stream_count",
86  "stream",
87  "subscription_topic",
88  "subscription_queue_size", /* Overrides kDefaultMessageQueueSize */
89  "topic_type", /* Topic type value as defined in KinesisStreamInputType */
90  "log4cplus_config", /* Path to a log4cplus configuration file for use by the Kinesis Video
91  Producer SDK */
92  "stream_name",
93  "rekognition_topic_name", /* AWS Rekognition analysis results will be published to this topic. */
94  "rekognition_data_stream" /* AWS Rekognition analysis results will be read from this stream. Must
95  be provided if topic_type is Rekognition-enabled. */
96 };
97 
98 } // namespace Kinesis
99 } // namespace Aws
const char * stream_count
Definition: common.h:74
constexpr uint16_t kDefaultRecordsLimitForRekognitionResults
Definition: common.h:59
const char * message_queue_size
Definition: common.h:77
constexpr uint32_t kDefaultMessageQueueSize
Definition: common.h:58
enum Aws::Kinesis::kinesis_manager_status_e KinesisManagerStatus
const char * rekognition_data_stream
Definition: common.h:82
const char * stream_namespace
Definition: common.h:75
const char * topic_type
Definition: common.h:78
const char * topic_name
Definition: common.h:76
const char * stream_name
Definition: common.h:80
kinesis_manager_status_e
Definition: common.h:29
int KinesisStreamInputType
Definition: common.h:57
const char * rekognition_topic_name
Definition: common.h:81
const char * log4cplus_config
Definition: common.h:79
const char * prefix
Definition: common.h:73


kinesis_manager
Author(s): AWS RoboMaker
autogenerated on Thu Mar 4 2021 03:28:41