Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWSEC2 Update models to latest #5352

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
295 changes: 242 additions & 53 deletions AWSEC2/AWSEC2Model.h

Large diffs are not rendered by default.

220 changes: 220 additions & 0 deletions AWSEC2/AWSEC2Model.m
Original file line number Diff line number Diff line change
Expand Up @@ -6458,6 +6458,7 @@ + (BOOL)supportsSecureCoding {
+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"bgpAsn" : @"BgpAsn",
@"bgpAsnExtended" : @"BgpAsnExtended",
@"certificateArn" : @"CertificateArn",
@"deviceName" : @"DeviceName",
@"dryRun" : @"DryRun",
Expand Down Expand Up @@ -14978,6 +14979,7 @@ + (BOOL)supportsSecureCoding {
+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"bgpAsn" : @"BgpAsn",
@"bgpAsnExtended" : @"BgpAsnExtended",
@"certificateArn" : @"CertificateArn",
@"customerGatewayId" : @"CustomerGatewayId",
@"deviceName" : @"DeviceName",
Expand Down Expand Up @@ -23845,6 +23847,9 @@ + (NSValueTransformer *)attributeJSONTransformer {
if ([value caseInsensitiveCompare:@"imdsSupport"] == NSOrderedSame) {
return @(AWSEC2ImageAttributeNameImdsSupport);
}
if ([value caseInsensitiveCompare:@"deregistrationProtection"] == NSOrderedSame) {
return @(AWSEC2ImageAttributeNameDeregistrationProtection);
}
return @(AWSEC2ImageAttributeNameUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
Expand Down Expand Up @@ -23872,6 +23877,8 @@ + (NSValueTransformer *)attributeJSONTransformer {
return @"lastLaunchedTime";
case AWSEC2ImageAttributeNameImdsSupport:
return @"imdsSupport";
case AWSEC2ImageAttributeNameDeregistrationProtection:
return @"deregistrationProtection";
default:
return nil;
}
Expand Down Expand Up @@ -25678,6 +25685,9 @@ + (NSValueTransformer *)attributeJSONTransformer {
if ([value caseInsensitiveCompare:@"attachment"] == NSOrderedSame) {
return @(AWSEC2NetworkInterfaceAttributeAttachment);
}
if ([value caseInsensitiveCompare:@"associatePublicIpAddress"] == NSOrderedSame) {
return @(AWSEC2NetworkInterfaceAttributeAssociatePublicIpAddress);
}
return @(AWSEC2NetworkInterfaceAttributeUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
Expand All @@ -25689,6 +25699,8 @@ + (NSValueTransformer *)attributeJSONTransformer {
return @"sourceDestCheck";
case AWSEC2NetworkInterfaceAttributeAttachment:
return @"attachment";
case AWSEC2NetworkInterfaceAttributeAssociatePublicIpAddress:
return @"associatePublicIpAddress";
default:
return nil;
}
Expand All @@ -25705,6 +25717,7 @@ + (BOOL)supportsSecureCoding {

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"associatePublicIpAddress" : @"AssociatePublicIpAddress",
@"attachment" : @"Attachment",
@"detail" : @"Description",
@"groups" : @"Groups",
Expand Down Expand Up @@ -33560,6 +33573,35 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey {

@end

@implementation AWSEC2DisableImageDeregistrationProtectionRequest

+ (BOOL)supportsSecureCoding {
return YES;
}

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"dryRun" : @"DryRun",
@"imageId" : @"ImageId",
};
}

@end

@implementation AWSEC2DisableImageDeregistrationProtectionResult

+ (BOOL)supportsSecureCoding {
return YES;
}

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"returned" : @"Return",
};
}

@end

@implementation AWSEC2DisableImageRequest

+ (BOOL)supportsSecureCoding {
Expand Down Expand Up @@ -35707,6 +35749,36 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey {

@end

@implementation AWSEC2EnableImageDeregistrationProtectionRequest

+ (BOOL)supportsSecureCoding {
return YES;
}

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"dryRun" : @"DryRun",
@"imageId" : @"ImageId",
@"withCooldown" : @"WithCooldown",
};
}

@end

@implementation AWSEC2EnableImageDeregistrationProtectionResult

+ (BOOL)supportsSecureCoding {
return YES;
}

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"returned" : @"Return",
};
}

@end

@implementation AWSEC2EnableImageRequest

+ (BOOL)supportsSecureCoding {
Expand Down Expand Up @@ -50458,6 +50530,124 @@ + (NSValueTransformer *)accountLevelJSONTransformer {

@end

@implementation AWSEC2GetInstanceTpmEkPubRequest

+ (BOOL)supportsSecureCoding {
return YES;
}

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"dryRun" : @"DryRun",
@"instanceId" : @"InstanceId",
@"keyFormat" : @"KeyFormat",
@"keyType" : @"KeyType",
};
}

+ (NSValueTransformer *)keyFormatJSONTransformer {
return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^NSNumber *(NSString *value) {
if ([value caseInsensitiveCompare:@"der"] == NSOrderedSame) {
return @(AWSEC2EkPubKeyFormatDer);
}
if ([value caseInsensitiveCompare:@"tpmt"] == NSOrderedSame) {
return @(AWSEC2EkPubKeyFormatTpmt);
}
return @(AWSEC2EkPubKeyFormatUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
case AWSEC2EkPubKeyFormatDer:
return @"der";
case AWSEC2EkPubKeyFormatTpmt:
return @"tpmt";
default:
return nil;
}
}];
}

+ (NSValueTransformer *)keyTypeJSONTransformer {
return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^NSNumber *(NSString *value) {
if ([value caseInsensitiveCompare:@"rsa-2048"] == NSOrderedSame) {
return @(AWSEC2EkPubKeyTypeRsa2048);
}
if ([value caseInsensitiveCompare:@"ecc-sec-p384"] == NSOrderedSame) {
return @(AWSEC2EkPubKeyTypeEccSecP384);
}
return @(AWSEC2EkPubKeyTypeUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
case AWSEC2EkPubKeyTypeRsa2048:
return @"rsa-2048";
case AWSEC2EkPubKeyTypeEccSecP384:
return @"ecc-sec-p384";
default:
return nil;
}
}];
}

