ModifyImageAttributeRequest

public struct ModifyImageAttributeRequest : AWSShape

Undocumented

  • Declaration

    Swift

    public static var _members: [AWSShapeMember]
  • The name of the attribute to modify. The valid values are description, launchPermission, and productCodes.

    Declaration

    Swift

    public let attribute: String?
  • A new description for the AMI.

    Declaration

    Swift

    public let description: AttributeValue?
  • 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.

    Declaration

    Swift

    public let dryRun: Bool?
  • The ID of the AMI.

    Declaration

    Swift

    public let imageId: String
  • A new launch permission for the AMI.

    Declaration

    Swift

    public let launchPermission: LaunchPermissionModifications?
  • The operation type. This parameter can be used only when the Attribute parameter is launchPermission.

    Declaration

    Swift

    public let operationType: OperationType?
  • The DevPay product codes. After you add a product code to an AMI, it can’t be removed.

    Declaration

    Swift

    public let productCodes: [String]?
  • The user groups. This parameter can be used only when the Attribute parameter is launchPermission.

    Declaration

    Swift

    public let userGroups: [String]?
  • The AWS account IDs. This parameter can be used only when the Attribute parameter is launchPermission.

    Declaration

    Swift

    public let userIds: [String]?
  • The value of the attribute being modified. This parameter can be used only when the Attribute parameter is description or productCodes.

    Declaration

    Swift

    public let value: String?
  • Undocumented

    Declaration

    Swift

    public init(attribute: String? = nil, description: AttributeValue? = nil, dryRun: Bool? = nil, imageId: String, launchPermission: LaunchPermissionModifications? = nil, operationType: OperationType? = nil, productCodes: [String]? = nil, userGroups: [String]? = nil, userIds: [String]? = nil, value: String? = nil)