Skip to content

Commit

Permalink
Update services based on v1.44.134 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Nov 10, 2022
1 parent 5d25854 commit 0aff274
Show file tree
Hide file tree
Showing 4 changed files with 167 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .latest-tag-aws-sdk-go
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.44.133
v1.44.134
16 changes: 10 additions & 6 deletions src/aws_connectcases.erl
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,13 @@ create_related_item(Client, CaseId, DomainId, Input0, Options0) ->

%% @doc Creates a template in the Cases domain.
%%
%% This template is used to define the case object model (that is, define
%% This template is used to define the case object model (that is, to define
%% what data can be captured on cases) in a Cases domain. A template must
%% have a unique name within a domain, and it must reference existing field
%% IDs and layout IDs. Additionally, multiple fields with same IDs are not
%% allowed within the same Template.
%% allowed within the same Template. A template can be either Active or
%% Inactive, as indicated by its status. Inactive templates cannot be used to
%% create cases.
create_template(Client, DomainId, Input) ->
create_template(Client, DomainId, Input, []).
create_template(Client, DomainId, Input0, Options0) ->
Expand Down Expand Up @@ -589,7 +591,8 @@ list_templates(Client, DomainId, Input0, Options0) ->

QueryMapping = [
{<<"maxResults">>, <<"maxResults">>},
{<<"nextToken">>, <<"nextToken">>}
{<<"nextToken">>, <<"nextToken">>},
{<<"status">>, <<"status">>}
],
{Query_, Input} = aws_request:build_headers(QueryMapping, Input2),
request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode).
Expand Down Expand Up @@ -803,9 +806,10 @@ update_layout(Client, DomainId, LayoutId, Input0, Options0) ->
%% @doc Updates the attributes of an existing template.
%%
%% The template attributes that can be modified include `name',
%% `description', `layouts', and `requiredFields'. At least one of these
%% attributes must not be null. If a null value is provided for a given
%% attribute, that attribute is ignored and its current value is preserved.
%% `description', `layoutConfiguration', `requiredFields', and `status'. At
%% least one of these attributes must not be null. If a null value is
%% provided for a given attribute, that attribute is ignored and its current
%% value is preserved.
update_template(Client, DomainId, TemplateId, Input) ->
update_template(Client, DomainId, TemplateId, Input, []).
update_template(Client, DomainId, TemplateId, Input0, Options0) ->
Expand Down
128 changes: 128 additions & 0 deletions src/aws_groundstation.erl
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,24 @@
create_config/3,
create_dataflow_endpoint_group/2,
create_dataflow_endpoint_group/3,
create_ephemeris/2,
create_ephemeris/3,
create_mission_profile/2,
create_mission_profile/3,
delete_config/4,
delete_config/5,
delete_dataflow_endpoint_group/3,
delete_dataflow_endpoint_group/4,
delete_ephemeris/3,
delete_ephemeris/4,
delete_mission_profile/3,
delete_mission_profile/4,
describe_contact/2,
describe_contact/4,
describe_contact/5,
describe_ephemeris/2,
describe_ephemeris/4,
describe_ephemeris/5,
get_config/3,
get_config/5,
get_config/6,
Expand All @@ -48,6 +55,8 @@
list_dataflow_endpoint_groups/1,
list_dataflow_endpoint_groups/3,
list_dataflow_endpoint_groups/4,
list_ephemerides/2,
list_ephemerides/3,
list_ground_stations/1,
list_ground_stations/3,
list_ground_stations/4,
Expand All @@ -68,6 +77,8 @@
untag_resource/4,
update_config/4,
update_config/5,
update_ephemeris/3,
update_ephemeris/4,
update_mission_profile/3,
update_mission_profile/4]).

Expand Down Expand Up @@ -156,6 +167,29 @@ create_dataflow_endpoint_group(Client, Input0, Options0) ->

request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode).

%% @doc Creates an Ephemeris with the specified `EphemerisData'.
create_ephemeris(Client, Input) ->
create_ephemeris(Client, Input, []).
create_ephemeris(Client, Input0, Options0) ->
Method = post,
Path = ["/ephemeris"],
SuccessStatusCode = 200,
Options = [{send_body_as_binary, false},
{receive_body_as_binary, false}
| Options0],


Headers = [],
Input1 = Input0,

CustomHeaders = [],
Input2 = Input1,

Query_ = [],
Input = Input2,

request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode).

%% @doc Creates a mission profile.
%%
%% `dataflowEdges' is a list of lists of strings. Each lower level list of
Expand Down Expand Up @@ -228,6 +262,29 @@ delete_dataflow_endpoint_group(Client, DataflowEndpointGroupId, Input0, Options0

request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode).

%% @doc Deletes an ephemeris
delete_ephemeris(Client, EphemerisId, Input) ->
delete_ephemeris(Client, EphemerisId, Input, []).
delete_ephemeris(Client, EphemerisId, Input0, Options0) ->
Method = delete,
Path = ["/ephemeris/", aws_util:encode_uri(EphemerisId), ""],
SuccessStatusCode = 200,
Options = [{send_body_as_binary, false},
{receive_body_as_binary, false}
| Options0],


Headers = [],
Input1 = Input0,

CustomHeaders = [],
Input2 = Input1,

Query_ = [],
Input = Input2,

request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode).

%% @doc Deletes a mission profile.
delete_mission_profile(Client, MissionProfileId, Input) ->
delete_mission_profile(Client, MissionProfileId, Input, []).
Expand Down Expand Up @@ -274,6 +331,29 @@ describe_contact(Client, ContactId, QueryMap, HeadersMap, Options0)

