alex_bn_lee

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

[1050] Website endpoints in AWS

ref: Website endpoints


Website endpoint examples

The following examples show how you can access an Amazon S3 bucket that is configured as a static website.

Example — Requesting an object at the root level

To request a specific object that is stored at the root level in the bucket, use the following URL structure.

http://bucket-name.s3-website.Region.amazonaws.com/object-name

For example, the following URL requests the photo.jpg object that is stored at the root level in the bucket.

http://example-bucket.s3-website.us-west-2.amazonaws.com/photo.jpg

Example — Requesting an object in a prefix

To request an object that is stored in a folder in your bucket, use this URL structure.

http://bucket-name.s3-website.Region.amazonaws.com/folder-name/object-name

The following URL requests the docs/doc1.html object in your bucket.

http://example-bucket.s3-website.us-west-2.amazonaws.com/docs/doc1.html

In the context of AWS and APIs, the terms “endpoint” and “URL” are closely related but have distinct meanings:

URL (Uniform Resource Locator)

  • Definition: A URL is a specific type of URI (Uniform Resource Identifier) that provides the address of a resource on the internet. It includes the protocol (e.g., HTTP, HTTPS), domain name, and path to the resource.
  • Example: https://example.com/path/to/resource

Endpoint

  • Definition: An endpoint is a specific URL that serves as an entry point for accessing a particular resource or service. In APIs, an endpoint is where the API receives requests and sends responses.
  • Example: In AWS, an S3 bucket endpoint might be https://example-bucket.s3.amazonaws.com.

Key Differences

  • Scope: A URL can refer to any web address, while an endpoint specifically refers to a URL used to interact with an API or service.
  • Function: Endpoints are used to access specific functionalities or resources within a service, whereas URLs can be used for general web navigation.

In summary, while all endpoints are URLs, not all URLs are endpoints123.

Would you like more details on any specific aspect? 1: HubSpot Blog - API Endpoint 2: Postman Blog - API Endpoint 3: Baeldung - API Endpoints

posted on   McDelfino  阅读(10)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2016-08-27 【223】◀▶ IDL HDF 文件操作说明
点击右上角即可分享
微信分享提示