Skip to content

Commit

Permalink
This release adds a new API ListInsightsMetricData to retrieve metric…
Browse files Browse the repository at this point in the history
… data from CloudTrail Insights.

GetMetricDataV2 now supports 3 groupings
Increase BatchGetRecord limits from 10 items to 100 items
Removed invalid and unnecessary default values.
Allow support for Snowflake as a Kinesis Data Firehose delivery destination.
Increasing TestMapping inputFileContent file size limit to 5MB and adding file size limit 250KB for TestParsing input file. This release also includes exposing InternalServerException for Tag APIs.
  • Loading branch information
aws-sdk-cpp-automation committed Jan 18, 2024
1 parent 9a45f62 commit f70666e
Show file tree
Hide file tree
Showing 52 changed files with 7,593 additions and 755 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.245
1.11.246
4 changes: 2 additions & 2 deletions generated/src/aws-cpp-sdk-b2bi/include/aws/b2bi/B2BIClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -664,8 +664,8 @@ namespace B2BI
}

/**
* <p>Parses the input EDI (electronic data interchange) file.</p><p><h3>See
* Also:</h3> <a
* <p>Parses the input EDI (electronic data interchange) file. The input file has a
* file size limit of 250 KB.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/TestParsing">AWS
* API Reference</a></p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,10 +439,11 @@ namespace CloudTrail

/**
* <p> Disables Lake query federation on the specified event data store. When you
* disable federation, CloudTrail removes the metadata associated with the
* federated event data store in the Glue Data Catalog and removes registration for
* the federation role ARN and event data store in Lake Formation. No CloudTrail
* Lake data is deleted when you disable federation. </p><p><h3>See Also:</h3> <a
* disable federation, CloudTrail disables the integration with Glue, Lake
* Formation, and Amazon Athena. After disabling Lake query federation, you can no
* longer query your event data in Amazon Athena.</p> <p>No CloudTrail Lake data is
* deleted when you disable federation and you can continue to run queries in
* CloudTrail Lake.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DisableFederation">AWS
* API Reference</a></p>
*/
Expand Down Expand Up @@ -474,13 +475,14 @@ namespace CloudTrail
* Catalog</a> and run SQL queries against your event data using Amazon Athena. The
* table metadata stored in the Glue Data Catalog lets the Athena query engine know
* how to find, read, and process the data that you want to query.</p> <p>When you
* enable Lake query federation, CloudTrail creates a federated database named
* enable Lake query federation, CloudTrail creates a managed database named
* <code>aws:cloudtrail</code> (if the database doesn't already exist) and a
* federated table in the Glue Data Catalog. The event data store ID is used for
* the table name. CloudTrail registers the role ARN and event data store in <a
* href="https://docs.aws.amazon.com/lake-formation/latest/dg/how-it-works.html">Lake
* Formation</a>, the service responsible for revoking or granting permissions to
* the federated resources in the Glue Data Catalog. </p> <p>For more information
* managed federated table in the Glue Data Catalog. The event data store ID is
* used for the table name. CloudTrail registers the role ARN and event data store
* in <a
* href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-federation-lake-formation.html">Lake
* Formation</a>, the service responsible for allowing fine-grained access control
* of the federated resources in the Glue Data Catalog.</p> <p>For more information
* about Lake query federation, see <a
* href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-federation.html">Federate
* an event data store</a>.</p><p><h3>See Also:</h3> <a
Expand Down Expand Up @@ -871,6 +873,44 @@ namespace CloudTrail
return SubmitAsync(&CloudTrailClient::ListImports, request, handler, context);
}

/**
* <p>Returns Insights metrics data for trails that have enabled Insights. The
* request must include the <code>EventSource</code>, <code>EventName</code>, and
* <code>InsightType</code> parameters.</p> <p>If the <code>InsightType</code> is
* set to <code>ApiErrorRateInsight</code>, the request must also include the
* <code>ErrorCode</code> parameter.</p> <p>The following are the available time
* periods for <code>ListInsightsMetricData</code>. Each cutoff is inclusive.</p>
* <ul> <li> <p>Data points with a period of 60 seconds (1-minute) are available
* for 15 days.</p> </li> <li> <p>Data points with a period of 300 seconds
* (5-minute) are available for 63 days.</p> </li> <li> <p>Data points with a
* period of 3600 seconds (1 hour) are available for 90 days.</p> </li> </ul>
* <p>Access to the <code>ListInsightsMetricData</code> API operation is linked to
* the <code>cloudtrail:LookupEvents</code> action. To use this operation, you must
* have permissions to perform the <code>cloudtrail:LookupEvents</code>
* action.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListInsightsMetricData">AWS
* API Reference</a></p>
*/
virtual Model::ListInsightsMetricDataOutcome ListInsightsMetricData(const Model::ListInsightsMetricDataRequest& request) const;

/**
* A Callable wrapper for ListInsightsMetricData that returns a future to the operation so that it can be executed in parallel to other requests.
*/
template<typename ListInsightsMetricDataRequestT = Model::ListInsightsMetricDataRequest>
Model::ListInsightsMetricDataOutcomeCallable ListInsightsMetricDataCallable(const ListInsightsMetricDataRequestT& request) const
{
return SubmitCallable(&CloudTrailClient::ListInsightsMetricData, request);
}

