aws-sdk-imagebuilder 1.16.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 40bb1acbf6befa67e0d7225524760dba1fff56c3fb59f606d6f619300c8fb097
4
- data.tar.gz: afdd23a7a840c95738ea81eb5637b9e5e117788c251853649c984492af38df73
3
+ metadata.gz: 6acfd7d15d57a601b11e0e9a96e5c4c0b06fdc56b1405cf77b35824cce202175
4
+ data.tar.gz: 7955561c7439b7497bd77baa32c6dfb4ec835750907339fca2dfc8a06eaad206
5
5
  SHA512:
6
- metadata.gz: d41a076fefadb8c7488c233ea5f37eb6b0801473b544bb6a782634abe073c4f267c5dffb3f685b07f15748c70168ff66330193ba23822f155b149aff5434c9ea
7
- data.tar.gz: 402c9af5095c2f42b53a2385acfa9f232757c88db4b2613db65218260f81584e9f659bd08c4d24795fd9efe80dd40f691d96194974f96d62323facbabebb2c37
6
+ metadata.gz: 430b3d013fddc9b205e11ecaad4f3afc98a12a91283f0193442a6f804890291c55c963b75d0503251849e3a7190816179787f6506a0e47ca097f86c3810c200c
7
+ data.tar.gz: 5d058cef1c38afac0628cdf83d205d799d3975979cce59d87651f836cf97de7b47f0c04034a88c084cd88fc1256272662633186040f145aac41d323b6addb21f
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-imagebuilder/customizations'
48
48
  # @!group service
49
49
  module Aws::Imagebuilder
50
50
 
51
- GEM_VERSION = '1.16.0'
51
+ GEM_VERSION = '1.17.0'
52
52
 
53
53
  end
@@ -457,6 +457,112 @@ module Aws::Imagebuilder
457
457
  req.send_request(options)
458
458
  end
459
459
 
460
+ # Creates a new container recipe. Container recipes define how images
461
+ # are configured, tested, and assessed.
462
+ #
463
+ # @option params [required, String] :container_type
464
+ # The type of container to create.
465
+ #
466
+ # @option params [required, String] :name
467
+ # The name of the container recipe.
468
+ #
469
+ # @option params [String] :description
470
+ # The description of the container recipe.
471
+ #
472
+ # @option params [required, String] :semantic_version
473
+ # The semantic version of the container recipe
474
+ # (<major>.<minor>.<patch>).
475
+ #
476
+ # @option params [required, Array<Types::ComponentConfiguration>] :components
477
+ # Components for build and test that are included in the container
478
+ # recipe.
479
+ #
480
+ # @option params [required, String] :dockerfile_template_data
481
+ # The Dockerfile template used to build your image as an inline data
482
+ # blob.
483
+ #
484
+ # @option params [String] :dockerfile_template_uri
485
+ # The S3 URI for the Dockerfile that will be used to build your
486
+ # container image.
487
+ #
488
+ # @option params [String] :platform_override
489
+ # Specifies the operating system platform when you use a custom source
490
+ # image.
491
+ #
492
+ # @option params [String] :image_os_version_override
493
+ # Specifies the operating system version for the source image.
494
+ #
495
+ # @option params [required, String] :parent_image
496
+ # The source image for the container recipe.
497
+ #
498
+ # @option params [Hash<String,String>] :tags
499
+ # Tags that are attached to the container recipe.
500
+ #
501
+ # @option params [String] :working_directory
502
+ # The working directory for use during build and test workflows.
503
+ #
504
+ # @option params [required, Types::TargetContainerRepository] :target_repository
505
+ # The destination repository for the container image.
506
+ #
507
+ # @option params [String] :kms_key_id
508
+ # Identifies which KMS key is used to encrypt the container image.
509
+ #
510
+ # @option params [required, String] :client_token
511
+ # The client token used to make this request idempotent.
512
+ #
513
+ # **A suitable default value is auto-generated.** You should normally
514
+ # not need to pass this option.**
515
+ #
516
+ # @return [Types::CreateContainerRecipeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
517
+ #
518
+ # * {Types::CreateContainerRecipeResponse#request_id #request_id} => String
519
+ # * {Types::CreateContainerRecipeResponse#client_token #client_token} => String
520
+ # * {Types::CreateContainerRecipeResponse#container_recipe_arn #container_recipe_arn} => String
521
+ #
522
+ # @example Request syntax with placeholder values
523
+ #
524
+ # resp = client.create_container_recipe({
525
+ # container_type: "DOCKER", # required, accepts DOCKER
526
+ # name: "ResourceName", # required
527
+ # description: "NonEmptyString",
528
+ # semantic_version: "VersionNumber", # required
529
+ # components: [ # required
530
+ # {
531
+ # component_arn: "ComponentVersionArnOrBuildVersionArn", # required
532
+ # },
533
+ # ],
534
+ # dockerfile_template_data: "InlineDockerFileTemplate", # required
535
+ # dockerfile_template_uri: "Uri",
536
+ # platform_override: "Windows", # accepts Windows, Linux
537
+ # image_os_version_override: "NonEmptyString",
538
+ # parent_image: "NonEmptyString", # required
539
+ # tags: {
540
+ # "TagKey" => "TagValue",
541
+ # },
542
+ # working_directory: "NonEmptyString",
543
+ # target_repository: { # required
544
+ # service: "ECR", # required, accepts ECR
545
+ # repository_name: "NonEmptyString", # required
546
+ # },
547
+ # kms_key_id: "NonEmptyString",
548
+ # client_token: "ClientToken", # required
549
+ # })
550
+ #
551
+ # @example Response structure
552
+ #
553
+ # resp.request_id #=> String
554
+ # resp.client_token #=> String
555
+ # resp.container_recipe_arn #=> String
556
+ #
557
+ # @see http://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/CreateContainerRecipe AWS API Documentation
558
+ #
559
+ # @overload create_container_recipe(params = {})
560
+ # @param [Hash] params ({})
561
+ def create_container_recipe(params = {}, options = {})
562
+ req = build_request(:create_container_recipe, params)
563
+ req.send_request(options)
564
+ end
565
+
460
566
  # Creates a new distribution configuration. Distribution configurations