@end

@implementation AWSEC2GetInstanceTpmEkPubResult

+ (BOOL)supportsSecureCoding {
return YES;
}

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"instanceId" : @"InstanceId",
@"keyFormat" : @"KeyFormat",
@"keyType" : @"KeyType",
@"keyValue" : @"KeyValue",
};
}

+ (NSValueTransformer *)keyFormatJSONTransformer {
return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^NSNumber *(NSString *value) {
if ([value caseInsensitiveCompare:@"der"] == NSOrderedSame) {
return @(AWSEC2EkPubKeyFormatDer);
}
if ([value caseInsensitiveCompare:@"tpmt"] == NSOrderedSame) {
return @(AWSEC2EkPubKeyFormatTpmt);
}
return @(AWSEC2EkPubKeyFormatUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
case AWSEC2EkPubKeyFormatDer:
return @"der";
case AWSEC2EkPubKeyFormatTpmt:
return @"tpmt";
default:
return nil;
}
}];
}

+ (NSValueTransformer *)keyTypeJSONTransformer {
return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^NSNumber *(NSString *value) {
if ([value caseInsensitiveCompare:@"rsa-2048"] == NSOrderedSame) {
return @(AWSEC2EkPubKeyTypeRsa2048);
}
if ([value caseInsensitiveCompare:@"ecc-sec-p384"] == NSOrderedSame) {
return @(AWSEC2EkPubKeyTypeEccSecP384);
}
return @(AWSEC2EkPubKeyTypeUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
case AWSEC2EkPubKeyTypeRsa2048:
return @"rsa-2048";
case AWSEC2EkPubKeyTypeEccSecP384:
return @"ecc-sec-p384";
default:
return nil;
}
}];
}

@end

@implementation AWSEC2GetInstanceTypesFromInstanceRequirementsRequest

+ (BOOL)supportsSecureCoding {
Expand Down Expand Up @@ -52681,6 +52871,7 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey {
@"bootMode" : @"BootMode",
@"creationDate" : @"CreationDate",
@"deprecationTime" : @"DeprecationTime",
@"deregistrationProtection" : @"DeregistrationProtection",
@"detail" : @"Description",
@"enaSupport" : @"EnaSupport",
@"hypervisor" : @"Hypervisor",
Expand All @@ -52690,6 +52881,7 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey {
@"imageType" : @"ImageType",
@"imdsSupport" : @"ImdsSupport",
@"kernelId" : @"KernelId",
@"lastLaunchedTime" : @"LastLaunchedTime",
@"name" : @"Name",
@"ownerId" : @"OwnerId",
@"platform" : @"Platform",
Expand Down Expand Up @@ -52988,6 +53180,7 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"blockDeviceMappings" : @"BlockDeviceMappings",
@"bootMode" : @"BootMode",
@"deregistrationProtection" : @"DeregistrationProtection",
@"detail" : @"Description",
@"imageId" : @"ImageId",
@"imdsSupport" : @"ImdsSupport",
Expand All @@ -53010,6 +53203,10 @@ + (NSValueTransformer *)bootModeJSONTransformer {
return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSEC2AttributeValue class]];
}

+ (NSValueTransformer *)deregistrationProtectionJSONTransformer {
return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSEC2AttributeValue class]];
}

+ (NSValueTransformer *)detailJSONTransformer {
return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSEC2AttributeValue class]];
}
Expand Down Expand Up @@ -64424,6 +64621,7 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey {
@"nitroEnclavesSupport" : @"NitroEnclavesSupport",
@"nitroTpmInfo" : @"NitroTpmInfo",
@"nitroTpmSupport" : @"NitroTpmSupport",
@"phcSupport" : @"PhcSupport",
@"placementGroupInfo" : @"PlacementGroupInfo",
@"processorInfo" : @"ProcessorInfo",
@"supportedBootModes" : @"SupportedBootModes",
Expand Down Expand Up @@ -68528,6 +68726,27 @@ + (NSValueTransformer *)nitroTpmSupportJSONTransformer {
}];
}

+ (NSValueTransformer *)phcSupportJSONTransformer {
return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^NSNumber *(NSString *value) {
if ([value caseInsensitiveCompare:@"unsupported"] == NSOrderedSame) {
return @(AWSEC2PhcSupportUnsupported);
}
if ([value caseInsensitiveCompare:@"supported"] == NSOrderedSame) {
return @(AWSEC2PhcSupportSupported);
}
return @(AWSEC2PhcSupportUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
case AWSEC2PhcSupportUnsupported:
return @"unsupported";
case AWSEC2PhcSupportSupported:
return @"supported";
default:
return nil;
}
}];
}

+ (NSValueTransformer *)placementGroupInfoJSONTransformer {
return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSEC2PlacementGroupInfo class]];
}
Expand Down Expand Up @@ -87843,6 +88062,7 @@ + (BOOL)supportsSecureCoding {

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"associatePublicIpAddress" : @"AssociatePublicIpAddress",
@"attachment" : @"Attachment",
@"connectionTrackingSpecification" : @"ConnectionTrackingSpecification",
@"detail" : @"Description",
Expand Down
Loading
Loading