lib/aws-sdk-ec2/image.rb in aws-sdk-ec2-1.274.0 vs lib/aws-sdk-ec2/image.rb in aws-sdk-ec2-1.275.0

- old
+ new

@@ -531,30 +531,37 @@ # launch_permission: { # add: [ # { # group: "all", # accepts all # user_id: "String", + # organization_arn: "String", + # organizational_unit_arn: "String", # }, # ], # remove: [ # { # group: "all", # accepts all # user_id: "String", + # organization_arn: "String", + # organizational_unit_arn: "String", # }, # ], # }, # operation_type: "add", # accepts add, remove # product_codes: ["String"], # user_groups: ["String"], # user_ids: ["String"], # value: "String", # dry_run: false, + # organization_arns: ["String"], + # organizational_unit_arns: ["String"], # }) # @param [Hash] options ({}) # @option options [String] :attribute - # The name of the attribute to modify. The valid values are - # `description` and `launchPermission`. + # The name of the attribute to modify. + # + # Valid values: `description` \| `launchPermission` # @option options [Types::AttributeValue] :description # A new description for the AMI. # @option options [Types::LaunchPermissionModifications] :launch_permission # A new launch permission for the AMI. # @option options [String] :operation_type @@ -574,9 +581,16 @@ # @option options [Boolean] :dry_run # 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`. + # @option options [Array<String>] :organization_arns + # The Amazon Resource Name (ARN) of an organization. This parameter can + # be used only when the `Attribute` parameter is `launchPermission`. + # @option options [Array<String>] :organizational_unit_arns + # The Amazon Resource Name (ARN) of an organizational unit (OU). This + # parameter can be used only when the `Attribute` parameter is + # `launchPermission`. # @return [EmptyStructure] def modify_attribute(options = {}) options = options.merge(image_id: @id) resp = @client.modify_image_attribute(options) resp.data