Skip to content

Commit

Permalink
feat(AWSEC2): update models to latest (#5166)
Browse files Browse the repository at this point in the history
  • Loading branch information
awsmobilesdk authored Jan 30, 2024
1 parent c868024 commit 3dd9eb2
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 6 deletions.
26 changes: 24 additions & 2 deletions AWSEC2/AWSEC2Model.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ typedef NS_ENUM(NSInteger, AWSEC2AvailabilityZoneState) {
AWSEC2AvailabilityZoneStateInformation,
AWSEC2AvailabilityZoneStateImpaired,
AWSEC2AvailabilityZoneStateUnavailable,
AWSEC2AvailabilityZoneStateConstrained,
};

typedef NS_ENUM(NSInteger, AWSEC2BareMetal) {
Expand Down Expand Up @@ -2853,6 +2854,7 @@ typedef NS_ENUM(NSInteger, AWSEC2SubnetState) {
AWSEC2SubnetStateUnknown,
AWSEC2SubnetStatePending,
AWSEC2SubnetStateAvailable,
AWSEC2SubnetStateUnavailable,
};

typedef NS_ENUM(NSInteger, AWSEC2SummaryStatus) {
Expand Down Expand Up @@ -11258,7 +11260,7 @@ typedef NS_ENUM(NSInteger, AWSEC2scope) {


/**
<p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html">How to ensure idempotency</a>.</p>
<p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p>
*/
@property (nonatomic, strong) NSString * _Nullable clientToken;

Expand Down Expand Up @@ -12502,7 +12504,7 @@ typedef NS_ENUM(NSInteger, AWSEC2scope) {
@property (nonatomic, strong) NSString * _Nullable allocationId;

/**
<p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">How to ensure idempotency</a>.</p><p>Constraint: Maximum 64 ASCII characters.</p>
<p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p><p>Constraint: Maximum 64 ASCII characters.</p>
*/
@property (nonatomic, strong) NSString * _Nullable clientToken;

Expand Down Expand Up @@ -12630,6 +12632,11 @@ typedef NS_ENUM(NSInteger, AWSEC2scope) {
@interface AWSEC2CreateNetworkAclRequest : AWSRequest


/**
<p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p>
*/
@property (nonatomic, strong) NSString * _Nullable clientToken;

/**
<p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
*/
Expand All @@ -12653,6 +12660,11 @@ typedef NS_ENUM(NSInteger, AWSEC2scope) {
@interface AWSEC2CreateNetworkAclResult : AWSModel


/**
<p>Unique, case-sensitive identifier to ensure the idempotency of the request. Only returned if a client token was provided in the request.</p>
*/
@property (nonatomic, strong) NSString * _Nullable clientToken;

/**
<p>Information about the network ACL.</p>
*/
Expand Down Expand Up @@ -13283,6 +13295,11 @@ typedef NS_ENUM(NSInteger, AWSEC2scope) {
@interface AWSEC2CreateRouteTableRequest : AWSRequest


/**
<p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p>
*/
@property (nonatomic, strong) NSString * _Nullable clientToken;

/**
<p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
*/
Expand All @@ -13306,6 +13323,11 @@ typedef NS_ENUM(NSInteger, AWSEC2scope) {
@interface AWSEC2CreateRouteTableResult : AWSModel


/**
<p>Unique, case-sensitive identifier to ensure the idempotency of the request. Only returned if a client token was provided in the request.</p>
*/
@property (nonatomic, strong) NSString * _Nullable clientToken;

/**
<p>Information about the route table.</p>
*/
Expand Down
14 changes: 14 additions & 0 deletions AWSEC2/AWSEC2Model.m
Original file line number Diff line number Diff line change
Expand Up @@ -2650,6 +2650,9 @@ + (NSValueTransformer *)stateJSONTransformer {
if ([value caseInsensitiveCompare:@"unavailable"] == NSOrderedSame) {
return @(AWSEC2AvailabilityZoneStateUnavailable);
}
if ([value caseInsensitiveCompare:@"constrained"] == NSOrderedSame) {
return @(AWSEC2AvailabilityZoneStateConstrained);
}
return @(AWSEC2AvailabilityZoneStateUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
Expand All @@ -2661,6 +2664,8 @@ + (NSValueTransformer *)stateJSONTransformer {
return @"impaired";
case AWSEC2AvailabilityZoneStateUnavailable:
return @"unavailable";
case AWSEC2AvailabilityZoneStateConstrained:
return @"constrained";
default:
return nil;
}
Expand Down Expand Up @@ -12010,6 +12015,7 @@ + (BOOL)supportsSecureCoding {

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"clientToken" : @"ClientToken",
@"dryRun" : @"DryRun",
@"tagSpecifications" : @"TagSpecifications",
@"vpcId" : @"VpcId",
Expand All @@ -12030,6 +12036,7 @@ + (BOOL)supportsSecureCoding {

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"clientToken" : @"ClientToken",
@"networkAcl" : @"NetworkAcl",
};
}
Expand Down Expand Up @@ -12614,6 +12621,7 @@ + (BOOL)supportsSecureCoding {

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"clientToken" : @"ClientToken",
@"dryRun" : @"DryRun",
@"tagSpecifications" : @"TagSpecifications",
@"vpcId" : @"VpcId",
Expand All @@ -12634,6 +12642,7 @@ + (BOOL)supportsSecureCoding {

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"clientToken" : @"ClientToken",
@"routeTable" : @"RouteTable",
};
}
Expand Down Expand Up @@ -138208,13 +138217,18 @@ + (NSValueTransformer *)stateJSONTransformer {
if ([value caseInsensitiveCompare:@"available"] == NSOrderedSame) {
return @(AWSEC2SubnetStateAvailable);
}
if ([value caseInsensitiveCompare:@"unavailable"] == NSOrderedSame) {
return @(AWSEC2SubnetStateUnavailable);
}
return @(AWSEC2SubnetStateUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
case AWSEC2SubnetStatePending:
return @"pending";
case AWSEC2SubnetStateAvailable:
return @"available";
case AWSEC2SubnetStateUnavailable:
return @"unavailable";
default:
return nil;
}
Expand Down
30 changes: 26 additions & 4 deletions AWSEC2/AWSEC2Resources.m
Original file line number Diff line number Diff line change
Expand Up @@ -9303,7 +9303,8 @@ - (NSString *)definitionString {
\"available\",\
\"information\",\
\"impaired\",\
\"unavailable\"\
\"unavailable\",\
\"constrained\"\
]\
},\
\"AvailabilityZoneStringList\":{\
Expand Down Expand Up @@ -12653,7 +12654,7 @@ - (NSString *)definitionString {
\"members\":{\
\"ClientToken\":{\
\"shape\":\"String\",\
\"documentation\":\"<p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href=\\\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html\\\">How to ensure idempotency</a>.</p>\"\
\"documentation\":\"<p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href=\\\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html\\\">Ensuring idempotency</a>.</p>\"\
},\
\"DryRun\":{\
\"shape\":\"Boolean\",\
Expand Down Expand Up @@ -13732,7 +13733,7 @@ - (NSString *)definitionString {
},\
\"ClientToken\":{\
\"shape\":\"String\",\
\"documentation\":\"<p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href=\\\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html\\\">How to ensure idempotency</a>.</p> <p>Constraint: Maximum 64 ASCII characters.</p>\",\
\"documentation\":\"<p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href=\\\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html\\\">Ensuring idempotency</a>.</p> <p>Constraint: Maximum 64 ASCII characters.</p>\",\
\"idempotencyToken\":true\
},\
\"DryRun\":{\
Expand Down Expand Up @@ -13867,6 +13868,11 @@ - (NSString *)definitionString {
\"shape\":\"TagSpecificationList\",\
\"documentation\":\"<p>The tags to assign to the network ACL.</p>\",\
\"locationName\":\"TagSpecification\"\
},\
\"ClientToken\":{\
\"shape\":\"String\",\
\"documentation\":\"<p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href=\\\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html\\\">Ensuring idempotency</a>.</p>\",\
\"idempotencyToken\":true\
}\
}\
},\
Expand All @@ -13877,6 +13883,11 @@ - (NSString *)definitionString {
\"shape\":\"NetworkAcl\",\
\"documentation\":\"<p>Information about the network ACL.</p>\",\
\"locationName\":\"networkAcl\"\
},\
\"ClientToken\":{\
\"shape\":\"String\",\
\"documentation\":\"<p>Unique, case-sensitive identifier to ensure the idempotency of the request. Only returned if a client token was provided in the request.</p>\",\
\"locationName\":\"clientToken\"\
}\
}\
},\
Expand Down Expand Up @@ -14442,6 +14453,11 @@ - (NSString *)definitionString {
\"shape\":\"TagSpecificationList\",\
\"documentation\":\"<p>The tags to assign to the route table.</p>\",\
\"locationName\":\"TagSpecification\"\
},\
\"ClientToken\":{\
\"shape\":\"String\",\
\"documentation\":\"<p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href=\\\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html\\\">Ensuring idempotency</a>.</p>\",\
\"idempotencyToken\":true\
}\
}\
},\
Expand All @@ -14452,6 +14468,11 @@ - (NSString *)definitionString {
\"shape\":\"RouteTable\",\
\"documentation\":\"<p>Information about the route table.</p>\",\
\"locationName\":\"routeTable\"\
},\
\"ClientToken\":{\
\"shape\":\"String\",\
\"documentation\":\"<p>Unique, case-sensitive identifier to ensure the idempotency of the request. Only returned if a client token was provided in the request.</p>\",\
\"locationName\":\"clientToken\"\
}\
}\
},\
Expand Down Expand Up @@ -54748,7 +54769,8 @@ - (NSString *)definitionString {
\"type\":\"string\",\
\"enum\":[\
\"pending\",\
\"available\"\
\"available\",\
\"unavailable\"\
]\
},\
\"Subscription\":{\
Expand Down

0 comments on commit 3dd9eb2

Please sign in to comment.