Skip to content

Commit 5476ca2

Browse files
4.1.927
1 parent c09adc6 commit 5476ca2

19 files changed

+1669
-857
lines changed

Include/sdk/_sdk-versions.json

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

changelogs/CHANGELOG.2025.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
### 4.1.926 (2025-10-22 22:25Z)
1+
### 4.1.927 (2025-10-23 21:31Z)
2+
* AWS Tools for PowerShell now use AWS .NET SDK 3.7.1150.0 and leverage its new features and improvements. Please find a description of the changes at https://github.com/aws/aws-sdk-net/blob/aws-sdk-net-v3.7/changelogs/SDK.CHANGELOG.ALL.md.
3+
* Amazon Aurora DSQL
4+
* Added cmdlet Get-DSQLClusterPolicy leveraging the GetClusterPolicy service API.
5+
* Added cmdlet Remove-DSQLClusterPolicy leveraging the DeleteClusterPolicy service API.
6+
* Added cmdlet Set-DSQLClusterPolicy leveraging the PutClusterPolicy service API.
7+
* Modified cmdlet New-DSQLCluster: added parameters BypassPolicyLockoutSafetyCheck and Policy.
8+
9+
### 4.1.926 (2025-10-22 22:25Z)
210
* AWS Tools for PowerShell now use AWS .NET SDK 3.7.1149.0 and leverage its new features and improvements. Please find a description of the changes at https://github.com/aws/aws-sdk-net/blob/aws-sdk-net-v3.7/changelogs/SDK.CHANGELOG.ALL.md.
311
* Amazon AmazonConnectCampaignServiceV2
412
* Modified cmdlet New-CCS2Campaign: added parameters Preview_AgentAction, Preview_BandwidthAllocation and TimeoutConfig_DurationInSecond.

changelogs/CHANGELOG.ALL.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
### 4.1.926 (2025-10-22 22:25Z)
1+
### 4.1.927 (2025-10-23 21:31Z)
2+
* AWS Tools for PowerShell now use AWS .NET SDK 3.7.1150.0 and leverage its new features and improvements. Please find a description of the changes at https://github.com/aws/aws-sdk-net/blob/aws-sdk-net-v3.7/changelogs/SDK.CHANGELOG.ALL.md.
3+
* Amazon Aurora DSQL
4+
* Added cmdlet Get-DSQLClusterPolicy leveraging the GetClusterPolicy service API.
5+
* Added cmdlet Remove-DSQLClusterPolicy leveraging the DeleteClusterPolicy service API.
6+
* Added cmdlet Set-DSQLClusterPolicy leveraging the PutClusterPolicy service API.
7+
* Modified cmdlet New-DSQLCluster: added parameters BypassPolicyLockoutSafetyCheck and Policy.
8+
9+
### 4.1.926 (2025-10-22 22:25Z)
210
* AWS Tools for PowerShell now use AWS .NET SDK 3.7.1149.0 and leverage its new features and improvements. Please find a description of the changes at https://github.com/aws/aws-sdk-net/blob/aws-sdk-net-v3.7/changelogs/SDK.CHANGELOG.ALL.md.
311
* Amazon AmazonConnectCampaignServiceV2
412
* Modified cmdlet New-CCS2Campaign: added parameters Preview_AgentAction, Preview_BandwidthAllocation and TimeoutConfig_DurationInSecond.

generator/AWSPSGeneratorLib/Config/ServiceConfig/dsql.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,18 @@
2626
<Params />
2727
<TypesNotToFlatten />
2828
</ServiceOperation>
29+
<ServiceOperation MethodName="DeleteClusterPolicy" OutputProperty="PolicyVersion" Verb="Remove" Noun="ClusterPolicy" ShouldProcessTarget="Identifier" PipelineParameter="Identifier" NoPipelineParameter="false">
30+
<Params />
31+
<TypesNotToFlatten />
32+
</ServiceOperation>
2933
<ServiceOperation MethodName="GetCluster" OutputProperty="*" Verb="Get" Noun="Cluster" PipelineParameter="Identifier" NoPipelineParameter="false" LegacyV4Pagination="true">
3034
<Params />
3135
<TypesNotToFlatten />
3236
</ServiceOperation>
37+
<ServiceOperation MethodName="GetClusterPolicy" OutputProperty="*" Verb="Get" Noun="ClusterPolicy" PipelineParameter="Identifier" NoPipelineParameter="false">
38+
<Params />
39+
<TypesNotToFlatten />
40+
</ServiceOperation>
3341
<ServiceOperation MethodName="GetVpcEndpointServiceName" OutputProperty="ServiceName" Verb="Get" Noun="VpcEndpointServiceName" PipelineParameter="Identifier" NoPipelineParameter="false" LegacyV4Pagination="true">
3442
<Params />
3543
<TypesNotToFlatten />
@@ -42,6 +50,10 @@
4250
<Params />
4351
<TypesNotToFlatten />
4452
</ServiceOperation>
53+
<ServiceOperation MethodName="PutClusterPolicy" OutputProperty="PolicyVersion" Verb="Set" Noun="ClusterPolicy" ShouldProcessTarget="Identifier" PipelineParameter="" NoPipelineParameter="true">
54+
<Params />
55+
<TypesNotToFlatten />
56+
</ServiceOperation>
4557
<ServiceOperation MethodName="TagResource" Verb="Add" Noun="ResourceTag" ShouldProcessTarget="ResourceArn" PipelineParameter="ResourceArn" NoPipelineParameter="false" LegacyV4Pagination="true">
4658
<Params />
4759
<TypesNotToFlatten />

