Skip to content

Commit

Permalink
Adding a new option "parameters" for data plane api ExecuteQuery to s…
Browse files Browse the repository at this point in the history
…upport running parameterized query via SDK.

Adds support for new options on GraphqlAPIs, Resolvers and  Data Sources for emitting Amazon CloudWatch metrics for enhanced monitoring of AppSync APIs.
This release enables PutMetricData API request payload compression by default.
This release adds bill contact support for RegisterDomain, TransferDomain, UpdateDomainContact and GetDomainDetail API.
  • Loading branch information
aws-sdk-cpp-automation committed Feb 12, 2024
1 parent 39b789d commit c62954c
Show file tree
Hide file tree
Showing 72 changed files with 3,153 additions and 475 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.262
1.11.263
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <aws/appsync/model/ApiCachingBehavior.h>
#include <aws/appsync/model/ApiCacheType.h>
#include <aws/appsync/model/ApiCacheStatus.h>
#include <aws/appsync/model/CacheHealthMetricsConfig.h>
#include <utility>

namespace Aws
Expand Down Expand Up @@ -332,6 +333,79 @@ namespace Model
*/
inline ApiCache& WithStatus(ApiCacheStatus&& value) { SetStatus(std::move(value)); return *this;}


/**
* <p>Controls how cache health metrics will be emitted to CloudWatch. Cache health
* metrics include:</p> <ul> <li> <p>NetworkBandwidthOutAllowanceExceeded: The
* network packets dropped because the throughput exceeded the aggregated bandwidth
* limit. This is useful for diagnosing bottlenecks in a cache configuration.</p>
* </li> <li> <p>EngineCPUUtilization: The CPU utilization (percentage) allocated
* to the Redis process. This is useful for diagnosing bottlenecks in a cache
* configuration.</p> </li> </ul> <p>Metrics will be recorded by API ID. You can
* set the value to <code>ENABLED</code> or <code>DISABLED</code>.</p>
*/
inline const CacheHealthMetricsConfig& GetHealthMetricsConfig() const{ return m_healthMetricsConfig; }

/**
* <p>Controls how cache health metrics will be emitted to CloudWatch. Cache health
* metrics include:</p> <ul> <li> <p>NetworkBandwidthOutAllowanceExceeded: The
* network packets dropped because the throughput exceeded the aggregated bandwidth
* limit. This is useful for diagnosing bottlenecks in a cache configuration.</p>
* </li> <li> <p>EngineCPUUtilization: The CPU utilization (percentage) allocated
* to the Redis process. This is useful for diagnosing bottlenecks in a cache
* configuration.</p> </li> </ul> <p>Metrics will be recorded by API ID. You can
* set the value to <code>ENABLED</code> or <code>DISABLED</code>.</p>
*/
inline bool HealthMetricsConfigHasBeenSet() const { return m_healthMetricsConfigHasBeenSet; }

/**
* <p>Controls how cache health metrics will be emitted to CloudWatch. Cache health
* metrics include:</p> <ul> <li> <p>NetworkBandwidthOutAllowanceExceeded: The
* network packets dropped because the throughput exceeded the aggregated bandwidth
* limit. This is useful for diagnosing bottlenecks in a cache configuration.</p>
* </li> <li> <p>EngineCPUUtilization: The CPU utilization (percentage) allocated
* to the Redis process. This is useful for diagnosing bottlenecks in a cache
* configuration.</p> </li> </ul> <p>Metrics will be recorded by API ID. You can
* set the value to <code>ENABLED</code> or <code>DISABLED</code>.</p>
*/
inline void SetHealthMetricsConfig(const CacheHealthMetricsConfig& value) { m_healthMetricsConfigHasBeenSet = true; m_healthMetricsConfig = value; }

