| Did this page help you? Yes No Tell us about it... |
The following tasks guide you through using the .NET classes to send authenticated requests using your AWS account or IAM user credentials.
Making Requests Using Your AWS Account or IAM user Credentials
|
1 |
Create an instance of the |
|
2 |
Execute one of the |
The following C# code sample demonstrates the preceding tasks.
BasicAWSCredentials basicCredentials =
new BasicAWSCredentials("*** Access Key ID ***",
"*** Security Access Key ***");
AmazonS3Client s3Client = new AmazonS3Client(basicCredentials);
// Send sample request (for example, list buckets).
var response = s3Client.ListBuckets();
![]() | Note |
|---|---|
You can create the |
For working examples, see Working with Amazon S3 Objects and Working with Amazon S3 Buckets. You can test these examples using your AWS Account or an IAM user credentials.
For example, to list all the object keys in your bucket, see Listing Keys Using the AWS SDK for .NET.