modules/AWSPowerShell/AWSAliases.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9842,12 +9842,17 @@ Set-Alias -Name Create-DSQLCluster -Value New-DSQLCluster
98429842
Set-Alias -Name DSQL-CreateCluster -Value New-DSQLCluster
98439843
Set-Alias -Name Delete-DSQLCluster -Value Remove-DSQLCluster
98449844
Set-Alias -Name DSQL-DeleteCluster -Value Remove-DSQLCluster
9845+
Set-Alias -Name Delete-DSQLClusterPolicy -Value Remove-DSQLClusterPolicy
9846+
Set-Alias -Name DSQL-DeleteClusterPolicy -Value Remove-DSQLClusterPolicy
98459847
Set-Alias -Name DSQL-GetCluster -Value Get-DSQLCluster
9848+
Set-Alias -Name DSQL-GetClusterPolicy -Value Get-DSQLClusterPolicy
98469849
Set-Alias -Name DSQL-GetVpcEndpointServiceName -Value Get-DSQLVpcEndpointServiceName
98479850
Set-Alias -Name List-DSQLClusters -Value Get-DSQLClusterList
98489851
Set-Alias -Name List-DSQLClusterList -Value Get-DSQLClusterList
98499852
Set-Alias -Name DSQL-ListClusters -Value Get-DSQLClusterList
98509853
Set-Alias -Name DSQL-ListTagsForResource -Value Get-DSQLResourceTag
9854+
Set-Alias -Name Put-DSQLClusterPolicy -Value Set-DSQLClusterPolicy
9855+
Set-Alias -Name DSQL-PutClusterPolicy -Value Set-DSQLClusterPolicy
98519856
Set-Alias -Name DSQL-TagResource -Value Add-DSQLResourceTag
98529857
Set-Alias -Name DSQL-UntagResource -Value Remove-DSQLResourceTag
98539858
Set-Alias -Name DSQL-UpdateCluster -Value Update-DSQLCluster