/**
* <p>Controls how cache health metrics will be emitted to CloudWatch. Cache health
* metrics include:</p> <ul> <li> <p>NetworkBandwidthOutAllowanceExceeded: The
* network packets dropped because the throughput exceeded the aggregated bandwidth
* limit. This is useful for diagnosing bottlenecks in a cache configuration.</p>
* </li> <li> <p>EngineCPUUtilization: The CPU utilization (percentage) allocated
* to the Redis process. This is useful for diagnosing bottlenecks in a cache
* configuration.</p> </li> </ul> <p>Metrics will be recorded by API ID. You can
* set the value to <code>ENABLED</code> or <code>DISABLED</code>.</p>
*/
inline void SetHealthMetricsConfig(CacheHealthMetricsConfig&& value) { m_healthMetricsConfigHasBeenSet = true; m_healthMetricsConfig = std::move(value); }

/**
* <p>Controls how cache health metrics will be emitted to CloudWatch. Cache health
* metrics include:</p> <ul> <li> <p>NetworkBandwidthOutAllowanceExceeded: The
* network packets dropped because the throughput exceeded the aggregated bandwidth
* limit. This is useful for diagnosing bottlenecks in a cache configuration.</p>
* </li> <li> <p>EngineCPUUtilization: The CPU utilization (percentage) allocated
* to the Redis process. This is useful for diagnosing bottlenecks in a cache
* configuration.</p> </li> </ul> <p>Metrics will be recorded by API ID. You can
* set the value to <code>ENABLED</code> or <code>DISABLED</code>.</p>
*/
inline ApiCache& WithHealthMetricsConfig(const CacheHealthMetricsConfig& value) { SetHealthMetricsConfig(value); return *this;}

/**
* <p>Controls how cache health metrics will be emitted to CloudWatch. Cache health
* metrics include:</p> <ul> <li> <p>NetworkBandwidthOutAllowanceExceeded: The
* network packets dropped because the throughput exceeded the aggregated bandwidth
* limit. This is useful for diagnosing bottlenecks in a cache configuration.</p>
* </li> <li> <p>EngineCPUUtilization: The CPU utilization (percentage) allocated
* to the Redis process. This is useful for diagnosing bottlenecks in a cache
* configuration.</p> </li> </ul> <p>Metrics will be recorded by API ID. You can
* set the value to <code>ENABLED</code> or <code>DISABLED</code>.</p>
*/
inline ApiCache& WithHealthMetricsConfig(CacheHealthMetricsConfig&& value) { SetHealthMetricsConfig(std::move(value)); return *this;}

private:

long long m_ttl;
Expand All @@ -351,6 +425,9 @@ namespace Model

ApiCacheStatus m_status;
bool m_statusHasBeenSet = false;

CacheHealthMetricsConfig m_healthMetricsConfig;
bool m_healthMetricsConfigHasBeenSet = false;
};

} // namespace Model
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/

#pragma once
#include <aws/appsync/AppSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace Aws
{
namespace AppSync
{
namespace Model
{
enum class CacheHealthMetricsConfig
{
NOT_SET,
ENABLED,
DISABLED
};

namespace CacheHealthMetricsConfigMapper
{
AWS_APPSYNC_API CacheHealthMetricsConfig GetCacheHealthMetricsConfigForName(const Aws::String& name);

AWS_APPSYNC_API Aws::String GetNameForCacheHealthMetricsConfig(CacheHealthMetricsConfig value);
} // namespace CacheHealthMetricsConfigMapper
} // namespace Model
} // namespace AppSync
} // namespace Aws
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appsync/model/ApiCachingBehavior.h>
#include <aws/appsync/model/ApiCacheType.h>
#include <aws/appsync/model/CacheHealthMetricsConfig.h>
#include <utility>

namespace Aws
Expand Down Expand Up @@ -311,6 +312,67 @@ namespace Model
*/
inline CreateApiCacheRequest& WithType(ApiCacheType&& value) { SetType(std::move(value)); return *this;}


/**
* <p>Controls how cache health metrics will be emitted to CloudWatch. Cache health
* metrics include:</p> <ul> <li> <p>NetworkBandwidthOutAllowanceExceeded: The
* number of times a specified GraphQL operation was called.</p> </li> <li>
* <p>EngineCPUUtilization: The number of GraphQL errors that occurred during a
* specified GraphQL operation.</p> </li> </ul> <p>Metrics will be recorded by API
* ID. You can set the value to <code>ENABLED</code> or <code>DISABLED</code>.</p>
*/
inline const CacheHealthMetricsConfig& GetHealthMetricsConfig() const{ return m_healthMetricsConfig; }

