Skip to content

Commit 984b4d8

Browse files
5.0.84
1 parent 1db7fba commit 984b4d8

File tree

14 files changed

+1121
-866
lines changed

14 files changed

+1121
-866
lines changed

Include/sdk/_sdk-versions.json

Lines changed: 857 additions & 857 deletions
Large diffs are not rendered by default.

changelogs/CHANGELOG.2025.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
### 5.0.83 (2025-10-24 21:12Z)
1+
### 5.0.84 (2025-10-27 21:51Z)
2+
* AWS Tools for PowerShell now use AWS .NET SDK 4.0.120.0 and leverage its new features and improvements. Please find a description of the changes at https://github.com/aws/aws-sdk-net/blob/main/changelogs/SDK.CHANGELOG.ALL.md.
3+
* Amazon Kinesis
4+
* Added cmdlet Update-KINMaxRecordSize leveraging the UpdateMaxRecordSize service API.
5+
* Modified cmdlet New-KINStream: added parameter MaxRecordSizeInKiB.
6+
7+
### 5.0.83 (2025-10-24 21:12Z)
28
* AWS Tools for PowerShell now use AWS .NET SDK 4.0.119.0 and leverage its new features and improvements. Please find a description of the changes at https://github.com/aws/aws-sdk-net/blob/main/changelogs/SDK.CHANGELOG.ALL.md.
39
* Amazon DataZone
410
* Modified cmdlet New-DZConnection: added parameters MlflowProperties_TrackingServerArn and MlflowProperties_TrackingServerName.

changelogs/CHANGELOG.ALL.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
### 5.0.83 (2025-10-24 21:12Z)
1+
### 5.0.84 (2025-10-27 21:51Z)
2+
* AWS Tools for PowerShell now use AWS .NET SDK 4.0.120.0 and leverage its new features and improvements. Please find a description of the changes at https://github.com/aws/aws-sdk-net/blob/main/changelogs/SDK.CHANGELOG.ALL.md.
3+
* Amazon Kinesis
4+
* Added cmdlet Update-KINMaxRecordSize leveraging the UpdateMaxRecordSize service API.
5+
* Modified cmdlet New-KINStream: added parameter MaxRecordSizeInKiB.
6+
7+
### 5.0.83 (2025-10-24 21:12Z)
28
* AWS Tools for PowerShell now use AWS .NET SDK 4.0.119.0 and leverage its new features and improvements. Please find a description of the changes at https://github.com/aws/aws-sdk-net/blob/main/changelogs/SDK.CHANGELOG.ALL.md.
39
* Amazon DataZone
410
* Modified cmdlet New-DZConnection: added parameters MlflowProperties_TrackingServerArn and MlflowProperties_TrackingServerName.

