Values_4.ModifyImageAttributeRequestSourceContains the parameters for ModifyImageAttribute.
type nonrec t = {attribute : Values_0.String_.t option;The name of the attribute to modify. Valid values: description | imdsSupport | launchPermission
*)description : Values_0.AttributeValue.t option;A new description for the AMI.
*)imageId : Values_0.ImageId.t;The ID of the AMI.
*)launchPermission : Values_3.LaunchPermissionModifications.t option;A new launch permission for the AMI.
*)operationType : Values_3.OperationType.t option;The operation type. This parameter can be used only when the Attribute parameter is launchPermission.
*)productCodes : Values_3.ProductCodeStringList.t option;Not supported.
*)userGroups : Values_3.UserGroupStringList.t option;The user groups. This parameter can be used only when the Attribute parameter is launchPermission.
*)userIds : Values_3.UserIdStringList.t option;The Amazon Web Services account IDs. This parameter can be used only when the Attribute parameter is launchPermission.
*)value : Values_0.String_.t option;The value of the attribute being modified. This parameter can be used only when the Attribute parameter is description or imdsSupport.
*)organizationArns : Values_3.OrganizationArnStringList.t option;The Amazon Resource Name (ARN) of an organization. This parameter can be used only when the Attribute parameter is launchPermission.
*)organizationalUnitArns : Values_3.OrganizationalUnitArnStringList.t option;The Amazon Resource Name (ARN) of an organizational unit (OU). This parameter can be used only when the Attribute parameter is launchPermission.
*)imdsSupport : Values_0.AttributeValue.t option;Set to v2.0 to indicate that IMDSv2 is specified in the AMI. Instances launched from this AMI will have HttpTokens automatically set to required so that, by default, the instance requires that IMDSv2 is used when requesting instance metadata. In addition, HttpPutResponseHopLimit is set to 2. For more information, see Configure the AMI in the Amazon EC2 User Guide. Do not use this parameter unless your AMI software supports IMDSv2. After you set the value to v2.0, you can't undo it. The only way to โresetโ your AMI is to create a new AMI from the underlying snapshot.
*)dryRun : Values_0.Boolean.t option;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 DryRunOperation. Otherwise, it is UnauthorizedOperation.
*)}val make :
?attribute:??? ->
?description:??? ->
?launchPermission:??? ->
?operationType:??? ->
?productCodes:??? ->
?userGroups:??? ->
?userIds:??? ->
?value:??? ->
?organizationArns:??? ->
?organizationalUnitArns:??? ->
?imdsSupport:??? ->
?dryRun:??? ->
imageId:Values_0.ImageId.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Boolean of Values_0.Boolean.t
| `Enum of string
| `List of [> `String of Values_0.String_.t ] list
| `String of Values_0.String_.t
| `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `Enum of string
| `String of Values_0.String_.t ])
list ]
list
| `String of string ])
list ])
list ]