Sample code for 30+ languages & platforms
AutoIt

S3 Create Bucket

See more Amazon S3 Examples

Demonstrates how to create a new bucket.

Chilkat AutoIt Downloads

AutoIt
Local $bSuccess = False

; This example assumes the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.

$oHttp = ObjCreate("Chilkat.Http")

; Insert your access key here:
$oHttp.AwsAccessKey = "ABQXXABC83ABCDEFVQXX"

; Insert your secret key here:
$oHttp.AwsSecretKey = "XXXXYYYYabcdABCD12345678xxxxyyyyzzzz"

$bSuccess = $oHttp.S3_CreateBucket("chilkattestbucket")

If ($bSuccess <> True) Then
    ConsoleWrite($oHttp.LastErrorText & @CRLF)
Else
    ConsoleWrite("Bucket created." & @CRLF)
EndIf