/**
* An Async wrapper for ListInsightsMetricData that queues the request into a thread executor and triggers associated callback when operation has finished.
*/
template<typename ListInsightsMetricDataRequestT = Model::ListInsightsMetricDataRequest>
void ListInsightsMetricDataAsync(const ListInsightsMetricDataRequestT& request, const ListInsightsMetricDataResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
{
return SubmitAsync(&CloudTrailClient::ListInsightsMetricData, request, handler, context);
}

/**
* <p>Returns all public keys whose private keys were used to sign the digest files
* within the specified time range. The public key is needed to validate digest
Expand Down Expand Up @@ -1513,13 +1553,13 @@ namespace CloudTrail
* <code>BillingMode</code> is set to <code>FIXED_RETENTION_PRICING</code>. By
* default, <code>TerminationProtection</code> is enabled.</p> <p>For event data
* stores for CloudTrail events, <code>AdvancedEventSelectors</code> includes or
* excludes management, data, or Insights events in your event data store. For more
* excludes management or data events in your event data store. For more
* information about <code>AdvancedEventSelectors</code>, see <a
* href="https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedEventSelector.html">AdvancedEventSelectors</a>.</p>
* <p> For event data stores for Config configuration items, Audit Manager
* evidence, or non-Amazon Web Services events, <code>AdvancedEventSelectors</code>
* includes events of that type in your event data store.</p><p><h3>See Also:</h3>
* <a
* <p> For event data stores for CloudTrail Insights events, Config configuration
* items, Audit Manager evidence, or non-Amazon Web Services events,
* <code>AdvancedEventSelectors</code> includes events of that type in your event
* data store.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateEventDataStore">AWS
* API Reference</a></p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include <aws/cloudtrail/model/ListEventDataStoresResult.h>
#include <aws/cloudtrail/model/ListImportFailuresResult.h>
#include <aws/cloudtrail/model/ListImportsResult.h>
#include <aws/cloudtrail/model/ListInsightsMetricDataResult.h>
#include <aws/cloudtrail/model/ListPublicKeysResult.h>
#include <aws/cloudtrail/model/ListQueriesResult.h>
#include <aws/cloudtrail/model/ListTagsResult.h>
Expand Down Expand Up @@ -133,6 +134,7 @@ namespace Aws
class ListEventDataStoresRequest;
class ListImportFailuresRequest;
class ListImportsRequest;
class ListInsightsMetricDataRequest;
class ListPublicKeysRequest;
class ListQueriesRequest;
class ListTagsRequest;
Expand Down Expand Up @@ -184,6 +186,7 @@ namespace Aws
typedef Aws::Utils::Outcome<ListEventDataStoresResult, CloudTrailError> ListEventDataStoresOutcome;
typedef Aws::Utils::Outcome<ListImportFailuresResult, CloudTrailError> ListImportFailuresOutcome;
typedef Aws::Utils::Outcome<ListImportsResult, CloudTrailError> ListImportsOutcome;
typedef Aws::Utils::Outcome<ListInsightsMetricDataResult, CloudTrailError> ListInsightsMetricDataOutcome;
typedef Aws::Utils::Outcome<ListPublicKeysResult, CloudTrailError> ListPublicKeysOutcome;
typedef Aws::Utils::Outcome<ListQueriesResult, CloudTrailError> ListQueriesOutcome;
typedef Aws::Utils::Outcome<ListTagsResult, CloudTrailError> ListTagsOutcome;
Expand Down Expand Up @@ -235,6 +238,7 @@ namespace Aws
typedef std::future<ListEventDataStoresOutcome> ListEventDataStoresOutcomeCallable;
typedef std::future<ListImportFailuresOutcome> ListImportFailuresOutcomeCallable;
typedef std::future<ListImportsOutcome> ListImportsOutcomeCallable;
typedef std::future<ListInsightsMetricDataOutcome> ListInsightsMetricDataOutcomeCallable;
typedef std::future<ListPublicKeysOutcome> ListPublicKeysOutcomeCallable;
typedef std::future<ListQueriesOutcome> ListQueriesOutcomeCallable;
typedef std::future<ListTagsOutcome> ListTagsOutcomeCallable;
Expand Down Expand Up @@ -289,6 +293,7 @@ namespace Aws
typedef std::function<void(const CloudTrailClient*, const Model::ListEventDataStoresRequest&, const Model::ListEventDataStoresOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListEventDataStoresResponseReceivedHandler;
typedef std::function<void(const CloudTrailClient*, const Model::ListImportFailuresRequest&, const Model::ListImportFailuresOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListImportFailuresResponseReceivedHandler;
typedef std::function<void(const CloudTrailClient*, const Model::ListImportsRequest&, const Model::ListImportsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListImportsResponseReceivedHandler;
typedef std::function<void(const CloudTrailClient*, const Model::ListInsightsMetricDataRequest&, const Model::ListInsightsMetricDataOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListInsightsMetricDataResponseReceivedHandler;
typedef std::function<void(const CloudTrailClient*, const Model::ListPublicKeysRequest&, const Model::ListPublicKeysOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListPublicKeysResponseReceivedHandler;
typedef std::function<void(const CloudTrailClient*, const Model::ListQueriesRequest&, const Model::ListQueriesOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListQueriesResponseReceivedHandler;
typedef std::function<void(const CloudTrailClient*, const Model::ListTagsRequest&, const Model::ListTagsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListTagsResponseReceivedHandler;
Expand Down
Loading

0 comments on commit f70666e

Please sign in to comment.