request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode).

%% @doc Describes an existing ephemeris.
describe_ephemeris(Client, EphemerisId)
when is_map(Client) ->
describe_ephemeris(Client, EphemerisId, #{}, #{}).

describe_ephemeris(Client, EphemerisId, QueryMap, HeadersMap)
when is_map(Client), is_map(QueryMap), is_map(HeadersMap) ->
describe_ephemeris(Client, EphemerisId, QueryMap, HeadersMap, []).

describe_ephemeris(Client, EphemerisId, QueryMap, HeadersMap, Options0)
when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) ->
Path = ["/ephemeris/", aws_util:encode_uri(EphemerisId), ""],
SuccessStatusCode = 200,
Options = [{send_body_as_binary, false},
{receive_body_as_binary, false}
| Options0],

Headers = [],

Query_ = [],

request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode).

%% @doc Returns `Config' information.
%%
%% Only one `Config' response can be returned.
Expand Down Expand Up @@ -473,6 +553,31 @@ list_dataflow_endpoint_groups(Client, QueryMap, HeadersMap, Options0)

request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode).

%% @doc List existing ephemerides.
list_ephemerides(Client, Input) ->
list_ephemerides(Client, Input, []).
list_ephemerides(Client, Input0, Options0) ->
Method = post,
Path = ["/ephemerides"],
SuccessStatusCode = 200,
Options = [{send_body_as_binary, false},
{receive_body_as_binary, false}
| Options0],


Headers = [],
Input1 = Input0,

CustomHeaders = [],
Input2 = Input1,

QueryMapping = [
{<<"maxResults">>, <<"maxResults">>},
{<<"nextToken">>, <<"nextToken">>}
],
{Query_, Input} = aws_request:build_headers(QueryMapping, Input2),
request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode).

%% @doc Returns a list of ground stations.
list_ground_stations(Client)
when is_map(Client) ->
Expand Down Expand Up @@ -677,6 +782,29 @@ update_config(Client, ConfigId, ConfigType, Input0, Options0) ->

request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode).

%% @doc Updates an existing ephemeris
update_ephemeris(Client, EphemerisId, Input) ->
update_ephemeris(Client, EphemerisId, Input, []).
update_ephemeris(Client, EphemerisId, Input0, Options0) ->
Method = put,
Path = ["/ephemeris/", aws_util:encode_uri(EphemerisId), ""],
SuccessStatusCode = 200,
Options = [{send_body_as_binary, false},
{receive_body_as_binary, false}
| Options0],


Headers = [],
Input1 = Input0,

CustomHeaders = [],
Input2 = Input1,

Query_ = [],
Input = Input2,

request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode).

%% @doc Updates a mission profile.
%%
%% Updating a mission profile will not update the execution parameters for
Expand Down
41 changes: 28 additions & 13 deletions src/aws_transcribe_streaming.erl
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
%% WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
%% See https://github.com/aws-beam/aws-codegen for more details.

%% @doc Operations and objects for transcribing streaming speech to text.
%% @doc Amazon Transcribe streaming offers two types of real-time
%% transcription: Standard and Medical.
%%
%% <ul> <li> Standard transcriptions are the most common option. Refer to for
%% details.
%%
%% </li> <li> Medical transcriptions are tailored to medical professionals
%% and incorporate medical terms. A common use case for this service is
%% transcribing doctor-patient dialogue in real time, so doctors can focus on
%% their patient instead of taking notes. Refer to for details.
%%
%% </li> </ul>
-module(aws_transcribe_streaming).

-export([start_medical_stream_transcription/2,
Expand All @@ -15,9 +26,12 @@
%% API
%%====================================================================

%% @doc Starts a bidirectional HTTP/2 stream where audio is streamed to
%% Amazon Transcribe Medical and the transcription results are streamed to
%% your application.
%% @doc Starts a bidirectional HTTP/2 or WebSocket stream where audio is
%% streamed to Amazon Transcribe Medical and the transcription results are
%% streamed to your application.
%%
%% For more information on streaming with Amazon Transcribe Medical, see
%% Transcribing streaming audio.
start_medical_stream_transcription(Client, Input) ->
start_medical_stream_transcription(Client, Input, []).
start_medical_stream_transcription(Client, Input0, Options0) ->
Expand Down Expand Up @@ -79,21 +93,22 @@ start_medical_stream_transcription(Client, Input0, Options0) ->
Result
end.

%% @doc Starts a bidirectional HTTP/2 stream where audio is streamed to
%% Amazon Transcribe and the transcription results are streamed to your
%% application.
%% @doc Starts a bidirectional HTTP/2 or WebSocket stream where audio is
%% streamed to Amazon Transcribe and the transcription results are streamed
%% to your application.
%%
%% The following are encoded as HTTP/2 headers:
%% The following are encoded as headers:
%%
%% <ul> <li> x-amzn-transcribe-language-code
%% <ul> <li> language-code
%%
%% </li> <li> x-amzn-transcribe-media-encoding
%% </li> <li> media-encoding
%%
%% </li> <li> x-amzn-transcribe-sample-rate
%% </li> <li> sample-rate
%%
%% </li> <li> x-amzn-transcribe-session-id
%% </li> <li> session-id
%%
%% </li> </ul> See the SDK for Go API Reference for more detail.
%% </li> </ul> For more information on streaming with Amazon Transcribe, see
%% Transcribing streaming audio.
start_stream_transcription(Client, Input) ->
start_stream_transcription(Client, Input, []).
start_stream_transcription(Client, Input0, Options0) ->
Expand Down

0 comments on commit 0aff274

Please sign in to comment.