Skip to content

Commit

Permalink
fixup! Generate Elasticmapreduce support.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcgilchrist committed Aug 28, 2019
1 parent ab4f655 commit ef4f165
Show file tree
Hide file tree
Showing 18 changed files with 107 additions and 56 deletions.
5 changes: 3 additions & 2 deletions libraries/elasticmapreduce/lib/addInstanceGroups.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ type input = AddInstanceGroupsInput.t
type output = AddInstanceGroupsOutput.t
type error = Errors_internal.t
let service = "elasticmapreduce"
let to_http req =
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string "https://elasticmapreduce.amazonaws.com")
(Uri.of_string
(Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.append
[("Version", ["2009-03-31"]); ("Action", ["AddInstanceGroups"])]
(Util.drop_empty
Expand Down
5 changes: 3 additions & 2 deletions libraries/elasticmapreduce/lib/addJobFlowSteps.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ type input = AddJobFlowStepsInput.t
type output = AddJobFlowStepsOutput.t
type error = Errors_internal.t
let service = "elasticmapreduce"
let to_http req =
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string "https://elasticmapreduce.amazonaws.com")
(Uri.of_string
(Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.append
[("Version", ["2009-03-31"]); ("Action", ["AddJobFlowSteps"])]
(Util.drop_empty
Expand Down
5 changes: 3 additions & 2 deletions libraries/elasticmapreduce/lib/addTags.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ type input = AddTagsInput.t
type output = unit
type error = Errors_internal.t
let service = "elasticmapreduce"
let to_http req =
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string "https://elasticmapreduce.amazonaws.com")
(Uri.of_string
(Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.append [("Version", ["2009-03-31"]); ("Action", ["AddTags"])]
(Util.drop_empty
(Uri.query_of_encoded (Query.render (AddTagsInput.to_query req))))) in
Expand Down
5 changes: 3 additions & 2 deletions libraries/elasticmapreduce/lib/describeCluster.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ type input = DescribeClusterInput.t
type output = DescribeClusterOutput.t
type error = Errors_internal.t
let service = "elasticmapreduce"
let to_http req =
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string "https://elasticmapreduce.amazonaws.com")
(Uri.of_string
(Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.append
[("Version", ["2009-03-31"]); ("Action", ["DescribeCluster"])]
(Util.drop_empty
Expand Down
5 changes: 3 additions & 2 deletions libraries/elasticmapreduce/lib/describeJobFlows.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ type input = DescribeJobFlowsInput.t
type output = DescribeJobFlowsOutput.t
type error = Errors_internal.t
let service = "elasticmapreduce"
let to_http req =
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string "https://elasticmapreduce.amazonaws.com")
(Uri.of_string
(Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.append
[("Version", ["2009-03-31"]); ("Action", ["DescribeJobFlows"])]
(Util.drop_empty
Expand Down
5 changes: 3 additions & 2 deletions libraries/elasticmapreduce/lib/describeStep.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ type input = DescribeStepInput.t
type output = DescribeStepOutput.t
type error = Errors_internal.t
let service = "elasticmapreduce"
let to_http req =
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string "https://elasticmapreduce.amazonaws.com")
(Uri.of_string
(Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.append
[("Version", ["2009-03-31"]); ("Action", ["DescribeStep"])]
(Util.drop_empty
Expand Down
5 changes: 3 additions & 2 deletions libraries/elasticmapreduce/lib/listBootstrapActions.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ type input = ListBootstrapActionsInput.t
type output = ListBootstrapActionsOutput.t
type error = Errors_internal.t
let service = "elasticmapreduce"
let to_http req =
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string "https://elasticmapreduce.amazonaws.com")
(Uri.of_string
(Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.append
[("Version", ["2009-03-31"]); ("Action", ["ListBootstrapActions"])]
(Util.drop_empty
Expand Down
5 changes: 3 additions & 2 deletions libraries/elasticmapreduce/lib/listClusters.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ type input = ListClustersInput.t
type output = ListClustersOutput.t
type error = Errors_internal.t
let service = "elasticmapreduce"
let to_http req =
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string "https://elasticmapreduce.amazonaws.com")
(Uri.of_string
(Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.append
[("Version", ["2009-03-31"]); ("Action", ["ListClusters"])]
(Util.drop_empty
Expand Down
5 changes: 3 additions & 2 deletions libraries/elasticmapreduce/lib/listInstanceGroups.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ type input = ListInstanceGroupsInput.t
type output = ListInstanceGroupsOutput.t
type error = Errors_internal.t
let service = "elasticmapreduce"
let to_http req =
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string "https://elasticmapreduce.amazonaws.com")
(Uri.of_string
(Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.append
[("Version", ["2009-03-31"]); ("Action", ["ListInstanceGroups"])]
(Util.drop_empty
Expand Down
5 changes: 3 additions & 2 deletions libraries/elasticmapreduce/lib/listInstances.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ type input = ListInstancesInput.t
type output = ListInstancesOutput.t
type error = Errors_internal.t
let service = "elasticmapreduce"
let to_http req =
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string "https://elasticmapreduce.amazonaws.com")
(Uri.of_string
(Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.append
[("Version", ["2009-03-31"]); ("Action", ["ListInstances"])]
(Util.drop_empty
Expand Down
5 changes: 3 additions & 2 deletions libraries/elasticmapreduce/lib/listSteps.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ type input = ListStepsInput.t
type output = ListStepsOutput.t
type error = Errors_internal.t
let service = "elasticmapreduce"
let to_http req =
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string "https://elasticmapreduce.amazonaws.com")
(Uri.of_string
(Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.append [("Version", ["2009-03-31"]); ("Action", ["ListSteps"])]
(Util.drop_empty
(Uri.query_of_encoded
Expand Down
5 changes: 3 additions & 2 deletions libraries/elasticmapreduce/lib/modifyInstanceGroups.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ type input = ModifyInstanceGroupsInput.t
type output = unit
type error = Errors_internal.t
let service = "elasticmapreduce"
let to_http req =
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string "https://elasticmapreduce.amazonaws.com")
(Uri.of_string
(Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.append
[("Version", ["2009-03-31"]); ("Action", ["ModifyInstanceGroups"])]
(Util.drop_empty
Expand Down
5 changes: 3 additions & 2 deletions libraries/elasticmapreduce/lib/removeTags.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ type input = RemoveTagsInput.t
type output = unit
type error = Errors_internal.t
let service = "elasticmapreduce"
let to_http req =
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string "https://elasticmapreduce.amazonaws.com")
(Uri.of_string
(Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.append [("Version", ["2009-03-31"]); ("Action", ["RemoveTags"])]
(Util.drop_empty
(Uri.query_of_encoded
Expand Down
5 changes: 3 additions & 2 deletions libraries/elasticmapreduce/lib/runJobFlow.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ type input = RunJobFlowInput.t
type output = RunJobFlowOutput.t
type error = Errors_internal.t
let service = "elasticmapreduce"
let to_http req =
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string "https://elasticmapreduce.amazonaws.com")
(Uri.of_string
(Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.append [("Version", ["2009-03-31"]); ("Action", ["RunJobFlow"])]
(Util.drop_empty
(Uri.query_of_encoded
Expand Down
5 changes: 3 additions & 2 deletions libraries/elasticmapreduce/lib/setTerminationProtection.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ type input = SetTerminationProtectionInput.t
type output = unit
type error = Errors_internal.t
let service = "elasticmapreduce"
let to_http req =
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string "https://elasticmapreduce.amazonaws.com")
(Uri.of_string
(Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.append
[("Version", ["2009-03-31"]);
("Action", ["SetTerminationProtection"])]
Expand Down
5 changes: 3 additions & 2 deletions libraries/elasticmapreduce/lib/setVisibleToAllUsers.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ type input = SetVisibleToAllUsersInput.t
type output = unit
type error = Errors_internal.t
let service = "elasticmapreduce"
let to_http req =
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string "https://elasticmapreduce.amazonaws.com")
(Uri.of_string
(Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.append
[("Version", ["2009-03-31"]); ("Action", ["SetVisibleToAllUsers"])]
(Util.drop_empty
Expand Down
5 changes: 3 additions & 2 deletions libraries/elasticmapreduce/lib/terminateJobFlows.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ type input = TerminateJobFlowsInput.t
type output = unit
type error = Errors_internal.t
let service = "elasticmapreduce"
let to_http req =
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string "https://elasticmapreduce.amazonaws.com")
(Uri.of_string
(Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.append
[("Version", ["2009-03-31"]); ("Action", ["TerminateJobFlows"])]
(Util.drop_empty
Expand Down
Loading

0 comments on commit ef4f165

Please sign in to comment.