Current section
11 Versions
Jump to
Current section
11 Versions
Compare versions
171
files changed
+357
additions
-370
deletions
| @@ -10,11 +10,13 @@ import aws/services/s3 | |
| 10 10 | |
| 11 11 | pub fn main() { |
| 12 12 | let assert Ok(client) = s3.new() |
| 13 | - // Call generated operations with typed input records. |
| 14 13 | s3.shutdown(client) |
| 15 14 | } |
| 16 15 | ``` |
| 17 16 | |
| 17 | + Operations take generated request/input records. Start from the generated |
| 18 | + `*_default(...)` helper and override optional fields with Gleam record update. |
| 19 | + |
| 18 20 | Use `s3.new_with(settings, endpoint_params)` for explicit `aws/config.Settings` |
| 19 21 | and S3 endpoint-rule-set parameters such as `UseFIPS`, `UseDualStack`, and |
| 20 22 | `ForcePathStyle`. |
| @@ -1,5 +1,5 @@ | |
| 1 1 | name = "aws_gleam_s3" |
| 2 | - version = "1.4.1" |
| 2 | + version = "1.5.0" |
| 3 3 | target = "erlang" |
| 4 4 | |
| 5 5 | description = "Typed Gleam client for Amazon S3. Generated from the upstream Smithy model with S3 helpers under aws/s3/. Depends on aws_gleam_runtime." |
| @@ -11,7 +11,7 @@ links = [ | |
| 11 11 | ] |
| 12 12 | |
| 13 13 | [dependencies] |
| 14 | - aws_gleam_runtime = ">= 1.4.1" |
| 14 | + aws_gleam_runtime = ">= 1.5.0" |
| 15 15 | gleam_stdlib = ">= 0.40.0 and < 2.0.0" |
| 16 16 | gleam_otp = ">= 1.0.0 and < 2.0.0" |
| 17 17 | gleam_erlang = ">= 1.0.0 and < 2.0.0" |
| @@ -1,6 +1,6 @@ | |
| 1 1 | {<<"name">>, <<"aws_gleam_s3"/utf8>>}. |
| 2 2 | {<<"app">>, <<"aws_gleam_s3"/utf8>>}. |
| 3 | - {<<"version">>, <<"1.4.1"/utf8>>}. |
| 3 | + {<<"version">>, <<"1.5.0"/utf8>>}. |
| 4 4 | {<<"description">>, <<"Typed Gleam client for Amazon S3. Generated from the upstream Smithy model with S3 helpers under aws/s3/. Depends on aws_gleam_runtime."/utf8>>}. |
| 5 5 | {<<"licenses">>, [<<"Apache-2.0"/utf8>>]}. |
| 6 6 | {<<"build_tools">>, [<<"gleam"/utf8>>]}. |
| @@ -9,36 +9,36 @@ | |
| 9 9 | {<<"Repository"/utf8>>, <<"https://github.com/Ulberg/aws-gleam"/utf8>>} |
| 10 10 | ]}. |
| 11 11 | {<<"requirements">>, [ |
| 12 | - {<<"aws_gleam_runtime"/utf8>>, [ |
| 13 | - {<<"app">>, <<"aws_gleam_runtime"/utf8>>}, |
| 14 | - {<<"optional">>, false}, |
| 15 | - {<<"requirement">>, <<">= 1.4.1"/utf8>>} |
| 16 | - ]}, |
| 17 | - {<<"gleam_otp"/utf8>>, [ |
| 18 | - {<<"app">>, <<"gleam_otp"/utf8>>}, |
| 19 | - {<<"optional">>, false}, |
| 20 | - {<<"requirement">>, <<">= 1.0.0 and < 2.0.0"/utf8>>} |
| 21 | - ]}, |
| 22 12 | {<<"gleam_stdlib"/utf8>>, [ |
| 23 13 | {<<"app">>, <<"gleam_stdlib"/utf8>>}, |
| 24 14 | {<<"optional">>, false}, |
| 25 15 | {<<"requirement">>, <<">= 0.40.0 and < 2.0.0"/utf8>>} |
| 26 16 | ]}, |
| 27 | - {<<"gleam_json"/utf8>>, [ |
| 28 | - {<<"app">>, <<"gleam_json"/utf8>>}, |
| 29 | - {<<"optional">>, false}, |
| 30 | - {<<"requirement">>, <<">= 2.0.0 and < 4.0.0"/utf8>>} |
| 31 | - ]}, |
| 32 17 | {<<"gleam_http"/utf8>>, [ |
| 33 18 | {<<"app">>, <<"gleam_http"/utf8>>}, |
| 34 19 | {<<"optional">>, false}, |
| 35 20 | {<<"requirement">>, <<">= 4.0.0 and < 5.0.0"/utf8>>} |
| 36 21 | ]}, |
| 22 | + {<<"aws_gleam_runtime"/utf8>>, [ |
| 23 | + {<<"app">>, <<"aws_gleam_runtime"/utf8>>}, |
| 24 | + {<<"optional">>, false}, |
| 25 | + {<<"requirement">>, <<">= 1.5.0"/utf8>>} |
| 26 | + ]}, |
| 37 27 | {<<"gleam_httpc"/utf8>>, [ |
| 38 28 | {<<"app">>, <<"gleam_httpc"/utf8>>}, |
| 39 29 | {<<"optional">>, false}, |
| 40 30 | {<<"requirement">>, <<">= 5.0.0 and < 6.0.0"/utf8>>} |
| 41 31 | ]}, |
| 32 | + {<<"gleam_otp"/utf8>>, [ |
| 33 | + {<<"app">>, <<"gleam_otp"/utf8>>}, |
| 34 | + {<<"optional">>, false}, |
| 35 | + {<<"requirement">>, <<">= 1.0.0 and < 2.0.0"/utf8>>} |
| 36 | + ]}, |
| 37 | + {<<"gleam_json"/utf8>>, [ |
| 38 | + {<<"app">>, <<"gleam_json"/utf8>>}, |
| 39 | + {<<"optional">>, false}, |
| 40 | + {<<"requirement">>, <<">= 2.0.0 and < 4.0.0"/utf8>>} |
| 41 | + ]}, |
| 42 42 | {<<"gleam_erlang"/utf8>>, [ |
| 43 43 | {<<"app">>, <<"gleam_erlang"/utf8>>}, |
| 44 44 | {<<"optional">>, false}, |
| @@ -1,8 +1,8 @@ | |
| 1 1 | -record(abort_multipart_upload_request, { |
| 2 | - bucket :: gleam@option:option(binary()), |
| 2 | + bucket :: binary(), |
| 3 3 | expected_bucket_owner :: gleam@option:option(binary()), |
| 4 4 | if_match_initiated_time :: gleam@option:option(aws@internal@codec@json_timestamp:timestamp()), |
| 5 | - key :: gleam@option:option(binary()), |
| 5 | + key :: binary(), |
| 6 6 | request_payer :: gleam@option:option(aws@services@s3:request_payer()), |
| 7 | - upload_id :: gleam@option:option(binary()) |
| 7 | + upload_id :: binary() |
| 8 8 | }). |
| @@ -1,3 +1 @@ | |
| 1 | - -record(access_control_translation, { |
| 2 | - owner :: gleam@option:option(aws@services@s3:owner_override()) |
| 3 | - }). |
| 1 | + -record(access_control_translation, {owner :: aws@services@s3:owner_override()}). |
Loading more files…