log_service_factory.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 
16 #pragma once
17 
21 
23 
24 namespace Aws {
25 namespace CloudWatchLogs {
26 
27 // todo should we validate options here?
28 
30 {
31 public:
32  LogServiceFactory() = default;
33 
37  LogServiceFactory(const LogServiceFactory &) = delete;
38  LogServiceFactory & operator=(const LogServiceFactory &) = delete;
39 
40  ~LogServiceFactory() = default;
41 
53  // NOLINTNEXTLINE(google-default-arguments)
54  virtual std::shared_ptr<LogService> CreateLogService(
55  const std::string & log_group,
56  const std::string & log_stream,
57  const Aws::Client::ClientConfiguration & client_config,
58  const Aws::SDKOptions & sdk_options,
59  const CloudWatchOptions & cloudwatch_options = kDefaultCloudWatchOptions);
60 };
61 
62 } // namespace CloudWatchLogs
63 } // namespace Aws
static const CloudWatchOptions kDefaultCloudWatchOptions
virtual std::shared_ptr< LogService > CreateLogService(const std::string &log_group, const std::string &log_stream, const Aws::Client::ClientConfiguration &client_config, const Aws::SDKOptions &sdk_options, const CloudWatchOptions &cloudwatch_options=kDefaultCloudWatchOptions)
Creates a new LogService object Factory method used to create a new LogService object, along with a creating and starting a LogPublisher for use with the LogService.
LogServiceFactory & operator=(const LogServiceFactory &)=delete


cloudwatch_logs_common
Author(s): AWS RoboMaker
autogenerated on Fri May 7 2021 02:18:24