Ejemplo n.º 1
0
        /// <summary>
        /// Creates a new bucket.
        /// </summary>
        /// <param name="bucket">The name of the bucket to create</param>
        /// <param name="accessControlList">Access Control List (can be null)</param>
        public CreateBucketResult createBucket(string bucket, Grant[] accessControlList)
        {
            DateTime timestamp = AWSDateFormatter.GetCurrentTimeResolvedToMillis();
            string   signature = makeSignature("CreateBucket", timestamp);

            return(s3.CreateBucket(bucket, accessControlList, awsAccessKeyId, timestamp, true, signature));
        }