generator/AWSPSGeneratorLib/Config/ServiceConfig/kinesis.xml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@
8989
<Params />
9090
<TypesNotToFlatten />
9191
</ServiceOperation>
92-
<ServiceOperation MethodName="ListShards" OutputProperty="Shards" Verb="Get" Noun="ShardList" PipelineParameter="StreamName" NoPipelineParameter="false" LegacyPagination="UseEmitLimit" LegacyV4Pagination="true">
92+
<ServiceOperation MethodName="ListShards" OutputProperty="Shards" Verb="Get" Noun="ShardList" PipelineParameter="StreamName" NoPipelineParameter="false" LegacyV4Pagination="true" LegacyPagination="UseEmitLimit">
9393
<Params />
9494
<TypesNotToFlatten />
9595
</ServiceOperation>
96-
<ServiceOperation MethodName="ListStreamConsumers" OutputProperty="Consumers" Verb="Get" Noun="StreamConsumerList" PipelineParameter="StreamARN" NoPipelineParameter="false" LegacyPagination="UseEmitLimit" LegacyV4Pagination="true">
96+
<ServiceOperation MethodName="ListStreamConsumers" OutputProperty="Consumers" Verb="Get" Noun="StreamConsumerList" PipelineParameter="StreamARN" NoPipelineParameter="false" LegacyV4Pagination="true" LegacyPagination="UseEmitLimit">
9797
<Params />
9898
<TypesNotToFlatten />
9999
</ServiceOperation>
100-
<ServiceOperation MethodName="ListStreams" OutputProperty="*" Verb="Get" Noun="StreamList" PositionalParameters="Limit" PipelineParameter="ExclusiveStartStreamName" NoPipelineParameter="false" LegacyAlias="Get-KINStreams" LegacyV4Pagination="true">
100+
<ServiceOperation MethodName="ListStreams" OutputProperty="*" Verb="Get" Noun="StreamList" PositionalParameters="Limit" PipelineParameter="ExclusiveStartStreamName" NoPipelineParameter="false" LegacyV4Pagination="true" LegacyAlias="Get-KINStreams">
101101
<Params />
102102
<TypesNotToFlatten />
103103
</ServiceOperation>
@@ -113,7 +113,7 @@
113113
<Params />
114114
<TypesNotToFlatten />
115115
</ServiceOperation>
116-
<ServiceOperation MethodName="PutRecord" OutputProperty="*" Verb="Write" Noun="Record" ShouldProcessTarget="StreamName" PipelineParameter="StreamName" NoPipelineParameter="false" DefaultParameterSet="FromBlob" LegacyV4Pagination="true">
116+
<ServiceOperation MethodName="PutRecord" OutputProperty="*" Verb="Write" Noun="Record" ShouldProcessTarget="StreamName" PipelineParameter="StreamName" NoPipelineParameter="false" LegacyV4Pagination="true" DefaultParameterSet="FromBlob">
117117
<Params>
118118
<Param Name="StreamName" Mandatory="true" />
119119
<Param Name="Data" Alias="Blob;Record_Data" ParameterSetName="FromBlob" Mandatory="true" />
@@ -156,6 +156,10 @@
156156
<Params />
157157
<TypesNotToFlatten />
158158
</ServiceOperation>
159+
<ServiceOperation MethodName="UpdateMaxRecordSize" Verb="Update" Noun="MaxRecordSize" ShouldProcessTarget="MaxRecordSizeInKiB" PipelineParameter="MaxRecordSizeInKiB" NoPipelineParameter="false">
160+
<Params />
161+
<TypesNotToFlatten />
162+
</ServiceOperation>
159163
<ServiceOperation MethodName="UpdateShardCount" OutputProperty="*" Verb="Update" Noun="ShardCount" ShouldProcessTarget="StreamName" PositionalParameters="ScalingType" PipelineParameter="StreamName" NoPipelineParameter="false" LegacyV4Pagination="true">
160164
<Params />
161165
<TypesNotToFlatten />

modules/AWSPowerShell/AWSAliases.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18257,6 +18257,7 @@ Set-Alias -Name KIN-StartStreamEncryption -Value Start-KINStreamEncryption
1825718257
Set-Alias -Name KIN-StopStreamEncryption -Value Stop-KINStreamEncryption
1825818258
Set-Alias -Name KIN-TagResource -Value Add-KINResourceTag
1825918259
Set-Alias -Name KIN-UntagResource -Value Remove-KINResourceTag
18260+
Set-Alias -Name KIN-UpdateMaxRecordSize -Value Update-KINMaxRecordSize
1826018261
Set-Alias -Name KIN-UpdateShardCount -Value Update-KINShardCount
1826118262
Set-Alias -Name KIN-UpdateStreamMode -Value Update-KINStreamMode
1826218263
Set-Alias -Name KINA-AddApplicationCloudWatchLoggingOption -Value Add-KINAApplicationCloudWatchLoggingOption

modules/AWSPowerShell/AWSPowerShellCompleters.psm1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44880,6 +44880,7 @@ $KIN_SelectMap = @{
4488044880
"Stop-KINStreamEncryption",
4488144881
"Add-KINResourceTag",
4488244882
"Remove-KINResourceTag",
44883+
"Update-KINMaxRecordSize",
4488344884
"Update-KINShardCount",
4488444885
"Update-KINStreamMode")
4488544886
}

