POST /#Action=ModifyImageAttribute
Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time.
To specify the attribute, you can use the Attribute
parameter, or one of the following parameters: Description
, ImdsSupport
, 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.
Servers
- https://ec2.{region}.amazonaws.com
- https://ec2.amazonaws.com
- https://ec2.{region}.amazonaws.com.cn
Request headers
Name | Type | Required | Description |
---|---|---|---|
X-Amz-Content-Sha256 |
String | No | |
X-Amz-Credential |
String | No | |
Content-Type |
String | Yes |
The media type of the request body.
Default value: "text/xml" |
X-Amz-Date |
String | No | |
X-Amz-Algorithm |
String | No | |
X-Amz-SignedHeaders |
String | No | |
X-Amz-Security-Token |
String | No | |
X-Amz-Signature |
String | No |
Query parameters
Name | Type | Required | Description |
---|---|---|---|
Version |
String | Yes |
Possible values:
|
Action |
String | Yes |
Possible values:
|
Request body fields
Name | Type | Required | Description |
---|---|---|---|
UserIds[] |
Array | No |
The Amazon Web Services account IDs. This parameter can be used only when the |
UserGroups[] |
Array | No |
The user groups. This parameter can be used only when the |
ImageId |
String | Yes |
The ID of the AMI. |
OrganizationArns[] |
Array | No |
The Amazon Resource Name (ARN) of an organization. This parameter can be used only when the |
OrganizationalUnitArns[] |
Array | No |
The Amazon Resource Name (ARN) of an organizational unit (OU). This parameter can be used only when the |
Attribute |
String | No |
The name of the attribute to modify. Valid values: |
ProductCodes[] |
Array | No |
Not supported. |
OperationType |
String | No |
The operation type. This parameter can be used only when the Possible values:
|
DryRun |
Boolean | No |
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is |
Value |
String | No |
The value of the attribute being modified. This parameter can be used only when the |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.