You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
methodDocumentation+=$"<br/><br/>{(Operation.LegacyPagination==ServiceOperation.LegacyPaginationType.DisablePagination?$"In the AWS.Tools.{ServiceConfig.AssemblyName} module, t":"T")}his cmdlet automatically pages all available results to the pipeline - parameters related to iteration are only needed if you want to manually control the paginated output. To disable autopagination, use -NoAutoIteration.";
67
+
{
68
+
methodDocumentation+=
69
+
$"<br/><br/>{(Operation.LegacyPagination==ServiceOperation.LegacyPaginationType.DisablePagination?$"In the AWS.Tools.{ServiceConfig.AssemblyName} module, t":"T")}his cmdlet automatically pages all available results to the pipeline - parameters related to iteration are only needed if you want to manually control the paginated output. To disable autopagination, use -NoAutoIteration.";
70
+
71
+
if(autoIteration.SupportLegacyAutoIterationMode)
72
+
{
73
+
methodDocumentation+=" This cmdlet didn't autopaginate in V4, auto-pagination support was added in V5.";
74
+
}
75
+
}
68
76
69
77
if(GetOperationObsoleteMessage(methodInfo)!=null)
70
78
methodDocumentation+="<br/><br/>This operation is deprecated.";
@@ -523,6 +531,11 @@ public void WriteNoAutoIterationSwitchParam(IndentedTextWriter writer)
523
531
writer.WriteLine("/// By default the cmdlet will auto-iterate and retrieve all results to the pipeline by performing multiple");
524
532
writer.WriteLine($"/// service calls. If set, the cmdlet will retrieve only the next 'page' of results using the value of {startProperty.CmdletParameterName}");
525
533
writer.WriteLine("/// as the start point.");
534
+
if(autoIteration.SupportLegacyAutoIterationMode)
535
+
{
536
+
writer.WriteLine("/// This cmdlet didn't autopaginate in V4. To preserve the V4 autopagination behavior for all cmdlets, run Set-AWSAutoIterationMode -IterationMode v4.");
/// Lists all the Regions for a given account and their respective opt-in statuses. Optionally,
34
-
/// this list can be filtered by the <c>region-opt-status-contains</c> parameter.
34
+
/// this list can be filtered by the <c>region-opt-status-contains</c> parameter.<br/><br/>This cmdlet automatically pages all available results to the pipeline - parameters related to iteration are only needed if you want to manually control the paginated output. To disable autopagination, use -NoAutoIteration. This cmdlet didn't autopaginate in V4, auto-pagination support was added in V5.
35
35
/// </summary>
36
36
[Cmdlet("Get","ACCTRegionList")]
37
37
[OutputType("Amazon.Account.Model.Region")]
@@ -91,10 +91,15 @@ public partial class GetACCTRegionListCmdlet : AmazonAccountClientCmdlet, IExecu
91
91
/// see <a href="http://docs.aws.amazon.com/cli/latest/userguide/pagination.html">Pagination</a>
92
92
/// in the <i>Amazon Web Services Command Line Interface User Guide</i>. </para>
93
93
/// </para>
94
+
/// <para>
95
+
/// <br/><b>Note:</b> In AWSPowerShell and AWSPowerShell.NetCore this parameter is used to limit the total number of items returned by the cmdlet.
96
+
/// <br/>In AWS.Tools this parameter is simply passed to the service to specify how many items should be returned by each service call.
97
+
/// <br/>Pipe the output of this cmdlet into Select-Object -First to terminate retrieving data pages early and control the number of items returned.
@@ -104,6 +109,10 @@ public partial class GetACCTRegionListCmdlet : AmazonAccountClientCmdlet, IExecu
104
109
/// a previously truncated response. For usage examples, see <a href="http://docs.aws.amazon.com/cli/latest/userguide/pagination.html">Pagination</a>
105
110
/// in the <i>Amazon Web Services Command Line Interface User Guide</i>.</para>
106
111
/// </para>
112
+
/// <para>
113
+
/// <br/><b>Note:</b> This parameter is only used if you are manually controlling output pagination of the service API call.
114
+
/// <br/>'NextToken' is only returned by the cmdlet when '-Select *' is specified. In order to manually control output pagination, set '-NextToken' to null for the first call then set the 'NextToken' using the same property output from the previous call for subsequent calls.
WriteWarning("AWSPowerShell and AWSPowerShell.NetCore use the MaxResult parameter to limit the total number of items returned by the cmdlet."+
168
+
" This behavior is obsolete and will be removed in a future version of these modules. Pipe the output of this cmdlet into Select-Object -First to terminate"+
169
+
" retrieving data pages early and control the number of items returned. AWS.Tools already implements the new behavior of simply passing MaxResult"+
170
+
" to the service to specify how many items should be returned by each service call.");
/// Controls the auto-iteration behavior for AWS PowerShell cmdlets.
607
+
/// Sets a shell variable that determines whether cmdlets use standard or v4 auto-iteration mode.
608
+
/// In standard mode, all operations with pagination support will auto-iterate by default.
609
+
/// In v4 mode, only operations that had auto-iteration in v4 will auto-iterate, maintaining backward compatibility.
610
+
/// </summary>
611
+
[Cmdlet("Set","AWSAutoIterationMode")]
612
+
[AWSCmdlet("Controls the auto-iteration behavior for AWS PowerShell cmdlets. Sets whether to use standard mode (all operations with pagination support auto-iterate) or v4 mode (only operations that had auto-iteration in v4 will auto-iterate).")]
613
+
[OutputType("None")]
614
+
publicclassSetAWSAutoIterationModeCmdlet:PSCmdlet
615
+
{
616
+
#region Parameter IterationMode
617
+
618
+
/// <summary>
619
+
/// Controls the auto-iteration behavior for AWS PowerShell cmdlets.
620
+
/// When set to 'standard' (default), all operations with pagination support will auto-iterate.
621
+
/// When set to 'v4', only operations that had auto-iteration in v4 will auto-iterate, maintaining backward compatibility.
0 commit comments