Skip to content

Commit

Permalink
4.1.679
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sdk-dotnet-automation committed Oct 16, 2024
1 parent 8a4d185 commit c6723b1
Show file tree
Hide file tree
Showing 10 changed files with 830 additions and 795 deletions.
1,564 changes: 782 additions & 782 deletions Include/sdk/_sdk-versions.json

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion changelogs/CHANGELOG.2024.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
### 4.1.678 (2024-10-15 20:51Z)
### 4.1.679 (2024-10-16 21:16Z)
* AWS Tools for PowerShell now use AWS .NET SDK 3.7.907.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.
* Amazon Simple Storage Service (S3)
* Modified cmdlet Get-S3Bucket: added parameters BucketRegion and Prefix.

### 4.1.678 (2024-10-15 20:51Z)
* AWS Tools for PowerShell now use AWS .NET SDK 3.7.906.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.
* Amazon Amplify
* Modified cmdlet Start-AMPDeployment: added parameter SourceUrlType.
Expand Down
7 changes: 6 additions & 1 deletion changelogs/CHANGELOG.ALL.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
### 4.1.678 (2024-10-15 20:51Z)
### 4.1.679 (2024-10-16 21:16Z)
* AWS Tools for PowerShell now use AWS .NET SDK 3.7.907.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.
* Amazon Simple Storage Service (S3)
* Modified cmdlet Get-S3Bucket: added parameters BucketRegion and Prefix.

### 4.1.678 (2024-10-15 20:51Z)
* AWS Tools for PowerShell now use AWS .NET SDK 3.7.906.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.
* Amazon Amplify
* Modified cmdlet Start-AMPDeployment: added parameter SourceUrlType.
Expand Down
32 changes: 32 additions & 0 deletions modules/AWSPowerShell/Cmdlets/S3/Basic/Get-S3Bucket-Cmdlet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@ public partial class GetS3BucketCmdlet : AmazonS3ClientCmdlet, IExecutor

protected override bool IsGeneratedCmdlet { get; set; } = true;

#region Parameter BucketRegion
/// <summary>
/// <para>
/// <para>Limits the response to buckets that are located in the specified Amazon Web Services region.</para><note><para>Requests made to an endpoint in a region that is different from the bucket-region parameter are not supported. For example, if you want to limit the response to your buckets in us-west-2 region, the request must be made to an endpoint in us-west-2.</para></note>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String BucketRegion { get; set; }
#endregion

#region Parameter ContinuationToken
/// <summary>
/// <para>
Expand All @@ -74,6 +84,16 @@ public partial class GetS3BucketCmdlet : AmazonS3ClientCmdlet, IExecutor
public System.Int32? MaxBucket { get; set; }
#endregion

#region Parameter Prefix
/// <summary>
/// <para>
/// Limits the response to bucket names that begin with the specified bucket name prefix.
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String Prefix { get; set; }
#endregion

#region Parameter Select
/// <summary>
/// Use the -Select parameter to control the cmdlet output. The default value is 'Buckets'.
Expand Down Expand Up @@ -102,6 +122,8 @@ protected override void ProcessRecord()
}
context.ContinuationToken = this.ContinuationToken;
context.MaxBucket = this.MaxBucket;
context.Prefix = this.Prefix;
context.BucketRegion = this.BucketRegion;

// allow further manipulation of loaded context prior to processing
PostExecutionContextLoad(context);
Expand All @@ -126,6 +148,14 @@ public object Execute(ExecutorContext context)
{
request.MaxBuckets = cmdletContext.MaxBucket.Value;
}
if (cmdletContext.Prefix != null)
{
request.Prefix = cmdletContext.Prefix;
}
if (cmdletContext.BucketRegion != null)
{
request.BucketRegion = cmdletContext.BucketRegion;
}

CmdletOutput output;

Expand Down Expand Up @@ -189,6 +219,8 @@ internal partial class CmdletContext : ExecutorContext
{
public System.String ContinuationToken { get; set; }
public System.Int32? MaxBucket { get; set; }
public System.String Prefix { get; set; }
public System.String BucketRegion { get; set; }
public System.Func<Amazon.S3.Model.ListBucketsResponse, GetS3BucketCmdlet, object> Select { get; set; } =
(response, cmdlet) => response.Buckets;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ namespace Amazon.PowerShell.Cmdlets.S3
/// </para><note><para>
/// Only 1 <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer
/// managed key</a> is supported per directory bucket for the lifetime of the bucket.
/// <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon
/// The <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon
/// Web Services managed key</a> (<c>aws/s3</c>) isn't supported. After you specify SSE-KMS
/// as your bucket's default encryption configuration with a customer managed key, you
/// can't change the customer managed key for the bucket's SSE-KMS configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ namespace Amazon.PowerShell.Cmdlets.S3
/// <summary>
/// <note><para>
/// This operation is not supported by directory buckets.
/// </para></note><important><para>
/// The <c>SELECT</c> job type for the RestoreObject operation is no longer available
/// to new customers. Existing customers of Amazon S3 Select can continue to use the feature
/// as usual. <a href="http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/">Learn
/// more</a></para></important><para>
/// </para></note><para>
/// Restores an archived copy of an object back into Amazon S3
/// </para><para>
/// This functionality is not supported for Amazon S3 on Outposts.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ namespace Amazon.PowerShell.Cmdlets.S3
/// <summary>
/// <note><para>
/// This operation is not supported by directory buckets.
/// </para></note><important><para>
/// The SelectObjectContent operation is no longer available to new customers. Existing
/// customers of Amazon S3 Select can continue to use the operation as usual. <a href="http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/">Learn
/// more</a></para></important><para>
/// </para></note><para>
/// This action filters the contents of an Amazon S3 object based on a simple structured
/// query language (SQL) statement. In the request, along with the SQL expression, you
/// must also specify a data serialization format (JSON, CSV, or Apache Parquet) of the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ namespace Amazon.PowerShell.Cmdlets.S3
/// server-side encryption with KMS for new object uploads</a>.
/// </para></li><li><para>
/// Your SSE-KMS configuration can only support 1 <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer
/// managed key</a> per directory bucket for the lifetime of the bucket. <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon
/// managed key</a> per directory bucket for the lifetime of the bucket. The <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon
/// Web Services managed key</a> (<c>aws/s3</c>) isn't supported.
/// </para></li><li><para>
/// S3 Bucket Keys are always enabled for <c>GET</c> and <c>PUT</c> operations in a directory
Expand Down
Binary file modified modules/AWSPowerShell/CmdletsList.dat
Binary file not shown.
Binary file modified modules/ModularAWSPowerShell/CmdletsList.dat
Binary file not shown.

0 comments on commit c6723b1

Please sign in to comment.