Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61deae3

Browse files
author
aws-sdk-cpp-automation
committed
Feature to add support for JSON-L format for S3 as a source.
This release adds custom language support for streaming transcription. General availability for AWS Panorama. AWS SDK for Panorama includes APIs to manage your devices and nodes, and deploy computer vision applications to the edge. For more information, see the AWS Panorama documentation at http://docs.aws.amazon.com/panorama AWS Elemental MediaConvert SDK has added support for specifying caption time delta in milliseconds and the ability to apply color range legalization to source content other than AVC video. When enabled, MediaPackage passes through digital video broadcasting (DVB) subtitles into the output. This release adds 4 new APIS, which needs to be public able MediaPackage passes through digital video broadcasting (DVB) subtitles into the output. Added support for cross-Region finding aggregation, which replicates findings from linked Regions to a single aggregation Region. Added operations to view, enable, update, and delete the finding aggregation.
1 parent 5da499c commit 61deae3

File tree

372 files changed

+42850
-1986
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

372 files changed

+42850
-1986
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#pragma once
7+
#include <aws/appflow/Appflow_EXPORTS.h>
8+
#include <aws/core/utils/memory/stl/AWSString.h>
9+
10+
namespace Aws
11+
{
12+
namespace Appflow
13+
{
14+
namespace Model
15+
{
16+
enum class S3InputFileType
17+
{
18+
NOT_SET,
19+
CSV,
20+
JSON
21+
};
22+
23+
namespace S3InputFileTypeMapper
24+
{
25+
AWS_APPFLOW_API S3InputFileType GetS3InputFileTypeForName(const Aws::String& name);
26+
27+
AWS_APPFLOW_API Aws::String GetNameForS3InputFileType(S3InputFileType value);
28+
} // namespace S3InputFileTypeMapper
29+
} // namespace Model
30+
} // namespace Appflow
31+
} // namespace Aws
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#pragma once
7+
#include <aws/appflow/Appflow_EXPORTS.h>
8+
#include <aws/appflow/model/S3InputFileType.h>
9+
#include <utility>
10+
11+
namespace Aws
12+
{
13+
namespace Utils
14+
{
15+
namespace Json
16+
{
17+
class JsonValue;
18+
class JsonView;
19+
} // namespace Json
20+
} // namespace Utils
21+
namespace Appflow
22+
{
23+
namespace Model
24+
{
25+
26+
/**
27+
* <p> When you use Amazon S3 as the source, the configuration format that you
28+
* provide the flow input data. </p><p><h3>See Also:</h3> <a
29+
* href="http://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/S3InputFormatConfig">AWS
30+
* API Reference</a></p>
31+
*/
32+
class AWS_APPFLOW_API S3InputFormatConfig
33+
{
34+
public:
35+
S3InputFormatConfig();
36+
S3InputFormatConfig(Aws::Utils::Json::JsonView jsonValue);
37+
S3InputFormatConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
38+
Aws::Utils::Json::JsonValue Jsonize() const;
39+
40+
41+
/**
42+
* <p> The file type that Amazon AppFlow gets from your Amazon S3 bucket. </p>
43+
*/
44+
inline const S3InputFileType& GetS3InputFileType() const{ return m_s3InputFileType; }
45+
46+
/**
47+
* <p> The file type that Amazon AppFlow gets from your Amazon S3 bucket. </p>
48+
*/
49+
inline bool S3InputFileTypeHasBeenSet() const { return m_s3InputFileTypeHasBeenSet; }
50+
51+
/**
52+
* <p> The file type that Amazon AppFlow gets from your Amazon S3 bucket. </p>
53+
*/
54+
inline void SetS3InputFileType(const S3InputFileType& value) { m_s3InputFileTypeHasBeenSet = true; m_s3InputFileType = value; }
55+
56+
/**
57+
* <p> The file type that Amazon AppFlow gets from your Amazon S3 bucket. </p>
58+
*/
59+
inline void SetS3InputFileType(S3InputFileType&& value) { m_s3InputFileTypeHasBeenSet = true; m_s3InputFileType = std::move(value); }
60+
61+
/**
62+
* <p> The file type that Amazon AppFlow gets from your Amazon S3 bucket. </p>
63+
*/
64+
inline S3InputFormatConfig& WithS3InputFileType(const S3InputFileType& value) { SetS3InputFileType(value); return *this;}
65+
66+
/**
67+
* <p> The file type that Amazon AppFlow gets from your Amazon S3 bucket. </p>
68+
*/
69+
inline S3InputFormatConfig& WithS3InputFileType(S3InputFileType&& value) { SetS3InputFileType(std::move(value)); return *this;}
70+
71+
private:
72+
73+
S3InputFileType m_s3InputFileType;
74+
bool m_s3InputFileTypeHasBeenSet;
75+
};
76+
77+
} // namespace Model
78+
} // namespace Appflow
79+
} // namespace Aws