/**
* <p>Controls how cache health metrics will be emitted to CloudWatch. Cache health
* metrics include:</p> <ul> <li> <p>NetworkBandwidthOutAllowanceExceeded: The
* number of times a specified GraphQL operation was called.</p> </li> <li>
* <p>EngineCPUUtilization: The number of GraphQL errors that occurred during a
* specified GraphQL operation.</p> </li> </ul> <p>Metrics will be recorded by API
* ID. You can set the value to <code>ENABLED</code> or <code>DISABLED</code>.</p>
*/
inline bool HealthMetricsConfigHasBeenSet() const { return m_healthMetricsConfigHasBeenSet; }

/**
* <p>Controls how cache health metrics will be emitted to CloudWatch. Cache health
* metrics include:</p> <ul> <li> <p>NetworkBandwidthOutAllowanceExceeded: The
* number of times a specified GraphQL operation was called.</p> </li> <li>
* <p>EngineCPUUtilization: The number of GraphQL errors that occurred during a
* specified GraphQL operation.</p> </li> </ul> <p>Metrics will be recorded by API
* ID. You can set the value to <code>ENABLED</code> or <code>DISABLED</code>.</p>
*/
inline void SetHealthMetricsConfig(const CacheHealthMetricsConfig& value) { m_healthMetricsConfigHasBeenSet = true; m_healthMetricsConfig = value; }

/**
* <p>Controls how cache health metrics will be emitted to CloudWatch. Cache health
* metrics include:</p> <ul> <li> <p>NetworkBandwidthOutAllowanceExceeded: The
* number of times a specified GraphQL operation was called.</p> </li> <li>
* <p>EngineCPUUtilization: The number of GraphQL errors that occurred during a
* specified GraphQL operation.</p> </li> </ul> <p>Metrics will be recorded by API
* ID. You can set the value to <code>ENABLED</code> or <code>DISABLED</code>.</p>
*/
inline void SetHealthMetricsConfig(CacheHealthMetricsConfig&& value) { m_healthMetricsConfigHasBeenSet = true; m_healthMetricsConfig = std::move(value); }

/**
* <p>Controls how cache health metrics will be emitted to CloudWatch. Cache health
* metrics include:</p> <ul> <li> <p>NetworkBandwidthOutAllowanceExceeded: The
* number of times a specified GraphQL operation was called.</p> </li> <li>
* <p>EngineCPUUtilization: The number of GraphQL errors that occurred during a
* specified GraphQL operation.</p> </li> </ul> <p>Metrics will be recorded by API
* ID. You can set the value to <code>ENABLED</code> or <code>DISABLED</code>.</p>
*/
inline CreateApiCacheRequest& WithHealthMetricsConfig(const CacheHealthMetricsConfig& value) { SetHealthMetricsConfig(value); return *this;}

/**
* <p>Controls how cache health metrics will be emitted to CloudWatch. Cache health
* metrics include:</p> <ul> <li> <p>NetworkBandwidthOutAllowanceExceeded: The
* number of times a specified GraphQL operation was called.</p> </li> <li>
* <p>EngineCPUUtilization: The number of GraphQL errors that occurred during a
* specified GraphQL operation.</p> </li> </ul> <p>Metrics will be recorded by API
* ID. You can set the value to <code>ENABLED</code> or <code>DISABLED</code>.</p>
*/
inline CreateApiCacheRequest& WithHealthMetricsConfig(CacheHealthMetricsConfig&& value) { SetHealthMetricsConfig(std::move(value)); return *this;}

private:

Aws::String m_apiId;
Expand All @@ -330,6 +392,9 @@ namespace Model

ApiCacheType m_type;
bool m_typeHasBeenSet = false;