461
567
  # define and configure the outputs of your pipeline.
462
568
  #
@@ -505,6 +611,14 @@ module Aws::Imagebuilder
505
611
  # user_groups: ["NonEmptyString"],
506
612
  # },
507
613
  # },
614
+ # container_distribution_configuration: {
615
+ # description: "NonEmptyString",
616
+ # container_tags: ["NonEmptyString"],
617
+ # target_repository: { # required
618
+ # service: "ECR", # required, accepts ECR
619
+ # repository_name: "NonEmptyString", # required
620
+ # },
621
+ # },
508
622
  # license_configuration_arns: ["LicenseConfigurationArn"],
509
623
  # },
510
624
  # ],
@@ -533,10 +647,14 @@ module Aws::Imagebuilder
533
647
  # all of the configured output resources defined in the distribution
534
648
  # configuration.
535
649
  #
536
- # @option params [required, String] :image_recipe_arn
650
+ # @option params [String] :image_recipe_arn
537
651
  # The Amazon Resource Name (ARN) of the image recipe that defines how
538
652
  # images are configured, tested, and assessed.
539
653
  #
654
+ # @option params [String] :container_recipe_arn
655
+ # The Amazon Resource Name (ARN) of the container recipe that defines
656
+ # how images are configured and tested.
657
+ #
540
658
  # @option params [String] :distribution_configuration_arn
541
659
  # The Amazon Resource Name (ARN) of the distribution configuration that
542
660
  # defines and configures the outputs of your pipeline.
@@ -573,7 +691,8 @@ module Aws::Imagebuilder
573
691
  # @example Request syntax with placeholder values
574
692
  #
575
693
  # resp = client.create_image({
576
- # image_recipe_arn: "ImageRecipeArn", # required
694
+ # image_recipe_arn: "ImageRecipeArn",
695
+ # container_recipe_arn: "ContainerRecipeArn",
577
696
  # distribution_configuration_arn: "DistributionConfigurationArn",
578
697
  # infrastructure_configuration_arn: "InfrastructureConfigurationArn", # required
579
698
  # image_tests_configuration: {
@@ -611,10 +730,14 @@ module Aws::Imagebuilder
611
730
  # @option params [String] :description
612
731
  # The description of the image pipeline.
613
732
  #
614
- # @option params [required, String] :image_recipe_arn
733
+ # @option params [String] :image_recipe_arn
615
734
  # The Amazon Resource Name (ARN) of the image recipe that will be used
616
735
  # to configure images created by this image pipeline.
617
736
  #
737
+ # @option params [String] :container_recipe_arn
738
+ # The Amazon Resource Name (ARN) of the container recipe that is used to
739
+ # configure images created by this container pipeline.
740
+ #
618
741
  # @option params [required, String] :infrastructure_configuration_arn
619
742
  # The Amazon Resource Name (ARN) of the infrastructure configuration
620
743
  # that will be used to build images created by this image pipeline.
@@ -659,7 +782,8 @@ module Aws::Imagebuilder
659
782
  # resp = client.create_image_pipeline({
660
783
  # name: "ResourceName", # required
661
784
  # description: "NonEmptyString",
662
- # image_recipe_arn: "ImageRecipeArn", # required
785
+ # image_recipe_arn: "ImageRecipeArn",
786
+ # container_recipe_arn: "ContainerRecipeArn",
663
787
  # infrastructure_configuration_arn: "InfrastructureConfigurationArn", # required
664
788
  # distribution_configuration_arn: "DistributionConfigurationArn",
665
789
  # image_tests_configuration: {
@@ -923,6 +1047,36 @@ module Aws::Imagebuilder
923
1047
  req.send_request(options)
924
1048
  end
925
1049
 