aws-cpp-sdk-appflow/include/aws/appflow/model/S3SourceProperties.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#pragma once
77
#include <aws/appflow/Appflow_EXPORTS.h>
88
#include <aws/core/utils/memory/stl/AWSString.h>
9+
#include <aws/appflow/model/S3InputFormatConfig.h>
910
#include <utility>
1011

1112
namespace Aws
@@ -127,13 +128,35 @@ namespace Model
127128
*/
128129
inline S3SourceProperties& WithBucketPrefix(const char* value) { SetBucketPrefix(value); return *this;}
129130

131+
132+
133+
inline const S3InputFormatConfig& GetS3InputFormatConfig() const{ return m_s3InputFormatConfig; }
134+
135+
136+
inline bool S3InputFormatConfigHasBeenSet() const { return m_s3InputFormatConfigHasBeenSet; }
137+
138+
139+
inline void SetS3InputFormatConfig(const S3InputFormatConfig& value) { m_s3InputFormatConfigHasBeenSet = true; m_s3InputFormatConfig = value; }
140+
141+
142+
inline void SetS3InputFormatConfig(S3InputFormatConfig&& value) { m_s3InputFormatConfigHasBeenSet = true; m_s3InputFormatConfig = std::move(value); }
143+
144+
145+
inline S3SourceProperties& WithS3InputFormatConfig(const S3InputFormatConfig& value) { SetS3InputFormatConfig(value); return *this;}
146+
147+
148+
inline S3SourceProperties& WithS3InputFormatConfig(S3InputFormatConfig&& value) { SetS3InputFormatConfig(std::move(value)); return *this;}
149+
130150
private:
131151

132152
Aws::String m_bucketName;
133153
bool m_bucketNameHasBeenSet;
134154

135155
Aws::String m_bucketPrefix;
136156
bool m_bucketPrefixHasBeenSet;
157+
158+
S3InputFormatConfig m_s3InputFormatConfig;
159+
bool m_s3InputFormatConfigHasBeenSet;
137160
};
138161

