aws-sdk-imagebuilder 1.7.0 → 1.13.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-imagebuilder.rb +4 -2
- data/lib/aws-sdk-imagebuilder/client.rb +64 -14
- data/lib/aws-sdk-imagebuilder/client_api.rb +26 -2
- data/lib/aws-sdk-imagebuilder/errors.rb +18 -0
- data/lib/aws-sdk-imagebuilder/resource.rb +2 -0
- data/lib/aws-sdk-imagebuilder/types.rb +203 -5
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5a10f938d1046368adafd3d903389a5556fc85c997e9c24fe08de5078d74899
|
4
|
+
data.tar.gz: dd82f5b6f541ed17ff1c40b4f4206c145ddc82f25c80ae326dc48eae9dcaed6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 624e0a5761ec79641f546ea920963e2d8824af2e926feb69eaf6ec709e4fe1a30943311af50eaf3cd60ca327bf2d190adbb4355ee740f6c2c8dd9ac026b59ef0
|
7
|
+
data.tar.gz: ed5ce49209b2dc4c83f5793f2cdaddbfb44d6864fe1c33c71fdb0fdaf3b919acaae94d9f5b68ea7fea9c03bb0584e56a3368387d9ac9183203454350858910ee
|
data/lib/aws-sdk-imagebuilder.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -42,9 +44,9 @@ require_relative 'aws-sdk-imagebuilder/customizations'
|
|
42
44
|
#
|
43
45
|
# See {Errors} for more information.
|
44
46
|
#
|
45
|
-
#
|
47
|
+
# @!group service
|
46
48
|
module Aws::Imagebuilder
|
47
49
|
|
48
|
-
GEM_VERSION = '1.
|
50
|
+
GEM_VERSION = '1.13.0'
|
49
51
|
|
50
52
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
24
26
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
27
30
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
31
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
29
32
|
|
@@ -69,6 +72,7 @@ module Aws::Imagebuilder
|
|
69
72
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
70
73
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
71
74
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
72
76
|
add_plugin(Aws::Plugins::SignatureV4)
|
73
77
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
74
78
|
|
@@ -81,13 +85,28 @@ module Aws::Imagebuilder
|
|
81
85
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
82
86
|
# credentials.
|
83
87
|
#
|
88
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
89
|
+
# shared file, such as `~/.aws/config`.
|
90
|
+
#
|
91
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
92
|
+
#
|
93
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
94
|
+
# assume a role after providing credentials via the web.
|
95
|
+
#
|
96
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
97
|
+
# access token generated from `aws login`.
|
98
|
+
#
|
99
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
100
|
+
# process that outputs to stdout.
|
101
|
+
#
|
84
102
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
85
103
|
# from an EC2 IMDS on an EC2 instance.
|
86
104
|
#
|
87
|
-
# * `Aws::
|
88
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
89
107
|
#
|
90
|
-
# * `Aws::
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
91
110
|
#
|
92
111
|
# When `:credentials` are not configured directly, the following
|
93
112
|
# locations will be searched for credentials:
|
@@ -97,10 +116,10 @@ module Aws::Imagebuilder
|
|
97
116
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
98
117
|
# * `~/.aws/credentials`
|
99
118
|
# * `~/.aws/config`
|
100
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
101
|
-
# very aggressive. Construct and pass an instance of
|
102
|
-
# `Aws::InstanceProfileCredentails`
|
103
|
-
# timeouts.
|
119
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
|
+
# are very aggressive. Construct and pass an instance of
|
121
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
+
# enable retries and extended timeouts.
|
104
123
|
#
|
105
124
|
# @option options [required, String] :region
|
106
125
|
# The AWS region to connect to. The configured `:region` is
|
@@ -161,7 +180,7 @@ module Aws::Imagebuilder
|
|
161
180
|
# @option options [String] :endpoint
|
162
181
|
# The client endpoint is normally constructed from the `:region`
|
163
182
|
# option. You should only configure an `:endpoint` when connecting
|
164
|
-
# to test endpoints. This should be a valid HTTP(S) URI.
|
183
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
165
184
|
#
|
166
185
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
167
186
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -479,6 +498,7 @@ module Aws::Imagebuilder
|
|
479
498
|
# ami_tags: {
|
480
499
|
# "TagKey" => "TagValue",
|
481
500
|
# },
|
501
|
+
# kms_key_id: "NonEmptyString",
|
482
502
|
# launch_permission: {
|
483
503
|
# user_ids: ["NonEmptyString"],
|
484
504
|
# user_groups: ["NonEmptyString"],
|
@@ -705,6 +725,9 @@ module Aws::Imagebuilder
|
|
705
725
|
# @option params [Hash<String,String>] :tags
|
706
726
|
# The tags of the image recipe.
|
707
727
|
#
|
728
|
+
# @option params [String] :working_directory
|
729
|
+
# The working directory to be used during build and test workflows.
|
730
|
+
#
|
708
731
|
# @option params [required, String] :client_token
|
709
732
|
# The idempotency token used to make this request idempotent.
|
710
733
|
#
|
@@ -748,6 +771,7 @@ module Aws::Imagebuilder
|
|
748
771
|
# tags: {
|
749
772
|
# "TagKey" => "TagValue",
|
750
773
|
# },
|
774
|
+
# working_directory: "NonEmptyString",
|
751
775
|
# client_token: "ClientToken", # required
|
752
776
|
# })
|
753
777
|
#
|
@@ -809,6 +833,9 @@ module Aws::Imagebuilder
|
|
809
833
|
# @option params [String] :sns_topic_arn
|
810
834
|
# The SNS topic on which to send image build events.
|
811
835
|
#
|
836
|
+
# @option params [Hash<String,String>] :resource_tags
|
837
|
+
# The tags attached to the resource created by Image Builder.
|
838
|
+
#
|
812
839
|
# @option params [Hash<String,String>] :tags
|
813
840
|
# The tags of the infrastructure configuration.
|
814
841
|
#
|
@@ -842,6 +869,9 @@ module Aws::Imagebuilder
|
|
842
869
|
# key_pair: "NonEmptyString",
|
843
870
|
# terminate_instance_on_failure: false,
|
844
871
|
# sns_topic_arn: "SnsTopicArn",
|
872
|
+
# resource_tags: {
|
873
|
+
# "TagKey" => "TagValue",
|
874
|
+
# },
|
845
875
|
# tags: {
|
846
876
|
# "TagKey" => "TagValue",
|
847
877
|
# },
|
@@ -1060,7 +1090,7 @@ module Aws::Imagebuilder
|
|
1060
1090
|
# @example Request syntax with placeholder values
|
1061
1091
|
#
|
1062
1092
|
# resp = client.get_component({
|
1063
|
-
# component_build_version_arn: "
|
1093
|
+
# component_build_version_arn: "ComponentVersionArnOrBuildVersionArn", # required
|
1064
1094
|
# })
|
1065
1095
|
#
|
1066
1096
|
# @example Response structure
|
@@ -1152,6 +1182,7 @@ module Aws::Imagebuilder
|
|
1152
1182
|
# resp.distribution_configuration.distributions[0].ami_distribution_configuration.description #=> String
|
1153
1183
|
# resp.distribution_configuration.distributions[0].ami_distribution_configuration.ami_tags #=> Hash
|
1154
1184
|
# resp.distribution_configuration.distributions[0].ami_distribution_configuration.ami_tags["TagKey"] #=> String
|
1185
|
+
# resp.distribution_configuration.distributions[0].ami_distribution_configuration.kms_key_id #=> String
|
1155
1186
|
# resp.distribution_configuration.distributions[0].ami_distribution_configuration.launch_permission.user_ids #=> Array
|
1156
1187
|
# resp.distribution_configuration.distributions[0].ami_distribution_configuration.launch_permission.user_ids[0] #=> String
|
1157
1188
|
# resp.distribution_configuration.distributions[0].ami_distribution_configuration.launch_permission.user_groups #=> Array
|
@@ -1186,7 +1217,7 @@ module Aws::Imagebuilder
|
|
1186
1217
|
# @example Request syntax with placeholder values
|
1187
1218
|
#
|
1188
1219
|
# resp = client.get_image({
|
1189
|
-
# image_build_version_arn: "
|
1220
|
+
# image_build_version_arn: "ImageVersionArnOrBuildVersionArn", # required
|
1190
1221
|
# })
|
1191
1222
|
#
|
1192
1223
|
# @example Response structure
|
@@ -1223,6 +1254,7 @@ module Aws::Imagebuilder
|
|
1223
1254
|
# resp.image.image_recipe.date_created #=> String
|
1224
1255
|
# resp.image.image_recipe.tags #=> Hash
|
1225
1256
|
# resp.image.image_recipe.tags["TagKey"] #=> String
|
1257
|
+
# resp.image.image_recipe.working_directory #=> String
|
1226
1258
|
# resp.image.source_pipeline_name #=> String
|
1227
1259
|
# resp.image.source_pipeline_arn #=> String
|
1228
1260
|
# resp.image.infrastructure_configuration.arn #=> String
|
@@ -1241,6 +1273,8 @@ module Aws::Imagebuilder
|
|
1241
1273
|
# resp.image.infrastructure_configuration.sns_topic_arn #=> String
|
1242
1274
|
# resp.image.infrastructure_configuration.date_created #=> String
|
1243
1275
|
# resp.image.infrastructure_configuration.date_updated #=> String
|
1276
|
+
# resp.image.infrastructure_configuration.resource_tags #=> Hash
|
1277
|
+
# resp.image.infrastructure_configuration.resource_tags["TagKey"] #=> String
|
1244
1278
|
# resp.image.infrastructure_configuration.tags #=> Hash
|
1245
1279
|
# resp.image.infrastructure_configuration.tags["TagKey"] #=> String
|
1246
1280
|
# resp.image.distribution_configuration.arn #=> String
|
@@ -1252,6 +1286,7 @@ module Aws::Imagebuilder
|
|
1252
1286
|
# resp.image.distribution_configuration.distributions[0].ami_distribution_configuration.description #=> String
|
1253
1287
|
# resp.image.distribution_configuration.distributions[0].ami_distribution_configuration.ami_tags #=> Hash
|
1254
1288
|
# resp.image.distribution_configuration.distributions[0].ami_distribution_configuration.ami_tags["TagKey"] #=> String
|
1289
|
+
# resp.image.distribution_configuration.distributions[0].ami_distribution_configuration.kms_key_id #=> String
|
1255
1290
|
# resp.image.distribution_configuration.distributions[0].ami_distribution_configuration.launch_permission.user_ids #=> Array
|
1256
1291
|
# resp.image.distribution_configuration.distributions[0].ami_distribution_configuration.launch_permission.user_ids[0] #=> String
|
1257
1292
|
# resp.image.distribution_configuration.distributions[0].ami_distribution_configuration.launch_permission.user_groups #=> Array
|
@@ -1408,6 +1443,7 @@ module Aws::Imagebuilder
|
|
1408
1443
|
# resp.image_recipe.date_created #=> String
|
1409
1444
|
# resp.image_recipe.tags #=> Hash
|
1410
1445
|
# resp.image_recipe.tags["TagKey"] #=> String
|
1446
|
+
# resp.image_recipe.working_directory #=> String
|
1411
1447
|
#
|
1412
1448
|
# @see http://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/GetImageRecipe AWS API Documentation
|
1413
1449
|
#
|
@@ -1485,6 +1521,8 @@ module Aws::Imagebuilder
|
|
1485
1521
|
# resp.infrastructure_configuration.sns_topic_arn #=> String
|
1486
1522
|
# resp.infrastructure_configuration.date_created #=> String
|
1487
1523
|
# resp.infrastructure_configuration.date_updated #=> String
|
1524
|
+
# resp.infrastructure_configuration.resource_tags #=> Hash
|
1525
|
+
# resp.infrastructure_configuration.resource_tags["TagKey"] #=> String
|
1488
1526
|
# resp.infrastructure_configuration.tags #=> Hash
|
1489
1527
|
# resp.infrastructure_configuration.tags["TagKey"] #=> String
|
1490
1528
|
#
|
@@ -1718,6 +1756,10 @@ module Aws::Imagebuilder
|
|
1718
1756
|
# @option params [Array<Types::Filter>] :filters
|
1719
1757
|
# The filters.
|
1720
1758
|
#
|
1759
|
+
# * `name` - The name of this distribution configuration.
|
1760
|
+
#
|
1761
|
+
# ^
|
1762
|
+
#
|
1721
1763
|
# @option params [Integer] :max_results
|
1722
1764
|
# The maximum items to return in a request.
|
1723
1765
|
#
|
@@ -1768,7 +1810,7 @@ module Aws::Imagebuilder
|
|
1768
1810
|
req.send_request(options)
|
1769
1811
|
end
|
1770
1812
|
|
1771
|
-
# Returns a list of
|
1813
|
+
# Returns a list of image build versions.
|
1772
1814
|
#
|
1773
1815
|
# @option params [required, String] :image_version_arn
|
1774
1816
|
# The Amazon Resource Name (ARN) of the image whose build versions you
|
@@ -2041,8 +2083,7 @@ module Aws::Imagebuilder
|
|
2041
2083
|
req.send_request(options)
|
2042
2084
|
end
|
2043
2085
|
|
2044
|
-
# Returns the list of
|
2045
|
-
# version.
|
2086
|
+
# Returns the list of images that you have access to.
|
2046
2087
|
#
|
2047
2088
|
# @option params [String] :owner
|
2048
2089
|
# The owner defines which images you want to list. By default, this
|
@@ -2147,6 +2188,8 @@ module Aws::Imagebuilder
|
|
2147
2188
|
# resp.infrastructure_configuration_summary_list[0].description #=> String
|
2148
2189
|
# resp.infrastructure_configuration_summary_list[0].date_created #=> String
|
2149
2190
|
# resp.infrastructure_configuration_summary_list[0].date_updated #=> String
|
2191
|
+
# resp.infrastructure_configuration_summary_list[0].resource_tags #=> Hash
|
2192
|
+
# resp.infrastructure_configuration_summary_list[0].resource_tags["TagKey"] #=> String
|
2150
2193
|
# resp.infrastructure_configuration_summary_list[0].tags #=> Hash
|
2151
2194
|
# resp.infrastructure_configuration_summary_list[0].tags["TagKey"] #=> String
|
2152
2195
|
# resp.next_token #=> String
|
@@ -2456,6 +2499,7 @@ module Aws::Imagebuilder
|
|
2456
2499
|
# ami_tags: {
|
2457
2500
|
# "TagKey" => "TagValue",
|
2458
2501
|
# },
|
2502
|
+
# kms_key_id: "NonEmptyString",
|
2459
2503
|
# launch_permission: {
|
2460
2504
|
# user_ids: ["NonEmptyString"],
|
2461
2505
|
# user_groups: ["NonEmptyString"],
|
@@ -2617,6 +2661,9 @@ module Aws::Imagebuilder
|
|
2617
2661
|
# **A suitable default value is auto-generated.** You should normally
|
2618
2662
|
# not need to pass this option.**
|
2619
2663
|
#
|
2664
|
+
# @option params [Hash<String,String>] :resource_tags
|
2665
|
+
# The tags attached to the resource created by Image Builder.
|
2666
|
+
#
|
2620
2667
|
# @return [Types::UpdateInfrastructureConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2621
2668
|
#
|
2622
2669
|
# * {Types::UpdateInfrastructureConfigurationResponse#request_id #request_id} => String
|
@@ -2642,6 +2689,9 @@ module Aws::Imagebuilder
|
|
2642
2689
|
# terminate_instance_on_failure: false,
|
2643
2690
|
# sns_topic_arn: "SnsTopicArn",
|
2644
2691
|
# client_token: "ClientToken", # required
|
2692
|
+
# resource_tags: {
|
2693
|
+
# "TagKey" => "TagValue",
|
2694
|
+
# },
|
2645
2695
|
# })
|
2646
2696
|
#
|
2647
2697
|
# @example Response structure
|
@@ -2672,7 +2722,7 @@ module Aws::Imagebuilder
|
|
2672
2722
|
params: params,
|
2673
2723
|
config: config)
|
2674
2724
|
context[:gem_name] = 'aws-sdk-imagebuilder'
|
2675
|
-
context[:gem_version] = '1.
|
2725
|
+
context[:gem_version] = '1.13.0'
|
2676
2726
|
Seahorse::Client::Request.new(handlers, context)
|
2677
2727
|
end
|
2678
2728
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -117,6 +119,7 @@ module Aws::Imagebuilder
|
|
117
119
|
ImageTestsTimeoutMinutes = Shapes::IntegerShape.new(name: 'ImageTestsTimeoutMinutes')
|
118
120
|
ImageVersion = Shapes::StructureShape.new(name: 'ImageVersion')
|
119
121
|
ImageVersionArn = Shapes::StringShape.new(name: 'ImageVersionArn')
|
122
|
+
ImageVersionArnOrBuildVersionArn = Shapes::StringShape.new(name: 'ImageVersionArnOrBuildVersionArn')
|
120
123
|
ImageVersionList = Shapes::ListShape.new(name: 'ImageVersionList')
|
121
124
|
ImportComponentRequest = Shapes::StructureShape.new(name: 'ImportComponentRequest')
|
122
125
|
ImportComponentResponse = Shapes::StructureShape.new(name: 'ImportComponentResponse')
|
@@ -178,11 +181,13 @@ module Aws::Imagebuilder
|
|
178
181
|
ResourceName = Shapes::StringShape.new(name: 'ResourceName')
|
179
182
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
180
183
|
ResourcePolicyDocument = Shapes::StringShape.new(name: 'ResourcePolicyDocument')
|
184
|
+
ResourceTagMap = Shapes::MapShape.new(name: 'ResourceTagMap')
|
181
185
|
RestrictedInteger = Shapes::IntegerShape.new(name: 'RestrictedInteger')
|
182
186
|
S3Logs = Shapes::StructureShape.new(name: 'S3Logs')
|
183
187
|
Schedule = Shapes::StructureShape.new(name: 'Schedule')
|
184
188
|
SecurityGroupIds = Shapes::ListShape.new(name: 'SecurityGroupIds')
|
185
189
|
ServiceException = Shapes::StructureShape.new(name: 'ServiceException')
|
190
|
+
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
186
191
|
ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
|
187
192
|
SnsTopicArn = Shapes::StringShape.new(name: 'SnsTopicArn')
|
188
193
|
StartImagePipelineExecutionRequest = Shapes::StructureShape.new(name: 'StartImagePipelineExecutionRequest')
|
@@ -217,6 +222,7 @@ module Aws::Imagebuilder
|
|
217
222
|
AmiDistributionConfiguration.add_member(:name, Shapes::ShapeRef.new(shape: AmiNameString, location_name: "name"))
|
218
223
|
AmiDistributionConfiguration.add_member(:description, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "description"))
|
219
224
|
AmiDistributionConfiguration.add_member(:ami_tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "amiTags"))
|
225
|
+
AmiDistributionConfiguration.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "kmsKeyId"))
|
220
226
|
AmiDistributionConfiguration.add_member(:launch_permission, Shapes::ShapeRef.new(shape: LaunchPermissionConfiguration, location_name: "launchPermission"))
|
221
227
|
AmiDistributionConfiguration.struct_class = Types::AmiDistributionConfiguration
|
222
228
|
|
@@ -343,6 +349,7 @@ module Aws::Imagebuilder
|
|
343
349
|
CreateImageRecipeRequest.add_member(:parent_image, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "parentImage"))
|
344
350
|
CreateImageRecipeRequest.add_member(:block_device_mappings, Shapes::ShapeRef.new(shape: InstanceBlockDeviceMappings, location_name: "blockDeviceMappings"))
|
345
351
|
CreateImageRecipeRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
352
|
+
CreateImageRecipeRequest.add_member(:working_directory, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "workingDirectory"))
|
346
353
|
CreateImageRecipeRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, required: true, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
347
354
|
CreateImageRecipeRequest.struct_class = Types::CreateImageRecipeRequest
|
348
355
|
|
@@ -375,6 +382,7 @@ module Aws::Imagebuilder
|
|
375
382
|
CreateInfrastructureConfigurationRequest.add_member(:key_pair, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "keyPair"))
|
376
383
|
CreateInfrastructureConfigurationRequest.add_member(:terminate_instance_on_failure, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "terminateInstanceOnFailure"))
|
377
384
|
CreateInfrastructureConfigurationRequest.add_member(:sns_topic_arn, Shapes::ShapeRef.new(shape: SnsTopicArn, location_name: "snsTopicArn"))
|
385
|
+
CreateInfrastructureConfigurationRequest.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTagMap, location_name: "resourceTags"))
|
378
386
|
CreateInfrastructureConfigurationRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
379
387
|
CreateInfrastructureConfigurationRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, required: true, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
380
388
|
CreateInfrastructureConfigurationRequest.struct_class = Types::CreateInfrastructureConfigurationRequest
|
@@ -480,7 +488,7 @@ module Aws::Imagebuilder
|
|
480
488
|
GetComponentPolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: ResourcePolicyDocument, location_name: "policy"))
|
481
489
|
GetComponentPolicyResponse.struct_class = Types::GetComponentPolicyResponse
|
482
490
|
|
483
|
-
GetComponentRequest.add_member(:component_build_version_arn, Shapes::ShapeRef.new(shape:
|
491
|
+
GetComponentRequest.add_member(:component_build_version_arn, Shapes::ShapeRef.new(shape: ComponentVersionArnOrBuildVersionArn, required: true, location: "querystring", location_name: "componentBuildVersionArn"))
|
484
492
|
GetComponentRequest.struct_class = Types::GetComponentRequest
|
485
493
|
|
486
494
|
GetComponentResponse.add_member(:request_id, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "requestId"))
|
@@ -522,7 +530,7 @@ module Aws::Imagebuilder
|
|
522
530
|
GetImageRecipeResponse.add_member(:image_recipe, Shapes::ShapeRef.new(shape: ImageRecipe, location_name: "imageRecipe"))
|
523
531
|
GetImageRecipeResponse.struct_class = Types::GetImageRecipeResponse
|
524
532
|
|
525
|
-
GetImageRequest.add_member(:image_build_version_arn, Shapes::ShapeRef.new(shape:
|
533
|
+
GetImageRequest.add_member(:image_build_version_arn, Shapes::ShapeRef.new(shape: ImageVersionArnOrBuildVersionArn, required: true, location: "querystring", location_name: "imageBuildVersionArn"))
|
526
534
|
GetImageRequest.struct_class = Types::GetImageRequest
|
527
535
|
|
528
536
|
GetImageResponse.add_member(:request_id, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "requestId"))
|
@@ -588,6 +596,7 @@ module Aws::Imagebuilder
|
|
588
596
|
ImageRecipe.add_member(:block_device_mappings, Shapes::ShapeRef.new(shape: InstanceBlockDeviceMappings, location_name: "blockDeviceMappings"))
|
589
597
|
ImageRecipe.add_member(:date_created, Shapes::ShapeRef.new(shape: DateTime, location_name: "dateCreated"))
|
590
598
|
ImageRecipe.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
599
|
+
ImageRecipe.add_member(:working_directory, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "workingDirectory"))
|
591
600
|
ImageRecipe.struct_class = Types::ImageRecipe
|
592
601
|
|
593
602
|
ImageRecipeSummary.add_member(:arn, Shapes::ShapeRef.new(shape: ImageBuilderArn, location_name: "arn"))
|
@@ -666,6 +675,7 @@ module Aws::Imagebuilder
|
|
666
675
|
InfrastructureConfiguration.add_member(:sns_topic_arn, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "snsTopicArn"))
|
667
676
|
InfrastructureConfiguration.add_member(:date_created, Shapes::ShapeRef.new(shape: DateTime, location_name: "dateCreated"))
|
668
677
|
InfrastructureConfiguration.add_member(:date_updated, Shapes::ShapeRef.new(shape: DateTime, location_name: "dateUpdated"))
|
678
|
+
InfrastructureConfiguration.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTagMap, location_name: "resourceTags"))
|
669
679
|
InfrastructureConfiguration.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
670
680
|
InfrastructureConfiguration.struct_class = Types::InfrastructureConfiguration
|
671
681
|
|
@@ -674,6 +684,7 @@ module Aws::Imagebuilder
|
|
674
684
|
InfrastructureConfigurationSummary.add_member(:description, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "description"))
|
675
685
|
InfrastructureConfigurationSummary.add_member(:date_created, Shapes::ShapeRef.new(shape: DateTime, location_name: "dateCreated"))
|
676
686
|
InfrastructureConfigurationSummary.add_member(:date_updated, Shapes::ShapeRef.new(shape: DateTime, location_name: "dateUpdated"))
|
687
|
+
InfrastructureConfigurationSummary.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTagMap, location_name: "resourceTags"))
|
677
688
|
InfrastructureConfigurationSummary.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
678
689
|
InfrastructureConfigurationSummary.struct_class = Types::InfrastructureConfigurationSummary
|
679
690
|
|
@@ -856,6 +867,9 @@ module Aws::Imagebuilder
|
|
856
867
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
857
868
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
858
869
|
|
870
|
+
ResourceTagMap.key = Shapes::ShapeRef.new(shape: TagKey)
|
871
|
+
ResourceTagMap.value = Shapes::ShapeRef.new(shape: TagValue)
|
872
|
+
|
859
873
|
S3Logs.add_member(:s3_bucket_name, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "s3BucketName"))
|
860
874
|
S3Logs.add_member(:s3_key_prefix, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "s3KeyPrefix"))
|
861
875
|
S3Logs.struct_class = Types::S3Logs
|
@@ -869,6 +883,9 @@ module Aws::Imagebuilder
|
|
869
883
|
ServiceException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
870
884
|
ServiceException.struct_class = Types::ServiceException
|
871
885
|
|
886
|
+
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
887
|
+
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
888
|
+
|
872
889
|
ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
873
890
|
ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
|
874
891
|
|
@@ -939,6 +956,7 @@ module Aws::Imagebuilder
|
|
939
956
|
UpdateInfrastructureConfigurationRequest.add_member(:terminate_instance_on_failure, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "terminateInstanceOnFailure"))
|
940
957
|
UpdateInfrastructureConfigurationRequest.add_member(:sns_topic_arn, Shapes::ShapeRef.new(shape: SnsTopicArn, location_name: "snsTopicArn"))
|
941
958
|
UpdateInfrastructureConfigurationRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, required: true, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
959
|
+
UpdateInfrastructureConfigurationRequest.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTagMap, location_name: "resourceTags"))
|
942
960
|
UpdateInfrastructureConfigurationRequest.struct_class = Types::UpdateInfrastructureConfigurationRequest
|
943
961
|
|
944
962
|
UpdateInfrastructureConfigurationResponse.add_member(:request_id, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "requestId"))
|
@@ -997,6 +1015,7 @@ module Aws::Imagebuilder
|
|
997
1015
|
o.errors << Shapes::ShapeRef.new(shape: InvalidVersionNumberException)
|
998
1016
|
o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
|
999
1017
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
|
1018
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
1000
1019
|
end)
|
1001
1020
|
|
1002
1021
|
api.add_operation(:create_distribution_configuration, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1015,6 +1034,7 @@ module Aws::Imagebuilder
|
|
1015
1034
|
o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
|
1016
1035
|
o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
|
1017
1036
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
|
1037
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
1018
1038
|
end)
|
1019
1039
|
|
1020
1040
|
api.add_operation(:create_image, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1031,6 +1051,7 @@ module Aws::Imagebuilder
|
|
1031
1051
|
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
1032
1052
|
o.errors << Shapes::ShapeRef.new(shape: CallRateLimitExceededException)
|
1033
1053
|
o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
|
1054
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
1034
1055
|
end)
|
1035
1056
|
|
1036
1057
|
api.add_operation(:create_image_pipeline, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1048,6 +1069,7 @@ module Aws::Imagebuilder
|
|
1048
1069
|
o.errors << Shapes::ShapeRef.new(shape: CallRateLimitExceededException)
|
1049
1070
|
o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
|
1050
1071
|
o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
|
1072
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
1051
1073
|
end)
|
1052
1074
|
|
1053
1075
|
api.add_operation(:create_image_recipe, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1066,6 +1088,7 @@ module Aws::Imagebuilder
|
|
1066
1088
|
o.errors << Shapes::ShapeRef.new(shape: InvalidVersionNumberException)
|
1067
1089
|
o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
|
1068
1090
|
o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
|
1091
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
1069
1092
|
end)
|
1070
1093
|
|
1071
1094
|
api.add_operation(:create_infrastructure_configuration, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1083,6 +1106,7 @@ module Aws::Imagebuilder
|
|
1083
1106
|
o.errors << Shapes::ShapeRef.new(shape: CallRateLimitExceededException)
|
1084
1107
|
o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
|
1085
1108
|
o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
|
1109
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
1086
1110
|
end)
|
1087
1111
|
|
1088
1112
|
api.add_operation(:delete_component, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -40,6 +42,7 @@ module Aws::Imagebuilder
|
|
40
42
|
# * {ResourceInUseException}
|
41
43
|
# * {ResourceNotFoundException}
|
42
44
|
# * {ServiceException}
|
45
|
+
# * {ServiceQuotaExceededException}
|
43
46
|
# * {ServiceUnavailableException}
|
44
47
|
#
|
45
48
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
@@ -273,6 +276,21 @@ module Aws::Imagebuilder
|
|
273
276
|
end
|
274
277
|
end
|
275
278
|
|
279
|
+
class ServiceQuotaExceededException < ServiceError
|
280
|
+
|
281
|
+
# @param [Seahorse::Client::RequestContext] context
|
282
|
+
# @param [String] message
|
283
|
+
# @param [Aws::Imagebuilder::Types::ServiceQuotaExceededException] data
|
284
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
285
|
+
super(context, message, data)
|
286
|
+
end
|
287
|
+
|
288
|
+
# @return [String]
|
289
|
+
def message
|
290
|
+
@message || @data[:message]
|
291
|
+
end
|
292
|
+
end
|
293
|
+
|
276
294
|
class ServiceUnavailableException < ServiceError
|
277
295
|
|
278
296
|
# @param [Seahorse::Client::RequestContext] context
|