1050
+ # Deletes a container recipe.
1051
+ #
1052
+ # @option params [required, String] :container_recipe_arn
1053
+ # The Amazon Resource Name (ARN) of the container recipe to delete.
1054
+ #
1055
+ # @return [Types::DeleteContainerRecipeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1056
+ #
1057
+ # * {Types::DeleteContainerRecipeResponse#request_id #request_id} => String
1058
+ # * {Types::DeleteContainerRecipeResponse#container_recipe_arn #container_recipe_arn} => String
1059
+ #
1060
+ # @example Request syntax with placeholder values
1061
+ #
1062
+ # resp = client.delete_container_recipe({
1063
+ # container_recipe_arn: "ContainerRecipeArn", # required
1064
+ # })
1065
+ #
1066
+ # @example Response structure
1067
+ #
1068
+ # resp.request_id #=> String
1069
+ # resp.container_recipe_arn #=> String
1070
+ #
1071
+ # @see http://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/DeleteContainerRecipe AWS API Documentation
1072
+ #
1073
+ # @overload delete_container_recipe(params = {})
1074
+ # @param [Hash] params ({})
1075
+ def delete_container_recipe(params = {}, options = {})
1076
+ req = build_request(:delete_container_recipe, params)
1077
+ req.send_request(options)
1078
+ end
1079
+
926
1080
  # Deletes a distribution configuration.
927
1081
  #
928
1082
  # @option params [required, String] :distribution_configuration_arn
@@ -1152,6 +1306,85 @@ module Aws::Imagebuilder
1152
1306
  req.send_request(options)
1153
1307
  end
1154
1308
 
1309
+ # Retrieves a container recipe.
1310
+ #
1311
+ # @option params [required, String] :container_recipe_arn
1312
+ # The Amazon Resource Name (ARN) of the container recipe to retrieve.
1313
+ #
1314
+ # @return [Types::GetContainerRecipeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1315
+ #
1316
+ # * {Types::GetContainerRecipeResponse#request_id #request_id} => String
1317
+ # * {Types::GetContainerRecipeResponse#container_recipe #container_recipe} => Types::ContainerRecipe
1318
+ #
1319
+ # @example Request syntax with placeholder values
1320
+ #
1321
+ # resp = client.get_container_recipe({
1322
+ # container_recipe_arn: "ContainerRecipeArn", # required
1323
+ # })
1324
+ #
1325
+ # @example Response structure
1326
+ #
1327
+ # resp.request_id #=> String
1328
+ # resp.container_recipe.arn #=> String
1329
+ # resp.container_recipe.container_type #=> String, one of "DOCKER"
1330
+ # resp.container_recipe.name #=> String
1331
+ # resp.container_recipe.description #=> String
1332
+ # resp.container_recipe.platform #=> String, one of "Windows", "Linux"
1333
+ # resp.container_recipe.owner #=> String
1334
+ # resp.container_recipe.version #=> String
1335
+ # resp.container_recipe.components #=> Array
1336
+ # resp.container_recipe.components[0].component_arn #=> String
1337
+ # resp.container_recipe.dockerfile_template_data #=> String
1338
+ # resp.container_recipe.kms_key_id #=> String
1339
+ # resp.container_recipe.encrypted #=> Boolean
1340
+ # resp.container_recipe.parent_image #=> String
1341
+ # resp.container_recipe.date_created #=> String
1342
+ # resp.container_recipe.tags #=> Hash
1343
+ # resp.container_recipe.tags["TagKey"] #=> String
1344
+ # resp.container_recipe.working_directory #=> String
1345
+ # resp.container_recipe.target_repository.service #=> String, one of "ECR"
1346
+ # resp.container_recipe.target_repository.repository_name #=> String
1347
+ #
1348
+ # @see http://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/GetContainerRecipe AWS API Documentation
1349
+ #
1350
+ # @overload get_container_recipe(params = {})
1351
+ # @param [Hash] params ({})
1352
+ def get_container_recipe(params = {}, options = {})
1353
+ req = build_request(:get_container_recipe, params)
1354
+ req.send_request(options)
1355
+ end
1356
+
1357
+ # Retrieves the policy for a container recipe.
1358
+ #
1359
+ # @option params [required, String] :container_recipe_arn
1360
+ # The Amazon Resource Name (ARN) of the container recipe for the policy
1361
+ # being requested.
1362
+ #
1363
+ # @return [Types::GetContainerRecipePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1364
+ #
1365
+ # * {Types::GetContainerRecipePolicyResponse#request_id #request_id} => String
1366
+ # * {Types::GetContainerRecipePolicyResponse#policy #policy} => String
1367
+ #
1368
+ # @example Request syntax with placeholder values
1369
+ #
1370
+ # resp = client.get_container_recipe_policy({
1371
+ # container_recipe_arn: "ContainerRecipeArn", # required
1372
+ # })
1373
+ #
1374
+ # @example Response structure
1375
+ #
1376
+ # resp.request_id #=> String
1377
+ # resp.policy #=> String
1378
+ #
1379
+ # @see http://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/GetContainerRecipePolicy AWS API Documentation
1380
+ #
1381
+ # @overload get_container_recipe_policy(params = {})
1382
+ # @param [Hash] params ({})
1383
+ def get_container_recipe_policy(params = {}, options = {})
1384
+ req = build_request(:get_container_recipe_policy, params)
1385
+ req.send_request(options)
1386
+ end
1387
+
1155
1388
  # Gets a distribution configuration.
