aws-sdk-imagebuilder 1.13.0 → 1.18.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 +4 -4
- data/lib/aws-sdk-imagebuilder.rb +2 -1
- data/lib/aws-sdk-imagebuilder/client.rb +454 -30
- data/lib/aws-sdk-imagebuilder/client_api.rb +281 -26
- data/lib/aws-sdk-imagebuilder/types.rb +780 -38
- 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: 52741986208e929ca05a36b3848c705f342cb3b07635ef651c4c9cd2b9eeb536
|
4
|
+
data.tar.gz: 363e701c1d4137a38b8f6808740206dcc48317c49494e805c0d8ef4f97c81d03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d66a8f64f92bc16856f1f9cf3e521c1a4d9de4f8d8502bf318c93545b368b49a37f76f8f2ade794fe0fbe79a55553d3122b3481c117acc2a3bbffd4c5e8392e5
|
7
|
+
data.tar.gz: a3ad22519bf5d09c9fd3e00fc0888996ca1b5e847721c250882a5727a5a3d1cda53c02e792844b35b732b285127def4b9104601b9d1425af1941026cb1721ec6
|
data/lib/aws-sdk-imagebuilder.rb
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
10
|
+
|
10
11
|
require 'aws-sdk-core'
|
11
12
|
require 'aws-sigv4'
|
12
13
|
|
@@ -47,6 +48,6 @@ require_relative 'aws-sdk-imagebuilder/customizations'
|
|
47
48
|
# @!group service
|
48
49
|
module Aws::Imagebuilder
|
49
50
|
|
50
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.18.0'
|
51
52
|
|
52
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
|
#
|
@@ -495,16 +601,25 @@ module Aws::Imagebuilder
|
|
495
601
|
# ami_distribution_configuration: {
|
496
602
|
# name: "AmiNameString",
|
497
603
|
# description: "NonEmptyString",
|
604
|
+
# target_account_ids: ["AccountId"],
|
498
605
|
# ami_tags: {
|
499
606
|
# "TagKey" => "TagValue",
|
500
607
|
# },
|
501
608
|
# kms_key_id: "NonEmptyString",
|
502
609
|
# launch_permission: {
|
503
|
-
# user_ids: ["
|
610
|
+
# user_ids: ["AccountId"],
|
504
611
|
# user_groups: ["NonEmptyString"],
|
505
612
|
# },
|
506
613
|
# },
|
507
|
-
#
|
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
|
+
# },
|
622
|
+
# license_configuration_arns: ["LicenseConfigurationArn"],
|
508
623
|
# },
|
509
624
|
# ],
|
510
625
|
# tags: {
|
@@ -532,10 +647,14 @@ module Aws::Imagebuilder
|
|
532
647
|
# all of the configured output resources defined in the distribution
|
533
648
|
# configuration.
|
534
649
|
#
|
535
|
-
# @option params [
|
650
|
+
# @option params [String] :image_recipe_arn
|
536
651
|
# The Amazon Resource Name (ARN) of the image recipe that defines how
|
537
652
|
# images are configured, tested, and assessed.
|
538
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
|
+
#
|
539
658
|
# @option params [String] :distribution_configuration_arn
|
540
659
|
# The Amazon Resource Name (ARN) of the distribution configuration that
|
541
660
|
# defines and configures the outputs of your pipeline.
|
@@ -572,7 +691,8 @@ module Aws::Imagebuilder
|
|
572
691
|
# @example Request syntax with placeholder values
|
573
692
|
#
|
574
693
|
# resp = client.create_image({
|
575
|
-
# image_recipe_arn: "ImageRecipeArn",
|
694
|
+
# image_recipe_arn: "ImageRecipeArn",
|
695
|
+
# container_recipe_arn: "ContainerRecipeArn",
|
576
696
|
# distribution_configuration_arn: "DistributionConfigurationArn",
|
577
697
|
# infrastructure_configuration_arn: "InfrastructureConfigurationArn", # required
|
578
698
|
# image_tests_configuration: {
|
@@ -610,10 +730,14 @@ module Aws::Imagebuilder
|
|
610
730
|
# @option params [String] :description
|
611
731
|
# The description of the image pipeline.
|
612
732
|
#
|
613
|
-
# @option params [
|
733
|
+
# @option params [String] :image_recipe_arn
|
614
734
|
# The Amazon Resource Name (ARN) of the image recipe that will be used
|
615
735
|
# to configure images created by this image pipeline.
|
616
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
|
+
#
|
617
741
|
# @option params [required, String] :infrastructure_configuration_arn
|
618
742
|
# The Amazon Resource Name (ARN) of the infrastructure configuration
|
619
743
|
# that will be used to build images created by this image pipeline.
|
@@ -658,7 +782,8 @@ module Aws::Imagebuilder
|
|
658
782
|
# resp = client.create_image_pipeline({
|
659
783
|
# name: "ResourceName", # required
|
660
784
|
# description: "NonEmptyString",
|
661
|
-
# image_recipe_arn: "ImageRecipeArn",
|
785
|
+
# image_recipe_arn: "ImageRecipeArn",
|
786
|
+
# container_recipe_arn: "ContainerRecipeArn",
|
662
787
|
# infrastructure_configuration_arn: "InfrastructureConfigurationArn", # required
|
663
788
|
# distribution_configuration_arn: "DistributionConfigurationArn",
|
664
789
|
# image_tests_configuration: {
|
@@ -711,13 +836,11 @@ module Aws::Imagebuilder
|
|
711
836
|
# The parent image of the image recipe. The value of the string can be
|
712
837
|
# the ARN of the parent image or an AMI ID. The format for the ARN
|
713
838
|
# follows this example:
|
714
|
-
# `arn:aws:imagebuilder:us-west-2:aws:image/windows-server-2016-english-full-base-x86/
|
715
|
-
#
|
716
|
-
#
|
717
|
-
#
|
718
|
-
#
|
719
|
-
# value, you must have access to the AMI, and the AMI must be in the
|
720
|
-
# same Region in which you are using Image Builder.
|
839
|
+
# `arn:aws:imagebuilder:us-west-2:aws:image/windows-server-2016-english-full-base-x86/xxxx.x.x`.
|
840
|
+
# You can provide the specific version that you want to use, or you can
|
841
|
+
# use a wildcard in all of the fields. If you enter an AMI ID for the
|
842
|
+
# string value, you must have access to the AMI, and the AMI must be in
|
843
|
+
# the same Region in which you are using Image Builder.
|
721
844
|
#
|
722
845
|
# @option params [Array<Types::InstanceBlockDeviceMapping>] :block_device_mappings
|
723
846
|
# The block device mappings of the image recipe.
|
@@ -762,7 +885,7 @@ module Aws::Imagebuilder
|
|
762
885
|
# kms_key_id: "NonEmptyString",
|
763
886
|
# snapshot_id: "NonEmptyString",
|
764
887
|
# volume_size: 1,
|
765
|
-
# volume_type: "standard", # accepts standard, io1, gp2, sc1, st1
|
888
|
+
# volume_type: "standard", # accepts standard, io1, io2, gp2, sc1, st1
|
766
889
|
# },
|
767
890
|
# virtual_name: "NonEmptyString",
|
768
891
|
# no_device: "EmptyString",
|
@@ -924,6 +1047,36 @@ module Aws::Imagebuilder
|
|
924
1047
|
req.send_request(options)
|
925
1048
|
end
|
926
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
|
+
|
927
1080
|
# Deletes a distribution configuration.
|
928
1081
|
#
|
929
1082
|
# @option params [required, String] :distribution_configuration_arn
|
@@ -1153,6 +1306,85 @@ module Aws::Imagebuilder
|
|
1153
1306
|
req.send_request(options)
|
1154
1307
|
end
|
1155
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
|
+
|
1156
1388
|
# Gets a distribution configuration.
|
1157
1389
|
#
|
1158
1390
|
# @option params [required, String] :distribution_configuration_arn
|
@@ -1180,6 +1412,8 @@ module Aws::Imagebuilder
|
|
1180
1412
|
# resp.distribution_configuration.distributions[0].region #=> String
|
1181
1413
|
# resp.distribution_configuration.distributions[0].ami_distribution_configuration.name #=> String
|
1182
1414
|
# resp.distribution_configuration.distributions[0].ami_distribution_configuration.description #=> String
|
1415
|
+
# resp.distribution_configuration.distributions[0].ami_distribution_configuration.target_account_ids #=> Array
|
1416
|
+
# resp.distribution_configuration.distributions[0].ami_distribution_configuration.target_account_ids[0] #=> String
|
1183
1417
|
# resp.distribution_configuration.distributions[0].ami_distribution_configuration.ami_tags #=> Hash
|
1184
1418
|
# resp.distribution_configuration.distributions[0].ami_distribution_configuration.ami_tags["TagKey"] #=> String
|
1185
1419
|
# resp.distribution_configuration.distributions[0].ami_distribution_configuration.kms_key_id #=> String
|
@@ -1187,6 +1421,11 @@ module Aws::Imagebuilder
|
|
1187
1421
|
# resp.distribution_configuration.distributions[0].ami_distribution_configuration.launch_permission.user_ids[0] #=> String
|
1188
1422
|
# resp.distribution_configuration.distributions[0].ami_distribution_configuration.launch_permission.user_groups #=> Array
|
1189
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
|
1190
1429
|
# resp.distribution_configuration.distributions[0].license_configuration_arns #=> Array
|
1191
1430
|
# resp.distribution_configuration.distributions[0].license_configuration_arns[0] #=> String
|
1192
1431
|
# resp.distribution_configuration.timeout_minutes #=> Integer
|
@@ -1224,6 +1463,7 @@ module Aws::Imagebuilder
|
|
1224
1463
|
#
|
1225
1464
|
# resp.request_id #=> String
|
1226
1465
|
# resp.image.arn #=> String
|
1466
|
+
# resp.image.type #=> String, one of "AMI", "DOCKER"
|
1227
1467
|
# resp.image.name #=> String
|
1228
1468
|
# resp.image.version #=> String
|
1229
1469
|
# resp.image.platform #=> String, one of "Windows", "Linux"
|
@@ -1232,6 +1472,7 @@ module Aws::Imagebuilder
|
|
1232
1472
|
# resp.image.state.status #=> String, one of "PENDING", "CREATING", "BUILDING", "TESTING", "DISTRIBUTING", "INTEGRATING", "AVAILABLE", "CANCELLED", "FAILED", "DEPRECATED", "DELETED"
|
1233
1473
|
# resp.image.state.reason #=> String
|
1234
1474
|
# resp.image.image_recipe.arn #=> String
|
1475
|
+
# resp.image.image_recipe.type #=> String, one of "AMI", "DOCKER"
|
1235
1476
|
# resp.image.image_recipe.name #=> String
|
1236
1477
|
# resp.image.image_recipe.description #=> String
|
1237
1478
|
# resp.image.image_recipe.platform #=> String, one of "Windows", "Linux"
|
@@ -1248,13 +1489,32 @@ module Aws::Imagebuilder
|
|
1248
1489
|
# resp.image.image_recipe.block_device_mappings[0].ebs.kms_key_id #=> String
|
1249
1490
|
# resp.image.image_recipe.block_device_mappings[0].ebs.snapshot_id #=> String
|
1250
1491
|
# resp.image.image_recipe.block_device_mappings[0].ebs.volume_size #=> Integer
|
1251
|
-
# resp.image.image_recipe.block_device_mappings[0].ebs.volume_type #=> String, one of "standard", "io1", "gp2", "sc1", "st1"
|
1492
|
+
# resp.image.image_recipe.block_device_mappings[0].ebs.volume_type #=> String, one of "standard", "io1", "io2", "gp2", "sc1", "st1"
|
1252
1493
|
# resp.image.image_recipe.block_device_mappings[0].virtual_name #=> String
|
1253
1494
|
# resp.image.image_recipe.block_device_mappings[0].no_device #=> String
|
1254
1495
|
# resp.image.image_recipe.date_created #=> String
|
1255
1496
|
# resp.image.image_recipe.tags #=> Hash
|
1256
1497
|
# resp.image.image_recipe.tags["TagKey"] #=> String
|
1257
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
|
1258
1518
|
# resp.image.source_pipeline_name #=> String
|
1259
1519
|
# resp.image.source_pipeline_arn #=> String
|
1260
1520
|
# resp.image.infrastructure_configuration.arn #=> String
|
@@ -1284,6 +1544,8 @@ module Aws::Imagebuilder
|
|
1284
1544
|
# resp.image.distribution_configuration.distributions[0].region #=> String
|
1285
1545
|
# resp.image.distribution_configuration.distributions[0].ami_distribution_configuration.name #=> String
|
1286
1546
|
# resp.image.distribution_configuration.distributions[0].ami_distribution_configuration.description #=> String
|
1547
|
+
# resp.image.distribution_configuration.distributions[0].ami_distribution_configuration.target_account_ids #=> Array
|
1548
|
+
# resp.image.distribution_configuration.distributions[0].ami_distribution_configuration.target_account_ids[0] #=> String
|
1287
1549
|
# resp.image.distribution_configuration.distributions[0].ami_distribution_configuration.ami_tags #=> Hash
|
1288
1550
|
# resp.image.distribution_configuration.distributions[0].ami_distribution_configuration.ami_tags["TagKey"] #=> String
|
1289
1551
|
# resp.image.distribution_configuration.distributions[0].ami_distribution_configuration.kms_key_id #=> String
|
@@ -1291,6 +1553,11 @@ module Aws::Imagebuilder
|
|
1291
1553
|
# resp.image.distribution_configuration.distributions[0].ami_distribution_configuration.launch_permission.user_ids[0] #=> String
|
1292
1554
|
# resp.image.distribution_configuration.distributions[0].ami_distribution_configuration.launch_permission.user_groups #=> Array
|
1293
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
|
1294
1561
|
# resp.image.distribution_configuration.distributions[0].license_configuration_arns #=> Array
|
1295
1562
|
# resp.image.distribution_configuration.distributions[0].license_configuration_arns[0] #=> String
|
1296
1563
|
# resp.image.distribution_configuration.timeout_minutes #=> Integer
|
@@ -1308,6 +1575,11 @@ module Aws::Imagebuilder
|
|
1308
1575
|
# resp.image.output_resources.amis[0].description #=> String
|
1309
1576
|
# resp.image.output_resources.amis[0].state.status #=> String, one of "PENDING", "CREATING", "BUILDING", "TESTING", "DISTRIBUTING", "INTEGRATING", "AVAILABLE", "CANCELLED", "FAILED", "DEPRECATED", "DELETED"
|
1310
1577
|
# resp.image.output_resources.amis[0].state.reason #=> String
|
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
|
1311
1583
|
# resp.image.tags #=> Hash
|
1312
1584
|
# resp.image.tags["TagKey"] #=> String
|
1313
1585
|
#
|
@@ -1346,6 +1618,7 @@ module Aws::Imagebuilder
|
|
1346
1618
|
# resp.image_pipeline.platform #=> String, one of "Windows", "Linux"
|
1347
1619
|
# resp.image_pipeline.enhanced_image_metadata_enabled #=> Boolean
|
1348
1620
|
# resp.image_pipeline.image_recipe_arn #=> String
|
1621
|
+
# resp.image_pipeline.container_recipe_arn #=> String
|
1349
1622
|
# resp.image_pipeline.infrastructure_configuration_arn #=> String
|
1350
1623
|
# resp.image_pipeline.distribution_configuration_arn #=> String
|
1351
1624
|
# resp.image_pipeline.image_tests_configuration.image_tests_enabled #=> Boolean
|
@@ -1421,6 +1694,7 @@ module Aws::Imagebuilder
|
|
1421
1694
|
#
|
1422
1695
|
# resp.request_id #=> String
|
1423
1696
|
# resp.image_recipe.arn #=> String
|
1697
|
+
# resp.image_recipe.type #=> String, one of "AMI", "DOCKER"
|
1424
1698
|
# resp.image_recipe.name #=> String
|
1425
1699
|
# resp.image_recipe.description #=> String
|
1426
1700
|
# resp.image_recipe.platform #=> String, one of "Windows", "Linux"
|
@@ -1437,7 +1711,7 @@ module Aws::Imagebuilder
|
|
1437
1711
|
# resp.image_recipe.block_device_mappings[0].ebs.kms_key_id #=> String
|
1438
1712
|
# resp.image_recipe.block_device_mappings[0].ebs.snapshot_id #=> String
|
1439
1713
|
# resp.image_recipe.block_device_mappings[0].ebs.volume_size #=> Integer
|
1440
|
-
# resp.image_recipe.block_device_mappings[0].ebs.volume_type #=> String, one of "standard", "io1", "gp2", "sc1", "st1"
|
1714
|
+
# resp.image_recipe.block_device_mappings[0].ebs.volume_type #=> String, one of "standard", "io1", "io2", "gp2", "sc1", "st1"
|
1441
1715
|
# resp.image_recipe.block_device_mappings[0].virtual_name #=> String
|
1442
1716
|
# resp.image_recipe.block_device_mappings[0].no_device #=> String
|
1443
1717
|
# resp.image_recipe.date_created #=> String
|
@@ -1653,7 +1927,7 @@ module Aws::Imagebuilder
|
|
1653
1927
|
# resp = client.list_component_build_versions({
|
1654
1928
|
# component_version_arn: "ComponentVersionArn", # required
|
1655
1929
|
# max_results: 1,
|
1656
|
-
# next_token: "
|
1930
|
+
# next_token: "PaginationToken",
|
1657
1931
|
# })
|
1658
1932
|
#
|
1659
1933
|
# @example Response structure
|
@@ -1697,6 +1971,10 @@ module Aws::Imagebuilder
|
|
1697
1971
|
# @option params [Array<Types::Filter>] :filters
|
1698
1972
|
# The filters.
|
1699
1973
|
#
|
1974
|
+
# @option params [Boolean] :by_name
|
1975
|
+
# Returns the list of component build versions for the specified
|
1976
|
+
# semantic version.
|
1977
|
+
#
|
1700
1978
|
# @option params [Integer] :max_results
|
1701
1979
|
# The maximum items to return in a request.
|
1702
1980
|
#
|
@@ -1722,8 +2000,9 @@ module Aws::Imagebuilder
|
|
1722
2000
|
# values: ["FilterValue"],
|
1723
2001
|
# },
|
1724
2002
|
# ],
|
2003
|
+
# by_name: false,
|
1725
2004
|
# max_results: 1,
|
1726
|
-
# next_token: "
|
2005
|
+
# next_token: "PaginationToken",
|
1727
2006
|
# })
|
1728
2007
|
#
|
1729
2008
|
# @example Response structure
|
@@ -1751,6 +2030,71 @@ module Aws::Imagebuilder
|
|
1751
2030
|
req.send_request(options)
|
1752
2031
|
end
|
1753
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<Types::ContainerRecipeSummary>
|
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
|
+
|
1754
2098
|
# Returns a list of distribution configurations.
|
1755
2099
|
#
|
1756
2100
|
# @option params [Array<Types::Filter>] :filters
|
@@ -1785,7 +2129,7 @@ module Aws::Imagebuilder
|
|
1785
2129
|
# },
|
1786
2130
|
# ],
|
1787
2131
|
# max_results: 1,
|
1788
|
-
# next_token: "
|
2132
|
+
# next_token: "PaginationToken",
|
1789
2133
|
# })
|
1790
2134
|
#
|
1791
2135
|
# @example Response structure
|
@@ -1799,6 +2143,8 @@ module Aws::Imagebuilder
|
|
1799
2143
|
# resp.distribution_configuration_summary_list[0].date_updated #=> String
|
1800
2144
|
# resp.distribution_configuration_summary_list[0].tags #=> Hash
|
1801
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
|
1802
2148
|
# resp.next_token #=> String
|
1803
2149
|
#
|
1804
2150
|
# @see http://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/ListDistributionConfigurations AWS API Documentation
|
@@ -1845,7 +2191,7 @@ module Aws::Imagebuilder
|
|
1845
2191
|
# },
|
1846
2192
|
# ],
|
1847
2193
|
# max_results: 1,
|
1848
|
-
# next_token: "
|
2194
|
+
# next_token: "PaginationToken",
|
1849
2195
|
# })
|
1850
2196
|
#
|
1851
2197
|
# @example Response structure
|
@@ -1854,6 +2200,7 @@ module Aws::Imagebuilder
|
|
1854
2200
|
# resp.image_summary_list #=> Array
|
1855
2201
|
# resp.image_summary_list[0].arn #=> String
|
1856
2202
|
# resp.image_summary_list[0].name #=> String
|
2203
|
+
# resp.image_summary_list[0].type #=> String, one of "AMI", "DOCKER"
|
1857
2204
|
# resp.image_summary_list[0].version #=> String
|
1858
2205
|
# resp.image_summary_list[0].platform #=> String, one of "Windows", "Linux"
|
1859
2206
|
# resp.image_summary_list[0].os_version #=> String
|
@@ -1868,6 +2215,11 @@ module Aws::Imagebuilder
|
|
1868
2215
|
# resp.image_summary_list[0].output_resources.amis[0].description #=> String
|
1869
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"
|
1870
2217
|
# resp.image_summary_list[0].output_resources.amis[0].state.reason #=> String
|
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
|
1871
2223
|
# resp.image_summary_list[0].tags #=> Hash
|
1872
2224
|
# resp.image_summary_list[0].tags["TagKey"] #=> String
|
1873
2225
|
# resp.next_token #=> String
|
@@ -1916,7 +2268,7 @@ module Aws::Imagebuilder
|
|
1916
2268
|
# },
|
1917
2269
|
# ],
|
1918
2270
|
# max_results: 1,
|
1919
|
-
# next_token: "
|
2271
|
+
# next_token: "PaginationToken",
|
1920
2272
|
# })
|
1921
2273
|
#
|
1922
2274
|
# @example Response structure
|
@@ -1925,6 +2277,7 @@ module Aws::Imagebuilder
|
|
1925
2277
|
# resp.image_summary_list #=> Array
|
1926
2278
|
# resp.image_summary_list[0].arn #=> String
|
1927
2279
|
# resp.image_summary_list[0].name #=> String
|
2280
|
+
# resp.image_summary_list[0].type #=> String, one of "AMI", "DOCKER"
|
1928
2281
|
# resp.image_summary_list[0].version #=> String
|
1929
2282
|
# resp.image_summary_list[0].platform #=> String, one of "Windows", "Linux"
|
1930
2283
|
# resp.image_summary_list[0].os_version #=> String
|
@@ -1939,6 +2292,11 @@ module Aws::Imagebuilder
|
|
1939
2292
|
# resp.image_summary_list[0].output_resources.amis[0].description #=> String
|
1940
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"
|
1941
2294
|
# resp.image_summary_list[0].output_resources.amis[0].state.reason #=> String
|
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
|
1942
2300
|
# resp.image_summary_list[0].tags #=> Hash
|
1943
2301
|
# resp.image_summary_list[0].tags["TagKey"] #=> String
|
1944
2302
|
# resp.next_token #=> String
|
@@ -1982,7 +2340,7 @@ module Aws::Imagebuilder
|
|
1982
2340
|
# },
|
1983
2341
|
# ],
|
1984
2342
|
# max_results: 1,
|
1985
|
-
# next_token: "
|
2343
|
+
# next_token: "PaginationToken",
|
1986
2344
|
# })
|
1987
2345
|
#
|
1988
2346
|
# @example Response structure
|
@@ -1995,6 +2353,7 @@ module Aws::Imagebuilder
|
|
1995
2353
|
# resp.image_pipeline_list[0].platform #=> String, one of "Windows", "Linux"
|
1996
2354
|
# resp.image_pipeline_list[0].enhanced_image_metadata_enabled #=> Boolean
|
1997
2355
|
# resp.image_pipeline_list[0].image_recipe_arn #=> String
|
2356
|
+
# resp.image_pipeline_list[0].container_recipe_arn #=> String
|
1998
2357
|
# resp.image_pipeline_list[0].infrastructure_configuration_arn #=> String
|
1999
2358
|
# resp.image_pipeline_list[0].distribution_configuration_arn #=> String
|
2000
2359
|
# resp.image_pipeline_list[0].image_tests_configuration.image_tests_enabled #=> Boolean
|
@@ -2057,7 +2416,7 @@ module Aws::Imagebuilder
|
|
2057
2416
|
# },
|
2058
2417
|
# ],
|
2059
2418
|
# max_results: 1,
|
2060
|
-
# next_token: "
|
2419
|
+
# next_token: "PaginationToken",
|
2061
2420
|
# })
|
2062
2421
|
#
|
2063
2422
|
# @example Response structure
|
@@ -2095,6 +2454,9 @@ module Aws::Imagebuilder
|
|
2095
2454
|
# @option params [Array<Types::Filter>] :filters
|
2096
2455
|
# The filters.
|
2097
2456
|
#
|
2457
|
+
# @option params [Boolean] :by_name
|
2458
|
+
# Requests a list of images with a specific recipe name.
|
2459
|
+
#
|
2098
2460
|
# @option params [Integer] :max_results
|
2099
2461
|
# The maximum items to return in a request.
|
2100
2462
|
#
|
@@ -2102,6 +2464,9 @@ module Aws::Imagebuilder
|
|
2102
2464
|
# A token to specify where to start paginating. This is the NextToken
|
2103
2465
|
# from a previously truncated response.
|
2104
2466
|
#
|
2467
|
+
# @option params [Boolean] :include_deprecated
|
2468
|
+
# Includes deprecated images in the response list.
|
2469
|
+
#
|
2105
2470
|
# @return [Types::ListImagesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2106
2471
|
#
|
2107
2472
|
# * {Types::ListImagesResponse#request_id #request_id} => String
|
@@ -2120,8 +2485,10 @@ module Aws::Imagebuilder
|
|
2120
2485
|
# values: ["FilterValue"],
|
2121
2486
|
# },
|
2122
2487
|
# ],
|
2488
|
+
# by_name: false,
|
2123
2489
|
# max_results: 1,
|
2124
|
-
# next_token: "
|
2490
|
+
# next_token: "PaginationToken",
|
2491
|
+
# include_deprecated: false,
|
2125
2492
|
# })
|
2126
2493
|
#
|
2127
2494
|
# @example Response structure
|
@@ -2130,6 +2497,7 @@ module Aws::Imagebuilder
|
|
2130
2497
|
# resp.image_version_list #=> Array
|
2131
2498
|
# resp.image_version_list[0].arn #=> String
|
2132
2499
|
# resp.image_version_list[0].name #=> String
|
2500
|
+
# resp.image_version_list[0].type #=> String, one of "AMI", "DOCKER"
|
2133
2501
|
# resp.image_version_list[0].version #=> String
|
2134
2502
|
# resp.image_version_list[0].platform #=> String, one of "Windows", "Linux"
|
2135
2503
|
# resp.image_version_list[0].os_version #=> String
|
@@ -2176,7 +2544,7 @@ module Aws::Imagebuilder
|
|
2176
2544
|
# },
|
2177
2545
|
# ],
|
2178
2546
|
# max_results: 1,
|
2179
|
-
# next_token: "
|
2547
|
+
# next_token: "PaginationToken",
|
2180
2548
|
# })
|
2181
2549
|
#
|
2182
2550
|
# @example Response structure
|
@@ -2277,6 +2645,49 @@ module Aws::Imagebuilder
|
|
2277
2645
|
req.send_request(options)
|
2278
2646
|
end
|
2279
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
|
+
|
2280
2691
|
# Applies a policy to an image. We recommend that you call the RAM API
|
2281
2692
|
# [CreateResourceShare][1] to share resources. If you call the Image
|
2282
2693
|
# Builder API `PutImagePolicy`, you must also call the RAM API
|
@@ -2496,16 +2907,25 @@ module Aws::Imagebuilder
|
|
2496
2907
|
# ami_distribution_configuration: {
|
2497
2908
|
# name: "AmiNameString",
|
2498
2909
|
# description: "NonEmptyString",
|
2910
|
+
# target_account_ids: ["AccountId"],
|
2499
2911
|
# ami_tags: {
|
2500
2912
|
# "TagKey" => "TagValue",
|
2501
2913
|
# },
|
2502
2914
|
# kms_key_id: "NonEmptyString",
|
2503
2915
|
# launch_permission: {
|
2504
|
-
# user_ids: ["
|
2916
|
+
# user_ids: ["AccountId"],
|
2505
2917
|
# user_groups: ["NonEmptyString"],
|
2506
2918
|
# },
|
2507
2919
|
# },
|
2508
|
-
#
|
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
|
+
# },
|
2928
|
+
# license_configuration_arns: ["LicenseConfigurationArn"],
|
2509
2929
|
# },
|
2510
2930
|
# ],
|
2511
2931
|
# client_token: "ClientToken", # required
|
@@ -2536,10 +2956,13 @@ module Aws::Imagebuilder
|
|
2536
2956
|
# @option params [String] :description
|
2537
2957
|
# The description of the image pipeline.
|
2538
2958
|
#
|
2539
|
-
# @option params [
|
2959
|
+
# @option params [String] :image_recipe_arn
|
2540
2960
|
# The Amazon Resource Name (ARN) of the image recipe that will be used
|
2541
2961
|
# to configure images updated by this image pipeline.
|
2542
2962
|
#
|
2963
|
+
# @option params [String] :container_recipe_arn
|
2964
|
+
# The Amazon Resource Name (ARN) of the container pipeline to update.
|
2965
|
+
#
|
2543
2966
|
# @option params [required, String] :infrastructure_configuration_arn
|
2544
2967
|
# The Amazon Resource Name (ARN) of the infrastructure configuration
|
2545
2968
|
# that will be used to build images updated by this image pipeline.
|
@@ -2581,7 +3004,8 @@ module Aws::Imagebuilder
|
|
2581
3004
|
# resp = client.update_image_pipeline({
|
2582
3005
|
# image_pipeline_arn: "ImagePipelineArn", # required
|
2583
3006
|
# description: "NonEmptyString",
|
2584
|
-
# image_recipe_arn: "ImageRecipeArn",
|
3007
|
+
# image_recipe_arn: "ImageRecipeArn",
|
3008
|
+
# container_recipe_arn: "ContainerRecipeArn",
|
2585
3009
|
# infrastructure_configuration_arn: "InfrastructureConfigurationArn", # required
|
2586
3010
|
# distribution_configuration_arn: "DistributionConfigurationArn",
|
2587
3011
|
# image_tests_configuration: {
|
@@ -2722,7 +3146,7 @@ module Aws::Imagebuilder
|
|
2722
3146
|
params: params,
|
2723
3147
|
config: config)
|
2724
3148
|
context[:gem_name] = 'aws-sdk-imagebuilder'
|
2725
|
-
context[:gem_version] = '1.
|
3149
|
+
context[:gem_version] = '1.18.0'
|
2726
3150
|
Seahorse::Client::Request.new(handlers, context)
|
2727
3151
|
end
|
2728
3152
|
|