aws-sdk-amplify 1.10.0 → 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-amplify.rb +1 -1
- data/lib/aws-sdk-amplify/client.rb +189 -16
- data/lib/aws-sdk-amplify/client_api.rb +97 -0
- data/lib/aws-sdk-amplify/types.rb +257 -11
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6fd197b251044bbd1dfc4b9282cc12934ce0d20
|
4
|
+
data.tar.gz: 125af562fc865c5843586271f2af0ba84a56d407
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5413e71e94c3481636a02cf92e166cc620f11018185681dcb3396df891164539a2ffaad3da07428f138d152c84e600bb37aaadd5506522bcb30daeb61dd916af
|
7
|
+
data.tar.gz: 9e5b19bef85edb33ccb8d33d196e89a5989ca7e4f6509d21b3457142ff98ade462ec25a7b263a0c5164ebf12c89dee20c4de439d9e553a24505843b3ec6066af
|
data/lib/aws-sdk-amplify.rb
CHANGED
@@ -347,7 +347,7 @@ module Aws::Amplify
|
|
347
347
|
# enable_auto_branch_creation: false,
|
348
348
|
# auto_branch_creation_patterns: ["AutoBranchCreationPattern"],
|
349
349
|
# auto_branch_creation_config: {
|
350
|
-
# stage: "PRODUCTION", # accepts PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL
|
350
|
+
# stage: "PRODUCTION", # accepts PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL, PULL_REQUEST
|
351
351
|
# framework: "Framework",
|
352
352
|
# enable_auto_build: false,
|
353
353
|
# environment_variables: {
|
@@ -356,6 +356,7 @@ module Aws::Amplify
|
|
356
356
|
# basic_auth_credentials: "BasicAuthCredentials",
|
357
357
|
# enable_basic_auth: false,
|
358
358
|
# build_spec: "BuildSpec",
|
359
|
+
# enable_pull_request_preview: false,
|
359
360
|
# },
|
360
361
|
# })
|
361
362
|
#
|
@@ -391,7 +392,7 @@ module Aws::Amplify
|
|
391
392
|
# resp.app.enable_auto_branch_creation #=> Boolean
|
392
393
|
# resp.app.auto_branch_creation_patterns #=> Array
|
393
394
|
# resp.app.auto_branch_creation_patterns[0] #=> String
|
394
|
-
# resp.app.auto_branch_creation_config.stage #=> String, one of "PRODUCTION", "BETA", "DEVELOPMENT", "EXPERIMENTAL"
|
395
|
+
# resp.app.auto_branch_creation_config.stage #=> String, one of "PRODUCTION", "BETA", "DEVELOPMENT", "EXPERIMENTAL", "PULL_REQUEST"
|
395
396
|
# resp.app.auto_branch_creation_config.framework #=> String
|
396
397
|
# resp.app.auto_branch_creation_config.enable_auto_build #=> Boolean
|
397
398
|
# resp.app.auto_branch_creation_config.environment_variables #=> Hash
|
@@ -399,6 +400,7 @@ module Aws::Amplify
|
|
399
400
|
# resp.app.auto_branch_creation_config.basic_auth_credentials #=> String
|
400
401
|
# resp.app.auto_branch_creation_config.enable_basic_auth #=> Boolean
|
401
402
|
# resp.app.auto_branch_creation_config.build_spec #=> String
|
403
|
+
# resp.app.auto_branch_creation_config.enable_pull_request_preview #=> Boolean
|
402
404
|
#
|
403
405
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateApp AWS API Documentation
|
404
406
|
#
|
@@ -453,6 +455,9 @@ module Aws::Amplify
|
|
453
455
|
# @option params [String] :display_name
|
454
456
|
# Display name for a branch, will use as the default domain prefix.
|
455
457
|
#
|
458
|
+
# @option params [Boolean] :enable_pull_request_preview
|
459
|
+
# Enables Pull Request Preview for this branch.
|
460
|
+
#
|
456
461
|
# @return [Types::CreateBranchResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
457
462
|
#
|
458
463
|
# * {Types::CreateBranchResult#branch #branch} => Types::Branch
|
@@ -463,7 +468,7 @@ module Aws::Amplify
|
|
463
468
|
# app_id: "AppId", # required
|
464
469
|
# branch_name: "BranchName", # required
|
465
470
|
# description: "Description",
|
466
|
-
# stage: "PRODUCTION", # accepts PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL
|
471
|
+
# stage: "PRODUCTION", # accepts PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL, PULL_REQUEST
|
467
472
|
# framework: "Framework",
|
468
473
|
# enable_notification: false,
|
469
474
|
# enable_auto_build: false,
|
@@ -478,6 +483,7 @@ module Aws::Amplify
|
|
478
483
|
# build_spec: "BuildSpec",
|
479
484
|
# ttl: "TTL",
|
480
485
|
# display_name: "DisplayName",
|
486
|
+
# enable_pull_request_preview: false,
|
481
487
|
# })
|
482
488
|
#
|
483
489
|
# @example Response structure
|
@@ -487,7 +493,7 @@ module Aws::Amplify
|
|
487
493
|
# resp.branch.description #=> String
|
488
494
|
# resp.branch.tags #=> Hash
|
489
495
|
# resp.branch.tags["TagKey"] #=> String
|
490
|
-
# resp.branch.stage #=> String, one of "PRODUCTION", "BETA", "DEVELOPMENT", "EXPERIMENTAL"
|
496
|
+
# resp.branch.stage #=> String, one of "PRODUCTION", "BETA", "DEVELOPMENT", "EXPERIMENTAL", "PULL_REQUEST"
|
491
497
|
# resp.branch.display_name #=> String
|
492
498
|
# resp.branch.enable_notification #=> Boolean
|
493
499
|
# resp.branch.create_time #=> Time
|
@@ -507,6 +513,9 @@ module Aws::Amplify
|
|
507
513
|
# resp.branch.ttl #=> String
|
508
514
|
# resp.branch.associated_resources #=> Array
|
509
515
|
# resp.branch.associated_resources[0] #=> String
|
516
|
+
# resp.branch.enable_pull_request_preview #=> Boolean
|
517
|
+
# resp.branch.destination_branch #=> String
|
518
|
+
# resp.branch.source_branch #=> String
|
510
519
|
#
|
511
520
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateBranch AWS API Documentation
|
512
521
|
#
|
@@ -708,7 +717,7 @@ module Aws::Amplify
|
|
708
717
|
# resp.app.enable_auto_branch_creation #=> Boolean
|
709
718
|
# resp.app.auto_branch_creation_patterns #=> Array
|
710
719
|
# resp.app.auto_branch_creation_patterns[0] #=> String
|
711
|
-
# resp.app.auto_branch_creation_config.stage #=> String, one of "PRODUCTION", "BETA", "DEVELOPMENT", "EXPERIMENTAL"
|
720
|
+
# resp.app.auto_branch_creation_config.stage #=> String, one of "PRODUCTION", "BETA", "DEVELOPMENT", "EXPERIMENTAL", "PULL_REQUEST"
|
712
721
|
# resp.app.auto_branch_creation_config.framework #=> String
|
713
722
|
# resp.app.auto_branch_creation_config.enable_auto_build #=> Boolean
|
714
723
|
# resp.app.auto_branch_creation_config.environment_variables #=> Hash
|
@@ -716,6 +725,7 @@ module Aws::Amplify
|
|
716
725
|
# resp.app.auto_branch_creation_config.basic_auth_credentials #=> String
|
717
726
|
# resp.app.auto_branch_creation_config.enable_basic_auth #=> Boolean
|
718
727
|
# resp.app.auto_branch_creation_config.build_spec #=> String
|
728
|
+
# resp.app.auto_branch_creation_config.enable_pull_request_preview #=> Boolean
|
719
729
|
#
|
720
730
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteApp AWS API Documentation
|
721
731
|
#
|
@@ -752,7 +762,7 @@ module Aws::Amplify
|
|
752
762
|
# resp.branch.description #=> String
|
753
763
|
# resp.branch.tags #=> Hash
|
754
764
|
# resp.branch.tags["TagKey"] #=> String
|
755
|
-
# resp.branch.stage #=> String, one of "PRODUCTION", "BETA", "DEVELOPMENT", "EXPERIMENTAL"
|
765
|
+
# resp.branch.stage #=> String, one of "PRODUCTION", "BETA", "DEVELOPMENT", "EXPERIMENTAL", "PULL_REQUEST"
|
756
766
|
# resp.branch.display_name #=> String
|
757
767
|
# resp.branch.enable_notification #=> Boolean
|
758
768
|
# resp.branch.create_time #=> Time
|
@@ -772,6 +782,9 @@ module Aws::Amplify
|
|
772
782
|
# resp.branch.ttl #=> String
|
773
783
|
# resp.branch.associated_resources #=> Array
|
774
784
|
# resp.branch.associated_resources[0] #=> String
|
785
|
+
# resp.branch.enable_pull_request_preview #=> Boolean
|
786
|
+
# resp.branch.destination_branch #=> String
|
787
|
+
# resp.branch.source_branch #=> String
|
775
788
|
#
|
776
789
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteBranch AWS API Documentation
|
777
790
|
#
|
@@ -902,6 +915,47 @@ module Aws::Amplify
|
|
902
915
|
req.send_request(options)
|
903
916
|
end
|
904
917
|
|
918
|
+
# Retrieve website access logs for a specific time range via a
|
919
|
+
# pre-signed URL. Optionally, deliver the logs to a given S3 bucket.
|
920
|
+
#
|
921
|
+
# @option params [Time,DateTime,Date,Integer,String] :start_time
|
922
|
+
# The time at which the logs should start, inclusive.
|
923
|
+
#
|
924
|
+
# @option params [Time,DateTime,Date,Integer,String] :end_time
|
925
|
+
# The time at which the logs should end, inclusive.
|
926
|
+
#
|
927
|
+
# @option params [required, String] :domain_name
|
928
|
+
# Name of the domain.
|
929
|
+
#
|
930
|
+
# @option params [required, String] :app_id
|
931
|
+
# Unique Id for an Amplify App.
|
932
|
+
#
|
933
|
+
# @return [Types::GenerateAccessLogsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
934
|
+
#
|
935
|
+
# * {Types::GenerateAccessLogsResult#log_url #log_url} => String
|
936
|
+
#
|
937
|
+
# @example Request syntax with placeholder values
|
938
|
+
#
|
939
|
+
# resp = client.generate_access_logs({
|
940
|
+
# start_time: Time.now,
|
941
|
+
# end_time: Time.now,
|
942
|
+
# domain_name: "DomainName", # required
|
943
|
+
# app_id: "AppId", # required
|
944
|
+
# })
|
945
|
+
#
|
946
|
+
# @example Response structure
|
947
|
+
#
|
948
|
+
# resp.log_url #=> String
|
949
|
+
#
|
950
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GenerateAccessLogs AWS API Documentation
|
951
|
+
#
|
952
|
+
# @overload generate_access_logs(params = {})
|
953
|
+
# @param [Hash] params ({})
|
954
|
+
def generate_access_logs(params = {}, options = {})
|
955
|
+
req = build_request(:generate_access_logs, params)
|
956
|
+
req.send_request(options)
|
957
|
+
end
|
958
|
+
|
905
959
|
# Retrieves an existing Amplify App by appId.
|
906
960
|
#
|
907
961
|
# @option params [required, String] :app_id
|
@@ -949,7 +1003,7 @@ module Aws::Amplify
|
|
949
1003
|
# resp.app.enable_auto_branch_creation #=> Boolean
|
950
1004
|
# resp.app.auto_branch_creation_patterns #=> Array
|
951
1005
|
# resp.app.auto_branch_creation_patterns[0] #=> String
|
952
|
-
# resp.app.auto_branch_creation_config.stage #=> String, one of "PRODUCTION", "BETA", "DEVELOPMENT", "EXPERIMENTAL"
|
1006
|
+
# resp.app.auto_branch_creation_config.stage #=> String, one of "PRODUCTION", "BETA", "DEVELOPMENT", "EXPERIMENTAL", "PULL_REQUEST"
|
953
1007
|
# resp.app.auto_branch_creation_config.framework #=> String
|
954
1008
|
# resp.app.auto_branch_creation_config.enable_auto_build #=> Boolean
|
955
1009
|
# resp.app.auto_branch_creation_config.environment_variables #=> Hash
|
@@ -957,6 +1011,7 @@ module Aws::Amplify
|
|
957
1011
|
# resp.app.auto_branch_creation_config.basic_auth_credentials #=> String
|
958
1012
|
# resp.app.auto_branch_creation_config.enable_basic_auth #=> Boolean
|
959
1013
|
# resp.app.auto_branch_creation_config.build_spec #=> String
|
1014
|
+
# resp.app.auto_branch_creation_config.enable_pull_request_preview #=> Boolean
|
960
1015
|
#
|
961
1016
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetApp AWS API Documentation
|
962
1017
|
#
|
@@ -967,6 +1022,36 @@ module Aws::Amplify
|
|
967
1022
|
req.send_request(options)
|
968
1023
|
end
|
969
1024
|
|
1025
|
+
# Retrieves artifact info that corresponds to a artifactId.
|
1026
|
+
#
|
1027
|
+
# @option params [required, String] :artifact_id
|
1028
|
+
# Unique Id for a artifact.
|
1029
|
+
#
|
1030
|
+
# @return [Types::GetArtifactUrlResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1031
|
+
#
|
1032
|
+
# * {Types::GetArtifactUrlResult#artifact_id #artifact_id} => String
|
1033
|
+
# * {Types::GetArtifactUrlResult#artifact_url #artifact_url} => String
|
1034
|
+
#
|
1035
|
+
# @example Request syntax with placeholder values
|
1036
|
+
#
|
1037
|
+
# resp = client.get_artifact_url({
|
1038
|
+
# artifact_id: "ArtifactId", # required
|
1039
|
+
# })
|
1040
|
+
#
|
1041
|
+
# @example Response structure
|
1042
|
+
#
|
1043
|
+
# resp.artifact_id #=> String
|
1044
|
+
# resp.artifact_url #=> String
|
1045
|
+
#
|
1046
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetArtifactUrl AWS API Documentation
|
1047
|
+
#
|
1048
|
+
# @overload get_artifact_url(params = {})
|
1049
|
+
# @param [Hash] params ({})
|
1050
|
+
def get_artifact_url(params = {}, options = {})
|
1051
|
+
req = build_request(:get_artifact_url, params)
|
1052
|
+
req.send_request(options)
|
1053
|
+
end
|
1054
|
+
|
970
1055
|
# Retrieves a branch for an Amplify App.
|
971
1056
|
#
|
972
1057
|
# @option params [required, String] :app_id
|
@@ -993,7 +1078,7 @@ module Aws::Amplify
|
|
993
1078
|
# resp.branch.description #=> String
|
994
1079
|
# resp.branch.tags #=> Hash
|
995
1080
|
# resp.branch.tags["TagKey"] #=> String
|
996
|
-
# resp.branch.stage #=> String, one of "PRODUCTION", "BETA", "DEVELOPMENT", "EXPERIMENTAL"
|
1081
|
+
# resp.branch.stage #=> String, one of "PRODUCTION", "BETA", "DEVELOPMENT", "EXPERIMENTAL", "PULL_REQUEST"
|
997
1082
|
# resp.branch.display_name #=> String
|
998
1083
|
# resp.branch.enable_notification #=> Boolean
|
999
1084
|
# resp.branch.create_time #=> Time
|
@@ -1013,6 +1098,9 @@ module Aws::Amplify
|
|
1013
1098
|
# resp.branch.ttl #=> String
|
1014
1099
|
# resp.branch.associated_resources #=> Array
|
1015
1100
|
# resp.branch.associated_resources[0] #=> String
|
1101
|
+
# resp.branch.enable_pull_request_preview #=> Boolean
|
1102
|
+
# resp.branch.destination_branch #=> String
|
1103
|
+
# resp.branch.source_branch #=> String
|
1016
1104
|
#
|
1017
1105
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetBranch AWS API Documentation
|
1018
1106
|
#
|
@@ -1106,6 +1194,8 @@ module Aws::Amplify
|
|
1106
1194
|
# resp.job.steps[0].end_time #=> Time
|
1107
1195
|
# resp.job.steps[0].log_url #=> String
|
1108
1196
|
# resp.job.steps[0].artifacts_url #=> String
|
1197
|
+
# resp.job.steps[0].test_artifacts_url #=> String
|
1198
|
+
# resp.job.steps[0].test_config_url #=> String
|
1109
1199
|
# resp.job.steps[0].screenshots #=> Hash
|
1110
1200
|
# resp.job.steps[0].screenshots["ThumbnailName"] #=> String
|
1111
1201
|
# resp.job.steps[0].status_reason #=> String
|
@@ -1208,7 +1298,7 @@ module Aws::Amplify
|
|
1208
1298
|
# resp.apps[0].enable_auto_branch_creation #=> Boolean
|
1209
1299
|
# resp.apps[0].auto_branch_creation_patterns #=> Array
|
1210
1300
|
# resp.apps[0].auto_branch_creation_patterns[0] #=> String
|
1211
|
-
# resp.apps[0].auto_branch_creation_config.stage #=> String, one of "PRODUCTION", "BETA", "DEVELOPMENT", "EXPERIMENTAL"
|
1301
|
+
# resp.apps[0].auto_branch_creation_config.stage #=> String, one of "PRODUCTION", "BETA", "DEVELOPMENT", "EXPERIMENTAL", "PULL_REQUEST"
|
1212
1302
|
# resp.apps[0].auto_branch_creation_config.framework #=> String
|
1213
1303
|
# resp.apps[0].auto_branch_creation_config.enable_auto_build #=> Boolean
|
1214
1304
|
# resp.apps[0].auto_branch_creation_config.environment_variables #=> Hash
|
@@ -1216,6 +1306,7 @@ module Aws::Amplify
|
|
1216
1306
|
# resp.apps[0].auto_branch_creation_config.basic_auth_credentials #=> String
|
1217
1307
|
# resp.apps[0].auto_branch_creation_config.enable_basic_auth #=> Boolean
|
1218
1308
|
# resp.apps[0].auto_branch_creation_config.build_spec #=> String
|
1309
|
+
# resp.apps[0].auto_branch_creation_config.enable_pull_request_preview #=> Boolean
|
1219
1310
|
# resp.next_token #=> String
|
1220
1311
|
#
|
1221
1312
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListApps AWS API Documentation
|
@@ -1227,6 +1318,60 @@ module Aws::Amplify
|
|
1227
1318
|
req.send_request(options)
|
1228
1319
|
end
|
1229
1320
|
|
1321
|
+
# List artifacts with an app, a branch, a job and an artifact type.
|
1322
|
+
#
|
1323
|
+
# @option params [required, String] :app_id
|
1324
|
+
# Unique Id for an Amplify App.
|
1325
|
+
#
|
1326
|
+
# @option params [required, String] :branch_name
|
1327
|
+
# Name for a branch, part of an Amplify App.
|
1328
|
+
#
|
1329
|
+
# @option params [required, String] :job_id
|
1330
|
+
# Unique Id for an Job.
|
1331
|
+
#
|
1332
|
+
# @option params [String] :artifact_type
|
1333
|
+
# Type for an artifact.
|
1334
|
+
#
|
1335
|
+
# @option params [String] :next_token
|
1336
|
+
# Pagination token. Set to null to start listing artifacts from start.
|
1337
|
+
# If non-null pagination token is returned in a result, then pass its
|
1338
|
+
# value in here to list more artifacts.
|
1339
|
+
#
|
1340
|
+
# @option params [Integer] :max_results
|
1341
|
+
# Maximum number of records to list in a single response.
|
1342
|
+
#
|
1343
|
+
# @return [Types::ListArtifactsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1344
|
+
#
|
1345
|
+
# * {Types::ListArtifactsResult#artifacts #artifacts} => Array<Types::Artifact>
|
1346
|
+
# * {Types::ListArtifactsResult#next_token #next_token} => String
|
1347
|
+
#
|
1348
|
+
# @example Request syntax with placeholder values
|
1349
|
+
#
|
1350
|
+
# resp = client.list_artifacts({
|
1351
|
+
# app_id: "AppId", # required
|
1352
|
+
# branch_name: "BranchName", # required
|
1353
|
+
# job_id: "JobId", # required
|
1354
|
+
# artifact_type: "TEST", # accepts TEST
|
1355
|
+
# next_token: "NextToken",
|
1356
|
+
# max_results: 1,
|
1357
|
+
# })
|
1358
|
+
#
|
1359
|
+
# @example Response structure
|
1360
|
+
#
|
1361
|
+
# resp.artifacts #=> Array
|
1362
|
+
# resp.artifacts[0].artifact_file_name #=> String
|
1363
|
+
# resp.artifacts[0].artifact_id #=> String
|
1364
|
+
# resp.next_token #=> String
|
1365
|
+
#
|
1366
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListArtifacts AWS API Documentation
|
1367
|
+
#
|
1368
|
+
# @overload list_artifacts(params = {})
|
1369
|
+
# @param [Hash] params ({})
|
1370
|
+
def list_artifacts(params = {}, options = {})
|
1371
|
+
req = build_request(:list_artifacts, params)
|
1372
|
+
req.send_request(options)
|
1373
|
+
end
|
1374
|
+
|
1230
1375
|
# Lists branches for an Amplify App.
|
1231
1376
|
#
|
1232
1377
|
# @option params [required, String] :app_id
|
@@ -1261,7 +1406,7 @@ module Aws::Amplify
|
|
1261
1406
|
# resp.branches[0].description #=> String
|
1262
1407
|
# resp.branches[0].tags #=> Hash
|
1263
1408
|
# resp.branches[0].tags["TagKey"] #=> String
|
1264
|
-
# resp.branches[0].stage #=> String, one of "PRODUCTION", "BETA", "DEVELOPMENT", "EXPERIMENTAL"
|
1409
|
+
# resp.branches[0].stage #=> String, one of "PRODUCTION", "BETA", "DEVELOPMENT", "EXPERIMENTAL", "PULL_REQUEST"
|
1265
1410
|
# resp.branches[0].display_name #=> String
|
1266
1411
|
# resp.branches[0].enable_notification #=> Boolean
|
1267
1412
|
# resp.branches[0].create_time #=> Time
|
@@ -1281,6 +1426,9 @@ module Aws::Amplify
|
|
1281
1426
|
# resp.branches[0].ttl #=> String
|
1282
1427
|
# resp.branches[0].associated_resources #=> Array
|
1283
1428
|
# resp.branches[0].associated_resources[0] #=> String
|
1429
|
+
# resp.branches[0].enable_pull_request_preview #=> Boolean
|
1430
|
+
# resp.branches[0].destination_branch #=> String
|
1431
|
+
# resp.branches[0].source_branch #=> String
|
1284
1432
|
# resp.next_token #=> String
|
1285
1433
|
#
|
1286
1434
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListBranches AWS API Documentation
|
@@ -1732,7 +1880,20 @@ module Aws::Amplify
|
|
1732
1880
|
# Automated branch creation glob patterns for the Amplify App.
|
1733
1881
|
#
|
1734
1882
|
# @option params [Types::AutoBranchCreationConfig] :auto_branch_creation_config
|
1735
|
-
# Automated branch creation
|
1883
|
+
# Automated branch creation branchConfig for the Amplify App.
|
1884
|
+
#
|
1885
|
+
# @option params [String] :repository
|
1886
|
+
# Repository for an Amplify App
|
1887
|
+
#
|
1888
|
+
# @option params [String] :oauth_token
|
1889
|
+
# OAuth token for 3rd party source control system for an Amplify App,
|
1890
|
+
# used to create webhook and read-only deploy key. OAuth token is not
|
1891
|
+
# stored.
|
1892
|
+
#
|
1893
|
+
# @option params [String] :access_token
|
1894
|
+
# Personal Access token for 3rd party source control system for an
|
1895
|
+
# Amplify App, used to create webhook and read-only deploy key. Token is
|
1896
|
+
# not stored.
|
1736
1897
|
#
|
1737
1898
|
# @return [Types::UpdateAppResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1738
1899
|
#
|
@@ -1764,7 +1925,7 @@ module Aws::Amplify
|
|
1764
1925
|
# enable_auto_branch_creation: false,
|
1765
1926
|
# auto_branch_creation_patterns: ["AutoBranchCreationPattern"],
|
1766
1927
|
# auto_branch_creation_config: {
|
1767
|
-
# stage: "PRODUCTION", # accepts PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL
|
1928
|
+
# stage: "PRODUCTION", # accepts PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL, PULL_REQUEST
|
1768
1929
|
# framework: "Framework",
|
1769
1930
|
# enable_auto_build: false,
|
1770
1931
|
# environment_variables: {
|
@@ -1773,7 +1934,11 @@ module Aws::Amplify
|
|
1773
1934
|
# basic_auth_credentials: "BasicAuthCredentials",
|
1774
1935
|
# enable_basic_auth: false,
|
1775
1936
|
# build_spec: "BuildSpec",
|
1937
|
+
# enable_pull_request_preview: false,
|
1776
1938
|
# },
|
1939
|
+
# repository: "Repository",
|
1940
|
+
# oauth_token: "OauthToken",
|
1941
|
+
# access_token: "AccessToken",
|
1777
1942
|
# })
|
1778
1943
|
#
|
1779
1944
|
# @example Response structure
|
@@ -1808,7 +1973,7 @@ module Aws::Amplify
|
|
1808
1973
|
# resp.app.enable_auto_branch_creation #=> Boolean
|
1809
1974
|
# resp.app.auto_branch_creation_patterns #=> Array
|
1810
1975
|
# resp.app.auto_branch_creation_patterns[0] #=> String
|
1811
|
-
# resp.app.auto_branch_creation_config.stage #=> String, one of "PRODUCTION", "BETA", "DEVELOPMENT", "EXPERIMENTAL"
|
1976
|
+
# resp.app.auto_branch_creation_config.stage #=> String, one of "PRODUCTION", "BETA", "DEVELOPMENT", "EXPERIMENTAL", "PULL_REQUEST"
|
1812
1977
|
# resp.app.auto_branch_creation_config.framework #=> String
|
1813
1978
|
# resp.app.auto_branch_creation_config.enable_auto_build #=> Boolean
|
1814
1979
|
# resp.app.auto_branch_creation_config.environment_variables #=> Hash
|
@@ -1816,6 +1981,7 @@ module Aws::Amplify
|
|
1816
1981
|
# resp.app.auto_branch_creation_config.basic_auth_credentials #=> String
|
1817
1982
|
# resp.app.auto_branch_creation_config.enable_basic_auth #=> Boolean
|
1818
1983
|
# resp.app.auto_branch_creation_config.build_spec #=> String
|
1984
|
+
# resp.app.auto_branch_creation_config.enable_pull_request_preview #=> Boolean
|
1819
1985
|
#
|
1820
1986
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateApp AWS API Documentation
|
1821
1987
|
#
|
@@ -1867,6 +2033,9 @@ module Aws::Amplify
|
|
1867
2033
|
# @option params [String] :display_name
|
1868
2034
|
# Display name for a branch, will use as the default domain prefix.
|
1869
2035
|
#
|
2036
|
+
# @option params [Boolean] :enable_pull_request_preview
|
2037
|
+
# Enables Pull Request Preview for this branch.
|
2038
|
+
#
|
1870
2039
|
# @return [Types::UpdateBranchResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1871
2040
|
#
|
1872
2041
|
# * {Types::UpdateBranchResult#branch #branch} => Types::Branch
|
@@ -1878,7 +2047,7 @@ module Aws::Amplify
|
|
1878
2047
|
# branch_name: "BranchName", # required
|
1879
2048
|
# description: "Description",
|
1880
2049
|
# framework: "Framework",
|
1881
|
-
# stage: "PRODUCTION", # accepts PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL
|
2050
|
+
# stage: "PRODUCTION", # accepts PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL, PULL_REQUEST
|
1882
2051
|
# enable_notification: false,
|
1883
2052
|
# enable_auto_build: false,
|
1884
2053
|
# environment_variables: {
|
@@ -1889,6 +2058,7 @@ module Aws::Amplify
|
|
1889
2058
|
# build_spec: "BuildSpec",
|
1890
2059
|
# ttl: "TTL",
|
1891
2060
|
# display_name: "DisplayName",
|
2061
|
+
# enable_pull_request_preview: false,
|
1892
2062
|
# })
|
1893
2063
|
#
|
1894
2064
|
# @example Response structure
|
@@ -1898,7 +2068,7 @@ module Aws::Amplify
|
|
1898
2068
|
# resp.branch.description #=> String
|
1899
2069
|
# resp.branch.tags #=> Hash
|
1900
2070
|
# resp.branch.tags["TagKey"] #=> String
|
1901
|
-
# resp.branch.stage #=> String, one of "PRODUCTION", "BETA", "DEVELOPMENT", "EXPERIMENTAL"
|
2071
|
+
# resp.branch.stage #=> String, one of "PRODUCTION", "BETA", "DEVELOPMENT", "EXPERIMENTAL", "PULL_REQUEST"
|
1902
2072
|
# resp.branch.display_name #=> String
|
1903
2073
|
# resp.branch.enable_notification #=> Boolean
|
1904
2074
|
# resp.branch.create_time #=> Time
|
@@ -1918,6 +2088,9 @@ module Aws::Amplify
|
|
1918
2088
|
# resp.branch.ttl #=> String
|
1919
2089
|
# resp.branch.associated_resources #=> Array
|
1920
2090
|
# resp.branch.associated_resources[0] #=> String
|
2091
|
+
# resp.branch.enable_pull_request_preview #=> Boolean
|
2092
|
+
# resp.branch.destination_branch #=> String
|
2093
|
+
# resp.branch.source_branch #=> String
|
1921
2094
|
#
|
1922
2095
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateBranch AWS API Documentation
|
1923
2096
|
#
|
@@ -2038,7 +2211,7 @@ module Aws::Amplify
|
|
2038
2211
|
params: params,
|
2039
2212
|
config: config)
|
2040
2213
|
context[:gem_name] = 'aws-sdk-amplify'
|
2041
|
-
context[:gem_version] = '1.
|
2214
|
+
context[:gem_version] = '1.11.0'
|
2042
2215
|
Seahorse::Client::Request.new(handlers, context)
|
2043
2216
|
end
|
2044
2217
|
|
@@ -17,6 +17,12 @@ module Aws::Amplify
|
|
17
17
|
AppArn = Shapes::StringShape.new(name: 'AppArn')
|
18
18
|
AppId = Shapes::StringShape.new(name: 'AppId')
|
19
19
|
Apps = Shapes::ListShape.new(name: 'Apps')
|
20
|
+
Artifact = Shapes::StructureShape.new(name: 'Artifact')
|
21
|
+
ArtifactFileName = Shapes::StringShape.new(name: 'ArtifactFileName')
|
22
|
+
ArtifactId = Shapes::StringShape.new(name: 'ArtifactId')
|
23
|
+
ArtifactType = Shapes::StringShape.new(name: 'ArtifactType')
|
24
|
+
ArtifactUrl = Shapes::StringShape.new(name: 'ArtifactUrl')
|
25
|
+
Artifacts = Shapes::ListShape.new(name: 'Artifacts')
|
20
26
|
ArtifactsUrl = Shapes::StringShape.new(name: 'ArtifactsUrl')
|
21
27
|
AssociatedResource = Shapes::StringShape.new(name: 'AssociatedResource')
|
22
28
|
AssociatedResources = Shapes::ListShape.new(name: 'AssociatedResources')
|
@@ -79,6 +85,7 @@ module Aws::Amplify
|
|
79
85
|
EnableBasicAuth = Shapes::BooleanShape.new(name: 'EnableBasicAuth')
|
80
86
|
EnableBranchAutoBuild = Shapes::BooleanShape.new(name: 'EnableBranchAutoBuild')
|
81
87
|
EnableNotification = Shapes::BooleanShape.new(name: 'EnableNotification')
|
88
|
+
EnablePullRequestPreview = Shapes::BooleanShape.new(name: 'EnablePullRequestPreview')
|
82
89
|
EndTime = Shapes::TimestampShape.new(name: 'EndTime')
|
83
90
|
EnvKey = Shapes::StringShape.new(name: 'EnvKey')
|
84
91
|
EnvValue = Shapes::StringShape.new(name: 'EnvValue')
|
@@ -88,8 +95,12 @@ module Aws::Amplify
|
|
88
95
|
FileName = Shapes::StringShape.new(name: 'FileName')
|
89
96
|
FileUploadUrls = Shapes::MapShape.new(name: 'FileUploadUrls')
|
90
97
|
Framework = Shapes::StringShape.new(name: 'Framework')
|
98
|
+
GenerateAccessLogsRequest = Shapes::StructureShape.new(name: 'GenerateAccessLogsRequest')
|
99
|
+
GenerateAccessLogsResult = Shapes::StructureShape.new(name: 'GenerateAccessLogsResult')
|
91
100
|
GetAppRequest = Shapes::StructureShape.new(name: 'GetAppRequest')
|
92
101
|
GetAppResult = Shapes::StructureShape.new(name: 'GetAppResult')
|
102
|
+
GetArtifactUrlRequest = Shapes::StructureShape.new(name: 'GetArtifactUrlRequest')
|
103
|
+
GetArtifactUrlResult = Shapes::StructureShape.new(name: 'GetArtifactUrlResult')
|
93
104
|
GetBranchRequest = Shapes::StructureShape.new(name: 'GetBranchRequest')
|
94
105
|
GetBranchResult = Shapes::StructureShape.new(name: 'GetBranchResult')
|
95
106
|
GetDomainAssociationRequest = Shapes::StructureShape.new(name: 'GetDomainAssociationRequest')
|
@@ -111,6 +122,8 @@ module Aws::Amplify
|
|
111
122
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
112
123
|
ListAppsRequest = Shapes::StructureShape.new(name: 'ListAppsRequest')
|
113
124
|
ListAppsResult = Shapes::StructureShape.new(name: 'ListAppsResult')
|
125
|
+
ListArtifactsRequest = Shapes::StructureShape.new(name: 'ListArtifactsRequest')
|
126
|
+
ListArtifactsResult = Shapes::StructureShape.new(name: 'ListArtifactsResult')
|
114
127
|
ListBranchesRequest = Shapes::StructureShape.new(name: 'ListBranchesRequest')
|
115
128
|
ListBranchesResult = Shapes::StructureShape.new(name: 'ListBranchesResult')
|
116
129
|
ListDomainAssociationsRequest = Shapes::StructureShape.new(name: 'ListDomainAssociationsRequest')
|
@@ -162,6 +175,8 @@ module Aws::Amplify
|
|
162
175
|
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
163
176
|
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
164
177
|
Target = Shapes::StringShape.new(name: 'Target')
|
178
|
+
TestArtifactsUrl = Shapes::StringShape.new(name: 'TestArtifactsUrl')
|
179
|
+
TestConfigUrl = Shapes::StringShape.new(name: 'TestConfigUrl')
|
165
180
|
ThumbnailName = Shapes::StringShape.new(name: 'ThumbnailName')
|
166
181
|
ThumbnailUrl = Shapes::StringShape.new(name: 'ThumbnailUrl')
|
167
182
|
TotalNumberOfJobs = Shapes::StringShape.new(name: 'TotalNumberOfJobs')
|
@@ -210,6 +225,12 @@ module Aws::Amplify
|
|
210
225
|
|
211
226
|
Apps.member = Shapes::ShapeRef.new(shape: App)
|
212
227
|
|
228
|
+
Artifact.add_member(:artifact_file_name, Shapes::ShapeRef.new(shape: ArtifactFileName, required: true, location_name: "artifactFileName"))
|
229
|
+
Artifact.add_member(:artifact_id, Shapes::ShapeRef.new(shape: ArtifactId, required: true, location_name: "artifactId"))
|
230
|
+
Artifact.struct_class = Types::Artifact
|
231
|
+
|
232
|
+
Artifacts.member = Shapes::ShapeRef.new(shape: Artifact)
|
233
|
+
|
213
234
|
AssociatedResources.member = Shapes::ShapeRef.new(shape: AssociatedResource)
|
214
235
|
|
215
236
|
AutoBranchCreationConfig.add_member(:stage, Shapes::ShapeRef.new(shape: Stage, location_name: "stage"))
|
@@ -219,6 +240,7 @@ module Aws::Amplify
|
|
219
240
|
AutoBranchCreationConfig.add_member(:basic_auth_credentials, Shapes::ShapeRef.new(shape: BasicAuthCredentials, location_name: "basicAuthCredentials"))
|
220
241
|
AutoBranchCreationConfig.add_member(:enable_basic_auth, Shapes::ShapeRef.new(shape: EnableBasicAuth, location_name: "enableBasicAuth"))
|
221
242
|
AutoBranchCreationConfig.add_member(:build_spec, Shapes::ShapeRef.new(shape: BuildSpec, location_name: "buildSpec"))
|
243
|
+
AutoBranchCreationConfig.add_member(:enable_pull_request_preview, Shapes::ShapeRef.new(shape: EnablePullRequestPreview, location_name: "enablePullRequestPreview"))
|
222
244
|
AutoBranchCreationConfig.struct_class = Types::AutoBranchCreationConfig
|
223
245
|
|
224
246
|
AutoBranchCreationPatterns.member = Shapes::ShapeRef.new(shape: AutoBranchCreationPattern)
|
@@ -247,6 +269,9 @@ module Aws::Amplify
|
|
247
269
|
Branch.add_member(:build_spec, Shapes::ShapeRef.new(shape: BuildSpec, location_name: "buildSpec"))
|
248
270
|
Branch.add_member(:ttl, Shapes::ShapeRef.new(shape: TTL, required: true, location_name: "ttl"))
|
249
271
|
Branch.add_member(:associated_resources, Shapes::ShapeRef.new(shape: AssociatedResources, location_name: "associatedResources"))
|
272
|
+
Branch.add_member(:enable_pull_request_preview, Shapes::ShapeRef.new(shape: EnablePullRequestPreview, required: true, location_name: "enablePullRequestPreview"))
|
273
|
+
Branch.add_member(:destination_branch, Shapes::ShapeRef.new(shape: BranchName, location_name: "destinationBranch"))
|
274
|
+
Branch.add_member(:source_branch, Shapes::ShapeRef.new(shape: BranchName, location_name: "sourceBranch"))
|
250
275
|
Branch.struct_class = Types::Branch
|
251
276
|
|
252
277
|
Branches.member = Shapes::ShapeRef.new(shape: Branch)
|
@@ -287,6 +312,7 @@ module Aws::Amplify
|
|
287
312
|
CreateBranchRequest.add_member(:build_spec, Shapes::ShapeRef.new(shape: BuildSpec, location_name: "buildSpec"))
|
288
313
|
CreateBranchRequest.add_member(:ttl, Shapes::ShapeRef.new(shape: TTL, location_name: "ttl"))
|
289
314
|
CreateBranchRequest.add_member(:display_name, Shapes::ShapeRef.new(shape: DisplayName, location_name: "displayName"))
|
315
|
+
CreateBranchRequest.add_member(:enable_pull_request_preview, Shapes::ShapeRef.new(shape: EnablePullRequestPreview, location_name: "enablePullRequestPreview"))
|
290
316
|
CreateBranchRequest.struct_class = Types::CreateBranchRequest
|
291
317
|
|
292
318
|
CreateBranchResult.add_member(:branch, Shapes::ShapeRef.new(shape: Branch, required: true, location_name: "branch"))
|
@@ -386,12 +412,28 @@ module Aws::Amplify
|
|
386
412
|
FileUploadUrls.key = Shapes::ShapeRef.new(shape: FileName)
|
387
413
|
FileUploadUrls.value = Shapes::ShapeRef.new(shape: UploadUrl)
|
388
414
|
|
415
|
+
GenerateAccessLogsRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: StartTime, location_name: "startTime"))
|
416
|
+
GenerateAccessLogsRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: EndTime, location_name: "endTime"))
|
417
|
+
GenerateAccessLogsRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: DomainName, required: true, location_name: "domainName"))
|
418
|
+
GenerateAccessLogsRequest.add_member(:app_id, Shapes::ShapeRef.new(shape: AppId, required: true, location: "uri", location_name: "appId"))
|
419
|
+
GenerateAccessLogsRequest.struct_class = Types::GenerateAccessLogsRequest
|
420
|
+
|
421
|
+
GenerateAccessLogsResult.add_member(:log_url, Shapes::ShapeRef.new(shape: LogUrl, location_name: "logUrl"))
|
422
|
+
GenerateAccessLogsResult.struct_class = Types::GenerateAccessLogsResult
|
423
|
+
|
389
424
|
GetAppRequest.add_member(:app_id, Shapes::ShapeRef.new(shape: AppId, required: true, location: "uri", location_name: "appId"))
|
390
425
|
GetAppRequest.struct_class = Types::GetAppRequest
|
391
426
|
|
392
427
|
GetAppResult.add_member(:app, Shapes::ShapeRef.new(shape: App, required: true, location_name: "app"))
|
393
428
|
GetAppResult.struct_class = Types::GetAppResult
|
394
429
|
|
430
|
+
GetArtifactUrlRequest.add_member(:artifact_id, Shapes::ShapeRef.new(shape: ArtifactId, required: true, location: "uri", location_name: "artifactId"))
|
431
|
+
GetArtifactUrlRequest.struct_class = Types::GetArtifactUrlRequest
|
432
|
+
|
433
|
+
GetArtifactUrlResult.add_member(:artifact_id, Shapes::ShapeRef.new(shape: ArtifactId, required: true, location_name: "artifactId"))
|
434
|
+
GetArtifactUrlResult.add_member(:artifact_url, Shapes::ShapeRef.new(shape: ArtifactUrl, required: true, location_name: "artifactUrl"))
|
435
|
+
GetArtifactUrlResult.struct_class = Types::GetArtifactUrlResult
|
436
|
+
|
395
437
|
GetBranchRequest.add_member(:app_id, Shapes::ShapeRef.new(shape: AppId, required: true, location: "uri", location_name: "appId"))
|
396
438
|
GetBranchRequest.add_member(:branch_name, Shapes::ShapeRef.new(shape: BranchName, required: true, location: "uri", location_name: "branchName"))
|
397
439
|
GetBranchRequest.struct_class = Types::GetBranchRequest
|
@@ -451,6 +493,18 @@ module Aws::Amplify
|
|
451
493
|
ListAppsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
452
494
|
ListAppsResult.struct_class = Types::ListAppsResult
|
453
495
|
|
496
|
+
ListArtifactsRequest.add_member(:app_id, Shapes::ShapeRef.new(shape: AppId, required: true, location: "uri", location_name: "appId"))
|
497
|
+
ListArtifactsRequest.add_member(:branch_name, Shapes::ShapeRef.new(shape: BranchName, required: true, location: "uri", location_name: "branchName"))
|
498
|
+
ListArtifactsRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location: "uri", location_name: "jobId"))
|
499
|
+
ListArtifactsRequest.add_member(:artifact_type, Shapes::ShapeRef.new(shape: ArtifactType, location_name: "artifactType"))
|
500
|
+
ListArtifactsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
501
|
+
ListArtifactsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
502
|
+
ListArtifactsRequest.struct_class = Types::ListArtifactsRequest
|
503
|
+
|
504
|
+
ListArtifactsResult.add_member(:artifacts, Shapes::ShapeRef.new(shape: Artifacts, required: true, location_name: "artifacts"))
|
505
|
+
ListArtifactsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
506
|
+
ListArtifactsResult.struct_class = Types::ListArtifactsResult
|
507
|
+
|
454
508
|
ListBranchesRequest.add_member(:app_id, Shapes::ShapeRef.new(shape: AppId, required: true, location: "uri", location_name: "appId"))
|
455
509
|
ListBranchesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
456
510
|
ListBranchesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
@@ -538,6 +592,8 @@ module Aws::Amplify
|
|
538
592
|
Step.add_member(:end_time, Shapes::ShapeRef.new(shape: EndTime, required: true, location_name: "endTime"))
|
539
593
|
Step.add_member(:log_url, Shapes::ShapeRef.new(shape: LogUrl, location_name: "logUrl"))
|
540
594
|
Step.add_member(:artifacts_url, Shapes::ShapeRef.new(shape: ArtifactsUrl, location_name: "artifactsUrl"))
|
595
|
+
Step.add_member(:test_artifacts_url, Shapes::ShapeRef.new(shape: TestArtifactsUrl, location_name: "testArtifactsUrl"))
|
596
|
+
Step.add_member(:test_config_url, Shapes::ShapeRef.new(shape: TestConfigUrl, location_name: "testConfigUrl"))
|
541
597
|
Step.add_member(:screenshots, Shapes::ShapeRef.new(shape: Screenshots, location_name: "screenshots"))
|
542
598
|
Step.add_member(:status_reason, Shapes::ShapeRef.new(shape: StatusReason, location_name: "statusReason"))
|
543
599
|
Step.add_member(:context, Shapes::ShapeRef.new(shape: Context, location_name: "context"))
|
@@ -600,6 +656,9 @@ module Aws::Amplify
|
|
600
656
|
UpdateAppRequest.add_member(:enable_auto_branch_creation, Shapes::ShapeRef.new(shape: EnableAutoBranchCreation, location_name: "enableAutoBranchCreation"))
|
601
657
|
UpdateAppRequest.add_member(:auto_branch_creation_patterns, Shapes::ShapeRef.new(shape: AutoBranchCreationPatterns, location_name: "autoBranchCreationPatterns"))
|
602
658
|
UpdateAppRequest.add_member(:auto_branch_creation_config, Shapes::ShapeRef.new(shape: AutoBranchCreationConfig, location_name: "autoBranchCreationConfig"))
|
659
|
+
UpdateAppRequest.add_member(:repository, Shapes::ShapeRef.new(shape: Repository, location_name: "repository"))
|
660
|
+
UpdateAppRequest.add_member(:oauth_token, Shapes::ShapeRef.new(shape: OauthToken, location_name: "oauthToken"))
|
661
|
+
UpdateAppRequest.add_member(:access_token, Shapes::ShapeRef.new(shape: AccessToken, location_name: "accessToken"))
|
603
662
|
UpdateAppRequest.struct_class = Types::UpdateAppRequest
|
604
663
|
|
605
664
|
UpdateAppResult.add_member(:app, Shapes::ShapeRef.new(shape: App, required: true, location_name: "app"))
|
@@ -618,6 +677,7 @@ module Aws::Amplify
|
|
618
677
|
UpdateBranchRequest.add_member(:build_spec, Shapes::ShapeRef.new(shape: BuildSpec, location_name: "buildSpec"))
|
619
678
|
UpdateBranchRequest.add_member(:ttl, Shapes::ShapeRef.new(shape: TTL, location_name: "ttl"))
|
620
679
|
UpdateBranchRequest.add_member(:display_name, Shapes::ShapeRef.new(shape: DisplayName, location_name: "displayName"))
|
680
|
+
UpdateBranchRequest.add_member(:enable_pull_request_preview, Shapes::ShapeRef.new(shape: EnablePullRequestPreview, location_name: "enablePullRequestPreview"))
|
621
681
|
UpdateBranchRequest.struct_class = Types::UpdateBranchRequest
|
622
682
|
|
623
683
|
UpdateBranchResult.add_member(:branch, Shapes::ShapeRef.new(shape: Branch, required: true, location_name: "branch"))
|
@@ -802,6 +862,18 @@ module Aws::Amplify
|
|
802
862
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
803
863
|
end)
|
804
864
|
|
865
|
+
api.add_operation(:generate_access_logs, Seahorse::Model::Operation.new.tap do |o|
|
866
|
+
o.name = "GenerateAccessLogs"
|
867
|
+
o.http_method = "POST"
|
868
|
+
o.http_request_uri = "/apps/{appId}/accesslogs"
|
869
|
+
o.input = Shapes::ShapeRef.new(shape: GenerateAccessLogsRequest)
|
870
|
+
o.output = Shapes::ShapeRef.new(shape: GenerateAccessLogsResult)
|
871
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
872
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
873
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
874
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
875
|
+
end)
|
876
|
+
|
805
877
|
api.add_operation(:get_app, Seahorse::Model::Operation.new.tap do |o|
|
806
878
|
o.name = "GetApp"
|
807
879
|
o.http_method = "GET"
|
@@ -814,6 +886,19 @@ module Aws::Amplify
|
|
814
886
|
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
815
887
|
end)
|
816
888
|
|
889
|
+
api.add_operation(:get_artifact_url, Seahorse::Model::Operation.new.tap do |o|
|
890
|
+
o.name = "GetArtifactUrl"
|
891
|
+
o.http_method = "GET"
|
892
|
+
o.http_request_uri = "/artifacts/{artifactId}"
|
893
|
+
o.input = Shapes::ShapeRef.new(shape: GetArtifactUrlRequest)
|
894
|
+
o.output = Shapes::ShapeRef.new(shape: GetArtifactUrlResult)
|
895
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
896
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
897
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
898
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
899
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
900
|
+
end)
|
901
|
+
|
817
902
|
api.add_operation(:get_branch, Seahorse::Model::Operation.new.tap do |o|
|
818
903
|
o.name = "GetBranch"
|
819
904
|
o.http_method = "GET"
|
@@ -875,6 +960,18 @@ module Aws::Amplify
|
|
875
960
|
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
876
961
|
end)
|
877
962
|
|
963
|
+
api.add_operation(:list_artifacts, Seahorse::Model::Operation.new.tap do |o|
|
964
|
+
o.name = "ListArtifacts"
|
965
|
+
o.http_method = "GET"
|
966
|
+
o.http_request_uri = "/apps/{appId}/branches/{branchName}/jobs/{jobId}/artifacts"
|
967
|
+
o.input = Shapes::ShapeRef.new(shape: ListArtifactsRequest)
|
968
|
+
o.output = Shapes::ShapeRef.new(shape: ListArtifactsResult)
|
969
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
970
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
971
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
972
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
973
|
+
end)
|
974
|
+
|
878
975
|
api.add_operation(:list_branches, Seahorse::Model::Operation.new.tap do |o|
|
879
976
|
o.name = "ListBranches"
|
880
977
|
o.http_method = "GET"
|
@@ -122,13 +122,31 @@ module Aws::Amplify
|
|
122
122
|
include Aws::Structure
|
123
123
|
end
|
124
124
|
|
125
|
+
# Structure for artifact.
|
126
|
+
#
|
127
|
+
# @!attribute [rw] artifact_file_name
|
128
|
+
# File name for the artifact.
|
129
|
+
# @return [String]
|
130
|
+
#
|
131
|
+
# @!attribute [rw] artifact_id
|
132
|
+
# Unique Id for a artifact.
|
133
|
+
# @return [String]
|
134
|
+
#
|
135
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/Artifact AWS API Documentation
|
136
|
+
#
|
137
|
+
class Artifact < Struct.new(
|
138
|
+
:artifact_file_name,
|
139
|
+
:artifact_id)
|
140
|
+
include Aws::Structure
|
141
|
+
end
|
142
|
+
|
125
143
|
# Structure with auto branch creation config.
|
126
144
|
#
|
127
145
|
# @note When making an API call, you may pass AutoBranchCreationConfig
|
128
146
|
# data as a hash:
|
129
147
|
#
|
130
148
|
# {
|
131
|
-
# stage: "PRODUCTION", # accepts PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL
|
149
|
+
# stage: "PRODUCTION", # accepts PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL, PULL_REQUEST
|
132
150
|
# framework: "Framework",
|
133
151
|
# enable_auto_build: false,
|
134
152
|
# environment_variables: {
|
@@ -137,6 +155,7 @@ module Aws::Amplify
|
|
137
155
|
# basic_auth_credentials: "BasicAuthCredentials",
|
138
156
|
# enable_basic_auth: false,
|
139
157
|
# build_spec: "BuildSpec",
|
158
|
+
# enable_pull_request_preview: false,
|
140
159
|
# }
|
141
160
|
#
|
142
161
|
# @!attribute [rw] stage
|
@@ -167,6 +186,10 @@ module Aws::Amplify
|
|
167
186
|
# BuildSpec for the auto created branch.
|
168
187
|
# @return [String]
|
169
188
|
#
|
189
|
+
# @!attribute [rw] enable_pull_request_preview
|
190
|
+
# Enables Pull Request Preview for auto created branch.
|
191
|
+
# @return [Boolean]
|
192
|
+
#
|
170
193
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/AutoBranchCreationConfig AWS API Documentation
|
171
194
|
#
|
172
195
|
class AutoBranchCreationConfig < Struct.new(
|
@@ -176,7 +199,8 @@ module Aws::Amplify
|
|
176
199
|
:environment_variables,
|
177
200
|
:basic_auth_credentials,
|
178
201
|
:enable_basic_auth,
|
179
|
-
:build_spec
|
202
|
+
:build_spec,
|
203
|
+
:enable_pull_request_preview)
|
180
204
|
include Aws::Structure
|
181
205
|
end
|
182
206
|
|
@@ -280,6 +304,18 @@ module Aws::Amplify
|
|
280
304
|
# List of custom resources that are linked to this branch.
|
281
305
|
# @return [Array<String>]
|
282
306
|
#
|
307
|
+
# @!attribute [rw] enable_pull_request_preview
|
308
|
+
# Enables Pull Request Preview for this branch.
|
309
|
+
# @return [Boolean]
|
310
|
+
#
|
311
|
+
# @!attribute [rw] destination_branch
|
312
|
+
# The destination branch if the branch is a pull request branch.
|
313
|
+
# @return [String]
|
314
|
+
#
|
315
|
+
# @!attribute [rw] source_branch
|
316
|
+
# The source branch if the branch is a pull request branch.
|
317
|
+
# @return [String]
|
318
|
+
#
|
283
319
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/Branch AWS API Documentation
|
284
320
|
#
|
285
321
|
class Branch < Struct.new(
|
@@ -303,7 +339,10 @@ module Aws::Amplify
|
|
303
339
|
:basic_auth_credentials,
|
304
340
|
:build_spec,
|
305
341
|
:ttl,
|
306
|
-
:associated_resources
|
342
|
+
:associated_resources,
|
343
|
+
:enable_pull_request_preview,
|
344
|
+
:destination_branch,
|
345
|
+
:source_branch)
|
307
346
|
include Aws::Structure
|
308
347
|
end
|
309
348
|
|
@@ -341,7 +380,7 @@ module Aws::Amplify
|
|
341
380
|
# enable_auto_branch_creation: false,
|
342
381
|
# auto_branch_creation_patterns: ["AutoBranchCreationPattern"],
|
343
382
|
# auto_branch_creation_config: {
|
344
|
-
# stage: "PRODUCTION", # accepts PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL
|
383
|
+
# stage: "PRODUCTION", # accepts PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL, PULL_REQUEST
|
345
384
|
# framework: "Framework",
|
346
385
|
# enable_auto_build: false,
|
347
386
|
# environment_variables: {
|
@@ -350,6 +389,7 @@ module Aws::Amplify
|
|
350
389
|
# basic_auth_credentials: "BasicAuthCredentials",
|
351
390
|
# enable_basic_auth: false,
|
352
391
|
# build_spec: "BuildSpec",
|
392
|
+
# enable_pull_request_preview: false,
|
353
393
|
# },
|
354
394
|
# }
|
355
395
|
#
|
@@ -470,7 +510,7 @@ module Aws::Amplify
|
|
470
510
|
# app_id: "AppId", # required
|
471
511
|
# branch_name: "BranchName", # required
|
472
512
|
# description: "Description",
|
473
|
-
# stage: "PRODUCTION", # accepts PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL
|
513
|
+
# stage: "PRODUCTION", # accepts PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL, PULL_REQUEST
|
474
514
|
# framework: "Framework",
|
475
515
|
# enable_notification: false,
|
476
516
|
# enable_auto_build: false,
|
@@ -485,6 +525,7 @@ module Aws::Amplify
|
|
485
525
|
# build_spec: "BuildSpec",
|
486
526
|
# ttl: "TTL",
|
487
527
|
# display_name: "DisplayName",
|
528
|
+
# enable_pull_request_preview: false,
|
488
529
|
# }
|
489
530
|
#
|
490
531
|
# @!attribute [rw] app_id
|
@@ -543,6 +584,10 @@ module Aws::Amplify
|
|
543
584
|
# Display name for a branch, will use as the default domain prefix.
|
544
585
|
# @return [String]
|
545
586
|
#
|
587
|
+
# @!attribute [rw] enable_pull_request_preview
|
588
|
+
# Enables Pull Request Preview for this branch.
|
589
|
+
# @return [Boolean]
|
590
|
+
#
|
546
591
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateBranchRequest AWS API Documentation
|
547
592
|
#
|
548
593
|
class CreateBranchRequest < Struct.new(
|
@@ -559,7 +604,8 @@ module Aws::Amplify
|
|
559
604
|
:tags,
|
560
605
|
:build_spec,
|
561
606
|
:ttl,
|
562
|
-
:display_name
|
607
|
+
:display_name,
|
608
|
+
:enable_pull_request_preview)
|
563
609
|
include Aws::Structure
|
564
610
|
end
|
565
611
|
|
@@ -1023,6 +1069,57 @@ module Aws::Amplify
|
|
1023
1069
|
include Aws::Structure
|
1024
1070
|
end
|
1025
1071
|
|
1072
|
+
# Request structure for the generate access logs request.
|
1073
|
+
#
|
1074
|
+
# @note When making an API call, you may pass GenerateAccessLogsRequest
|
1075
|
+
# data as a hash:
|
1076
|
+
#
|
1077
|
+
# {
|
1078
|
+
# start_time: Time.now,
|
1079
|
+
# end_time: Time.now,
|
1080
|
+
# domain_name: "DomainName", # required
|
1081
|
+
# app_id: "AppId", # required
|
1082
|
+
# }
|
1083
|
+
#
|
1084
|
+
# @!attribute [rw] start_time
|
1085
|
+
# The time at which the logs should start, inclusive.
|
1086
|
+
# @return [Time]
|
1087
|
+
#
|
1088
|
+
# @!attribute [rw] end_time
|
1089
|
+
# The time at which the logs should end, inclusive.
|
1090
|
+
# @return [Time]
|
1091
|
+
#
|
1092
|
+
# @!attribute [rw] domain_name
|
1093
|
+
# Name of the domain.
|
1094
|
+
# @return [String]
|
1095
|
+
#
|
1096
|
+
# @!attribute [rw] app_id
|
1097
|
+
# Unique Id for an Amplify App.
|
1098
|
+
# @return [String]
|
1099
|
+
#
|
1100
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GenerateAccessLogsRequest AWS API Documentation
|
1101
|
+
#
|
1102
|
+
class GenerateAccessLogsRequest < Struct.new(
|
1103
|
+
:start_time,
|
1104
|
+
:end_time,
|
1105
|
+
:domain_name,
|
1106
|
+
:app_id)
|
1107
|
+
include Aws::Structure
|
1108
|
+
end
|
1109
|
+
|
1110
|
+
# Result structure for the generate access logs request.
|
1111
|
+
#
|
1112
|
+
# @!attribute [rw] log_url
|
1113
|
+
# Pre-signed URL for the requested access logs.
|
1114
|
+
# @return [String]
|
1115
|
+
#
|
1116
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GenerateAccessLogsResult AWS API Documentation
|
1117
|
+
#
|
1118
|
+
class GenerateAccessLogsResult < Struct.new(
|
1119
|
+
:log_url)
|
1120
|
+
include Aws::Structure
|
1121
|
+
end
|
1122
|
+
|
1026
1123
|
# Request structure for get App request.
|
1027
1124
|
#
|
1028
1125
|
# @note When making an API call, you may pass GetAppRequest
|
@@ -1055,6 +1152,44 @@ module Aws::Amplify
|
|
1055
1152
|
include Aws::Structure
|
1056
1153
|
end
|
1057
1154
|
|
1155
|
+
# Request structure for the get artifact request.
|
1156
|
+
#
|
1157
|
+
# @note When making an API call, you may pass GetArtifactUrlRequest
|
1158
|
+
# data as a hash:
|
1159
|
+
#
|
1160
|
+
# {
|
1161
|
+
# artifact_id: "ArtifactId", # required
|
1162
|
+
# }
|
1163
|
+
#
|
1164
|
+
# @!attribute [rw] artifact_id
|
1165
|
+
# Unique Id for a artifact.
|
1166
|
+
# @return [String]
|
1167
|
+
#
|
1168
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetArtifactUrlRequest AWS API Documentation
|
1169
|
+
#
|
1170
|
+
class GetArtifactUrlRequest < Struct.new(
|
1171
|
+
:artifact_id)
|
1172
|
+
include Aws::Structure
|
1173
|
+
end
|
1174
|
+
|
1175
|
+
# Result structure for the get artifact request.
|
1176
|
+
#
|
1177
|
+
# @!attribute [rw] artifact_id
|
1178
|
+
# Unique Id for a artifact.
|
1179
|
+
# @return [String]
|
1180
|
+
#
|
1181
|
+
# @!attribute [rw] artifact_url
|
1182
|
+
# Presigned url for the artifact.
|
1183
|
+
# @return [String]
|
1184
|
+
#
|
1185
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetArtifactUrlResult AWS API Documentation
|
1186
|
+
#
|
1187
|
+
class GetArtifactUrlResult < Struct.new(
|
1188
|
+
:artifact_id,
|
1189
|
+
:artifact_url)
|
1190
|
+
include Aws::Structure
|
1191
|
+
end
|
1192
|
+
|
1058
1193
|
# Result structure for get branch request.
|
1059
1194
|
#
|
1060
1195
|
# @note When making an API call, you may pass GetBranchRequest
|
@@ -1355,6 +1490,78 @@ module Aws::Amplify
|
|
1355
1490
|
include Aws::Structure
|
1356
1491
|
end
|
1357
1492
|
|
1493
|
+
# Request structure for the list artifacts request.
|
1494
|
+
#
|
1495
|
+
# @note When making an API call, you may pass ListArtifactsRequest
|
1496
|
+
# data as a hash:
|
1497
|
+
#
|
1498
|
+
# {
|
1499
|
+
# app_id: "AppId", # required
|
1500
|
+
# branch_name: "BranchName", # required
|
1501
|
+
# job_id: "JobId", # required
|
1502
|
+
# artifact_type: "TEST", # accepts TEST
|
1503
|
+
# next_token: "NextToken",
|
1504
|
+
# max_results: 1,
|
1505
|
+
# }
|
1506
|
+
#
|
1507
|
+
# @!attribute [rw] app_id
|
1508
|
+
# Unique Id for an Amplify App.
|
1509
|
+
# @return [String]
|
1510
|
+
#
|
1511
|
+
# @!attribute [rw] branch_name
|
1512
|
+
# Name for a branch, part of an Amplify App.
|
1513
|
+
# @return [String]
|
1514
|
+
#
|
1515
|
+
# @!attribute [rw] job_id
|
1516
|
+
# Unique Id for an Job.
|
1517
|
+
# @return [String]
|
1518
|
+
#
|
1519
|
+
# @!attribute [rw] artifact_type
|
1520
|
+
# Type for an artifact.
|
1521
|
+
# @return [String]
|
1522
|
+
#
|
1523
|
+
# @!attribute [rw] next_token
|
1524
|
+
# Pagination token. Set to null to start listing artifacts from start.
|
1525
|
+
# If non-null pagination token is returned in a result, then pass its
|
1526
|
+
# value in here to list more artifacts.
|
1527
|
+
# @return [String]
|
1528
|
+
#
|
1529
|
+
# @!attribute [rw] max_results
|
1530
|
+
# Maximum number of records to list in a single response.
|
1531
|
+
# @return [Integer]
|
1532
|
+
#
|
1533
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListArtifactsRequest AWS API Documentation
|
1534
|
+
#
|
1535
|
+
class ListArtifactsRequest < Struct.new(
|
1536
|
+
:app_id,
|
1537
|
+
:branch_name,
|
1538
|
+
:job_id,
|
1539
|
+
:artifact_type,
|
1540
|
+
:next_token,
|
1541
|
+
:max_results)
|
1542
|
+
include Aws::Structure
|
1543
|
+
end
|
1544
|
+
|
1545
|
+
# Result structure for the list artifacts request.
|
1546
|
+
#
|
1547
|
+
# @!attribute [rw] artifacts
|
1548
|
+
# List of artifacts.
|
1549
|
+
# @return [Array<Types::Artifact>]
|
1550
|
+
#
|
1551
|
+
# @!attribute [rw] next_token
|
1552
|
+
# Pagination token. If non-null pagination token is returned in a
|
1553
|
+
# result, then pass its value in another request to fetch more
|
1554
|
+
# entries.
|
1555
|
+
# @return [String]
|
1556
|
+
#
|
1557
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListArtifactsResult AWS API Documentation
|
1558
|
+
#
|
1559
|
+
class ListArtifactsResult < Struct.new(
|
1560
|
+
:artifacts,
|
1561
|
+
:next_token)
|
1562
|
+
include Aws::Structure
|
1563
|
+
end
|
1564
|
+
|
1358
1565
|
# Request structure for list branches request.
|
1359
1566
|
#
|
1360
1567
|
# @note When making an API call, you may pass ListBranchesRequest
|
@@ -1826,6 +2033,14 @@ module Aws::Amplify
|
|
1826
2033
|
# URL to the artifact for the execution step.
|
1827
2034
|
# @return [String]
|
1828
2035
|
#
|
2036
|
+
# @!attribute [rw] test_artifacts_url
|
2037
|
+
# URL to the test artifact for the execution step.
|
2038
|
+
# @return [String]
|
2039
|
+
#
|
2040
|
+
# @!attribute [rw] test_config_url
|
2041
|
+
# URL to the test config for the execution step.
|
2042
|
+
# @return [String]
|
2043
|
+
#
|
1829
2044
|
# @!attribute [rw] screenshots
|
1830
2045
|
# List of screenshot URLs for the execution step, if relevant.
|
1831
2046
|
# @return [Hash<String,String>]
|
@@ -1848,6 +2063,8 @@ module Aws::Amplify
|
|
1848
2063
|
:end_time,
|
1849
2064
|
:log_url,
|
1850
2065
|
:artifacts_url,
|
2066
|
+
:test_artifacts_url,
|
2067
|
+
:test_config_url,
|
1851
2068
|
:screenshots,
|
1852
2069
|
:status_reason,
|
1853
2070
|
:context)
|
@@ -2055,7 +2272,7 @@ module Aws::Amplify
|
|
2055
2272
|
# enable_auto_branch_creation: false,
|
2056
2273
|
# auto_branch_creation_patterns: ["AutoBranchCreationPattern"],
|
2057
2274
|
# auto_branch_creation_config: {
|
2058
|
-
# stage: "PRODUCTION", # accepts PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL
|
2275
|
+
# stage: "PRODUCTION", # accepts PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL, PULL_REQUEST
|
2059
2276
|
# framework: "Framework",
|
2060
2277
|
# enable_auto_build: false,
|
2061
2278
|
# environment_variables: {
|
@@ -2064,7 +2281,11 @@ module Aws::Amplify
|
|
2064
2281
|
# basic_auth_credentials: "BasicAuthCredentials",
|
2065
2282
|
# enable_basic_auth: false,
|
2066
2283
|
# build_spec: "BuildSpec",
|
2284
|
+
# enable_pull_request_preview: false,
|
2067
2285
|
# },
|
2286
|
+
# repository: "Repository",
|
2287
|
+
# oauth_token: "OauthToken",
|
2288
|
+
# access_token: "AccessToken",
|
2068
2289
|
# }
|
2069
2290
|
#
|
2070
2291
|
# @!attribute [rw] app_id
|
@@ -2120,9 +2341,25 @@ module Aws::Amplify
|
|
2120
2341
|
# @return [Array<String>]
|
2121
2342
|
#
|
2122
2343
|
# @!attribute [rw] auto_branch_creation_config
|
2123
|
-
# Automated branch creation
|
2344
|
+
# Automated branch creation branchConfig for the Amplify App.
|
2124
2345
|
# @return [Types::AutoBranchCreationConfig]
|
2125
2346
|
#
|
2347
|
+
# @!attribute [rw] repository
|
2348
|
+
# Repository for an Amplify App
|
2349
|
+
# @return [String]
|
2350
|
+
#
|
2351
|
+
# @!attribute [rw] oauth_token
|
2352
|
+
# OAuth token for 3rd party source control system for an Amplify App,
|
2353
|
+
# used to create webhook and read-only deploy key. OAuth token is not
|
2354
|
+
# stored.
|
2355
|
+
# @return [String]
|
2356
|
+
#
|
2357
|
+
# @!attribute [rw] access_token
|
2358
|
+
# Personal Access token for 3rd party source control system for an
|
2359
|
+
# Amplify App, used to create webhook and read-only deploy key. Token
|
2360
|
+
# is not stored.
|
2361
|
+
# @return [String]
|
2362
|
+
#
|
2126
2363
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateAppRequest AWS API Documentation
|
2127
2364
|
#
|
2128
2365
|
class UpdateAppRequest < Struct.new(
|
@@ -2139,7 +2376,10 @@ module Aws::Amplify
|
|
2139
2376
|
:build_spec,
|
2140
2377
|
:enable_auto_branch_creation,
|
2141
2378
|
:auto_branch_creation_patterns,
|
2142
|
-
:auto_branch_creation_config
|
2379
|
+
:auto_branch_creation_config,
|
2380
|
+
:repository,
|
2381
|
+
:oauth_token,
|
2382
|
+
:access_token)
|
2143
2383
|
include Aws::Structure
|
2144
2384
|
end
|
2145
2385
|
|
@@ -2166,7 +2406,7 @@ module Aws::Amplify
|
|
2166
2406
|
# branch_name: "BranchName", # required
|
2167
2407
|
# description: "Description",
|
2168
2408
|
# framework: "Framework",
|
2169
|
-
# stage: "PRODUCTION", # accepts PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL
|
2409
|
+
# stage: "PRODUCTION", # accepts PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL, PULL_REQUEST
|
2170
2410
|
# enable_notification: false,
|
2171
2411
|
# enable_auto_build: false,
|
2172
2412
|
# environment_variables: {
|
@@ -2177,6 +2417,7 @@ module Aws::Amplify
|
|
2177
2417
|
# build_spec: "BuildSpec",
|
2178
2418
|
# ttl: "TTL",
|
2179
2419
|
# display_name: "DisplayName",
|
2420
|
+
# enable_pull_request_preview: false,
|
2180
2421
|
# }
|
2181
2422
|
#
|
2182
2423
|
# @!attribute [rw] app_id
|
@@ -2231,6 +2472,10 @@ module Aws::Amplify
|
|
2231
2472
|
# Display name for a branch, will use as the default domain prefix.
|
2232
2473
|
# @return [String]
|
2233
2474
|
#
|
2475
|
+
# @!attribute [rw] enable_pull_request_preview
|
2476
|
+
# Enables Pull Request Preview for this branch.
|
2477
|
+
# @return [Boolean]
|
2478
|
+
#
|
2234
2479
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateBranchRequest AWS API Documentation
|
2235
2480
|
#
|
2236
2481
|
class UpdateBranchRequest < Struct.new(
|
@@ -2246,7 +2491,8 @@ module Aws::Amplify
|
|
2246
2491
|
:enable_basic_auth,
|
2247
2492
|
:build_spec,
|
2248
2493
|
:ttl,
|
2249
|
-
:display_name
|
2494
|
+
:display_name,
|
2495
|
+
:enable_pull_request_preview)
|
2250
2496
|
include Aws::Structure
|
2251
2497
|
end
|
2252
2498
|
|
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.11.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: 2019-
|
11
|
+
date: 2019-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|