1156
1389
  #
1157
1390
  # @option params [required, String] :distribution_configuration_arn
@@ -1188,6 +1421,11 @@ module Aws::Imagebuilder
1188
1421
  # resp.distribution_configuration.distributions[0].ami_distribution_configuration.launch_permission.user_ids[0] #=> String
1189
1422
  # resp.distribution_configuration.distributions[0].ami_distribution_configuration.launch_permission.user_groups #=> Array
1190
1423
  # resp.distribution_configuration.distributions[0].ami_distribution_configuration.launch_permission.user_groups[0] #=> String
1424
+ # resp.distribution_configuration.distributions[0].container_distribution_configuration.description #=> String
1425
+ # resp.distribution_configuration.distributions[0].container_distribution_configuration.container_tags #=> Array
1426
+ # resp.distribution_configuration.distributions[0].container_distribution_configuration.container_tags[0] #=> String
1427
+ # resp.distribution_configuration.distributions[0].container_distribution_configuration.target_repository.service #=> String, one of "ECR"
1428
+ # resp.distribution_configuration.distributions[0].container_distribution_configuration.target_repository.repository_name #=> String
1191
1429
  # resp.distribution_configuration.distributions[0].license_configuration_arns #=> Array
1192
1430
  # resp.distribution_configuration.distributions[0].license_configuration_arns[0] #=> String
1193
1431
  # resp.distribution_configuration.timeout_minutes #=> Integer
@@ -1225,6 +1463,7 @@ module Aws::Imagebuilder
1225
1463
  #
1226
1464
  # resp.request_id #=> String
1227
1465
  # resp.image.arn #=> String
1466
+ # resp.image.type #=> String, one of "AMI", "DOCKER"
1228
1467
  # resp.image.name #=> String
1229
1468
  # resp.image.version #=> String
1230
1469
  # resp.image.platform #=> String, one of "Windows", "Linux"
@@ -1233,6 +1472,7 @@ module Aws::Imagebuilder
1233
1472
  # resp.image.state.status #=> String, one of "PENDING", "CREATING", "BUILDING", "TESTING", "DISTRIBUTING", "INTEGRATING", "AVAILABLE", "CANCELLED", "FAILED", "DEPRECATED", "DELETED"
1234
1473
  # resp.image.state.reason #=> String
1235
1474
  # resp.image.image_recipe.arn #=> String
1475
+ # resp.image.image_recipe.type #=> String, one of "AMI", "DOCKER"
1236
1476
  # resp.image.image_recipe.name #=> String
1237
1477
  # resp.image.image_recipe.description #=> String
1238
1478
  # resp.image.image_recipe.platform #=> String, one of "Windows", "Linux"
@@ -1256,6 +1496,25 @@ module Aws::Imagebuilder
1256
1496
  # resp.image.image_recipe.tags #=> Hash
1257
1497
  # resp.image.image_recipe.tags["TagKey"] #=> String
1258
1498
  # resp.image.image_recipe.working_directory #=> String
1499
+ # resp.image.container_recipe.arn #=> String
1500
+ # resp.image.container_recipe.container_type #=> String, one of "DOCKER"
1501
+ # resp.image.container_recipe.name #=> String
1502
+ # resp.image.container_recipe.description #=> String
1503
+ # resp.image.container_recipe.platform #=> String, one of "Windows", "Linux"
1504
+ # resp.image.container_recipe.owner #=> String
1505
+ # resp.image.container_recipe.version #=> String
1506
+ # resp.image.container_recipe.components #=> Array
1507
+ # resp.image.container_recipe.components[0].component_arn #=> String
1508
+ # resp.image.container_recipe.dockerfile_template_data #=> String
1509
+ # resp.image.container_recipe.kms_key_id #=> String
1510
+ # resp.image.container_recipe.encrypted #=> Boolean
1511
+ # resp.image.container_recipe.parent_image #=> String
1512
+ # resp.image.container_recipe.date_created #=> String
1513
+ # resp.image.container_recipe.tags #=> Hash
1514
+ # resp.image.container_recipe.tags["TagKey"] #=> String
1515
+ # resp.image.container_recipe.working_directory #=> String
1516
+ # resp.image.container_recipe.target_repository.service #=> String, one of "ECR"
1517
+ # resp.image.container_recipe.target_repository.repository_name #=> String
1259
1518
  # resp.image.source_pipeline_name #=> String
1260
1519
  # resp.image.source_pipeline_arn #=> String
1261
1520
  # resp.image.infrastructure_configuration.arn #=> String
