Пример #1
0
        /// <inheritdoc/>
        public void SetBucketAcl(SetBucketAclRequest setBucketAclRequest)
        {
            ThrowIfNullRequest(setBucketAclRequest);
            var cmd = SetBucketAclCommand.Create(GetServiceClient(),
                                                 _endpoint,
                                                 CreateContext(HttpMethod.Put, setBucketAclRequest.BucketName, null),
                                                 setBucketAclRequest.BucketName, setBucketAclRequest);

            using (cmd.Execute())
            {
                // Do nothing
            }
        }
Пример #2
0
        /// <inheritdoc/>
        public void SetBucketAcl(string bucketName, CannedAccessControlList acl)
        {
            var setBucketAclRequest = new SetBucketAclRequest(bucketName, acl);

            SetBucketAcl(setBucketAclRequest);
        }