CacheHealthMetricsConfig m_healthMetricsConfig;
bool m_healthMetricsConfigHasBeenSet = false;
};

} // namespace Model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <aws/appsync/model/HttpDataSourceConfig.h>
#include <aws/appsync/model/RelationalDatabaseDataSourceConfig.h>
#include <aws/appsync/model/EventBridgeDataSourceConfig.h>
#include <aws/appsync/model/DataSourceLevelMetricsConfig.h>
#include <utility>

namespace Aws
Expand Down Expand Up @@ -491,6 +492,85 @@ namespace Model
*/
inline CreateDataSourceRequest& WithEventBridgeConfig(EventBridgeDataSourceConfig&& value) { SetEventBridgeConfig(std::move(value)); return *this;}


/**
* <p>Enables or disables enhanced data source metrics for specified data sources.
* Note that <code>metricsConfig</code> won't be used unless the
* <code>dataSourceLevelMetricsBehavior</code> value is set to
* <code>PER_DATA_SOURCE_METRICS</code>. If the
* <code>dataSourceLevelMetricsBehavior</code> is set to
* <code>FULL_REQUEST_DATA_SOURCE_METRICS</code> instead,
* <code>metricsConfig</code> will be ignored. However, you can still set its
* value.</p> <p> <code>metricsConfig</code> can be <code>ENABLED</code> or
* <code>DISABLED</code>.</p>
*/
inline const DataSourceLevelMetricsConfig& GetMetricsConfig() const{ return m_metricsConfig; }

/**
* <p>Enables or disables enhanced data source metrics for specified data sources.
* Note that <code>metricsConfig</code> won't be used unless the
* <code>dataSourceLevelMetricsBehavior</code> value is set to
* <code>PER_DATA_SOURCE_METRICS</code>. If the
* <code>dataSourceLevelMetricsBehavior</code> is set to
* <code>FULL_REQUEST_DATA_SOURCE_METRICS</code> instead,
* <code>metricsConfig</code> will be ignored. However, you can still set its
* value.</p> <p> <code>metricsConfig</code> can be <code>ENABLED</code> or
* <code>DISABLED</code>.</p>
*/
inline bool MetricsConfigHasBeenSet() const { return m_metricsConfigHasBeenSet; }

/**
* <p>Enables or disables enhanced data source metrics for specified data sources.
* Note that <code>metricsConfig</code> won't be used unless the
* <code>dataSourceLevelMetricsBehavior</code> value is set to
* <code>PER_DATA_SOURCE_METRICS</code>. If the
* <code>dataSourceLevelMetricsBehavior</code> is set to
* <code>FULL_REQUEST_DATA_SOURCE_METRICS</code> instead,
* <code>metricsConfig</code> will be ignored. However, you can still set its
* value.</p> <p> <code>metricsConfig</code> can be <code>ENABLED</code> or
* <code>DISABLED</code>.</p>
*/
inline void SetMetricsConfig(const DataSourceLevelMetricsConfig& value) { m_metricsConfigHasBeenSet = true; m_metricsConfig = value; }

/**
* <p>Enables or disables enhanced data source metrics for specified data sources.
* Note that <code>metricsConfig</code> won't be used unless the
* <code>dataSourceLevelMetricsBehavior</code> value is set to
* <code>PER_DATA_SOURCE_METRICS</code>. If the
* <code>dataSourceLevelMetricsBehavior</code> is set to
* <code>FULL_REQUEST_DATA_SOURCE_METRICS</code> instead,
* <code>metricsConfig</code> will be ignored. However, you can still set its
* value.</p> <p> <code>metricsConfig</code> can be <code>ENABLED</code> or
* <code>DISABLED</code>.</p>
*/
inline void SetMetricsConfig(DataSourceLevelMetricsConfig&& value) { m_metricsConfigHasBeenSet = true; m_metricsConfig = std::move(value); }

/**
* <p>Enables or disables enhanced data source metrics for specified data sources.
* Note that <code>metricsConfig</code> won't be used unless the
* <code>dataSourceLevelMetricsBehavior</code> value is set to
* <code>PER_DATA_SOURCE_METRICS</code>. If the
* <code>dataSourceLevelMetricsBehavior</code> is set to
* <code>FULL_REQUEST_DATA_SOURCE_METRICS</code> instead,
* <code>metricsConfig</code> will be ignored. However, you can still set its
* value.</p> <p> <code>metricsConfig</code> can be <code>ENABLED</code> or
* <code>DISABLED</code>.</p>
*/
inline CreateDataSourceRequest& WithMetricsConfig(const DataSourceLevelMetricsConfig& value) { SetMetricsConfig(value); return *this;}

