|
1 | 1 | // Package aws provides the core SDK's utilities and shared types. Use this package's |
2 | 2 | // utilities to simplify setting and reading API operations parameters. |
3 | 3 | // |
4 | | -// Value and Pointer Conversion Utilities |
| 4 | +// # Value and Pointer Conversion Utilities |
5 | 5 | // |
6 | 6 | // This package includes a helper conversion utility for each scalar type the SDK's |
7 | 7 | // API use. These utilities make getting a pointer of the scalar, and dereferencing |
|
16 | 16 | // to get pointer of a literal string value, because getting the address of a |
17 | 17 | // literal requires assigning the value to a variable first. |
18 | 18 | // |
19 | | -// var strPtr *string |
| 19 | +// var strPtr *string |
20 | 20 | // |
21 | | -// // Without the SDK's conversion functions |
22 | | -// str := "my string" |
23 | | -// strPtr = &str |
| 21 | +// // Without the SDK's conversion functions |
| 22 | +// str := "my string" |
| 23 | +// strPtr = &str |
24 | 24 | // |
25 | | -// // With the SDK's conversion functions |
26 | | -// strPtr = aws.String("my string") |
| 25 | +// // With the SDK's conversion functions |
| 26 | +// strPtr = aws.String("my string") |
27 | 27 | // |
28 | | -// // Convert *string to string value |
29 | | -// str = aws.StringValue(strPtr) |
| 28 | +// // Convert *string to string value |
| 29 | +// str = aws.StringValue(strPtr) |
30 | 30 | // |
31 | 31 | // In addition to scalars the aws package also includes conversion utilities for |
32 | 32 | // map and slice for commonly types used in API parameters. The map and slice |
33 | 33 | // conversion functions use similar naming pattern as the scalar conversion |
34 | 34 | // functions. |
35 | 35 | // |
36 | | -// var strPtrs []*string |
37 | | -// var strs []string = []string{"Go", "Gophers", "Go"} |
| 36 | +// var strPtrs []*string |
| 37 | +// var strs []string = []string{"Go", "Gophers", "Go"} |
38 | 38 | // |
39 | | -// // Convert []string to []*string |
40 | | -// strPtrs = aws.StringSlice(strs) |
| 39 | +// // Convert []string to []*string |
| 40 | +// strPtrs = aws.StringSlice(strs) |
41 | 41 | // |
42 | | -// // Convert []*string to []string |
43 | | -// strs = aws.StringValueSlice(strPtrs) |
| 42 | +// // Convert []*string to []string |
| 43 | +// strs = aws.StringValueSlice(strPtrs) |
44 | 44 | // |
45 | | -// SDK Default HTTP Client |
| 45 | +// # SDK Default HTTP Client |
46 | 46 | // |
47 | 47 | // The SDK will use the http.DefaultClient if a HTTP client is not provided to |
48 | 48 | // the SDK's Session, or service client constructor. This means that if the |
|
53 | 53 | // a custom HTTP Client to share explicitly through your application. You can |
54 | 54 | // configure the SDK to use the custom HTTP Client by setting the HTTPClient |
55 | 55 | // value of the SDK's Config type when creating a Session or service client. |
| 56 | +// |
| 57 | +// Deprecated: aws-sdk-go is deprecated. Use aws-sdk-go-v2. |
| 58 | +// See https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-aws-sdk-for-go-v1-on-july-31-2025/. |
56 | 59 | package aws |
0 commit comments