AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Edit-EC2ImageAttribute-ImageId <String>-LaunchPermission_Add <LaunchPermission[]>-Attribute <String>-Description <String>-OperationType <OperationType>-OrganizationalUnitArn <String[]>-OrganizationArn <String[]>-ProductCode <String[]>-LaunchPermission_Remove <LaunchPermission[]>-UserGroup <String[]>-UserId <String[]>-Value <String>-Select <String>-PassThru <SwitchParameter>-Force <SwitchParameter>
Attribute
parameter to specify the attribute or one of the following parameters: Description
or LaunchPermission
.
Images with an Amazon Web Services Marketplace product code cannot be made public.
To enable the SriovNetSupport enhanced networking attribute of an image, enable SriovNetSupport on an instance and create an AMI from the instance. description
| launchPermission
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | True |
Position? | 1 |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Attribute
parameter is launchPermission
. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Attribute
parameter is launchPermission
. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | OrganizationalUnitArns |
Attribute
parameter is launchPermission
. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | OrganizationArns |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ProductCodes |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Attribute
parameter is launchPermission
. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | UserGroups |
Attribute
parameter is launchPermission
. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | UserIds |
Attribute
parameter is description
. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AK |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AWSProfilesLocation, ProfilesLocation |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | StoredCredentials, AWSProfileName |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | RegionToCall |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | SK, SecretAccessKey |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ST |
Edit-EC2ImageAttribute -ImageId ami-12345678 -Description "New description"This example updates the description for the specified AMI.
Edit-EC2ImageAttribute -ImageId ami-12345678 -Attribute launchPermission -OperationType add -UserGroup allThis example makes the AMI public (for example, so any AWS account can use it).
Edit-EC2ImageAttribute -ImageId ami-12345678 -Attribute launchPermission -OperationType remove -UserGroup allThis example makes the AMI private (for example, so that only you as the owner can use it).
Edit-EC2ImageAttribute -ImageId ami-12345678 -Attribute launchPermission -OperationType add -UserId 111122223333This example grants launch permission to the specified AWS account.
Edit-EC2ImageAttribute -ImageId ami-12345678 -Attribute launchPermission -OperationType remove -UserId 111122223333This example removes launch permission from the specified AWS account.
AWS Tools for PowerShell: 2.x.y.z