Documentation ¶
Overview ¶
snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.] snippet-sourceauthor:[Doug-AWS] snippet-sourcedescription:[Enforces MD5 checksum on items uploaded to an S3 bucket.] snippet-keyword:[Amazon Simple Storage Service] snippet-keyword:[Amazon S3] snippet-keyword:[PutObjectRequest function] snippet-keyword:[Go] snippet-sourcesyntax:[go] snippet-service:s3 snippet-keyword:[Code Sample] snippet-sourcetype:[full-example] snippet-sourcedate:[2018-03-16]
Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. This file is licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/apache2.0/ This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.] snippet-sourceauthor:[Doug-AWS] snippet-sourcedescription:[Generates a pre-signed URL for an S3 bucket item.] snippet-keyword:[Amazon Simple Storage Service] snippet-keyword:[Amazon S3] snippet-keyword:[GetObjectRequest function] snippet-keyword:[Go] snippet-sourcesyntax:[go] snippet-service:s3 snippet-keyword:[Code Sample] snippet-sourcetype:[full-example] snippet-sourcedate:[2018-03-16]
Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. This file is licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/apache2.0/ This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.] snippet-sourceauthor:[Doug-AWS] snippet-sourcedescription:[Generates a pre-signed URL for a PUT operation that checks whether the expected content was uploaded.] snippet-keyword:[Amazon Simple Storage Service] snippet-keyword:[Amazon S3] snippet-keyword:[PutObjectRequest function] snippet-keyword:[Go] snippet-sourcesyntax:[go] snippet-service:s3 snippet-keyword:[Code Sample] snippet-sourcetype:[full-example] snippet-sourcedate:[2018-03-16]
Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. This file is licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/apache2.0/ This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.] snippet-sourceauthor:[Doug-AWS] snippet-sourcedescription:[Lists all of your S3 buckets.] snippet-keyword:[Amazon Simple Storage Service] snippet-keyword:[Amazon S3] snippet-keyword:[ListBuckets function] snippet-keyword:[Go] snippet-sourcesyntax:[go] snippet-service:s3 snippet-keyword:[Code Sample] snippet-sourcetype:[full-example] snippet-sourcedate:[2018-03-16]
Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. This file is licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/apache2.0/ This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*
- Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. *
- This file is licensed under the Apache License, Version 2.0 (the "License").
- You may not use this file except in compliance with the License. A copy of
- the License is located at *
- http://aws.amazon.com/apache2.0/ *
- This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
- CONDITIONS OF ANY KIND, either express or implied. See the License for the
- specific language governing permissions and limitations under the License.
snippet-sourcedescription:[s3.go demonstrates how to list, create, and delete a bucket in Amazon S3.] snippet-service:s3 snippet-keyword:[Go] snippet-sourcesyntax:[go] snippet-keyword:[Amazon S3] snippet-keyword:[Code Sample] snippet-keyword:[ListBuckets] snippet-keyword:[CreateBucket] snippet-keyword:[DeleteBucket] snippet-sourcetype:[full-example] snippet-sourcedate:[2017-07-11] snippet-sourceauthor:[AWS] snippet-start:[s3.go.bucket_operations.list_create_delete]
snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.] snippet-sourceauthor:[Doug-AWS] snippet-sourcedescription:[Sets CORS permission on an S3 bucket.] snippet-keyword:[Amazon Simple Storage Service] snippet-keyword:[Amazon S3] snippet-keyword:[PutBucketCors function] snippet-keyword:[Go] snippet-sourcesyntax:[go] snippet-service:s3 snippet-keyword:[Code Sample] snippet-sourcetype:[full-example] snippet-sourcedate:[2020-1-6]
Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. This file is licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/apache2.0/ This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
snippet-start:[s3.go.set_cors.complete]
snippet-sourcetype:[full-example]
snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.] snippet-sourceauthor:[Doug-AWS] snippet-sourcedescription:[Uploads a file, as a stream, to an S3 bucket.] snippet-keyword:[Amazon Simple Storage Service] snippet-keyword:[Amazon S3] snippet-keyword:s3manager.NewUploader snippet-keyword:[Upload function] snippet-keyword:[Go] snippet-sourcesyntax:[go] snippet-service:s3 snippet-keyword:[Code Sample] snippet-sourcetype:[full-example] snippet-sourcedate:[2018-03-16]
Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. This file is licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/apache2.0/ This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Source Files ¶
- create_new_bucket_and_object.go
- enforce_content_md5.go
- generate_presigned_url.go
- generate_presigned_url_specific_payload.go
- list_all_buckets.go
- s3.go
- s3_copy_object.go
- s3_create_bucket.go
- s3_delete_bucket.go
- s3_delete_bucket_policy.go
- s3_delete_bucket_website.go
- s3_delete_object.go
- s3_delete_objects.go
- s3_download_object.go
- s3_encrypt_on_server_with_kms.go
- s3_get_bucket_acl.go
- s3_get_bucket_object_acl.go
- s3_get_bucket_policy.go
- s3_get_bucket_website.go
- s3_list_buckets.go
- s3_list_objects.go
- s3_make_bucket_public.go
- s3_put_bucket_acl.go
- s3_put_bucket_object_acl.go
- s3_require_server_encryption.go
- s3_restore_object.go
- s3_set_bucket_policy.go
- s3_set_bucket_website.go
- s3_set_cors.go
- s3_set_default_encryption.go
- s3_upload_directory.go
- s3_upload_object.go
- upload_arbitrary_sized_stream.go