@@ -1294,6 +1553,11 @@ module Aws::Imagebuilder
1294
1553
  # resp.image.distribution_configuration.distributions[0].ami_distribution_configuration.launch_permission.user_ids[0] #=> String
1295
1554
  # resp.image.distribution_configuration.distributions[0].ami_distribution_configuration.launch_permission.user_groups #=> Array
1296
1555
  # resp.image.distribution_configuration.distributions[0].ami_distribution_configuration.launch_permission.user_groups[0] #=> String
1556
+ # resp.image.distribution_configuration.distributions[0].container_distribution_configuration.description #=> String
1557
+ # resp.image.distribution_configuration.distributions[0].container_distribution_configuration.container_tags #=> Array
1558
+ # resp.image.distribution_configuration.distributions[0].container_distribution_configuration.container_tags[0] #=> String
1559
+ # resp.image.distribution_configuration.distributions[0].container_distribution_configuration.target_repository.service #=> String, one of "ECR"
1560
+ # resp.image.distribution_configuration.distributions[0].container_distribution_configuration.target_repository.repository_name #=> String
1297
1561
  # resp.image.distribution_configuration.distributions[0].license_configuration_arns #=> Array
1298
1562
  # resp.image.distribution_configuration.distributions[0].license_configuration_arns[0] #=> String
1299
1563
  # resp.image.distribution_configuration.timeout_minutes #=> Integer
@@ -1312,6 +1576,10 @@ module Aws::Imagebuilder
1312
1576
  # resp.image.output_resources.amis[0].state.status #=> String, one of "PENDING", "CREATING", "BUILDING", "TESTING", "DISTRIBUTING", "INTEGRATING", "AVAILABLE", "CANCELLED", "FAILED", "DEPRECATED", "DELETED"
1313
1577
  # resp.image.output_resources.amis[0].state.reason #=> String
1314
1578
  # resp.image.output_resources.amis[0].account_id #=> String
1579
+ # resp.image.output_resources.containers #=> Array
1580
+ # resp.image.output_resources.containers[0].region #=> String
1581
+ # resp.image.output_resources.containers[0].image_uris #=> Array
1582
+ # resp.image.output_resources.containers[0].image_uris[0] #=> String
1315
1583
  # resp.image.tags #=> Hash
1316
1584
  # resp.image.tags["TagKey"] #=> String
1317
1585
  #
@@ -1350,6 +1618,7 @@ module Aws::Imagebuilder
1350
1618
  # resp.image_pipeline.platform #=> String, one of "Windows", "Linux"
1351
1619
  # resp.image_pipeline.enhanced_image_metadata_enabled #=> Boolean
1352
1620
  # resp.image_pipeline.image_recipe_arn #=> String
1621
+ # resp.image_pipeline.container_recipe_arn #=> String
1353
1622
  # resp.image_pipeline.infrastructure_configuration_arn #=> String
1354
1623
  # resp.image_pipeline.distribution_configuration_arn #=> String
1355
1624
  # resp.image_pipeline.image_tests_configuration.image_tests_enabled #=> Boolean
@@ -1425,6 +1694,7 @@ module Aws::Imagebuilder
1425
1694
  #
1426
1695
  # resp.request_id #=> String
1427
1696
  # resp.image_recipe.arn #=> String
1697
+ # resp.image_recipe.type #=> String, one of "AMI", "DOCKER"
1428
1698
  # resp.image_recipe.name #=> String
1429
1699
  # resp.image_recipe.description #=> String
1430
1700
  # resp.image_recipe.platform #=> String, one of "Windows", "Linux"
@@ -1701,6 +1971,10 @@ module Aws::Imagebuilder
1701
1971
  # @option params [Array<Types::Filter>] :filters
1702
1972
  # The filters.
1703
1973
  #
1974
+ # @option params [Boolean] :by_name
1975
+ # Returns the list of component build versions for the specified
1976
+ # semantic version.
1977
+ #
1704
1978
  # @option params [Integer] :max_results
1705
1979
  # The maximum items to return in a request.
1706
1980
  #
@@ -1726,6 +2000,7 @@ module Aws::Imagebuilder
1726
2000
  # values: ["FilterValue"],
1727
2001
  # },
1728
2002
  # ],
2003
+ # by_name: false,
1729
2004
  # max_results: 1,
1730
2005
  # next_token: "PaginationToken",
1731
2006
  # })
@@ -1755,6 +2030,71 @@ module Aws::Imagebuilder
1755
2030
  req.send_request(options)
1756
2031
  end
1757
2032
 