modules/AWSPowerShell/AWSPowerShellCompleters.psm1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25997,10 +25997,13 @@ $DSQL_SelectCompleters = {
2599725997
$DSQL_SelectMap = @{
2599825998
"Select"=@("New-DSQLCluster",
2599925999
"Remove-DSQLCluster",
26000+
"Remove-DSQLClusterPolicy",
2600026001
"Get-DSQLCluster",
26002+
"Get-DSQLClusterPolicy",
2600126003
"Get-DSQLVpcEndpointServiceName",
2600226004
"Get-DSQLClusterList",
2600326005
"Get-DSQLResourceTag",
26006+
"Set-DSQLClusterPolicy",
2600426007
"Add-DSQLResourceTag",
2600526008
"Remove-DSQLResourceTag",
2600626009
"Update-DSQLCluster")
@@ -46029,7 +46032,7 @@ $LM_Completers = {
4602946032
($_ -eq "Update-LMFunctionConfiguration/Runtime")
4603046033
}
4603146034
{
46032-
$v = "dotnet6","dotnet8","dotnetcore1.0","dotnetcore2.0","dotnetcore2.1","dotnetcore3.1","go1.x","java11","java17","java21","java8","java8.al2","nodejs","nodejs10.x","nodejs12.x","nodejs14.x","nodejs16.x","nodejs18.x","nodejs20.x","nodejs22.x","nodejs4.3","nodejs4.3-edge","nodejs6.10","nodejs8.10","provided","provided.al2","provided.al2023","python2.7","python3.10","python3.11","python3.12","python3.13","python3.6","python3.7","python3.8","python3.9","ruby2.5","ruby2.7","ruby3.2","ruby3.3","ruby3.4"
46035+
$v = "dotnet6","dotnet8","dotnetcore1.0","dotnetcore2.0","dotnetcore2.1","dotnetcore3.1","go1.x","java11","java17","java21","java8","java8.al2","nodejs","nodejs10.x","nodejs12.x","nodejs14.x","nodejs16.x","nodejs18.x","nodejs20.x","nodejs22.x","nodejs24.x","nodejs4.3","nodejs4.3-edge","nodejs6.10","nodejs8.10","provided","provided.al2","provided.al2023","python2.7","python3.10","python3.11","python3.12","python3.13","python3.6","python3.7","python3.8","python3.9","ruby2.5","ruby2.7","ruby3.2","ruby3.3","ruby3.4"
4603346036
break
4603446037
}
4603546038

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,13 @@ $DSQL_SelectCompleters = {
125125
$DSQL_SelectMap = @{
126126
"Select"=@("New-DSQLCluster",
127127
"Remove-DSQLCluster",
128+
"Remove-DSQLClusterPolicy",
128129
"Get-DSQLCluster",
130+
"Get-DSQLClusterPolicy",
129131
"Get-DSQLVpcEndpointServiceName",
130132
"Get-DSQLClusterList",
131133
"Get-DSQLResourceTag",
134+
"Set-DSQLClusterPolicy",
132135
"Add-DSQLResourceTag",
133136
"Remove-DSQLResourceTag",
134137
"Update-DSQLCluster")

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,14 @@ This version of AWS Tools for PowerShell is compatible with Windows PowerShell 5
9191
'Add-DSQLResourceTag',
9292
'Get-DSQLCluster',
9393
'Get-DSQLClusterList',
94+
'Get-DSQLClusterPolicy',
9495
'Get-DSQLResourceTag',
9596
'Get-DSQLVpcEndpointServiceName',
9697
'New-DSQLCluster',
9798
'Remove-DSQLCluster',
99+
'Remove-DSQLClusterPolicy',
98100
'Remove-DSQLResourceTag',
101+
'Set-DSQLClusterPolicy',
99102
'Update-DSQLCluster')
100103

101104
# Variables to export from this module
Lines changed: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
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 Amazon.DSQL;
26+
using Amazon.DSQL.Model;
27+
28+
namespace Amazon.PowerShell.Cmdlets.DSQL
29+
{
30+
/// <summary>
31+
/// Retrieves the resource-based policy document attached to a cluster. This policy defines
32+
/// the access permissions and conditions for the cluster.
33+
/// </summary>
34+
[Cmdlet("Get", "DSQLClusterPolicy")]
35+
[OutputType("Amazon.DSQL.Model.GetClusterPolicyResponse")]
36+
[AWSCmdlet("Calls the Amazon Aurora DSQL GetClusterPolicy API operation.", Operation = new[] {"GetClusterPolicy"}, SelectReturnType = typeof(Amazon.DSQL.Model.GetClusterPolicyResponse))]
37+
[AWSCmdletOutput("Amazon.DSQL.Model.GetClusterPolicyResponse",
38+
"This cmdlet returns an Amazon.DSQL.Model.GetClusterPolicyResponse object containing multiple properties."
39+
)]
40+
public partial class GetDSQLClusterPolicyCmdlet : AmazonDSQLClientCmdlet, IExecutor
41+
{
42+
43+
protected override bool IsGeneratedCmdlet { get; set; } = true;
44+
45+
#region Parameter Identifier
46+
/// <summary>
47+
/// <para>
48+
/// <para>The ID of the cluster to retrieve the policy from.</para>
49+
/// </para>
50+
/// </summary>
51+
#if !MODULAR
52+
[System.Management.Automation.Parameter(Position = 0, ValueFromPipelineByPropertyName = true, ValueFromPipeline = true)]
53+
#else
54+
[System.Management.Automation.Parameter(Position = 0, ValueFromPipelineByPropertyName = true, ValueFromPipeline = true, Mandatory = true)]
55+
[System.Management.Automation.AllowEmptyString]
56+
[System.Management.Automation.AllowNull]
57+
#endif
58+
[Amazon.PowerShell.Common.AWSRequiredParameter]
59+
public System.String Identifier { get; set; }
60+
#endregion
61+
62+
#region Parameter Select
63+
/// <summary>
64+
/// Use the -Select parameter to control the cmdlet output. The default value is '*'.
65+
/// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.DSQL.Model.GetClusterPolicyResponse).
66+
/// Specifying the name of a property of type Amazon.DSQL.Model.GetClusterPolicyResponse will result in that property being returned.
67+
/// Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value.
68+
/// </summary>
69+
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
70+
public string Select { get; set; } = "*";
71+
#endregion
72+
73+
#region Parameter PassThru
74+
/// <summary>
75+
/// Changes the cmdlet behavior to return the value passed to the Identifier parameter.
76+
/// The -PassThru parameter is deprecated, use -Select '^Identifier' instead. This parameter will be removed in a future version.
77+
/// </summary>
78+
[System.Obsolete("The -PassThru parameter is deprecated, use -Select '^Identifier' instead. This parameter will be removed in a future version.")]
79+
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
80+
public SwitchParameter PassThru { get; set; }
81+
#endregion
82+
83+
protected override void ProcessRecord()
84+
{
85+
this._AWSSignerType = "v4";
86+
base.ProcessRecord();
87+
88+
var context = new CmdletContext();
89+
90+
// allow for manipulation of parameters prior to loading into context
91+
PreExecutionContextLoad(context);
92+
93+
#pragma warning disable CS0618, CS0612 //A class member was marked with the Obsolete attribute
94+
if (ParameterWasBound(nameof(this.Select)))
95+
{
96+
context.Select = CreateSelectDelegate<Amazon.DSQL.Model.GetClusterPolicyResponse, GetDSQLClusterPolicyCmdlet>(Select) ??
97+
throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select));
98+
if (this.PassThru.IsPresent)
99+
{
100+
throw new System.ArgumentException("-PassThru cannot be used when -Select is specified.", nameof(this.Select));
101+
}
102+
}
103+
else if (this.PassThru.IsPresent)
104+
{
105+
context.Select = (response, cmdlet) => this.Identifier;
106+
}
107+
#pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute
108+
context.Identifier = this.Identifier;
109+
#if MODULAR
110+
if (this.Identifier == null && ParameterWasBound(nameof(this.Identifier)))
111+
{
112+
WriteWarning("You are passing $null as a value for parameter Identifier 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.");
113+
}
114+
#endif
115+
116+
// allow further manipulation of loaded context prior to processing
117+
PostExecutionContextLoad(context);
118+
119+
var output = Execute(context) as CmdletOutput;
120+
ProcessOutput(output);
121+
}
122+
123+
#region IExecutor Members
124+
125+
public object Execute(ExecutorContext context)
126+
{
127+
var cmdletContext = context as CmdletContext;
128+
// create request
129+
var request = new Amazon.DSQL.Model.GetClusterPolicyRequest();
130+
131+
if (cmdletContext.Identifier != null)
132+
{
133+
request.Identifier = cmdletContext.Identifier;
134+
}
135+
136+
CmdletOutput output;
137+
138+
// issue call
139+
var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint);
140+
try
141+
{
142+
var response = CallAWSServiceOperation(client, request);
143+
object pipelineOutput = null;
144+
pipelineOutput = cmdletContext.Select(response, this);
145+
output = new CmdletOutput
146+
{
147+
PipelineOutput = pipelineOutput,
148+
ServiceResponse = response
149+
};
150+
}
151+
catch (Exception e)
152+
{
153+
output = new CmdletOutput { ErrorResponse = e };
154+
}
155+
156+
return output;
157+
}
158+
159+
public ExecutorContext CreateContext()
160+
{
161+
return new CmdletContext();
162+
}
163+
164+
#endregion
165+
166+
#region AWS Service Operation Call
167+
168+
private Amazon.DSQL.Model.GetClusterPolicyResponse CallAWSServiceOperation(IAmazonDSQL client, Amazon.DSQL.Model.GetClusterPolicyRequest request)
169+
{
170+
Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Aurora DSQL", "GetClusterPolicy");
171+
try
172+
{
173+
#if DESKTOP
174+
return client.GetClusterPolicy(request);
175+
#elif CORECLR
176+
return client.GetClusterPolicyAsync(request).GetAwaiter().GetResult();
177+
#else
178+
#error "Unknown build edition"
179+
#endif
180+
}
181+
catch (AmazonServiceException exc)
182+
{
183+
var webException = exc.InnerException as System.Net.WebException;
184+
if (webException != null)
185+
{
186+
throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
187+
}
188+
throw;
189+
}
190+
}
191+
192+
#endregion
193+
194+
internal partial class CmdletContext : ExecutorContext
195+
{
196+
public System.String Identifier { get; set; }
197+
public System.Func<Amazon.DSQL.Model.GetClusterPolicyResponse, GetDSQLClusterPolicyCmdlet, object> Select { get; set; } =
198+
(response, cmdlet) => response;
199+
}
200+
201+
}
202+
}

0 commit comments

Comments
 (0)