AWSEC2ModifyImageAttributeRequest

Objective-C

@interface AWSEC2ModifyImageAttributeRequest

Swift

class AWSEC2ModifyImageAttributeRequest

Contains the parameters for ModifyImageAttribute.

Required parameters: [ImageId]

  • The name of the attribute to modify. The valid values are description, launchPermission, and productCodes.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable attribute;

    Swift

    var attribute: String? { get set }
  • A new description for the AMI.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSEC2AttributeValue *_Nullable detail;

    Swift

    var detail: AWSEC2AttributeValue? { get set }
  • 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

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable dryRun;

    Swift

    var dryRun: NSNumber? { get set }
  • The ID of the AMI.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable imageId;

    Swift

    var imageId: String? { get set }
  • A new launch permission for the AMI.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSEC2LaunchPermissionModifications *_Nullable launchPermission;

    Swift

    var launchPermission: AWSEC2LaunchPermissionModifications? { get set }
  • The operation type. This parameter can be used only when the Attribute parameter is launchPermission.

    Declaration

    Objective-C

    @property (nonatomic) AWSEC2OperationType operationType;

    Swift

    var operationType: AWSEC2OperationType { get set }
  • The DevPay product codes. After you add a product code to an AMI, it can’t be removed.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<NSString *> *_Nullable productCodes;

    Swift

    var productCodes: [String]? { get set }
  • The user groups. This parameter can be used only when the Attribute parameter is launchPermission.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<NSString *> *_Nullable userGroups;

    Swift

    var userGroups: [String]? { get set }
  • The AWS account IDs. This parameter can be used only when the Attribute parameter is launchPermission.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<NSString *> *_Nullable userIds;

    Swift

    var userIds: [String]? { get set }
  • The value of the attribute being modified. This parameter can be used only when the Attribute parameter is description or productCodes.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable value;

    Swift

    var value: String? { get set }