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 #5046

Closed
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
658 changes: 633 additions & 25 deletions AWSEC2/AWSEC2Model.h

Large diffs are not rendered by default.

6,531 changes: 6,452 additions & 79 deletions AWSEC2/AWSEC2Model.m

Large diffs are not rendered by default.

709 changes: 662 additions & 47 deletions AWSEC2/AWSEC2Resources.m

Large diffs are not rendered by default.

220 changes: 210 additions & 10 deletions AWSEC2/AWSEC2Service.h

Large diffs are not rendered by default.

184 changes: 184 additions & 0 deletions AWSEC2/AWSEC2Service.m
Original file line number Diff line number Diff line change
Expand Up @@ -5442,6 +5442,29 @@ - (void)describeByoipCidrs:(AWSEC2DescribeByoipCidrsRequest *)request
}];
}

- (AWSTask<AWSEC2DescribeCapacityBlockOfferingsResult *> *)describeCapacityBlockOfferings:(AWSEC2DescribeCapacityBlockOfferingsRequest *)request {
return [self invokeRequest:request
HTTPMethod:AWSHTTPMethodPOST
URLString:@""
targetPrefix:@""
operationName:@"DescribeCapacityBlockOfferings"
outputClass:[AWSEC2DescribeCapacityBlockOfferingsResult class]];
}

- (void)describeCapacityBlockOfferings:(AWSEC2DescribeCapacityBlockOfferingsRequest *)request
completionHandler:(void (^)(AWSEC2DescribeCapacityBlockOfferingsResult *response, NSError *error))completionHandler {
[[self describeCapacityBlockOfferings:request] continueWithBlock:^id _Nullable(AWSTask<AWSEC2DescribeCapacityBlockOfferingsResult *> * _Nonnull task) {
AWSEC2DescribeCapacityBlockOfferingsResult *result = task.result;
NSError *error = task.error;

if (completionHandler) {
completionHandler(result, error);
}

return nil;
}];
}

- (AWSTask<AWSEC2DescribeCapacityReservationFleetsResult *> *)describeCapacityReservationFleets:(AWSEC2DescribeCapacityReservationFleetsRequest *)request {
return [self invokeRequest:request
HTTPMethod:AWSHTTPMethodPOST
Expand Down Expand Up @@ -8820,6 +8843,29 @@ - (void)disableFastSnapshotRestores:(AWSEC2DisableFastSnapshotRestoresRequest *)
}];
}

- (AWSTask<AWSEC2DisableImageResult *> *)disableImage:(AWSEC2DisableImageRequest *)request {
return [self invokeRequest:request
HTTPMethod:AWSHTTPMethodPOST
URLString:@""
targetPrefix:@""
operationName:@"DisableImage"
outputClass:[AWSEC2DisableImageResult class]];
}

- (void)disableImage:(AWSEC2DisableImageRequest *)request
completionHandler:(void (^)(AWSEC2DisableImageResult *response, NSError *error))completionHandler {
[[self disableImage:request] continueWithBlock:^id _Nullable(AWSTask<AWSEC2DisableImageResult *> * _Nonnull task) {
AWSEC2DisableImageResult *result = task.result;
NSError *error = task.error;

if (completionHandler) {
completionHandler(result, error);
}

return nil;
}];
}

- (AWSTask<AWSEC2DisableImageBlockPublicAccessResult *> *)disableImageBlockPublicAccess:(AWSEC2DisableImageBlockPublicAccessRequest *)request {
return [self invokeRequest:request
HTTPMethod:AWSHTTPMethodPOST
Expand Down Expand Up @@ -8912,6 +8958,29 @@ - (void)disableSerialConsoleAccess:(AWSEC2DisableSerialConsoleAccessRequest *)re
}];
}

- (AWSTask<AWSEC2DisableSnapshotBlockPublicAccessResult *> *)disableSnapshotBlockPublicAccess:(AWSEC2DisableSnapshotBlockPublicAccessRequest *)request {
return [self invokeRequest:request
HTTPMethod:AWSHTTPMethodPOST
URLString:@""
targetPrefix:@""
operationName:@"DisableSnapshotBlockPublicAccess"
outputClass:[AWSEC2DisableSnapshotBlockPublicAccessResult class]];
}

