Skip to content

Commit

Permalink
Update services based on release-2024-10-14 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Oct 15, 2024
1 parent 066f808 commit ae20c64
Show file tree
Hide file tree
Showing 6 changed files with 499 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .latest-tag-aws-sdk-go
Original file line number Diff line number Diff line change
@@ -1 +1 @@
release-2024-10-11
release-2024-10-14
21 changes: 19 additions & 2 deletions src/aws_codepipeline.erl
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,8 @@
%% Example:
%% failure_conditions() :: #{
%% <<"conditions">> => list(condition()()),
%% <<"result">> => list(any())
%% <<"result">> => list(any()),
%% <<"retryConfiguration">> => retry_configuration()
%% }
-type failure_conditions() :: #{binary() => any()}.

Expand All @@ -652,6 +653,14 @@
%% }
-type stage_context() :: #{binary() => any()}.

%% Example:
%% retry_stage_metadata() :: #{
%% <<"autoStageRetryAttempt">> => integer(),
%% <<"latestRetryTrigger">> => list(any()),
%% <<"manualStageRetryAttempt">> => integer()
%% }
-type retry_stage_metadata() :: #{binary() => any()}.

%% Example:
%% enable_stage_transition_input() :: #{
%% <<"pipelineName">> := string(),
Expand Down Expand Up @@ -903,6 +912,12 @@
%% }
-type resource_not_found_exception() :: #{binary() => any()}.

%% Example:
%% retry_configuration() :: #{
%% <<"retryMode">> => list(any())
%% }
-type retry_configuration() :: #{binary() => any()}.

%% Example:
%% input_artifact() :: #{
%% <<"name">> => string()
Expand Down Expand Up @@ -1675,6 +1690,7 @@
%% <<"latestExecution">> => stage_execution(),
%% <<"onFailureConditionState">> => stage_condition_state(),
%% <<"onSuccessConditionState">> => stage_condition_state(),
%% <<"retryStageMetadata">> => retry_stage_metadata(),
%% <<"stageName">> => string()
%% }
-type stage_state() :: #{binary() => any()}.
Expand Down Expand Up @@ -2654,7 +2670,8 @@ list_pipelines(Client, Input, Options)
request(Client, <<"ListPipelines">>, Input, Options).

%% @doc Lists the rule executions that have occurred in a pipeline configured
%% for conditions with rules.
%% for conditions
%% with rules.
-spec list_rule_executions(aws_client:aws_client(), list_rule_executions_input()) ->
{ok, list_rule_executions_output(), tuple()} |
{error, any()} |
Expand Down
30 changes: 29 additions & 1 deletion src/aws_mailmanager.erl
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@

%% Example:
%% get_archive_message_response() :: #{
%% <<"MessageDownloadLink">> => string()
%% <<"Envelope">> => envelope(),
%% <<"MessageDownloadLink">> => string(),
%% <<"Metadata">> => metadata()
%% }
-type get_archive_message_response() :: #{binary() => any()}.

Expand Down Expand Up @@ -353,6 +355,7 @@
%% <<"ExportDestinationConfiguration">> := list(),
%% <<"Filters">> => archive_filters(),
%% <<"FromTimestamp">> := [non_neg_integer()],
%% <<"IncludeMetadata">> => [boolean()],
%% <<"MaxResults">> => integer(),
%% <<"ToTimestamp">> := [non_neg_integer()]
%% }
Expand All @@ -373,6 +376,19 @@
%% }
-type list_addon_instances_response() :: #{binary() => any()}.

%% Example:
%% metadata() :: #{
%% <<"IngressPointId">> => string(),
%% <<"RuleSetId">> => string(),
%% <<"SenderHostname">> => [string()],
%% <<"SenderIpAddress">> => string(),
%% <<"Timestamp">> => [non_neg_integer()],
%% <<"TlsCipherSuite">> => [string()],
%% <<"TlsProtocol">> => [string()],
%% <<"TrafficPolicyId">> => string()
%% }
-type metadata() :: #{binary() => any()}.

%% Example:
%% list_traffic_policies_response() :: #{
%% <<"NextToken">> => string(),
Expand Down Expand Up @@ -647,6 +663,14 @@
%% }
-type list_addon_subscriptions_request() :: #{binary() => any()}.

%% Example:
%% envelope() :: #{
%% <<"From">> => [string()],
%% <<"Helo">> => [string()],
%% <<"To">> => list([string()]())
%% }
-type envelope() :: #{binary() => any()}.