modules/AWSPowerShell/Cmdlets/Kinesis/AWS.Tools.Kinesis.Completers.psm1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ $KIN_SelectMap = @{
219219
"Stop-KINStreamEncryption",
220220
"Add-KINResourceTag",
221221
"Remove-KINResourceTag",
222+
"Update-KINMaxRecordSize",
222223
"Update-KINShardCount",
223224
"Update-KINStreamMode")
224225
}

modules/AWSPowerShell/Cmdlets/Kinesis/AWS.Tools.Kinesis.psd1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ This version of AWS Tools for PowerShell is compatible with Windows PowerShell 5
116116
'Start-KINStreamEncryption',
117117
'Stop-KINStreamEncryption',
118118
'Unregister-KINStreamConsumer',
119+
'Update-KINMaxRecordSize',
119120
'Update-KINShardCount',
120121
'Update-KINStreamMode',
121122
'Write-KINMultipleRecord',

modules/AWSPowerShell/Cmdlets/Kinesis/Basic/New-KINStream-Cmdlet.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,17 @@ public partial class NewKINStreamCmdlet : AmazonKinesisClientCmdlet, IExecutor
9595
protected override bool IsGeneratedCmdlet { get; set; } = true;
9696
private readonly CancellationTokenSource _cancellationTokenSource = new CancellationTokenSource();
9797

98+
#region Parameter MaxRecordSizeInKiB
99+
/// <summary>
100+
/// <para>
101+
/// <para>The maximum record size of a single record in kibibyte (KiB) that you can write to,
102+
/// and read from a stream.</para>
103+
/// </para>
104+
/// </summary>
105+
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
106+
public System.Int32? MaxRecordSizeInKiB { get; set; }
107+
#endregion
108+
98109
#region Parameter ShardCount
99110
/// <summary>
100111
/// <para>
@@ -201,6 +212,7 @@ protected override void ProcessRecord()
201212
context.Select = CreateSelectDelegate<Amazon.Kinesis.Model.CreateStreamResponse, NewKINStreamCmdlet>(Select) ??
202213
throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select));
203214
}
215+
context.MaxRecordSizeInKiB = this.MaxRecordSizeInKiB;
204216
context.ShardCount = this.ShardCount;
205217
context.StreamModeDetails_StreamMode = this.StreamModeDetails_StreamMode;
206218
context.StreamName = this.StreamName;
@@ -234,6 +246,10 @@ public object Execute(ExecutorContext context)
234246
// create request
235247
var request = new Amazon.Kinesis.Model.CreateStreamRequest();
236248

