github.com/aavshr/aws-sdk-go@v1.41.3/example/aws/endpoints/enumEndpoints/README.md (about) 1 Enumerate Regions and Endpoints Example 2 === 3 4 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. 5 6 Usage 7 --- 8 9 The following parameters can be used to enumerate the SDK's partition metadata. 10 11 Example: 12 13 go run -tags example enumEndpoints.go -p aws -services -r us-west-2 14 15 Output: 16 17 Services with endpoint us-west-2 in aws: 18 ec2 19 dynamodb 20 s3 21 ... 22 23 CLI parameters 24 --- 25 26 ``` 27 -p=id partition id, e.g: aws 28 -r=id region id, e.g: us-west-2 29 -s=id service id, e.g: s3 30 31 -partitions Lists all partitions. 32 -regions Lists all regions in a partition. Requires partition ID. 33 If service ID is also provided will show endpoints for a service. 34 -services Lists all services in a partition. Requires partition ID. 35 If region ID is also provided, will show services available in that region. 36 ``` 37