%% Example:
%% tag() :: #{
%% <<"Key">> => string(),
Expand All @@ -672,12 +696,16 @@
%% <<"ArchivedMessageId">> => string(),
%% <<"Cc">> => [string()],
%% <<"Date">> => [string()],
%% <<"Envelope">> => envelope(),
%% <<"From">> => [string()],
%% <<"HasAttachments">> => [boolean()],
%% <<"InReplyTo">> => [string()],
%% <<"IngressPointId">> => string(),
%% <<"MessageId">> => [string()],
%% <<"ReceivedHeaders">> => list([string()]()),
%% <<"ReceivedTimestamp">> => [non_neg_integer()],
%% <<"SenderHostname">> => [string()],
%% <<"SenderIpAddress">> => string(),
%% <<"Subject">> => [string()],
%% <<"To">> => [string()],
%% <<"XMailer">> => [string()],
Expand Down
83 changes: 58 additions & 25 deletions src/aws_securitylake.erl
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@
%%
%% Security Lake automates the collection of security-related log and event
%% data from
%% integrated Amazon Web Services and third-party services. It also helps you
%% manage
%% integrated Amazon Web Services services and third-party services. It also
%% helps you manage
%% the lifecycle of data with customizable retention and replication
%% settings. Security Lake
%% converts ingested data into Apache Parquet format and a standard
%% open-source schema called
%% the Open Cybersecurity Schema Framework (OCSF).
%%
%% Other Amazon Web Services and third-party services can subscribe to the
%% data that's stored in Security Lake for
%% Other Amazon Web Services services and third-party services can subscribe
%% to the data that's stored in Security Lake for
%% incident response and security data analytics.
-module(aws_securitylake).

Expand Down Expand Up @@ -1074,20 +1074,20 @@
%% API
%%====================================================================

%% @doc Adds a natively supported Amazon Web Service as an Amazon Security
%% Lake source.
%% @doc Adds a natively supported Amazon Web Services service as an Amazon
%% Security Lake source.
%%
%% Enables
%% source types for member accounts in required Amazon Web Services Regions,
%% based on the
%% parameters you specify. You can choose any source type in any Region for
%% either accounts
%% that are part of a trusted organization or standalone accounts. Once you
%% add an Amazon Web Service as a source, Security Lake starts collecting
%% logs and events from it.
%% add an Amazon Web Services service as a source, Security Lake starts
%% collecting logs and events from it.
%%
%% You can use this API only to enable natively supported Amazon Web Services
%% as a
%% services as a
%% source. Use `CreateCustomLogSource' to enable data collection from a
%% custom
%% source.
Expand Down Expand Up @@ -1189,7 +1189,8 @@ create_custom_log_source(Client, Input0, Options0) ->
%% configurations.
%%
%% When you enable Security Lake, it starts ingesting security data after the
%% `CreateAwsLogSource' call. This includes ingesting security data from
%% `CreateAwsLogSource' call and after you create subscribers using the
%% `CreateSubscriber' API. This includes ingesting security data from
%% sources, storing data, and making data accessible to subscribers. Security
%% Lake also enables
%% all the existing settings and resources that it stores or maintains for
Expand Down Expand Up @@ -1234,6 +1235,9 @@ create_data_lake(Client, Input0, Options0) ->
%% @doc Creates the specified notification subscription in Amazon Security
%% Lake for the organization
%% you specify.
%%
%% The notification subscription is created for exceptions that cannot be
%% resolved by Security Lake automatically.
-spec create_data_lake_exception_subscription(aws_client:aws_client(), create_data_lake_exception_subscription_request()) ->
{ok, create_data_lake_exception_subscription_response(), tuple()} |
{error, any()} |
Expand Down Expand Up @@ -1306,12 +1310,12 @@ create_data_lake_organization_configuration(Client, Input0, Options0) ->

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

%% @doc Creates a subscription permission for accounts that are already
%% enabled in
%% Amazon Security Lake.
%% @doc Creates a subscriber for accounts that are already enabled in Amazon
%% Security Lake.
%%
%% You can create a subscriber with access to data in the current Amazon Web
%% Services Region.
%% You can
%% create a subscriber with access to data in the current Amazon Web Services
%% Region.
-spec create_subscriber(aws_client:aws_client(), create_subscriber_request()) ->
{ok, create_subscriber_response(), tuple()} |
{error, any()} |
Expand Down Expand Up @@ -1384,8 +1388,8 @@ create_subscriber_notification(Client, SubscriberId, Input0, Options0) ->

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