249+
if (cmdletContext.MaxRecordSizeInKiB != null)
250+
{
251+
request.MaxRecordSizeInKiB = cmdletContext.MaxRecordSizeInKiB.Value;
252+
}
237253
if (cmdletContext.ShardCount != null)
238254
{
239255
request.ShardCount = cmdletContext.ShardCount.Value;
@@ -320,6 +336,7 @@ private Amazon.Kinesis.Model.CreateStreamResponse CallAWSServiceOperation(IAmazo
320336

321337
internal partial class CmdletContext : ExecutorContext
322338
{
339+
public System.Int32? MaxRecordSizeInKiB { get; set; }
323340
public System.Int32? ShardCount { get; set; }
324341
public Amazon.Kinesis.StreamMode StreamModeDetails_StreamMode { get; set; }
325342
public System.String StreamName { get; set; }
Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
1+
/*******************************************************************************
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use
4+
* this file except in compliance with the License. A copy of the License is located at
5+
*
6+
* http://aws.amazon.com/apache2.0
7+
*
8+
* or in the "license" file accompanying this file.
9+
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10+
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
11+
* specific language governing permissions and limitations under the License.
12+
* *****************************************************************************
13+
*
14+
* AWS Tools for Windows (TM) PowerShell (TM)
15+
*
16+
*/
17+
18+
using System;
19+
using System.Collections.Generic;
20+
using System.Linq;
21+
using System.Management.Automation;
22+
using System.Text;
23+
using Amazon.PowerShell.Common;
24+
using Amazon.Runtime;
25+
using System.Threading;
26+
using Amazon.Kinesis;
27+
using Amazon.Kinesis.Model;
28+
29+
#pragma warning disable CS0618, CS0612
30+
namespace Amazon.PowerShell.Cmdlets.KIN
31+
{
32+
/// <summary>
33+
/// This allows you to update the <c>MaxRecordSize</c> of a single record that you can
34+
/// write to, and read from a stream. You can ingest and digest single records up to 10240
35+
/// KiB.
36+
/// </summary>
37+
[Cmdlet("Update", "KINMaxRecordSize", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)]
38+
[OutputType("None")]
39+
[AWSCmdlet("Calls the Amazon Kinesis UpdateMaxRecordSize API operation.", Operation = new[] {"UpdateMaxRecordSize"}, SelectReturnType = typeof(Amazon.Kinesis.Model.UpdateMaxRecordSizeResponse))]
40+
[AWSCmdletOutput("None or Amazon.Kinesis.Model.UpdateMaxRecordSizeResponse",
41+
"This cmdlet does not generate any output." +
42+
"The service response (type Amazon.Kinesis.Model.UpdateMaxRecordSizeResponse) be returned by specifying '-Select *'."
43+
)]
44+
public partial class UpdateKINMaxRecordSizeCmdlet : AmazonKinesisClientCmdlet, IExecutor
45+
{
46+
47+
protected override bool IsGeneratedCmdlet { get; set; } = true;
48+
private readonly CancellationTokenSource _cancellationTokenSource = new CancellationTokenSource();
49+
50+
#region Parameter MaxRecordSizeInKiB
51+
/// <summary>
52+
/// <para>
53+
/// <para>The maximum record size of a single record in KiB that you can write to, and read
54+
/// from a stream. Specify a value between 1024 and 10240 KiB (1 to 10 MiB). If you specify
55+
/// a value that is out of this range, <c>UpdateMaxRecordSize</c> sends back an <c>ValidationException</c>
56+
/// message.</para>
57+
/// </para>
58+
/// </summary>
59+
#if !MODULAR
60+
[System.Management.Automation.Parameter(Position = 0, ValueFromPipelineByPropertyName = true, ValueFromPipeline = true)]
61+
#else
62+
[System.Management.Automation.Parameter(Position = 0, ValueFromPipelineByPropertyName = true, ValueFromPipeline = true, Mandatory = true)]
63+
[System.Management.Automation.AllowNull]
64+
#endif
65+
[Amazon.PowerShell.Common.AWSRequiredParameter]
66+
public System.Int32? MaxRecordSizeInKiB { get; set; }
67+
#endregion
68+
69+
#region Parameter StreamARN
70+
/// <summary>
71+
/// <para>
72+
/// <para>The Amazon Resource Name (ARN) of the stream for the <c>MaxRecordSize</c> update.</para>
73+
/// </para>
74+
/// </summary>
75+
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
76+
public System.String StreamARN { get; set; }
77+
#endregion
78+
79+
#region Parameter Select
80+
/// <summary>
81+
/// Use the -Select parameter to control the cmdlet output. The cmdlet doesn't have a return value by default.
82+
/// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.Kinesis.Model.UpdateMaxRecordSizeResponse).
83+
/// Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value.
84+
/// </summary>
85+
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
86+
public string Select { get; set; } = "*";
87+
#endregion
88+
89+
#region Parameter Force
90+
/// <summary>
91+
/// This parameter overrides confirmation prompts to force
92+
/// the cmdlet to continue its operation. This parameter should always
93+
/// be used with caution.
94+
/// </summary>
95+
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
96+
public SwitchParameter Force { get; set; }
97+
#endregion
98+
99+
protected override void StopProcessing()
100+
{
101+
base.StopProcessing();
102+
_cancellationTokenSource.Cancel();
103+
}
104+
protected override void ProcessRecord()
105+
{
106+
base.ProcessRecord();
107+
108+
var resourceIdentifiersText = FormatParameterValuesForConfirmationMsg(nameof(this.MaxRecordSizeInKiB), MyInvocation.BoundParameters);
109+
if (!ConfirmShouldProceed(this.Force.IsPresent, resourceIdentifiersText, "Update-KINMaxRecordSize (UpdateMaxRecordSize)"))
110+
{
111+
return;
112+
}
113+
114+
var context = new CmdletContext();
115+
116+
// allow for manipulation of parameters prior to loading into context
117+
PreExecutionContextLoad(context);
118+
119+
if (ParameterWasBound(nameof(this.Select)))
120+
{
121+
context.Select = CreateSelectDelegate<Amazon.Kinesis.Model.UpdateMaxRecordSizeResponse, UpdateKINMaxRecordSizeCmdlet>(Select) ??
122+
throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select));
123+
}
124+
context.MaxRecordSizeInKiB = this.MaxRecordSizeInKiB;
125+
#if MODULAR
126+
if (this.MaxRecordSizeInKiB == null && ParameterWasBound(nameof(this.MaxRecordSizeInKiB)))
127+
{
128+
WriteWarning("You are passing $null as a value for parameter MaxRecordSizeInKiB which is marked as required. In case you believe this parameter was incorrectly marked as required, report this by opening an issue at https://github.com/aws/aws-tools-for-powershell/issues.");
129+
}
130+
#endif
131+
context.StreamARN = this.StreamARN;
132+
133+
// allow further manipulation of loaded context prior to processing
134+
PostExecutionContextLoad(context);
135+
136+
var output = Execute(context) as CmdletOutput;
137+
ProcessOutput(output);
138+
}
139+
140+
#region IExecutor Members
141+
142+
public object Execute(ExecutorContext context)
143+
{
144+
var cmdletContext = context as CmdletContext;
145+
// create request
146+
var request = new Amazon.Kinesis.Model.UpdateMaxRecordSizeRequest();
147+
148+
if (cmdletContext.MaxRecordSizeInKiB != null)
149+
{
150+
request.MaxRecordSizeInKiB = cmdletContext.MaxRecordSizeInKiB.Value;
151+
}
152+
if (cmdletContext.StreamARN != null)
153+
{
154+
request.StreamARN = cmdletContext.StreamARN;
155+
}
156+
157+
CmdletOutput output;
158+
159+
// issue call
160+
var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint);
161+
try
162+
{
163+
var response = CallAWSServiceOperation(client, request);
164+
object pipelineOutput = null;
165+
pipelineOutput = cmdletContext.Select(response, this);
166+
output = new CmdletOutput
167+
{
168+
PipelineOutput = pipelineOutput,
169+
ServiceResponse = response
170+
};
171+
}
172+
catch (Exception e)
173+
{
174+
output = new CmdletOutput { ErrorResponse = e };
175+
}
176+
177+
return output;
178+
}
179+
180+
public ExecutorContext CreateContext()
181+
{
182+
return new CmdletContext();
183+
}
184+
185+
#endregion
186+
187+
#region AWS Service Operation Call
188+
189+
private Amazon.Kinesis.Model.UpdateMaxRecordSizeResponse CallAWSServiceOperation(IAmazonKinesis client, Amazon.Kinesis.Model.UpdateMaxRecordSizeRequest request)
190+
{
191+
Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Kinesis", "UpdateMaxRecordSize");
192+
try
193+
{
194+
return client.UpdateMaxRecordSizeAsync(request, _cancellationTokenSource.Token).GetAwaiter().GetResult();
195+
}
196+
catch (AmazonServiceException exc)
197+
{
198+
var webException = exc.InnerException as System.Net.WebException;
199+
if (webException != null)
200+
{
201+
throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
202+
}
203+
throw;
204+
}
205+
}
206+
207+
#endregion
208+
209+
internal partial class CmdletContext : ExecutorContext
210+
{
211+
public System.Int32? MaxRecordSizeInKiB { get; set; }
212+
public System.String StreamARN { get; set; }
213+
public System.Func<Amazon.Kinesis.Model.UpdateMaxRecordSizeResponse, UpdateKINMaxRecordSizeCmdlet, object> Select { get; set; } =
214+
(response, cmdlet) => null;
215+
}
216+
217+
}
218+
}

0 commit comments

Comments
 (0)