aws-sdk-amplify 1.77.0 → 1.80.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-amplify/client.rb +93 -33
- data/lib/aws-sdk-amplify/client_api.rb +7 -0
- data/lib/aws-sdk-amplify/endpoint_provider.rb +13 -17
- data/lib/aws-sdk-amplify/types.rb +90 -7
- data/lib/aws-sdk-amplify.rb +1 -1
- data/sig/client.rbs +6 -2
- data/sig/types.rbs +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae98902d38061e77f7bc2e0f2b463d20ce8e7a10f7c1f240b0394cd107251b1e
|
4
|
+
data.tar.gz: caf9518b0025fd679e416acfb58a62161e1b14a7ad8e4ac2df4fa40f22828c08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59eb322727c2e33e58d44af0da6895349468e420b02acc54f5bbde5887ce288e44e92833bb8e3d92984eae4d53313246831e563028fb7300bd712c71cb9ba1cb
|
7
|
+
data.tar.gz: a25b8a32121148701b09741d361e603e99f6725b98af43a7038c6a557630a3bd4dc5fe578fb5e7cef9260ec74dba816e9ffae22cc253650189f2ea9b24d75850
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.80.0 (2025-02-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.79.0 (2025-02-17)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Add ComputeRoleArn to CreateApp, UpdateApp, CreateBranch, and UpdateBranch, allowing caller to specify a role to be assumed by Amplify Hosting for server-side rendered applications.
|
13
|
+
|
14
|
+
1.78.0 (2025-02-06)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
4
19
|
1.77.0 (2025-01-15)
|
5
20
|
------------------
|
6
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.80.0
|
@@ -7,34 +7,34 @@
|
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
10
|
-
require 'seahorse/client/plugins/content_length
|
11
|
-
require 'aws-sdk-core/plugins/credentials_configuration
|
12
|
-
require 'aws-sdk-core/plugins/logging
|
13
|
-
require 'aws-sdk-core/plugins/param_converter
|
14
|
-
require 'aws-sdk-core/plugins/param_validator
|
15
|
-
require 'aws-sdk-core/plugins/user_agent
|
16
|
-
require 'aws-sdk-core/plugins/helpful_socket_errors
|
17
|
-
require 'aws-sdk-core/plugins/retry_errors
|
18
|
-
require 'aws-sdk-core/plugins/global_configuration
|
19
|
-
require 'aws-sdk-core/plugins/regional_endpoint
|
20
|
-
require 'aws-sdk-core/plugins/endpoint_discovery
|
21
|
-
require 'aws-sdk-core/plugins/endpoint_pattern
|
22
|
-
require 'aws-sdk-core/plugins/response_paging
|
23
|
-
require 'aws-sdk-core/plugins/stub_responses
|
24
|
-
require 'aws-sdk-core/plugins/idempotency_token
|
25
|
-
require 'aws-sdk-core/plugins/invocation_id
|
26
|
-
require 'aws-sdk-core/plugins/jsonvalue_converter
|
27
|
-
require 'aws-sdk-core/plugins/client_metrics_plugin
|
28
|
-
require 'aws-sdk-core/plugins/client_metrics_send_plugin
|
29
|
-
require 'aws-sdk-core/plugins/transfer_encoding
|
30
|
-
require 'aws-sdk-core/plugins/http_checksum
|
31
|
-
require 'aws-sdk-core/plugins/checksum_algorithm
|
32
|
-
require 'aws-sdk-core/plugins/request_compression
|
33
|
-
require 'aws-sdk-core/plugins/defaults_mode
|
34
|
-
require 'aws-sdk-core/plugins/recursion_detection
|
35
|
-
require 'aws-sdk-core/plugins/telemetry
|
36
|
-
require 'aws-sdk-core/plugins/sign
|
37
|
-
require 'aws-sdk-core/plugins/protocols/rest_json
|
10
|
+
require 'seahorse/client/plugins/content_length'
|
11
|
+
require 'aws-sdk-core/plugins/credentials_configuration'
|
12
|
+
require 'aws-sdk-core/plugins/logging'
|
13
|
+
require 'aws-sdk-core/plugins/param_converter'
|
14
|
+
require 'aws-sdk-core/plugins/param_validator'
|
15
|
+
require 'aws-sdk-core/plugins/user_agent'
|
16
|
+
require 'aws-sdk-core/plugins/helpful_socket_errors'
|
17
|
+
require 'aws-sdk-core/plugins/retry_errors'
|
18
|
+
require 'aws-sdk-core/plugins/global_configuration'
|
19
|
+
require 'aws-sdk-core/plugins/regional_endpoint'
|
20
|
+
require 'aws-sdk-core/plugins/endpoint_discovery'
|
21
|
+
require 'aws-sdk-core/plugins/endpoint_pattern'
|
22
|
+
require 'aws-sdk-core/plugins/response_paging'
|
23
|
+
require 'aws-sdk-core/plugins/stub_responses'
|
24
|
+
require 'aws-sdk-core/plugins/idempotency_token'
|
25
|
+
require 'aws-sdk-core/plugins/invocation_id'
|
26
|
+
require 'aws-sdk-core/plugins/jsonvalue_converter'
|
27
|
+
require 'aws-sdk-core/plugins/client_metrics_plugin'
|
28
|
+
require 'aws-sdk-core/plugins/client_metrics_send_plugin'
|
29
|
+
require 'aws-sdk-core/plugins/transfer_encoding'
|
30
|
+
require 'aws-sdk-core/plugins/http_checksum'
|
31
|
+
require 'aws-sdk-core/plugins/checksum_algorithm'
|
32
|
+
require 'aws-sdk-core/plugins/request_compression'
|
33
|
+
require 'aws-sdk-core/plugins/defaults_mode'
|
34
|
+
require 'aws-sdk-core/plugins/recursion_detection'
|
35
|
+
require 'aws-sdk-core/plugins/telemetry'
|
36
|
+
require 'aws-sdk-core/plugins/sign'
|
37
|
+
require 'aws-sdk-core/plugins/protocols/rest_json'
|
38
38
|
|
39
39
|
module Aws::Amplify
|
40
40
|
# An API client for Amplify. To construct a client, you need to configure a `:region` and `:credentials`.
|
@@ -499,9 +499,20 @@ module Aws::Amplify
|
|
499
499
|
#
|
500
500
|
# [1]: https://docs.aws.amazon.com/amplify/latest/userguide/deploy-nextjs-app.html#build-setting-detection-ssg-14
|
501
501
|
#
|
502
|
+
# @option params [String] :compute_role_arn
|
503
|
+
# The Amazon Resource Name (ARN) of the IAM role to assign to an SSR
|
504
|
+
# app. The SSR Compute role allows the Amplify Hosting compute service
|
505
|
+
# to securely access specific Amazon Web Services resources based on the
|
506
|
+
# role's permissions. For more information about the SSR Compute role,
|
507
|
+
# see [Adding an SSR Compute role][1] in the *Amplify User Guide*.
|
508
|
+
#
|
509
|
+
#
|
510
|
+
#
|
511
|
+
# [1]: https://docs.aws.amazon.com/latest/userguide/amplify-SSR-compute-role.html
|
512
|
+
#
|
502
513
|
# @option params [String] :iam_service_role_arn
|
503
|
-
# The
|
504
|
-
#
|
514
|
+
# The Amazon Resource Name (ARN) of the IAM service role for the Amplify
|
515
|
+
# app.
|
505
516
|
#
|
506
517
|
# @option params [String] :oauth_token
|
507
518
|
# The OAuth token for a third-party source control system for an Amplify
|
@@ -609,6 +620,7 @@ module Aws::Amplify
|
|
609
620
|
# description: "Description",
|
610
621
|
# repository: "Repository",
|
611
622
|
# platform: "WEB", # accepts WEB, WEB_DYNAMIC, WEB_COMPUTE
|
623
|
+
# compute_role_arn: "ComputeRoleArn",
|
612
624
|
# iam_service_role_arn: "ServiceRoleArn",
|
613
625
|
# oauth_token: "OauthToken",
|
614
626
|
# access_token: "AccessToken",
|
@@ -665,6 +677,7 @@ module Aws::Amplify
|
|
665
677
|
# resp.app.platform #=> String, one of "WEB", "WEB_DYNAMIC", "WEB_COMPUTE"
|
666
678
|
# resp.app.create_time #=> Time
|
667
679
|
# resp.app.update_time #=> Time
|
680
|
+
# resp.app.compute_role_arn #=> String
|
668
681
|
# resp.app.iam_service_role_arn #=> String
|
669
682
|
# resp.app.environment_variables #=> Hash
|
670
683
|
# resp.app.environment_variables["EnvKey"] #=> String
|
@@ -842,6 +855,18 @@ module Aws::Amplify
|
|
842
855
|
# application with Amplify Gen 2, you provision the app's backend
|
843
856
|
# infrastructure using Typescript code.
|
844
857
|
#
|
858
|
+
# @option params [String] :compute_role_arn
|
859
|
+
# The Amazon Resource Name (ARN) of the IAM role to assign to a branch
|
860
|
+
# of an SSR app. The SSR Compute role allows the Amplify Hosting compute
|
861
|
+
# service to securely access specific Amazon Web Services resources
|
862
|
+
# based on the role's permissions. For more information about the SSR
|
863
|
+
# Compute role, see [Adding an SSR Compute role][1] in the *Amplify User
|
864
|
+
# Guide*.
|
865
|
+
#
|
866
|
+
#
|
867
|
+
#
|
868
|
+
# [1]: https://docs.aws.amazon.com/latest/userguide/amplify-SSR-compute-role.html
|
869
|
+
#
|
845
870
|
# @return [Types::CreateBranchResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
846
871
|
#
|
847
872
|
# * {Types::CreateBranchResult#branch #branch} => Types::Branch
|
@@ -874,6 +899,7 @@ module Aws::Amplify
|
|
874
899
|
# backend: {
|
875
900
|
# stack_arn: "StackArn",
|
876
901
|
# },
|
902
|
+
# compute_role_arn: "ComputeRoleArn",
|
877
903
|
# })
|
878
904
|
#
|
879
905
|
# @example Response structure
|
@@ -910,6 +936,7 @@ module Aws::Amplify
|
|
910
936
|
# resp.branch.source_branch #=> String
|
911
937
|
# resp.branch.backend_environment_arn #=> String
|
912
938
|
# resp.branch.backend.stack_arn #=> String
|
939
|
+
# resp.branch.compute_role_arn #=> String
|
913
940
|
#
|
914
941
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateBranch AWS API Documentation
|
915
942
|
#
|
@@ -1122,6 +1149,7 @@ module Aws::Amplify
|
|
1122
1149
|
# resp.app.platform #=> String, one of "WEB", "WEB_DYNAMIC", "WEB_COMPUTE"
|
1123
1150
|
# resp.app.create_time #=> Time
|
1124
1151
|
# resp.app.update_time #=> Time
|
1152
|
+
# resp.app.compute_role_arn #=> String
|
1125
1153
|
# resp.app.iam_service_role_arn #=> String
|
1126
1154
|
# resp.app.environment_variables #=> Hash
|
1127
1155
|
# resp.app.environment_variables["EnvKey"] #=> String
|
@@ -1267,6 +1295,7 @@ module Aws::Amplify
|
|
1267
1295
|
# resp.branch.source_branch #=> String
|
1268
1296
|
# resp.branch.backend_environment_arn #=> String
|
1269
1297
|
# resp.branch.backend.stack_arn #=> String
|
1298
|
+
# resp.branch.compute_role_arn #=> String
|
1270
1299
|
#
|
1271
1300
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteBranch AWS API Documentation
|
1272
1301
|
#
|
@@ -1476,6 +1505,7 @@ module Aws::Amplify
|
|
1476
1505
|
# resp.app.platform #=> String, one of "WEB", "WEB_DYNAMIC", "WEB_COMPUTE"
|
1477
1506
|
# resp.app.create_time #=> Time
|
1478
1507
|
# resp.app.update_time #=> Time
|
1508
|
+
# resp.app.compute_role_arn #=> String
|
1479
1509
|
# resp.app.iam_service_role_arn #=> String
|
1480
1510
|
# resp.app.environment_variables #=> Hash
|
1481
1511
|
# resp.app.environment_variables["EnvKey"] #=> String
|
@@ -1651,6 +1681,7 @@ module Aws::Amplify
|
|
1651
1681
|
# resp.branch.source_branch #=> String
|
1652
1682
|
# resp.branch.backend_environment_arn #=> String
|
1653
1683
|
# resp.branch.backend.stack_arn #=> String
|
1684
|
+
# resp.branch.compute_role_arn #=> String
|
1654
1685
|
#
|
1655
1686
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetBranch AWS API Documentation
|
1656
1687
|
#
|
@@ -1840,6 +1871,7 @@ module Aws::Amplify
|
|
1840
1871
|
# resp.apps[0].platform #=> String, one of "WEB", "WEB_DYNAMIC", "WEB_COMPUTE"
|
1841
1872
|
# resp.apps[0].create_time #=> Time
|
1842
1873
|
# resp.apps[0].update_time #=> Time
|
1874
|
+
# resp.apps[0].compute_role_arn #=> String
|
1843
1875
|
# resp.apps[0].iam_service_role_arn #=> String
|
1844
1876
|
# resp.apps[0].environment_variables #=> Hash
|
1845
1877
|
# resp.apps[0].environment_variables["EnvKey"] #=> String
|
@@ -2059,6 +2091,7 @@ module Aws::Amplify
|
|
2059
2091
|
# resp.branches[0].source_branch #=> String
|
2060
2092
|
# resp.branches[0].backend_environment_arn #=> String
|
2061
2093
|
# resp.branches[0].backend.stack_arn #=> String
|
2094
|
+
# resp.branches[0].compute_role_arn #=> String
|
2062
2095
|
# resp.next_token #=> String
|
2063
2096
|
#
|
2064
2097
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListBranches AWS API Documentation
|
@@ -2523,9 +2556,20 @@ module Aws::Amplify
|
|
2523
2556
|
# If you are deploying an SSG only app with Next.js version 14 or later,
|
2524
2557
|
# you must set the platform type to `WEB_COMPUTE`.
|
2525
2558
|
#
|
2559
|
+
# @option params [String] :compute_role_arn
|
2560
|
+
# The Amazon Resource Name (ARN) of the IAM role to assign to an SSR
|
2561
|
+
# app. The SSR Compute role allows the Amplify Hosting compute service
|
2562
|
+
# to securely access specific Amazon Web Services resources based on the
|
2563
|
+
# role's permissions. For more information about the SSR Compute role,
|
2564
|
+
# see [Adding an SSR Compute role][1] in the *Amplify User Guide*.
|
2565
|
+
#
|
2566
|
+
#
|
2567
|
+
#
|
2568
|
+
# [1]: https://docs.aws.amazon.com/latest/userguide/amplify-SSR-compute-role.html
|
2569
|
+
#
|
2526
2570
|
# @option params [String] :iam_service_role_arn
|
2527
|
-
# The
|
2528
|
-
#
|
2571
|
+
# The Amazon Resource Name (ARN) of the IAM service role for the Amplify
|
2572
|
+
# app.
|
2529
2573
|
#
|
2530
2574
|
# @option params [Hash<String,String>] :environment_variables
|
2531
2575
|
# The environment variables for an Amplify app.
|
@@ -2627,6 +2671,7 @@ module Aws::Amplify
|
|
2627
2671
|
# name: "Name",
|
2628
2672
|
# description: "Description",
|
2629
2673
|
# platform: "WEB", # accepts WEB, WEB_DYNAMIC, WEB_COMPUTE
|
2674
|
+
# compute_role_arn: "ComputeRoleArn",
|
2630
2675
|
# iam_service_role_arn: "ServiceRoleArn",
|
2631
2676
|
# environment_variables: {
|
2632
2677
|
# "EnvKey" => "EnvValue",
|
@@ -2681,6 +2726,7 @@ module Aws::Amplify
|
|
2681
2726
|
# resp.app.platform #=> String, one of "WEB", "WEB_DYNAMIC", "WEB_COMPUTE"
|
2682
2727
|
# resp.app.create_time #=> Time
|
2683
2728
|
# resp.app.update_time #=> Time
|
2729
|
+
# resp.app.compute_role_arn #=> String
|
2684
2730
|
# resp.app.iam_service_role_arn #=> String
|
2685
2731
|
# resp.app.environment_variables #=> Hash
|
2686
2732
|
# resp.app.environment_variables["EnvKey"] #=> String
|
@@ -2804,6 +2850,18 @@ module Aws::Amplify
|
|
2804
2850
|
# application with Amplify Gen 2, you provision the app's backend
|
2805
2851
|
# infrastructure using Typescript code.
|
2806
2852
|
#
|
2853
|
+
# @option params [String] :compute_role_arn
|
2854
|
+
# The Amazon Resource Name (ARN) of the IAM role to assign to a branch
|
2855
|
+
# of an SSR app. The SSR Compute role allows the Amplify Hosting compute
|
2856
|
+
# service to securely access specific Amazon Web Services resources
|
2857
|
+
# based on the role's permissions. For more information about the SSR
|
2858
|
+
# Compute role, see [Adding an SSR Compute role][1] in the *Amplify User
|
2859
|
+
# Guide*.
|
2860
|
+
#
|
2861
|
+
#
|
2862
|
+
#
|
2863
|
+
# [1]: https://docs.aws.amazon.com/latest/userguide/amplify-SSR-compute-role.html
|
2864
|
+
#
|
2807
2865
|
# @return [Types::UpdateBranchResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2808
2866
|
#
|
2809
2867
|
# * {Types::UpdateBranchResult#branch #branch} => Types::Branch
|
@@ -2833,6 +2891,7 @@ module Aws::Amplify
|
|
2833
2891
|
# backend: {
|
2834
2892
|
# stack_arn: "StackArn",
|
2835
2893
|
# },
|
2894
|
+
# compute_role_arn: "ComputeRoleArn",
|
2836
2895
|
# })
|
2837
2896
|
#
|
2838
2897
|
# @example Response structure
|
@@ -2869,6 +2928,7 @@ module Aws::Amplify
|
|
2869
2928
|
# resp.branch.source_branch #=> String
|
2870
2929
|
# resp.branch.backend_environment_arn #=> String
|
2871
2930
|
# resp.branch.backend.stack_arn #=> String
|
2931
|
+
# resp.branch.compute_role_arn #=> String
|
2872
2932
|
#
|
2873
2933
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateBranch AWS API Documentation
|
2874
2934
|
#
|
@@ -3017,7 +3077,7 @@ module Aws::Amplify
|
|
3017
3077
|
tracer: tracer
|
3018
3078
|
)
|
3019
3079
|
context[:gem_name] = 'aws-sdk-amplify'
|
3020
|
-
context[:gem_version] = '1.
|
3080
|
+
context[:gem_version] = '1.80.0'
|
3021
3081
|
Seahorse::Client::Request.new(handlers, context)
|
3022
3082
|
end
|
3023
3083
|
|
@@ -56,6 +56,7 @@ module Aws::Amplify
|
|
56
56
|
CommitId = Shapes::StringShape.new(name: 'CommitId')
|
57
57
|
CommitMessage = Shapes::StringShape.new(name: 'CommitMessage')
|
58
58
|
CommitTime = Shapes::TimestampShape.new(name: 'CommitTime')
|
59
|
+
ComputeRoleArn = Shapes::StringShape.new(name: 'ComputeRoleArn')
|
59
60
|
Condition = Shapes::StringShape.new(name: 'Condition')
|
60
61
|
Context = Shapes::StringShape.new(name: 'Context')
|
61
62
|
CreateAppRequest = Shapes::StructureShape.new(name: 'CreateAppRequest')
|
@@ -248,6 +249,7 @@ module Aws::Amplify
|
|
248
249
|
App.add_member(:platform, Shapes::ShapeRef.new(shape: Platform, required: true, location_name: "platform"))
|
249
250
|
App.add_member(:create_time, Shapes::ShapeRef.new(shape: CreateTime, required: true, location_name: "createTime"))
|
250
251
|
App.add_member(:update_time, Shapes::ShapeRef.new(shape: UpdateTime, required: true, location_name: "updateTime"))
|
252
|
+
App.add_member(:compute_role_arn, Shapes::ShapeRef.new(shape: ComputeRoleArn, location_name: "computeRoleArn"))
|
251
253
|
App.add_member(:iam_service_role_arn, Shapes::ShapeRef.new(shape: ServiceRoleArn, location_name: "iamServiceRoleArn"))
|
252
254
|
App.add_member(:environment_variables, Shapes::ShapeRef.new(shape: EnvironmentVariables, required: true, location_name: "environmentVariables"))
|
253
255
|
App.add_member(:default_domain, Shapes::ShapeRef.new(shape: DefaultDomain, required: true, location_name: "defaultDomain"))
|
@@ -338,6 +340,7 @@ module Aws::Amplify
|
|
338
340
|
Branch.add_member(:source_branch, Shapes::ShapeRef.new(shape: BranchName, location_name: "sourceBranch"))
|
339
341
|
Branch.add_member(:backend_environment_arn, Shapes::ShapeRef.new(shape: BackendEnvironmentArn, location_name: "backendEnvironmentArn"))
|
340
342
|
Branch.add_member(:backend, Shapes::ShapeRef.new(shape: Backend, location_name: "backend"))
|
343
|
+
Branch.add_member(:compute_role_arn, Shapes::ShapeRef.new(shape: ComputeRoleArn, location_name: "computeRoleArn"))
|
341
344
|
Branch.struct_class = Types::Branch
|
342
345
|
|
343
346
|
Branches.member = Shapes::ShapeRef.new(shape: Branch)
|
@@ -358,6 +361,7 @@ module Aws::Amplify
|
|
358
361
|
CreateAppRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
|
359
362
|
CreateAppRequest.add_member(:repository, Shapes::ShapeRef.new(shape: Repository, location_name: "repository"))
|
360
363
|
CreateAppRequest.add_member(:platform, Shapes::ShapeRef.new(shape: Platform, location_name: "platform"))
|
364
|
+
CreateAppRequest.add_member(:compute_role_arn, Shapes::ShapeRef.new(shape: ComputeRoleArn, location_name: "computeRoleArn"))
|
361
365
|
CreateAppRequest.add_member(:iam_service_role_arn, Shapes::ShapeRef.new(shape: ServiceRoleArn, location_name: "iamServiceRoleArn"))
|
362
366
|
CreateAppRequest.add_member(:oauth_token, Shapes::ShapeRef.new(shape: OauthToken, location_name: "oauthToken"))
|
363
367
|
CreateAppRequest.add_member(:access_token, Shapes::ShapeRef.new(shape: AccessToken, location_name: "accessToken"))
|
@@ -407,6 +411,7 @@ module Aws::Amplify
|
|
407
411
|
CreateBranchRequest.add_member(:pull_request_environment_name, Shapes::ShapeRef.new(shape: PullRequestEnvironmentName, location_name: "pullRequestEnvironmentName"))
|
408
412
|
CreateBranchRequest.add_member(:backend_environment_arn, Shapes::ShapeRef.new(shape: BackendEnvironmentArn, location_name: "backendEnvironmentArn"))
|
409
413
|
CreateBranchRequest.add_member(:backend, Shapes::ShapeRef.new(shape: Backend, location_name: "backend"))
|
414
|
+
CreateBranchRequest.add_member(:compute_role_arn, Shapes::ShapeRef.new(shape: ComputeRoleArn, location_name: "computeRoleArn"))
|
410
415
|
CreateBranchRequest.struct_class = Types::CreateBranchRequest
|
411
416
|
|
412
417
|
CreateBranchResult.add_member(:branch, Shapes::ShapeRef.new(shape: Branch, required: true, location_name: "branch"))
|
@@ -773,6 +778,7 @@ module Aws::Amplify
|
|
773
778
|
UpdateAppRequest.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
|
774
779
|
UpdateAppRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
|
775
780
|
UpdateAppRequest.add_member(:platform, Shapes::ShapeRef.new(shape: Platform, location_name: "platform"))
|
781
|
+
UpdateAppRequest.add_member(:compute_role_arn, Shapes::ShapeRef.new(shape: ComputeRoleArn, location_name: "computeRoleArn"))
|
776
782
|
UpdateAppRequest.add_member(:iam_service_role_arn, Shapes::ShapeRef.new(shape: ServiceRoleArn, location_name: "iamServiceRoleArn"))
|
777
783
|
UpdateAppRequest.add_member(:environment_variables, Shapes::ShapeRef.new(shape: EnvironmentVariables, location_name: "environmentVariables"))
|
778
784
|
UpdateAppRequest.add_member(:enable_branch_auto_build, Shapes::ShapeRef.new(shape: EnableAutoBuild, location_name: "enableBranchAutoBuild"))
|
@@ -812,6 +818,7 @@ module Aws::Amplify
|
|
812
818
|
UpdateBranchRequest.add_member(:pull_request_environment_name, Shapes::ShapeRef.new(shape: PullRequestEnvironmentName, location_name: "pullRequestEnvironmentName"))
|
813
819
|
UpdateBranchRequest.add_member(:backend_environment_arn, Shapes::ShapeRef.new(shape: BackendEnvironmentArn, location_name: "backendEnvironmentArn"))
|
814
820
|
UpdateBranchRequest.add_member(:backend, Shapes::ShapeRef.new(shape: Backend, location_name: "backend"))
|
821
|
+
UpdateBranchRequest.add_member(:compute_role_arn, Shapes::ShapeRef.new(shape: ComputeRoleArn, location_name: "computeRoleArn"))
|
815
822
|
UpdateBranchRequest.struct_class = Types::UpdateBranchRequest
|
816
823
|
|
817
824
|
UpdateBranchResult.add_member(:branch, Shapes::ShapeRef.new(shape: Branch, required: true, location_name: "branch"))
|
@@ -10,40 +10,36 @@
|
|
10
10
|
module Aws::Amplify
|
11
11
|
class EndpointProvider
|
12
12
|
def resolve_endpoint(parameters)
|
13
|
-
|
14
|
-
|
15
|
-
use_fips = parameters.use_fips
|
16
|
-
endpoint = parameters.endpoint
|
17
|
-
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
13
|
+
if Aws::Endpoints::Matchers.set?(parameters.endpoint)
|
14
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
19
15
|
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
20
16
|
end
|
21
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
17
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
22
18
|
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
19
|
end
|
24
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
20
|
+
return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
|
25
21
|
end
|
26
|
-
if Aws::Endpoints::Matchers.set?(region)
|
27
|
-
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
if Aws::Endpoints::Matchers.set?(parameters.region)
|
23
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
|
24
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
29
25
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
-
return Aws::Endpoints::Endpoint.new(url: "https://amplify-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
26
|
+
return Aws::Endpoints::Endpoint.new(url: "https://amplify-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
27
|
end
|
32
28
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
29
|
end
|
34
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
30
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
35
31
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
|
-
return Aws::Endpoints::Endpoint.new(url: "https://amplify-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
32
|
+
return Aws::Endpoints::Endpoint.new(url: "https://amplify-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
33
|
end
|
38
34
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
35
|
end
|
40
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
36
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
41
37
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
-
return Aws::Endpoints::Endpoint.new(url: "https://amplify.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
38
|
+
return Aws::Endpoints::Endpoint.new(url: "https://amplify.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
39
|
end
|
44
40
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
45
41
|
end
|
46
|
-
return Aws::Endpoints::Endpoint.new(url: "https://amplify.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://amplify.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
47
43
|
end
|
48
44
|
end
|
49
45
|
raise ArgumentError, "Invalid Configuration: Missing Region"
|
@@ -56,9 +56,21 @@ module Aws::Amplify
|
|
56
56
|
# A timestamp of when Amplify updated the application.
|
57
57
|
# @return [Time]
|
58
58
|
#
|
59
|
+
# @!attribute [rw] compute_role_arn
|
60
|
+
# The Amazon Resource Name (ARN) of the IAM role for an SSR app. The
|
61
|
+
# Compute role allows the Amplify Hosting compute service to securely
|
62
|
+
# access specific Amazon Web Services resources based on the role's
|
63
|
+
# permissions. For more information about the SSR Compute role, see
|
64
|
+
# [Adding an SSR Compute role][1] in the *Amplify User Guide*.
|
65
|
+
#
|
66
|
+
#
|
67
|
+
#
|
68
|
+
# [1]: https://docs.aws.amazon.com/latest/userguide/amplify-SSR-compute-role.html
|
69
|
+
# @return [String]
|
70
|
+
#
|
59
71
|
# @!attribute [rw] iam_service_role_arn
|
60
|
-
# The
|
61
|
-
#
|
72
|
+
# The Amazon Resource Name (ARN) of the IAM service role for the
|
73
|
+
# Amplify app.
|
62
74
|
# @return [String]
|
63
75
|
#
|
64
76
|
# @!attribute [rw] environment_variables
|
@@ -169,6 +181,7 @@ module Aws::Amplify
|
|
169
181
|
:platform,
|
170
182
|
:create_time,
|
171
183
|
:update_time,
|
184
|
+
:compute_role_arn,
|
172
185
|
:iam_service_role_arn,
|
173
186
|
:environment_variables,
|
174
187
|
:default_domain,
|
@@ -485,6 +498,19 @@ module Aws::Amplify
|
|
485
498
|
# backend infrastructure using Typescript code.
|
486
499
|
# @return [Types::Backend]
|
487
500
|
#
|
501
|
+
# @!attribute [rw] compute_role_arn
|
502
|
+
# The Amazon Resource Name (ARN) of the IAM role for a branch of an
|
503
|
+
# SSR app. The Compute role allows the Amplify Hosting compute service
|
504
|
+
# to securely access specific Amazon Web Services resources based on
|
505
|
+
# the role's permissions. For more information about the SSR Compute
|
506
|
+
# role, see [Adding an SSR Compute role][1] in the *Amplify User
|
507
|
+
# Guide*.
|
508
|
+
#
|
509
|
+
#
|
510
|
+
#
|
511
|
+
# [1]: https://docs.aws.amazon.com/latest/userguide/amplify-SSR-compute-role.html
|
512
|
+
# @return [String]
|
513
|
+
#
|
488
514
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/Branch AWS API Documentation
|
489
515
|
#
|
490
516
|
class Branch < Struct.new(
|
@@ -515,7 +541,8 @@ module Aws::Amplify
|
|
515
541
|
:destination_branch,
|
516
542
|
:source_branch,
|
517
543
|
:backend_environment_arn,
|
518
|
-
:backend
|
544
|
+
:backend,
|
545
|
+
:compute_role_arn)
|
519
546
|
SENSITIVE = [:basic_auth_credentials, :build_spec]
|
520
547
|
include Aws::Structure
|
521
548
|
end
|
@@ -668,8 +695,21 @@ module Aws::Amplify
|
|
668
695
|
# [1]: https://docs.aws.amazon.com/amplify/latest/userguide/deploy-nextjs-app.html#build-setting-detection-ssg-14
|
669
696
|
# @return [String]
|
670
697
|
#
|
698
|
+
# @!attribute [rw] compute_role_arn
|
699
|
+
# The Amazon Resource Name (ARN) of the IAM role to assign to an SSR
|
700
|
+
# app. The SSR Compute role allows the Amplify Hosting compute service
|
701
|
+
# to securely access specific Amazon Web Services resources based on
|
702
|
+
# the role's permissions. For more information about the SSR Compute
|
703
|
+
# role, see [Adding an SSR Compute role][1] in the *Amplify User
|
704
|
+
# Guide*.
|
705
|
+
#
|
706
|
+
#
|
707
|
+
#
|
708
|
+
# [1]: https://docs.aws.amazon.com/latest/userguide/amplify-SSR-compute-role.html
|
709
|
+
# @return [String]
|
710
|
+
#
|
671
711
|
# @!attribute [rw] iam_service_role_arn
|
672
|
-
# The
|
712
|
+
# The Amazon Resource Name (ARN) of the IAM service role for the
|
673
713
|
# Amplify app.
|
674
714
|
# @return [String]
|
675
715
|
#
|
@@ -792,6 +832,7 @@ module Aws::Amplify
|
|
792
832
|
:description,
|
793
833
|
:repository,
|
794
834
|
:platform,
|
835
|
+
:compute_role_arn,
|
795
836
|
:iam_service_role_arn,
|
796
837
|
:oauth_token,
|
797
838
|
:access_token,
|
@@ -964,6 +1005,19 @@ module Aws::Amplify
|
|
964
1005
|
# infrastructure using Typescript code.
|
965
1006
|
# @return [Types::Backend]
|
966
1007
|
#
|
1008
|
+
# @!attribute [rw] compute_role_arn
|
1009
|
+
# The Amazon Resource Name (ARN) of the IAM role to assign to a branch
|
1010
|
+
# of an SSR app. The SSR Compute role allows the Amplify Hosting
|
1011
|
+
# compute service to securely access specific Amazon Web Services
|
1012
|
+
# resources based on the role's permissions. For more information
|
1013
|
+
# about the SSR Compute role, see [Adding an SSR Compute role][1] in
|
1014
|
+
# the *Amplify User Guide*.
|
1015
|
+
#
|
1016
|
+
#
|
1017
|
+
#
|
1018
|
+
# [1]: https://docs.aws.amazon.com/latest/userguide/amplify-SSR-compute-role.html
|
1019
|
+
# @return [String]
|
1020
|
+
#
|
967
1021
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateBranchRequest AWS API Documentation
|
968
1022
|
#
|
969
1023
|
class CreateBranchRequest < Struct.new(
|
@@ -985,7 +1039,8 @@ module Aws::Amplify
|
|
985
1039
|
:enable_pull_request_preview,
|
986
1040
|
:pull_request_environment_name,
|
987
1041
|
:backend_environment_arn,
|
988
|
-
:backend
|
1042
|
+
:backend,
|
1043
|
+
:compute_role_arn)
|
989
1044
|
SENSITIVE = [:basic_auth_credentials, :build_spec]
|
990
1045
|
include Aws::Structure
|
991
1046
|
end
|
@@ -2716,8 +2771,21 @@ module Aws::Amplify
|
|
2716
2771
|
# later, you must set the platform type to `WEB_COMPUTE`.
|
2717
2772
|
# @return [String]
|
2718
2773
|
#
|
2774
|
+
# @!attribute [rw] compute_role_arn
|
2775
|
+
# The Amazon Resource Name (ARN) of the IAM role to assign to an SSR
|
2776
|
+
# app. The SSR Compute role allows the Amplify Hosting compute service
|
2777
|
+
# to securely access specific Amazon Web Services resources based on
|
2778
|
+
# the role's permissions. For more information about the SSR Compute
|
2779
|
+
# role, see [Adding an SSR Compute role][1] in the *Amplify User
|
2780
|
+
# Guide*.
|
2781
|
+
#
|
2782
|
+
#
|
2783
|
+
#
|
2784
|
+
# [1]: https://docs.aws.amazon.com/latest/userguide/amplify-SSR-compute-role.html
|
2785
|
+
# @return [String]
|
2786
|
+
#
|
2719
2787
|
# @!attribute [rw] iam_service_role_arn
|
2720
|
-
# The
|
2788
|
+
# The Amazon Resource Name (ARN) of the IAM service role for the
|
2721
2789
|
# Amplify app.
|
2722
2790
|
# @return [String]
|
2723
2791
|
#
|
@@ -2834,6 +2902,7 @@ module Aws::Amplify
|
|
2834
2902
|
:name,
|
2835
2903
|
:description,
|
2836
2904
|
:platform,
|
2905
|
+
:compute_role_arn,
|
2837
2906
|
:iam_service_role_arn,
|
2838
2907
|
:environment_variables,
|
2839
2908
|
:enable_branch_auto_build,
|
@@ -2960,6 +3029,19 @@ module Aws::Amplify
|
|
2960
3029
|
# infrastructure using Typescript code.
|
2961
3030
|
# @return [Types::Backend]
|
2962
3031
|
#
|
3032
|
+
# @!attribute [rw] compute_role_arn
|
3033
|
+
# The Amazon Resource Name (ARN) of the IAM role to assign to a branch
|
3034
|
+
# of an SSR app. The SSR Compute role allows the Amplify Hosting
|
3035
|
+
# compute service to securely access specific Amazon Web Services
|
3036
|
+
# resources based on the role's permissions. For more information
|
3037
|
+
# about the SSR Compute role, see [Adding an SSR Compute role][1] in
|
3038
|
+
# the *Amplify User Guide*.
|
3039
|
+
#
|
3040
|
+
#
|
3041
|
+
#
|
3042
|
+
# [1]: https://docs.aws.amazon.com/latest/userguide/amplify-SSR-compute-role.html
|
3043
|
+
# @return [String]
|
3044
|
+
#
|
2963
3045
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateBranchRequest AWS API Documentation
|
2964
3046
|
#
|
2965
3047
|
class UpdateBranchRequest < Struct.new(
|
@@ -2980,7 +3062,8 @@ module Aws::Amplify
|
|
2980
3062
|
:enable_pull_request_preview,
|
2981
3063
|
:pull_request_environment_name,
|
2982
3064
|
:backend_environment_arn,
|
2983
|
-
:backend
|
3065
|
+
:backend,
|
3066
|
+
:compute_role_arn)
|
2984
3067
|
SENSITIVE = [:basic_auth_credentials, :build_spec]
|
2985
3068
|
include Aws::Structure
|
2986
3069
|
end
|
data/lib/aws-sdk-amplify.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -87,6 +87,7 @@ module Aws
|
|
87
87
|
?description: ::String,
|
88
88
|
?repository: ::String,
|
89
89
|
?platform: ("WEB" | "WEB_DYNAMIC" | "WEB_COMPUTE"),
|
90
|
+
?compute_role_arn: ::String,
|
90
91
|
?iam_service_role_arn: ::String,
|
91
92
|
?oauth_token: ::String,
|
92
93
|
?access_token: ::String,
|
@@ -165,7 +166,8 @@ module Aws
|
|
165
166
|
?backend_environment_arn: ::String,
|
166
167
|
?backend: {
|
167
168
|
stack_arn: ::String?
|
168
|
-
}
|
169
|
+
},
|
170
|
+
?compute_role_arn: ::String
|
169
171
|
) -> _CreateBranchResponseSuccess
|
170
172
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateBranchResponseSuccess
|
171
173
|
|
@@ -550,6 +552,7 @@ module Aws
|
|
550
552
|
?name: ::String,
|
551
553
|
?description: ::String,
|
552
554
|
?platform: ("WEB" | "WEB_DYNAMIC" | "WEB_COMPUTE"),
|
555
|
+
?compute_role_arn: ::String,
|
553
556
|
?iam_service_role_arn: ::String,
|
554
557
|
?environment_variables: Hash[::String, ::String],
|
555
558
|
?enable_branch_auto_build: bool,
|
@@ -614,7 +617,8 @@ module Aws
|
|
614
617
|
?backend_environment_arn: ::String,
|
615
618
|
?backend: {
|
616
619
|
stack_arn: ::String?
|
617
|
-
}
|
620
|
+
},
|
621
|
+
?compute_role_arn: ::String
|
618
622
|
) -> _UpdateBranchResponseSuccess
|
619
623
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateBranchResponseSuccess
|
620
624
|
|
data/sig/types.rbs
CHANGED
@@ -18,6 +18,7 @@ module Aws::Amplify
|
|
18
18
|
attr_accessor platform: ("WEB" | "WEB_DYNAMIC" | "WEB_COMPUTE")
|
19
19
|
attr_accessor create_time: ::Time
|
20
20
|
attr_accessor update_time: ::Time
|
21
|
+
attr_accessor compute_role_arn: ::String
|
21
22
|
attr_accessor iam_service_role_arn: ::String
|
22
23
|
attr_accessor environment_variables: ::Hash[::String, ::String]
|
23
24
|
attr_accessor default_domain: ::String
|
@@ -108,6 +109,7 @@ module Aws::Amplify
|
|
108
109
|
attr_accessor source_branch: ::String
|
109
110
|
attr_accessor backend_environment_arn: ::String
|
110
111
|
attr_accessor backend: Types::Backend
|
112
|
+
attr_accessor compute_role_arn: ::String
|
111
113
|
SENSITIVE: [:basic_auth_credentials, :build_spec]
|
112
114
|
end
|
113
115
|
|
@@ -134,6 +136,7 @@ module Aws::Amplify
|
|
134
136
|
attr_accessor description: ::String
|
135
137
|
attr_accessor repository: ::String
|
136
138
|
attr_accessor platform: ("WEB" | "WEB_DYNAMIC" | "WEB_COMPUTE")
|
139
|
+
attr_accessor compute_role_arn: ::String
|
137
140
|
attr_accessor iam_service_role_arn: ::String
|
138
141
|
attr_accessor oauth_token: ::String
|
139
142
|
attr_accessor access_token: ::String
|
@@ -191,6 +194,7 @@ module Aws::Amplify
|
|
191
194
|
attr_accessor pull_request_environment_name: ::String
|
192
195
|
attr_accessor backend_environment_arn: ::String
|
193
196
|
attr_accessor backend: Types::Backend
|
197
|
+
attr_accessor compute_role_arn: ::String
|
194
198
|
SENSITIVE: [:basic_auth_credentials, :build_spec]
|
195
199
|
end
|
196
200
|
|
@@ -676,6 +680,7 @@ module Aws::Amplify
|
|
676
680
|
attr_accessor name: ::String
|
677
681
|
attr_accessor description: ::String
|
678
682
|
attr_accessor platform: ("WEB" | "WEB_DYNAMIC" | "WEB_COMPUTE")
|
683
|
+
attr_accessor compute_role_arn: ::String
|
679
684
|
attr_accessor iam_service_role_arn: ::String
|
680
685
|
attr_accessor environment_variables: ::Hash[::String, ::String]
|
681
686
|
attr_accessor enable_branch_auto_build: bool
|
@@ -719,6 +724,7 @@ module Aws::Amplify
|
|
719
724
|
attr_accessor pull_request_environment_name: ::String
|
720
725
|
attr_accessor backend_environment_arn: ::String
|
721
726
|
attr_accessor backend: Types::Backend
|
727
|
+
attr_accessor compute_role_arn: ::String
|
722
728
|
SENSITIVE: [:basic_auth_credentials, :build_spec]
|
723
729
|
end
|
724
730
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-amplify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.80.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|