Skip to content

Commit 5078177

Browse files
Add CreatePresignedPostAsync to interface definitions (#3926)
* add CreatePresignedPost interface definitions * add dev config
1 parent d205e64 commit 5078177

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"services": [
3+
{
4+
"serviceName": "S3",
5+
"type": "patch",
6+
"changeLogMessages": [
7+
"Add CreatePresignedPost to interface"
8+
]
9+
}
10+
]
11+
}

sdk/src/Services/S3/Custom/IAmazonS3.Extensions.cs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,27 @@ public partial interface IAmazonS3 : IDisposable, Amazon.Runtime.SharedInterface
7474
Task<string> GetPreSignedURLAsync(GetPreSignedUrlRequest request);
7575

7676
#endregion
77+
78+
#region CreatePresignedPost
79+
80+
/// <summary>
81+
/// Create a presigned POST request that can be used to upload a file directly to S3 from a web browser.
82+
/// </summary>
83+
/// <param name="request">The CreatePresignedPostRequest that defines the parameters of the operation.</param>
84+
/// <returns>A CreatePresignedPostResponse containing the URL and form fields for the POST request.</returns>
85+
/// <exception cref="T:System.ArgumentException" />
86+
/// <exception cref="T:System.ArgumentNullException" />
87+
CreatePresignedPostResponse CreatePresignedPost(CreatePresignedPostRequest request);
88+
89+
/// <summary>
90+
/// Asynchronously create a presigned POST request that can be used to upload a file directly to S3 from a web browser.
91+
/// </summary>
92+
/// <param name="request">The CreatePresignedPostRequest that defines the parameters of the operation.</param>
93+
/// <returns>A CreatePresignedPostResponse containing the URL and form fields for the POST request.</returns>
94+
/// <exception cref="T:System.ArgumentException" />
95+
/// <exception cref="T:System.ArgumentNullException" />
96+
Task<CreatePresignedPostResponse> CreatePresignedPostAsync(CreatePresignedPostRequest request);
97+
98+
#endregion
7799
}
78100
}

0 commit comments

Comments
 (0)