Skip to content

Commit 03ec800

Browse files
author
AWS
committed
EC2 Image Builder Update: This release adds support for sharing AMIs with Organizations within an EC2 Image Builder Distribution Configuration.
1 parent cedcd3d commit 03ec800

File tree

2 files changed

+39
-5
lines changed

2 files changed

+39
-5
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "EC2 Image Builder",
4+
"contributor": "",
5+
"description": "This release adds support for sharing AMIs with Organizations within an EC2 Image Builder Distribution Configuration."
6+
}

services/imagebuilder/src/main/resources/codegen-resources/service-2.json

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@
264264
{"shape":"CallRateLimitExceededException"},
265265
{"shape":"ResourceDependencyException"}
266266
],
267-
"documentation":"<p>Deletes an Image Builder image resource. This does not delete any EC2 AMIs or ECR container images that are created during the image build process. You must clean those up separately, using the appropriate Amazon EC2 or Amazon ECR console actions, or API or CLI commands.</p> <ul> <li> <p>To deregister an EC2 Linux AMI, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/deregister-ami.html\">Deregister your Linux AMI</a> in the <i> <i>Amazon EC2 User Guide</i> </i>.</p> </li> <li> <p>To deregister an EC2 Windows AMI, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/deregister-ami.html\">Deregister your Windows AMI</a> in the <i> <i>Amazon EC2 Windows Guide</i> </i>.</p> </li> <li> <p>To delete a container image from Amazon ECR, see <a href=\"https://docs.aws.amazon.com/https:/docs.aws.amazon.comAmazonECR/latest/userguide/delete_image.html\">Deleting an image</a> in the <i>Amazon ECR User Guide</i>.</p> </li> </ul>"
267+
"documentation":"<p>Deletes an Image Builder image resource. This does not delete any EC2 AMIs or ECR container images that are created during the image build process. You must clean those up separately, using the appropriate Amazon EC2 or Amazon ECR console actions, or API or CLI commands.</p> <ul> <li> <p>To deregister an EC2 Linux AMI, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/deregister-ami.html\">Deregister your Linux AMI</a> in the <i> <i>Amazon EC2 User Guide</i> </i>.</p> </li> <li> <p>To deregister an EC2 Windows AMI, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/deregister-ami.html\">Deregister your Windows AMI</a> in the <i> <i>Amazon EC2 Windows Guide</i> </i>.</p> </li> <li> <p>To delete a container image from Amazon ECR, see <a href=\"https://docs.aws.amazon.com/AmazonECR/latest/userguide/delete_image.html\">Deleting an image</a> in the <i>Amazon ECR User Guide</i>.</p> </li> </ul>"
268268
},
269269
"DeleteImagePipeline":{
270270
"name":"DeleteImagePipeline",
@@ -807,7 +807,7 @@
807807
{"shape":"ForbiddenException"},
808808
{"shape":"CallRateLimitExceededException"}
809809
],
810-
"documentation":"<p>Applies a policy to a container image. We recommend that you call the RAM API CreateResourceShare (https://docs.aws.amazon.com/ram/latest/APIReference/API_CreateResourceShare.html) to share resources. If you call the Image Builder API <code>PutContainerImagePolicy</code>, you must also call the RAM API PromoteResourceShareCreatedFromPolicy (https://docs.aws.amazon.com/ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html) in order for the resource to be visible to all principals with whom the resource is shared.</p>"
810+
"documentation":"<p>Applies a policy to a container image. We recommend that you call the RAM API CreateResourceShare (https://docs.aws.amazon.com//ram/latest/APIReference/API_CreateResourceShare.html) to share resources. If you call the Image Builder API <code>PutContainerImagePolicy</code>, you must also call the RAM API PromoteResourceShareCreatedFromPolicy (https://docs.aws.amazon.com//ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html) in order for the resource to be visible to all principals with whom the resource is shared.</p>"
811811
},
812812
"PutImagePolicy":{
813813
"name":"PutImagePolicy",
@@ -1023,7 +1023,7 @@
10231023
},
10241024
"description":{
10251025
"shape":"NonEmptyString",
1026-
"documentation":"<p>The description of the distribution configuration. Minimum and maximum length are in characters.</p>"
1026+
"documentation":"<p>The description of the AMI distribution configuration. Minimum and maximum length are in characters.</p>"
10271027
},
10281028
"targetAccountIds":{
10291029
"shape":"AccountList",
@@ -1286,8 +1286,8 @@
12861286
},
12871287
"ComponentParameterValue":{
12881288
"type":"string",
1289-
"min":1,
1290-
"pattern":"[^\\x00]+"
1289+
"min":0,
1290+
"pattern":"[^\\x00]*"
12911291
},
12921292
"ComponentParameterValueList":{
12931293
"type":"list",
@@ -3594,6 +3594,14 @@
35943594
"userGroups":{
35953595
"shape":"StringList",
35963596
"documentation":"<p>The name of the group.</p>"
3597+
},
3598+
"organizationArns":{
3599+
"shape":"OrganizationArnList",
3600+
"documentation":"<p>The ARN for an Amazon Web Services Organization that you want to share your AMI with. For more information, see <a href=\"https://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html\">What is Organizations?</a>.</p>"
3601+
},
3602+
"organizationalUnitArns":{
3603+
"shape":"OrganizationalUnitArnList",
3604+
"documentation":"<p>The ARN for an Organizations organizational unit (OU) that you want to share your AMI with. For more information about key concepts for Organizations, see <a href=\"https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html\">Organizations terminology and concepts</a>.</p>"
35973605
}
35983606
},
35993607
"documentation":"<p>Describes the configuration for a launch permission. The launch permission modification request is sent to the <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyImageAttribute.html\">Amazon EC2 ModifyImageAttribute</a> API on behalf of the user for each Region they have selected to distribute the AMI. To make an AMI public, set the launch permission authorized accounts to <code>all</code>. See the examples for making an AMI public at <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyImageAttribute.html\">Amazon EC2 ModifyImageAttribute</a>.</p>"
@@ -4099,6 +4107,26 @@
40994107
"min":1
41004108
},
41014109
"NullableBoolean":{"type":"boolean"},
4110+
"OrganizationArn":{
4111+
"type":"string",
4112+
"pattern":"^arn:aws[^:]*:organizations::[0-9]{12}:organization/o-[a-z0-9]{10,32}$"
4113+
},
4114+
"OrganizationArnList":{
4115+
"type":"list",
4116+
"member":{"shape":"OrganizationArn"},
4117+
"max":25,
4118+
"min":1
4119+
},
4120+
"OrganizationalUnitArn":{
4121+
"type":"string",
4122+
"pattern":"^arn:aws[^:]*:organizations::[0-9]{12}:ou/o-[a-z0-9]{10,32}/ou-[0-9a-z]{4,32}-[0-9a-z]{8,32}"
4123+
},
4124+
"OrganizationalUnitArnList":{
4125+
"type":"list",
4126+
"member":{"shape":"OrganizationalUnitArn"},
4127+
"max":25,
4128+
"min":1
4129+
},
41024130
"OsVersion":{
41034131
"type":"string",
41044132
"min":1

0 commit comments

Comments
 (0)