2033
+ # Returns a list of container recipes.
2034
+ #
2035
+ # @option params [String] :owner
2036
+ # Returns container recipes belonging to the specified owner, that have
2037
+ # been shared with you. You can omit this field to return container
2038
+ # recipes belonging to your account.
2039
+ #
2040
+ # @option params [Array<Types::Filter>] :filters
2041
+ # Request filters that are used to narrow the list of container images
2042
+ # that are returned.
2043
+ #
2044
+ # @option params [Integer] :max_results
2045
+ # The maximum number of results to return in the list.
2046
+ #
2047
+ # @option params [String] :next_token
2048
+ # Provides a token for pagination, which determines where to begin the
2049
+ # next set of results when the current set reaches the maximum for one
2050
+ # request.
2051
+ #
2052
+ # @return [Types::ListContainerRecipesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2053
+ #
2054
+ # * {Types::ListContainerRecipesResponse#request_id #request_id} => String
2055
+ # * {Types::ListContainerRecipesResponse#container_recipe_summary_list #container_recipe_summary_list} => Array&lt;Types::ContainerRecipeSummary&gt;
2056
+ # * {Types::ListContainerRecipesResponse#next_token #next_token} => String
2057
+ #
2058
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2059
+ #
2060
+ # @example Request syntax with placeholder values
2061
+ #
2062
+ # resp = client.list_container_recipes({
2063
+ # owner: "Self", # accepts Self, Shared, Amazon
2064
+ # filters: [
2065
+ # {
2066
+ # name: "FilterName",
2067
+ # values: ["FilterValue"],
2068
+ # },
2069
+ # ],
2070
+ # max_results: 1,
2071
+ # next_token: "NonEmptyString",
2072
+ # })
2073
+ #
2074
+ # @example Response structure
2075
+ #
2076
+ # resp.request_id #=> String
2077
+ # resp.container_recipe_summary_list #=> Array
2078
+ # resp.container_recipe_summary_list[0].arn #=> String
2079
+ # resp.container_recipe_summary_list[0].container_type #=> String, one of "DOCKER"
2080
+ # resp.container_recipe_summary_list[0].name #=> String
2081
+ # resp.container_recipe_summary_list[0].platform #=> String, one of "Windows", "Linux"
2082
+ # resp.container_recipe_summary_list[0].owner #=> String
2083
+ # resp.container_recipe_summary_list[0].parent_image #=> String
2084
+ # resp.container_recipe_summary_list[0].date_created #=> String
2085
+ # resp.container_recipe_summary_list[0].tags #=> Hash
2086
+ # resp.container_recipe_summary_list[0].tags["TagKey"] #=> String
2087
+ # resp.next_token #=> String
2088
+ #
2089
+ # @see http://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/ListContainerRecipes AWS API Documentation
2090
+ #
2091
+ # @overload list_container_recipes(params = {})
2092
+ # @param [Hash] params ({})
2093
+ def list_container_recipes(params = {}, options = {})
2094
+ req = build_request(:list_container_recipes, params)
2095
+ req.send_request(options)
2096
+ end
2097
+
1758
2098
  # Returns a list of distribution configurations.
1759
2099
  #
1760
2100
  # @option params [Array<Types::Filter>] :filters
@@ -1803,6 +2143,8 @@ module Aws::Imagebuilder
1803
2143
  # resp.distribution_configuration_summary_list[0].date_updated #=> String
1804
2144
  # resp.distribution_configuration_summary_list[0].tags #=> Hash
1805
2145
  # resp.distribution_configuration_summary_list[0].tags["TagKey"] #=> String
2146
+ # resp.distribution_configuration_summary_list[0].regions #=> Array
2147
+ # resp.distribution_configuration_summary_list[0].regions[0] #=> String
1806
2148
  # resp.next_token #=> String
1807
2149
  #
1808
2150
  # @see http://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/ListDistributionConfigurations AWS API Documentation
@@ -1858,6 +2200,7 @@ module Aws::Imagebuilder
1858
2200
  # resp.image_summary_list #=> Array
1859
2201
  # resp.image_summary_list[0].arn #=> String
1860
2202
  # resp.image_summary_list[0].name #=> String
2203
+ # resp.image_summary_list[0].type #=> String, one of "AMI", "DOCKER"
1861
2204
  # resp.image_summary_list[0].version #=> String
1862
2205
  # resp.image_summary_list[0].platform #=> String, one of "Windows", "Linux"
1863
2206
  # resp.image_summary_list[0].os_version #=> String
@@ -1873,6 +2216,10 @@ module Aws::Imagebuilder
1873
2216
  # resp.image_summary_list[0].output_resources.amis[0].state.status #=> String, one of "PENDING", "CREATING", "BUILDING", "TESTING", "DISTRIBUTING", "INTEGRATING", "AVAILABLE", "CANCELLED", "FAILED", "DEPRECATED", "DELETED"
1874
2217
  # resp.image_summary_list[0].output_resources.amis[0].state.reason #=> String
1875
2218
  # resp.image_summary_list[0].output_resources.amis[0].account_id #=> String
2219
+ # resp.image_summary_list[0].output_resources.containers #=> Array
2220
+ # resp.image_summary_list[0].output_resources.containers[0].region #=> String
2221
+ # resp.image_summary_list[0].output_resources.containers[0].image_uris #=> Array
2222
+ # resp.image_summary_list[0].output_resources.containers[0].image_uris[0] #=> String
1876
2223
  # resp.image_summary_list[0].tags #=> Hash