- (void)disableSnapshotBlockPublicAccess:(AWSEC2DisableSnapshotBlockPublicAccessRequest *)request
completionHandler:(void (^)(AWSEC2DisableSnapshotBlockPublicAccessResult *response, NSError *error))completionHandler {
[[self disableSnapshotBlockPublicAccess:request] continueWithBlock:^id _Nullable(AWSTask<AWSEC2DisableSnapshotBlockPublicAccessResult *> * _Nonnull task) {
AWSEC2DisableSnapshotBlockPublicAccessResult *result = task.result;
NSError *error = task.error;

if (completionHandler) {
completionHandler(result, error);
}

return nil;
}];
}

- (AWSTask<AWSEC2DisableTransitGatewayRouteTablePropagationResult *> *)disableTransitGatewayRouteTablePropagation:(AWSEC2DisableTransitGatewayRouteTablePropagationRequest *)request {
return [self invokeRequest:request
HTTPMethod:AWSHTTPMethodPOST
Expand Down Expand Up @@ -9438,6 +9507,29 @@ - (void)enableFastSnapshotRestores:(AWSEC2EnableFastSnapshotRestoresRequest *)re
}];
}

- (AWSTask<AWSEC2EnableImageResult *> *)enableImage:(AWSEC2EnableImageRequest *)request {
return [self invokeRequest:request
HTTPMethod:AWSHTTPMethodPOST
URLString:@""
targetPrefix:@""
operationName:@"EnableImage"
outputClass:[AWSEC2EnableImageResult class]];
}

- (void)enableImage:(AWSEC2EnableImageRequest *)request
completionHandler:(void (^)(AWSEC2EnableImageResult *response, NSError *error))completionHandler {
[[self enableImage:request] continueWithBlock:^id _Nullable(AWSTask<AWSEC2EnableImageResult *> * _Nonnull task) {
AWSEC2EnableImageResult *result = task.result;
NSError *error = task.error;

if (completionHandler) {
completionHandler(result, error);
}

return nil;
}];
}

- (AWSTask<AWSEC2EnableImageBlockPublicAccessResult *> *)enableImageBlockPublicAccess:(AWSEC2EnableImageBlockPublicAccessRequest *)request {
return [self invokeRequest:request
HTTPMethod:AWSHTTPMethodPOST
Expand Down Expand Up @@ -9553,6 +9645,29 @@ - (void)enableSerialConsoleAccess:(AWSEC2EnableSerialConsoleAccessRequest *)requ
}];
}

- (AWSTask<AWSEC2EnableSnapshotBlockPublicAccessResult *> *)enableSnapshotBlockPublicAccess:(AWSEC2EnableSnapshotBlockPublicAccessRequest *)request {
return [self invokeRequest:request
HTTPMethod:AWSHTTPMethodPOST
URLString:@""
targetPrefix:@""
operationName:@"EnableSnapshotBlockPublicAccess"
outputClass:[AWSEC2EnableSnapshotBlockPublicAccessResult class]];
}

- (void)enableSnapshotBlockPublicAccess:(AWSEC2EnableSnapshotBlockPublicAccessRequest *)request
completionHandler:(void (^)(AWSEC2EnableSnapshotBlockPublicAccessResult *response, NSError *error))completionHandler {
[[self enableSnapshotBlockPublicAccess:request] continueWithBlock:^id _Nullable(AWSTask<AWSEC2EnableSnapshotBlockPublicAccessResult *> * _Nonnull task) {
AWSEC2EnableSnapshotBlockPublicAccessResult *result = task.result;
NSError *error = task.error;

if (completionHandler) {
completionHandler(result, error);
}

return nil;
}];
}

- (AWSTask<AWSEC2EnableTransitGatewayRouteTablePropagationResult *> *)enableTransitGatewayRouteTablePropagation:(AWSEC2EnableTransitGatewayRouteTablePropagationRequest *)request {
return [self invokeRequest:request
HTTPMethod:AWSHTTPMethodPOST
Expand Down Expand Up @@ -10425,6 +10540,29 @@ - (void)getReservedInstancesExchangeQuote:(AWSEC2GetReservedInstancesExchangeQuo
}];
}

