8000 update internal endpts comment that was wrong (#3194) · aws/aws-sdk-go-v2@c98edb7 · GitHub
[go: up one dir, main page]

Skip to content

Commit c98edb7

Browse files
authored
update internal endpts comment that was wrong (#3194)
1 parent 88da3c8 commit c98edb7

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

internal/endpoints/awsrulesfn/internal/partition/codegen.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
//go:build ignore
22
// +build ignore
33

4+
/*
5+
6+
to regenerate:
7+
8+
run the following from internal/endpoints/awsrulesfn:
9+
10+
$ go run -tags codegen ./internal/partition/codegen.go -model partitions.json -output partitions.go
11+
$ gofmt -w -s .
12+
13+
*/
14+
415
package main
516

617
import (
@@ -41,7 +52,8 @@ package awsrulesfn
4152
4253
4354
// GetPartition returns an AWS [Partition] for the region provided. If the
44-
// partition cannot be determined nil will be returned.
55+
// partition cannot be determined then the default partition (AWS commercial)
56+
// will be returned.
4557
func GetPartition(region string) *PartitionConfig {
4658
return getPartition(partitions, region)
4759
}

internal/endpoints/awsrulesfn/partitions.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
0