1877
2224
  # resp.image_summary_list[0].tags["TagKey"] #=> String
1878
2225
  # resp.next_token #=> String
@@ -1930,6 +2277,7 @@ module Aws::Imagebuilder
1930
2277
  # resp.image_summary_list #=> Array
1931
2278
  # resp.image_summary_list[0].arn #=> String
1932
2279
  # resp.image_summary_list[0].name #=> String
2280
+ # resp.image_summary_list[0].type #=> String, one of "AMI", "DOCKER"
1933
2281
  # resp.image_summary_list[0].version #=> String
1934
2282
  # resp.image_summary_list[0].platform #=> String, one of "Windows", "Linux"
1935
2283
  # resp.image_summary_list[0].os_version #=> String
@@ -1945,6 +2293,10 @@ module Aws::Imagebuilder
1945
2293
  # resp.image_summary_list[0].output_resources.amis[0].state.status #=> String, one of "PENDING", "CREATING", "BUILDING", "TESTING", "DISTRIBUTING", "INTEGRATING", "AVAILABLE", "CANCELLED", "FAILED", "DEPRECATED", "DELETED"
1946
2294
  # resp.image_summary_list[0].output_resources.amis[0].state.reason #=> String
1947
2295
  # resp.image_summary_list[0].output_resources.amis[0].account_id #=> String
2296
+ # resp.image_summary_list[0].output_resources.containers #=> Array
2297
+ # resp.image_summary_list[0].output_resources.containers[0].region #=> String
2298
+ # resp.image_summary_list[0].output_resources.containers[0].image_uris #=> Array
2299
+ # resp.image_summary_list[0].output_resources.containers[0].image_uris[0] #=> String
1948
2300
  # resp.image_summary_list[0].tags #=> Hash
1949
2301
  # resp.image_summary_list[0].tags["TagKey"] #=> String
1950
2302
  # resp.next_token #=> String
@@ -2001,6 +2353,7 @@ module Aws::Imagebuilder
2001
2353
  # resp.image_pipeline_list[0].platform #=> String, one of "Windows", "Linux"
2002
2354
  # resp.image_pipeline_list[0].enhanced_image_metadata_enabled #=> Boolean
2003
2355
  # resp.image_pipeline_list[0].image_recipe_arn #=> String
2356
+ # resp.image_pipeline_list[0].container_recipe_arn #=> String
2004
2357
  # resp.image_pipeline_list[0].infrastructure_configuration_arn #=> String
2005
2358
  # resp.image_pipeline_list[0].distribution_configuration_arn #=> String
2006
2359
  # resp.image_pipeline_list[0].image_tests_configuration.image_tests_enabled #=> Boolean
@@ -2101,6 +2454,9 @@ module Aws::Imagebuilder
2101
2454
  # @option params [Array<Types::Filter>] :filters
2102
2455
  # The filters.
2103
2456
  #
2457
+ # @option params [Boolean] :by_name
2458
+ # Requests a list of images with a specific recipe name.
2459
+ #
2104
2460
  # @option params [Integer] :max_results
2105
2461
  # The maximum items to return in a request.
2106
2462
  #
@@ -2108,6 +2464,9 @@ module Aws::Imagebuilder
2108
2464
  # A token to specify where to start paginating. This is the NextToken
2109
2465
  # from a previously truncated response.
2110
2466
  #
2467
+ # @option params [Boolean] :include_deprecated
2468
+ # Includes deprecated images in the response list.
2469
+ #
2111
2470
  # @return [Types::ListImagesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2112
2471
  #
2113
2472
  # * {Types::ListImagesResponse#request_id #request_id} => String
@@ -2126,8 +2485,10 @@ module Aws::Imagebuilder
2126
2485
  # values: ["FilterValue"],
2127
2486
  # },
2128
2487
  # ],
2488
+ # by_name: false,
2129
2489
  # max_results: 1,
2130
2490
  # next_token: "PaginationToken",
2491
+ # include_deprecated: false,
2131
2492
  # })
2132
2493
  #
2133
2494
  # @example Response structure
@@ -2136,6 +2497,7 @@ module Aws::Imagebuilder
2136
2497
  # resp.image_version_list #=> Array
2137
2498
  # resp.image_version_list[0].arn #=> String
2138
2499
  # resp.image_version_list[0].name #=> String
2500
+ # resp.image_version_list[0].type #=> String, one of "AMI", "DOCKER"
2139
2501
  # resp.image_version_list[0].version #=> String
2140
2502
  # resp.image_version_list[0].platform #=> String, one of "Windows", "Linux"
2141
2503
  # resp.image_version_list[0].os_version #=> String
@@ -2283,6 +2645,49 @@ module Aws::Imagebuilder
2283
2645
  req.send_request(options)
2284
2646
  end
2285
2647
 