/**
* <p>Enables or disables enhanced data source metrics for specified data sources.
* Note that <code>metricsConfig</code> won't be used unless the
* <code>dataSourceLevelMetricsBehavior</code> value is set to
* <code>PER_DATA_SOURCE_METRICS</code>. If the
* <code>dataSourceLevelMetricsBehavior</code> is set to
* <code>FULL_REQUEST_DATA_SOURCE_METRICS</code> instead,
* <code>metricsConfig</code> will be ignored. However, you can still set its
* value.</p> <p> <code>metricsConfig</code> can be <code>ENABLED</code> or
* <code>DISABLED</code>.</p>
*/
inline CreateDataSourceRequest& WithMetricsConfig(DataSourceLevelMetricsConfig&& value) { SetMetricsConfig(std::move(value)); return *this;}

private:

Aws::String m_apiId;
Expand Down Expand Up @@ -528,6 +608,9 @@ namespace Model

EventBridgeDataSourceConfig m_eventBridgeConfig;
bool m_eventBridgeConfigHasBeenSet = false;

DataSourceLevelMetricsConfig m_metricsConfig;
bool m_metricsConfigHasBeenSet = false;
};

} // namespace Model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <aws/appsync/model/GraphQLApiVisibility.h>
#include <aws/appsync/model/GraphQLApiType.h>
#include <aws/appsync/model/GraphQLApiIntrospectionConfig.h>
#include <aws/appsync/model/EnhancedMetricsConfig.h>
#include <aws/appsync/model/AdditionalAuthenticationProvider.h>
#include <utility>

Expand Down Expand Up @@ -737,6 +738,37 @@ namespace Model
*/
inline CreateGraphqlApiRequest& WithResolverCountLimit(int value) { SetResolverCountLimit(value); return *this;}


/**
* <p>The <code>enhancedMetricsConfig</code> object.</p>
*/
inline const EnhancedMetricsConfig& GetEnhancedMetricsConfig() const{ return m_enhancedMetricsConfig; }

/**
* <p>The <code>enhancedMetricsConfig</code> object.</p>
*/
inline bool EnhancedMetricsConfigHasBeenSet() const { return m_enhancedMetricsConfigHasBeenSet; }

/**
* <p>The <code>enhancedMetricsConfig</code> object.</p>
*/
inline void SetEnhancedMetricsConfig(const EnhancedMetricsConfig& value) { m_enhancedMetricsConfigHasBeenSet = true; m_enhancedMetricsConfig = value; }

/**
* <p>The <code>enhancedMetricsConfig</code> object.</p>
*/
inline void SetEnhancedMetricsConfig(EnhancedMetricsConfig&& value) { m_enhancedMetricsConfigHasBeenSet = true; m_enhancedMetricsConfig = std::move(value); }

/**
* <p>The <code>enhancedMetricsConfig</code> object.</p>
*/
inline CreateGraphqlApiRequest& WithEnhancedMetricsConfig(const EnhancedMetricsConfig& value) { SetEnhancedMetricsConfig(value); return *this;}

/**
* <p>The <code>enhancedMetricsConfig</code> object.</p>
*/
inline CreateGraphqlApiRequest& WithEnhancedMetricsConfig(EnhancedMetricsConfig&& value) { SetEnhancedMetricsConfig(std::move(value)); return *this;}

private:

Aws::String m_name;
Expand Down Expand Up @@ -786,6 +818,9 @@ namespace Model

int m_resolverCountLimit;
bool m_resolverCountLimitHasBeenSet = false;

EnhancedMetricsConfig m_enhancedMetricsConfig;
bool m_enhancedMetricsConfigHasBeenSet = false;
};

} // namespace Model
Expand Down
Loading

0 comments on commit c62954c

Please sign in to comment.