%% @doc Removes a natively supported Amazon Web Service as an Amazon Security
%% Lake source.
%% @doc Removes a natively supported Amazon Web Services service as an Amazon
%% Security Lake source.
%%
%% You
%% can remove a source for one or more Regions. When you remove the source,
Expand Down Expand Up @@ -1639,7 +1643,7 @@ delete_subscriber(Client, SubscriberId, Input0, Options0) ->

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

%% @doc Deletes the specified notification subscription in Amazon Security
%% @doc Deletes the specified subscription notification in Amazon Security
%% Lake for the organization
%% you specify.
-spec delete_subscriber_notification(aws_client:aws_client(), binary() | list(), delete_subscriber_notification_request()) ->
Expand Down Expand Up @@ -1715,8 +1719,8 @@ deregister_data_lake_delegated_administrator(Client, Input0, Options0) ->

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

%% @doc Retrieves the details of exception notifications for the account in
%% Amazon Security Lake.
%% @doc Retrieves the protocol and endpoint that were provided when
%% subscribing to Amazon SNS topics for exception notifications.
-spec get_data_lake_exception_subscription(aws_client:aws_client()) ->
{ok, get_data_lake_exception_subscription_response(), tuple()} |
{error, any()} |
Expand Down Expand Up @@ -1954,7 +1958,7 @@ list_data_lakes(Client, QueryMap, HeadersMap, Options0)

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

%% @doc Retrieves the log sources in the current Amazon Web Services Region.
%% @doc Retrieves the log sources.
-spec list_log_sources(aws_client:aws_client(), list_log_sources_request()) ->
{ok, list_log_sources_response(), tuple()} |
{error, any()} |
Expand Down Expand Up @@ -1988,7 +1992,7 @@ list_log_sources(Client, Input0, Options0) ->

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

%% @doc List all subscribers for the specific Amazon Security Lake account
%% @doc Lists all subscribers for the specific Amazon Security Lake account
%% ID.
%%
%% You can retrieve a list
Expand Down Expand Up @@ -2204,10 +2208,39 @@ untag_resource(Client, ResourceArn, Input0, Options0) ->
{Query_, Input} = aws_request:build_headers(QueryMapping, Input2),
request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode).

%% @doc Specifies where to store your security data and for how long.
%% @doc You can use `UpdateDataLake' to specify where to store your
%% security data, how it should
%% be encrypted at rest and for how long.
%%
%% You can add a Rollup
%% Region:
%% https://docs.aws.amazon.com/security-lake/latest/userguide/manage-regions.html#add-rollup-region
%% to consolidate data from multiple Amazon Web Services Regions, replace
%% default encryption (SSE-S3) with Customer Manged Key:
%% https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk,
%% or specify transition and expiration actions through storage Lifecycle
%% management:
%% https://docs.aws.amazon.com/security-lake/latest/userguide/lifecycle-management.html.
%% The `UpdateDataLake' API works as an &quot;upsert&quot; operation that
%% performs an insert if the specified item or record does not exist, or an
%% update if it
%% already exists. Security Lake securely stores your data at rest using
%% Amazon Web Services encryption solutions. For more details, see Data
%% protection in Amazon Security Lake:
%% https://docs.aws.amazon.com/security-lake/latest/userguide/data-protection.html.
%%
%% For example, omitting the key `encryptionConfiguration' from a Region
%% that is
%% included in an update call that currently uses KMS will leave that
%% Region's KMS key in
%% place, but specifying `encryptionConfiguration: {kmsKeyId:
%% 'S3_MANAGED_KEY'}'
%% for that same Region will reset the key to `S3-managed'.
%%
%% You can add a rollup
%% Region to consolidate data from multiple Amazon Web Services Regions.
%% For more details about lifecycle management and how to update retention
%% settings for one or more Regions after enabling Security Lake, see the
%% Amazon Security Lake User Guide:
%% https://docs.aws.amazon.com/security-lake/latest/userguide/lifecycle-management.html.
-spec update_data_lake(aws_client:aws_client(), update_data_lake_request()) ->
{ok, update_data_lake_response(), tuple()} |
{error, any()} |
Expand Down
Loading

0 comments on commit ae20c64

Please sign in to comment.