2648
+ # Applies a policy to a container image. We recommend that you call the
2649
+ # RAM API CreateResourceShare
2650
+ # (https://docs.aws.amazon.com/ram/latest/APIReference/API\_CreateResourceShare.html)
2651
+ # to share resources. If you call the Image Builder API
2652
+ # `PutContainerImagePolicy`, you must also call the RAM API
2653
+ # PromoteResourceShareCreatedFromPolicy
2654
+ # (https://docs.aws.amazon.com/ram/latest/APIReference/API\_PromoteResourceShareCreatedFromPolicy.html)
2655
+ # in order for the resource to be visible to all principals with whom
2656
+ # the resource is shared.
2657
+ #
2658
+ # @option params [required, String] :container_recipe_arn
2659
+ # The Amazon Resource Name (ARN) of the container recipe that this
2660
+ # policy should be applied to.
2661
+ #
2662
+ # @option params [required, String] :policy
2663
+ # The policy to apply to the container recipe.
2664
+ #
2665
+ # @return [Types::PutContainerRecipePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2666
+ #
2667
+ # * {Types::PutContainerRecipePolicyResponse#request_id #request_id} => String
2668
+ # * {Types::PutContainerRecipePolicyResponse#container_recipe_arn #container_recipe_arn} => String
2669
+ #
2670
+ # @example Request syntax with placeholder values
2671
+ #
2672
+ # resp = client.put_container_recipe_policy({
2673
+ # container_recipe_arn: "ContainerRecipeArn", # required
2674
+ # policy: "ResourcePolicyDocument", # required
2675
+ # })
2676
+ #
2677
+ # @example Response structure
2678
+ #
2679
+ # resp.request_id #=> String
2680
+ # resp.container_recipe_arn #=> String
2681
+ #
2682
+ # @see http://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/PutContainerRecipePolicy AWS API Documentation
2683
+ #
2684
+ # @overload put_container_recipe_policy(params = {})
2685
+ # @param [Hash] params ({})
2686
+ def put_container_recipe_policy(params = {}, options = {})
2687
+ req = build_request(:put_container_recipe_policy, params)
2688
+ req.send_request(options)
2689
+ end
2690
+
2286
2691
  # Applies a policy to an image. We recommend that you call the RAM API
2287
2692
  # [CreateResourceShare][1] to share resources. If you call the Image
2288
2693
  # Builder API `PutImagePolicy`, you must also call the RAM API
@@ -2512,6 +2917,14 @@ module Aws::Imagebuilder
2512
2917
  # user_groups: ["NonEmptyString"],
2513
2918
  # },
2514
2919
  # },
2920
+ # container_distribution_configuration: {
2921
+ # description: "NonEmptyString",
2922
+ # container_tags: ["NonEmptyString"],
2923
+ # target_repository: { # required
2924
+ # service: "ECR", # required, accepts ECR
2925
+ # repository_name: "NonEmptyString", # required
2926
+ # },
2927
+ # },
2515
2928
  # license_configuration_arns: ["LicenseConfigurationArn"],
2516
2929
  # },
2517
2930
  # ],
@@ -2543,10 +2956,13 @@ module Aws::Imagebuilder
2543
2956
  # @option params [String] :description
2544
2957
  # The description of the image pipeline.
2545
2958
  #
2546
- # @option params [required, String] :image_recipe_arn
2959
+ # @option params [String] :image_recipe_arn
2547
2960
  # The Amazon Resource Name (ARN) of the image recipe that will be used
2548
2961
  # to configure images updated by this image pipeline.
2549
2962
  #
2963
+ # @option params [String] :container_recipe_arn
2964
+ # The Amazon Resource Name (ARN) of the container pipeline to update.
2965
+ #
2550
2966
  # @option params [required, String] :infrastructure_configuration_arn
2551
2967
  # The Amazon Resource Name (ARN) of the infrastructure configuration
2552
2968
  # that will be used to build images updated by this image pipeline.
@@ -2588,7 +3004,8 @@ module Aws::Imagebuilder
2588
3004
  # resp = client.update_image_pipeline({
2589
3005
  # image_pipeline_arn: "ImagePipelineArn", # required
2590
3006
  # description: "NonEmptyString",
2591
- # image_recipe_arn: "ImageRecipeArn", # required
3007
+ # image_recipe_arn: "ImageRecipeArn",
3008
+ # container_recipe_arn: "ContainerRecipeArn",
2592
3009
  # infrastructure_configuration_arn: "InfrastructureConfigurationArn", # required
2593
3010
  # distribution_configuration_arn: "DistributionConfigurationArn",
2594
3011
  # image_tests_configuration: {
@@ -2729,7 +3146,7 @@ module Aws::Imagebuilder
2729
3146
  params: params,
2730
3147
  config: config)
2731
3148
  context[:gem_name] = 'aws-sdk-imagebuilder'
2732
- context[:gem_version] = '1.16.0'
3149
+ context[:gem_version] = '1.17.0'
2733
3150
  Seahorse::Client::Request.new(handlers, context)
2734
3151
  end
2735
3152