-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for CloudWatch Vended Logs which allows for delivery of c…
…ustomer logs to CloudWatch Logs, S3, or Firehose.
- Loading branch information
1 parent
9c57f5b
commit 918b5a9
Showing
17 changed files
with
1,076 additions
and
826 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.11.497 | ||
1.11.498 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/LoggingStrategy.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0. | ||
*/ | ||
|
||
#pragma once | ||
#include <aws/mediatailor/MediaTailor_EXPORTS.h> | ||
#include <aws/core/utils/memory/stl/AWSString.h> | ||
|
||
namespace Aws | ||
{ | ||
namespace MediaTailor | ||
{ | ||
namespace Model | ||
{ | ||
enum class LoggingStrategy | ||
{ | ||
NOT_SET, | ||
VENDED_LOGS, | ||
LEGACY_CLOUDWATCH | ||
}; | ||
|
||
namespace LoggingStrategyMapper | ||
{ | ||
AWS_MEDIATAILOR_API LoggingStrategy GetLoggingStrategyForName(const Aws::String& name); | ||
|
||
AWS_MEDIATAILOR_API Aws::String GetNameForLoggingStrategy(LoggingStrategy value); | ||
} // namespace LoggingStrategyMapper | ||
} // namespace Model | ||
} // namespace MediaTailor | ||
} // namespace Aws |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
generated/src/aws-cpp-sdk-mediatailor/source/model/LoggingStrategy.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/** | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0. | ||
*/ | ||
|
||
#include <aws/mediatailor/model/LoggingStrategy.h> | ||
#include <aws/core/utils/HashingUtils.h> | ||
#include <aws/core/Globals.h> | ||
#include <aws/core/utils/EnumParseOverflowContainer.h> | ||
|
||
using namespace Aws::Utils; | ||
|
||
|
||
namespace Aws | ||
{ | ||
namespace MediaTailor | ||
{ | ||
namespace Model | ||
{ | ||
namespace LoggingStrategyMapper | ||
{ | ||
|
||
static const int VENDED_LOGS_HASH = HashingUtils::HashString("VENDED_LOGS"); | ||
static const int LEGACY_CLOUDWATCH_HASH = HashingUtils::HashString("LEGACY_CLOUDWATCH"); | ||
|
||
|
||
LoggingStrategy GetLoggingStrategyForName(const Aws::String& name) | ||
{ | ||
int hashCode = HashingUtils::HashString(name.c_str()); | ||
if (hashCode == VENDED_LOGS_HASH) | ||
{ | ||
return LoggingStrategy::VENDED_LOGS; | ||
} | ||
else if (hashCode == LEGACY_CLOUDWATCH_HASH) | ||
{ | ||
return LoggingStrategy::LEGACY_CLOUDWATCH; | ||
} | ||
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); | ||
if(overflowContainer) | ||
{ | ||
overflowContainer->StoreOverflow(hashCode, name); | ||
return static_cast<LoggingStrategy>(hashCode); | ||
} | ||
|
||
return LoggingStrategy::NOT_SET; | ||
} | ||
|
||
Aws::String GetNameForLoggingStrategy(LoggingStrategy enumValue) | ||
{ | ||
switch(enumValue) | ||
{ | ||
case LoggingStrategy::NOT_SET: | ||
return {}; | ||
case LoggingStrategy::VENDED_LOGS: | ||
return "VENDED_LOGS"; | ||
case LoggingStrategy::LEGACY_CLOUDWATCH: | ||
return "LEGACY_CLOUDWATCH"; | ||
default: | ||
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); | ||
if(overflowContainer) | ||
{ | ||
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue)); | ||
} | ||
|
||
return {}; | ||
} | ||
} | ||
|
||
} // namespace LoggingStrategyMapper | ||
} // namespace Model | ||
} // namespace MediaTailor | ||
} // namespace Aws |
Oops, something went wrong.