-
Notifications
You must be signed in to change notification settings - Fork 862
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate DynamoDBStreams from DynamoDB (#3477)
* refactor: separate dynamodbstreams from dynamodb. remove customizations in generator for dynamodb streams
- Loading branch information
1 parent
c61b200
commit 40aeb0e
Showing
81 changed files
with
2,594 additions
and
303 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
generator/.DevConfigs/7062a32e-2a89-4261-8a2e-af0fe3f9763d.json
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,18 @@ | ||
{ | ||
"services": [ | ||
{ | ||
"serviceName": "DynamoDBv2", | ||
"type": "patch", | ||
"changeLogMessages": [ | ||
"Removed DynamoDBStreams from DynamoDB package." | ||
] | ||
}, | ||
{ | ||
"serviceName": "DynamoDBStreams", | ||
"type": "patch", | ||
"changeLogMessages": [ | ||
"Move DynamoDBStreams to its own package." | ||
] | ||
} | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"active": true, | ||
"max-retries": 10, | ||
"namespace": "Amazon.DynamoDBv2", | ||
"parent-base-name": "DynamoDB", | ||
"legacy-service-id": "DynamoDB Streams" | ||
"legacy-service-id": "DynamoDB Streams", | ||
"generate-client-constructors": true, | ||
"synopsis": "Amazon DynamoDB Streams captures a time-ordered sequence of item-level modifications in any DynamoDB table and stores this information in a log for up to 24 hours." | ||
} |
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
33 changes: 33 additions & 0 deletions
33
sdk/code-analysis/ServiceAnalysis/DynamoDBStreams/AWSSDK.DynamoDBStreams.CodeAnalysis.csproj
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,33 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules> | ||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | ||
<ProjectGuid>{D31D2ACF-1755-426E-9122-68D7C048A46C}</ProjectGuid> | ||
<RootNamespace>Amazon.DynamoDBStreams.CodeAnalysis</RootNamespace> | ||
<AssemblyName>AWSSDK.DynamoDBStreams.CodeAnalysis</AssemblyName> | ||
|
||
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute> | ||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> | ||
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute> | ||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> | ||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> | ||
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute> | ||
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute> | ||
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.CodeAnalysis" Version="3.0.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<EmbeddedResource Include="Generated/PropertyValueRules.xml"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="../../SharedAnalysisCode/SharedAnalysisCode.csproj" /> | ||
</ItemGroup> | ||
</Project> |
25 changes: 25 additions & 0 deletions
25
...ode-analysis/ServiceAnalysis/DynamoDBStreams/Generated/PropertyValueAssignmentAnalyzer.cs
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,25 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Collections.Immutable; | ||
using System.Reflection; | ||
using System.Linq; | ||
using System.Xml.Linq; | ||
using System.Threading; | ||
using Microsoft.CodeAnalysis; | ||
using Microsoft.CodeAnalysis.CSharp; | ||
using Microsoft.CodeAnalysis.CSharp.Syntax; | ||
using Microsoft.CodeAnalysis.Diagnostics; | ||
|
||
using Amazon.CodeAnalysis.Shared; | ||
|
||
namespace Amazon.DynamoDBStreams.CodeAnalysis | ||
{ | ||
[DiagnosticAnalyzer(LanguageNames.CSharp)] | ||
public class PropertyValueAssignmentAnalyzer : AbstractPropertyValueAssignmentAnalyzer | ||
{ | ||
public override string GetServiceName() | ||
{ | ||
return "DynamoDBStreams"; | ||
} | ||
} | ||
} |
132 changes: 132 additions & 0 deletions
132
sdk/code-analysis/ServiceAnalysis/DynamoDBStreams/Generated/PropertyValueRules.xml
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,132 @@ | ||
<?xml version="1.0" encoding="utf-16"?> | ||
<property-value-rules> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.DescribeStreamRequest.ExclusiveStartShardId</property> | ||
<min>28</min> | ||
<max>65</max> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.DescribeStreamRequest.Limit</property> | ||
<min>1</min> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.DescribeStreamRequest.StreamArn</property> | ||
<min>37</min> | ||
<max>1024</max> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.GetRecordsRequest.Limit</property> | ||
<min>1</min> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.GetRecordsRequest.ShardIterator</property> | ||
<min>1</min> | ||
<max>2048</max> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.GetRecordsResponse.NextShardIterator</property> | ||
<min>1</min> | ||
<max>2048</max> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.GetShardIteratorRequest.SequenceNumber</property> | ||
<min>21</min> | ||
<max>40</max> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.GetShardIteratorRequest.ShardId</property> | ||
<min>28</min> | ||
<max>65</max> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.GetShardIteratorRequest.StreamArn</property> | ||
<min>37</min> | ||
<max>1024</max> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.GetShardIteratorResponse.ShardIterator</property> | ||
<min>1</min> | ||
<max>2048</max> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.ListStreamsRequest.ExclusiveStartStreamArn</property> | ||
<min>37</min> | ||
<max>1024</max> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.ListStreamsRequest.Limit</property> | ||
<min>1</min> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.ListStreamsRequest.TableName</property> | ||
<min>3</min> | ||
<max>255</max> | ||
<pattern>[a-zA-Z0-9_.-]+</pattern> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.ListStreamsResponse.LastEvaluatedStreamArn</property> | ||
<min>37</min> | ||
<max>1024</max> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.KeySchemaElement.AttributeName</property> | ||
<min>1</min> | ||
<max>255</max> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.SequenceNumberRange.EndingSequenceNumber</property> | ||
<min>21</min> | ||
<max>40</max> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.SequenceNumberRange.StartingSequenceNumber</property> | ||
<min>21</min> | ||
<max>40</max> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.Shard.ParentShardId</property> | ||
<min>28</min> | ||
<max>65</max> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.Shard.ShardId</property> | ||
<min>28</min> | ||
<max>65</max> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.StreamDescription.LastEvaluatedShardId</property> | ||
<min>28</min> | ||
<max>65</max> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.StreamDescription.StreamArn</property> | ||
<min>37</min> | ||
<max>1024</max> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.StreamDescription.TableName</property> | ||
<min>3</min> | ||
<max>255</max> | ||
<pattern>[a-zA-Z0-9_.-]+</pattern> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.StreamRecord.SequenceNumber</property> | ||
<min>21</min> | ||
<max>40</max> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.StreamRecord.SizeBytes</property> | ||
<min>1</min> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.StreamSummary.StreamArn</property> | ||
<min>37</min> | ||
<max>1024</max> | ||
</property-value-rule> | ||
<property-value-rule> | ||
<property>Amazon.DynamoDBStreams.Model.StreamSummary.TableName</property> | ||
<min>3</min> | ||
<max>255</max> | ||
<pattern>[a-zA-Z0-9_.-]+</pattern> | ||
</property-value-rule> | ||
</property-value-rules> |
32 changes: 32 additions & 0 deletions
32
sdk/code-analysis/ServiceAnalysis/DynamoDBStreams/Properties/AssemblyInfo.cs
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,32 @@ | ||
using System.Reflection; | ||
using System.Runtime.InteropServices; | ||
|
||
// General Information about an assembly is controlled through the following | ||
// set of attributes. Change these attribute values to modify the information | ||
// associated with an assembly. | ||
[assembly: AssemblyTitle("AWSSDK.DynamoDBStreams")] | ||
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET - Amazon DynamoDB Streams. Amazon DynamoDB Streams captures a time-ordered sequence of item-level modifications in any DynamoDB table and stores this information in a log for up to 24 hours.")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyProduct("Amazon Web Services SDK for .NET")] | ||
[assembly: AssemblyCompany("Amazon.com, Inc")] | ||
[assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: AssemblyCulture("")] | ||
|
||
// Setting ComVisible to false makes the types in this assembly not visible | ||
// to COM components. If you need to access a type in this assembly from | ||
// COM, set the ComVisible attribute to true on that type. | ||
[assembly: ComVisible(false)] | ||
|
||
// Version information for an assembly consists of the following four values: | ||
// | ||
// Major Version | ||
// Minor Version | ||
// Build Number | ||
// Revision | ||
// | ||
// You can specify all the values or you can default the Build and Revision Numbers | ||
// by using the '*' as shown below: | ||
// [assembly: AssemblyVersion("1.0.*")] | ||
[assembly: AssemblyVersion("4.0")] | ||
[assembly: AssemblyFileVersion("4.0.0.0")] |
Oops, something went wrong.