From 0aff274b50e30c1909f182c659436205b069e441 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 10 Nov 2022 02:35:52 +0000 Subject: [PATCH] Update services based on v1.44.134 of AWS Go SDK Reference: https://github.com/aws/aws-sdk-go/releases/tag/v1.44.134 --- .latest-tag-aws-sdk-go | 2 +- src/aws_connectcases.erl | 16 ++-- src/aws_groundstation.erl | 128 +++++++++++++++++++++++++++++++ src/aws_transcribe_streaming.erl | 41 ++++++---- 4 files changed, 167 insertions(+), 20 deletions(-) diff --git a/.latest-tag-aws-sdk-go b/.latest-tag-aws-sdk-go index 3ffe49d3..0a777924 100644 --- a/.latest-tag-aws-sdk-go +++ b/.latest-tag-aws-sdk-go @@ -1 +1 @@ -v1.44.133 +v1.44.134 diff --git a/src/aws_connectcases.erl b/src/aws_connectcases.erl index 9ce80a94..bc338043 100644 --- a/src/aws_connectcases.erl +++ b/src/aws_connectcases.erl @@ -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) -> @@ -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). @@ -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) -> diff --git a/src/aws_groundstation.erl b/src/aws_groundstation.erl index 4c0a44a9..b56cf90f 100644 --- a/src/aws_groundstation.erl +++ b/src/aws_groundstation.erl @@ -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, @@ -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, @@ -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]). @@ -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 @@ -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, []). @@ -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. @@ -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) -> @@ -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 diff --git a/src/aws_transcribe_streaming.erl b/src/aws_transcribe_streaming.erl index d8328b2a..c13e67f8 100644 --- a/src/aws_transcribe_streaming.erl +++ b/src/aws_transcribe_streaming.erl @@ -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. +%% +%% -module(aws_transcribe_streaming). -export([start_medical_stream_transcription/2, @@ -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) -> @@ -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: %% -%% 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) ->