Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate EC2 with newer botocore definitions.
- Loading branch information
1 parent
e7d3370
commit 4c69f5e
Showing
670 changed files
with
95,349 additions
and
18,210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
open Types | ||
open Aws | ||
|
||
type input = AcceptReservedInstancesExchangeQuoteRequest.t | ||
|
||
type output = AcceptReservedInstancesExchangeQuoteResult.t | ||
|
||
type error = Errors_internal.t | ||
|
||
let service = "ec2" | ||
|
||
let to_http service region req = | ||
let uri = | ||
Uri.add_query_params | ||
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service region))) | ||
(List.append | ||
[ "Version", [ "2016-11-15" ] | ||
; "Action", [ "AcceptReservedInstancesExchangeQuote" ] | ||
] | ||
(Util.drop_empty | ||
(Uri.query_of_encoded | ||
(Query.render (AcceptReservedInstancesExchangeQuoteRequest.to_query req))))) | ||
in | ||
`POST, uri, [] | ||
|
||
let of_http body = | ||
try | ||
let xml = Ezxmlm.from_string body in | ||
let resp = Xml.member "AcceptReservedInstancesExchangeQuoteResponse" (snd xml) in | ||
try | ||
Util.or_error | ||
(Util.option_bind resp AcceptReservedInstancesExchangeQuoteResult.parse) | ||
(let open Error in | ||
BadResponse | ||
{ body | ||
; message = | ||
"Could not find well formed AcceptReservedInstancesExchangeQuoteResult." | ||
}) | ||
with Xml.RequiredFieldMissing msg -> | ||
let open Error in | ||
`Error | ||
(BadResponse | ||
{ body | ||
; message = | ||
"Error parsing AcceptReservedInstancesExchangeQuoteResult - missing field \ | ||
in body or children: " | ||
^ msg | ||
}) | ||
with Failure msg -> | ||
`Error | ||
(let open Error in | ||
BadResponse { body; message = "Error parsing xml: " ^ msg }) | ||
|
||
let parse_error code err = | ||
let errors = [] @ Errors_internal.common in | ||
match Errors_internal.of_string err with | ||
| Some var -> | ||
if List.mem var errors | ||
&& | ||
match Errors_internal.to_http_code var with | ||
| Some var -> var = code | ||
| None -> true | ||
then Some var | ||
else None | ||
| None -> None |
10 changes: 10 additions & 0 deletions
10
libraries/ec2/lib/acceptReservedInstancesExchangeQuote.mli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
open Types | ||
|
||
type input = AcceptReservedInstancesExchangeQuoteRequest.t | ||
|
||
type output = AcceptReservedInstancesExchangeQuoteResult.t | ||
|
||
type error = Errors_internal.t | ||
|
||
include | ||
Aws.Call with type input := input and type output := output and type error := error |
65 changes: 65 additions & 0 deletions
65
libraries/ec2/lib/acceptTransitGatewayPeeringAttachment.ml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
open Types | ||
open Aws | ||
|
||
type input = AcceptTransitGatewayPeeringAttachmentRequest.t | ||
|
||
type output = AcceptTransitGatewayPeeringAttachmentResult.t | ||
|
||
type error = Errors_internal.t | ||
|
||
let service = "ec2" | ||
|
||
let to_http service region req = | ||
let uri = | ||
Uri.add_query_params | ||
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service region))) | ||
(List.append | ||
[ "Version", [ "2016-11-15" ] | ||
; "Action", [ "AcceptTransitGatewayPeeringAttachment" ] | ||
] | ||
(Util.drop_empty | ||
(Uri.query_of_encoded | ||
(Query.render (AcceptTransitGatewayPeeringAttachmentRequest.to_query req))))) | ||
in | ||
`POST, uri, [] | ||
|
||
let of_http body = | ||
try | ||
let xml = Ezxmlm.from_string body in | ||
let resp = Xml.member "AcceptTransitGatewayPeeringAttachmentResponse" (snd xml) in | ||
try | ||
Util.or_error | ||
(Util.option_bind resp AcceptTransitGatewayPeeringAttachmentResult.parse) | ||
(let open Error in | ||
BadResponse | ||
{ body | ||
; message = | ||
"Could not find well formed AcceptTransitGatewayPeeringAttachmentResult." | ||
}) | ||
with Xml.RequiredFieldMissing msg -> | ||
let open Error in | ||
`Error | ||
(BadResponse | ||
{ body | ||
; message = | ||
"Error parsing AcceptTransitGatewayPeeringAttachmentResult - missing \ | ||
field in body or children: " | ||
^ msg | ||
}) | ||
with Failure msg -> | ||
`Error | ||
(let open Error in | ||
BadResponse { body; message = "Error parsing xml: " ^ msg }) | ||
|
||
let parse_error code err = | ||
let errors = [] @ Errors_internal.common in | ||
match Errors_internal.of_string err with | ||
| Some var -> | ||
if List.mem var errors | ||
&& | ||
match Errors_internal.to_http_code var with | ||
| Some var -> var = code | ||
| None -> true | ||
then Some var | ||
else None | ||
| None -> None |
10 changes: 10 additions & 0 deletions
10
libraries/ec2/lib/acceptTransitGatewayPeeringAttachment.mli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
open Types | ||
|
||
type input = AcceptTransitGatewayPeeringAttachmentRequest.t | ||
|
||
type output = AcceptTransitGatewayPeeringAttachmentResult.t | ||
|
||
type error = Errors_internal.t | ||
|
||
include | ||
Aws.Call with type input := input and type output := output and type error := error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
open Types | ||
open Aws | ||
|
||
type input = AcceptTransitGatewayVpcAttachmentRequest.t | ||
|
||
type output = AcceptTransitGatewayVpcAttachmentResult.t | ||
|
||
type error = Errors_internal.t | ||
|
||
let service = "ec2" | ||
|
||
let to_http service region req = | ||
let uri = | ||
Uri.add_query_params | ||
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service region))) | ||
(List.append | ||
[ "Version", [ "2016-11-15" ] | ||
; "Action", [ "AcceptTransitGatewayVpcAttachment" ] | ||
] | ||
(Util.drop_empty | ||
(Uri.query_of_encoded | ||
(Query.render (AcceptTransitGatewayVpcAttachmentRequest.to_query req))))) | ||
in | ||
`POST, uri, [] | ||
|
||
let of_http body = | ||
try | ||
let xml = Ezxmlm.from_string body in | ||
let resp = Xml.member "AcceptTransitGatewayVpcAttachmentResponse" (snd xml) in | ||
try | ||
Util.or_error | ||
(Util.option_bind resp AcceptTransitGatewayVpcAttachmentResult.parse) | ||
(let open Error in | ||
BadResponse | ||
{ body | ||
; message = | ||
"Could not find well formed AcceptTransitGatewayVpcAttachmentResult." | ||
}) | ||
with Xml.RequiredFieldMissing msg -> | ||
let open Error in | ||
`Error | ||
(BadResponse | ||
{ body | ||
; message = | ||
"Error parsing AcceptTransitGatewayVpcAttachmentResult - missing field in \ | ||
body or children: " | ||
^ msg | ||
}) | ||
with Failure msg -> | ||
`Error | ||
(let open Error in | ||
BadResponse { body; message = "Error parsing xml: " ^ msg }) | ||
|
||
let parse_error code err = | ||
let errors = [] @ Errors_internal.common in | ||
match Errors_internal.of_string err with | ||
| Some var -> | ||
if List.mem var errors | ||
&& | ||
match Errors_internal.to_http_code var with | ||
| Some var -> var = code | ||
| None -> true | ||
then Some var | ||
else None | ||
| None -> None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
open Types | ||
|
||
type input = AcceptTransitGatewayVpcAttachmentRequest.t | ||
|
||
type output = AcceptTransitGatewayVpcAttachmentResult.t | ||
|
||
type error = Errors_internal.t | ||
|
||
include | ||
Aws.Call with type input := input and type output := output and type error := error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
open Types | ||
open Aws | ||
|
||
type input = AcceptVpcEndpointConnectionsRequest.t | ||
|
||
type output = AcceptVpcEndpointConnectionsResult.t | ||
|
||
type error = Errors_internal.t | ||
|
||
let service = "ec2" | ||
|
||
let to_http service region req = | ||
let uri = | ||
Uri.add_query_params | ||
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service region))) | ||
(List.append | ||
[ "Version", [ "2016-11-15" ]; "Action", [ "AcceptVpcEndpointConnections" ] ] | ||
(Util.drop_empty | ||
(Uri.query_of_encoded | ||
(Query.render (AcceptVpcEndpointConnectionsRequest.to_query req))))) | ||
in | ||
`POST, uri, [] | ||
|
||
let of_http body = | ||
try | ||
let xml = Ezxmlm.from_string body in | ||
let resp = Xml.member "AcceptVpcEndpointConnectionsResponse" (snd xml) in | ||
try | ||
Util.or_error | ||
(Util.option_bind resp AcceptVpcEndpointConnectionsResult.parse) | ||
(let open Error in | ||
BadResponse | ||
{ body | ||
; message = "Could not find well formed AcceptVpcEndpointConnectionsResult." | ||
}) | ||
with Xml.RequiredFieldMissing msg -> | ||
let open Error in | ||
`Error | ||
(BadResponse | ||
{ body | ||
; message = | ||
"Error parsing AcceptVpcEndpointConnectionsResult - missing field in body \ | ||
or children: " | ||
^ msg | ||
}) | ||
with Failure msg -> | ||
`Error | ||
(let open Error in | ||
BadResponse { body; message = "Error parsing xml: " ^ msg }) | ||
|
||
let parse_error code err = | ||
let errors = [] @ Errors_internal.common in | ||
match Errors_internal.of_string err with | ||
| Some var -> | ||
if List.mem var errors | ||
&& | ||
match Errors_internal.to_http_code var with | ||
| Some var -> var = code | ||
| None -> true | ||
then Some var | ||
else None | ||
| None -> None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
open Types | ||
|
||
type input = AcceptVpcEndpointConnectionsRequest.t | ||
|
||
type output = AcceptVpcEndpointConnectionsResult.t | ||
|
||
type error = Errors_internal.t | ||
|
||
include | ||
Aws.Call with type input := input and type output := output and type error := error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
open Types | ||
open Aws | ||
|
||
type input = AdvertiseByoipCidrRequest.t | ||
|
||
type output = AdvertiseByoipCidrResult.t | ||
|
||
type error = Errors_internal.t | ||
|
||
let service = "ec2" | ||
|
||
let to_http service region req = | ||
let uri = | ||
Uri.add_query_params | ||
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service region))) | ||
(List.append | ||
[ "Version", [ "2016-11-15" ]; "Action", [ "AdvertiseByoipCidr" ] ] | ||
(Util.drop_empty | ||
(Uri.query_of_encoded (Query.render (AdvertiseByoipCidrRequest.to_query req))))) | ||
in | ||
`POST, uri, [] | ||
|
||
let of_http body = | ||
try | ||
let xml = Ezxmlm.from_string body in | ||
let resp = Xml.member "AdvertiseByoipCidrResponse" (snd xml) in | ||
try | ||
Util.or_error | ||
(Util.option_bind resp AdvertiseByoipCidrResult.parse) | ||
(let open Error in | ||
BadResponse | ||
{ body; message = "Could not find well formed AdvertiseByoipCidrResult." }) | ||
with Xml.RequiredFieldMissing msg -> | ||
let open Error in | ||
`Error | ||
(BadResponse | ||
{ body | ||
; message = | ||
"Error parsing AdvertiseByoipCidrResult - missing field in body or \ | ||
children: " | ||
^ msg | ||
}) | ||
with Failure msg -> | ||
`Error | ||
(let open Error in | ||
BadResponse { body; message = "Error parsing xml: " ^ msg }) | ||
|
||
let parse_error code err = | ||
let errors = [] @ Errors_internal.common in | ||
match Errors_internal.of_string err with | ||
| Some var -> | ||
if List.mem var errors | ||
&& | ||
match Errors_internal.to_http_code var with | ||
| Some var -> var = code | ||
| None -> true | ||
then Some var | ||
else None | ||
| None -> None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
open Types | ||
|
||
type input = AdvertiseByoipCidrRequest.t | ||
|
||
type output = AdvertiseByoipCidrResult.t | ||
|
||
type error = Errors_internal.t | ||
|
||
include | ||
Aws.Call with type input := input and type output := output and type error := error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.