139162
} // namespace Model
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#include <aws/appflow/model/S3InputFileType.h>
7+
#include <aws/core/utils/HashingUtils.h>
8+
#include <aws/core/Globals.h>
9+
#include <aws/core/utils/EnumParseOverflowContainer.h>
10+
11+
using namespace Aws::Utils;
12+
13+
14+
namespace Aws
15+
{
16+
namespace Appflow
17+
{
18+
namespace Model
19+
{
20+
namespace S3InputFileTypeMapper
21+
{
22+
23+
static const int CSV_HASH = HashingUtils::HashString("CSV");
24+
static const int JSON_HASH = HashingUtils::HashString("JSON");
25+
26+
27+
S3InputFileType GetS3InputFileTypeForName(const Aws::String& name)
28+
{
29+
int hashCode = HashingUtils::HashString(name.c_str());
30+
if (hashCode == CSV_HASH)
31+
{
32+
return S3InputFileType::CSV;
33+
}
34+
else if (hashCode == JSON_HASH)
35+
{
36+
return S3InputFileType::JSON;
37+
}
38+
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
39+
if(overflowContainer)
40+
{
41+
overflowContainer->StoreOverflow(hashCode, name);
42+
return static_cast<S3InputFileType>(hashCode);
43+
}
44+
45+
return S3InputFileType::NOT_SET;
46+
}
47+
48+
Aws::String GetNameForS3InputFileType(S3InputFileType enumValue)
49+
{
50+
switch(enumValue)
51+
{
52+
case S3InputFileType::CSV:
53+
return "CSV";
54+
case S3InputFileType::JSON:
55+
return "JSON";
56+
default:
57+
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
58+
if(overflowContainer)
59+
{
60+
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
61+
}
62+
63+
return {};
64+
}
65+
}
66+
67+
} // namespace S3InputFileTypeMapper
68+
} // namespace Model
69+
} // namespace Appflow
70+
} // namespace Aws
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#include <aws/appflow/model/S3InputFormatConfig.h>
7+
#include <aws/core/utils/json/JsonSerializer.h>
8+
9+
#include <utility>
10+
11+
using namespace Aws::Utils::Json;
12+
using namespace Aws::Utils;
13+
14+
namespace Aws
15+
{
16+
namespace Appflow
17+
{
18+
namespace Model
19+
{
20+
21+
S3InputFormatConfig::S3InputFormatConfig() :
22+
m_s3InputFileType(S3InputFileType::NOT_SET),
23+
m_s3InputFileTypeHasBeenSet(false)
24+
{
25+
}
26+
27+
S3InputFormatConfig::S3InputFormatConfig(JsonView jsonValue) :
28+
m_s3InputFileType(S3InputFileType::NOT_SET),
29+
m_s3InputFileTypeHasBeenSet(false)
30+
{
31+
*this = jsonValue;
32+
}
33+
34+
S3InputFormatConfig& S3InputFormatConfig::operator =(JsonView jsonValue)
35+
{
36+
if(jsonValue.ValueExists("s3InputFileType"))
37+
{
38+
m_s3InputFileType = S3InputFileTypeMapper::GetS3InputFileTypeForName(jsonValue.GetString("s3InputFileType"));
39+
40+
m_s3InputFileTypeHasBeenSet = true;
41+
}
42+
43+
return *this;
44+
}
45+
46+
JsonValue S3InputFormatConfig::Jsonize() const
47+
{
48+
JsonValue payload;
49+
50+
if(m_s3InputFileTypeHasBeenSet)
51+
{
52+
payload.WithString("s3InputFileType", S3InputFileTypeMapper::GetNameForS3InputFileType(m_s3InputFileType));
53+
}
54+
55+
return payload;
56+
}
57+
58+
} // namespace Model
59+
} // namespace Appflow
60+
} // namespace Aws

aws-cpp-sdk-appflow/source/model/S3SourceProperties.cpp

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ namespace Model
2020

2121
S3SourceProperties::S3SourceProperties() :
2222
m_bucketNameHasBeenSet(false),
23-
m_bucketPrefixHasBeenSet(false)
23+
m_bucketPrefixHasBeenSet(false),
24+
m_s3InputFormatConfigHasBeenSet(false)
2425
{
2526
}
2627

2728
S3SourceProperties::S3SourceProperties(JsonView jsonValue) :
2829
m_bucketNameHasBeenSet(false),
29-
m_bucketPrefixHasBeenSet(false)
30+
m_bucketPrefixHasBeenSet(false),
31+
m_s3InputFormatConfigHasBeenSet(false)
3032
{
3133
*this = jsonValue;
3234
}
@@ -47,6 +49,13 @@ S3SourceProperties& S3SourceProperties::operator =(JsonView jsonValue)
4749
m_bucketPrefixHasBeenSet = true;
4850
}
4951

52+
if(jsonValue.ValueExists("s3InputFormatConfig"))
53+
{
54+
m_s3InputFormatConfig = jsonValue.GetObject("s3InputFormatConfig");
55+
56+
m_s3InputFormatConfigHasBeenSet = true;
57+
}
58+
5059
return *this;
5160
}
5261

@@ -66,6 +75,12 @@ JsonValue S3SourceProperties::Jsonize() const
6675

6776
}
6877

78+
if(m_s3InputFormatConfigHasBeenSet)
79+
{
80+
payload.WithObject("s3InputFormatConfig", m_s3InputFormatConfig.Jsonize());
81+
82+
}
83+
6984
return payload;
7085
}
7186

aws-cpp-sdk-core/include/aws/core/VersionConfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6-
#define AWS_SDK_VERSION_STRING "1.9.125"
6+
#define AWS_SDK_VERSION_STRING "1.9.126"
77
#define AWS_SDK_VERSION_MAJOR 1
88
#define AWS_SDK_VERSION_MINOR 9
9-
#define AWS_SDK_VERSION_PATCH 125
9+
#define AWS_SDK_VERSION_PATCH 126

0 commit comments

Comments
 (0)