usingAmazon.S3;
usingAmazon.S3.Model;
namespaceCreatebucket { classProgram { staticvoidMain(string[]args) { varAk=""; varSk=""; varendpoint="http://s3.test.com"; varbucketName="";
AmazonS3ClientserviceClient=newAmazonS3Client(Ak,Sk, newAmazonS3Config{ServiceURL=endpoint});
try { DeleteBucketEncryptionResponsedelres; DeleteBucketEncryptionRequestdelreq=newDeleteBucketEncryptionRequest { BucketName=bucketName, };
delres=serviceClient.DeleteBucketEncryptionAsync(delreq).GetAwaiter().GetResult(); Console.WriteLine(delres.HttpStatusCode); } catch(AmazonS3Exceptione) { Console.WriteLine(e.Message); } } } } |