File: README.md

package info (click to toggle)
golang-github-aws-aws-sdk-go 1.16.18%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, buster-backports, experimental
  • size: 93,084 kB
  • sloc: ruby: 193; makefile: 174; xml: 11
file content (37 lines) | stat: -rw-r--r-- 943 bytes parent folder | download
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
32
33
34
35
36
37
Enumerate Regions and Endpoints Example
===

Demonstrates how the SDK's endpoints can be enumerated over to discover regions, services, and endpoints defined by the SDK's Regions and Endpoints metadata.

Usage
---

The following parameters can be used to enumerate the SDK's partition metadata.

Example:

    go run -tags example enumEndpoints.go -p aws -services -r us-west-2

Output:

    Services with endpoint us-west-2 in aws:
	ec2
	dynamodb
	s3
    ...

CLI parameters
---

```
    -p=id partition id, e.g: aws
    -r=id region id, e.g: us-west-2
    -s=id service id, e.g: s3
    
    -partitions Lists all partitions.
    -regions Lists all regions in a partition. Requires partition ID.
             If service ID is also provided will show endpoints for a service.
    -services Lists all services in a partition. Requires partition ID.
              If region ID is also provided, will show services available in that region.
```