aws-sdk-proton 1.17.0 → 1.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-proton/client.rb +158 -60
- data/lib/aws-sdk-proton/client_api.rb +21 -12
- data/lib/aws-sdk-proton/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-proton/endpoint_provider.rb +111 -0
- data/lib/aws-sdk-proton/endpoints.rb +1065 -0
- data/lib/aws-sdk-proton/plugins/endpoints.rb +218 -0
- data/lib/aws-sdk-proton/types.rb +138 -48
- data/lib/aws-sdk-proton.rb +5 -1
- metadata +8 -4
@@ -0,0 +1,218 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::Proton
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::Proton::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::Proton::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::Proton::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :accept_environment_account_connection
|
60
|
+
Aws::Proton::Endpoints::AcceptEnvironmentAccountConnection.build(context)
|
61
|
+
when :cancel_component_deployment
|
62
|
+
Aws::Proton::Endpoints::CancelComponentDeployment.build(context)
|
63
|
+
when :cancel_environment_deployment
|
64
|
+
Aws::Proton::Endpoints::CancelEnvironmentDeployment.build(context)
|
65
|
+
when :cancel_service_instance_deployment
|
66
|
+
Aws::Proton::Endpoints::CancelServiceInstanceDeployment.build(context)
|
67
|
+
when :cancel_service_pipeline_deployment
|
68
|
+
Aws::Proton::Endpoints::CancelServicePipelineDeployment.build(context)
|
69
|
+
when :create_component
|
70
|
+
Aws::Proton::Endpoints::CreateComponent.build(context)
|
71
|
+
when :create_environment
|
72
|
+
Aws::Proton::Endpoints::CreateEnvironment.build(context)
|
73
|
+
when :create_environment_account_connection
|
74
|
+
Aws::Proton::Endpoints::CreateEnvironmentAccountConnection.build(context)
|
75
|
+
when :create_environment_template
|
76
|
+
Aws::Proton::Endpoints::CreateEnvironmentTemplate.build(context)
|
77
|
+
when :create_environment_template_version
|
78
|
+
Aws::Proton::Endpoints::CreateEnvironmentTemplateVersion.build(context)
|
79
|
+
when :create_repository
|
80
|
+
Aws::Proton::Endpoints::CreateRepository.build(context)
|
81
|
+
when :create_service
|
82
|
+
Aws::Proton::Endpoints::CreateService.build(context)
|
83
|
+
when :create_service_template
|
84
|
+
Aws::Proton::Endpoints::CreateServiceTemplate.build(context)
|
85
|
+
when :create_service_template_version
|
86
|
+
Aws::Proton::Endpoints::CreateServiceTemplateVersion.build(context)
|
87
|
+
when :create_template_sync_config
|
88
|
+
Aws::Proton::Endpoints::CreateTemplateSyncConfig.build(context)
|
89
|
+
when :delete_component
|
90
|
+
Aws::Proton::Endpoints::DeleteComponent.build(context)
|
91
|
+
when :delete_environment
|
92
|
+
Aws::Proton::Endpoints::DeleteEnvironment.build(context)
|
93
|
+
when :delete_environment_account_connection
|
94
|
+
Aws::Proton::Endpoints::DeleteEnvironmentAccountConnection.build(context)
|
95
|
+
when :delete_environment_template
|
96
|
+
Aws::Proton::Endpoints::DeleteEnvironmentTemplate.build(context)
|
97
|
+
when :delete_environment_template_version
|
98
|
+
Aws::Proton::Endpoints::DeleteEnvironmentTemplateVersion.build(context)
|
99
|
+
when :delete_repository
|
100
|
+
Aws::Proton::Endpoints::DeleteRepository.build(context)
|
101
|
+
when :delete_service
|
102
|
+
Aws::Proton::Endpoints::DeleteService.build(context)
|
103
|
+
when :delete_service_template
|
104
|
+
Aws::Proton::Endpoints::DeleteServiceTemplate.build(context)
|
105
|
+
when :delete_service_template_version
|
106
|
+
Aws::Proton::Endpoints::DeleteServiceTemplateVersion.build(context)
|
107
|
+
when :delete_template_sync_config
|
108
|
+
Aws::Proton::Endpoints::DeleteTemplateSyncConfig.build(context)
|
109
|
+
when :get_account_settings
|
110
|
+
Aws::Proton::Endpoints::GetAccountSettings.build(context)
|
111
|
+
when :get_component
|
112
|
+
Aws::Proton::Endpoints::GetComponent.build(context)
|
113
|
+
when :get_environment
|
114
|
+
Aws::Proton::Endpoints::GetEnvironment.build(context)
|
115
|
+
when :get_environment_account_connection
|
116
|
+
Aws::Proton::Endpoints::GetEnvironmentAccountConnection.build(context)
|
117
|
+
when :get_environment_template
|
118
|
+
Aws::Proton::Endpoints::GetEnvironmentTemplate.build(context)
|
119
|
+
when :get_environment_template_version
|
120
|
+
Aws::Proton::Endpoints::GetEnvironmentTemplateVersion.build(context)
|
121
|
+
when :get_repository
|
122
|
+
Aws::Proton::Endpoints::GetRepository.build(context)
|
123
|
+
when :get_repository_sync_status
|
124
|
+
Aws::Proton::Endpoints::GetRepositorySyncStatus.build(context)
|
125
|
+
when :get_service
|
126
|
+
Aws::Proton::Endpoints::GetService.build(context)
|
127
|
+
when :get_service_instance
|
128
|
+
Aws::Proton::Endpoints::GetServiceInstance.build(context)
|
129
|
+
when :get_service_template
|
130
|
+
Aws::Proton::Endpoints::GetServiceTemplate.build(context)
|
131
|
+
when :get_service_template_version
|
132
|
+
Aws::Proton::Endpoints::GetServiceTemplateVersion.build(context)
|
133
|
+
when :get_template_sync_config
|
134
|
+
Aws::Proton::Endpoints::GetTemplateSyncConfig.build(context)
|
135
|
+
when :get_template_sync_status
|
136
|
+
Aws::Proton::Endpoints::GetTemplateSyncStatus.build(context)
|
137
|
+
when :list_component_outputs
|
138
|
+
Aws::Proton::Endpoints::ListComponentOutputs.build(context)
|
139
|
+
when :list_component_provisioned_resources
|
140
|
+
Aws::Proton::Endpoints::ListComponentProvisionedResources.build(context)
|
141
|
+
when :list_components
|
142
|
+
Aws::Proton::Endpoints::ListComponents.build(context)
|
143
|
+
when :list_environment_account_connections
|
144
|
+
Aws::Proton::Endpoints::ListEnvironmentAccountConnections.build(context)
|
145
|
+
when :list_environment_outputs
|
146
|
+
Aws::Proton::Endpoints::ListEnvironmentOutputs.build(context)
|
147
|
+
when :list_environment_provisioned_resources
|
148
|
+
Aws::Proton::Endpoints::ListEnvironmentProvisionedResources.build(context)
|
149
|
+
when :list_environment_template_versions
|
150
|
+
Aws::Proton::Endpoints::ListEnvironmentTemplateVersions.build(context)
|
151
|
+
when :list_environment_templates
|
152
|
+
Aws::Proton::Endpoints::ListEnvironmentTemplates.build(context)
|
153
|
+
when :list_environments
|
154
|
+
Aws::Proton::Endpoints::ListEnvironments.build(context)
|
155
|
+
when :list_repositories
|
156
|
+
Aws::Proton::Endpoints::ListRepositories.build(context)
|
157
|
+
when :list_repository_sync_definitions
|
158
|
+
Aws::Proton::Endpoints::ListRepositorySyncDefinitions.build(context)
|
159
|
+
when :list_service_instance_outputs
|
160
|
+
Aws::Proton::Endpoints::ListServiceInstanceOutputs.build(context)
|
161
|
+
when :list_service_instance_provisioned_resources
|
162
|
+
Aws::Proton::Endpoints::ListServiceInstanceProvisionedResources.build(context)
|
163
|
+
when :list_service_instances
|
164
|
+
Aws::Proton::Endpoints::ListServiceInstances.build(context)
|
165
|
+
when :list_service_pipeline_outputs
|
166
|
+
Aws::Proton::Endpoints::ListServicePipelineOutputs.build(context)
|
167
|
+
when :list_service_pipeline_provisioned_resources
|
168
|
+
Aws::Proton::Endpoints::ListServicePipelineProvisionedResources.build(context)
|
169
|
+
when :list_service_template_versions
|
170
|
+
Aws::Proton::Endpoints::ListServiceTemplateVersions.build(context)
|
171
|
+
when :list_service_templates
|
172
|
+
Aws::Proton::Endpoints::ListServiceTemplates.build(context)
|
173
|
+
when :list_services
|
174
|
+
Aws::Proton::Endpoints::ListServices.build(context)
|
175
|
+
when :list_tags_for_resource
|
176
|
+
Aws::Proton::Endpoints::ListTagsForResource.build(context)
|
177
|
+
when :notify_resource_deployment_status_change
|
178
|
+
Aws::Proton::Endpoints::NotifyResourceDeploymentStatusChange.build(context)
|
179
|
+
when :reject_environment_account_connection
|
180
|
+
Aws::Proton::Endpoints::RejectEnvironmentAccountConnection.build(context)
|
181
|
+
when :tag_resource
|
182
|
+
Aws::Proton::Endpoints::TagResource.build(context)
|
183
|
+
when :untag_resource
|
184
|
+
Aws::Proton::Endpoints::UntagResource.build(context)
|
185
|
+
when :update_account_settings
|
186
|
+
Aws::Proton::Endpoints::UpdateAccountSettings.build(context)
|
187
|
+
when :update_component
|
188
|
+
Aws::Proton::Endpoints::UpdateComponent.build(context)
|
189
|
+
when :update_environment
|
190
|
+
Aws::Proton::Endpoints::UpdateEnvironment.build(context)
|
191
|
+
when :update_environment_account_connection
|
192
|
+
Aws::Proton::Endpoints::UpdateEnvironmentAccountConnection.build(context)
|
193
|
+
when :update_environment_template
|
194
|
+
Aws::Proton::Endpoints::UpdateEnvironmentTemplate.build(context)
|
195
|
+
when :update_environment_template_version
|
196
|
+
Aws::Proton::Endpoints::UpdateEnvironmentTemplateVersion.build(context)
|
197
|
+
when :update_service
|
198
|
+
Aws::Proton::Endpoints::UpdateService.build(context)
|
199
|
+
when :update_service_instance
|
200
|
+
Aws::Proton::Endpoints::UpdateServiceInstance.build(context)
|
201
|
+
when :update_service_pipeline
|
202
|
+
Aws::Proton::Endpoints::UpdateServicePipeline.build(context)
|
203
|
+
when :update_service_template
|
204
|
+
Aws::Proton::Endpoints::UpdateServiceTemplate.build(context)
|
205
|
+
when :update_service_template_version
|
206
|
+
Aws::Proton::Endpoints::UpdateServiceTemplateVersion.build(context)
|
207
|
+
when :update_template_sync_config
|
208
|
+
Aws::Proton::Endpoints::UpdateTemplateSyncConfig.build(context)
|
209
|
+
end
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
def add_handlers(handlers, _config)
|
214
|
+
handlers.add(Handler, step: :build, priority: 75)
|
215
|
+
end
|
216
|
+
end
|
217
|
+
end
|
218
|
+
end
|
data/lib/aws-sdk-proton/types.rb
CHANGED
@@ -57,6 +57,12 @@ module Aws::Proton
|
|
57
57
|
# Proton settings that are used for multiple services in the Amazon Web
|
58
58
|
# Services account.
|
59
59
|
#
|
60
|
+
# @!attribute [rw] pipeline_codebuild_role_arn
|
61
|
+
# The Amazon Resource Name (ARN) of the service role that Proton uses
|
62
|
+
# for provisioning pipelines. Proton assumes this role for
|
63
|
+
# CodeBuild-based provisioning.
|
64
|
+
# @return [String]
|
65
|
+
#
|
60
66
|
# @!attribute [rw] pipeline_provisioning_repository
|
61
67
|
# The linked repository for pipeline provisioning. Required if you
|
62
68
|
# have environments configured for self-managed provisioning with
|
@@ -66,15 +72,15 @@ module Aws::Proton
|
|
66
72
|
# @return [Types::RepositoryBranch]
|
67
73
|
#
|
68
74
|
# @!attribute [rw] pipeline_service_role_arn
|
69
|
-
# The Amazon Resource Name (ARN) of the service role
|
70
|
-
# for provisioning pipelines.
|
71
|
-
# Services-managed provisioning
|
72
|
-
# self-managed provisioning.
|
75
|
+
# The Amazon Resource Name (ARN) of the service role that Proton uses
|
76
|
+
# for provisioning pipelines. Proton assumes this role for Amazon Web
|
77
|
+
# Services-managed provisioning.
|
73
78
|
# @return [String]
|
74
79
|
#
|
75
80
|
# @see http://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/AccountSettings AWS API Documentation
|
76
81
|
#
|
77
82
|
class AccountSettings < Struct.new(
|
83
|
+
:pipeline_codebuild_role_arn,
|
78
84
|
:pipeline_provisioning_repository,
|
79
85
|
:pipeline_service_role_arn)
|
80
86
|
SENSITIVE = []
|
@@ -548,10 +554,11 @@ module Aws::Proton
|
|
548
554
|
#
|
549
555
|
# {
|
550
556
|
# client_token: "ClientToken",
|
551
|
-
#
|
557
|
+
# codebuild_role_arn: "RoleArn",
|
558
|
+
# component_role_arn: "RoleArn",
|
552
559
|
# environment_name: "ResourceName", # required
|
553
560
|
# management_account_id: "AwsAccountId", # required
|
554
|
-
# role_arn: "
|
561
|
+
# role_arn: "RoleArn", # required
|
555
562
|
# tags: [
|
556
563
|
# {
|
557
564
|
# key: "TagKey", # required
|
@@ -569,11 +576,19 @@ module Aws::Proton
|
|
569
576
|
# not need to pass this option.
|
570
577
|
# @return [String]
|
571
578
|
#
|
579
|
+
# @!attribute [rw] codebuild_role_arn
|
580
|
+
# The Amazon Resource Name (ARN) of an IAM service role in the
|
581
|
+
# environment account. Proton uses this role to provision
|
582
|
+
# infrastructure resources using CodeBuild-based provisioning in the
|
583
|
+
# associated environment account.
|
584
|
+
# @return [String]
|
585
|
+
#
|
572
586
|
# @!attribute [rw] component_role_arn
|
573
|
-
# The Amazon Resource Name (ARN) of
|
574
|
-
#
|
575
|
-
#
|
576
|
-
#
|
587
|
+
# The Amazon Resource Name (ARN) of an IAM service role in the
|
588
|
+
# environment account. Proton uses this role to provision directly
|
589
|
+
# defined components in the associated environment account. It
|
590
|
+
# determines the scope of infrastructure that a component can
|
591
|
+
# provision in the account.
|
577
592
|
#
|
578
593
|
# You must specify `componentRoleArn` to allow directly defined
|
579
594
|
# components to be associated with any environments running in this
|
@@ -602,9 +617,10 @@ module Aws::Proton
|
|
602
617
|
# @return [String]
|
603
618
|
#
|
604
619
|
# @!attribute [rw] role_arn
|
605
|
-
# The Amazon Resource Name (ARN) of
|
606
|
-
#
|
607
|
-
#
|
620
|
+
# The Amazon Resource Name (ARN) of an IAM service role in the
|
621
|
+
# environment account. Proton uses this role to provision
|
622
|
+
# infrastructure resources using Amazon Web Services-managed
|
623
|
+
# provisioning and CloudFormation in the associated environment
|
608
624
|
# account.
|
609
625
|
# @return [String]
|
610
626
|
#
|
@@ -624,6 +640,7 @@ module Aws::Proton
|
|
624
640
|
#
|
625
641
|
class CreateEnvironmentAccountConnectionInput < Struct.new(
|
626
642
|
:client_token,
|
643
|
+
:codebuild_role_arn,
|
627
644
|
:component_role_arn,
|
628
645
|
:environment_name,
|
629
646
|
:management_account_id,
|
@@ -650,7 +667,8 @@ module Aws::Proton
|
|
650
667
|
# data as a hash:
|
651
668
|
#
|
652
669
|
# {
|
653
|
-
#
|
670
|
+
# codebuild_role_arn: "RoleArn",
|
671
|
+
# component_role_arn: "RoleArn",
|
654
672
|
# description: "Description",
|
655
673
|
# environment_account_connection_id: "EnvironmentAccountConnectionId",
|
656
674
|
# name: "ResourceName", # required
|
@@ -672,6 +690,16 @@ module Aws::Proton
|
|
672
690
|
# template_name: "ResourceName", # required
|
673
691
|
# }
|
674
692
|
#
|
693
|
+
# @!attribute [rw] codebuild_role_arn
|
694
|
+
# The Amazon Resource Name (ARN) of the IAM service role that allows
|
695
|
+
# Proton to provision infrastructure using CodeBuild-based
|
696
|
+
# provisioning on your behalf.
|
697
|
+
#
|
698
|
+
# To use CodeBuild-based provisioning for the environment or for any
|
699
|
+
# service instance running in the environment, specify either the
|
700
|
+
# `environmentAccountConnectionId` or `codebuildRoleArn` parameter.
|
701
|
+
# @return [String]
|
702
|
+
#
|
675
703
|
# @!attribute [rw] component_role_arn
|
676
704
|
# The Amazon Resource Name (ARN) of the IAM service role that Proton
|
677
705
|
# uses when provisioning directly defined components in this
|
@@ -694,15 +722,15 @@ module Aws::Proton
|
|
694
722
|
# @return [String]
|
695
723
|
#
|
696
724
|
# @!attribute [rw] environment_account_connection_id
|
697
|
-
# The ID of the environment account connection that you provide if
|
698
|
-
#
|
725
|
+
# The ID of the environment account connection that you provide if you
|
726
|
+
# want Proton to provision infrastructure resources for your
|
727
|
+
# environment or for any of the service instances running in it in an
|
699
728
|
# environment account. For more information, see [Environment account
|
700
729
|
# connections][1] in the *Proton User guide*.
|
701
730
|
#
|
702
|
-
#
|
703
|
-
# specify
|
704
|
-
# `
|
705
|
-
# `provisioningRepository` parameter.
|
731
|
+
# If you specify the `environmentAccountConnectionId` parameter,
|
732
|
+
# don't specify `protonServiceRoleArn`, `codebuildRoleArn`, or
|
733
|
+
# `provisioningRepository`.
|
706
734
|
#
|
707
735
|
#
|
708
736
|
#
|
@@ -714,13 +742,14 @@ module Aws::Proton
|
|
714
742
|
# @return [String]
|
715
743
|
#
|
716
744
|
# @!attribute [rw] proton_service_role_arn
|
717
|
-
# The Amazon Resource Name (ARN) of the
|
718
|
-
#
|
745
|
+
# The Amazon Resource Name (ARN) of the IAM service role that allows
|
746
|
+
# Proton to provision infrastructure using Amazon Web Services-managed
|
747
|
+
# provisioning and CloudFormation on your behalf.
|
719
748
|
#
|
720
|
-
# To use Amazon Web Services-managed provisioning for the environment
|
721
|
-
#
|
722
|
-
# `
|
723
|
-
# `
|
749
|
+
# To use Amazon Web Services-managed provisioning for the environment
|
750
|
+
# or for any service instance running in the environment, specify
|
751
|
+
# either the `environmentAccountConnectionId` or
|
752
|
+
# `protonServiceRoleArn` parameter.
|
724
753
|
# @return [String]
|
725
754
|
#
|
726
755
|
# @!attribute [rw] provisioning_repository
|
@@ -729,9 +758,8 @@ module Aws::Proton
|
|
729
758
|
# repository is a repository that has been registered with Proton. For
|
730
759
|
# more information, see CreateRepository.
|
731
760
|
#
|
732
|
-
# To use self-managed provisioning for the environment
|
733
|
-
#
|
734
|
-
# `protonServiceRoleArn` parameters.
|
761
|
+
# To use self-managed provisioning for the environment or for any
|
762
|
+
# service instance running in the environment, specify this parameter.
|
735
763
|
# @return [Types::RepositoryBranchInput]
|
736
764
|
#
|
737
765
|
# @!attribute [rw] spec
|
@@ -776,6 +804,7 @@ module Aws::Proton
|
|
776
804
|
# @see http://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/CreateEnvironmentInput AWS API Documentation
|
777
805
|
#
|
778
806
|
class CreateEnvironmentInput < Struct.new(
|
807
|
+
:codebuild_role_arn,
|
779
808
|
:component_role_arn,
|
780
809
|
:description,
|
781
810
|
:environment_account_connection_id,
|
@@ -1784,6 +1813,12 @@ module Aws::Proton
|
|
1784
1813
|
# The Amazon Resource Name (ARN) of the environment.
|
1785
1814
|
# @return [String]
|
1786
1815
|
#
|
1816
|
+
# @!attribute [rw] codebuild_role_arn
|
1817
|
+
# The Amazon Resource Name (ARN) of the IAM service role that allows
|
1818
|
+
# Proton to provision infrastructure using CodeBuild-based
|
1819
|
+
# provisioning on your behalf.
|
1820
|
+
# @return [String]
|
1821
|
+
#
|
1787
1822
|
# @!attribute [rw] component_role_arn
|
1788
1823
|
# The Amazon Resource Name (ARN) of the IAM service role that Proton
|
1789
1824
|
# uses when provisioning directly defined components in this
|
@@ -1818,7 +1853,7 @@ module Aws::Proton
|
|
1818
1853
|
# @return [String]
|
1819
1854
|
#
|
1820
1855
|
# @!attribute [rw] environment_account_connection_id
|
1821
|
-
# The ID of the environment account connection that
|
1856
|
+
# The ID of the environment account connection that Proton uses to
|
1822
1857
|
# provision infrastructure resources in an environment account.
|
1823
1858
|
# @return [String]
|
1824
1859
|
#
|
@@ -1840,8 +1875,9 @@ module Aws::Proton
|
|
1840
1875
|
# @return [String]
|
1841
1876
|
#
|
1842
1877
|
# @!attribute [rw] proton_service_role_arn
|
1843
|
-
# The Amazon Resource Name (ARN) of the
|
1844
|
-
#
|
1878
|
+
# The Amazon Resource Name (ARN) of the IAM service role that allows
|
1879
|
+
# Proton to provision infrastructure using Amazon Web Services-managed
|
1880
|
+
# provisioning and CloudFormation on your behalf.
|
1845
1881
|
# @return [String]
|
1846
1882
|
#
|
1847
1883
|
# @!attribute [rw] provisioning
|
@@ -1876,6 +1912,7 @@ module Aws::Proton
|
|
1876
1912
|
#
|
1877
1913
|
class Environment < Struct.new(
|
1878
1914
|
:arn,
|
1915
|
+
:codebuild_role_arn,
|
1879
1916
|
:component_role_arn,
|
1880
1917
|
:created_at,
|
1881
1918
|
:deployment_status,
|
@@ -1904,6 +1941,13 @@ module Aws::Proton
|
|
1904
1941
|
# connection.
|
1905
1942
|
# @return [String]
|
1906
1943
|
#
|
1944
|
+
# @!attribute [rw] codebuild_role_arn
|
1945
|
+
# The Amazon Resource Name (ARN) of an IAM service role in the
|
1946
|
+
# environment account. Proton uses this role to provision
|
1947
|
+
# infrastructure resources using CodeBuild-based provisioning in the
|
1948
|
+
# associated environment account.
|
1949
|
+
# @return [String]
|
1950
|
+
#
|
1907
1951
|
# @!attribute [rw] component_role_arn
|
1908
1952
|
# The Amazon Resource Name (ARN) of the IAM service role that Proton
|
1909
1953
|
# uses when provisioning directly defined components in the associated
|
@@ -1950,8 +1994,11 @@ module Aws::Proton
|
|
1950
1994
|
# @return [Time]
|
1951
1995
|
#
|
1952
1996
|
# @!attribute [rw] role_arn
|
1953
|
-
# The IAM service role
|
1954
|
-
#
|
1997
|
+
# The Amazon Resource Name (ARN) of an IAM service role in the
|
1998
|
+
# environment account. Proton uses this role to provision
|
1999
|
+
# infrastructure resources using Amazon Web Services-managed
|
2000
|
+
# provisioning and CloudFormation in the associated environment
|
2001
|
+
# account.
|
1955
2002
|
# @return [String]
|
1956
2003
|
#
|
1957
2004
|
# @!attribute [rw] status
|
@@ -1962,6 +2009,7 @@ module Aws::Proton
|
|
1962
2009
|
#
|
1963
2010
|
class EnvironmentAccountConnection < Struct.new(
|
1964
2011
|
:arn,
|
2012
|
+
:codebuild_role_arn,
|
1965
2013
|
:component_role_arn,
|
1966
2014
|
:environment_account_id,
|
1967
2015
|
:environment_name,
|
@@ -4011,21 +4059,26 @@ module Aws::Proton
|
|
4011
4059
|
# },
|
4012
4060
|
# ],
|
4013
4061
|
# resource_arn: "Arn", # required
|
4014
|
-
# status: "IN_PROGRESS", #
|
4062
|
+
# status: "IN_PROGRESS", # accepts IN_PROGRESS, FAILED, SUCCEEDED
|
4015
4063
|
# status_message: "NotifyResourceDeploymentStatusChangeInputStatusMessageString",
|
4016
4064
|
# }
|
4017
4065
|
#
|
4018
4066
|
# @!attribute [rw] deployment_id
|
4019
|
-
# The deployment ID for your provisioned resource.
|
4067
|
+
# The deployment ID for your provisioned resource. Proton uses it to
|
4068
|
+
# disambiguate different deployments of the resource. Applicable to
|
4069
|
+
# [self-managed provisioning][1].
|
4070
|
+
#
|
4071
|
+
#
|
4072
|
+
#
|
4073
|
+
# [1]: https://docs.aws.amazon.com/proton/latest/userguide/ag-works-prov-methods.html#ag-works-prov-methods-self
|
4020
4074
|
# @return [String]
|
4021
4075
|
#
|
4022
4076
|
# @!attribute [rw] outputs
|
4023
|
-
# The
|
4024
|
-
# by Proton.
|
4077
|
+
# The output values generated by your provisioned resource.
|
4025
4078
|
# @return [Array<Types::Output>]
|
4026
4079
|
#
|
4027
4080
|
# @!attribute [rw] resource_arn
|
4028
|
-
# The
|
4081
|
+
# The Amazon Resource Name (ARN) of your provisioned resource.
|
4029
4082
|
# @return [String]
|
4030
4083
|
#
|
4031
4084
|
# @!attribute [rw] status
|
@@ -5280,12 +5333,13 @@ module Aws::Proton
|
|
5280
5333
|
#
|
5281
5334
|
# {
|
5282
5335
|
# delete_pipeline_provisioning_repository: false,
|
5336
|
+
# pipeline_codebuild_role_arn: "RoleArnOrEmptyString",
|
5283
5337
|
# pipeline_provisioning_repository: {
|
5284
5338
|
# branch: "GitBranchName", # required
|
5285
5339
|
# name: "RepositoryName", # required
|
5286
5340
|
# provider: "GITHUB", # required, accepts GITHUB, GITHUB_ENTERPRISE, BITBUCKET
|
5287
5341
|
# },
|
5288
|
-
# pipeline_service_role_arn: "
|
5342
|
+
# pipeline_service_role_arn: "RoleArnOrEmptyString",
|
5289
5343
|
# }
|
5290
5344
|
#
|
5291
5345
|
# @!attribute [rw] delete_pipeline_provisioning_repository
|
@@ -5294,6 +5348,12 @@ module Aws::Proton
|
|
5294
5348
|
# configured pipeline repository.
|
5295
5349
|
# @return [Boolean]
|
5296
5350
|
#
|
5351
|
+
# @!attribute [rw] pipeline_codebuild_role_arn
|
5352
|
+
# The Amazon Resource Name (ARN) of the service role you want to use
|
5353
|
+
# for provisioning pipelines. Proton assumes this role for
|
5354
|
+
# CodeBuild-based provisioning.
|
5355
|
+
# @return [String]
|
5356
|
+
#
|
5297
5357
|
# @!attribute [rw] pipeline_provisioning_repository
|
5298
5358
|
# A linked repository for pipeline provisioning. Specify it if you
|
5299
5359
|
# have environments configured for self-managed provisioning with
|
@@ -5319,6 +5379,7 @@ module Aws::Proton
|
|
5319
5379
|
#
|
5320
5380
|
class UpdateAccountSettingsInput < Struct.new(
|
5321
5381
|
:delete_pipeline_provisioning_repository,
|
5382
|
+
:pipeline_codebuild_role_arn,
|
5322
5383
|
:pipeline_provisioning_repository,
|
5323
5384
|
:pipeline_service_role_arn)
|
5324
5385
|
SENSITIVE = []
|
@@ -5444,11 +5505,19 @@ module Aws::Proton
|
|
5444
5505
|
# data as a hash:
|
5445
5506
|
#
|
5446
5507
|
# {
|
5447
|
-
#
|
5508
|
+
# codebuild_role_arn: "RoleArn",
|
5509
|
+
# component_role_arn: "RoleArn",
|
5448
5510
|
# id: "EnvironmentAccountConnectionId", # required
|
5449
|
-
# role_arn: "
|
5511
|
+
# role_arn: "RoleArn",
|
5450
5512
|
# }
|
5451
5513
|
#
|
5514
|
+
# @!attribute [rw] codebuild_role_arn
|
5515
|
+
# The Amazon Resource Name (ARN) of an IAM service role in the
|
5516
|
+
# environment account. Proton uses this role to provision
|
5517
|
+
# infrastructure resources using CodeBuild-based provisioning in the
|
5518
|
+
# associated environment account.
|
5519
|
+
# @return [String]
|
5520
|
+
#
|
5452
5521
|
# @!attribute [rw] component_role_arn
|
5453
5522
|
# The Amazon Resource Name (ARN) of the IAM service role that Proton
|
5454
5523
|
# uses when provisioning directly defined components in the associated
|
@@ -5472,13 +5541,17 @@ module Aws::Proton
|
|
5472
5541
|
# @return [String]
|
5473
5542
|
#
|
5474
5543
|
# @!attribute [rw] role_arn
|
5475
|
-
# The Amazon Resource Name (ARN) of
|
5476
|
-
#
|
5544
|
+
# The Amazon Resource Name (ARN) of an IAM service role in the
|
5545
|
+
# environment account. Proton uses this role to provision
|
5546
|
+
# infrastructure resources using Amazon Web Services-managed
|
5547
|
+
# provisioning and CloudFormation in the associated environment
|
5548
|
+
# account.
|
5477
5549
|
# @return [String]
|
5478
5550
|
#
|
5479
5551
|
# @see http://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateEnvironmentAccountConnectionInput AWS API Documentation
|
5480
5552
|
#
|
5481
5553
|
class UpdateEnvironmentAccountConnectionInput < Struct.new(
|
5554
|
+
:codebuild_role_arn,
|
5482
5555
|
:component_role_arn,
|
5483
5556
|
:id,
|
5484
5557
|
:role_arn)
|
@@ -5503,7 +5576,8 @@ module Aws::Proton
|
|
5503
5576
|
# data as a hash:
|
5504
5577
|
#
|
5505
5578
|
# {
|
5506
|
-
#
|
5579
|
+
# codebuild_role_arn: "RoleArn",
|
5580
|
+
# component_role_arn: "RoleArn",
|
5507
5581
|
# deployment_type: "NONE", # required, accepts NONE, CURRENT_VERSION, MINOR_VERSION, MAJOR_VERSION
|
5508
5582
|
# description: "Description",
|
5509
5583
|
# environment_account_connection_id: "EnvironmentAccountConnectionId",
|
@@ -5519,6 +5593,12 @@ module Aws::Proton
|
|
5519
5593
|
# template_minor_version: "TemplateVersionPart",
|
5520
5594
|
# }
|
5521
5595
|
#
|
5596
|
+
# @!attribute [rw] codebuild_role_arn
|
5597
|
+
# The Amazon Resource Name (ARN) of the IAM service role that allows
|
5598
|
+
# Proton to provision infrastructure using CodeBuild-based
|
5599
|
+
# provisioning on your behalf.
|
5600
|
+
# @return [String]
|
5601
|
+
#
|
5522
5602
|
# @!attribute [rw] component_role_arn
|
5523
5603
|
# The Amazon Resource Name (ARN) of the IAM service role that Proton
|
5524
5604
|
# uses when provisioning directly defined components in this
|
@@ -5581,12 +5661,20 @@ module Aws::Proton
|
|
5581
5661
|
# @return [String]
|
5582
5662
|
#
|
5583
5663
|
# @!attribute [rw] environment_account_connection_id
|
5584
|
-
# The ID of the environment account connection
|
5664
|
+
# The ID of the environment account connection that you provide if you
|
5665
|
+
# want Proton to provision infrastructure resources for your
|
5666
|
+
# environment or for any of the service instances running in it in an
|
5667
|
+
# environment account. For more information, see [Environment account
|
5668
|
+
# connections][1] in the *Proton User guide*.
|
5585
5669
|
#
|
5586
5670
|
# You can only update to a new environment account connection if it
|
5587
5671
|
# was created in the same environment account that the current
|
5588
5672
|
# environment account connection was created in and is associated with
|
5589
5673
|
# the current environment.
|
5674
|
+
#
|
5675
|
+
#
|
5676
|
+
#
|
5677
|
+
# [1]: https://docs.aws.amazon.com/proton/latest/userguide/ag-env-account-connections.html
|
5590
5678
|
# @return [String]
|
5591
5679
|
#
|
5592
5680
|
# @!attribute [rw] name
|
@@ -5594,8 +5682,9 @@ module Aws::Proton
|
|
5594
5682
|
# @return [String]
|
5595
5683
|
#
|
5596
5684
|
# @!attribute [rw] proton_service_role_arn
|
5597
|
-
# The Amazon Resource Name (ARN) of the
|
5598
|
-
#
|
5685
|
+
# The Amazon Resource Name (ARN) of the IAM service role that allows
|
5686
|
+
# Proton to provision infrastructure using Amazon Web Services-managed
|
5687
|
+
# provisioning and CloudFormation on your behalf.
|
5599
5688
|
# @return [String]
|
5600
5689
|
#
|
5601
5690
|
# @!attribute [rw] provisioning_repository
|
@@ -5620,6 +5709,7 @@ module Aws::Proton
|
|
5620
5709
|
# @see http://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateEnvironmentInput AWS API Documentation
|
5621
5710
|
#
|
5622
5711
|
class UpdateEnvironmentInput < Struct.new(
|
5712
|
+
:codebuild_role_arn,
|
5623
5713
|
:component_role_arn,
|
5624
5714
|
:deployment_type,
|
5625
5715
|
:description,
|
data/lib/aws-sdk-proton.rb
CHANGED
@@ -13,10 +13,14 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-proton/types'
|
15
15
|
require_relative 'aws-sdk-proton/client_api'
|
16
|
+
require_relative 'aws-sdk-proton/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-proton/client'
|
17
18
|
require_relative 'aws-sdk-proton/errors'
|
18
19
|
require_relative 'aws-sdk-proton/waiters'
|
19
20
|
require_relative 'aws-sdk-proton/resource'
|
21
|
+
require_relative 'aws-sdk-proton/endpoint_parameters'
|
22
|
+
require_relative 'aws-sdk-proton/endpoint_provider'
|
23
|
+
require_relative 'aws-sdk-proton/endpoints'
|
20
24
|
require_relative 'aws-sdk-proton/customizations'
|
21
25
|
|
22
26
|
# This module provides support for AWS Proton. This module is available in the
|
@@ -49,6 +53,6 @@ require_relative 'aws-sdk-proton/customizations'
|
|
49
53
|
# @!group service
|
50
54
|
module Aws::Proton
|
51
55
|
|
52
|
-
GEM_VERSION = '1.
|
56
|
+
GEM_VERSION = '1.19.0'
|
53
57
|
|
54
58
|
end
|