- (AWSTask<AWSEC2GetSecurityGroupsForVpcResult *> *)getSecurityGroupsForVpc:(AWSEC2GetSecurityGroupsForVpcRequest *)request {
return [self invokeRequest:request
HTTPMethod:AWSHTTPMethodPOST
URLString:@""
targetPrefix:@""
operationName:@"GetSecurityGroupsForVpc"
outputClass:[AWSEC2GetSecurityGroupsForVpcResult class]];
}

- (void)getSecurityGroupsForVpc:(AWSEC2GetSecurityGroupsForVpcRequest *)request
completionHandler:(void (^)(AWSEC2GetSecurityGroupsForVpcResult *response, NSError *error))completionHandler {
[[self getSecurityGroupsForVpc:request] continueWithBlock:^id _Nullable(AWSTask<AWSEC2GetSecurityGroupsForVpcResult *> * _Nonnull task) {
AWSEC2GetSecurityGroupsForVpcResult *result = task.result;
NSError *error = task.error;

if (completionHandler) {
completionHandler(result, error);
}

return nil;
}];
}

- (AWSTask<AWSEC2GetSerialConsoleAccessStatusResult *> *)getSerialConsoleAccessStatus:(AWSEC2GetSerialConsoleAccessStatusRequest *)request {
return [self invokeRequest:request
HTTPMethod:AWSHTTPMethodPOST
Expand All @@ -10448,6 +10586,29 @@ - (void)getSerialConsoleAccessStatus:(AWSEC2GetSerialConsoleAccessStatusRequest
}];
}

- (AWSTask<AWSEC2GetSnapshotBlockPublicAccessStateResult *> *)getSnapshotBlockPublicAccessState:(AWSEC2GetSnapshotBlockPublicAccessStateRequest *)request {
return [self invokeRequest:request
HTTPMethod:AWSHTTPMethodPOST
URLString:@""
targetPrefix:@""
operationName:@"GetSnapshotBlockPublicAccessState"
outputClass:[AWSEC2GetSnapshotBlockPublicAccessStateResult class]];
}

- (void)getSnapshotBlockPublicAccessState:(AWSEC2GetSnapshotBlockPublicAccessStateRequest *)request
completionHandler:(void (^)(AWSEC2GetSnapshotBlockPublicAccessStateResult *response, NSError *error))completionHandler {
[[self getSnapshotBlockPublicAccessState:request] continueWithBlock:^id _Nullable(AWSTask<AWSEC2GetSnapshotBlockPublicAccessStateResult *> * _Nonnull task) {
AWSEC2GetSnapshotBlockPublicAccessStateResult *result = task.result;
NSError *error = task.error;

if (completionHandler) {
completionHandler(result, error);
}

return nil;
}];
}

- (AWSTask<AWSEC2GetSpotPlacementScoresResult *> *)getSpotPlacementScores:(AWSEC2GetSpotPlacementScoresRequest *)request {
return [self invokeRequest:request
HTTPMethod:AWSHTTPMethodPOST
Expand Down Expand Up @@ -12555,6 +12716,29 @@ - (void)provisionPublicIpv4PoolCidr:(AWSEC2ProvisionPublicIpv4PoolCidrRequest *)
}];
}

- (AWSTask<AWSEC2PurchaseCapacityBlockResult *> *)purchaseCapacityBlock:(AWSEC2PurchaseCapacityBlockRequest *)request {
return [self invokeRequest:request
HTTPMethod:AWSHTTPMethodPOST
URLString:@""
targetPrefix:@""
operationName:@"PurchaseCapacityBlock"
outputClass:[AWSEC2PurchaseCapacityBlockResult class]];
}

- (void)purchaseCapacityBlock:(AWSEC2PurchaseCapacityBlockRequest *)request
completionHandler:(void (^)(AWSEC2PurchaseCapacityBlockResult *response, NSError *error))completionHandler {
[[self purchaseCapacityBlock:request] continueWithBlock:^id _Nullable(AWSTask<AWSEC2PurchaseCapacityBlockResult *> * _Nonnull task) {
AWSEC2PurchaseCapacityBlockResult *result = task.result;
NSError *error = task.error;

if (completionHandler) {
completionHandler(result, error);
}

return nil;
}];
}

- (AWSTask<AWSEC2PurchaseHostReservationResult *> *)purchaseHostReservation:(AWSEC2PurchaseHostReservationRequest *)request {
return [self invokeRequest:request
HTTPMethod:AWSHTTPMethodPOST
Expand Down
Loading