Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove obsolete custom service package code #3684

Merged
merged 7 commits into from
Mar 6, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove obsolete custom service package code
  • Loading branch information
normj committed Mar 1, 2025
commit 6592d8b5f77afc92dd0e569afba7880459b5955a
13 changes: 1 addition & 12 deletions generator/ServiceModels/lambda/lambda.customizations.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
{
"shapeModifiers": {
"InvokeAsyncRequest": {
"deprecatedMessage": "For .NET 3.5/4.5, API InvokeAsyncResponse InvokeAsync(InvokeAsyncRequest) is deprecated, use InvokeResponse Invoke(InvokeRequest), or Task<InvokeResponse> InvokeAsync(InvokeRequest, CancellationToken) instead. For .NET Core, Task<InvokeAsyncResponse> InvokeAsyncAsync(InvokeAsyncRequest, CancellationToken) is deprecated, use Task<InvokeResponse> InvokeAsync(InvokeRequest, CancellationToken) instead.",
"modify": [
{
"InvokeArgs": { "emitPropertyName": "InvokeArgsStream" }
}
]
},
"InvokeAsyncResponse": {
"deprecatedMessage": "For .NET 3.5/4.5, API InvokeAsyncResponse InvokeAsync(InvokeAsyncRequest) is deprecated, use InvokeResponse Invoke(InvokeRequest), or Task<InvokeResponse> InvokeAsync(InvokeRequest, CancellationToken) instead. For .NET Core, Task<InvokeAsyncResponse> InvokeAsyncAsync(InvokeAsyncRequest, CancellationToken) is deprecated, use Task<InvokeResponse> InvokeAsync(InvokeRequest, CancellationToken) instead."
},
"InvocationRequest": {
"modify": [
{
@@ -74,7 +63,7 @@
},
"operationModifiers": {
"InvokeAsync": {
"deprecatedMessage": "For .NET 3.5/4.5, API InvokeAsyncResponse InvokeAsync(InvokeAsyncRequest) is deprecated, use InvokeResponse Invoke(InvokeRequest), or Task<InvokeResponse> InvokeAsync(InvokeRequest, CancellationToken) instead. For .NET Core, Task<InvokeAsyncResponse> InvokeAsyncAsync(InvokeAsyncRequest, CancellationToken) is deprecated, use Task<InvokeResponse> InvokeAsync(InvokeRequest, CancellationToken) instead."
"exclude": true
}
},
"emitIsSetProperties": {
Original file line number Diff line number Diff line change
@@ -840,12 +840,6 @@
<max>1024</max>
<pattern>(\$LATEST|[0-9]+)</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.Lambda.Model.InvokeAsyncRequest.FunctionName</property>
<min>1</min>
<max>170</max>
<pattern>(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_\.]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.Lambda.Model.InvokeWithResponseStreamRequest.FunctionName</property>
<min>1</min>
@@ -1743,6 +1737,12 @@
<property>Amazon.Lambda.Model.ImageConfig.WorkingDirectory</property>
<max>1000</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.Lambda.Model.InvokeAsyncRequest.FunctionName</property>
<min>1</min>
<max>170</max>
<pattern>(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_\.]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.Lambda.Model.Layer.Arn</property>
<min>1</min>
29 changes: 1 addition & 28 deletions sdk/src/Services/DynamoDBv2/Custom/AWSConfigs.DynamoDB.cs
Original file line number Diff line number Diff line change
@@ -57,33 +57,6 @@ static AWSConfigsDynamoDB()

#region DynamoDBContext TableNamePrefix


/// <summary>
/// Key for the DynamoDBContextTableNamePrefix property.
/// <seealso cref="AWSConfigsDynamoDB.DynamoDBContextTableNamePrefix"/>
/// </summary>
public const string DynamoDBContextTableNamePrefixKey = "AWS.DynamoDBContext.TableNamePrefix";

/// <summary>
/// Configures the default TableNamePrefix that the DynamoDBContext will use if
/// not manually configured.
/// Changes to this setting will only take effect in newly-constructed instances of
/// DynamoDBContextConfig and DynamoDBContext.
///
/// The setting can be configured through App.config, for example:
/// <code>
/// &lt;appSettings&gt;
/// &lt;add key="AWS.DynamoDBContext.TableNamePrefix" value="Test-"/&gt;
/// &lt;/appSettings&gt;
/// </code>
/// </summary>
[Obsolete("This property is obsolete. Use DynamoDBConfig.Context.TableNamePrefix instead.")]
public static string DynamoDBContextTableNamePrefix
{
get { return Context.TableNamePrefix; }
set { Context.TableNamePrefix = value; }
}

#endregion

/// <summary>
@@ -198,7 +171,7 @@ public void AddMapping(TypeMapping typeMapping)

internal DynamoDBContextConfig()
{
this.TableNamePrefix = AWSConfigs.GetConfig(AWSConfigsDynamoDB.DynamoDBContextTableNamePrefixKey);
this.TableNamePrefix = AWSConfigs.GetConfig(AWSConfigsDynamoDB.Context.TableNamePrefix);

TableAliases = new Dictionary<string, string>(StringComparer.Ordinal);
TypeMappings = new Dictionary<Type, TypeMapping>();
106 changes: 0 additions & 106 deletions sdk/src/Services/DynamoDBv2/Custom/AmazonDynamoDBStreamsException.cs

This file was deleted.

Loading
Oops, something went wrong.