aws-sdk-amplify 1.12.0 → 1.17.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 +5 -5
- data/lib/aws-sdk-amplify.rb +7 -4
- data/lib/aws-sdk-amplify/client.rb +275 -21
- data/lib/aws-sdk-amplify/client_api.rb +114 -2
- data/lib/aws-sdk-amplify/errors.rb +29 -7
- data/lib/aws-sdk-amplify/resource.rb +1 -0
- data/lib/aws-sdk-amplify/types.rb +282 -14
- metadata +3 -3
@@ -20,7 +20,6 @@ module Aws::Amplify
|
|
20
20
|
Artifact = Shapes::StructureShape.new(name: 'Artifact')
|
21
21
|
ArtifactFileName = Shapes::StringShape.new(name: 'ArtifactFileName')
|
22
22
|
ArtifactId = Shapes::StringShape.new(name: 'ArtifactId')
|
23
|
-
ArtifactType = Shapes::StringShape.new(name: 'ArtifactType')
|
24
23
|
ArtifactUrl = Shapes::StringShape.new(name: 'ArtifactUrl')
|
25
24
|
Artifacts = Shapes::ListShape.new(name: 'Artifacts')
|
26
25
|
ArtifactsUrl = Shapes::StringShape.new(name: 'ArtifactsUrl')
|
@@ -29,6 +28,9 @@ module Aws::Amplify
|
|
29
28
|
AutoBranchCreationConfig = Shapes::StructureShape.new(name: 'AutoBranchCreationConfig')
|
30
29
|
AutoBranchCreationPattern = Shapes::StringShape.new(name: 'AutoBranchCreationPattern')
|
31
30
|
AutoBranchCreationPatterns = Shapes::ListShape.new(name: 'AutoBranchCreationPatterns')
|
31
|
+
BackendEnvironment = Shapes::StructureShape.new(name: 'BackendEnvironment')
|
32
|
+
BackendEnvironmentArn = Shapes::StringShape.new(name: 'BackendEnvironmentArn')
|
33
|
+
BackendEnvironments = Shapes::ListShape.new(name: 'BackendEnvironments')
|
32
34
|
BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
|
33
35
|
BasicAuthCredentials = Shapes::StringShape.new(name: 'BasicAuthCredentials')
|
34
36
|
Branch = Shapes::StructureShape.new(name: 'Branch')
|
@@ -45,6 +47,8 @@ module Aws::Amplify
|
|
45
47
|
Context = Shapes::StringShape.new(name: 'Context')
|
46
48
|
CreateAppRequest = Shapes::StructureShape.new(name: 'CreateAppRequest')
|
47
49
|
CreateAppResult = Shapes::StructureShape.new(name: 'CreateAppResult')
|
50
|
+
CreateBackendEnvironmentRequest = Shapes::StructureShape.new(name: 'CreateBackendEnvironmentRequest')
|
51
|
+
CreateBackendEnvironmentResult = Shapes::StructureShape.new(name: 'CreateBackendEnvironmentResult')
|
48
52
|
CreateBranchRequest = Shapes::StructureShape.new(name: 'CreateBranchRequest')
|
49
53
|
CreateBranchResult = Shapes::StructureShape.new(name: 'CreateBranchResult')
|
50
54
|
CreateDeploymentRequest = Shapes::StructureShape.new(name: 'CreateDeploymentRequest')
|
@@ -62,6 +66,8 @@ module Aws::Amplify
|
|
62
66
|
DefaultDomain = Shapes::StringShape.new(name: 'DefaultDomain')
|
63
67
|
DeleteAppRequest = Shapes::StructureShape.new(name: 'DeleteAppRequest')
|
64
68
|
DeleteAppResult = Shapes::StructureShape.new(name: 'DeleteAppResult')
|
69
|
+
DeleteBackendEnvironmentRequest = Shapes::StructureShape.new(name: 'DeleteBackendEnvironmentRequest')
|
70
|
+
DeleteBackendEnvironmentResult = Shapes::StructureShape.new(name: 'DeleteBackendEnvironmentResult')
|
65
71
|
DeleteBranchRequest = Shapes::StructureShape.new(name: 'DeleteBranchRequest')
|
66
72
|
DeleteBranchResult = Shapes::StructureShape.new(name: 'DeleteBranchResult')
|
67
73
|
DeleteDomainAssociationRequest = Shapes::StructureShape.new(name: 'DeleteDomainAssociationRequest')
|
@@ -71,6 +77,7 @@ module Aws::Amplify
|
|
71
77
|
DeleteWebhookRequest = Shapes::StructureShape.new(name: 'DeleteWebhookRequest')
|
72
78
|
DeleteWebhookResult = Shapes::StructureShape.new(name: 'DeleteWebhookResult')
|
73
79
|
DependentServiceFailureException = Shapes::StructureShape.new(name: 'DependentServiceFailureException')
|
80
|
+
DeploymentArtifacts = Shapes::StringShape.new(name: 'DeploymentArtifacts')
|
74
81
|
Description = Shapes::StringShape.new(name: 'Description')
|
75
82
|
DisplayName = Shapes::StringShape.new(name: 'DisplayName')
|
76
83
|
DomainAssociation = Shapes::StructureShape.new(name: 'DomainAssociation')
|
@@ -89,6 +96,7 @@ module Aws::Amplify
|
|
89
96
|
EndTime = Shapes::TimestampShape.new(name: 'EndTime')
|
90
97
|
EnvKey = Shapes::StringShape.new(name: 'EnvKey')
|
91
98
|
EnvValue = Shapes::StringShape.new(name: 'EnvValue')
|
99
|
+
EnvironmentName = Shapes::StringShape.new(name: 'EnvironmentName')
|
92
100
|
EnvironmentVariables = Shapes::MapShape.new(name: 'EnvironmentVariables')
|
93
101
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
94
102
|
FileMap = Shapes::MapShape.new(name: 'FileMap')
|
@@ -101,6 +109,8 @@ module Aws::Amplify
|
|
101
109
|
GetAppResult = Shapes::StructureShape.new(name: 'GetAppResult')
|
102
110
|
GetArtifactUrlRequest = Shapes::StructureShape.new(name: 'GetArtifactUrlRequest')
|
103
111
|
GetArtifactUrlResult = Shapes::StructureShape.new(name: 'GetArtifactUrlResult')
|
112
|
+
GetBackendEnvironmentRequest = Shapes::StructureShape.new(name: 'GetBackendEnvironmentRequest')
|
113
|
+
GetBackendEnvironmentResult = Shapes::StructureShape.new(name: 'GetBackendEnvironmentResult')
|
104
114
|
GetBranchRequest = Shapes::StructureShape.new(name: 'GetBranchRequest')
|
105
115
|
GetBranchResult = Shapes::StructureShape.new(name: 'GetBranchResult')
|
106
116
|
GetDomainAssociationRequest = Shapes::StructureShape.new(name: 'GetDomainAssociationRequest')
|
@@ -124,6 +134,8 @@ module Aws::Amplify
|
|
124
134
|
ListAppsResult = Shapes::StructureShape.new(name: 'ListAppsResult')
|
125
135
|
ListArtifactsRequest = Shapes::StructureShape.new(name: 'ListArtifactsRequest')
|
126
136
|
ListArtifactsResult = Shapes::StructureShape.new(name: 'ListArtifactsResult')
|
137
|
+
ListBackendEnvironmentsRequest = Shapes::StructureShape.new(name: 'ListBackendEnvironmentsRequest')
|
138
|
+
ListBackendEnvironmentsResult = Shapes::StructureShape.new(name: 'ListBackendEnvironmentsResult')
|
127
139
|
ListBranchesRequest = Shapes::StructureShape.new(name: 'ListBranchesRequest')
|
128
140
|
ListBranchesResult = Shapes::StructureShape.new(name: 'ListBranchesResult')
|
129
141
|
ListDomainAssociationsRequest = Shapes::StructureShape.new(name: 'ListDomainAssociationsRequest')
|
@@ -143,6 +155,7 @@ module Aws::Amplify
|
|
143
155
|
OauthToken = Shapes::StringShape.new(name: 'OauthToken')
|
144
156
|
Platform = Shapes::StringShape.new(name: 'Platform')
|
145
157
|
ProductionBranch = Shapes::StructureShape.new(name: 'ProductionBranch')
|
158
|
+
PullRequestEnvironmentName = Shapes::StringShape.new(name: 'PullRequestEnvironmentName')
|
146
159
|
Repository = Shapes::StringShape.new(name: 'Repository')
|
147
160
|
ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
|
148
161
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
@@ -150,6 +163,7 @@ module Aws::Amplify
|
|
150
163
|
ServiceRoleArn = Shapes::StringShape.new(name: 'ServiceRoleArn')
|
151
164
|
Source = Shapes::StringShape.new(name: 'Source')
|
152
165
|
SourceUrl = Shapes::StringShape.new(name: 'SourceUrl')
|
166
|
+
StackName = Shapes::StringShape.new(name: 'StackName')
|
153
167
|
Stage = Shapes::StringShape.new(name: 'Stage')
|
154
168
|
StartDeploymentRequest = Shapes::StructureShape.new(name: 'StartDeploymentRequest')
|
155
169
|
StartDeploymentResult = Shapes::StructureShape.new(name: 'StartDeploymentResult')
|
@@ -241,10 +255,21 @@ module Aws::Amplify
|
|
241
255
|
AutoBranchCreationConfig.add_member(:enable_basic_auth, Shapes::ShapeRef.new(shape: EnableBasicAuth, location_name: "enableBasicAuth"))
|
242
256
|
AutoBranchCreationConfig.add_member(:build_spec, Shapes::ShapeRef.new(shape: BuildSpec, location_name: "buildSpec"))
|
243
257
|
AutoBranchCreationConfig.add_member(:enable_pull_request_preview, Shapes::ShapeRef.new(shape: EnablePullRequestPreview, location_name: "enablePullRequestPreview"))
|
258
|
+
AutoBranchCreationConfig.add_member(:pull_request_environment_name, Shapes::ShapeRef.new(shape: PullRequestEnvironmentName, location_name: "pullRequestEnvironmentName"))
|
244
259
|
AutoBranchCreationConfig.struct_class = Types::AutoBranchCreationConfig
|
245
260
|
|
246
261
|
AutoBranchCreationPatterns.member = Shapes::ShapeRef.new(shape: AutoBranchCreationPattern)
|
247
262
|
|
263
|
+
BackendEnvironment.add_member(:backend_environment_arn, Shapes::ShapeRef.new(shape: BackendEnvironmentArn, required: true, location_name: "backendEnvironmentArn"))
|
264
|
+
BackendEnvironment.add_member(:environment_name, Shapes::ShapeRef.new(shape: EnvironmentName, required: true, location_name: "environmentName"))
|
265
|
+
BackendEnvironment.add_member(:stack_name, Shapes::ShapeRef.new(shape: StackName, location_name: "stackName"))
|
266
|
+
BackendEnvironment.add_member(:deployment_artifacts, Shapes::ShapeRef.new(shape: DeploymentArtifacts, location_name: "deploymentArtifacts"))
|
267
|
+
BackendEnvironment.add_member(:create_time, Shapes::ShapeRef.new(shape: CreateTime, required: true, location_name: "createTime"))
|
268
|
+
BackendEnvironment.add_member(:update_time, Shapes::ShapeRef.new(shape: UpdateTime, required: true, location_name: "updateTime"))
|
269
|
+
BackendEnvironment.struct_class = Types::BackendEnvironment
|
270
|
+
|
271
|
+
BackendEnvironments.member = Shapes::ShapeRef.new(shape: BackendEnvironment)
|
272
|
+
|
248
273
|
BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
249
274
|
BadRequestException.struct_class = Types::BadRequestException
|
250
275
|
|
@@ -270,8 +295,10 @@ module Aws::Amplify
|
|
270
295
|
Branch.add_member(:ttl, Shapes::ShapeRef.new(shape: TTL, required: true, location_name: "ttl"))
|
271
296
|
Branch.add_member(:associated_resources, Shapes::ShapeRef.new(shape: AssociatedResources, location_name: "associatedResources"))
|
272
297
|
Branch.add_member(:enable_pull_request_preview, Shapes::ShapeRef.new(shape: EnablePullRequestPreview, required: true, location_name: "enablePullRequestPreview"))
|
298
|
+
Branch.add_member(:pull_request_environment_name, Shapes::ShapeRef.new(shape: PullRequestEnvironmentName, location_name: "pullRequestEnvironmentName"))
|
273
299
|
Branch.add_member(:destination_branch, Shapes::ShapeRef.new(shape: BranchName, location_name: "destinationBranch"))
|
274
300
|
Branch.add_member(:source_branch, Shapes::ShapeRef.new(shape: BranchName, location_name: "sourceBranch"))
|
301
|
+
Branch.add_member(:backend_environment_arn, Shapes::ShapeRef.new(shape: BackendEnvironmentArn, location_name: "backendEnvironmentArn"))
|
275
302
|
Branch.struct_class = Types::Branch
|
276
303
|
|
277
304
|
Branches.member = Shapes::ShapeRef.new(shape: Branch)
|
@@ -298,6 +325,15 @@ module Aws::Amplify
|
|
298
325
|
CreateAppResult.add_member(:app, Shapes::ShapeRef.new(shape: App, required: true, location_name: "app"))
|
299
326
|
CreateAppResult.struct_class = Types::CreateAppResult
|
300
327
|
|
328
|
+
CreateBackendEnvironmentRequest.add_member(:app_id, Shapes::ShapeRef.new(shape: AppId, required: true, location: "uri", location_name: "appId"))
|
329
|
+
CreateBackendEnvironmentRequest.add_member(:environment_name, Shapes::ShapeRef.new(shape: EnvironmentName, required: true, location_name: "environmentName"))
|
330
|
+
CreateBackendEnvironmentRequest.add_member(:stack_name, Shapes::ShapeRef.new(shape: StackName, location_name: "stackName"))
|
331
|
+
CreateBackendEnvironmentRequest.add_member(:deployment_artifacts, Shapes::ShapeRef.new(shape: DeploymentArtifacts, location_name: "deploymentArtifacts"))
|
332
|
+
CreateBackendEnvironmentRequest.struct_class = Types::CreateBackendEnvironmentRequest
|
333
|
+
|
334
|
+
CreateBackendEnvironmentResult.add_member(:backend_environment, Shapes::ShapeRef.new(shape: BackendEnvironment, required: true, location_name: "backendEnvironment"))
|
335
|
+
CreateBackendEnvironmentResult.struct_class = Types::CreateBackendEnvironmentResult
|
336
|
+
|
301
337
|
CreateBranchRequest.add_member(:app_id, Shapes::ShapeRef.new(shape: AppId, required: true, location: "uri", location_name: "appId"))
|
302
338
|
CreateBranchRequest.add_member(:branch_name, Shapes::ShapeRef.new(shape: BranchName, required: true, location_name: "branchName"))
|
303
339
|
CreateBranchRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
|
@@ -313,6 +349,8 @@ module Aws::Amplify
|
|
313
349
|
CreateBranchRequest.add_member(:ttl, Shapes::ShapeRef.new(shape: TTL, location_name: "ttl"))
|
314
350
|
CreateBranchRequest.add_member(:display_name, Shapes::ShapeRef.new(shape: DisplayName, location_name: "displayName"))
|
315
351
|
CreateBranchRequest.add_member(:enable_pull_request_preview, Shapes::ShapeRef.new(shape: EnablePullRequestPreview, location_name: "enablePullRequestPreview"))
|
352
|
+
CreateBranchRequest.add_member(:pull_request_environment_name, Shapes::ShapeRef.new(shape: PullRequestEnvironmentName, location_name: "pullRequestEnvironmentName"))
|
353
|
+
CreateBranchRequest.add_member(:backend_environment_arn, Shapes::ShapeRef.new(shape: BackendEnvironmentArn, location_name: "backendEnvironmentArn"))
|
316
354
|
CreateBranchRequest.struct_class = Types::CreateBranchRequest
|
317
355
|
|
318
356
|
CreateBranchResult.add_member(:branch, Shapes::ShapeRef.new(shape: Branch, required: true, location_name: "branch"))
|
@@ -361,6 +399,13 @@ module Aws::Amplify
|
|
361
399
|
DeleteAppResult.add_member(:app, Shapes::ShapeRef.new(shape: App, required: true, location_name: "app"))
|
362
400
|
DeleteAppResult.struct_class = Types::DeleteAppResult
|
363
401
|
|
402
|
+
DeleteBackendEnvironmentRequest.add_member(:app_id, Shapes::ShapeRef.new(shape: AppId, required: true, location: "uri", location_name: "appId"))
|
403
|
+
DeleteBackendEnvironmentRequest.add_member(:environment_name, Shapes::ShapeRef.new(shape: EnvironmentName, required: true, location: "uri", location_name: "environmentName"))
|
404
|
+
DeleteBackendEnvironmentRequest.struct_class = Types::DeleteBackendEnvironmentRequest
|
405
|
+
|
406
|
+
DeleteBackendEnvironmentResult.add_member(:backend_environment, Shapes::ShapeRef.new(shape: BackendEnvironment, required: true, location_name: "backendEnvironment"))
|
407
|
+
DeleteBackendEnvironmentResult.struct_class = Types::DeleteBackendEnvironmentResult
|
408
|
+
|
364
409
|
DeleteBranchRequest.add_member(:app_id, Shapes::ShapeRef.new(shape: AppId, required: true, location: "uri", location_name: "appId"))
|
365
410
|
DeleteBranchRequest.add_member(:branch_name, Shapes::ShapeRef.new(shape: BranchName, required: true, location: "uri", location_name: "branchName"))
|
366
411
|
DeleteBranchRequest.struct_class = Types::DeleteBranchRequest
|
@@ -434,6 +479,13 @@ module Aws::Amplify
|
|
434
479
|
GetArtifactUrlResult.add_member(:artifact_url, Shapes::ShapeRef.new(shape: ArtifactUrl, required: true, location_name: "artifactUrl"))
|
435
480
|
GetArtifactUrlResult.struct_class = Types::GetArtifactUrlResult
|
436
481
|
|
482
|
+
GetBackendEnvironmentRequest.add_member(:app_id, Shapes::ShapeRef.new(shape: AppId, required: true, location: "uri", location_name: "appId"))
|
483
|
+
GetBackendEnvironmentRequest.add_member(:environment_name, Shapes::ShapeRef.new(shape: EnvironmentName, required: true, location: "uri", location_name: "environmentName"))
|
484
|
+
GetBackendEnvironmentRequest.struct_class = Types::GetBackendEnvironmentRequest
|
485
|
+
|
486
|
+
GetBackendEnvironmentResult.add_member(:backend_environment, Shapes::ShapeRef.new(shape: BackendEnvironment, required: true, location_name: "backendEnvironment"))
|
487
|
+
GetBackendEnvironmentResult.struct_class = Types::GetBackendEnvironmentResult
|
488
|
+
|
437
489
|
GetBranchRequest.add_member(:app_id, Shapes::ShapeRef.new(shape: AppId, required: true, location: "uri", location_name: "appId"))
|
438
490
|
GetBranchRequest.add_member(:branch_name, Shapes::ShapeRef.new(shape: BranchName, required: true, location: "uri", location_name: "branchName"))
|
439
491
|
GetBranchRequest.struct_class = Types::GetBranchRequest
|
@@ -496,7 +548,6 @@ module Aws::Amplify
|
|
496
548
|
ListArtifactsRequest.add_member(:app_id, Shapes::ShapeRef.new(shape: AppId, required: true, location: "uri", location_name: "appId"))
|
497
549
|
ListArtifactsRequest.add_member(:branch_name, Shapes::ShapeRef.new(shape: BranchName, required: true, location: "uri", location_name: "branchName"))
|
498
550
|
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
551
|
ListArtifactsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
501
552
|
ListArtifactsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
502
553
|
ListArtifactsRequest.struct_class = Types::ListArtifactsRequest
|
@@ -505,6 +556,16 @@ module Aws::Amplify
|
|
505
556
|
ListArtifactsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
506
557
|
ListArtifactsResult.struct_class = Types::ListArtifactsResult
|
507
558
|
|
559
|
+
ListBackendEnvironmentsRequest.add_member(:app_id, Shapes::ShapeRef.new(shape: AppId, required: true, location: "uri", location_name: "appId"))
|
560
|
+
ListBackendEnvironmentsRequest.add_member(:environment_name, Shapes::ShapeRef.new(shape: EnvironmentName, location_name: "environmentName"))
|
561
|
+
ListBackendEnvironmentsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
562
|
+
ListBackendEnvironmentsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
563
|
+
ListBackendEnvironmentsRequest.struct_class = Types::ListBackendEnvironmentsRequest
|
564
|
+
|
565
|
+
ListBackendEnvironmentsResult.add_member(:backend_environments, Shapes::ShapeRef.new(shape: BackendEnvironments, required: true, location_name: "backendEnvironments"))
|
566
|
+
ListBackendEnvironmentsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
567
|
+
ListBackendEnvironmentsResult.struct_class = Types::ListBackendEnvironmentsResult
|
568
|
+
|
508
569
|
ListBranchesRequest.add_member(:app_id, Shapes::ShapeRef.new(shape: AppId, required: true, location: "uri", location_name: "appId"))
|
509
570
|
ListBranchesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
510
571
|
ListBranchesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
@@ -678,6 +739,8 @@ module Aws::Amplify
|
|
678
739
|
UpdateBranchRequest.add_member(:ttl, Shapes::ShapeRef.new(shape: TTL, location_name: "ttl"))
|
679
740
|
UpdateBranchRequest.add_member(:display_name, Shapes::ShapeRef.new(shape: DisplayName, location_name: "displayName"))
|
680
741
|
UpdateBranchRequest.add_member(:enable_pull_request_preview, Shapes::ShapeRef.new(shape: EnablePullRequestPreview, location_name: "enablePullRequestPreview"))
|
742
|
+
UpdateBranchRequest.add_member(:pull_request_environment_name, Shapes::ShapeRef.new(shape: PullRequestEnvironmentName, location_name: "pullRequestEnvironmentName"))
|
743
|
+
UpdateBranchRequest.add_member(:backend_environment_arn, Shapes::ShapeRef.new(shape: BackendEnvironmentArn, location_name: "backendEnvironmentArn"))
|
681
744
|
UpdateBranchRequest.struct_class = Types::UpdateBranchRequest
|
682
745
|
|
683
746
|
UpdateBranchResult.add_member(:branch, Shapes::ShapeRef.new(shape: Branch, required: true, location_name: "branch"))
|
@@ -743,6 +806,19 @@ module Aws::Amplify
|
|
743
806
|
o.errors << Shapes::ShapeRef.new(shape: DependentServiceFailureException)
|
744
807
|
end)
|
745
808
|
|
809
|
+
api.add_operation(:create_backend_environment, Seahorse::Model::Operation.new.tap do |o|
|
810
|
+
o.name = "CreateBackendEnvironment"
|
811
|
+
o.http_method = "POST"
|
812
|
+
o.http_request_uri = "/apps/{appId}/backendenvironments"
|
813
|
+
o.input = Shapes::ShapeRef.new(shape: CreateBackendEnvironmentRequest)
|
814
|
+
o.output = Shapes::ShapeRef.new(shape: CreateBackendEnvironmentResult)
|
815
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
816
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
817
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
818
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
819
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
820
|
+
end)
|
821
|
+
|
746
822
|
api.add_operation(:create_branch, Seahorse::Model::Operation.new.tap do |o|
|
747
823
|
o.name = "CreateBranch"
|
748
824
|
o.http_method = "POST"
|
@@ -810,6 +886,19 @@ module Aws::Amplify
|
|
810
886
|
o.errors << Shapes::ShapeRef.new(shape: DependentServiceFailureException)
|
811
887
|
end)
|
812
888
|
|
889
|
+
api.add_operation(:delete_backend_environment, Seahorse::Model::Operation.new.tap do |o|
|
890
|
+
o.name = "DeleteBackendEnvironment"
|
891
|
+
o.http_method = "DELETE"
|
892
|
+
o.http_request_uri = "/apps/{appId}/backendenvironments/{environmentName}"
|
893
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteBackendEnvironmentRequest)
|
894
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteBackendEnvironmentResult)
|
895
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
896
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
897
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
898
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
899
|
+
o.errors << Shapes::ShapeRef.new(shape: DependentServiceFailureException)
|
900
|
+
end)
|
901
|
+
|
813
902
|
api.add_operation(:delete_branch, Seahorse::Model::Operation.new.tap do |o|
|
814
903
|
o.name = "DeleteBranch"
|
815
904
|
o.http_method = "DELETE"
|
@@ -899,6 +988,18 @@ module Aws::Amplify
|
|
899
988
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
900
989
|
end)
|
901
990
|
|
991
|
+
api.add_operation(:get_backend_environment, Seahorse::Model::Operation.new.tap do |o|
|
992
|
+
o.name = "GetBackendEnvironment"
|
993
|
+
o.http_method = "GET"
|
994
|
+
o.http_request_uri = "/apps/{appId}/backendenvironments/{environmentName}"
|
995
|
+
o.input = Shapes::ShapeRef.new(shape: GetBackendEnvironmentRequest)
|
996
|
+
o.output = Shapes::ShapeRef.new(shape: GetBackendEnvironmentResult)
|
997
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
998
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
999
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
1000
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
1001
|
+
end)
|
1002
|
+
|
902
1003
|
api.add_operation(:get_branch, Seahorse::Model::Operation.new.tap do |o|
|
903
1004
|
o.name = "GetBranch"
|
904
1005
|
o.http_method = "GET"
|
@@ -972,6 +1073,17 @@ module Aws::Amplify
|
|
972
1073
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
973
1074
|
end)
|
974
1075
|
|
1076
|
+
api.add_operation(:list_backend_environments, Seahorse::Model::Operation.new.tap do |o|
|
1077
|
+
o.name = "ListBackendEnvironments"
|
1078
|
+
o.http_method = "GET"
|
1079
|
+
o.http_request_uri = "/apps/{appId}/backendenvironments"
|
1080
|
+
o.input = Shapes::ShapeRef.new(shape: ListBackendEnvironmentsRequest)
|
1081
|
+
o.output = Shapes::ShapeRef.new(shape: ListBackendEnvironmentsResult)
|
1082
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
1083
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
1084
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
1085
|
+
end)
|
1086
|
+
|
975
1087
|
api.add_operation(:list_branches, Seahorse::Model::Operation.new.tap do |o|
|
976
1088
|
o.name = "ListBranches"
|
977
1089
|
o.http_method = "GET"
|
@@ -6,6 +6,35 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::Amplify
|
9
|
+
|
10
|
+
# When Amplify returns an error response, the Ruby SDK constructs and raises an error.
|
11
|
+
# These errors all extend Aws::Amplify::Errors::ServiceError < {Aws::Errors::ServiceError}
|
12
|
+
#
|
13
|
+
# You can rescue all Amplify errors using ServiceError:
|
14
|
+
#
|
15
|
+
# begin
|
16
|
+
# # do stuff
|
17
|
+
# rescue Aws::Amplify::Errors::ServiceError
|
18
|
+
# # rescues all Amplify API errors
|
19
|
+
# end
|
20
|
+
#
|
21
|
+
#
|
22
|
+
# ## Request Context
|
23
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
24
|
+
# information about the request that generated the error.
|
25
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
26
|
+
#
|
27
|
+
# ## Error Classes
|
28
|
+
# * {BadRequestException}
|
29
|
+
# * {DependentServiceFailureException}
|
30
|
+
# * {InternalFailureException}
|
31
|
+
# * {LimitExceededException}
|
32
|
+
# * {NotFoundException}
|
33
|
+
# * {ResourceNotFoundException}
|
34
|
+
# * {UnauthorizedException}
|
35
|
+
#
|
36
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
37
|
+
# if they are not defined above.
|
9
38
|
module Errors
|
10
39
|
|
11
40
|
extend Aws::Errors::DynamicErrors
|
@@ -23,7 +52,6 @@ module Aws::Amplify
|
|
23
52
|
def message
|
24
53
|
@message || @data[:message]
|
25
54
|
end
|
26
|
-
|
27
55
|
end
|
28
56
|
|
29
57
|
class DependentServiceFailureException < ServiceError
|
@@ -39,7 +67,6 @@ module Aws::Amplify
|
|
39
67
|
def message
|
40
68
|
@message || @data[:message]
|
41
69
|
end
|
42
|
-
|
43
70
|
end
|
44
71
|
|
45
72
|
class InternalFailureException < ServiceError
|
@@ -55,7 +82,6 @@ module Aws::Amplify
|
|
55
82
|
def message
|
56
83
|
@message || @data[:message]
|
57
84
|
end
|
58
|
-
|
59
85
|
end
|
60
86
|
|
61
87
|
class LimitExceededException < ServiceError
|
@@ -71,7 +97,6 @@ module Aws::Amplify
|
|
71
97
|
def message
|
72
98
|
@message || @data[:message]
|
73
99
|
end
|
74
|
-
|
75
100
|
end
|
76
101
|
|
77
102
|
class NotFoundException < ServiceError
|
@@ -87,7 +112,6 @@ module Aws::Amplify
|
|
87
112
|
def message
|
88
113
|
@message || @data[:message]
|
89
114
|
end
|
90
|
-
|
91
115
|
end
|
92
116
|
|
93
117
|
class ResourceNotFoundException < ServiceError
|
@@ -108,7 +132,6 @@ module Aws::Amplify
|
|
108
132
|
def message
|
109
133
|
@message || @data[:message]
|
110
134
|
end
|
111
|
-
|
112
135
|
end
|
113
136
|
|
114
137
|
class UnauthorizedException < ServiceError
|
@@ -124,7 +147,6 @@ module Aws::Amplify
|
|
124
147
|
def message
|
125
148
|
@message || @data[:message]
|
126
149
|
end
|
127
|
-
|
128
150
|
end
|
129
151
|
|
130
152
|
end
|
@@ -156,6 +156,7 @@ module Aws::Amplify
|
|
156
156
|
# enable_basic_auth: false,
|
157
157
|
# build_spec: "BuildSpec",
|
158
158
|
# enable_pull_request_preview: false,
|
159
|
+
# pull_request_environment_name: "PullRequestEnvironmentName",
|
159
160
|
# }
|
160
161
|
#
|
161
162
|
# @!attribute [rw] stage
|
@@ -190,6 +191,10 @@ module Aws::Amplify
|
|
190
191
|
# Enables Pull Request Preview for auto created branch.
|
191
192
|
# @return [Boolean]
|
192
193
|
#
|
194
|
+
# @!attribute [rw] pull_request_environment_name
|
195
|
+
# The Amplify Environment name for the pull request.
|
196
|
+
# @return [String]
|
197
|
+
#
|
193
198
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/AutoBranchCreationConfig AWS API Documentation
|
194
199
|
#
|
195
200
|
class AutoBranchCreationConfig < Struct.new(
|
@@ -200,7 +205,48 @@ module Aws::Amplify
|
|
200
205
|
:basic_auth_credentials,
|
201
206
|
:enable_basic_auth,
|
202
207
|
:build_spec,
|
203
|
-
:enable_pull_request_preview
|
208
|
+
:enable_pull_request_preview,
|
209
|
+
:pull_request_environment_name)
|
210
|
+
include Aws::Structure
|
211
|
+
end
|
212
|
+
|
213
|
+
# Backend environment for an Amplify App.
|
214
|
+
#
|
215
|
+
# @!attribute [rw] backend_environment_arn
|
216
|
+
# Arn for a backend environment, part of an Amplify App.
|
217
|
+
# @return [String]
|
218
|
+
#
|
219
|
+
# @!attribute [rw] environment_name
|
220
|
+
# Name for a backend environment, part of an Amplify App.
|
221
|
+
# @return [String]
|
222
|
+
#
|
223
|
+
# @!attribute [rw] stack_name
|
224
|
+
# CloudFormation stack name of backend environment.
|
225
|
+
# @return [String]
|
226
|
+
#
|
227
|
+
# @!attribute [rw] deployment_artifacts
|
228
|
+
# Name of deployment artifacts.
|
229
|
+
# @return [String]
|
230
|
+
#
|
231
|
+
# @!attribute [rw] create_time
|
232
|
+
# Creation date and time for a backend environment, part of an Amplify
|
233
|
+
# App.
|
234
|
+
# @return [Time]
|
235
|
+
#
|
236
|
+
# @!attribute [rw] update_time
|
237
|
+
# Last updated date and time for a backend environment, part of an
|
238
|
+
# Amplify App.
|
239
|
+
# @return [Time]
|
240
|
+
#
|
241
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/BackendEnvironment AWS API Documentation
|
242
|
+
#
|
243
|
+
class BackendEnvironment < Struct.new(
|
244
|
+
:backend_environment_arn,
|
245
|
+
:environment_name,
|
246
|
+
:stack_name,
|
247
|
+
:deployment_artifacts,
|
248
|
+
:create_time,
|
249
|
+
:update_time)
|
204
250
|
include Aws::Structure
|
205
251
|
end
|
206
252
|
|
@@ -308,6 +354,10 @@ module Aws::Amplify
|
|
308
354
|
# Enables Pull Request Preview for this branch.
|
309
355
|
# @return [Boolean]
|
310
356
|
#
|
357
|
+
# @!attribute [rw] pull_request_environment_name
|
358
|
+
# The Amplify Environment name for the pull request.
|
359
|
+
# @return [String]
|
360
|
+
#
|
311
361
|
# @!attribute [rw] destination_branch
|
312
362
|
# The destination branch if the branch is a pull request branch.
|
313
363
|
# @return [String]
|
@@ -316,6 +366,10 @@ module Aws::Amplify
|
|
316
366
|
# The source branch if the branch is a pull request branch.
|
317
367
|
# @return [String]
|
318
368
|
#
|
369
|
+
# @!attribute [rw] backend_environment_arn
|
370
|
+
# ARN for a Backend Environment, part of an Amplify App.
|
371
|
+
# @return [String]
|
372
|
+
#
|
319
373
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/Branch AWS API Documentation
|
320
374
|
#
|
321
375
|
class Branch < Struct.new(
|
@@ -341,8 +395,10 @@ module Aws::Amplify
|
|
341
395
|
:ttl,
|
342
396
|
:associated_resources,
|
343
397
|
:enable_pull_request_preview,
|
398
|
+
:pull_request_environment_name,
|
344
399
|
:destination_branch,
|
345
|
-
:source_branch
|
400
|
+
:source_branch,
|
401
|
+
:backend_environment_arn)
|
346
402
|
include Aws::Structure
|
347
403
|
end
|
348
404
|
|
@@ -390,6 +446,7 @@ module Aws::Amplify
|
|
390
446
|
# enable_basic_auth: false,
|
391
447
|
# build_spec: "BuildSpec",
|
392
448
|
# enable_pull_request_preview: false,
|
449
|
+
# pull_request_environment_name: "PullRequestEnvironmentName",
|
393
450
|
# },
|
394
451
|
# }
|
395
452
|
#
|
@@ -501,6 +558,57 @@ module Aws::Amplify
|
|
501
558
|
include Aws::Structure
|
502
559
|
end
|
503
560
|
|
561
|
+
# Request structure for a backend environment create request.
|
562
|
+
#
|
563
|
+
# @note When making an API call, you may pass CreateBackendEnvironmentRequest
|
564
|
+
# data as a hash:
|
565
|
+
#
|
566
|
+
# {
|
567
|
+
# app_id: "AppId", # required
|
568
|
+
# environment_name: "EnvironmentName", # required
|
569
|
+
# stack_name: "StackName",
|
570
|
+
# deployment_artifacts: "DeploymentArtifacts",
|
571
|
+
# }
|
572
|
+
#
|
573
|
+
# @!attribute [rw] app_id
|
574
|
+
# Unique Id for an Amplify App.
|
575
|
+
# @return [String]
|
576
|
+
#
|
577
|
+
# @!attribute [rw] environment_name
|
578
|
+
# Name for the backend environment.
|
579
|
+
# @return [String]
|
580
|
+
#
|
581
|
+
# @!attribute [rw] stack_name
|
582
|
+
# CloudFormation stack name of backend environment.
|
583
|
+
# @return [String]
|
584
|
+
#
|
585
|
+
# @!attribute [rw] deployment_artifacts
|
586
|
+
# Name of deployment artifacts.
|
587
|
+
# @return [String]
|
588
|
+
#
|
589
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateBackendEnvironmentRequest AWS API Documentation
|
590
|
+
#
|
591
|
+
class CreateBackendEnvironmentRequest < Struct.new(
|
592
|
+
:app_id,
|
593
|
+
:environment_name,
|
594
|
+
:stack_name,
|
595
|
+
:deployment_artifacts)
|
596
|
+
include Aws::Structure
|
597
|
+
end
|
598
|
+
|
599
|
+
# Result structure for create backend environment.
|
600
|
+
#
|
601
|
+
# @!attribute [rw] backend_environment
|
602
|
+
# Backend environment structure for an amplify App.
|
603
|
+
# @return [Types::BackendEnvironment]
|
604
|
+
#
|
605
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateBackendEnvironmentResult AWS API Documentation
|
606
|
+
#
|
607
|
+
class CreateBackendEnvironmentResult < Struct.new(
|
608
|
+
:backend_environment)
|
609
|
+
include Aws::Structure
|
610
|
+
end
|
611
|
+
|
504
612
|
# Request structure for a branch create request.
|
505
613
|
#
|
506
614
|
# @note When making an API call, you may pass CreateBranchRequest
|
@@ -526,6 +634,8 @@ module Aws::Amplify
|
|
526
634
|
# ttl: "TTL",
|
527
635
|
# display_name: "DisplayName",
|
528
636
|
# enable_pull_request_preview: false,
|
637
|
+
# pull_request_environment_name: "PullRequestEnvironmentName",
|
638
|
+
# backend_environment_arn: "BackendEnvironmentArn",
|
529
639
|
# }
|
530
640
|
#
|
531
641
|
# @!attribute [rw] app_id
|
@@ -588,6 +698,14 @@ module Aws::Amplify
|
|
588
698
|
# Enables Pull Request Preview for this branch.
|
589
699
|
# @return [Boolean]
|
590
700
|
#
|
701
|
+
# @!attribute [rw] pull_request_environment_name
|
702
|
+
# The Amplify Environment name for the pull request.
|
703
|
+
# @return [String]
|
704
|
+
#
|
705
|
+
# @!attribute [rw] backend_environment_arn
|
706
|
+
# ARN for a Backend Environment, part of an Amplify App.
|
707
|
+
# @return [String]
|
708
|
+
#
|
591
709
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateBranchRequest AWS API Documentation
|
592
710
|
#
|
593
711
|
class CreateBranchRequest < Struct.new(
|
@@ -605,7 +723,9 @@ module Aws::Amplify
|
|
605
723
|
:build_spec,
|
606
724
|
:ttl,
|
607
725
|
:display_name,
|
608
|
-
:enable_pull_request_preview
|
726
|
+
:enable_pull_request_preview,
|
727
|
+
:pull_request_environment_name,
|
728
|
+
:backend_environment_arn)
|
609
729
|
include Aws::Structure
|
610
730
|
end
|
611
731
|
|
@@ -710,7 +830,8 @@ module Aws::Amplify
|
|
710
830
|
# @return [String]
|
711
831
|
#
|
712
832
|
# @!attribute [rw] enable_auto_sub_domain
|
713
|
-
# Enables automated creation of Subdomains for branches.
|
833
|
+
# Enables automated creation of Subdomains for branches. (Currently
|
834
|
+
# not supported)
|
714
835
|
# @return [Boolean]
|
715
836
|
#
|
716
837
|
# @!attribute [rw] sub_domain_settings
|
@@ -857,6 +978,45 @@ module Aws::Amplify
|
|
857
978
|
include Aws::Structure
|
858
979
|
end
|
859
980
|
|
981
|
+
# Request structure for delete backend environment request.
|
982
|
+
#
|
983
|
+
# @note When making an API call, you may pass DeleteBackendEnvironmentRequest
|
984
|
+
# data as a hash:
|
985
|
+
#
|
986
|
+
# {
|
987
|
+
# app_id: "AppId", # required
|
988
|
+
# environment_name: "EnvironmentName", # required
|
989
|
+
# }
|
990
|
+
#
|
991
|
+
# @!attribute [rw] app_id
|
992
|
+
# Unique Id of an Amplify App.
|
993
|
+
# @return [String]
|
994
|
+
#
|
995
|
+
# @!attribute [rw] environment_name
|
996
|
+
# Name of a backend environment of an Amplify App.
|
997
|
+
# @return [String]
|
998
|
+
#
|
999
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteBackendEnvironmentRequest AWS API Documentation
|
1000
|
+
#
|
1001
|
+
class DeleteBackendEnvironmentRequest < Struct.new(
|
1002
|
+
:app_id,
|
1003
|
+
:environment_name)
|
1004
|
+
include Aws::Structure
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
# Result structure of a delete backend environment result.
|
1008
|
+
#
|
1009
|
+
# @!attribute [rw] backend_environment
|
1010
|
+
# Backend environment structure for an Amplify App.
|
1011
|
+
# @return [Types::BackendEnvironment]
|
1012
|
+
#
|
1013
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteBackendEnvironmentResult AWS API Documentation
|
1014
|
+
#
|
1015
|
+
class DeleteBackendEnvironmentResult < Struct.new(
|
1016
|
+
:backend_environment)
|
1017
|
+
include Aws::Structure
|
1018
|
+
end
|
1019
|
+
|
860
1020
|
# Request structure for delete branch request.
|
861
1021
|
#
|
862
1022
|
# @note When making an API call, you may pass DeleteBranchRequest
|
@@ -1037,7 +1197,8 @@ module Aws::Amplify
|
|
1037
1197
|
# @return [String]
|
1038
1198
|
#
|
1039
1199
|
# @!attribute [rw] enable_auto_sub_domain
|
1040
|
-
# Enables automated creation of Subdomains for branches.
|
1200
|
+
# Enables automated creation of Subdomains for branches. (Currently
|
1201
|
+
# not supported)
|
1041
1202
|
# @return [Boolean]
|
1042
1203
|
#
|
1043
1204
|
# @!attribute [rw] domain_status
|
@@ -1190,7 +1351,46 @@ module Aws::Amplify
|
|
1190
1351
|
include Aws::Structure
|
1191
1352
|
end
|
1192
1353
|
|
1193
|
-
#
|
1354
|
+
# Request structure for get backend environment request.
|
1355
|
+
#
|
1356
|
+
# @note When making an API call, you may pass GetBackendEnvironmentRequest
|
1357
|
+
# data as a hash:
|
1358
|
+
#
|
1359
|
+
# {
|
1360
|
+
# app_id: "AppId", # required
|
1361
|
+
# environment_name: "EnvironmentName", # required
|
1362
|
+
# }
|
1363
|
+
#
|
1364
|
+
# @!attribute [rw] app_id
|
1365
|
+
# Unique Id for an Amplify App.
|
1366
|
+
# @return [String]
|
1367
|
+
#
|
1368
|
+
# @!attribute [rw] environment_name
|
1369
|
+
# Name for the backend environment.
|
1370
|
+
# @return [String]
|
1371
|
+
#
|
1372
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetBackendEnvironmentRequest AWS API Documentation
|
1373
|
+
#
|
1374
|
+
class GetBackendEnvironmentRequest < Struct.new(
|
1375
|
+
:app_id,
|
1376
|
+
:environment_name)
|
1377
|
+
include Aws::Structure
|
1378
|
+
end
|
1379
|
+
|
1380
|
+
# Result structure for get backend environment result.
|
1381
|
+
#
|
1382
|
+
# @!attribute [rw] backend_environment
|
1383
|
+
# Backend environment structure for an an Amplify App.
|
1384
|
+
# @return [Types::BackendEnvironment]
|
1385
|
+
#
|
1386
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetBackendEnvironmentResult AWS API Documentation
|
1387
|
+
#
|
1388
|
+
class GetBackendEnvironmentResult < Struct.new(
|
1389
|
+
:backend_environment)
|
1390
|
+
include Aws::Structure
|
1391
|
+
end
|
1392
|
+
|
1393
|
+
# Request structure for get branch request.
|
1194
1394
|
#
|
1195
1395
|
# @note When making an API call, you may pass GetBranchRequest
|
1196
1396
|
# data as a hash:
|
@@ -1499,7 +1699,6 @@ module Aws::Amplify
|
|
1499
1699
|
# app_id: "AppId", # required
|
1500
1700
|
# branch_name: "BranchName", # required
|
1501
1701
|
# job_id: "JobId", # required
|
1502
|
-
# artifact_type: "TEST", # accepts TEST
|
1503
1702
|
# next_token: "NextToken",
|
1504
1703
|
# max_results: 1,
|
1505
1704
|
# }
|
@@ -1516,10 +1715,6 @@ module Aws::Amplify
|
|
1516
1715
|
# Unique Id for an Job.
|
1517
1716
|
# @return [String]
|
1518
1717
|
#
|
1519
|
-
# @!attribute [rw] artifact_type
|
1520
|
-
# Type for an artifact.
|
1521
|
-
# @return [String]
|
1522
|
-
#
|
1523
1718
|
# @!attribute [rw] next_token
|
1524
1719
|
# Pagination token. Set to null to start listing artifacts from start.
|
1525
1720
|
# If non-null pagination token is returned in a result, then pass its
|
@@ -1536,7 +1731,6 @@ module Aws::Amplify
|
|
1536
1731
|
:app_id,
|
1537
1732
|
:branch_name,
|
1538
1733
|
:job_id,
|
1539
|
-
:artifact_type,
|
1540
1734
|
:next_token,
|
1541
1735
|
:max_results)
|
1542
1736
|
include Aws::Structure
|
@@ -1562,6 +1756,66 @@ module Aws::Amplify
|
|
1562
1756
|
include Aws::Structure
|
1563
1757
|
end
|
1564
1758
|
|
1759
|
+
# Request structure for list backend environments request.
|
1760
|
+
#
|
1761
|
+
# @note When making an API call, you may pass ListBackendEnvironmentsRequest
|
1762
|
+
# data as a hash:
|
1763
|
+
#
|
1764
|
+
# {
|
1765
|
+
# app_id: "AppId", # required
|
1766
|
+
# environment_name: "EnvironmentName",
|
1767
|
+
# next_token: "NextToken",
|
1768
|
+
# max_results: 1,
|
1769
|
+
# }
|
1770
|
+
#
|
1771
|
+
# @!attribute [rw] app_id
|
1772
|
+
# Unique Id for an amplify App.
|
1773
|
+
# @return [String]
|
1774
|
+
#
|
1775
|
+
# @!attribute [rw] environment_name
|
1776
|
+
# Name of the backend environment
|
1777
|
+
# @return [String]
|
1778
|
+
#
|
1779
|
+
# @!attribute [rw] next_token
|
1780
|
+
# Pagination token. Set to null to start listing backen environments
|
1781
|
+
# from start. If a non-null pagination token is returned in a result,
|
1782
|
+
# then pass its value in here to list more backend environments.
|
1783
|
+
# @return [String]
|
1784
|
+
#
|
1785
|
+
# @!attribute [rw] max_results
|
1786
|
+
# Maximum number of records to list in a single response.
|
1787
|
+
# @return [Integer]
|
1788
|
+
#
|
1789
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListBackendEnvironmentsRequest AWS API Documentation
|
1790
|
+
#
|
1791
|
+
class ListBackendEnvironmentsRequest < Struct.new(
|
1792
|
+
:app_id,
|
1793
|
+
:environment_name,
|
1794
|
+
:next_token,
|
1795
|
+
:max_results)
|
1796
|
+
include Aws::Structure
|
1797
|
+
end
|
1798
|
+
|
1799
|
+
# Result structure for list backend environments result.
|
1800
|
+
#
|
1801
|
+
# @!attribute [rw] backend_environments
|
1802
|
+
# List of backend environments for an Amplify App.
|
1803
|
+
# @return [Array<Types::BackendEnvironment>]
|
1804
|
+
#
|
1805
|
+
# @!attribute [rw] next_token
|
1806
|
+
# Pagination token. If non-null pagination token is returned in a
|
1807
|
+
# result, then pass its value in another request to fetch more
|
1808
|
+
# entries.
|
1809
|
+
# @return [String]
|
1810
|
+
#
|
1811
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListBackendEnvironmentsResult AWS API Documentation
|
1812
|
+
#
|
1813
|
+
class ListBackendEnvironmentsResult < Struct.new(
|
1814
|
+
:backend_environments,
|
1815
|
+
:next_token)
|
1816
|
+
include Aws::Structure
|
1817
|
+
end
|
1818
|
+
|
1565
1819
|
# Request structure for list branches request.
|
1566
1820
|
#
|
1567
1821
|
# @note When making an API call, you may pass ListBranchesRequest
|
@@ -2282,6 +2536,7 @@ module Aws::Amplify
|
|
2282
2536
|
# enable_basic_auth: false,
|
2283
2537
|
# build_spec: "BuildSpec",
|
2284
2538
|
# enable_pull_request_preview: false,
|
2539
|
+
# pull_request_environment_name: "PullRequestEnvironmentName",
|
2285
2540
|
# },
|
2286
2541
|
# repository: "Repository",
|
2287
2542
|
# oauth_token: "OauthToken",
|
@@ -2418,6 +2673,8 @@ module Aws::Amplify
|
|
2418
2673
|
# ttl: "TTL",
|
2419
2674
|
# display_name: "DisplayName",
|
2420
2675
|
# enable_pull_request_preview: false,
|
2676
|
+
# pull_request_environment_name: "PullRequestEnvironmentName",
|
2677
|
+
# backend_environment_arn: "BackendEnvironmentArn",
|
2421
2678
|
# }
|
2422
2679
|
#
|
2423
2680
|
# @!attribute [rw] app_id
|
@@ -2476,6 +2733,14 @@ module Aws::Amplify
|
|
2476
2733
|
# Enables Pull Request Preview for this branch.
|
2477
2734
|
# @return [Boolean]
|
2478
2735
|
#
|
2736
|
+
# @!attribute [rw] pull_request_environment_name
|
2737
|
+
# The Amplify Environment name for the pull request.
|
2738
|
+
# @return [String]
|
2739
|
+
#
|
2740
|
+
# @!attribute [rw] backend_environment_arn
|
2741
|
+
# ARN for a Backend Environment, part of an Amplify App.
|
2742
|
+
# @return [String]
|
2743
|
+
#
|
2479
2744
|
# @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateBranchRequest AWS API Documentation
|
2480
2745
|
#
|
2481
2746
|
class UpdateBranchRequest < Struct.new(
|
@@ -2492,7 +2757,9 @@ module Aws::Amplify
|
|
2492
2757
|
:build_spec,
|
2493
2758
|
:ttl,
|
2494
2759
|
:display_name,
|
2495
|
-
:enable_pull_request_preview
|
2760
|
+
:enable_pull_request_preview,
|
2761
|
+
:pull_request_environment_name,
|
2762
|
+
:backend_environment_arn)
|
2496
2763
|
include Aws::Structure
|
2497
2764
|
end
|
2498
2765
|
|
@@ -2535,7 +2802,8 @@ module Aws::Amplify
|
|
2535
2802
|
# @return [String]
|
2536
2803
|
#
|
2537
2804
|
# @!attribute [rw] enable_auto_sub_domain
|
2538
|
-
# Enables automated creation of Subdomains for branches.
|
2805
|
+
# Enables automated creation of Subdomains for branches. (Currently
|
2806
|
+
# not supported)
|
2539
2807
|
# @return [Boolean]
|
2540
2808
|
#
|
2541
2809
|
# @!attribute [rw] sub_domain_settings
|