diff --git a/Cargo.toml b/Cargo.toml index c351cd13e17e..bfef925bbf58 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,12 +1,12 @@ [workspace] exclude = [ - "examples/webassembly", "examples/cross_service", "examples/test-utils", + "examples/webassembly", "examples/lambda", "examples/examples", - "tests/webassembly", - "tests/no-default-features" + "tests/no-default-features", + "tests/webassembly" ] members = [ "sdk/accessanalyzer", diff --git a/aws-models/appsync.json b/aws-models/appsync.json index 59b231d88baf..8b30eca4a3e0 100644 --- a/aws-models/appsync.json +++ b/aws-models/appsync.json @@ -1257,6 +1257,12 @@ "traits": { "smithy.api#documentation": "

The cache instance status.

\n " } + }, + "healthMetricsConfig": { + "target": "com.amazonaws.appsync#CacheHealthMetricsConfig", + "traits": { + "smithy.api#documentation": "

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

\n \n

Metrics will be recorded by API ID. You can set the value to ENABLED or\n DISABLED.

" + } } }, "traits": { @@ -1920,6 +1926,23 @@ "com.amazonaws.appsync#BooleanValue": { "type": "boolean" }, + "com.amazonaws.appsync#CacheHealthMetricsConfig": { + "type": "enum", + "members": { + "ENABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLED" + } + }, + "DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLED" + } + } + } + }, "com.amazonaws.appsync#CachingConfig": { "type": "structure", "members": { @@ -2223,6 +2246,12 @@ "smithy.api#documentation": "

The cache instance type. Valid values are

\n \n

Historically, instance types were identified by an EC2-style value. As of July 2020, this is deprecated, and the generic identifiers above should be used.

\n

The following legacy instance types are available, but their use is discouraged:

\n ", "smithy.api#required": {} } + }, + "healthMetricsConfig": { + "target": "com.amazonaws.appsync#CacheHealthMetricsConfig", + "traits": { + "smithy.api#documentation": "

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

\n \n

Metrics will be recorded by API ID. You can set the value to ENABLED or\n DISABLED.

" + } } }, "traits": { @@ -2440,6 +2469,12 @@ "traits": { "smithy.api#documentation": "

Amazon EventBridge settings.

" } + }, + "metricsConfig": { + "target": "com.amazonaws.appsync#DataSourceLevelMetricsConfig", + "traits": { + "smithy.api#documentation": "

Enables or disables enhanced data source metrics for specified data sources. Note that\n metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set\n to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to\n FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However,\n you can still set its value.

\n

\n metricsConfig can be ENABLED or DISABLED.

" + } } }, "traits": { @@ -2539,6 +2574,9 @@ "target": "com.amazonaws.appsync#CreateFunctionResponse" }, "errors": [ + { + "target": "com.amazonaws.appsync#BadRequestException" + }, { "target": "com.amazonaws.appsync#ConcurrentModificationException" }, @@ -2788,6 +2826,12 @@ "smithy.api#default": 0, "smithy.api#documentation": "

The maximum number of resolvers that can be invoked in a single request. The default value is 0\n (or unspecified), which will set the limit to 10000. When specified, the limit value can be\n between 1 and 10000. This field will produce a limit error if the operation falls out\n of bounds.

" } + }, + "enhancedMetricsConfig": { + "target": "com.amazonaws.appsync#EnhancedMetricsConfig", + "traits": { + "smithy.api#documentation": "

The enhancedMetricsConfig object.

" + } } }, "traits": { @@ -2925,6 +2969,12 @@ "traits": { "smithy.api#documentation": "

The resolver code that contains the request and response functions. When code is used, the\n runtime is required. The runtime value must be APPSYNC_JS.

" } + }, + "metricsConfig": { + "target": "com.amazonaws.appsync#ResolverLevelMetricsConfig", + "traits": { + "smithy.api#documentation": "

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig\n won't be used unless the resolverLevelMetricsBehavior value is set to\n PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to\n FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you\n can still set its value.

\n

\n metricsConfig can be ENABLED or DISABLED.

" + } } }, "traits": { @@ -3097,6 +3147,12 @@ "traits": { "smithy.api#documentation": "

Amazon EventBridge settings.

" } + }, + "metricsConfig": { + "target": "com.amazonaws.appsync#DataSourceLevelMetricsConfig", + "traits": { + "smithy.api#documentation": "

Enables or disables enhanced data source metrics for specified data sources. Note that\n metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set\n to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to\n FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However,\n you can still set its value.

\n

\n metricsConfig can be ENABLED or DISABLED.

" + } } }, "traits": { @@ -3293,6 +3349,40 @@ } } }, + "com.amazonaws.appsync#DataSourceLevelMetricsBehavior": { + "type": "enum", + "members": { + "FULL_REQUEST_DATA_SOURCE_METRICS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FULL_REQUEST_DATA_SOURCE_METRICS" + } + }, + "PER_DATA_SOURCE_METRICS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PER_DATA_SOURCE_METRICS" + } + } + } + }, + "com.amazonaws.appsync#DataSourceLevelMetricsConfig": { + "type": "enum", + "members": { + "ENABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLED" + } + }, + "DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLED" + } + } + } + }, "com.amazonaws.appsync#DataSourceType": { "type": "enum", "members": { @@ -3624,6 +3714,9 @@ "target": "com.amazonaws.appsync#DeleteFunctionResponse" }, "errors": [ + { + "target": "com.amazonaws.appsync#BadRequestException" + }, { "target": "com.amazonaws.appsync#ConcurrentModificationException" }, @@ -4232,6 +4325,35 @@ "smithy.api#documentation": "

Describes an OpenSearch data source configuration.

\n

As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is\n deprecated. For new data sources, use OpenSearchServiceDataSourceConfig to specify an OpenSearch data source.

" } }, + "com.amazonaws.appsync#EnhancedMetricsConfig": { + "type": "structure", + "members": { + "resolverLevelMetricsBehavior": { + "target": "com.amazonaws.appsync#ResolverLevelMetricsBehavior", + "traits": { + "smithy.api#documentation": "

Controls how resolver metrics will be emitted to CloudWatch. Resolver metrics include:

\n \n

These metrics can be emitted to CloudWatch per resolver or for all resolvers in the request. Metrics will be\n recorded by API ID and resolver name. resolverLevelMetricsBehavior accepts one of these values at\n a time:

\n ", + "smithy.api#required": {} + } + }, + "dataSourceLevelMetricsBehavior": { + "target": "com.amazonaws.appsync#DataSourceLevelMetricsBehavior", + "traits": { + "smithy.api#documentation": "

Controls how data source metrics will be emitted to CloudWatch. Data source metrics include:

\n \n

These metrics can be emitted to CloudWatch per data source or for all data sources in the request. Metrics\n will be recorded by API ID and data source name. dataSourceLevelMetricsBehavior accepts one of\n these values at a time:

\n ", + "smithy.api#required": {} + } + }, + "operationLevelMetricsConfig": { + "target": "com.amazonaws.appsync#OperationLevelMetricsConfig", + "traits": { + "smithy.api#documentation": "

Controls how operation metrics will be emitted to CloudWatch. Operation metrics include:

\n \n

Metrics will be recorded by API ID and operation name. You can set the value to ENABLED or\n DISABLED.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Enables and controls the enhanced metrics feature. Enhanced metrics emit granular data on API usage and\n performance such as AppSync request and error counts, latency, and cache hits/misses. All enhanced metric data\n is sent to your CloudWatch account, and you can configure the types of data that will be sent.

\n

Enhanced metrics can be configured at the resolver, data source, and operation levels.\n EnhancedMetricsConfig contains three required parameters, each controlling one of these\n categories:

\n
    \n
  1. \n

    \n resolverLevelMetricsBehavior: Controls how resolver metrics will be emitted to\n CloudWatch. Resolver metrics include:

    \n \n

    These metrics can be emitted to CloudWatch per resolver or for all resolvers in the request. Metrics\n will be recorded by API ID and resolver name. resolverLevelMetricsBehavior accepts one of\n these values at a time:

    \n \n
  2. \n
  3. \n

    \n dataSourceLevelMetricsBehavior: Controls how data source metrics will be emitted to\n CloudWatch. Data source metrics include:

    \n \n

    These metrics can be emitted to CloudWatch per data source or for all data sources in the request.\n Metrics will be recorded by API ID and data source name. dataSourceLevelMetricsBehavior\n accepts one of these values at a time:

    \n \n
  4. \n
  5. \n

    \n operationLevelMetricsConfig: Controls how operation metrics will be emitted to\n CloudWatch. Operation metrics include:

    \n \n

    Metrics will be recorded by API ID and operation name. You can set the value to ENABLED\n or DISABLED.

    \n
  6. \n
" + } + }, "com.amazonaws.appsync#EnvironmentVariableKey": { "type": "string", "traits": { @@ -5783,6 +5905,12 @@ "smithy.api#default": 0, "smithy.api#documentation": "

The maximum number of resolvers that can be invoked in a single request. The default value is 0\n (or unspecified), which will set the limit to 10000. When specified, the limit value can be\n between 1 and 10000. This field will produce a limit error if the operation falls out\n of bounds.

" } + }, + "enhancedMetricsConfig": { + "target": "com.amazonaws.appsync#EnhancedMetricsConfig", + "traits": { + "smithy.api#documentation": "

The enhancedMetricsConfig object.

" + } } }, "traits": { @@ -6990,6 +7118,23 @@ "smithy.api#documentation": "

Describes an OpenSearch data source configuration.

" } }, + "com.amazonaws.appsync#OperationLevelMetricsConfig": { + "type": "enum", + "members": { + "ENABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLED" + } + }, + "DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLED" + } + } + } + }, "com.amazonaws.appsync#OutputType": { "type": "enum", "members": { @@ -7077,7 +7222,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a list of environmental variables in an API by its ID value.

\n

When creating an environmental variable, it must follow the constraints below:

\n \n

When creating an environmental variable key-value pair, it must follow the additional constraints\n below:

\n \n

You can create a list of environmental variables by adding it to the environmentVariables\n payload as a list in the format {\"key1\":\"value1\",\"key2\":\"value2\", …}. Note that each call of the\n PutGraphqlApiEnvironmentVariables action will result in the overwriting of the existing\n environmental variable list of that API. This means the existing environmental variables will be lost. To avoid\n this, you must include all existing and new environmental variables in the list each time you call this\n action.

", + "smithy.api#documentation": "

Creates a list of environmental variables in an API by its ID value.

\n

When creating an environmental variable, it must follow the constraints below:

\n \n

When creating an environmental variable key-value pair, it must follow the additional constraints\n below:

\n \n

You can create a list of environmental variables by adding it to the environmentVariables\n payload as a list in the format {\"key1\":\"value1\",\"key2\":\"value2\", …}. Note that each call of the\n PutGraphqlApiEnvironmentVariables action will result in the overwriting of the existing\n environmental variable list of that API. This means the existing environmental variables will be lost. To avoid\n this, you must include all existing and new environmental variables in the list each time you call this\n action.

", "smithy.api#http": { "method": "PUT", "uri": "/v1/apis/{apiId}/environmentVariables", @@ -7099,7 +7244,7 @@ "environmentVariables": { "target": "com.amazonaws.appsync#EnvironmentVariableMap", "traits": { - "smithy.api#documentation": "

The list of environmental variables to add to the API.

\n

When creating an environmental variable key-value pair, it must follow the additional constraints\n below:

\n \n

You can create a list of environmental variables by adding it to the environmentVariables\n payload as a list in the format {\"key1\":\"value1\",\"key2\":\"value2\", …}. Note that each call of the\n PutGraphqlApiEnvironmentVariables action will result in the overwriting of the existing\n environmental variable list of that API. This means the existing environmental variables will be lost. To avoid\n this, you must include all existing and new environmental variables in the list each time you call this\n action.

", + "smithy.api#documentation": "

The list of environmental variables to add to the API.

\n

When creating an environmental variable key-value pair, it must follow the additional constraints\n below:

\n \n

You can create a list of environmental variables by adding it to the environmentVariables\n payload as a list in the format {\"key1\":\"value1\",\"key2\":\"value2\", …}. Note that each call of the\n PutGraphqlApiEnvironmentVariables action will result in the overwriting of the existing\n environmental variable list of that API. This means the existing environmental variables will be lost. To avoid\n this, you must include all existing and new environmental variables in the list each time you call this\n action.

", "smithy.api#required": {} } } @@ -7337,6 +7482,12 @@ "traits": { "smithy.api#documentation": "

The resolver code that contains the request and response functions. When code is used, the\n runtime is required. The runtime value must be APPSYNC_JS.

" } + }, + "metricsConfig": { + "target": "com.amazonaws.appsync#ResolverLevelMetricsConfig", + "traits": { + "smithy.api#documentation": "

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig\n won't be used unless the resolverLevelMetricsBehavior value is set to\n PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to\n FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you\n can still set its value.

\n

\n metricsConfig can be ENABLED or DISABLED.

" + } } }, "traits": { @@ -7370,6 +7521,40 @@ } } }, + "com.amazonaws.appsync#ResolverLevelMetricsBehavior": { + "type": "enum", + "members": { + "FULL_REQUEST_RESOLVER_METRICS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FULL_REQUEST_RESOLVER_METRICS" + } + }, + "PER_RESOLVER_METRICS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PER_RESOLVER_METRICS" + } + } + } + }, + "com.amazonaws.appsync#ResolverLevelMetricsConfig": { + "type": "enum", + "members": { + "ENABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLED" + } + }, + "DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLED" + } + } + } + }, "com.amazonaws.appsync#Resolvers": { "type": "list", "member": { @@ -8233,6 +8418,12 @@ "smithy.api#documentation": "

The cache instance type. Valid values are

\n \n

Historically, instance types were identified by an EC2-style value. As of July 2020, this is deprecated, and the generic identifiers above should be used.

\n

The following legacy instance types are available, but their use is discouraged:

\n ", "smithy.api#required": {} } + }, + "healthMetricsConfig": { + "target": "com.amazonaws.appsync#CacheHealthMetricsConfig", + "traits": { + "smithy.api#documentation": "

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

\n \n

Metrics will be recorded by API ID. You can set the value to ENABLED or\n DISABLED.

" + } } }, "traits": { @@ -8456,6 +8647,12 @@ "traits": { "smithy.api#documentation": "

The new Amazon EventBridge settings.

" } + }, + "metricsConfig": { + "target": "com.amazonaws.appsync#DataSourceLevelMetricsConfig", + "traits": { + "smithy.api#documentation": "

Enables or disables enhanced data source metrics for specified data sources. Note that\n metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set\n to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to\n FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However,\n you can still set its value.

\n

\n metricsConfig can be ENABLED or DISABLED.

" + } } }, "traits": { @@ -8555,6 +8752,9 @@ "target": "com.amazonaws.appsync#UpdateFunctionResponse" }, "errors": [ + { + "target": "com.amazonaws.appsync#BadRequestException" + }, { "target": "com.amazonaws.appsync#ConcurrentModificationException" }, @@ -8801,6 +9001,12 @@ "smithy.api#default": 0, "smithy.api#documentation": "

The maximum number of resolvers that can be invoked in a single request. The default value is 0\n (or unspecified), which will set the limit to 10000. When specified, the limit value can be\n between 1 and 10000. This field will produce a limit error if the operation falls out\n of bounds.

" } + }, + "enhancedMetricsConfig": { + "target": "com.amazonaws.appsync#EnhancedMetricsConfig", + "traits": { + "smithy.api#documentation": "

The enhancedMetricsConfig object.

" + } } }, "traits": { @@ -8939,6 +9145,12 @@ "traits": { "smithy.api#documentation": "

The resolver code that contains the request and response functions. When code is used, the\n runtime is required. The runtime value must be APPSYNC_JS.

" } + }, + "metricsConfig": { + "target": "com.amazonaws.appsync#ResolverLevelMetricsConfig", + "traits": { + "smithy.api#documentation": "

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig\n won't be used unless the resolverLevelMetricsBehavior value is set to\n PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to\n FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you\n can still set its value.

\n

\n metricsConfig can be ENABLED or DISABLED.

" + } } }, "traits": { diff --git a/aws-models/cloudwatch.json b/aws-models/cloudwatch.json index a06c5a4bb8a4..ec59da379625 100644 --- a/aws-models/cloudwatch.json +++ b/aws-models/cloudwatch.json @@ -5955,7 +5955,12 @@ } ], "traits": { - "smithy.api#documentation": "

Publishes metric data points to Amazon CloudWatch. CloudWatch associates\n\t\t\tthe data points with the specified metric. If the specified metric does not exist,\n\t\t\tCloudWatch creates the metric. When CloudWatch creates a metric, it can\n\t\t\ttake up to fifteen minutes for the metric to appear in calls to ListMetrics.

\n

You can publish either individual data points in the Value field, or \n\t\tarrays of values and the number of times each value occurred during the period by using the \n\t\tValues and Counts fields in the MetricDatum structure. Using\n\t\tthe Values and Counts method enables you to publish up to 150 values per metric\n\t\t\twith one PutMetricData request, and\n\t\tsupports retrieving percentile statistics on this data.

\n

Each PutMetricData request is limited to 1 MB in size for HTTP POST requests. You can \n\t\t\tsend a payload compressed by gzip. Each request\n\t\tis also limited to no more than 1000 different metrics.

\n

Although the Value parameter accepts numbers of type\n\t\t\tDouble, CloudWatch rejects values that are either too small\n\t\t\tor too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity,\n\t\t\t-Infinity) are not supported.

\n

You can use up to 30 dimensions per metric to further clarify what data the metric collects. Each dimension\n\t\t\tconsists of a Name and Value pair. For more information about specifying dimensions, see Publishing Metrics in the\n\t\t\tAmazon CloudWatch User Guide.

\n

You specify the time stamp to be associated with each data point. You can specify\n\t\ttime stamps that are as much as two weeks before the current date, and as much as 2 hours after \n\t\tthe current day and time.

\n

Data points with time stamps from 24 hours ago or longer can take at least 48\n\t\t\thours to become available for GetMetricData or \n\t\t\tGetMetricStatistics from the time they \n\t\t\tare submitted. Data points with time stamps between 3 and 24 hours ago can take as much as 2 hours to become available\n\t\t\tfor for GetMetricData or \n\t\t\tGetMetricStatistics.

\n

CloudWatch needs raw data points to calculate percentile statistics. If you publish \n\t\t\tdata using a statistic set instead, you can only retrieve \n\t\t\tpercentile statistics for this data if one of the following conditions is true:

\n " + "smithy.api#documentation": "

Publishes metric data points to Amazon CloudWatch. CloudWatch associates\n\t\t\tthe data points with the specified metric. If the specified metric does not exist,\n\t\t\tCloudWatch creates the metric. When CloudWatch creates a metric, it can\n\t\t\ttake up to fifteen minutes for the metric to appear in calls to ListMetrics.

\n

You can publish either individual data points in the Value field, or \n\t\tarrays of values and the number of times each value occurred during the period by using the \n\t\tValues and Counts fields in the MetricDatum structure. Using\n\t\tthe Values and Counts method enables you to publish up to 150 values per metric\n\t\t\twith one PutMetricData request, and\n\t\tsupports retrieving percentile statistics on this data.

\n

Each PutMetricData request is limited to 1 MB in size for HTTP POST requests. You can \n\t\t\tsend a payload compressed by gzip. Each request\n\t\tis also limited to no more than 1000 different metrics.

\n

Although the Value parameter accepts numbers of type\n\t\t\tDouble, CloudWatch rejects values that are either too small\n\t\t\tor too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity,\n\t\t\t-Infinity) are not supported.

\n

You can use up to 30 dimensions per metric to further clarify what data the metric collects. Each dimension\n\t\t\tconsists of a Name and Value pair. For more information about specifying dimensions, see Publishing Metrics in the\n\t\t\tAmazon CloudWatch User Guide.

\n

You specify the time stamp to be associated with each data point. You can specify\n\t\ttime stamps that are as much as two weeks before the current date, and as much as 2 hours after \n\t\tthe current day and time.

\n

Data points with time stamps from 24 hours ago or longer can take at least 48\n\t\t\thours to become available for GetMetricData or \n\t\t\tGetMetricStatistics from the time they \n\t\t\tare submitted. Data points with time stamps between 3 and 24 hours ago can take as much as 2 hours to become available\n\t\t\tfor for GetMetricData or \n\t\t\tGetMetricStatistics.

\n

CloudWatch needs raw data points to calculate percentile statistics. If you publish \n\t\t\tdata using a statistic set instead, you can only retrieve \n\t\t\tpercentile statistics for this data if one of the following conditions is true:

\n ", + "smithy.api#requestCompression": { + "encodings": [ + "gzip" + ] + } } }, "com.amazonaws.cloudwatch#PutMetricDataInput": { diff --git a/aws-models/neptune-graph.json b/aws-models/neptune-graph.json index f7e0c8ee28ed..691342ea783f 100644 --- a/aws-models/neptune-graph.json +++ b/aws-models/neptune-graph.json @@ -1800,7 +1800,7 @@ "publicConnectivity": { "target": "smithy.api#Boolean", "traits": { - "smithy.api#documentation": "

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated.\n (true to enable, or false to disable.

" + "smithy.api#documentation": "

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.\n (true to enable, or false to disable.

" } }, "kmsKeyIdentifier": { @@ -1896,7 +1896,7 @@ "publicConnectivity": { "target": "smithy.api#Boolean", "traits": { - "smithy.api#documentation": "

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated.

" + "smithy.api#documentation": "

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.

" } }, "vectorSearchConfiguration": { @@ -2123,7 +2123,7 @@ "publicConnectivity": { "target": "smithy.api#Boolean", "traits": { - "smithy.api#documentation": "

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated.\n (true to enable, or false to disable).

" + "smithy.api#documentation": "

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.\n (true to enable, or false to disable).

" } }, "kmsKeyIdentifier": { @@ -2735,6 +2735,15 @@ "smithy.api#output": {} } }, + "com.amazonaws.neptunegraph#DocumentValuedMap": { + "type": "map", + "key": { + "target": "smithy.api#String" + }, + "value": { + "target": "smithy.api#Document" + } + }, "com.amazonaws.neptunegraph#EdgeLabels": { "type": "list", "member": { @@ -2803,7 +2812,7 @@ ], "traits": { "aws.api#dataPlane": {}, - "smithy.api#documentation": "

Execute an openCypher query. Currently, the SDK does not support parameterized queries. If you want to make a \n parameterized query call, you can use an HTTP request.

\n \n

\n Non-parametrized queries are not considered for plan caching. You can force plan caching with \n planCache=enabled. The plan cache will be reused only for the same exact query. Slight variations \n in the query will not be able to reuse the query plan cache.\n

\n
", + "smithy.api#documentation": "

Execute an openCypher query. Currently, the SDK does not support parameterized queries. If you want to make a \n parameterized query call, you can use an HTTP request.

\n

\n When invoking this operation in a Neptune Analytics cluster, the IAM user or role making the request must have a policy attached \n that allows one of the following IAM actions in that cluster, depending on the query:\n

\n \n \n

\n Non-parametrized queries are not considered for plan caching. You can force plan caching with \n planCache=enabled. The plan cache will be reused only for the same exact query. Slight variations \n in the query will not be able to reuse the query plan cache.\n

\n
", "smithy.api#endpoint": { "hostPrefix": "{graphIdentifier}." }, @@ -2846,6 +2855,12 @@ "smithy.api#required": {} } }, + "parameters": { + "target": "com.amazonaws.neptunegraph#DocumentValuedMap", + "traits": { + "smithy.api#documentation": "

The data parameters the query can use in JSON format. For example: {\"name\": \"john\", \"age\": 20}. (optional)

" + } + }, "planCache": { "target": "com.amazonaws.neptunegraph#PlanCacheType", "traits": { @@ -3796,7 +3811,7 @@ ], "traits": { "aws.api#dataPlane": {}, - "smithy.api#documentation": "

Retrieves the status of a specified query.

", + "smithy.api#documentation": "

Retrieves the status of a specified query.

\n \n

\n When invoking this operation in a Neptune Analytics cluster, the IAM user or role making the request must have the \n neptune-graph:GetQueryStatus IAM action attached.\n

\n
", "smithy.api#endpoint": { "hostPrefix": "{graphIdentifier}." }, @@ -5587,7 +5602,7 @@ "publicConnectivity": { "target": "smithy.api#Boolean", "traits": { - "smithy.api#documentation": "

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated.\n (true to enable, or false to disable).

" + "smithy.api#documentation": "

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.\n (true to enable, or false to disable).

" } } }, @@ -6181,7 +6196,7 @@ "publicConnectivity": { "target": "smithy.api#Boolean", "traits": { - "smithy.api#documentation": "

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated.\n (true to enable, or false to disable.

" + "smithy.api#documentation": "

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.\n (true to enable, or false to disable.

" } }, "provisionedMemory": { diff --git a/aws-models/route-53-domains.json b/aws-models/route-53-domains.json index 3630eb4559da..c856bf397edc 100644 --- a/aws-models/route-53-domains.json +++ b/aws-models/route-53-domains.json @@ -331,7 +331,7 @@ "Availability": { "target": "com.amazonaws.route53domains#DomainAvailability", "traits": { - "smithy.api#documentation": "

Whether the domain name is available for registering.

\n \n

You can register only domains designated as AVAILABLE.

\n
\n

Valid values:

\n
\n
AVAILABLE
\n
\n

The domain name is available.

\n
\n
AVAILABLE_RESERVED
\n
\n

The domain name is reserved under specific conditions.

\n
\n
AVAILABLE_PREORDER
\n
\n

The domain name is available and can be preordered.

\n
\n
DONT_KNOW
\n
\n

The TLD registry didn't reply with a definitive answer about whether the\n\t\t\t\t\t\tdomain name is available. Route 53 can return this response for a variety of\n\t\t\t\t\t\treasons, for example, the registry is performing maintenance. Try again\n\t\t\t\t\t\tlater.

\n
\n
PENDING
\n
\n

The TLD registry didn't return a response in the expected amount of time.\n\t\t\t\t\t\tWhen the response is delayed, it usually takes just a few extra seconds. You\n\t\t\t\t\t\tcan resubmit the request immediately.

\n
\n
RESERVED
\n
\n

The domain name has been reserved for another person or\n\t\t\t\t\t\torganization.

\n
\n
UNAVAILABLE
\n
\n

The domain name is not available.

\n
\n
UNAVAILABLE_PREMIUM
\n
\n

The domain name is not available.

\n
\n
UNAVAILABLE_RESTRICTED
\n
\n

The domain name is forbidden.

\n
\n
" + "smithy.api#documentation": "

Whether the domain name is available for registering.

\n \n

You can register only domains designated as AVAILABLE.

\n
\n

Valid values:

\n
\n
AVAILABLE
\n
\n

The domain name is available.

\n
\n
AVAILABLE_RESERVED
\n
\n

The domain name is reserved under specific conditions.

\n
\n
AVAILABLE_PREORDER
\n
\n

The domain name is available and can be preordered.

\n
\n
DONT_KNOW
\n
\n

The TLD registry didn't reply with a definitive answer about whether the\n\t\t\t\t\t\tdomain name is available. Route 53 can return this response for a variety of\n\t\t\t\t\t\treasons, for example, the registry is performing maintenance. Try again\n\t\t\t\t\t\tlater.

\n
\n
INVALID_NAME_FOR_TLD
\n
\n

The TLD isn't valid. For example, it can contain characters that aren't allowed.

\n
\n
PENDING
\n
\n

The TLD registry didn't return a response in the expected amount of time.\n\t\t\t\t\t\tWhen the response is delayed, it usually takes just a few extra seconds. You\n\t\t\t\t\t\tcan resubmit the request immediately.

\n
\n
RESERVED
\n
\n

The domain name has been reserved for another person or\n\t\t\t\t\t\torganization.

\n
\n
UNAVAILABLE
\n
\n

The domain name is not available.

\n
\n
UNAVAILABLE_PREMIUM
\n
\n

The domain name is not available.

\n
\n
UNAVAILABLE_RESTRICTED
\n
\n

The domain name is forbidden.

\n
\n
" } } }, @@ -2555,6 +2555,18 @@ "traits": { "smithy.api#enumValue": "DONT_KNOW" } + }, + "INVALID_NAME_FOR_TLD": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INVALID_NAME_FOR_TLD" + } + }, + "PENDING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PENDING" + } } } }, @@ -3284,25 +3296,25 @@ "AdminPrivacy": { "target": "com.amazonaws.route53domains#Boolean", "traits": { - "smithy.api#documentation": "

Specifies whether contact information is concealed from WHOIS queries. If the value is\n\t\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar (for .com, .net, and .org domains) or for our registrar associate,\n\t\t\tGandi (for all other TLDs). If the value is false, WHOIS queries return the\n\t\t\tinformation that you entered for the admin contact.

" + "smithy.api#documentation": "

Specifies whether contact information is concealed from WHOIS queries. If the value is\n\t\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar or for our registrar associate,\n\t\t\tGandi. If the value is false, WHOIS queries return the\n\t\t\tinformation that you entered for the admin contact.

" } }, "RegistrantPrivacy": { "target": "com.amazonaws.route53domains#Boolean", "traits": { - "smithy.api#documentation": "

Specifies whether contact information is concealed from WHOIS queries. If the value is\n\t\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar (for .com, .net, and .org domains) or for our registrar associate,\n\t\t\tGandi (for all other TLDs). If the value is false, WHOIS queries return the\n\t\t\tinformation that you entered for the registrant contact (domain owner).

" + "smithy.api#documentation": "

Specifies whether contact information is concealed from WHOIS queries. If the value is\n\t\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar or for our registrar associate,\n\t\t\tGandi. If the value is false, WHOIS queries return the\n\t\t\tinformation that you entered for the registrant contact (domain owner).

" } }, "TechPrivacy": { "target": "com.amazonaws.route53domains#Boolean", "traits": { - "smithy.api#documentation": "

Specifies whether contact information is concealed from WHOIS queries. If the value is\n\t\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar (for .com, .net, and .org domains) or for our registrar associate,\n\t\t\tGandi (for all other TLDs). If the value is false, WHOIS queries return the\n\t\t\tinformation that you entered for the technical contact.

" + "smithy.api#documentation": "

Specifies whether contact information is concealed from WHOIS queries. If the value is\n\t\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar or for our registrar associate,\n\t\t\tGandi. If the value is false, WHOIS queries return the\n\t\t\tinformation that you entered for the technical contact.

" } }, "RegistrarName": { "target": "com.amazonaws.route53domains#RegistrarName", "traits": { - "smithy.api#documentation": "

Name of the registrar of the domain as identified in the registry. Domains with a\n\t\t\t.com, .net, or .org TLD are registered by Amazon Registrar. All other domains are\n\t\t\tregistered by our registrar associate, Gandi. The value for domains that are registered\n\t\t\tby Gandi is \"GANDI SAS\".

" + "smithy.api#documentation": "

Name of the registrar of the domain as identified in the registry.

" } }, "WhoIsServer": { @@ -3376,6 +3388,18 @@ "traits": { "smithy.api#documentation": "

A complex type that contains information about the DNSSEC configuration.

" } + }, + "BillingContact": { + "target": "com.amazonaws.route53domains#ContactDetail", + "traits": { + "smithy.api#documentation": "

Provides details about the domain billing contact.

" + } + }, + "BillingPrivacy": { + "target": "com.amazonaws.route53domains#Boolean", + "traits": { + "smithy.api#documentation": "

Specifies whether contact information is concealed from WHOIS queries. If the value is\n\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\tAmazon Registrar or for our registrar associate,\n\t\tGandi. If the value is false, WHOIS queries return the\n\t\tinformation that you entered for the billing contact.

" + } } }, "traits": { @@ -4216,6 +4240,18 @@ "traits": { "smithy.api#enumValue": "INTERNAL_TRANSFER_IN_DOMAIN" } + }, + "RELEASE_TO_GANDI": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "RELEASE_TO_GANDI" + } + }, + "TRANSFER_ON_RENEW": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "TRANSFER_ON_RENEW" + } } } }, @@ -4227,7 +4263,7 @@ "traits": { "smithy.api#length": { "min": 0, - "max": 18 + "max": 20 } } }, @@ -4459,19 +4495,31 @@ "PrivacyProtectAdminContact": { "target": "com.amazonaws.route53domains#Boolean", "traits": { - "smithy.api#documentation": "

Whether you want to conceal contact information from WHOIS queries. If you specify\n\t\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar (for .com, .net, and .org domains) or for our registrar associate,\n\t\t\tGandi (for all other TLDs). If you specify false, WHOIS queries return the\n\t\t\tinformation that you entered for the admin contact.

\n \n

You must specify the same privacy setting for the administrative, registrant, and\n\t\t\t\ttechnical contacts.

\n
\n

Default: true\n

" + "smithy.api#documentation": "

Whether you want to conceal contact information from WHOIS queries. If you specify\n\t\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar or for our registrar associate,\n\t\t\tGandi. If you specify false, WHOIS queries return the\n\t\t\tinformation that you entered for the admin contact.

\n \n

You must specify the same privacy setting for the administrative, billing, registrant, and\n\t\t\t\ttechnical contacts.

\n
\n

Default: true\n

" } }, "PrivacyProtectRegistrantContact": { "target": "com.amazonaws.route53domains#Boolean", "traits": { - "smithy.api#documentation": "

Whether you want to conceal contact information from WHOIS queries. If you specify\n\t\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar (for .com, .net, and .org domains) or for our registrar associate,\n\t\t\tGandi (for all other TLDs). If you specify false, WHOIS queries return the\n\t\t\tinformation that you entered for the registrant contact (the domain owner).

\n \n

You must specify the same privacy setting for the administrative, registrant, and\n\t\t\t\ttechnical contacts.

\n
\n

Default: true\n

" + "smithy.api#documentation": "

Whether you want to conceal contact information from WHOIS queries. If you specify\n\t\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar or for our registrar associate,\n\t\t\tGandi. If you specify false, WHOIS queries return the\n\t\t\tinformation that you entered for the registrant contact (the domain owner).

\n \n

You must specify the same privacy setting for the administrative, billing, registrant, and\n\t\t\t\ttechnical contacts.

\n
\n

Default: true\n

" } }, "PrivacyProtectTechContact": { "target": "com.amazonaws.route53domains#Boolean", "traits": { - "smithy.api#documentation": "

Whether you want to conceal contact information from WHOIS queries. If you specify\n\t\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar (for .com, .net, and .org domains) or for our registrar associate,\n\t\t\tGandi (for all other TLDs). If you specify false, WHOIS queries return the\n\t\t\tinformation that you entered for the technical contact.

\n \n

You must specify the same privacy setting for the administrative, registrant, and\n\t\t\t\ttechnical contacts.

\n
\n

Default: true\n

" + "smithy.api#documentation": "

Whether you want to conceal contact information from WHOIS queries. If you specify\n\t\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar or for our registrar associate,\n\t\t\tGandi. If you specify false, WHOIS queries return the\n\t\t\tinformation that you entered for the technical contact.

\n \n

You must specify the same privacy setting for the administrative, billing, registrant, and\n\t\t\t\ttechnical contacts.

\n
\n

Default: true\n

" + } + }, + "BillingContact": { + "target": "com.amazonaws.route53domains#ContactDetail", + "traits": { + "smithy.api#documentation": "

Provides detailed contact information. For information about the values that you\n\t\t\tspecify for each element, see ContactDetail.

" + } + }, + "PrivacyProtectBillingContact": { + "target": "com.amazonaws.route53domains#Boolean", + "traits": { + "smithy.api#documentation": "

Whether you want to conceal contact information from WHOIS queries. If you specify\n\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar or for our registrar associate,\n\t\t\tGandi. If you specify false, WHOIS queries return the\n\t\t\tinformation that you entered for the billing contact.

\n \n

You must specify the same privacy setting for the administrative, billing, registrant, and\n\t\t\t\ttechnical contacts.

\n
" } } }, @@ -5735,7 +5783,7 @@ } ], "traits": { - "smithy.api#documentation": "

Transfers a domain from another registrar to Amazon Route 53.

\n

For more information about transferring domains, see the following topics:

\n \n

If the registrar for your domain is also the DNS service provider for the domain, we\n\t\t\thighly recommend that you transfer your DNS service to Route 53 or to another DNS\n\t\t\tservice provider before you transfer your registration. Some registrars provide free DNS\n\t\t\tservice when you purchase a domain registration. When you transfer the registration, the\n\t\t\tprevious registrar will not renew your domain registration and could end your DNS\n\t\t\tservice at any time.

\n \n

If the registrar for your domain is also the DNS service provider for the domain\n\t\t\t\tand you don't transfer DNS service to another provider, your website, email, and the\n\t\t\t\tweb applications associated with the domain might become unavailable.

\n
\n

If the transfer is successful, this method returns an operation ID that you can use to\n\t\t\ttrack the progress and completion of the action. If the transfer doesn't complete\n\t\t\tsuccessfully, the domain registrant will be notified by email.

" + "smithy.api#documentation": "

Transfers a domain from another registrar to Amazon Route 53.

\n

For more information about transferring domains, see the following topics:

\n \n \n

During the transfer of any country code top-level domains (ccTLDs) to Route 53, except for .cc and .tv, \n\t\t\tupdates to the owner contact are ignored and the owner contact data from the registry is used. \n\t\t\tYou can\n\t\t\tupdate the owner contact after the transfer is complete. For more information, see\n\t\t\tUpdateDomainContact.

\n
\n

If the registrar for your domain is also the DNS service provider for the domain, we\n\t\t\thighly recommend that you transfer your DNS service to Route 53 or to another DNS\n\t\t\tservice provider before you transfer your registration. Some registrars provide free DNS\n\t\t\tservice when you purchase a domain registration. When you transfer the registration, the\n\t\t\tprevious registrar will not renew your domain registration and could end your DNS\n\t\t\tservice at any time.

\n \n

If the registrar for your domain is also the DNS service provider for the domain\n\t\t\t\tand you don't transfer DNS service to another provider, your website, email, and the\n\t\t\t\tweb applications associated with the domain might become unavailable.

\n
\n

If the transfer is successful, this method returns an operation ID that you can use to\n\t\t\ttrack the progress and completion of the action. If the transfer doesn't complete\n\t\t\tsuccessfully, the domain registrant will be notified by email.

" } }, "com.amazonaws.route53domains#TransferDomainRequest": { @@ -5809,13 +5857,25 @@ "PrivacyProtectRegistrantContact": { "target": "com.amazonaws.route53domains#Boolean", "traits": { - "smithy.api#documentation": "

Whether you want to conceal contact information from WHOIS queries. If you specify\n\t\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar (for .com, .net, and .org domains) or for our registrar associate,\n\t\t\tGandi (for all other TLDs). If you specify false, WHOIS queries return the\n\t\t\tinformation that you entered for the registrant contact (domain owner).

\n \n

You must specify the same privacy setting for the administrative, registrant, and\n\t\t\t\ttechnical contacts.

\n
\n

Default: true\n

" + "smithy.api#documentation": "

Whether you want to conceal contact information from WHOIS queries. If you specify\n\t\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar or for our registrar associate,\n\t\t\tGandi. If you specify false, WHOIS queries return the\n\t\t\tinformation that you entered for the registrant contact (domain owner).

\n \n

You must specify the same privacy setting for the administrative, billing, registrant, and\n\t\t\t\ttechnical contacts.

\n
\n

Default: true\n

" } }, "PrivacyProtectTechContact": { "target": "com.amazonaws.route53domains#Boolean", "traits": { - "smithy.api#documentation": "

Whether you want to conceal contact information from WHOIS queries. If you specify\n\t\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar (for .com, .net, and .org domains) or for our registrar associate,\n\t\t\tGandi (for all other TLDs). If you specify false, WHOIS queries return the\n\t\t\tinformation that you entered for the technical contact.

\n \n

You must specify the same privacy setting for the administrative, registrant, and\n\t\t\t\ttechnical contacts.

\n
\n

Default: true\n

" + "smithy.api#documentation": "

Whether you want to conceal contact information from WHOIS queries. If you specify\n\t\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar or for our registrar associate,\n\t\t\tGandi. If you specify false, WHOIS queries return the\n\t\t\tinformation that you entered for the technical contact.

\n \n

You must specify the same privacy setting for the administrative, billing, registrant, and\n\t\t\t\ttechnical contacts.

\n
\n

Default: true\n

" + } + }, + "BillingContact": { + "target": "com.amazonaws.route53domains#ContactDetail", + "traits": { + "smithy.api#documentation": "

Provides detailed contact information.

" + } + }, + "PrivacyProtectBillingContact": { + "target": "com.amazonaws.route53domains#Boolean", + "traits": { + "smithy.api#documentation": "

\n\t\t\tWhether you want to conceal contact information from WHOIS queries. If you specify\n\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar or for our registrar associate,\n\t\t\tGandi. If you specify false, WHOIS queries return the\n\t\t\tinformation that you entered for the billing contact.\n\t\t

\n \n

You must specify the same privacy setting for the administrative, billing, registrant, and\n\t\t\t\ttechnical contacts.

\n
" } } }, @@ -5950,7 +6010,7 @@ } }, "traits": { - "smithy.api#documentation": "

Whether the domain name can be transferred to Route 53.

\n \n

You can transfer only domains that have a value of TRANSFERABLE or\n\t\t\t\t\tTransferable.

\n
\n

Valid values:

\n
\n
TRANSFERABLE
\n
\n

The domain name can be transferred to Route 53.

\n
\n
UNTRANSFERRABLE
\n
\n

The domain name can't be transferred to Route 53.

\n
\n
DONT_KNOW
\n
\n

Reserved for future use.

\n
\n
DOMAIN_IN_OWN_ACCOUNT
\n
\n

The domain already exists in the current Amazon Web Services account.

\n
\n
DOMAIN_IN_ANOTHER_ACCOUNT
\n
\n

the domain exists in another Amazon Web Services account.

\n
\n
PREMIUM_DOMAIN
\n
\n

Premium domain transfer is not supported.

\n
\n
" + "smithy.api#documentation": "

Whether the domain name can be transferred to Route 53.

\n \n

You can transfer only domains that have a value of TRANSFERABLE or\n\t\t\t\t\tTransferable.

\n
\n

Valid values:

\n
\n
TRANSFERABLE
\n
\n

The domain name can be transferred to Route 53.

\n
\n
UNTRANSFERRABLE
\n
\n

The domain name can't be transferred to Route 53.

\n
\n
DONT_KNOW
\n
\n

Reserved for future use.

\n
\n
DOMAIN_IN_OWN_ACCOUNT
\n
\n

The domain already exists in the current Amazon Web Services account.

\n
\n
DOMAIN_IN_ANOTHER_ACCOUNT
\n
\n

The domain exists in another Amazon Web Services account.

\n
\n
PREMIUM_DOMAIN
\n
\n

Premium domain transfer is not supported.

\n
\n
" } }, "com.amazonaws.route53domains#UnsupportedTLD": { @@ -6040,19 +6100,25 @@ "AdminPrivacy": { "target": "com.amazonaws.route53domains#Boolean", "traits": { - "smithy.api#documentation": "

Whether you want to conceal contact information from WHOIS queries. If you specify\n\t\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar (for .com, .net, and .org domains) or for our registrar associate,\n\t\t\tGandi (for all other TLDs). If you specify false, WHOIS queries return the\n\t\t\tinformation that you entered for the admin contact.

\n \n

You must specify the same privacy setting for the administrative, registrant, and\n\t\t\t\ttechnical contacts.

\n
" + "smithy.api#documentation": "

Whether you want to conceal contact information from WHOIS queries. If you specify\n\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar or for our registrar associate,\n\t\t\tGandi. If you specify false, WHOIS queries return the\n\t\t\tinformation that you entered for the admin contact.

\n \n

You must specify the same privacy setting for the administrative, billing, registrant, and\n\t\t\t\ttechnical contacts.

\n
" } }, "RegistrantPrivacy": { "target": "com.amazonaws.route53domains#Boolean", "traits": { - "smithy.api#documentation": "

Whether you want to conceal contact information from WHOIS queries. If you specify\n\t\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar (for .com, .net, and .org domains) or for our registrar associate,\n\t\t\tGandi (for all other TLDs). If you specify false, WHOIS queries return the\n\t\t\tinformation that you entered for the registrant contact (domain owner).

\n \n

You must specify the same privacy setting for the administrative, registrant, and\n\t\t\t\ttechnical contacts.

\n
" + "smithy.api#documentation": "

Whether you want to conceal contact information from WHOIS queries. If you specify\n\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar or for our registrar associate,\n\t\t\tGandi. If you specify false, WHOIS queries return the\n\t\t\tinformation that you entered for the registrant contact (domain owner).

\n \n

You must specify the same privacy setting for the administrative, billing, registrant, and\n\t\t\t\ttechnical contacts.

\n
" } }, "TechPrivacy": { "target": "com.amazonaws.route53domains#Boolean", "traits": { - "smithy.api#documentation": "

Whether you want to conceal contact information from WHOIS queries. If you specify\n\t\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar (for .com, .net, and .org domains) or for our registrar associate,\n\t\t\tGandi (for all other TLDs). If you specify false, WHOIS queries return the\n\t\t\tinformation that you entered for the technical contact.

\n \n

You must specify the same privacy setting for the administrative, registrant, and\n\t\t\t\ttechnical contacts.

\n
" + "smithy.api#documentation": "

Whether you want to conceal contact information from WHOIS queries. If you specify\n\t\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar or for our registrar associate,\n\t\t\tGandi. If you specify false, WHOIS queries return the\n\t\t\tinformation that you entered for the technical contact.

\n \n

You must specify the same privacy setting for the administrative, billing, registrant, and\n\t\t\t\ttechnical contacts.

\n
" + } + }, + "BillingPrivacy": { + "target": "com.amazonaws.route53domains#Boolean", + "traits": { + "smithy.api#documentation": "

\n\t\t\tWhether you want to conceal contact information from WHOIS queries. If you specify\n\t\t\ttrue, WHOIS (\"who is\") queries return contact information either for\n\t\t\tAmazon Registrar or for our registrar associate,\n\t\t\tGandi. If you specify false, WHOIS queries return the\n\t\t\tinformation that you entered for the billing contact.\n\t\t

\n \n

You must specify the same privacy setting for the administrative, billing, registrant, and\n\t\t\t\ttechnical contacts.

\n
" } } }, @@ -6109,6 +6175,12 @@ "traits": { "smithy.api#documentation": "

Customer's consent for the owner change request. Required if the domain is not free (consent price is more than $0.00).

" } + }, + "BillingContact": { + "target": "com.amazonaws.route53domains#ContactDetail", + "traits": { + "smithy.api#documentation": "

Provides detailed contact information.

" + } } }, "traits": { diff --git a/examples/examples/cloudwatch/Cargo.toml b/examples/examples/cloudwatch/Cargo.toml index a3426ca2f4dd..a5fcb4b27383 100644 --- a/examples/examples/cloudwatch/Cargo.toml +++ b/examples/examples/cloudwatch/Cargo.toml @@ -8,7 +8,7 @@ publish = false [dependencies] aws-config= { version = "1.1.5", path = "../../../sdk/aws-config", features = ["behavior-version-latest"] } -aws-sdk-cloudwatch= { version = "1.14.0", path = "../../../sdk/cloudwatch" } +aws-sdk-cloudwatch= { version = "1.15.0", path = "../../../sdk/cloudwatch" } [dependencies.tokio] version = "1.20.1" diff --git a/sdk/appsync/Cargo.toml b/sdk/appsync/Cargo.toml index 95989e74aadd..4d2d90e08fa5 100644 --- a/sdk/appsync/Cargo.toml +++ b/sdk/appsync/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-appsync" -version = "1.15.0" +version = "1.16.0" authors = ["AWS Rust SDK Team ", "Russell Cohen "] description = "AWS SDK for AWS AppSync" edition = "2021" diff --git a/sdk/appsync/README.md b/sdk/appsync/README.md index 8fd248f1dfe5..377be0f81bab 100644 --- a/sdk/appsync/README.md +++ b/sdk/appsync/README.md @@ -14,7 +14,7 @@ your project, add the following to your **Cargo.toml** file: ```toml [dependencies] aws-config = { version = "1.1.5", features = ["behavior-version-latest"] } -aws-sdk-appsync = "1.15.0" +aws-sdk-appsync = "1.16.0" tokio = { version = "1", features = ["full"] } ``` diff --git a/sdk/appsync/src/client/create_api_cache.rs b/sdk/appsync/src/client/create_api_cache.rs index 2f6e1852b1f6..c3be6eec5a49 100644 --- a/sdk/appsync/src/client/create_api_cache.rs +++ b/sdk/appsync/src/client/create_api_cache.rs @@ -9,6 +9,7 @@ impl super::Client { /// - [`at_rest_encryption_enabled(bool)`](crate::operation::create_api_cache::builders::CreateApiCacheFluentBuilder::at_rest_encryption_enabled) / [`set_at_rest_encryption_enabled(Option)`](crate::operation::create_api_cache::builders::CreateApiCacheFluentBuilder::set_at_rest_encryption_enabled):
required: **false**

At-rest encryption flag for cache. You cannot update this setting after creation.


/// - [`api_caching_behavior(ApiCachingBehavior)`](crate::operation::create_api_cache::builders::CreateApiCacheFluentBuilder::api_caching_behavior) / [`set_api_caching_behavior(Option)`](crate::operation::create_api_cache::builders::CreateApiCacheFluentBuilder::set_api_caching_behavior):
required: **true**

Caching behavior.

  • FULL_REQUEST_CACHING: All requests are fully cached.

  • PER_RESOLVER_CACHING: Individual resolvers that you specify are cached.


/// - [`r#type(ApiCacheType)`](crate::operation::create_api_cache::builders::CreateApiCacheFluentBuilder::type) / [`set_type(Option)`](crate::operation::create_api_cache::builders::CreateApiCacheFluentBuilder::set_type):
required: **true**

The cache instance type. Valid values are

  • SMALL

  • MEDIUM

  • LARGE

  • XLARGE

  • LARGE_2X

  • LARGE_4X

  • LARGE_8X (not available in all regions)

  • LARGE_12X

Historically, instance types were identified by an EC2-style value. As of July 2020, this is deprecated, and the generic identifiers above should be used.

The following legacy instance types are available, but their use is discouraged:

  • T2_SMALL: A t2.small instance type.

  • T2_MEDIUM: A t2.medium instance type.

  • R4_LARGE: A r4.large instance type.

  • R4_XLARGE: A r4.xlarge instance type.

  • R4_2XLARGE: A r4.2xlarge instance type.

  • R4_4XLARGE: A r4.4xlarge instance type.

  • R4_8XLARGE: A r4.8xlarge instance type.


+ /// - [`health_metrics_config(CacheHealthMetricsConfig)`](crate::operation::create_api_cache::builders::CreateApiCacheFluentBuilder::health_metrics_config) / [`set_health_metrics_config(Option)`](crate::operation::create_api_cache::builders::CreateApiCacheFluentBuilder::set_health_metrics_config):
required: **false**

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

  • NetworkBandwidthOutAllowanceExceeded: The number of times a specified GraphQL operation was called.

  • EngineCPUUtilization: The number of GraphQL errors that occurred during a specified GraphQL operation.

Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.


/// - On success, responds with [`CreateApiCacheOutput`](crate::operation::create_api_cache::CreateApiCacheOutput) with field(s): /// - [`api_cache(Option)`](crate::operation::create_api_cache::CreateApiCacheOutput::api_cache):

The ApiCache object.

/// - On failure, responds with [`SdkError`](crate::operation::create_api_cache::CreateApiCacheError) diff --git a/sdk/appsync/src/client/create_data_source.rs b/sdk/appsync/src/client/create_data_source.rs index 29ce5726d902..5fd859107bc3 100644 --- a/sdk/appsync/src/client/create_data_source.rs +++ b/sdk/appsync/src/client/create_data_source.rs @@ -15,6 +15,7 @@ impl super::Client { /// - [`http_config(HttpDataSourceConfig)`](crate::operation::create_data_source::builders::CreateDataSourceFluentBuilder::http_config) / [`set_http_config(Option)`](crate::operation::create_data_source::builders::CreateDataSourceFluentBuilder::set_http_config):
required: **false**

HTTP endpoint settings.


/// - [`relational_database_config(RelationalDatabaseDataSourceConfig)`](crate::operation::create_data_source::builders::CreateDataSourceFluentBuilder::relational_database_config) / [`set_relational_database_config(Option)`](crate::operation::create_data_source::builders::CreateDataSourceFluentBuilder::set_relational_database_config):
required: **false**

Relational database settings.


/// - [`event_bridge_config(EventBridgeDataSourceConfig)`](crate::operation::create_data_source::builders::CreateDataSourceFluentBuilder::event_bridge_config) / [`set_event_bridge_config(Option)`](crate::operation::create_data_source::builders::CreateDataSourceFluentBuilder::set_event_bridge_config):
required: **false**

Amazon EventBridge settings.


+ /// - [`metrics_config(DataSourceLevelMetricsConfig)`](crate::operation::create_data_source::builders::CreateDataSourceFluentBuilder::metrics_config) / [`set_metrics_config(Option)`](crate::operation::create_data_source::builders::CreateDataSourceFluentBuilder::set_metrics_config):
required: **false**

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

metricsConfig can be ENABLED or DISABLED.


/// - On success, responds with [`CreateDataSourceOutput`](crate::operation::create_data_source::CreateDataSourceOutput) with field(s): /// - [`data_source(Option)`](crate::operation::create_data_source::CreateDataSourceOutput::data_source):

The DataSource object.

/// - On failure, responds with [`SdkError`](crate::operation::create_data_source::CreateDataSourceError) diff --git a/sdk/appsync/src/client/create_graphql_api.rs b/sdk/appsync/src/client/create_graphql_api.rs index 0c06a434f0ab..f671eb4876e5 100644 --- a/sdk/appsync/src/client/create_graphql_api.rs +++ b/sdk/appsync/src/client/create_graphql_api.rs @@ -19,6 +19,7 @@ impl super::Client { /// - [`introspection_config(GraphQlApiIntrospectionConfig)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::introspection_config) / [`set_introspection_config(Option)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::set_introspection_config):
required: **false**

Sets the value of the GraphQL API to enable (ENABLED) or disable (DISABLED) introspection. If no value is provided, the introspection configuration will be set to ENABLED by default. This field will produce an error if the operation attempts to use the introspection feature while this field is disabled.

For more information about introspection, see GraphQL introspection.


/// - [`query_depth_limit(i32)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::query_depth_limit) / [`set_query_depth_limit(Option)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::set_query_depth_limit):
required: **false**

The maximum depth a query can have in a single request. Depth refers to the amount of nested levels allowed in the body of query. The default value is 0 (or unspecified), which indicates there's no depth limit. If you set a limit, it can be between 1 and 75 nested levels. This field will produce a limit error if the operation falls out of bounds.

Note that fields can still be set to nullable or non-nullable. If a non-nullable field produces an error, the error will be thrown upwards to the first nullable field available.


/// - [`resolver_count_limit(i32)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::resolver_count_limit) / [`set_resolver_count_limit(Option)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::set_resolver_count_limit):
required: **false**

The maximum number of resolvers that can be invoked in a single request. The default value is 0 (or unspecified), which will set the limit to 10000. When specified, the limit value can be between 1 and 10000. This field will produce a limit error if the operation falls out of bounds.


+ /// - [`enhanced_metrics_config(EnhancedMetricsConfig)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::enhanced_metrics_config) / [`set_enhanced_metrics_config(Option)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::set_enhanced_metrics_config):
required: **false**

The enhancedMetricsConfig object.


/// - On success, responds with [`CreateGraphqlApiOutput`](crate::operation::create_graphql_api::CreateGraphqlApiOutput) with field(s): /// - [`graphql_api(Option)`](crate::operation::create_graphql_api::CreateGraphqlApiOutput::graphql_api):

The GraphqlApi.

/// - On failure, responds with [`SdkError`](crate::operation::create_graphql_api::CreateGraphqlApiError) diff --git a/sdk/appsync/src/client/create_resolver.rs b/sdk/appsync/src/client/create_resolver.rs index 92a20a9f4d80..29ae9dda7052 100644 --- a/sdk/appsync/src/client/create_resolver.rs +++ b/sdk/appsync/src/client/create_resolver.rs @@ -16,6 +16,7 @@ impl super::Client { /// - [`max_batch_size(i32)`](crate::operation::create_resolver::builders::CreateResolverFluentBuilder::max_batch_size) / [`set_max_batch_size(Option)`](crate::operation::create_resolver::builders::CreateResolverFluentBuilder::set_max_batch_size):
required: **false**

The maximum batching size for a resolver.


/// - [`runtime(AppSyncRuntime)`](crate::operation::create_resolver::builders::CreateResolverFluentBuilder::runtime) / [`set_runtime(Option)`](crate::operation::create_resolver::builders::CreateResolverFluentBuilder::set_runtime):
required: **false**

Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.


/// - [`code(impl Into)`](crate::operation::create_resolver::builders::CreateResolverFluentBuilder::code) / [`set_code(Option)`](crate::operation::create_resolver::builders::CreateResolverFluentBuilder::set_code):
required: **false**

The resolver code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.


+ /// - [`metrics_config(ResolverLevelMetricsConfig)`](crate::operation::create_resolver::builders::CreateResolverFluentBuilder::metrics_config) / [`set_metrics_config(Option)`](crate::operation::create_resolver::builders::CreateResolverFluentBuilder::set_metrics_config):
required: **false**

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

metricsConfig can be ENABLED or DISABLED.


/// - On success, responds with [`CreateResolverOutput`](crate::operation::create_resolver::CreateResolverOutput) with field(s): /// - [`resolver(Option)`](crate::operation::create_resolver::CreateResolverOutput::resolver):

The Resolver object.

/// - On failure, responds with [`SdkError`](crate::operation::create_resolver::CreateResolverError) diff --git a/sdk/appsync/src/client/update_api_cache.rs b/sdk/appsync/src/client/update_api_cache.rs index dc6132141fa1..d37381b2f77d 100644 --- a/sdk/appsync/src/client/update_api_cache.rs +++ b/sdk/appsync/src/client/update_api_cache.rs @@ -7,6 +7,7 @@ impl super::Client { /// - [`ttl(i64)`](crate::operation::update_api_cache::builders::UpdateApiCacheFluentBuilder::ttl) / [`set_ttl(Option)`](crate::operation::update_api_cache::builders::UpdateApiCacheFluentBuilder::set_ttl):
required: **true**

TTL in seconds for cache entries.

Valid values are 1–3,600 seconds.


/// - [`api_caching_behavior(ApiCachingBehavior)`](crate::operation::update_api_cache::builders::UpdateApiCacheFluentBuilder::api_caching_behavior) / [`set_api_caching_behavior(Option)`](crate::operation::update_api_cache::builders::UpdateApiCacheFluentBuilder::set_api_caching_behavior):
required: **true**

Caching behavior.

  • FULL_REQUEST_CACHING: All requests are fully cached.

  • PER_RESOLVER_CACHING: Individual resolvers that you specify are cached.


/// - [`r#type(ApiCacheType)`](crate::operation::update_api_cache::builders::UpdateApiCacheFluentBuilder::type) / [`set_type(Option)`](crate::operation::update_api_cache::builders::UpdateApiCacheFluentBuilder::set_type):
required: **true**

The cache instance type. Valid values are

  • SMALL

  • MEDIUM

  • LARGE

  • XLARGE

  • LARGE_2X

  • LARGE_4X

  • LARGE_8X (not available in all regions)

  • LARGE_12X

Historically, instance types were identified by an EC2-style value. As of July 2020, this is deprecated, and the generic identifiers above should be used.

The following legacy instance types are available, but their use is discouraged:

  • T2_SMALL: A t2.small instance type.

  • T2_MEDIUM: A t2.medium instance type.

  • R4_LARGE: A r4.large instance type.

  • R4_XLARGE: A r4.xlarge instance type.

  • R4_2XLARGE: A r4.2xlarge instance type.

  • R4_4XLARGE: A r4.4xlarge instance type.

  • R4_8XLARGE: A r4.8xlarge instance type.


+ /// - [`health_metrics_config(CacheHealthMetricsConfig)`](crate::operation::update_api_cache::builders::UpdateApiCacheFluentBuilder::health_metrics_config) / [`set_health_metrics_config(Option)`](crate::operation::update_api_cache::builders::UpdateApiCacheFluentBuilder::set_health_metrics_config):
required: **false**

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

  • NetworkBandwidthOutAllowanceExceeded: The number of times a specified GraphQL operation was called.

  • EngineCPUUtilization: The number of GraphQL errors that occurred during a specified GraphQL operation.

Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.


/// - On success, responds with [`UpdateApiCacheOutput`](crate::operation::update_api_cache::UpdateApiCacheOutput) with field(s): /// - [`api_cache(Option)`](crate::operation::update_api_cache::UpdateApiCacheOutput::api_cache):

The ApiCache object.

/// - On failure, responds with [`SdkError`](crate::operation::update_api_cache::UpdateApiCacheError) diff --git a/sdk/appsync/src/client/update_data_source.rs b/sdk/appsync/src/client/update_data_source.rs index 6d35beb5b2e4..d54dc59504d4 100644 --- a/sdk/appsync/src/client/update_data_source.rs +++ b/sdk/appsync/src/client/update_data_source.rs @@ -15,6 +15,7 @@ impl super::Client { /// - [`http_config(HttpDataSourceConfig)`](crate::operation::update_data_source::builders::UpdateDataSourceFluentBuilder::http_config) / [`set_http_config(Option)`](crate::operation::update_data_source::builders::UpdateDataSourceFluentBuilder::set_http_config):
required: **false**

The new HTTP endpoint configuration.


/// - [`relational_database_config(RelationalDatabaseDataSourceConfig)`](crate::operation::update_data_source::builders::UpdateDataSourceFluentBuilder::relational_database_config) / [`set_relational_database_config(Option)`](crate::operation::update_data_source::builders::UpdateDataSourceFluentBuilder::set_relational_database_config):
required: **false**

The new relational database configuration.


/// - [`event_bridge_config(EventBridgeDataSourceConfig)`](crate::operation::update_data_source::builders::UpdateDataSourceFluentBuilder::event_bridge_config) / [`set_event_bridge_config(Option)`](crate::operation::update_data_source::builders::UpdateDataSourceFluentBuilder::set_event_bridge_config):
required: **false**

The new Amazon EventBridge settings.


+ /// - [`metrics_config(DataSourceLevelMetricsConfig)`](crate::operation::update_data_source::builders::UpdateDataSourceFluentBuilder::metrics_config) / [`set_metrics_config(Option)`](crate::operation::update_data_source::builders::UpdateDataSourceFluentBuilder::set_metrics_config):
required: **false**

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

metricsConfig can be ENABLED or DISABLED.


/// - On success, responds with [`UpdateDataSourceOutput`](crate::operation::update_data_source::UpdateDataSourceOutput) with field(s): /// - [`data_source(Option)`](crate::operation::update_data_source::UpdateDataSourceOutput::data_source):

The updated DataSource object.

/// - On failure, responds with [`SdkError`](crate::operation::update_data_source::UpdateDataSourceError) diff --git a/sdk/appsync/src/client/update_graphql_api.rs b/sdk/appsync/src/client/update_graphql_api.rs index 1a424a46028c..dad900155b7b 100644 --- a/sdk/appsync/src/client/update_graphql_api.rs +++ b/sdk/appsync/src/client/update_graphql_api.rs @@ -17,6 +17,7 @@ impl super::Client { /// - [`introspection_config(GraphQlApiIntrospectionConfig)`](crate::operation::update_graphql_api::builders::UpdateGraphqlApiFluentBuilder::introspection_config) / [`set_introspection_config(Option)`](crate::operation::update_graphql_api::builders::UpdateGraphqlApiFluentBuilder::set_introspection_config):
required: **false**

Sets the value of the GraphQL API to enable (ENABLED) or disable (DISABLED) introspection. If no value is provided, the introspection configuration will be set to ENABLED by default. This field will produce an error if the operation attempts to use the introspection feature while this field is disabled.

For more information about introspection, see GraphQL introspection.


/// - [`query_depth_limit(i32)`](crate::operation::update_graphql_api::builders::UpdateGraphqlApiFluentBuilder::query_depth_limit) / [`set_query_depth_limit(Option)`](crate::operation::update_graphql_api::builders::UpdateGraphqlApiFluentBuilder::set_query_depth_limit):
required: **false**

The maximum depth a query can have in a single request. Depth refers to the amount of nested levels allowed in the body of query. The default value is 0 (or unspecified), which indicates there's no depth limit. If you set a limit, it can be between 1 and 75 nested levels. This field will produce a limit error if the operation falls out of bounds.

Note that fields can still be set to nullable or non-nullable. If a non-nullable field produces an error, the error will be thrown upwards to the first nullable field available.


/// - [`resolver_count_limit(i32)`](crate::operation::update_graphql_api::builders::UpdateGraphqlApiFluentBuilder::resolver_count_limit) / [`set_resolver_count_limit(Option)`](crate::operation::update_graphql_api::builders::UpdateGraphqlApiFluentBuilder::set_resolver_count_limit):
required: **false**

The maximum number of resolvers that can be invoked in a single request. The default value is 0 (or unspecified), which will set the limit to 10000. When specified, the limit value can be between 1 and 10000. This field will produce a limit error if the operation falls out of bounds.


+ /// - [`enhanced_metrics_config(EnhancedMetricsConfig)`](crate::operation::update_graphql_api::builders::UpdateGraphqlApiFluentBuilder::enhanced_metrics_config) / [`set_enhanced_metrics_config(Option)`](crate::operation::update_graphql_api::builders::UpdateGraphqlApiFluentBuilder::set_enhanced_metrics_config):
required: **false**

The enhancedMetricsConfig object.


/// - On success, responds with [`UpdateGraphqlApiOutput`](crate::operation::update_graphql_api::UpdateGraphqlApiOutput) with field(s): /// - [`graphql_api(Option)`](crate::operation::update_graphql_api::UpdateGraphqlApiOutput::graphql_api):

The updated GraphqlApi object.

/// - On failure, responds with [`SdkError`](crate::operation::update_graphql_api::UpdateGraphqlApiError) diff --git a/sdk/appsync/src/client/update_resolver.rs b/sdk/appsync/src/client/update_resolver.rs index 3c1318de30a4..5fa823346a03 100644 --- a/sdk/appsync/src/client/update_resolver.rs +++ b/sdk/appsync/src/client/update_resolver.rs @@ -16,6 +16,7 @@ impl super::Client { /// - [`max_batch_size(i32)`](crate::operation::update_resolver::builders::UpdateResolverFluentBuilder::max_batch_size) / [`set_max_batch_size(Option)`](crate::operation::update_resolver::builders::UpdateResolverFluentBuilder::set_max_batch_size):
required: **false**

The maximum batching size for a resolver.


/// - [`runtime(AppSyncRuntime)`](crate::operation::update_resolver::builders::UpdateResolverFluentBuilder::runtime) / [`set_runtime(Option)`](crate::operation::update_resolver::builders::UpdateResolverFluentBuilder::set_runtime):
required: **false**

Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.


/// - [`code(impl Into)`](crate::operation::update_resolver::builders::UpdateResolverFluentBuilder::code) / [`set_code(Option)`](crate::operation::update_resolver::builders::UpdateResolverFluentBuilder::set_code):
required: **false**

The resolver code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.


+ /// - [`metrics_config(ResolverLevelMetricsConfig)`](crate::operation::update_resolver::builders::UpdateResolverFluentBuilder::metrics_config) / [`set_metrics_config(Option)`](crate::operation::update_resolver::builders::UpdateResolverFluentBuilder::set_metrics_config):
required: **false**

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

metricsConfig can be ENABLED or DISABLED.


/// - On success, responds with [`UpdateResolverOutput`](crate::operation::update_resolver::UpdateResolverOutput) with field(s): /// - [`resolver(Option)`](crate::operation::update_resolver::UpdateResolverOutput::resolver):

The updated Resolver object.

/// - On failure, responds with [`SdkError`](crate::operation::update_resolver::UpdateResolverError) diff --git a/sdk/appsync/src/error_meta.rs b/sdk/appsync/src/error_meta.rs index 0286eff21aaf..fe13057892dd 100644 --- a/sdk/appsync/src/error_meta.rs +++ b/sdk/appsync/src/error_meta.rs @@ -320,6 +320,7 @@ where impl From for Error { fn from(err: crate::operation::create_function::CreateFunctionError) -> Self { match err { + crate::operation::create_function::CreateFunctionError::BadRequestException(inner) => Error::BadRequestException(inner), crate::operation::create_function::CreateFunctionError::ConcurrentModificationException(inner) => { Error::ConcurrentModificationException(inner) } @@ -539,6 +540,7 @@ where impl From for Error { fn from(err: crate::operation::delete_function::DeleteFunctionError) -> Self { match err { + crate::operation::delete_function::DeleteFunctionError::BadRequestException(inner) => Error::BadRequestException(inner), crate::operation::delete_function::DeleteFunctionError::ConcurrentModificationException(inner) => { Error::ConcurrentModificationException(inner) } @@ -1862,6 +1864,7 @@ where impl From for Error { fn from(err: crate::operation::update_function::UpdateFunctionError) -> Self { match err { + crate::operation::update_function::UpdateFunctionError::BadRequestException(inner) => Error::BadRequestException(inner), crate::operation::update_function::UpdateFunctionError::ConcurrentModificationException(inner) => { Error::ConcurrentModificationException(inner) } diff --git a/sdk/appsync/src/lib.rs b/sdk/appsync/src/lib.rs index 2626598d838e..e841f7c44118 100644 --- a/sdk/appsync/src/lib.rs +++ b/sdk/appsync/src/lib.rs @@ -29,7 +29,7 @@ //! ```toml //! [dependencies] //! aws-config = { version = "1.1.5", features = ["behavior-version-latest"] } -//! aws-sdk-appsync = "1.15.0" +//! aws-sdk-appsync = "1.16.0" //! tokio = { version = "1", features = ["full"] } //! ``` //! diff --git a/sdk/appsync/src/operation/create_api_cache/_create_api_cache_input.rs b/sdk/appsync/src/operation/create_api_cache/_create_api_cache_input.rs index cdf645112361..53bed1af6147 100644 --- a/sdk/appsync/src/operation/create_api_cache/_create_api_cache_input.rs +++ b/sdk/appsync/src/operation/create_api_cache/_create_api_cache_input.rs @@ -59,6 +59,15 @@ pub struct CreateApiCacheInput { ///

R4_8XLARGE: A r4.8xlarge instance type.

/// pub r#type: ::std::option::Option, + ///

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

+ ///
    + ///
  • + ///

    NetworkBandwidthOutAllowanceExceeded: The number of times a specified GraphQL operation was called.

  • + ///
  • + ///

    EngineCPUUtilization: The number of GraphQL errors that occurred during a specified GraphQL operation.

  • + ///
+ ///

Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.

+ pub health_metrics_config: ::std::option::Option, } impl CreateApiCacheInput { ///

The GraphQL API ID.

@@ -128,6 +137,17 @@ impl CreateApiCacheInput { pub fn r#type(&self) -> ::std::option::Option<&crate::types::ApiCacheType> { self.r#type.as_ref() } + ///

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

+ ///
    + ///
  • + ///

    NetworkBandwidthOutAllowanceExceeded: The number of times a specified GraphQL operation was called.

  • + ///
  • + ///

    EngineCPUUtilization: The number of GraphQL errors that occurred during a specified GraphQL operation.

  • + ///
+ ///

Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.

+ pub fn health_metrics_config(&self) -> ::std::option::Option<&crate::types::CacheHealthMetricsConfig> { + self.health_metrics_config.as_ref() + } } impl CreateApiCacheInput { /// Creates a new builder-style object to manufacture [`CreateApiCacheInput`](crate::operation::create_api_cache::CreateApiCacheInput). @@ -146,6 +166,7 @@ pub struct CreateApiCacheInputBuilder { pub(crate) at_rest_encryption_enabled: ::std::option::Option, pub(crate) api_caching_behavior: ::std::option::Option, pub(crate) r#type: ::std::option::Option, + pub(crate) health_metrics_config: ::std::option::Option, } impl CreateApiCacheInputBuilder { ///

The GraphQL API ID.

@@ -365,6 +386,41 @@ impl CreateApiCacheInputBuilder { pub fn get_type(&self) -> &::std::option::Option { &self.r#type } + ///

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

+ ///
    + ///
  • + ///

    NetworkBandwidthOutAllowanceExceeded: The number of times a specified GraphQL operation was called.

  • + ///
  • + ///

    EngineCPUUtilization: The number of GraphQL errors that occurred during a specified GraphQL operation.

  • + ///
+ ///

Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.

+ pub fn health_metrics_config(mut self, input: crate::types::CacheHealthMetricsConfig) -> Self { + self.health_metrics_config = ::std::option::Option::Some(input); + self + } + ///

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

+ ///
    + ///
  • + ///

    NetworkBandwidthOutAllowanceExceeded: The number of times a specified GraphQL operation was called.

  • + ///
  • + ///

    EngineCPUUtilization: The number of GraphQL errors that occurred during a specified GraphQL operation.

  • + ///
+ ///

Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.

+ pub fn set_health_metrics_config(mut self, input: ::std::option::Option) -> Self { + self.health_metrics_config = input; + self + } + ///

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

+ ///
    + ///
  • + ///

    NetworkBandwidthOutAllowanceExceeded: The number of times a specified GraphQL operation was called.

  • + ///
  • + ///

    EngineCPUUtilization: The number of GraphQL errors that occurred during a specified GraphQL operation.

  • + ///
+ ///

Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.

+ pub fn get_health_metrics_config(&self) -> &::std::option::Option { + &self.health_metrics_config + } /// Consumes the builder and constructs a [`CreateApiCacheInput`](crate::operation::create_api_cache::CreateApiCacheInput). pub fn build( self, @@ -376,6 +432,7 @@ impl CreateApiCacheInputBuilder { at_rest_encryption_enabled: self.at_rest_encryption_enabled, api_caching_behavior: self.api_caching_behavior, r#type: self.r#type, + health_metrics_config: self.health_metrics_config, }) } } diff --git a/sdk/appsync/src/operation/create_api_cache/builders.rs b/sdk/appsync/src/operation/create_api_cache/builders.rs index 6c0fe9340fed..fbc6f49ae305 100644 --- a/sdk/appsync/src/operation/create_api_cache/builders.rs +++ b/sdk/appsync/src/operation/create_api_cache/builders.rs @@ -321,4 +321,39 @@ impl CreateApiCacheFluentBuilder { pub fn get_type(&self) -> &::std::option::Option { self.inner.get_type() } + ///

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

+ ///
    + ///
  • + ///

    NetworkBandwidthOutAllowanceExceeded: The number of times a specified GraphQL operation was called.

  • + ///
  • + ///

    EngineCPUUtilization: The number of GraphQL errors that occurred during a specified GraphQL operation.

  • + ///
+ ///

Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.

+ pub fn health_metrics_config(mut self, input: crate::types::CacheHealthMetricsConfig) -> Self { + self.inner = self.inner.health_metrics_config(input); + self + } + ///

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

+ ///
    + ///
  • + ///

    NetworkBandwidthOutAllowanceExceeded: The number of times a specified GraphQL operation was called.

  • + ///
  • + ///

    EngineCPUUtilization: The number of GraphQL errors that occurred during a specified GraphQL operation.

  • + ///
+ ///

Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.

+ pub fn set_health_metrics_config(mut self, input: ::std::option::Option) -> Self { + self.inner = self.inner.set_health_metrics_config(input); + self + } + ///

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

+ ///
    + ///
  • + ///

    NetworkBandwidthOutAllowanceExceeded: The number of times a specified GraphQL operation was called.

  • + ///
  • + ///

    EngineCPUUtilization: The number of GraphQL errors that occurred during a specified GraphQL operation.

  • + ///
+ ///

Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.

+ pub fn get_health_metrics_config(&self) -> &::std::option::Option { + self.inner.get_health_metrics_config() + } } diff --git a/sdk/appsync/src/operation/create_data_source/_create_data_source_input.rs b/sdk/appsync/src/operation/create_data_source/_create_data_source_input.rs index 3cbcffbee1a5..13b214edfea2 100644 --- a/sdk/appsync/src/operation/create_data_source/_create_data_source_input.rs +++ b/sdk/appsync/src/operation/create_data_source/_create_data_source_input.rs @@ -28,6 +28,9 @@ pub struct CreateDataSourceInput { pub relational_database_config: ::std::option::Option, ///

Amazon EventBridge settings.

pub event_bridge_config: ::std::option::Option, + ///

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub metrics_config: ::std::option::Option, } impl CreateDataSourceInput { ///

The API ID for the GraphQL API for the DataSource.

@@ -79,6 +82,11 @@ impl CreateDataSourceInput { pub fn event_bridge_config(&self) -> ::std::option::Option<&crate::types::EventBridgeDataSourceConfig> { self.event_bridge_config.as_ref() } + ///

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn metrics_config(&self) -> ::std::option::Option<&crate::types::DataSourceLevelMetricsConfig> { + self.metrics_config.as_ref() + } } impl CreateDataSourceInput { /// Creates a new builder-style object to manufacture [`CreateDataSourceInput`](crate::operation::create_data_source::CreateDataSourceInput). @@ -103,6 +111,7 @@ pub struct CreateDataSourceInputBuilder { pub(crate) http_config: ::std::option::Option, pub(crate) relational_database_config: ::std::option::Option, pub(crate) event_bridge_config: ::std::option::Option, + pub(crate) metrics_config: ::std::option::Option, } impl CreateDataSourceInputBuilder { ///

The API ID for the GraphQL API for the DataSource.

@@ -279,6 +288,23 @@ impl CreateDataSourceInputBuilder { pub fn get_event_bridge_config(&self) -> &::std::option::Option { &self.event_bridge_config } + ///

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn metrics_config(mut self, input: crate::types::DataSourceLevelMetricsConfig) -> Self { + self.metrics_config = ::std::option::Option::Some(input); + self + } + ///

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn set_metrics_config(mut self, input: ::std::option::Option) -> Self { + self.metrics_config = input; + self + } + ///

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn get_metrics_config(&self) -> &::std::option::Option { + &self.metrics_config + } /// Consumes the builder and constructs a [`CreateDataSourceInput`](crate::operation::create_data_source::CreateDataSourceInput). pub fn build( self, @@ -296,6 +322,7 @@ impl CreateDataSourceInputBuilder { http_config: self.http_config, relational_database_config: self.relational_database_config, event_bridge_config: self.event_bridge_config, + metrics_config: self.metrics_config, }) } } diff --git a/sdk/appsync/src/operation/create_data_source/builders.rs b/sdk/appsync/src/operation/create_data_source/builders.rs index 0cb154d61a59..b503e0b9872c 100644 --- a/sdk/appsync/src/operation/create_data_source/builders.rs +++ b/sdk/appsync/src/operation/create_data_source/builders.rs @@ -279,4 +279,21 @@ impl CreateDataSourceFluentBuilder { pub fn get_event_bridge_config(&self) -> &::std::option::Option { self.inner.get_event_bridge_config() } + ///

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn metrics_config(mut self, input: crate::types::DataSourceLevelMetricsConfig) -> Self { + self.inner = self.inner.metrics_config(input); + self + } + ///

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn set_metrics_config(mut self, input: ::std::option::Option) -> Self { + self.inner = self.inner.set_metrics_config(input); + self + } + ///

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn get_metrics_config(&self) -> &::std::option::Option { + self.inner.get_metrics_config() + } } diff --git a/sdk/appsync/src/operation/create_function.rs b/sdk/appsync/src/operation/create_function.rs index 1e6586232334..4cc773401c0d 100644 --- a/sdk/appsync/src/operation/create_function.rs +++ b/sdk/appsync/src/operation/create_function.rs @@ -251,6 +251,8 @@ impl ::aws_smithy_runtime_api::client::interceptors::Intercept for CreateFunctio #[non_exhaustive] #[derive(::std::fmt::Debug)] pub enum CreateFunctionError { + ///

The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.

+ BadRequestException(crate::types::error::BadRequestException), ///

Another modification is in progress at this time and it must complete before you can make your change.

ConcurrentModificationException(crate::types::error::ConcurrentModificationException), ///

An internal AppSync error occurred. Try your request again.

@@ -292,6 +294,7 @@ impl CreateFunctionError { /// pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { + Self::BadRequestException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::ConcurrentModificationException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalFailureException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::NotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), @@ -299,6 +302,10 @@ impl CreateFunctionError { Self::Unhandled(e) => &e.meta, } } + /// Returns `true` if the error kind is `CreateFunctionError::BadRequestException`. + pub fn is_bad_request_exception(&self) -> bool { + matches!(self, Self::BadRequestException(_)) + } /// Returns `true` if the error kind is `CreateFunctionError::ConcurrentModificationException`. pub fn is_concurrent_modification_exception(&self) -> bool { matches!(self, Self::ConcurrentModificationException(_)) @@ -319,6 +326,7 @@ impl CreateFunctionError { impl ::std::error::Error for CreateFunctionError { fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { match self { + Self::BadRequestException(_inner) => ::std::option::Option::Some(_inner), Self::ConcurrentModificationException(_inner) => ::std::option::Option::Some(_inner), Self::InternalFailureException(_inner) => ::std::option::Option::Some(_inner), Self::NotFoundException(_inner) => ::std::option::Option::Some(_inner), @@ -330,6 +338,7 @@ impl ::std::error::Error for CreateFunctionError { impl ::std::fmt::Display for CreateFunctionError { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match self { + Self::BadRequestException(_inner) => _inner.fmt(f), Self::ConcurrentModificationException(_inner) => _inner.fmt(f), Self::InternalFailureException(_inner) => _inner.fmt(f), Self::NotFoundException(_inner) => _inner.fmt(f), @@ -355,6 +364,7 @@ impl ::aws_smithy_types::retry::ProvideErrorKind for CreateFunctionError { impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for CreateFunctionError { fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { + Self::BadRequestException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::ConcurrentModificationException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::InternalFailureException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::NotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), diff --git a/sdk/appsync/src/operation/create_graphql_api/_create_graphql_api_input.rs b/sdk/appsync/src/operation/create_graphql_api/_create_graphql_api_input.rs index c55cec67b0a7..b95183f68f1f 100644 --- a/sdk/appsync/src/operation/create_graphql_api/_create_graphql_api_input.rs +++ b/sdk/appsync/src/operation/create_graphql_api/_create_graphql_api_input.rs @@ -38,6 +38,8 @@ pub struct CreateGraphqlApiInput { pub query_depth_limit: ::std::option::Option, ///

The maximum number of resolvers that can be invoked in a single request. The default value is 0 (or unspecified), which will set the limit to 10000. When specified, the limit value can be between 1 and 10000. This field will produce a limit error if the operation falls out of bounds.

pub resolver_count_limit: ::std::option::Option, + ///

The enhancedMetricsConfig object.

+ pub enhanced_metrics_config: ::std::option::Option, } impl CreateGraphqlApiInput { ///

A user-supplied name for the GraphqlApi.

@@ -109,6 +111,10 @@ impl CreateGraphqlApiInput { pub fn resolver_count_limit(&self) -> ::std::option::Option { self.resolver_count_limit } + ///

The enhancedMetricsConfig object.

+ pub fn enhanced_metrics_config(&self) -> ::std::option::Option<&crate::types::EnhancedMetricsConfig> { + self.enhanced_metrics_config.as_ref() + } } impl CreateGraphqlApiInput { /// Creates a new builder-style object to manufacture [`CreateGraphqlApiInput`](crate::operation::create_graphql_api::CreateGraphqlApiInput). @@ -137,6 +143,7 @@ pub struct CreateGraphqlApiInputBuilder { pub(crate) introspection_config: ::std::option::Option, pub(crate) query_depth_limit: ::std::option::Option, pub(crate) resolver_count_limit: ::std::option::Option, + pub(crate) enhanced_metrics_config: ::std::option::Option, } impl CreateGraphqlApiInputBuilder { ///

A user-supplied name for the GraphqlApi.

@@ -389,6 +396,20 @@ impl CreateGraphqlApiInputBuilder { pub fn get_resolver_count_limit(&self) -> &::std::option::Option { &self.resolver_count_limit } + ///

The enhancedMetricsConfig object.

+ pub fn enhanced_metrics_config(mut self, input: crate::types::EnhancedMetricsConfig) -> Self { + self.enhanced_metrics_config = ::std::option::Option::Some(input); + self + } + ///

The enhancedMetricsConfig object.

+ pub fn set_enhanced_metrics_config(mut self, input: ::std::option::Option) -> Self { + self.enhanced_metrics_config = input; + self + } + ///

The enhancedMetricsConfig object.

+ pub fn get_enhanced_metrics_config(&self) -> &::std::option::Option { + &self.enhanced_metrics_config + } /// Consumes the builder and constructs a [`CreateGraphqlApiInput`](crate::operation::create_graphql_api::CreateGraphqlApiInput). pub fn build( self, @@ -410,6 +431,7 @@ impl CreateGraphqlApiInputBuilder { introspection_config: self.introspection_config, query_depth_limit: self.query_depth_limit, resolver_count_limit: self.resolver_count_limit, + enhanced_metrics_config: self.enhanced_metrics_config, }) } } diff --git a/sdk/appsync/src/operation/create_graphql_api/builders.rs b/sdk/appsync/src/operation/create_graphql_api/builders.rs index d35089cf5393..04529423e1c5 100644 --- a/sdk/appsync/src/operation/create_graphql_api/builders.rs +++ b/sdk/appsync/src/operation/create_graphql_api/builders.rs @@ -352,4 +352,18 @@ impl CreateGraphqlApiFluentBuilder { pub fn get_resolver_count_limit(&self) -> &::std::option::Option { self.inner.get_resolver_count_limit() } + ///

The enhancedMetricsConfig object.

+ pub fn enhanced_metrics_config(mut self, input: crate::types::EnhancedMetricsConfig) -> Self { + self.inner = self.inner.enhanced_metrics_config(input); + self + } + ///

The enhancedMetricsConfig object.

+ pub fn set_enhanced_metrics_config(mut self, input: ::std::option::Option) -> Self { + self.inner = self.inner.set_enhanced_metrics_config(input); + self + } + ///

The enhancedMetricsConfig object.

+ pub fn get_enhanced_metrics_config(&self) -> &::std::option::Option { + self.inner.get_enhanced_metrics_config() + } } diff --git a/sdk/appsync/src/operation/create_resolver/_create_resolver_input.rs b/sdk/appsync/src/operation/create_resolver/_create_resolver_input.rs index 09da6c99d332..18f0c728150c 100644 --- a/sdk/appsync/src/operation/create_resolver/_create_resolver_input.rs +++ b/sdk/appsync/src/operation/create_resolver/_create_resolver_input.rs @@ -37,6 +37,9 @@ pub struct CreateResolverInput { pub runtime: ::std::option::Option, ///

The resolver code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.

pub code: ::std::option::Option<::std::string::String>, + ///

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub metrics_config: ::std::option::Option, } impl CreateResolverInput { ///

The ID for the GraphQL API for which the resolver is being created.

@@ -99,6 +102,11 @@ impl CreateResolverInput { pub fn code(&self) -> ::std::option::Option<&str> { self.code.as_deref() } + ///

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn metrics_config(&self) -> ::std::option::Option<&crate::types::ResolverLevelMetricsConfig> { + self.metrics_config.as_ref() + } } impl CreateResolverInput { /// Creates a new builder-style object to manufacture [`CreateResolverInput`](crate::operation::create_resolver::CreateResolverInput). @@ -124,6 +132,7 @@ pub struct CreateResolverInputBuilder { pub(crate) max_batch_size: ::std::option::Option, pub(crate) runtime: ::std::option::Option, pub(crate) code: ::std::option::Option<::std::string::String>, + pub(crate) metrics_config: ::std::option::Option, } impl CreateResolverInputBuilder { ///

The ID for the GraphQL API for which the resolver is being created.

@@ -335,6 +344,23 @@ impl CreateResolverInputBuilder { pub fn get_code(&self) -> &::std::option::Option<::std::string::String> { &self.code } + ///

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn metrics_config(mut self, input: crate::types::ResolverLevelMetricsConfig) -> Self { + self.metrics_config = ::std::option::Option::Some(input); + self + } + ///

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn set_metrics_config(mut self, input: ::std::option::Option) -> Self { + self.metrics_config = input; + self + } + ///

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn get_metrics_config(&self) -> &::std::option::Option { + &self.metrics_config + } /// Consumes the builder and constructs a [`CreateResolverInput`](crate::operation::create_resolver::CreateResolverInput). pub fn build( self, @@ -353,6 +379,7 @@ impl CreateResolverInputBuilder { max_batch_size: self.max_batch_size, runtime: self.runtime, code: self.code, + metrics_config: self.metrics_config, }) } } diff --git a/sdk/appsync/src/operation/create_resolver/builders.rs b/sdk/appsync/src/operation/create_resolver/builders.rs index ff5b3ada5945..7310805b2576 100644 --- a/sdk/appsync/src/operation/create_resolver/builders.rs +++ b/sdk/appsync/src/operation/create_resolver/builders.rs @@ -315,4 +315,21 @@ impl CreateResolverFluentBuilder { pub fn get_code(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_code() } + ///

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn metrics_config(mut self, input: crate::types::ResolverLevelMetricsConfig) -> Self { + self.inner = self.inner.metrics_config(input); + self + } + ///

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn set_metrics_config(mut self, input: ::std::option::Option) -> Self { + self.inner = self.inner.set_metrics_config(input); + self + } + ///

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn get_metrics_config(&self) -> &::std::option::Option { + self.inner.get_metrics_config() + } } diff --git a/sdk/appsync/src/operation/delete_function.rs b/sdk/appsync/src/operation/delete_function.rs index e56a2f136039..f4900e32279c 100644 --- a/sdk/appsync/src/operation/delete_function.rs +++ b/sdk/appsync/src/operation/delete_function.rs @@ -264,6 +264,8 @@ impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DeleteFunctio #[non_exhaustive] #[derive(::std::fmt::Debug)] pub enum DeleteFunctionError { + ///

The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.

+ BadRequestException(crate::types::error::BadRequestException), ///

Another modification is in progress at this time and it must complete before you can make your change.

ConcurrentModificationException(crate::types::error::ConcurrentModificationException), ///

An internal AppSync error occurred. Try your request again.

@@ -305,6 +307,7 @@ impl DeleteFunctionError { /// pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { + Self::BadRequestException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::ConcurrentModificationException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalFailureException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::NotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), @@ -312,6 +315,10 @@ impl DeleteFunctionError { Self::Unhandled(e) => &e.meta, } } + /// Returns `true` if the error kind is `DeleteFunctionError::BadRequestException`. + pub fn is_bad_request_exception(&self) -> bool { + matches!(self, Self::BadRequestException(_)) + } /// Returns `true` if the error kind is `DeleteFunctionError::ConcurrentModificationException`. pub fn is_concurrent_modification_exception(&self) -> bool { matches!(self, Self::ConcurrentModificationException(_)) @@ -332,6 +339,7 @@ impl DeleteFunctionError { impl ::std::error::Error for DeleteFunctionError { fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { match self { + Self::BadRequestException(_inner) => ::std::option::Option::Some(_inner), Self::ConcurrentModificationException(_inner) => ::std::option::Option::Some(_inner), Self::InternalFailureException(_inner) => ::std::option::Option::Some(_inner), Self::NotFoundException(_inner) => ::std::option::Option::Some(_inner), @@ -343,6 +351,7 @@ impl ::std::error::Error for DeleteFunctionError { impl ::std::fmt::Display for DeleteFunctionError { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match self { + Self::BadRequestException(_inner) => _inner.fmt(f), Self::ConcurrentModificationException(_inner) => _inner.fmt(f), Self::InternalFailureException(_inner) => _inner.fmt(f), Self::NotFoundException(_inner) => _inner.fmt(f), @@ -368,6 +377,7 @@ impl ::aws_smithy_types::retry::ProvideErrorKind for DeleteFunctionError { impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for DeleteFunctionError { fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { + Self::BadRequestException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::ConcurrentModificationException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::InternalFailureException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::NotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), diff --git a/sdk/appsync/src/operation/update_api_cache/_update_api_cache_input.rs b/sdk/appsync/src/operation/update_api_cache/_update_api_cache_input.rs index ece1c5c08949..47ab29e7b53a 100644 --- a/sdk/appsync/src/operation/update_api_cache/_update_api_cache_input.rs +++ b/sdk/appsync/src/operation/update_api_cache/_update_api_cache_input.rs @@ -55,6 +55,15 @@ pub struct UpdateApiCacheInput { ///

R4_8XLARGE: A r4.8xlarge instance type.

/// pub r#type: ::std::option::Option, + ///

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

+ ///
    + ///
  • + ///

    NetworkBandwidthOutAllowanceExceeded: The number of times a specified GraphQL operation was called.

  • + ///
  • + ///

    EngineCPUUtilization: The number of GraphQL errors that occurred during a specified GraphQL operation.

  • + ///
+ ///

Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.

+ pub health_metrics_config: ::std::option::Option, } impl UpdateApiCacheInput { ///

The GraphQL API ID.

@@ -116,6 +125,17 @@ impl UpdateApiCacheInput { pub fn r#type(&self) -> ::std::option::Option<&crate::types::ApiCacheType> { self.r#type.as_ref() } + ///

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

+ ///
    + ///
  • + ///

    NetworkBandwidthOutAllowanceExceeded: The number of times a specified GraphQL operation was called.

  • + ///
  • + ///

    EngineCPUUtilization: The number of GraphQL errors that occurred during a specified GraphQL operation.

  • + ///
+ ///

Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.

+ pub fn health_metrics_config(&self) -> ::std::option::Option<&crate::types::CacheHealthMetricsConfig> { + self.health_metrics_config.as_ref() + } } impl UpdateApiCacheInput { /// Creates a new builder-style object to manufacture [`UpdateApiCacheInput`](crate::operation::update_api_cache::UpdateApiCacheInput). @@ -132,6 +152,7 @@ pub struct UpdateApiCacheInputBuilder { pub(crate) ttl: ::std::option::Option, pub(crate) api_caching_behavior: ::std::option::Option, pub(crate) r#type: ::std::option::Option, + pub(crate) health_metrics_config: ::std::option::Option, } impl UpdateApiCacheInputBuilder { ///

The GraphQL API ID.

@@ -323,6 +344,41 @@ impl UpdateApiCacheInputBuilder { pub fn get_type(&self) -> &::std::option::Option { &self.r#type } + ///

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

+ ///
    + ///
  • + ///

    NetworkBandwidthOutAllowanceExceeded: The number of times a specified GraphQL operation was called.

  • + ///
  • + ///

    EngineCPUUtilization: The number of GraphQL errors that occurred during a specified GraphQL operation.

  • + ///
+ ///

Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.

+ pub fn health_metrics_config(mut self, input: crate::types::CacheHealthMetricsConfig) -> Self { + self.health_metrics_config = ::std::option::Option::Some(input); + self + } + ///

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

+ ///
    + ///
  • + ///

    NetworkBandwidthOutAllowanceExceeded: The number of times a specified GraphQL operation was called.

  • + ///
  • + ///

    EngineCPUUtilization: The number of GraphQL errors that occurred during a specified GraphQL operation.

  • + ///
+ ///

Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.

+ pub fn set_health_metrics_config(mut self, input: ::std::option::Option) -> Self { + self.health_metrics_config = input; + self + } + ///

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

+ ///
    + ///
  • + ///

    NetworkBandwidthOutAllowanceExceeded: The number of times a specified GraphQL operation was called.

  • + ///
  • + ///

    EngineCPUUtilization: The number of GraphQL errors that occurred during a specified GraphQL operation.

  • + ///
+ ///

Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.

+ pub fn get_health_metrics_config(&self) -> &::std::option::Option { + &self.health_metrics_config + } /// Consumes the builder and constructs a [`UpdateApiCacheInput`](crate::operation::update_api_cache::UpdateApiCacheInput). pub fn build( self, @@ -332,6 +388,7 @@ impl UpdateApiCacheInputBuilder { ttl: self.ttl, api_caching_behavior: self.api_caching_behavior, r#type: self.r#type, + health_metrics_config: self.health_metrics_config, }) } } diff --git a/sdk/appsync/src/operation/update_api_cache/builders.rs b/sdk/appsync/src/operation/update_api_cache/builders.rs index 4f4c28546d47..da9769833397 100644 --- a/sdk/appsync/src/operation/update_api_cache/builders.rs +++ b/sdk/appsync/src/operation/update_api_cache/builders.rs @@ -293,4 +293,39 @@ impl UpdateApiCacheFluentBuilder { pub fn get_type(&self) -> &::std::option::Option { self.inner.get_type() } + ///

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

+ ///
    + ///
  • + ///

    NetworkBandwidthOutAllowanceExceeded: The number of times a specified GraphQL operation was called.

  • + ///
  • + ///

    EngineCPUUtilization: The number of GraphQL errors that occurred during a specified GraphQL operation.

  • + ///
+ ///

Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.

+ pub fn health_metrics_config(mut self, input: crate::types::CacheHealthMetricsConfig) -> Self { + self.inner = self.inner.health_metrics_config(input); + self + } + ///

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

+ ///
    + ///
  • + ///

    NetworkBandwidthOutAllowanceExceeded: The number of times a specified GraphQL operation was called.

  • + ///
  • + ///

    EngineCPUUtilization: The number of GraphQL errors that occurred during a specified GraphQL operation.

  • + ///
+ ///

Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.

+ pub fn set_health_metrics_config(mut self, input: ::std::option::Option) -> Self { + self.inner = self.inner.set_health_metrics_config(input); + self + } + ///

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

+ ///
    + ///
  • + ///

    NetworkBandwidthOutAllowanceExceeded: The number of times a specified GraphQL operation was called.

  • + ///
  • + ///

    EngineCPUUtilization: The number of GraphQL errors that occurred during a specified GraphQL operation.

  • + ///
+ ///

Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.

+ pub fn get_health_metrics_config(&self) -> &::std::option::Option { + self.inner.get_health_metrics_config() + } } diff --git a/sdk/appsync/src/operation/update_data_source/_update_data_source_input.rs b/sdk/appsync/src/operation/update_data_source/_update_data_source_input.rs index b134ec1647b8..68e7ff17c4d5 100644 --- a/sdk/appsync/src/operation/update_data_source/_update_data_source_input.rs +++ b/sdk/appsync/src/operation/update_data_source/_update_data_source_input.rs @@ -28,6 +28,9 @@ pub struct UpdateDataSourceInput { pub relational_database_config: ::std::option::Option, ///

The new Amazon EventBridge settings.

pub event_bridge_config: ::std::option::Option, + ///

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub metrics_config: ::std::option::Option, } impl UpdateDataSourceInput { ///

The API ID.

@@ -79,6 +82,11 @@ impl UpdateDataSourceInput { pub fn event_bridge_config(&self) -> ::std::option::Option<&crate::types::EventBridgeDataSourceConfig> { self.event_bridge_config.as_ref() } + ///

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn metrics_config(&self) -> ::std::option::Option<&crate::types::DataSourceLevelMetricsConfig> { + self.metrics_config.as_ref() + } } impl UpdateDataSourceInput { /// Creates a new builder-style object to manufacture [`UpdateDataSourceInput`](crate::operation::update_data_source::UpdateDataSourceInput). @@ -103,6 +111,7 @@ pub struct UpdateDataSourceInputBuilder { pub(crate) http_config: ::std::option::Option, pub(crate) relational_database_config: ::std::option::Option, pub(crate) event_bridge_config: ::std::option::Option, + pub(crate) metrics_config: ::std::option::Option, } impl UpdateDataSourceInputBuilder { ///

The API ID.

@@ -279,6 +288,23 @@ impl UpdateDataSourceInputBuilder { pub fn get_event_bridge_config(&self) -> &::std::option::Option { &self.event_bridge_config } + ///

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn metrics_config(mut self, input: crate::types::DataSourceLevelMetricsConfig) -> Self { + self.metrics_config = ::std::option::Option::Some(input); + self + } + ///

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn set_metrics_config(mut self, input: ::std::option::Option) -> Self { + self.metrics_config = input; + self + } + ///

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn get_metrics_config(&self) -> &::std::option::Option { + &self.metrics_config + } /// Consumes the builder and constructs a [`UpdateDataSourceInput`](crate::operation::update_data_source::UpdateDataSourceInput). pub fn build( self, @@ -296,6 +322,7 @@ impl UpdateDataSourceInputBuilder { http_config: self.http_config, relational_database_config: self.relational_database_config, event_bridge_config: self.event_bridge_config, + metrics_config: self.metrics_config, }) } } diff --git a/sdk/appsync/src/operation/update_data_source/builders.rs b/sdk/appsync/src/operation/update_data_source/builders.rs index c5cf7d66eb73..4bcff9fc0628 100644 --- a/sdk/appsync/src/operation/update_data_source/builders.rs +++ b/sdk/appsync/src/operation/update_data_source/builders.rs @@ -279,4 +279,21 @@ impl UpdateDataSourceFluentBuilder { pub fn get_event_bridge_config(&self) -> &::std::option::Option { self.inner.get_event_bridge_config() } + ///

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn metrics_config(mut self, input: crate::types::DataSourceLevelMetricsConfig) -> Self { + self.inner = self.inner.metrics_config(input); + self + } + ///

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn set_metrics_config(mut self, input: ::std::option::Option) -> Self { + self.inner = self.inner.set_metrics_config(input); + self + } + ///

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn get_metrics_config(&self) -> &::std::option::Option { + self.inner.get_metrics_config() + } } diff --git a/sdk/appsync/src/operation/update_function.rs b/sdk/appsync/src/operation/update_function.rs index 283447840cf1..30d22b1af1ed 100644 --- a/sdk/appsync/src/operation/update_function.rs +++ b/sdk/appsync/src/operation/update_function.rs @@ -268,6 +268,8 @@ impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateFunctio #[non_exhaustive] #[derive(::std::fmt::Debug)] pub enum UpdateFunctionError { + ///

The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.

+ BadRequestException(crate::types::error::BadRequestException), ///

Another modification is in progress at this time and it must complete before you can make your change.

ConcurrentModificationException(crate::types::error::ConcurrentModificationException), ///

An internal AppSync error occurred. Try your request again.

@@ -309,6 +311,7 @@ impl UpdateFunctionError { /// pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { + Self::BadRequestException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::ConcurrentModificationException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalFailureException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::NotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), @@ -316,6 +319,10 @@ impl UpdateFunctionError { Self::Unhandled(e) => &e.meta, } } + /// Returns `true` if the error kind is `UpdateFunctionError::BadRequestException`. + pub fn is_bad_request_exception(&self) -> bool { + matches!(self, Self::BadRequestException(_)) + } /// Returns `true` if the error kind is `UpdateFunctionError::ConcurrentModificationException`. pub fn is_concurrent_modification_exception(&self) -> bool { matches!(self, Self::ConcurrentModificationException(_)) @@ -336,6 +343,7 @@ impl UpdateFunctionError { impl ::std::error::Error for UpdateFunctionError { fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { match self { + Self::BadRequestException(_inner) => ::std::option::Option::Some(_inner), Self::ConcurrentModificationException(_inner) => ::std::option::Option::Some(_inner), Self::InternalFailureException(_inner) => ::std::option::Option::Some(_inner), Self::NotFoundException(_inner) => ::std::option::Option::Some(_inner), @@ -347,6 +355,7 @@ impl ::std::error::Error for UpdateFunctionError { impl ::std::fmt::Display for UpdateFunctionError { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match self { + Self::BadRequestException(_inner) => _inner.fmt(f), Self::ConcurrentModificationException(_inner) => _inner.fmt(f), Self::InternalFailureException(_inner) => _inner.fmt(f), Self::NotFoundException(_inner) => _inner.fmt(f), @@ -372,6 +381,7 @@ impl ::aws_smithy_types::retry::ProvideErrorKind for UpdateFunctionError { impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for UpdateFunctionError { fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { + Self::BadRequestException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::ConcurrentModificationException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::InternalFailureException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::NotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), diff --git a/sdk/appsync/src/operation/update_graphql_api/_update_graphql_api_input.rs b/sdk/appsync/src/operation/update_graphql_api/_update_graphql_api_input.rs index f7e87a89dded..4fd27ceea061 100644 --- a/sdk/appsync/src/operation/update_graphql_api/_update_graphql_api_input.rs +++ b/sdk/appsync/src/operation/update_graphql_api/_update_graphql_api_input.rs @@ -34,6 +34,8 @@ pub struct UpdateGraphqlApiInput { pub query_depth_limit: ::std::option::Option, ///

The maximum number of resolvers that can be invoked in a single request. The default value is 0 (or unspecified), which will set the limit to 10000. When specified, the limit value can be between 1 and 10000. This field will produce a limit error if the operation falls out of bounds.

pub resolver_count_limit: ::std::option::Option, + ///

The enhancedMetricsConfig object.

+ pub enhanced_metrics_config: ::std::option::Option, } impl UpdateGraphqlApiInput { ///

The API ID.

@@ -97,6 +99,10 @@ impl UpdateGraphqlApiInput { pub fn resolver_count_limit(&self) -> ::std::option::Option { self.resolver_count_limit } + ///

The enhancedMetricsConfig object.

+ pub fn enhanced_metrics_config(&self) -> ::std::option::Option<&crate::types::EnhancedMetricsConfig> { + self.enhanced_metrics_config.as_ref() + } } impl UpdateGraphqlApiInput { /// Creates a new builder-style object to manufacture [`UpdateGraphqlApiInput`](crate::operation::update_graphql_api::UpdateGraphqlApiInput). @@ -123,6 +129,7 @@ pub struct UpdateGraphqlApiInputBuilder { pub(crate) introspection_config: ::std::option::Option, pub(crate) query_depth_limit: ::std::option::Option, pub(crate) resolver_count_limit: ::std::option::Option, + pub(crate) enhanced_metrics_config: ::std::option::Option, } impl UpdateGraphqlApiInputBuilder { ///

The API ID.

@@ -341,6 +348,20 @@ impl UpdateGraphqlApiInputBuilder { pub fn get_resolver_count_limit(&self) -> &::std::option::Option { &self.resolver_count_limit } + ///

The enhancedMetricsConfig object.

+ pub fn enhanced_metrics_config(mut self, input: crate::types::EnhancedMetricsConfig) -> Self { + self.enhanced_metrics_config = ::std::option::Option::Some(input); + self + } + ///

The enhancedMetricsConfig object.

+ pub fn set_enhanced_metrics_config(mut self, input: ::std::option::Option) -> Self { + self.enhanced_metrics_config = input; + self + } + ///

The enhancedMetricsConfig object.

+ pub fn get_enhanced_metrics_config(&self) -> &::std::option::Option { + &self.enhanced_metrics_config + } /// Consumes the builder and constructs a [`UpdateGraphqlApiInput`](crate::operation::update_graphql_api::UpdateGraphqlApiInput). pub fn build( self, @@ -360,6 +381,7 @@ impl UpdateGraphqlApiInputBuilder { introspection_config: self.introspection_config, query_depth_limit: self.query_depth_limit, resolver_count_limit: self.resolver_count_limit, + enhanced_metrics_config: self.enhanced_metrics_config, }) } } diff --git a/sdk/appsync/src/operation/update_graphql_api/builders.rs b/sdk/appsync/src/operation/update_graphql_api/builders.rs index ab97218fc1e1..fb4c418aef08 100644 --- a/sdk/appsync/src/operation/update_graphql_api/builders.rs +++ b/sdk/appsync/src/operation/update_graphql_api/builders.rs @@ -320,4 +320,18 @@ impl UpdateGraphqlApiFluentBuilder { pub fn get_resolver_count_limit(&self) -> &::std::option::Option { self.inner.get_resolver_count_limit() } + ///

The enhancedMetricsConfig object.

+ pub fn enhanced_metrics_config(mut self, input: crate::types::EnhancedMetricsConfig) -> Self { + self.inner = self.inner.enhanced_metrics_config(input); + self + } + ///

The enhancedMetricsConfig object.

+ pub fn set_enhanced_metrics_config(mut self, input: ::std::option::Option) -> Self { + self.inner = self.inner.set_enhanced_metrics_config(input); + self + } + ///

The enhancedMetricsConfig object.

+ pub fn get_enhanced_metrics_config(&self) -> &::std::option::Option { + self.inner.get_enhanced_metrics_config() + } } diff --git a/sdk/appsync/src/operation/update_resolver/_update_resolver_input.rs b/sdk/appsync/src/operation/update_resolver/_update_resolver_input.rs index 1d8abd84e26f..7f019a45e91c 100644 --- a/sdk/appsync/src/operation/update_resolver/_update_resolver_input.rs +++ b/sdk/appsync/src/operation/update_resolver/_update_resolver_input.rs @@ -37,6 +37,9 @@ pub struct UpdateResolverInput { pub runtime: ::std::option::Option, ///

The resolver code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.

pub code: ::std::option::Option<::std::string::String>, + ///

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub metrics_config: ::std::option::Option, } impl UpdateResolverInput { ///

The API ID.

@@ -99,6 +102,11 @@ impl UpdateResolverInput { pub fn code(&self) -> ::std::option::Option<&str> { self.code.as_deref() } + ///

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn metrics_config(&self) -> ::std::option::Option<&crate::types::ResolverLevelMetricsConfig> { + self.metrics_config.as_ref() + } } impl UpdateResolverInput { /// Creates a new builder-style object to manufacture [`UpdateResolverInput`](crate::operation::update_resolver::UpdateResolverInput). @@ -124,6 +132,7 @@ pub struct UpdateResolverInputBuilder { pub(crate) max_batch_size: ::std::option::Option, pub(crate) runtime: ::std::option::Option, pub(crate) code: ::std::option::Option<::std::string::String>, + pub(crate) metrics_config: ::std::option::Option, } impl UpdateResolverInputBuilder { ///

The API ID.

@@ -335,6 +344,23 @@ impl UpdateResolverInputBuilder { pub fn get_code(&self) -> &::std::option::Option<::std::string::String> { &self.code } + ///

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn metrics_config(mut self, input: crate::types::ResolverLevelMetricsConfig) -> Self { + self.metrics_config = ::std::option::Option::Some(input); + self + } + ///

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn set_metrics_config(mut self, input: ::std::option::Option) -> Self { + self.metrics_config = input; + self + } + ///

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn get_metrics_config(&self) -> &::std::option::Option { + &self.metrics_config + } /// Consumes the builder and constructs a [`UpdateResolverInput`](crate::operation::update_resolver::UpdateResolverInput). pub fn build( self, @@ -353,6 +379,7 @@ impl UpdateResolverInputBuilder { max_batch_size: self.max_batch_size, runtime: self.runtime, code: self.code, + metrics_config: self.metrics_config, }) } } diff --git a/sdk/appsync/src/operation/update_resolver/builders.rs b/sdk/appsync/src/operation/update_resolver/builders.rs index 94d3baeae113..3fe5b1d5d6d1 100644 --- a/sdk/appsync/src/operation/update_resolver/builders.rs +++ b/sdk/appsync/src/operation/update_resolver/builders.rs @@ -314,4 +314,21 @@ impl UpdateResolverFluentBuilder { pub fn get_code(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_code() } + ///

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn metrics_config(mut self, input: crate::types::ResolverLevelMetricsConfig) -> Self { + self.inner = self.inner.metrics_config(input); + self + } + ///

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn set_metrics_config(mut self, input: ::std::option::Option) -> Self { + self.inner = self.inner.set_metrics_config(input); + self + } + ///

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn get_metrics_config(&self) -> &::std::option::Option { + self.inner.get_metrics_config() + } } diff --git a/sdk/appsync/src/protocol_serde.rs b/sdk/appsync/src/protocol_serde.rs index 9f4d035161a1..d70831db9a89 100644 --- a/sdk/appsync/src/protocol_serde.rs +++ b/sdk/appsync/src/protocol_serde.rs @@ -265,6 +265,8 @@ pub(crate) mod shape_dynamodb_data_source_config; pub(crate) mod shape_elasticsearch_data_source_config; +pub(crate) mod shape_enhanced_metrics_config; + pub(crate) mod shape_environment_variable_map; pub(crate) mod shape_error_detail; diff --git a/sdk/appsync/src/protocol_serde/shape_api_cache.rs b/sdk/appsync/src/protocol_serde/shape_api_cache.rs index 3b4bea3a3caa..14b594d2e654 100644 --- a/sdk/appsync/src/protocol_serde/shape_api_cache.rs +++ b/sdk/appsync/src/protocol_serde/shape_api_cache.rs @@ -50,6 +50,13 @@ where .transpose()?, ); } + "healthMetricsConfig" => { + builder = builder.set_health_metrics_config( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| crate::types::CacheHealthMetricsConfig::from(u.as_ref()))) + .transpose()?, + ); + } _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, }, other => { diff --git a/sdk/appsync/src/protocol_serde/shape_create_api_cache_input.rs b/sdk/appsync/src/protocol_serde/shape_create_api_cache_input.rs index 628072af5f49..96c71d6d56e1 100644 --- a/sdk/appsync/src/protocol_serde/shape_create_api_cache_input.rs +++ b/sdk/appsync/src/protocol_serde/shape_create_api_cache_input.rs @@ -9,17 +9,20 @@ pub fn ser_create_api_cache_input_input( if let Some(var_2) = &input.at_rest_encryption_enabled { object.key("atRestEncryptionEnabled").boolean(*var_2); } - if let Some(var_3) = &input.transit_encryption_enabled { - object.key("transitEncryptionEnabled").boolean(*var_3); + if let Some(var_3) = &input.health_metrics_config { + object.key("healthMetricsConfig").string(var_3.as_str()); } - if let Some(var_4) = &input.ttl { + if let Some(var_4) = &input.transit_encryption_enabled { + object.key("transitEncryptionEnabled").boolean(*var_4); + } + if let Some(var_5) = &input.ttl { object.key("ttl").number( #[allow(clippy::useless_conversion)] - ::aws_smithy_types::Number::NegInt((*var_4).into()), + ::aws_smithy_types::Number::NegInt((*var_5).into()), ); } - if let Some(var_5) = &input.r#type { - object.key("type").string(var_5.as_str()); + if let Some(var_6) = &input.r#type { + object.key("type").string(var_6.as_str()); } Ok(()) } diff --git a/sdk/appsync/src/protocol_serde/shape_create_data_source_input.rs b/sdk/appsync/src/protocol_serde/shape_create_data_source_input.rs index 893c78dd49b0..e34e1ccd4895 100644 --- a/sdk/appsync/src/protocol_serde/shape_create_data_source_input.rs +++ b/sdk/appsync/src/protocol_serde/shape_create_data_source_input.rs @@ -36,26 +36,29 @@ pub fn ser_create_data_source_input_input( crate::protocol_serde::shape_lambda_data_source_config::ser_lambda_data_source_config(&mut object_11, var_10)?; object_11.finish(); } - if let Some(var_12) = &input.name { - object.key("name").string(var_12.as_str()); + if let Some(var_12) = &input.metrics_config { + object.key("metricsConfig").string(var_12.as_str()); } - if let Some(var_13) = &input.open_search_service_config { + if let Some(var_13) = &input.name { + object.key("name").string(var_13.as_str()); + } + if let Some(var_14) = &input.open_search_service_config { #[allow(unused_mut)] - let mut object_14 = object.key("openSearchServiceConfig").start_object(); - crate::protocol_serde::shape_open_search_service_data_source_config::ser_open_search_service_data_source_config(&mut object_14, var_13)?; - object_14.finish(); + let mut object_15 = object.key("openSearchServiceConfig").start_object(); + crate::protocol_serde::shape_open_search_service_data_source_config::ser_open_search_service_data_source_config(&mut object_15, var_14)?; + object_15.finish(); } - if let Some(var_15) = &input.relational_database_config { + if let Some(var_16) = &input.relational_database_config { #[allow(unused_mut)] - let mut object_16 = object.key("relationalDatabaseConfig").start_object(); - crate::protocol_serde::shape_relational_database_data_source_config::ser_relational_database_data_source_config(&mut object_16, var_15)?; - object_16.finish(); + let mut object_17 = object.key("relationalDatabaseConfig").start_object(); + crate::protocol_serde::shape_relational_database_data_source_config::ser_relational_database_data_source_config(&mut object_17, var_16)?; + object_17.finish(); } - if let Some(var_17) = &input.service_role_arn { - object.key("serviceRoleArn").string(var_17.as_str()); + if let Some(var_18) = &input.service_role_arn { + object.key("serviceRoleArn").string(var_18.as_str()); } - if let Some(var_18) = &input.r#type { - object.key("type").string(var_18.as_str()); + if let Some(var_19) = &input.r#type { + object.key("type").string(var_19.as_str()); } Ok(()) } diff --git a/sdk/appsync/src/protocol_serde/shape_create_function.rs b/sdk/appsync/src/protocol_serde/shape_create_function.rs index 802b3a19f76c..b7b875a9f8e4 100644 --- a/sdk/appsync/src/protocol_serde/shape_create_function.rs +++ b/sdk/appsync/src/protocol_serde/shape_create_function.rs @@ -17,6 +17,21 @@ pub fn de_create_function_http_error( let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { + "BadRequestException" => crate::operation::create_function::CreateFunctionError::BadRequestException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::BadRequestExceptionBuilder::default(); + output = crate::protocol_serde::shape_bad_request_exception::de_bad_request_exception_json_err(_response_body, output) + .map_err(crate::operation::create_function::CreateFunctionError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), "ConcurrentModificationException" => crate::operation::create_function::CreateFunctionError::ConcurrentModificationException({ #[allow(unused_mut)] let mut tmp = { diff --git a/sdk/appsync/src/protocol_serde/shape_create_graphql_api_input.rs b/sdk/appsync/src/protocol_serde/shape_create_graphql_api_input.rs index 64f8e3b32d60..14bdcd011024 100644 --- a/sdk/appsync/src/protocol_serde/shape_create_graphql_api_input.rs +++ b/sdk/appsync/src/protocol_serde/shape_create_graphql_api_input.rs @@ -21,69 +21,75 @@ pub fn ser_create_graphql_api_input_input( if let Some(var_6) = &input.authentication_type { object.key("authenticationType").string(var_6.as_str()); } - if let Some(var_7) = &input.introspection_config { - object.key("introspectionConfig").string(var_7.as_str()); - } - if let Some(var_8) = &input.lambda_authorizer_config { + if let Some(var_7) = &input.enhanced_metrics_config { #[allow(unused_mut)] - let mut object_9 = object.key("lambdaAuthorizerConfig").start_object(); - crate::protocol_serde::shape_lambda_authorizer_config::ser_lambda_authorizer_config(&mut object_9, var_8)?; - object_9.finish(); + let mut object_8 = object.key("enhancedMetricsConfig").start_object(); + crate::protocol_serde::shape_enhanced_metrics_config::ser_enhanced_metrics_config(&mut object_8, var_7)?; + object_8.finish(); + } + if let Some(var_9) = &input.introspection_config { + object.key("introspectionConfig").string(var_9.as_str()); } - if let Some(var_10) = &input.log_config { + if let Some(var_10) = &input.lambda_authorizer_config { #[allow(unused_mut)] - let mut object_11 = object.key("logConfig").start_object(); - crate::protocol_serde::shape_log_config::ser_log_config(&mut object_11, var_10)?; + let mut object_11 = object.key("lambdaAuthorizerConfig").start_object(); + crate::protocol_serde::shape_lambda_authorizer_config::ser_lambda_authorizer_config(&mut object_11, var_10)?; object_11.finish(); } - if let Some(var_12) = &input.merged_api_execution_role_arn { - object.key("mergedApiExecutionRoleArn").string(var_12.as_str()); + if let Some(var_12) = &input.log_config { + #[allow(unused_mut)] + let mut object_13 = object.key("logConfig").start_object(); + crate::protocol_serde::shape_log_config::ser_log_config(&mut object_13, var_12)?; + object_13.finish(); + } + if let Some(var_14) = &input.merged_api_execution_role_arn { + object.key("mergedApiExecutionRoleArn").string(var_14.as_str()); } - if let Some(var_13) = &input.name { - object.key("name").string(var_13.as_str()); + if let Some(var_15) = &input.name { + object.key("name").string(var_15.as_str()); } - if let Some(var_14) = &input.open_id_connect_config { + if let Some(var_16) = &input.open_id_connect_config { #[allow(unused_mut)] - let mut object_15 = object.key("openIDConnectConfig").start_object(); - crate::protocol_serde::shape_open_id_connect_config::ser_open_id_connect_config(&mut object_15, var_14)?; - object_15.finish(); + let mut object_17 = object.key("openIDConnectConfig").start_object(); + crate::protocol_serde::shape_open_id_connect_config::ser_open_id_connect_config(&mut object_17, var_16)?; + object_17.finish(); } - if let Some(var_16) = &input.owner_contact { - object.key("ownerContact").string(var_16.as_str()); + if let Some(var_18) = &input.owner_contact { + object.key("ownerContact").string(var_18.as_str()); } - if let Some(var_17) = &input.query_depth_limit { + if let Some(var_19) = &input.query_depth_limit { object.key("queryDepthLimit").number( #[allow(clippy::useless_conversion)] - ::aws_smithy_types::Number::NegInt((*var_17).into()), + ::aws_smithy_types::Number::NegInt((*var_19).into()), ); } - if let Some(var_18) = &input.resolver_count_limit { + if let Some(var_20) = &input.resolver_count_limit { object.key("resolverCountLimit").number( #[allow(clippy::useless_conversion)] - ::aws_smithy_types::Number::NegInt((*var_18).into()), + ::aws_smithy_types::Number::NegInt((*var_20).into()), ); } - if let Some(var_19) = &input.tags { + if let Some(var_21) = &input.tags { #[allow(unused_mut)] - let mut object_20 = object.key("tags").start_object(); - for (key_21, value_22) in var_19 { + let mut object_22 = object.key("tags").start_object(); + for (key_23, value_24) in var_21 { { - object_20.key(key_21.as_str()).string(value_22.as_str()); + object_22.key(key_23.as_str()).string(value_24.as_str()); } } - object_20.finish(); + object_22.finish(); } - if let Some(var_23) = &input.user_pool_config { + if let Some(var_25) = &input.user_pool_config { #[allow(unused_mut)] - let mut object_24 = object.key("userPoolConfig").start_object(); - crate::protocol_serde::shape_user_pool_config::ser_user_pool_config(&mut object_24, var_23)?; - object_24.finish(); + let mut object_26 = object.key("userPoolConfig").start_object(); + crate::protocol_serde::shape_user_pool_config::ser_user_pool_config(&mut object_26, var_25)?; + object_26.finish(); } - if let Some(var_25) = &input.visibility { - object.key("visibility").string(var_25.as_str()); + if let Some(var_27) = &input.visibility { + object.key("visibility").string(var_27.as_str()); } - if let Some(var_26) = &input.xray_enabled { - object.key("xrayEnabled").boolean(*var_26); + if let Some(var_28) = &input.xray_enabled { + object.key("xrayEnabled").boolean(*var_28); } Ok(()) } diff --git a/sdk/appsync/src/protocol_serde/shape_create_resolver_input.rs b/sdk/appsync/src/protocol_serde/shape_create_resolver_input.rs index 89e56fad6186..3503ed9859f8 100644 --- a/sdk/appsync/src/protocol_serde/shape_create_resolver_input.rs +++ b/sdk/appsync/src/protocol_serde/shape_create_resolver_input.rs @@ -27,29 +27,32 @@ pub fn ser_create_resolver_input_input( ::aws_smithy_types::Number::NegInt((*var_7).into()), ); } - if let Some(var_8) = &input.pipeline_config { + if let Some(var_8) = &input.metrics_config { + object.key("metricsConfig").string(var_8.as_str()); + } + if let Some(var_9) = &input.pipeline_config { #[allow(unused_mut)] - let mut object_9 = object.key("pipelineConfig").start_object(); - crate::protocol_serde::shape_pipeline_config::ser_pipeline_config(&mut object_9, var_8)?; - object_9.finish(); + let mut object_10 = object.key("pipelineConfig").start_object(); + crate::protocol_serde::shape_pipeline_config::ser_pipeline_config(&mut object_10, var_9)?; + object_10.finish(); } - if let Some(var_10) = &input.request_mapping_template { - object.key("requestMappingTemplate").string(var_10.as_str()); + if let Some(var_11) = &input.request_mapping_template { + object.key("requestMappingTemplate").string(var_11.as_str()); } - if let Some(var_11) = &input.response_mapping_template { - object.key("responseMappingTemplate").string(var_11.as_str()); + if let Some(var_12) = &input.response_mapping_template { + object.key("responseMappingTemplate").string(var_12.as_str()); } - if let Some(var_12) = &input.runtime { + if let Some(var_13) = &input.runtime { #[allow(unused_mut)] - let mut object_13 = object.key("runtime").start_object(); - crate::protocol_serde::shape_app_sync_runtime::ser_app_sync_runtime(&mut object_13, var_12)?; - object_13.finish(); + let mut object_14 = object.key("runtime").start_object(); + crate::protocol_serde::shape_app_sync_runtime::ser_app_sync_runtime(&mut object_14, var_13)?; + object_14.finish(); } - if let Some(var_14) = &input.sync_config { + if let Some(var_15) = &input.sync_config { #[allow(unused_mut)] - let mut object_15 = object.key("syncConfig").start_object(); - crate::protocol_serde::shape_sync_config::ser_sync_config(&mut object_15, var_14)?; - object_15.finish(); + let mut object_16 = object.key("syncConfig").start_object(); + crate::protocol_serde::shape_sync_config::ser_sync_config(&mut object_16, var_15)?; + object_16.finish(); } Ok(()) } diff --git a/sdk/appsync/src/protocol_serde/shape_data_source.rs b/sdk/appsync/src/protocol_serde/shape_data_source.rs index 8b643ebd14ca..c8f81a34b189 100644 --- a/sdk/appsync/src/protocol_serde/shape_data_source.rs +++ b/sdk/appsync/src/protocol_serde/shape_data_source.rs @@ -87,6 +87,13 @@ where crate::protocol_serde::shape_event_bridge_data_source_config::de_event_bridge_data_source_config(tokens)?, ); } + "metricsConfig" => { + builder = builder.set_metrics_config( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| crate::types::DataSourceLevelMetricsConfig::from(u.as_ref()))) + .transpose()?, + ); + } _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, }, other => { diff --git a/sdk/appsync/src/protocol_serde/shape_delete_function.rs b/sdk/appsync/src/protocol_serde/shape_delete_function.rs index a7f8c0f42931..7934dbbcb2f7 100644 --- a/sdk/appsync/src/protocol_serde/shape_delete_function.rs +++ b/sdk/appsync/src/protocol_serde/shape_delete_function.rs @@ -17,6 +17,21 @@ pub fn de_delete_function_http_error( let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { + "BadRequestException" => crate::operation::delete_function::DeleteFunctionError::BadRequestException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::BadRequestExceptionBuilder::default(); + output = crate::protocol_serde::shape_bad_request_exception::de_bad_request_exception_json_err(_response_body, output) + .map_err(crate::operation::delete_function::DeleteFunctionError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), "ConcurrentModificationException" => crate::operation::delete_function::DeleteFunctionError::ConcurrentModificationException({ #[allow(unused_mut)] let mut tmp = { diff --git a/sdk/appsync/src/protocol_serde/shape_enhanced_metrics_config.rs b/sdk/appsync/src/protocol_serde/shape_enhanced_metrics_config.rs new file mode 100644 index 000000000000..b70b60a18706 --- /dev/null +++ b/sdk/appsync/src/protocol_serde/shape_enhanced_metrics_config.rs @@ -0,0 +1,78 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub fn ser_enhanced_metrics_config( + object: &mut ::aws_smithy_json::serialize::JsonObjectWriter, + input: &crate::types::EnhancedMetricsConfig, +) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> { + { + object + .key("resolverLevelMetricsBehavior") + .string(input.resolver_level_metrics_behavior.as_str()); + } + { + object + .key("dataSourceLevelMetricsBehavior") + .string(input.data_source_level_metrics_behavior.as_str()); + } + { + object + .key("operationLevelMetricsConfig") + .string(input.operation_level_metrics_config.as_str()); + } + Ok(()) +} + +pub(crate) fn de_enhanced_metrics_config<'a, I>( + tokens: &mut ::std::iter::Peekable, +) -> Result, ::aws_smithy_json::deserialize::error::DeserializeError> +where + I: Iterator, ::aws_smithy_json::deserialize::error::DeserializeError>>, +{ + match tokens.next().transpose()? { + Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::types::builders::EnhancedMetricsConfigBuilder::default(); + loop { + match tokens.next().transpose()? { + Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() { + "resolverLevelMetricsBehavior" => { + builder = builder.set_resolver_level_metrics_behavior( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| crate::types::ResolverLevelMetricsBehavior::from(u.as_ref()))) + .transpose()?, + ); + } + "dataSourceLevelMetricsBehavior" => { + builder = builder.set_data_source_level_metrics_behavior( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| crate::types::DataSourceLevelMetricsBehavior::from(u.as_ref()))) + .transpose()?, + ); + } + "operationLevelMetricsConfig" => { + builder = builder.set_operation_level_metrics_config( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| crate::types::OperationLevelMetricsConfig::from(u.as_ref()))) + .transpose()?, + ); + } + _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, + }, + other => { + return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!( + "expected object key or end object, found: {:?}", + other + ))) + } + } + } + Ok(Some(crate::serde_util::enhanced_metrics_config_correct_errors(builder).build().map_err( + |err| ::aws_smithy_json::deserialize::error::DeserializeError::custom_source("Response was invalid", err), + )?)) + } + _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom( + "expected start object or null", + )), + } +} diff --git a/sdk/appsync/src/protocol_serde/shape_graphql_api.rs b/sdk/appsync/src/protocol_serde/shape_graphql_api.rs index d54e455a570d..5eec072ed178 100644 --- a/sdk/appsync/src/protocol_serde/shape_graphql_api.rs +++ b/sdk/appsync/src/protocol_serde/shape_graphql_api.rs @@ -137,6 +137,11 @@ where .transpose()?, ); } + "enhancedMetricsConfig" => { + builder = builder.set_enhanced_metrics_config( + crate::protocol_serde::shape_enhanced_metrics_config::de_enhanced_metrics_config(tokens)?, + ); + } _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, }, other => { diff --git a/sdk/appsync/src/protocol_serde/shape_resolver.rs b/sdk/appsync/src/protocol_serde/shape_resolver.rs index 37b9177b6ff0..b25c52283ab6 100644 --- a/sdk/appsync/src/protocol_serde/shape_resolver.rs +++ b/sdk/appsync/src/protocol_serde/shape_resolver.rs @@ -89,6 +89,13 @@ where .transpose()?, ); } + "metricsConfig" => { + builder = builder.set_metrics_config( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| crate::types::ResolverLevelMetricsConfig::from(u.as_ref()))) + .transpose()?, + ); + } _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, }, other => { diff --git a/sdk/appsync/src/protocol_serde/shape_update_api_cache_input.rs b/sdk/appsync/src/protocol_serde/shape_update_api_cache_input.rs index 1de8d5b70146..2cd96513c1dc 100644 --- a/sdk/appsync/src/protocol_serde/shape_update_api_cache_input.rs +++ b/sdk/appsync/src/protocol_serde/shape_update_api_cache_input.rs @@ -6,14 +6,17 @@ pub fn ser_update_api_cache_input_input( if let Some(var_1) = &input.api_caching_behavior { object.key("apiCachingBehavior").string(var_1.as_str()); } - if let Some(var_2) = &input.ttl { + if let Some(var_2) = &input.health_metrics_config { + object.key("healthMetricsConfig").string(var_2.as_str()); + } + if let Some(var_3) = &input.ttl { object.key("ttl").number( #[allow(clippy::useless_conversion)] - ::aws_smithy_types::Number::NegInt((*var_2).into()), + ::aws_smithy_types::Number::NegInt((*var_3).into()), ); } - if let Some(var_3) = &input.r#type { - object.key("type").string(var_3.as_str()); + if let Some(var_4) = &input.r#type { + object.key("type").string(var_4.as_str()); } Ok(()) } diff --git a/sdk/appsync/src/protocol_serde/shape_update_data_source_input.rs b/sdk/appsync/src/protocol_serde/shape_update_data_source_input.rs index cc3aaafa7fc9..2aeb4b973280 100644 --- a/sdk/appsync/src/protocol_serde/shape_update_data_source_input.rs +++ b/sdk/appsync/src/protocol_serde/shape_update_data_source_input.rs @@ -36,23 +36,26 @@ pub fn ser_update_data_source_input_input( crate::protocol_serde::shape_lambda_data_source_config::ser_lambda_data_source_config(&mut object_11, var_10)?; object_11.finish(); } - if let Some(var_12) = &input.open_search_service_config { + if let Some(var_12) = &input.metrics_config { + object.key("metricsConfig").string(var_12.as_str()); + } + if let Some(var_13) = &input.open_search_service_config { #[allow(unused_mut)] - let mut object_13 = object.key("openSearchServiceConfig").start_object(); - crate::protocol_serde::shape_open_search_service_data_source_config::ser_open_search_service_data_source_config(&mut object_13, var_12)?; - object_13.finish(); + let mut object_14 = object.key("openSearchServiceConfig").start_object(); + crate::protocol_serde::shape_open_search_service_data_source_config::ser_open_search_service_data_source_config(&mut object_14, var_13)?; + object_14.finish(); } - if let Some(var_14) = &input.relational_database_config { + if let Some(var_15) = &input.relational_database_config { #[allow(unused_mut)] - let mut object_15 = object.key("relationalDatabaseConfig").start_object(); - crate::protocol_serde::shape_relational_database_data_source_config::ser_relational_database_data_source_config(&mut object_15, var_14)?; - object_15.finish(); + let mut object_16 = object.key("relationalDatabaseConfig").start_object(); + crate::protocol_serde::shape_relational_database_data_source_config::ser_relational_database_data_source_config(&mut object_16, var_15)?; + object_16.finish(); } - if let Some(var_16) = &input.service_role_arn { - object.key("serviceRoleArn").string(var_16.as_str()); + if let Some(var_17) = &input.service_role_arn { + object.key("serviceRoleArn").string(var_17.as_str()); } - if let Some(var_17) = &input.r#type { - object.key("type").string(var_17.as_str()); + if let Some(var_18) = &input.r#type { + object.key("type").string(var_18.as_str()); } Ok(()) } diff --git a/sdk/appsync/src/protocol_serde/shape_update_function.rs b/sdk/appsync/src/protocol_serde/shape_update_function.rs index 52eaac2e25a7..caf4ded25773 100644 --- a/sdk/appsync/src/protocol_serde/shape_update_function.rs +++ b/sdk/appsync/src/protocol_serde/shape_update_function.rs @@ -17,6 +17,21 @@ pub fn de_update_function_http_error( let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { + "BadRequestException" => crate::operation::update_function::UpdateFunctionError::BadRequestException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::BadRequestExceptionBuilder::default(); + output = crate::protocol_serde::shape_bad_request_exception::de_bad_request_exception_json_err(_response_body, output) + .map_err(crate::operation::update_function::UpdateFunctionError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), "ConcurrentModificationException" => crate::operation::update_function::UpdateFunctionError::ConcurrentModificationException({ #[allow(unused_mut)] let mut tmp = { diff --git a/sdk/appsync/src/protocol_serde/shape_update_graphql_api_input.rs b/sdk/appsync/src/protocol_serde/shape_update_graphql_api_input.rs index 4fee52b50850..a9da8cc434f1 100644 --- a/sdk/appsync/src/protocol_serde/shape_update_graphql_api_input.rs +++ b/sdk/appsync/src/protocol_serde/shape_update_graphql_api_input.rs @@ -18,56 +18,62 @@ pub fn ser_update_graphql_api_input_input( if let Some(var_5) = &input.authentication_type { object.key("authenticationType").string(var_5.as_str()); } - if let Some(var_6) = &input.introspection_config { - object.key("introspectionConfig").string(var_6.as_str()); - } - if let Some(var_7) = &input.lambda_authorizer_config { + if let Some(var_6) = &input.enhanced_metrics_config { #[allow(unused_mut)] - let mut object_8 = object.key("lambdaAuthorizerConfig").start_object(); - crate::protocol_serde::shape_lambda_authorizer_config::ser_lambda_authorizer_config(&mut object_8, var_7)?; - object_8.finish(); + let mut object_7 = object.key("enhancedMetricsConfig").start_object(); + crate::protocol_serde::shape_enhanced_metrics_config::ser_enhanced_metrics_config(&mut object_7, var_6)?; + object_7.finish(); + } + if let Some(var_8) = &input.introspection_config { + object.key("introspectionConfig").string(var_8.as_str()); } - if let Some(var_9) = &input.log_config { + if let Some(var_9) = &input.lambda_authorizer_config { #[allow(unused_mut)] - let mut object_10 = object.key("logConfig").start_object(); - crate::protocol_serde::shape_log_config::ser_log_config(&mut object_10, var_9)?; + let mut object_10 = object.key("lambdaAuthorizerConfig").start_object(); + crate::protocol_serde::shape_lambda_authorizer_config::ser_lambda_authorizer_config(&mut object_10, var_9)?; object_10.finish(); } - if let Some(var_11) = &input.merged_api_execution_role_arn { - object.key("mergedApiExecutionRoleArn").string(var_11.as_str()); + if let Some(var_11) = &input.log_config { + #[allow(unused_mut)] + let mut object_12 = object.key("logConfig").start_object(); + crate::protocol_serde::shape_log_config::ser_log_config(&mut object_12, var_11)?; + object_12.finish(); + } + if let Some(var_13) = &input.merged_api_execution_role_arn { + object.key("mergedApiExecutionRoleArn").string(var_13.as_str()); } - if let Some(var_12) = &input.name { - object.key("name").string(var_12.as_str()); + if let Some(var_14) = &input.name { + object.key("name").string(var_14.as_str()); } - if let Some(var_13) = &input.open_id_connect_config { + if let Some(var_15) = &input.open_id_connect_config { #[allow(unused_mut)] - let mut object_14 = object.key("openIDConnectConfig").start_object(); - crate::protocol_serde::shape_open_id_connect_config::ser_open_id_connect_config(&mut object_14, var_13)?; - object_14.finish(); + let mut object_16 = object.key("openIDConnectConfig").start_object(); + crate::protocol_serde::shape_open_id_connect_config::ser_open_id_connect_config(&mut object_16, var_15)?; + object_16.finish(); } - if let Some(var_15) = &input.owner_contact { - object.key("ownerContact").string(var_15.as_str()); + if let Some(var_17) = &input.owner_contact { + object.key("ownerContact").string(var_17.as_str()); } - if let Some(var_16) = &input.query_depth_limit { + if let Some(var_18) = &input.query_depth_limit { object.key("queryDepthLimit").number( #[allow(clippy::useless_conversion)] - ::aws_smithy_types::Number::NegInt((*var_16).into()), + ::aws_smithy_types::Number::NegInt((*var_18).into()), ); } - if let Some(var_17) = &input.resolver_count_limit { + if let Some(var_19) = &input.resolver_count_limit { object.key("resolverCountLimit").number( #[allow(clippy::useless_conversion)] - ::aws_smithy_types::Number::NegInt((*var_17).into()), + ::aws_smithy_types::Number::NegInt((*var_19).into()), ); } - if let Some(var_18) = &input.user_pool_config { + if let Some(var_20) = &input.user_pool_config { #[allow(unused_mut)] - let mut object_19 = object.key("userPoolConfig").start_object(); - crate::protocol_serde::shape_user_pool_config::ser_user_pool_config(&mut object_19, var_18)?; - object_19.finish(); + let mut object_21 = object.key("userPoolConfig").start_object(); + crate::protocol_serde::shape_user_pool_config::ser_user_pool_config(&mut object_21, var_20)?; + object_21.finish(); } - if let Some(var_20) = &input.xray_enabled { - object.key("xrayEnabled").boolean(*var_20); + if let Some(var_22) = &input.xray_enabled { + object.key("xrayEnabled").boolean(*var_22); } Ok(()) } diff --git a/sdk/appsync/src/protocol_serde/shape_update_resolver_input.rs b/sdk/appsync/src/protocol_serde/shape_update_resolver_input.rs index e9572780d664..124300dc6eac 100644 --- a/sdk/appsync/src/protocol_serde/shape_update_resolver_input.rs +++ b/sdk/appsync/src/protocol_serde/shape_update_resolver_input.rs @@ -24,29 +24,32 @@ pub fn ser_update_resolver_input_input( ::aws_smithy_types::Number::NegInt((*var_6).into()), ); } - if let Some(var_7) = &input.pipeline_config { + if let Some(var_7) = &input.metrics_config { + object.key("metricsConfig").string(var_7.as_str()); + } + if let Some(var_8) = &input.pipeline_config { #[allow(unused_mut)] - let mut object_8 = object.key("pipelineConfig").start_object(); - crate::protocol_serde::shape_pipeline_config::ser_pipeline_config(&mut object_8, var_7)?; - object_8.finish(); + let mut object_9 = object.key("pipelineConfig").start_object(); + crate::protocol_serde::shape_pipeline_config::ser_pipeline_config(&mut object_9, var_8)?; + object_9.finish(); } - if let Some(var_9) = &input.request_mapping_template { - object.key("requestMappingTemplate").string(var_9.as_str()); + if let Some(var_10) = &input.request_mapping_template { + object.key("requestMappingTemplate").string(var_10.as_str()); } - if let Some(var_10) = &input.response_mapping_template { - object.key("responseMappingTemplate").string(var_10.as_str()); + if let Some(var_11) = &input.response_mapping_template { + object.key("responseMappingTemplate").string(var_11.as_str()); } - if let Some(var_11) = &input.runtime { + if let Some(var_12) = &input.runtime { #[allow(unused_mut)] - let mut object_12 = object.key("runtime").start_object(); - crate::protocol_serde::shape_app_sync_runtime::ser_app_sync_runtime(&mut object_12, var_11)?; - object_12.finish(); + let mut object_13 = object.key("runtime").start_object(); + crate::protocol_serde::shape_app_sync_runtime::ser_app_sync_runtime(&mut object_13, var_12)?; + object_13.finish(); } - if let Some(var_13) = &input.sync_config { + if let Some(var_14) = &input.sync_config { #[allow(unused_mut)] - let mut object_14 = object.key("syncConfig").start_object(); - crate::protocol_serde::shape_sync_config::ser_sync_config(&mut object_14, var_13)?; - object_14.finish(); + let mut object_15 = object.key("syncConfig").start_object(); + crate::protocol_serde::shape_sync_config::ser_sync_config(&mut object_15, var_14)?; + object_15.finish(); } Ok(()) } diff --git a/sdk/appsync/src/serde_util.rs b/sdk/appsync/src/serde_util.rs index 2731a9a86d29..f276b188b75c 100644 --- a/sdk/appsync/src/serde_util.rs +++ b/sdk/appsync/src/serde_util.rs @@ -44,6 +44,21 @@ pub(crate) fn elasticsearch_data_source_config_correct_errors( builder } +pub(crate) fn enhanced_metrics_config_correct_errors( + mut builder: crate::types::builders::EnhancedMetricsConfigBuilder, +) -> crate::types::builders::EnhancedMetricsConfigBuilder { + if builder.resolver_level_metrics_behavior.is_none() { + builder.resolver_level_metrics_behavior = "no value was set".parse::().ok() + } + if builder.data_source_level_metrics_behavior.is_none() { + builder.data_source_level_metrics_behavior = "no value was set".parse::().ok() + } + if builder.operation_level_metrics_config.is_none() { + builder.operation_level_metrics_config = "no value was set".parse::().ok() + } + builder +} + pub(crate) fn event_bridge_data_source_config_correct_errors( mut builder: crate::types::builders::EventBridgeDataSourceConfigBuilder, ) -> crate::types::builders::EventBridgeDataSourceConfigBuilder { diff --git a/sdk/appsync/src/types.rs b/sdk/appsync/src/types.rs index aeb82e36b324..d7e5a4362465 100644 --- a/sdk/appsync/src/types.rs +++ b/sdk/appsync/src/types.rs @@ -21,6 +21,8 @@ pub use crate::types::_merge_type::MergeType; pub use crate::types::_resolver::Resolver; +pub use crate::types::_resolver_level_metrics_config::ResolverLevelMetricsConfig; + pub use crate::types::_app_sync_runtime::AppSyncRuntime; pub use crate::types::_runtime_name::RuntimeName; @@ -41,6 +43,14 @@ pub use crate::types::_resolver_kind::ResolverKind; pub use crate::types::_graphql_api::GraphqlApi; +pub use crate::types::_enhanced_metrics_config::EnhancedMetricsConfig; + +pub use crate::types::_operation_level_metrics_config::OperationLevelMetricsConfig; + +pub use crate::types::_data_source_level_metrics_behavior::DataSourceLevelMetricsBehavior; + +pub use crate::types::_resolver_level_metrics_behavior::ResolverLevelMetricsBehavior; + pub use crate::types::_graph_ql_api_introspection_config::GraphQlApiIntrospectionConfig; pub use crate::types::_graph_ql_api_type::GraphQlApiType; @@ -71,6 +81,8 @@ pub use crate::types::_domain_name_config::DomainNameConfig; pub use crate::types::_data_source::DataSource; +pub use crate::types::_data_source_level_metrics_config::DataSourceLevelMetricsConfig; + pub use crate::types::_event_bridge_data_source_config::EventBridgeDataSourceConfig; pub use crate::types::_relational_database_data_source_config::RelationalDatabaseDataSourceConfig; @@ -103,6 +115,8 @@ pub use crate::types::_api_key::ApiKey; pub use crate::types::_api_cache::ApiCache; +pub use crate::types::_cache_health_metrics_config::CacheHealthMetricsConfig; + pub use crate::types::_api_cache_status::ApiCacheStatus; pub use crate::types::_api_cache_type::ApiCacheType; @@ -169,6 +183,8 @@ mod _bad_request_detail; mod _bad_request_reason; +mod _cache_health_metrics_config; + mod _caching_config; mod _code_error; @@ -195,6 +211,10 @@ mod _data_source_introspection_result; mod _data_source_introspection_status; +mod _data_source_level_metrics_behavior; + +mod _data_source_level_metrics_config; + mod _data_source_type; mod _default_action; @@ -207,6 +227,8 @@ mod _dynamodb_data_source_config; mod _elasticsearch_data_source_config; +mod _enhanced_metrics_config; + mod _error_detail; mod _evaluate_code_error_detail; @@ -241,6 +263,8 @@ mod _open_id_connect_config; mod _open_search_service_data_source_config; +mod _operation_level_metrics_config; + mod _output_type; mod _ownership; @@ -259,6 +283,10 @@ mod _resolver; mod _resolver_kind; +mod _resolver_level_metrics_behavior; + +mod _resolver_level_metrics_config; + mod _runtime_name; mod _schema_status; diff --git a/sdk/appsync/src/types/_api_cache.rs b/sdk/appsync/src/types/_api_cache.rs index 35f209892f26..6865d94e0e5b 100644 --- a/sdk/appsync/src/types/_api_cache.rs +++ b/sdk/appsync/src/types/_api_cache.rs @@ -71,6 +71,15 @@ pub struct ApiCache { ///

FAILED: The instance has failed creation.

/// pub status: ::std::option::Option, + ///

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

+ ///
    + ///
  • + ///

    NetworkBandwidthOutAllowanceExceeded: The network packets dropped because the throughput exceeded the aggregated bandwidth limit. This is useful for diagnosing bottlenecks in a cache configuration.

  • + ///
  • + ///

    EngineCPUUtilization: The CPU utilization (percentage) allocated to the Redis process. This is useful for diagnosing bottlenecks in a cache configuration.

  • + ///
+ ///

Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.

+ pub health_metrics_config: ::std::option::Option, } impl ApiCache { ///

TTL in seconds for cache entries.

@@ -152,6 +161,17 @@ impl ApiCache { pub fn status(&self) -> ::std::option::Option<&crate::types::ApiCacheStatus> { self.status.as_ref() } + ///

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

+ ///
    + ///
  • + ///

    NetworkBandwidthOutAllowanceExceeded: The network packets dropped because the throughput exceeded the aggregated bandwidth limit. This is useful for diagnosing bottlenecks in a cache configuration.

  • + ///
  • + ///

    EngineCPUUtilization: The CPU utilization (percentage) allocated to the Redis process. This is useful for diagnosing bottlenecks in a cache configuration.

  • + ///
+ ///

Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.

+ pub fn health_metrics_config(&self) -> ::std::option::Option<&crate::types::CacheHealthMetricsConfig> { + self.health_metrics_config.as_ref() + } } impl ApiCache { /// Creates a new builder-style object to manufacture [`ApiCache`](crate::types::ApiCache). @@ -170,6 +190,7 @@ pub struct ApiCacheBuilder { pub(crate) at_rest_encryption_enabled: ::std::option::Option, pub(crate) r#type: ::std::option::Option, pub(crate) status: ::std::option::Option, + pub(crate) health_metrics_config: ::std::option::Option, } impl ApiCacheBuilder { ///

TTL in seconds for cache entries.

@@ -421,6 +442,41 @@ impl ApiCacheBuilder { pub fn get_status(&self) -> &::std::option::Option { &self.status } + ///

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

+ ///
    + ///
  • + ///

    NetworkBandwidthOutAllowanceExceeded: The network packets dropped because the throughput exceeded the aggregated bandwidth limit. This is useful for diagnosing bottlenecks in a cache configuration.

  • + ///
  • + ///

    EngineCPUUtilization: The CPU utilization (percentage) allocated to the Redis process. This is useful for diagnosing bottlenecks in a cache configuration.

  • + ///
+ ///

Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.

+ pub fn health_metrics_config(mut self, input: crate::types::CacheHealthMetricsConfig) -> Self { + self.health_metrics_config = ::std::option::Option::Some(input); + self + } + ///

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

+ ///
    + ///
  • + ///

    NetworkBandwidthOutAllowanceExceeded: The network packets dropped because the throughput exceeded the aggregated bandwidth limit. This is useful for diagnosing bottlenecks in a cache configuration.

  • + ///
  • + ///

    EngineCPUUtilization: The CPU utilization (percentage) allocated to the Redis process. This is useful for diagnosing bottlenecks in a cache configuration.

  • + ///
+ ///

Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.

+ pub fn set_health_metrics_config(mut self, input: ::std::option::Option) -> Self { + self.health_metrics_config = input; + self + } + ///

Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:

+ ///
    + ///
  • + ///

    NetworkBandwidthOutAllowanceExceeded: The network packets dropped because the throughput exceeded the aggregated bandwidth limit. This is useful for diagnosing bottlenecks in a cache configuration.

  • + ///
  • + ///

    EngineCPUUtilization: The CPU utilization (percentage) allocated to the Redis process. This is useful for diagnosing bottlenecks in a cache configuration.

  • + ///
+ ///

Metrics will be recorded by API ID. You can set the value to ENABLED or DISABLED.

+ pub fn get_health_metrics_config(&self) -> &::std::option::Option { + &self.health_metrics_config + } /// Consumes the builder and constructs a [`ApiCache`](crate::types::ApiCache). pub fn build(self) -> crate::types::ApiCache { crate::types::ApiCache { @@ -430,6 +486,7 @@ impl ApiCacheBuilder { at_rest_encryption_enabled: self.at_rest_encryption_enabled.unwrap_or_default(), r#type: self.r#type, status: self.status, + health_metrics_config: self.health_metrics_config, } } } diff --git a/sdk/appsync/src/types/_cache_health_metrics_config.rs b/sdk/appsync/src/types/_cache_health_metrics_config.rs new file mode 100644 index 000000000000..5e91c777f301 --- /dev/null +++ b/sdk/appsync/src/types/_cache_health_metrics_config.rs @@ -0,0 +1,98 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. + +/// When writing a match expression against `CacheHealthMetricsConfig`, it is important to ensure +/// your code is forward-compatible. That is, if a match arm handles a case for a +/// feature that is supported by the service but has not been represented as an enum +/// variant in a current version of SDK, your code should continue to work when you +/// upgrade SDK to a future version in which the enum does include a variant for that +/// feature. +/// +/// Here is an example of how you can make a match expression forward-compatible: +/// +/// ```text +/// # let cachehealthmetricsconfig = unimplemented!(); +/// match cachehealthmetricsconfig { +/// CacheHealthMetricsConfig::Disabled => { /* ... */ }, +/// CacheHealthMetricsConfig::Enabled => { /* ... */ }, +/// other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ }, +/// _ => { /* ... */ }, +/// } +/// ``` +/// The above code demonstrates that when `cachehealthmetricsconfig` represents +/// `NewFeature`, the execution path will lead to the second last match arm, +/// even though the enum does not contain a variant `CacheHealthMetricsConfig::NewFeature` +/// in the current version of SDK. The reason is that the variable `other`, +/// created by the `@` operator, is bound to +/// `CacheHealthMetricsConfig::Unknown(UnknownVariantValue("NewFeature".to_owned()))` +/// and calling `as_str` on it yields `"NewFeature"`. +/// This match expression is forward-compatible when executed with a newer +/// version of SDK where the variant `CacheHealthMetricsConfig::NewFeature` is defined. +/// Specifically, when `cachehealthmetricsconfig` represents `NewFeature`, +/// the execution path will hit the second last match arm as before by virtue of +/// calling `as_str` on `CacheHealthMetricsConfig::NewFeature` also yielding `"NewFeature"`. +/// +/// Explicitly matching on the `Unknown` variant should +/// be avoided for two reasons: +/// - The inner data `UnknownVariantValue` is opaque, and no further information can be extracted. +/// - It might inadvertently shadow other intended match arms. +#[allow(missing_docs)] // documentation missing in model +#[non_exhaustive] +#[derive( + ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::Ord, ::std::cmp::PartialEq, ::std::cmp::PartialOrd, ::std::fmt::Debug, ::std::hash::Hash, +)] +pub enum CacheHealthMetricsConfig { + #[allow(missing_docs)] // documentation missing in model + Disabled, + #[allow(missing_docs)] // documentation missing in model + Enabled, + /// `Unknown` contains new variants that have been added since this code was generated. + #[deprecated(note = "Don't directly match on `Unknown`. See the docs on this enum for the correct way to handle unknown variants.")] + Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue), +} +impl ::std::convert::From<&str> for CacheHealthMetricsConfig { + fn from(s: &str) -> Self { + match s { + "DISABLED" => CacheHealthMetricsConfig::Disabled, + "ENABLED" => CacheHealthMetricsConfig::Enabled, + other => CacheHealthMetricsConfig::Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue(other.to_owned())), + } + } +} +impl ::std::str::FromStr for CacheHealthMetricsConfig { + type Err = ::std::convert::Infallible; + + fn from_str(s: &str) -> ::std::result::Result::Err> { + ::std::result::Result::Ok(CacheHealthMetricsConfig::from(s)) + } +} +impl CacheHealthMetricsConfig { + /// Returns the `&str` value of the enum member. + pub fn as_str(&self) -> &str { + match self { + CacheHealthMetricsConfig::Disabled => "DISABLED", + CacheHealthMetricsConfig::Enabled => "ENABLED", + CacheHealthMetricsConfig::Unknown(value) => value.as_str(), + } + } + /// Returns all the `&str` representations of the enum members. + pub const fn values() -> &'static [&'static str] { + &["DISABLED", "ENABLED"] + } +} +impl ::std::convert::AsRef for CacheHealthMetricsConfig { + fn as_ref(&self) -> &str { + self.as_str() + } +} +impl CacheHealthMetricsConfig { + /// Parses the enum value while disallowing unknown variants. + /// + /// Unknown variants will result in an error. + pub fn try_parse(value: &str) -> ::std::result::Result { + match Self::from(value) { + #[allow(deprecated)] + Self::Unknown(_) => ::std::result::Result::Err(crate::error::UnknownVariantError::new(value)), + known => Ok(known), + } + } +} diff --git a/sdk/appsync/src/types/_data_source.rs b/sdk/appsync/src/types/_data_source.rs index 01c77e19bf04..fdb7f38532d8 100644 --- a/sdk/appsync/src/types/_data_source.rs +++ b/sdk/appsync/src/types/_data_source.rs @@ -46,6 +46,9 @@ pub struct DataSource { pub relational_database_config: ::std::option::Option, ///

Amazon EventBridge settings.

pub event_bridge_config: ::std::option::Option, + ///

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub metrics_config: ::std::option::Option, } impl DataSource { ///

The data source Amazon Resource Name (ARN).

@@ -114,6 +117,11 @@ impl DataSource { pub fn event_bridge_config(&self) -> ::std::option::Option<&crate::types::EventBridgeDataSourceConfig> { self.event_bridge_config.as_ref() } + ///

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn metrics_config(&self) -> ::std::option::Option<&crate::types::DataSourceLevelMetricsConfig> { + self.metrics_config.as_ref() + } } impl DataSource { /// Creates a new builder-style object to manufacture [`DataSource`](crate::types::DataSource). @@ -138,6 +146,7 @@ pub struct DataSourceBuilder { pub(crate) http_config: ::std::option::Option, pub(crate) relational_database_config: ::std::option::Option, pub(crate) event_bridge_config: ::std::option::Option, + pub(crate) metrics_config: ::std::option::Option, } impl DataSourceBuilder { ///

The data source Amazon Resource Name (ARN).

@@ -362,6 +371,23 @@ impl DataSourceBuilder { pub fn get_event_bridge_config(&self) -> &::std::option::Option { &self.event_bridge_config } + ///

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn metrics_config(mut self, input: crate::types::DataSourceLevelMetricsConfig) -> Self { + self.metrics_config = ::std::option::Option::Some(input); + self + } + ///

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn set_metrics_config(mut self, input: ::std::option::Option) -> Self { + self.metrics_config = input; + self + } + ///

Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn get_metrics_config(&self) -> &::std::option::Option { + &self.metrics_config + } /// Consumes the builder and constructs a [`DataSource`](crate::types::DataSource). pub fn build(self) -> crate::types::DataSource { crate::types::DataSource { @@ -377,6 +403,7 @@ impl DataSourceBuilder { http_config: self.http_config, relational_database_config: self.relational_database_config, event_bridge_config: self.event_bridge_config, + metrics_config: self.metrics_config, } } } diff --git a/sdk/appsync/src/types/_data_source_level_metrics_behavior.rs b/sdk/appsync/src/types/_data_source_level_metrics_behavior.rs new file mode 100644 index 000000000000..0749f179a6cc --- /dev/null +++ b/sdk/appsync/src/types/_data_source_level_metrics_behavior.rs @@ -0,0 +1,98 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. + +/// When writing a match expression against `DataSourceLevelMetricsBehavior`, it is important to ensure +/// your code is forward-compatible. That is, if a match arm handles a case for a +/// feature that is supported by the service but has not been represented as an enum +/// variant in a current version of SDK, your code should continue to work when you +/// upgrade SDK to a future version in which the enum does include a variant for that +/// feature. +/// +/// Here is an example of how you can make a match expression forward-compatible: +/// +/// ```text +/// # let datasourcelevelmetricsbehavior = unimplemented!(); +/// match datasourcelevelmetricsbehavior { +/// DataSourceLevelMetricsBehavior::FullRequestDataSourceMetrics => { /* ... */ }, +/// DataSourceLevelMetricsBehavior::PerDataSourceMetrics => { /* ... */ }, +/// other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ }, +/// _ => { /* ... */ }, +/// } +/// ``` +/// The above code demonstrates that when `datasourcelevelmetricsbehavior` represents +/// `NewFeature`, the execution path will lead to the second last match arm, +/// even though the enum does not contain a variant `DataSourceLevelMetricsBehavior::NewFeature` +/// in the current version of SDK. The reason is that the variable `other`, +/// created by the `@` operator, is bound to +/// `DataSourceLevelMetricsBehavior::Unknown(UnknownVariantValue("NewFeature".to_owned()))` +/// and calling `as_str` on it yields `"NewFeature"`. +/// This match expression is forward-compatible when executed with a newer +/// version of SDK where the variant `DataSourceLevelMetricsBehavior::NewFeature` is defined. +/// Specifically, when `datasourcelevelmetricsbehavior` represents `NewFeature`, +/// the execution path will hit the second last match arm as before by virtue of +/// calling `as_str` on `DataSourceLevelMetricsBehavior::NewFeature` also yielding `"NewFeature"`. +/// +/// Explicitly matching on the `Unknown` variant should +/// be avoided for two reasons: +/// - The inner data `UnknownVariantValue` is opaque, and no further information can be extracted. +/// - It might inadvertently shadow other intended match arms. +#[allow(missing_docs)] // documentation missing in model +#[non_exhaustive] +#[derive( + ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::Ord, ::std::cmp::PartialEq, ::std::cmp::PartialOrd, ::std::fmt::Debug, ::std::hash::Hash, +)] +pub enum DataSourceLevelMetricsBehavior { + #[allow(missing_docs)] // documentation missing in model + FullRequestDataSourceMetrics, + #[allow(missing_docs)] // documentation missing in model + PerDataSourceMetrics, + /// `Unknown` contains new variants that have been added since this code was generated. + #[deprecated(note = "Don't directly match on `Unknown`. See the docs on this enum for the correct way to handle unknown variants.")] + Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue), +} +impl ::std::convert::From<&str> for DataSourceLevelMetricsBehavior { + fn from(s: &str) -> Self { + match s { + "FULL_REQUEST_DATA_SOURCE_METRICS" => DataSourceLevelMetricsBehavior::FullRequestDataSourceMetrics, + "PER_DATA_SOURCE_METRICS" => DataSourceLevelMetricsBehavior::PerDataSourceMetrics, + other => DataSourceLevelMetricsBehavior::Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue(other.to_owned())), + } + } +} +impl ::std::str::FromStr for DataSourceLevelMetricsBehavior { + type Err = ::std::convert::Infallible; + + fn from_str(s: &str) -> ::std::result::Result::Err> { + ::std::result::Result::Ok(DataSourceLevelMetricsBehavior::from(s)) + } +} +impl DataSourceLevelMetricsBehavior { + /// Returns the `&str` value of the enum member. + pub fn as_str(&self) -> &str { + match self { + DataSourceLevelMetricsBehavior::FullRequestDataSourceMetrics => "FULL_REQUEST_DATA_SOURCE_METRICS", + DataSourceLevelMetricsBehavior::PerDataSourceMetrics => "PER_DATA_SOURCE_METRICS", + DataSourceLevelMetricsBehavior::Unknown(value) => value.as_str(), + } + } + /// Returns all the `&str` representations of the enum members. + pub const fn values() -> &'static [&'static str] { + &["FULL_REQUEST_DATA_SOURCE_METRICS", "PER_DATA_SOURCE_METRICS"] + } +} +impl ::std::convert::AsRef for DataSourceLevelMetricsBehavior { + fn as_ref(&self) -> &str { + self.as_str() + } +} +impl DataSourceLevelMetricsBehavior { + /// Parses the enum value while disallowing unknown variants. + /// + /// Unknown variants will result in an error. + pub fn try_parse(value: &str) -> ::std::result::Result { + match Self::from(value) { + #[allow(deprecated)] + Self::Unknown(_) => ::std::result::Result::Err(crate::error::UnknownVariantError::new(value)), + known => Ok(known), + } + } +} diff --git a/sdk/appsync/src/types/_data_source_level_metrics_config.rs b/sdk/appsync/src/types/_data_source_level_metrics_config.rs new file mode 100644 index 000000000000..fee857ca09de --- /dev/null +++ b/sdk/appsync/src/types/_data_source_level_metrics_config.rs @@ -0,0 +1,98 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. + +/// When writing a match expression against `DataSourceLevelMetricsConfig`, it is important to ensure +/// your code is forward-compatible. That is, if a match arm handles a case for a +/// feature that is supported by the service but has not been represented as an enum +/// variant in a current version of SDK, your code should continue to work when you +/// upgrade SDK to a future version in which the enum does include a variant for that +/// feature. +/// +/// Here is an example of how you can make a match expression forward-compatible: +/// +/// ```text +/// # let datasourcelevelmetricsconfig = unimplemented!(); +/// match datasourcelevelmetricsconfig { +/// DataSourceLevelMetricsConfig::Disabled => { /* ... */ }, +/// DataSourceLevelMetricsConfig::Enabled => { /* ... */ }, +/// other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ }, +/// _ => { /* ... */ }, +/// } +/// ``` +/// The above code demonstrates that when `datasourcelevelmetricsconfig` represents +/// `NewFeature`, the execution path will lead to the second last match arm, +/// even though the enum does not contain a variant `DataSourceLevelMetricsConfig::NewFeature` +/// in the current version of SDK. The reason is that the variable `other`, +/// created by the `@` operator, is bound to +/// `DataSourceLevelMetricsConfig::Unknown(UnknownVariantValue("NewFeature".to_owned()))` +/// and calling `as_str` on it yields `"NewFeature"`. +/// This match expression is forward-compatible when executed with a newer +/// version of SDK where the variant `DataSourceLevelMetricsConfig::NewFeature` is defined. +/// Specifically, when `datasourcelevelmetricsconfig` represents `NewFeature`, +/// the execution path will hit the second last match arm as before by virtue of +/// calling `as_str` on `DataSourceLevelMetricsConfig::NewFeature` also yielding `"NewFeature"`. +/// +/// Explicitly matching on the `Unknown` variant should +/// be avoided for two reasons: +/// - The inner data `UnknownVariantValue` is opaque, and no further information can be extracted. +/// - It might inadvertently shadow other intended match arms. +#[allow(missing_docs)] // documentation missing in model +#[non_exhaustive] +#[derive( + ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::Ord, ::std::cmp::PartialEq, ::std::cmp::PartialOrd, ::std::fmt::Debug, ::std::hash::Hash, +)] +pub enum DataSourceLevelMetricsConfig { + #[allow(missing_docs)] // documentation missing in model + Disabled, + #[allow(missing_docs)] // documentation missing in model + Enabled, + /// `Unknown` contains new variants that have been added since this code was generated. + #[deprecated(note = "Don't directly match on `Unknown`. See the docs on this enum for the correct way to handle unknown variants.")] + Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue), +} +impl ::std::convert::From<&str> for DataSourceLevelMetricsConfig { + fn from(s: &str) -> Self { + match s { + "DISABLED" => DataSourceLevelMetricsConfig::Disabled, + "ENABLED" => DataSourceLevelMetricsConfig::Enabled, + other => DataSourceLevelMetricsConfig::Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue(other.to_owned())), + } + } +} +impl ::std::str::FromStr for DataSourceLevelMetricsConfig { + type Err = ::std::convert::Infallible; + + fn from_str(s: &str) -> ::std::result::Result::Err> { + ::std::result::Result::Ok(DataSourceLevelMetricsConfig::from(s)) + } +} +impl DataSourceLevelMetricsConfig { + /// Returns the `&str` value of the enum member. + pub fn as_str(&self) -> &str { + match self { + DataSourceLevelMetricsConfig::Disabled => "DISABLED", + DataSourceLevelMetricsConfig::Enabled => "ENABLED", + DataSourceLevelMetricsConfig::Unknown(value) => value.as_str(), + } + } + /// Returns all the `&str` representations of the enum members. + pub const fn values() -> &'static [&'static str] { + &["DISABLED", "ENABLED"] + } +} +impl ::std::convert::AsRef for DataSourceLevelMetricsConfig { + fn as_ref(&self) -> &str { + self.as_str() + } +} +impl DataSourceLevelMetricsConfig { + /// Parses the enum value while disallowing unknown variants. + /// + /// Unknown variants will result in an error. + pub fn try_parse(value: &str) -> ::std::result::Result { + match Self::from(value) { + #[allow(deprecated)] + Self::Unknown(_) => ::std::result::Result::Err(crate::error::UnknownVariantError::new(value)), + known => Ok(known), + } + } +} diff --git a/sdk/appsync/src/types/_enhanced_metrics_config.rs b/sdk/appsync/src/types/_enhanced_metrics_config.rs new file mode 100644 index 000000000000..2364b71f024b --- /dev/null +++ b/sdk/appsync/src/types/_enhanced_metrics_config.rs @@ -0,0 +1,371 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. + +///

Enables and controls the enhanced metrics feature. Enhanced metrics emit granular data on API usage and performance such as AppSync request and error counts, latency, and cache hits/misses. All enhanced metric data is sent to your CloudWatch account, and you can configure the types of data that will be sent.

+///

Enhanced metrics can be configured at the resolver, data source, and operation levels. EnhancedMetricsConfig contains three required parameters, each controlling one of these categories:

+///
    +///
  1. +///

    resolverLevelMetricsBehavior: Controls how resolver metrics will be emitted to CloudWatch. Resolver metrics include:

    +///
      +///
    • +///

      GraphQL errors: The number of GraphQL errors that occurred.

    • +///
    • +///

      Requests: The number of invocations that occurred during a request.

    • +///
    • +///

      Latency: The time to complete a resolver invocation.

    • +///
    • +///

      Cache hits: The number of cache hits during a request.

    • +///
    • +///

      Cache misses: The number of cache misses during a request.

    • +///
    +///

    These metrics can be emitted to CloudWatch per resolver or for all resolvers in the request. Metrics will be recorded by API ID and resolver name. resolverLevelMetricsBehavior accepts one of these values at a time:

    +///
      +///
    • +///

      FULL_REQUEST_RESOLVER_METRICS: Records and emits metric data for all resolvers in the request.

    • +///
    • +///

      PER_RESOLVER_METRICS: Records and emits metric data for resolvers that have the metricConfig value set to ENABLED.

    • +///
  2. +///
  3. +///

    dataSourceLevelMetricsBehavior: Controls how data source metrics will be emitted to CloudWatch. Data source metrics include:

    +///
      +///
    • +///

      Requests: The number of invocations that occured during a request.

    • +///
    • +///

      Latency: The time to complete a data source invocation.

    • +///
    • +///

      Errors: The number of errors that occurred during a data source invocation.

    • +///
    +///

    These metrics can be emitted to CloudWatch per data source or for all data sources in the request. Metrics will be recorded by API ID and data source name. dataSourceLevelMetricsBehavior accepts one of these values at a time:

    +///
      +///
    • +///

      FULL_REQUEST_DATA_SOURCE_METRICS: Records and emits metric data for all data sources in the request.

    • +///
    • +///

      PER_DATA_SOURCE_METRICS: Records and emits metric data for data sources that have the metricConfig value set to ENABLED.

    • +///
  4. +///
  5. +///

    operationLevelMetricsConfig: Controls how operation metrics will be emitted to CloudWatch. Operation metrics include:

    +///
      +///
    • +///

      Requests: The number of times a specified GraphQL operation was called.

    • +///
    • +///

      GraphQL errors: The number of GraphQL errors that occurred during a specified GraphQL operation.

    • +///
    +///

    Metrics will be recorded by API ID and operation name. You can set the value to ENABLED or DISABLED.

  6. +///
+#[non_exhaustive] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] +pub struct EnhancedMetricsConfig { + ///

Controls how resolver metrics will be emitted to CloudWatch. Resolver metrics include:

+ ///
    + ///
  • + ///

    GraphQL errors: The number of GraphQL errors that occurred.

  • + ///
  • + ///

    Requests: The number of invocations that occurred during a request.

  • + ///
  • + ///

    Latency: The time to complete a resolver invocation.

  • + ///
  • + ///

    Cache hits: The number of cache hits during a request.

  • + ///
  • + ///

    Cache misses: The number of cache misses during a request.

  • + ///
+ ///

These metrics can be emitted to CloudWatch per resolver or for all resolvers in the request. Metrics will be recorded by API ID and resolver name. resolverLevelMetricsBehavior accepts one of these values at a time:

+ ///
    + ///
  • + ///

    FULL_REQUEST_RESOLVER_METRICS: Records and emits metric data for all resolvers in the request.

  • + ///
  • + ///

    PER_RESOLVER_METRICS: Records and emits metric data for resolvers that have the metricConfig value set to ENABLED.

  • + ///
+ pub resolver_level_metrics_behavior: crate::types::ResolverLevelMetricsBehavior, + ///

Controls how data source metrics will be emitted to CloudWatch. Data source metrics include:

+ ///
    + ///
  • + ///

    Requests: The number of invocations that occured during a request.

  • + ///
  • + ///

    Latency: The time to complete a data source invocation.

  • + ///
  • + ///

    Errors: The number of errors that occurred during a data source invocation.

  • + ///
+ ///

These metrics can be emitted to CloudWatch per data source or for all data sources in the request. Metrics will be recorded by API ID and data source name. dataSourceLevelMetricsBehavior accepts one of these values at a time:

+ ///
    + ///
  • + ///

    FULL_REQUEST_DATA_SOURCE_METRICS: Records and emits metric data for all data sources in the request.

  • + ///
  • + ///

    PER_DATA_SOURCE_METRICS: Records and emits metric data for data sources that have the metricConfig value set to ENABLED.

  • + ///
+ pub data_source_level_metrics_behavior: crate::types::DataSourceLevelMetricsBehavior, + ///

Controls how operation metrics will be emitted to CloudWatch. Operation metrics include:

+ ///
    + ///
  • + ///

    Requests: The number of times a specified GraphQL operation was called.

  • + ///
  • + ///

    GraphQL errors: The number of GraphQL errors that occurred during a specified GraphQL operation.

  • + ///
+ ///

Metrics will be recorded by API ID and operation name. You can set the value to ENABLED or DISABLED.

+ pub operation_level_metrics_config: crate::types::OperationLevelMetricsConfig, +} +impl EnhancedMetricsConfig { + ///

Controls how resolver metrics will be emitted to CloudWatch. Resolver metrics include:

+ ///
    + ///
  • + ///

    GraphQL errors: The number of GraphQL errors that occurred.

  • + ///
  • + ///

    Requests: The number of invocations that occurred during a request.

  • + ///
  • + ///

    Latency: The time to complete a resolver invocation.

  • + ///
  • + ///

    Cache hits: The number of cache hits during a request.

  • + ///
  • + ///

    Cache misses: The number of cache misses during a request.

  • + ///
+ ///

These metrics can be emitted to CloudWatch per resolver or for all resolvers in the request. Metrics will be recorded by API ID and resolver name. resolverLevelMetricsBehavior accepts one of these values at a time:

+ ///
    + ///
  • + ///

    FULL_REQUEST_RESOLVER_METRICS: Records and emits metric data for all resolvers in the request.

  • + ///
  • + ///

    PER_RESOLVER_METRICS: Records and emits metric data for resolvers that have the metricConfig value set to ENABLED.

  • + ///
+ pub fn resolver_level_metrics_behavior(&self) -> &crate::types::ResolverLevelMetricsBehavior { + &self.resolver_level_metrics_behavior + } + ///

Controls how data source metrics will be emitted to CloudWatch. Data source metrics include:

+ ///
    + ///
  • + ///

    Requests: The number of invocations that occured during a request.

  • + ///
  • + ///

    Latency: The time to complete a data source invocation.

  • + ///
  • + ///

    Errors: The number of errors that occurred during a data source invocation.

  • + ///
+ ///

These metrics can be emitted to CloudWatch per data source or for all data sources in the request. Metrics will be recorded by API ID and data source name. dataSourceLevelMetricsBehavior accepts one of these values at a time:

+ ///
    + ///
  • + ///

    FULL_REQUEST_DATA_SOURCE_METRICS: Records and emits metric data for all data sources in the request.

  • + ///
  • + ///

    PER_DATA_SOURCE_METRICS: Records and emits metric data for data sources that have the metricConfig value set to ENABLED.

  • + ///
+ pub fn data_source_level_metrics_behavior(&self) -> &crate::types::DataSourceLevelMetricsBehavior { + &self.data_source_level_metrics_behavior + } + ///

Controls how operation metrics will be emitted to CloudWatch. Operation metrics include:

+ ///
    + ///
  • + ///

    Requests: The number of times a specified GraphQL operation was called.

  • + ///
  • + ///

    GraphQL errors: The number of GraphQL errors that occurred during a specified GraphQL operation.

  • + ///
+ ///

Metrics will be recorded by API ID and operation name. You can set the value to ENABLED or DISABLED.

+ pub fn operation_level_metrics_config(&self) -> &crate::types::OperationLevelMetricsConfig { + &self.operation_level_metrics_config + } +} +impl EnhancedMetricsConfig { + /// Creates a new builder-style object to manufacture [`EnhancedMetricsConfig`](crate::types::EnhancedMetricsConfig). + pub fn builder() -> crate::types::builders::EnhancedMetricsConfigBuilder { + crate::types::builders::EnhancedMetricsConfigBuilder::default() + } +} + +/// A builder for [`EnhancedMetricsConfig`](crate::types::EnhancedMetricsConfig). +#[non_exhaustive] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +pub struct EnhancedMetricsConfigBuilder { + pub(crate) resolver_level_metrics_behavior: ::std::option::Option, + pub(crate) data_source_level_metrics_behavior: ::std::option::Option, + pub(crate) operation_level_metrics_config: ::std::option::Option, +} +impl EnhancedMetricsConfigBuilder { + ///

Controls how resolver metrics will be emitted to CloudWatch. Resolver metrics include:

+ ///
    + ///
  • + ///

    GraphQL errors: The number of GraphQL errors that occurred.

  • + ///
  • + ///

    Requests: The number of invocations that occurred during a request.

  • + ///
  • + ///

    Latency: The time to complete a resolver invocation.

  • + ///
  • + ///

    Cache hits: The number of cache hits during a request.

  • + ///
  • + ///

    Cache misses: The number of cache misses during a request.

  • + ///
+ ///

These metrics can be emitted to CloudWatch per resolver or for all resolvers in the request. Metrics will be recorded by API ID and resolver name. resolverLevelMetricsBehavior accepts one of these values at a time:

+ ///
    + ///
  • + ///

    FULL_REQUEST_RESOLVER_METRICS: Records and emits metric data for all resolvers in the request.

  • + ///
  • + ///

    PER_RESOLVER_METRICS: Records and emits metric data for resolvers that have the metricConfig value set to ENABLED.

  • + ///
+ /// This field is required. + pub fn resolver_level_metrics_behavior(mut self, input: crate::types::ResolverLevelMetricsBehavior) -> Self { + self.resolver_level_metrics_behavior = ::std::option::Option::Some(input); + self + } + ///

Controls how resolver metrics will be emitted to CloudWatch. Resolver metrics include:

+ ///
    + ///
  • + ///

    GraphQL errors: The number of GraphQL errors that occurred.

  • + ///
  • + ///

    Requests: The number of invocations that occurred during a request.

  • + ///
  • + ///

    Latency: The time to complete a resolver invocation.

  • + ///
  • + ///

    Cache hits: The number of cache hits during a request.

  • + ///
  • + ///

    Cache misses: The number of cache misses during a request.

  • + ///
+ ///

These metrics can be emitted to CloudWatch per resolver or for all resolvers in the request. Metrics will be recorded by API ID and resolver name. resolverLevelMetricsBehavior accepts one of these values at a time:

+ ///
    + ///
  • + ///

    FULL_REQUEST_RESOLVER_METRICS: Records and emits metric data for all resolvers in the request.

  • + ///
  • + ///

    PER_RESOLVER_METRICS: Records and emits metric data for resolvers that have the metricConfig value set to ENABLED.

  • + ///
+ pub fn set_resolver_level_metrics_behavior(mut self, input: ::std::option::Option) -> Self { + self.resolver_level_metrics_behavior = input; + self + } + ///

Controls how resolver metrics will be emitted to CloudWatch. Resolver metrics include:

+ ///
    + ///
  • + ///

    GraphQL errors: The number of GraphQL errors that occurred.

  • + ///
  • + ///

    Requests: The number of invocations that occurred during a request.

  • + ///
  • + ///

    Latency: The time to complete a resolver invocation.

  • + ///
  • + ///

    Cache hits: The number of cache hits during a request.

  • + ///
  • + ///

    Cache misses: The number of cache misses during a request.

  • + ///
+ ///

These metrics can be emitted to CloudWatch per resolver or for all resolvers in the request. Metrics will be recorded by API ID and resolver name. resolverLevelMetricsBehavior accepts one of these values at a time:

+ ///
    + ///
  • + ///

    FULL_REQUEST_RESOLVER_METRICS: Records and emits metric data for all resolvers in the request.

  • + ///
  • + ///

    PER_RESOLVER_METRICS: Records and emits metric data for resolvers that have the metricConfig value set to ENABLED.

  • + ///
+ pub fn get_resolver_level_metrics_behavior(&self) -> &::std::option::Option { + &self.resolver_level_metrics_behavior + } + ///

Controls how data source metrics will be emitted to CloudWatch. Data source metrics include:

+ ///
    + ///
  • + ///

    Requests: The number of invocations that occured during a request.

  • + ///
  • + ///

    Latency: The time to complete a data source invocation.

  • + ///
  • + ///

    Errors: The number of errors that occurred during a data source invocation.

  • + ///
+ ///

These metrics can be emitted to CloudWatch per data source or for all data sources in the request. Metrics will be recorded by API ID and data source name. dataSourceLevelMetricsBehavior accepts one of these values at a time:

+ ///
    + ///
  • + ///

    FULL_REQUEST_DATA_SOURCE_METRICS: Records and emits metric data for all data sources in the request.

  • + ///
  • + ///

    PER_DATA_SOURCE_METRICS: Records and emits metric data for data sources that have the metricConfig value set to ENABLED.

  • + ///
+ /// This field is required. + pub fn data_source_level_metrics_behavior(mut self, input: crate::types::DataSourceLevelMetricsBehavior) -> Self { + self.data_source_level_metrics_behavior = ::std::option::Option::Some(input); + self + } + ///

Controls how data source metrics will be emitted to CloudWatch. Data source metrics include:

+ ///
    + ///
  • + ///

    Requests: The number of invocations that occured during a request.

  • + ///
  • + ///

    Latency: The time to complete a data source invocation.

  • + ///
  • + ///

    Errors: The number of errors that occurred during a data source invocation.

  • + ///
+ ///

These metrics can be emitted to CloudWatch per data source or for all data sources in the request. Metrics will be recorded by API ID and data source name. dataSourceLevelMetricsBehavior accepts one of these values at a time:

+ ///
    + ///
  • + ///

    FULL_REQUEST_DATA_SOURCE_METRICS: Records and emits metric data for all data sources in the request.

  • + ///
  • + ///

    PER_DATA_SOURCE_METRICS: Records and emits metric data for data sources that have the metricConfig value set to ENABLED.

  • + ///
+ pub fn set_data_source_level_metrics_behavior(mut self, input: ::std::option::Option) -> Self { + self.data_source_level_metrics_behavior = input; + self + } + ///

Controls how data source metrics will be emitted to CloudWatch. Data source metrics include:

+ ///
    + ///
  • + ///

    Requests: The number of invocations that occured during a request.

  • + ///
  • + ///

    Latency: The time to complete a data source invocation.

  • + ///
  • + ///

    Errors: The number of errors that occurred during a data source invocation.

  • + ///
+ ///

These metrics can be emitted to CloudWatch per data source or for all data sources in the request. Metrics will be recorded by API ID and data source name. dataSourceLevelMetricsBehavior accepts one of these values at a time:

+ ///
    + ///
  • + ///

    FULL_REQUEST_DATA_SOURCE_METRICS: Records and emits metric data for all data sources in the request.

  • + ///
  • + ///

    PER_DATA_SOURCE_METRICS: Records and emits metric data for data sources that have the metricConfig value set to ENABLED.

  • + ///
+ pub fn get_data_source_level_metrics_behavior(&self) -> &::std::option::Option { + &self.data_source_level_metrics_behavior + } + ///

Controls how operation metrics will be emitted to CloudWatch. Operation metrics include:

+ ///
    + ///
  • + ///

    Requests: The number of times a specified GraphQL operation was called.

  • + ///
  • + ///

    GraphQL errors: The number of GraphQL errors that occurred during a specified GraphQL operation.

  • + ///
+ ///

Metrics will be recorded by API ID and operation name. You can set the value to ENABLED or DISABLED.

+ /// This field is required. + pub fn operation_level_metrics_config(mut self, input: crate::types::OperationLevelMetricsConfig) -> Self { + self.operation_level_metrics_config = ::std::option::Option::Some(input); + self + } + ///

Controls how operation metrics will be emitted to CloudWatch. Operation metrics include:

+ ///
    + ///
  • + ///

    Requests: The number of times a specified GraphQL operation was called.

  • + ///
  • + ///

    GraphQL errors: The number of GraphQL errors that occurred during a specified GraphQL operation.

  • + ///
+ ///

Metrics will be recorded by API ID and operation name. You can set the value to ENABLED or DISABLED.

+ pub fn set_operation_level_metrics_config(mut self, input: ::std::option::Option) -> Self { + self.operation_level_metrics_config = input; + self + } + ///

Controls how operation metrics will be emitted to CloudWatch. Operation metrics include:

+ ///
    + ///
  • + ///

    Requests: The number of times a specified GraphQL operation was called.

  • + ///
  • + ///

    GraphQL errors: The number of GraphQL errors that occurred during a specified GraphQL operation.

  • + ///
+ ///

Metrics will be recorded by API ID and operation name. You can set the value to ENABLED or DISABLED.

+ pub fn get_operation_level_metrics_config(&self) -> &::std::option::Option { + &self.operation_level_metrics_config + } + /// Consumes the builder and constructs a [`EnhancedMetricsConfig`](crate::types::EnhancedMetricsConfig). + /// This method will fail if any of the following fields are not set: + /// - [`resolver_level_metrics_behavior`](crate::types::builders::EnhancedMetricsConfigBuilder::resolver_level_metrics_behavior) + /// - [`data_source_level_metrics_behavior`](crate::types::builders::EnhancedMetricsConfigBuilder::data_source_level_metrics_behavior) + /// - [`operation_level_metrics_config`](crate::types::builders::EnhancedMetricsConfigBuilder::operation_level_metrics_config) + pub fn build(self) -> ::std::result::Result { + ::std::result::Result::Ok(crate::types::EnhancedMetricsConfig { + resolver_level_metrics_behavior: self.resolver_level_metrics_behavior.ok_or_else(|| { + ::aws_smithy_types::error::operation::BuildError::missing_field( + "resolver_level_metrics_behavior", + "resolver_level_metrics_behavior was not specified but it is required when building EnhancedMetricsConfig", + ) + })?, + data_source_level_metrics_behavior: self.data_source_level_metrics_behavior.ok_or_else(|| { + ::aws_smithy_types::error::operation::BuildError::missing_field( + "data_source_level_metrics_behavior", + "data_source_level_metrics_behavior was not specified but it is required when building EnhancedMetricsConfig", + ) + })?, + operation_level_metrics_config: self.operation_level_metrics_config.ok_or_else(|| { + ::aws_smithy_types::error::operation::BuildError::missing_field( + "operation_level_metrics_config", + "operation_level_metrics_config was not specified but it is required when building EnhancedMetricsConfig", + ) + })?, + }) + } +} diff --git a/sdk/appsync/src/types/_graphql_api.rs b/sdk/appsync/src/types/_graphql_api.rs index 0faf219e5111..d967e38cebe2 100644 --- a/sdk/appsync/src/types/_graphql_api.rs +++ b/sdk/appsync/src/types/_graphql_api.rs @@ -51,6 +51,8 @@ pub struct GraphqlApi { pub query_depth_limit: i32, ///

The maximum number of resolvers that can be invoked in a single request. The default value is 0 (or unspecified), which will set the limit to 10000. When specified, the limit value can be between 1 and 10000. This field will produce a limit error if the operation falls out of bounds.

pub resolver_count_limit: i32, + ///

The enhancedMetricsConfig object.

+ pub enhanced_metrics_config: ::std::option::Option, } impl GraphqlApi { ///

The API name.

@@ -146,6 +148,10 @@ impl GraphqlApi { pub fn resolver_count_limit(&self) -> i32 { self.resolver_count_limit } + ///

The enhancedMetricsConfig object.

+ pub fn enhanced_metrics_config(&self) -> ::std::option::Option<&crate::types::EnhancedMetricsConfig> { + self.enhanced_metrics_config.as_ref() + } } impl GraphqlApi { /// Creates a new builder-style object to manufacture [`GraphqlApi`](crate::types::GraphqlApi). @@ -180,6 +186,7 @@ pub struct GraphqlApiBuilder { pub(crate) introspection_config: ::std::option::Option, pub(crate) query_depth_limit: ::std::option::Option, pub(crate) resolver_count_limit: ::std::option::Option, + pub(crate) enhanced_metrics_config: ::std::option::Option, } impl GraphqlApiBuilder { ///

The API name.

@@ -526,6 +533,20 @@ impl GraphqlApiBuilder { pub fn get_resolver_count_limit(&self) -> &::std::option::Option { &self.resolver_count_limit } + ///

The enhancedMetricsConfig object.

+ pub fn enhanced_metrics_config(mut self, input: crate::types::EnhancedMetricsConfig) -> Self { + self.enhanced_metrics_config = ::std::option::Option::Some(input); + self + } + ///

The enhancedMetricsConfig object.

+ pub fn set_enhanced_metrics_config(mut self, input: ::std::option::Option) -> Self { + self.enhanced_metrics_config = input; + self + } + ///

The enhancedMetricsConfig object.

+ pub fn get_enhanced_metrics_config(&self) -> &::std::option::Option { + &self.enhanced_metrics_config + } /// Consumes the builder and constructs a [`GraphqlApi`](crate::types::GraphqlApi). pub fn build(self) -> crate::types::GraphqlApi { crate::types::GraphqlApi { @@ -551,6 +572,7 @@ impl GraphqlApiBuilder { introspection_config: self.introspection_config, query_depth_limit: self.query_depth_limit.unwrap_or_default(), resolver_count_limit: self.resolver_count_limit.unwrap_or_default(), + enhanced_metrics_config: self.enhanced_metrics_config, } } } diff --git a/sdk/appsync/src/types/_operation_level_metrics_config.rs b/sdk/appsync/src/types/_operation_level_metrics_config.rs new file mode 100644 index 000000000000..29f3074b49b8 --- /dev/null +++ b/sdk/appsync/src/types/_operation_level_metrics_config.rs @@ -0,0 +1,98 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. + +/// When writing a match expression against `OperationLevelMetricsConfig`, it is important to ensure +/// your code is forward-compatible. That is, if a match arm handles a case for a +/// feature that is supported by the service but has not been represented as an enum +/// variant in a current version of SDK, your code should continue to work when you +/// upgrade SDK to a future version in which the enum does include a variant for that +/// feature. +/// +/// Here is an example of how you can make a match expression forward-compatible: +/// +/// ```text +/// # let operationlevelmetricsconfig = unimplemented!(); +/// match operationlevelmetricsconfig { +/// OperationLevelMetricsConfig::Disabled => { /* ... */ }, +/// OperationLevelMetricsConfig::Enabled => { /* ... */ }, +/// other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ }, +/// _ => { /* ... */ }, +/// } +/// ``` +/// The above code demonstrates that when `operationlevelmetricsconfig` represents +/// `NewFeature`, the execution path will lead to the second last match arm, +/// even though the enum does not contain a variant `OperationLevelMetricsConfig::NewFeature` +/// in the current version of SDK. The reason is that the variable `other`, +/// created by the `@` operator, is bound to +/// `OperationLevelMetricsConfig::Unknown(UnknownVariantValue("NewFeature".to_owned()))` +/// and calling `as_str` on it yields `"NewFeature"`. +/// This match expression is forward-compatible when executed with a newer +/// version of SDK where the variant `OperationLevelMetricsConfig::NewFeature` is defined. +/// Specifically, when `operationlevelmetricsconfig` represents `NewFeature`, +/// the execution path will hit the second last match arm as before by virtue of +/// calling `as_str` on `OperationLevelMetricsConfig::NewFeature` also yielding `"NewFeature"`. +/// +/// Explicitly matching on the `Unknown` variant should +/// be avoided for two reasons: +/// - The inner data `UnknownVariantValue` is opaque, and no further information can be extracted. +/// - It might inadvertently shadow other intended match arms. +#[allow(missing_docs)] // documentation missing in model +#[non_exhaustive] +#[derive( + ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::Ord, ::std::cmp::PartialEq, ::std::cmp::PartialOrd, ::std::fmt::Debug, ::std::hash::Hash, +)] +pub enum OperationLevelMetricsConfig { + #[allow(missing_docs)] // documentation missing in model + Disabled, + #[allow(missing_docs)] // documentation missing in model + Enabled, + /// `Unknown` contains new variants that have been added since this code was generated. + #[deprecated(note = "Don't directly match on `Unknown`. See the docs on this enum for the correct way to handle unknown variants.")] + Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue), +} +impl ::std::convert::From<&str> for OperationLevelMetricsConfig { + fn from(s: &str) -> Self { + match s { + "DISABLED" => OperationLevelMetricsConfig::Disabled, + "ENABLED" => OperationLevelMetricsConfig::Enabled, + other => OperationLevelMetricsConfig::Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue(other.to_owned())), + } + } +} +impl ::std::str::FromStr for OperationLevelMetricsConfig { + type Err = ::std::convert::Infallible; + + fn from_str(s: &str) -> ::std::result::Result::Err> { + ::std::result::Result::Ok(OperationLevelMetricsConfig::from(s)) + } +} +impl OperationLevelMetricsConfig { + /// Returns the `&str` value of the enum member. + pub fn as_str(&self) -> &str { + match self { + OperationLevelMetricsConfig::Disabled => "DISABLED", + OperationLevelMetricsConfig::Enabled => "ENABLED", + OperationLevelMetricsConfig::Unknown(value) => value.as_str(), + } + } + /// Returns all the `&str` representations of the enum members. + pub const fn values() -> &'static [&'static str] { + &["DISABLED", "ENABLED"] + } +} +impl ::std::convert::AsRef for OperationLevelMetricsConfig { + fn as_ref(&self) -> &str { + self.as_str() + } +} +impl OperationLevelMetricsConfig { + /// Parses the enum value while disallowing unknown variants. + /// + /// Unknown variants will result in an error. + pub fn try_parse(value: &str) -> ::std::result::Result { + match Self::from(value) { + #[allow(deprecated)] + Self::Unknown(_) => ::std::result::Result::Err(crate::error::UnknownVariantError::new(value)), + known => Ok(known), + } + } +} diff --git a/sdk/appsync/src/types/_resolver.rs b/sdk/appsync/src/types/_resolver.rs index 7e116c5d4a01..4f93a5847c7a 100644 --- a/sdk/appsync/src/types/_resolver.rs +++ b/sdk/appsync/src/types/_resolver.rs @@ -36,6 +36,9 @@ pub struct Resolver { pub runtime: ::std::option::Option, ///

The resolver code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.

pub code: ::std::option::Option<::std::string::String>, + ///

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub metrics_config: ::std::option::Option, } impl Resolver { ///

The resolver type name.

@@ -96,6 +99,11 @@ impl Resolver { pub fn code(&self) -> ::std::option::Option<&str> { self.code.as_deref() } + ///

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn metrics_config(&self) -> ::std::option::Option<&crate::types::ResolverLevelMetricsConfig> { + self.metrics_config.as_ref() + } } impl Resolver { /// Creates a new builder-style object to manufacture [`Resolver`](crate::types::Resolver). @@ -121,6 +129,7 @@ pub struct ResolverBuilder { pub(crate) max_batch_size: ::std::option::Option, pub(crate) runtime: ::std::option::Option, pub(crate) code: ::std::option::Option<::std::string::String>, + pub(crate) metrics_config: ::std::option::Option, } impl ResolverBuilder { ///

The resolver type name.

@@ -323,6 +332,23 @@ impl ResolverBuilder { pub fn get_code(&self) -> &::std::option::Option<::std::string::String> { &self.code } + ///

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn metrics_config(mut self, input: crate::types::ResolverLevelMetricsConfig) -> Self { + self.metrics_config = ::std::option::Option::Some(input); + self + } + ///

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn set_metrics_config(mut self, input: ::std::option::Option) -> Self { + self.metrics_config = input; + self + } + ///

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

+ ///

metricsConfig can be ENABLED or DISABLED.

+ pub fn get_metrics_config(&self) -> &::std::option::Option { + &self.metrics_config + } /// Consumes the builder and constructs a [`Resolver`](crate::types::Resolver). pub fn build(self) -> crate::types::Resolver { crate::types::Resolver { @@ -339,6 +365,7 @@ impl ResolverBuilder { max_batch_size: self.max_batch_size.unwrap_or_default(), runtime: self.runtime, code: self.code, + metrics_config: self.metrics_config, } } } diff --git a/sdk/appsync/src/types/_resolver_level_metrics_behavior.rs b/sdk/appsync/src/types/_resolver_level_metrics_behavior.rs new file mode 100644 index 000000000000..2ae99e84029b --- /dev/null +++ b/sdk/appsync/src/types/_resolver_level_metrics_behavior.rs @@ -0,0 +1,98 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. + +/// When writing a match expression against `ResolverLevelMetricsBehavior`, it is important to ensure +/// your code is forward-compatible. That is, if a match arm handles a case for a +/// feature that is supported by the service but has not been represented as an enum +/// variant in a current version of SDK, your code should continue to work when you +/// upgrade SDK to a future version in which the enum does include a variant for that +/// feature. +/// +/// Here is an example of how you can make a match expression forward-compatible: +/// +/// ```text +/// # let resolverlevelmetricsbehavior = unimplemented!(); +/// match resolverlevelmetricsbehavior { +/// ResolverLevelMetricsBehavior::FullRequestResolverMetrics => { /* ... */ }, +/// ResolverLevelMetricsBehavior::PerResolverMetrics => { /* ... */ }, +/// other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ }, +/// _ => { /* ... */ }, +/// } +/// ``` +/// The above code demonstrates that when `resolverlevelmetricsbehavior` represents +/// `NewFeature`, the execution path will lead to the second last match arm, +/// even though the enum does not contain a variant `ResolverLevelMetricsBehavior::NewFeature` +/// in the current version of SDK. The reason is that the variable `other`, +/// created by the `@` operator, is bound to +/// `ResolverLevelMetricsBehavior::Unknown(UnknownVariantValue("NewFeature".to_owned()))` +/// and calling `as_str` on it yields `"NewFeature"`. +/// This match expression is forward-compatible when executed with a newer +/// version of SDK where the variant `ResolverLevelMetricsBehavior::NewFeature` is defined. +/// Specifically, when `resolverlevelmetricsbehavior` represents `NewFeature`, +/// the execution path will hit the second last match arm as before by virtue of +/// calling `as_str` on `ResolverLevelMetricsBehavior::NewFeature` also yielding `"NewFeature"`. +/// +/// Explicitly matching on the `Unknown` variant should +/// be avoided for two reasons: +/// - The inner data `UnknownVariantValue` is opaque, and no further information can be extracted. +/// - It might inadvertently shadow other intended match arms. +#[allow(missing_docs)] // documentation missing in model +#[non_exhaustive] +#[derive( + ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::Ord, ::std::cmp::PartialEq, ::std::cmp::PartialOrd, ::std::fmt::Debug, ::std::hash::Hash, +)] +pub enum ResolverLevelMetricsBehavior { + #[allow(missing_docs)] // documentation missing in model + FullRequestResolverMetrics, + #[allow(missing_docs)] // documentation missing in model + PerResolverMetrics, + /// `Unknown` contains new variants that have been added since this code was generated. + #[deprecated(note = "Don't directly match on `Unknown`. See the docs on this enum for the correct way to handle unknown variants.")] + Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue), +} +impl ::std::convert::From<&str> for ResolverLevelMetricsBehavior { + fn from(s: &str) -> Self { + match s { + "FULL_REQUEST_RESOLVER_METRICS" => ResolverLevelMetricsBehavior::FullRequestResolverMetrics, + "PER_RESOLVER_METRICS" => ResolverLevelMetricsBehavior::PerResolverMetrics, + other => ResolverLevelMetricsBehavior::Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue(other.to_owned())), + } + } +} +impl ::std::str::FromStr for ResolverLevelMetricsBehavior { + type Err = ::std::convert::Infallible; + + fn from_str(s: &str) -> ::std::result::Result::Err> { + ::std::result::Result::Ok(ResolverLevelMetricsBehavior::from(s)) + } +} +impl ResolverLevelMetricsBehavior { + /// Returns the `&str` value of the enum member. + pub fn as_str(&self) -> &str { + match self { + ResolverLevelMetricsBehavior::FullRequestResolverMetrics => "FULL_REQUEST_RESOLVER_METRICS", + ResolverLevelMetricsBehavior::PerResolverMetrics => "PER_RESOLVER_METRICS", + ResolverLevelMetricsBehavior::Unknown(value) => value.as_str(), + } + } + /// Returns all the `&str` representations of the enum members. + pub const fn values() -> &'static [&'static str] { + &["FULL_REQUEST_RESOLVER_METRICS", "PER_RESOLVER_METRICS"] + } +} +impl ::std::convert::AsRef for ResolverLevelMetricsBehavior { + fn as_ref(&self) -> &str { + self.as_str() + } +} +impl ResolverLevelMetricsBehavior { + /// Parses the enum value while disallowing unknown variants. + /// + /// Unknown variants will result in an error. + pub fn try_parse(value: &str) -> ::std::result::Result { + match Self::from(value) { + #[allow(deprecated)] + Self::Unknown(_) => ::std::result::Result::Err(crate::error::UnknownVariantError::new(value)), + known => Ok(known), + } + } +} diff --git a/sdk/appsync/src/types/_resolver_level_metrics_config.rs b/sdk/appsync/src/types/_resolver_level_metrics_config.rs new file mode 100644 index 000000000000..14daeffc1cdd --- /dev/null +++ b/sdk/appsync/src/types/_resolver_level_metrics_config.rs @@ -0,0 +1,98 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. + +/// When writing a match expression against `ResolverLevelMetricsConfig`, it is important to ensure +/// your code is forward-compatible. That is, if a match arm handles a case for a +/// feature that is supported by the service but has not been represented as an enum +/// variant in a current version of SDK, your code should continue to work when you +/// upgrade SDK to a future version in which the enum does include a variant for that +/// feature. +/// +/// Here is an example of how you can make a match expression forward-compatible: +/// +/// ```text +/// # let resolverlevelmetricsconfig = unimplemented!(); +/// match resolverlevelmetricsconfig { +/// ResolverLevelMetricsConfig::Disabled => { /* ... */ }, +/// ResolverLevelMetricsConfig::Enabled => { /* ... */ }, +/// other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ }, +/// _ => { /* ... */ }, +/// } +/// ``` +/// The above code demonstrates that when `resolverlevelmetricsconfig` represents +/// `NewFeature`, the execution path will lead to the second last match arm, +/// even though the enum does not contain a variant `ResolverLevelMetricsConfig::NewFeature` +/// in the current version of SDK. The reason is that the variable `other`, +/// created by the `@` operator, is bound to +/// `ResolverLevelMetricsConfig::Unknown(UnknownVariantValue("NewFeature".to_owned()))` +/// and calling `as_str` on it yields `"NewFeature"`. +/// This match expression is forward-compatible when executed with a newer +/// version of SDK where the variant `ResolverLevelMetricsConfig::NewFeature` is defined. +/// Specifically, when `resolverlevelmetricsconfig` represents `NewFeature`, +/// the execution path will hit the second last match arm as before by virtue of +/// calling `as_str` on `ResolverLevelMetricsConfig::NewFeature` also yielding `"NewFeature"`. +/// +/// Explicitly matching on the `Unknown` variant should +/// be avoided for two reasons: +/// - The inner data `UnknownVariantValue` is opaque, and no further information can be extracted. +/// - It might inadvertently shadow other intended match arms. +#[allow(missing_docs)] // documentation missing in model +#[non_exhaustive] +#[derive( + ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::Ord, ::std::cmp::PartialEq, ::std::cmp::PartialOrd, ::std::fmt::Debug, ::std::hash::Hash, +)] +pub enum ResolverLevelMetricsConfig { + #[allow(missing_docs)] // documentation missing in model + Disabled, + #[allow(missing_docs)] // documentation missing in model + Enabled, + /// `Unknown` contains new variants that have been added since this code was generated. + #[deprecated(note = "Don't directly match on `Unknown`. See the docs on this enum for the correct way to handle unknown variants.")] + Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue), +} +impl ::std::convert::From<&str> for ResolverLevelMetricsConfig { + fn from(s: &str) -> Self { + match s { + "DISABLED" => ResolverLevelMetricsConfig::Disabled, + "ENABLED" => ResolverLevelMetricsConfig::Enabled, + other => ResolverLevelMetricsConfig::Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue(other.to_owned())), + } + } +} +impl ::std::str::FromStr for ResolverLevelMetricsConfig { + type Err = ::std::convert::Infallible; + + fn from_str(s: &str) -> ::std::result::Result::Err> { + ::std::result::Result::Ok(ResolverLevelMetricsConfig::from(s)) + } +} +impl ResolverLevelMetricsConfig { + /// Returns the `&str` value of the enum member. + pub fn as_str(&self) -> &str { + match self { + ResolverLevelMetricsConfig::Disabled => "DISABLED", + ResolverLevelMetricsConfig::Enabled => "ENABLED", + ResolverLevelMetricsConfig::Unknown(value) => value.as_str(), + } + } + /// Returns all the `&str` representations of the enum members. + pub const fn values() -> &'static [&'static str] { + &["DISABLED", "ENABLED"] + } +} +impl ::std::convert::AsRef for ResolverLevelMetricsConfig { + fn as_ref(&self) -> &str { + self.as_str() + } +} +impl ResolverLevelMetricsConfig { + /// Parses the enum value while disallowing unknown variants. + /// + /// Unknown variants will result in an error. + pub fn try_parse(value: &str) -> ::std::result::Result { + match Self::from(value) { + #[allow(deprecated)] + Self::Unknown(_) => ::std::result::Result::Err(crate::error::UnknownVariantError::new(value)), + known => Ok(known), + } + } +} diff --git a/sdk/appsync/src/types/builders.rs b/sdk/appsync/src/types/builders.rs index 7aa83aeb66b2..3a4cf394453b 100644 --- a/sdk/appsync/src/types/builders.rs +++ b/sdk/appsync/src/types/builders.rs @@ -25,6 +25,8 @@ pub use crate::types::_pipeline_config::PipelineConfigBuilder; pub use crate::types::_graphql_api::GraphqlApiBuilder; +pub use crate::types::_enhanced_metrics_config::EnhancedMetricsConfigBuilder; + pub use crate::types::_lambda_authorizer_config::LambdaAuthorizerConfigBuilder; pub use crate::types::_additional_authentication_provider::AdditionalAuthenticationProviderBuilder; diff --git a/sdk/cloudwatch/Cargo.toml b/sdk/cloudwatch/Cargo.toml index 86a489e3df18..2ba2d0f48978 100644 --- a/sdk/cloudwatch/Cargo.toml +++ b/sdk/cloudwatch/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-cloudwatch" -version = "1.14.0" +version = "1.15.0" authors = ["AWS Rust SDK Team ", "Russell Cohen "] description = "AWS SDK for Amazon CloudWatch" edition = "2021" diff --git a/sdk/cloudwatch/README.md b/sdk/cloudwatch/README.md index 32f692c9ceb2..ecaf6de2562c 100644 --- a/sdk/cloudwatch/README.md +++ b/sdk/cloudwatch/README.md @@ -18,7 +18,7 @@ your project, add the following to your **Cargo.toml** file: ```toml [dependencies] aws-config = { version = "1.1.5", features = ["behavior-version-latest"] } -aws-sdk-cloudwatch = "1.14.0" +aws-sdk-cloudwatch = "1.15.0" tokio = { version = "1", features = ["full"] } ``` diff --git a/sdk/cloudwatch/src/lib.rs b/sdk/cloudwatch/src/lib.rs index 49e09e748eb1..93b1e4038680 100644 --- a/sdk/cloudwatch/src/lib.rs +++ b/sdk/cloudwatch/src/lib.rs @@ -33,7 +33,7 @@ //! ```toml //! [dependencies] //! aws-config = { version = "1.1.5", features = ["behavior-version-latest"] } -//! aws-sdk-cloudwatch = "1.14.0" +//! aws-sdk-cloudwatch = "1.15.0" //! tokio = { version = "1", features = ["full"] } //! ``` //! diff --git a/sdk/neptunegraph/Cargo.toml b/sdk/neptunegraph/Cargo.toml index 880f289cf549..585fddba5e65 100644 --- a/sdk/neptunegraph/Cargo.toml +++ b/sdk/neptunegraph/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-neptunegraph" -version = "1.7.0" +version = "1.8.0" authors = ["AWS Rust SDK Team ", "Russell Cohen "] description = "AWS SDK for Amazon Neptune Graph" edition = "2021" diff --git a/sdk/neptunegraph/README.md b/sdk/neptunegraph/README.md index 07d3b4a25408..683b5404deb5 100644 --- a/sdk/neptunegraph/README.md +++ b/sdk/neptunegraph/README.md @@ -14,7 +14,7 @@ your project, add the following to your **Cargo.toml** file: ```toml [dependencies] aws-config = { version = "1.1.5", features = ["behavior-version-latest"] } -aws-sdk-neptunegraph = "1.7.0" +aws-sdk-neptunegraph = "1.8.0" tokio = { version = "1", features = ["full"] } ``` diff --git a/sdk/neptunegraph/src/client/create_graph.rs b/sdk/neptunegraph/src/client/create_graph.rs index aa77f297279b..d94aed531cc7 100644 --- a/sdk/neptunegraph/src/client/create_graph.rs +++ b/sdk/neptunegraph/src/client/create_graph.rs @@ -5,7 +5,7 @@ impl super::Client { /// - The fluent builder is configurable: /// - [`graph_name(impl Into)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::graph_name) / [`set_graph_name(Option)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::set_graph_name):
required: **true**

A name for the new Neptune Analytics graph to be created.

The name must contain from 1 to 63 letters, numbers, or hyphens, and its first character must be a letter. It cannot end with a hyphen or contain two consecutive hyphens.


/// - [`tags(impl Into, impl Into)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::tags) / [`set_tags(Option>)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::set_tags):
required: **false**

Adds metadata tags to the new graph. These tags can also be used with cost allocation reporting, or used in a Condition statement in an IAM policy.


- /// - [`public_connectivity(bool)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::public_connectivity) / [`set_public_connectivity(Option)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::set_public_connectivity):
required: **false**

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable.


+ /// - [`public_connectivity(bool)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::public_connectivity) / [`set_public_connectivity(Option)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::set_public_connectivity):
required: **false**

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable.


/// - [`kms_key_identifier(impl Into)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::kms_key_identifier) / [`set_kms_key_identifier(Option)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::set_kms_key_identifier):
required: **false**

Specifies a KMS key to use to encrypt data in the new graph.


/// - [`vector_search_configuration(VectorSearchConfiguration)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::vector_search_configuration) / [`set_vector_search_configuration(Option)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::set_vector_search_configuration):
required: **false**

Specifies the number of dimensions for vector embeddings that will be loaded into the graph. The value is specified as dimension=value. Max = 65,535


/// - [`replica_count(i32)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::replica_count) / [`set_replica_count(Option)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::set_replica_count):
required: **false**

The number of replicas in other AZs. Min =0, Max = 2, Default = 1.


@@ -20,7 +20,7 @@ impl super::Client { /// - [`create_time(Option)`](crate::operation::create_graph::CreateGraphOutput::create_time):

The time when the graph was created.

/// - [`provisioned_memory(Option)`](crate::operation::create_graph::CreateGraphOutput::provisioned_memory):

The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph. Min = 128

/// - [`endpoint(Option)`](crate::operation::create_graph::CreateGraphOutput::endpoint):

The graph endpoint.

- /// - [`public_connectivity(Option)`](crate::operation::create_graph::CreateGraphOutput::public_connectivity):

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated.

+ /// - [`public_connectivity(Option)`](crate::operation::create_graph::CreateGraphOutput::public_connectivity):

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.

/// - [`vector_search_configuration(Option)`](crate::operation::create_graph::CreateGraphOutput::vector_search_configuration):

The vector-search configuration for the graph, which specifies the vector dimension to use in the vector index, if any.

/// - [`replica_count(Option)`](crate::operation::create_graph::CreateGraphOutput::replica_count):

The number of replicas in other AZs.

/// - [`kms_key_identifier(Option)`](crate::operation::create_graph::CreateGraphOutput::kms_key_identifier):

Specifies the KMS key used to encrypt data in the new graph.

diff --git a/sdk/neptunegraph/src/client/create_graph_using_import_task.rs b/sdk/neptunegraph/src/client/create_graph_using_import_task.rs index 440bde3a090f..b90d0502e249 100644 --- a/sdk/neptunegraph/src/client/create_graph_using_import_task.rs +++ b/sdk/neptunegraph/src/client/create_graph_using_import_task.rs @@ -5,7 +5,7 @@ impl super::Client { /// - The fluent builder is configurable: /// - [`graph_name(impl Into)`](crate::operation::create_graph_using_import_task::builders::CreateGraphUsingImportTaskFluentBuilder::graph_name) / [`set_graph_name(Option)`](crate::operation::create_graph_using_import_task::builders::CreateGraphUsingImportTaskFluentBuilder::set_graph_name):
required: **true**

A name for the new Neptune Analytics graph to be created.

The name must contain from 1 to 63 letters, numbers, or hyphens, and its first character must be a letter. It cannot end with a hyphen or contain two consecutive hyphens.


/// - [`tags(impl Into, impl Into)`](crate::operation::create_graph_using_import_task::builders::CreateGraphUsingImportTaskFluentBuilder::tags) / [`set_tags(Option>)`](crate::operation::create_graph_using_import_task::builders::CreateGraphUsingImportTaskFluentBuilder::set_tags):
required: **false**

Adds metadata tags to the new graph. These tags can also be used with cost allocation reporting, or used in a Condition statement in an IAM policy.


- /// - [`public_connectivity(bool)`](crate::operation::create_graph_using_import_task::builders::CreateGraphUsingImportTaskFluentBuilder::public_connectivity) / [`set_public_connectivity(Option)`](crate::operation::create_graph_using_import_task::builders::CreateGraphUsingImportTaskFluentBuilder::set_public_connectivity):
required: **false**

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable).


+ /// - [`public_connectivity(bool)`](crate::operation::create_graph_using_import_task::builders::CreateGraphUsingImportTaskFluentBuilder::public_connectivity) / [`set_public_connectivity(Option)`](crate::operation::create_graph_using_import_task::builders::CreateGraphUsingImportTaskFluentBuilder::set_public_connectivity):
required: **false**

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable).


/// - [`kms_key_identifier(impl Into)`](crate::operation::create_graph_using_import_task::builders::CreateGraphUsingImportTaskFluentBuilder::kms_key_identifier) / [`set_kms_key_identifier(Option)`](crate::operation::create_graph_using_import_task::builders::CreateGraphUsingImportTaskFluentBuilder::set_kms_key_identifier):
required: **false**

Specifies a KMS key to use to encrypt data imported into the new graph.


/// - [`vector_search_configuration(VectorSearchConfiguration)`](crate::operation::create_graph_using_import_task::builders::CreateGraphUsingImportTaskFluentBuilder::vector_search_configuration) / [`set_vector_search_configuration(Option)`](crate::operation::create_graph_using_import_task::builders::CreateGraphUsingImportTaskFluentBuilder::set_vector_search_configuration):
required: **false**

Specifies the number of dimensions for vector embeddings that will be loaded into the graph. The value is specified as dimension=value. Max = 65,535


/// - [`replica_count(i32)`](crate::operation::create_graph_using_import_task::builders::CreateGraphUsingImportTaskFluentBuilder::replica_count) / [`set_replica_count(Option)`](crate::operation::create_graph_using_import_task::builders::CreateGraphUsingImportTaskFluentBuilder::set_replica_count):
required: **false**

The number of replicas in other AZs to provision on the new graph after import. Default = 0, Min = 0, Max = 2.


diff --git a/sdk/neptunegraph/src/client/execute_query.rs b/sdk/neptunegraph/src/client/execute_query.rs index eb228ada8bab..0baef2f82e9d 100644 --- a/sdk/neptunegraph/src/client/execute_query.rs +++ b/sdk/neptunegraph/src/client/execute_query.rs @@ -6,6 +6,7 @@ impl super::Client { /// - [`graph_identifier(impl Into)`](crate::operation::execute_query::builders::ExecuteQueryFluentBuilder::graph_identifier) / [`set_graph_identifier(Option)`](crate::operation::execute_query::builders::ExecuteQueryFluentBuilder::set_graph_identifier):
required: **true**

The unique identifier of the Neptune Analytics graph.


/// - [`query_string(impl Into)`](crate::operation::execute_query::builders::ExecuteQueryFluentBuilder::query_string) / [`set_query_string(Option)`](crate::operation::execute_query::builders::ExecuteQueryFluentBuilder::set_query_string):
required: **true**

The query string to be executed.


/// - [`language(QueryLanguage)`](crate::operation::execute_query::builders::ExecuteQueryFluentBuilder::language) / [`set_language(Option)`](crate::operation::execute_query::builders::ExecuteQueryFluentBuilder::set_language):
required: **true**

The query language the query is written in. Currently only openCypher is supported.


+ /// - [`parameters(impl Into, Document)`](crate::operation::execute_query::builders::ExecuteQueryFluentBuilder::parameters) / [`set_parameters(Option>)`](crate::operation::execute_query::builders::ExecuteQueryFluentBuilder::set_parameters):
required: **false**

The data parameters the query can use in JSON format. For example: {"name": "john", "age": 20}. (optional)


/// - [`plan_cache(PlanCacheType)`](crate::operation::execute_query::builders::ExecuteQueryFluentBuilder::plan_cache) / [`set_plan_cache(Option)`](crate::operation::execute_query::builders::ExecuteQueryFluentBuilder::set_plan_cache):
required: **false**

Query plan cache is a feature that saves the query plan and reuses it on successive executions of the same query. This reduces query latency, and works for both READ and UPDATE queries. The plan cache is an LRU cache with a 5 minute TTL and a capacity of 1000.


/// - [`explain_mode(ExplainMode)`](crate::operation::execute_query::builders::ExecuteQueryFluentBuilder::explain_mode) / [`set_explain_mode(Option)`](crate::operation::execute_query::builders::ExecuteQueryFluentBuilder::set_explain_mode):
required: **false**

The explain mode parameter returns a query explain instead of the actual query results. A query explain can be used to gather insights about the query execution such as planning decisions, time spent on each operator, solutions flowing etc.


/// - [`query_timeout_milliseconds(i32)`](crate::operation::execute_query::builders::ExecuteQueryFluentBuilder::query_timeout_milliseconds) / [`set_query_timeout_milliseconds(Option)`](crate::operation::execute_query::builders::ExecuteQueryFluentBuilder::set_query_timeout_milliseconds):
required: **false**

Specifies the query timeout duration, in milliseconds. (optional)


diff --git a/sdk/neptunegraph/src/client/restore_graph_from_snapshot.rs b/sdk/neptunegraph/src/client/restore_graph_from_snapshot.rs index bb48a4ffebf5..eead4d92d106 100644 --- a/sdk/neptunegraph/src/client/restore_graph_from_snapshot.rs +++ b/sdk/neptunegraph/src/client/restore_graph_from_snapshot.rs @@ -9,7 +9,7 @@ impl super::Client { /// - [`deletion_protection(bool)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::deletion_protection) / [`set_deletion_protection(Option)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::set_deletion_protection):
required: **false**

A value that indicates whether the graph has deletion protection enabled. The graph can't be deleted when deletion protection is enabled.


/// - [`tags(impl Into, impl Into)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::tags) / [`set_tags(Option>)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::set_tags):
required: **false**

Adds metadata tags to the snapshot. These tags can also be used with cost allocation reporting, or used in a Condition statement in an IAM policy.


/// - [`replica_count(i32)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::replica_count) / [`set_replica_count(Option)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::set_replica_count):
required: **false**

The number of replicas in other AZs. Min =0, Max = 2, Default =1


- /// - [`public_connectivity(bool)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::public_connectivity) / [`set_public_connectivity(Option)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::set_public_connectivity):
required: **false**

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable).


+ /// - [`public_connectivity(bool)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::public_connectivity) / [`set_public_connectivity(Option)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::set_public_connectivity):
required: **false**

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable).


/// - On success, responds with [`RestoreGraphFromSnapshotOutput`](crate::operation::restore_graph_from_snapshot::RestoreGraphFromSnapshotOutput) with field(s): /// - [`id(String)`](crate::operation::restore_graph_from_snapshot::RestoreGraphFromSnapshotOutput::id):

The unique identifier of the graph.

/// - [`name(String)`](crate::operation::restore_graph_from_snapshot::RestoreGraphFromSnapshotOutput::name):

The name of the graph.

diff --git a/sdk/neptunegraph/src/client/update_graph.rs b/sdk/neptunegraph/src/client/update_graph.rs index 08ab273e0b16..653051c7aacd 100644 --- a/sdk/neptunegraph/src/client/update_graph.rs +++ b/sdk/neptunegraph/src/client/update_graph.rs @@ -4,7 +4,7 @@ impl super::Client { /// /// - The fluent builder is configurable: /// - [`graph_identifier(impl Into)`](crate::operation::update_graph::builders::UpdateGraphFluentBuilder::graph_identifier) / [`set_graph_identifier(Option)`](crate::operation::update_graph::builders::UpdateGraphFluentBuilder::set_graph_identifier):
required: **true**

The unique identifier of the Neptune Analytics graph.


- /// - [`public_connectivity(bool)`](crate::operation::update_graph::builders::UpdateGraphFluentBuilder::public_connectivity) / [`set_public_connectivity(Option)`](crate::operation::update_graph::builders::UpdateGraphFluentBuilder::set_public_connectivity):
required: **false**

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable.


+ /// - [`public_connectivity(bool)`](crate::operation::update_graph::builders::UpdateGraphFluentBuilder::public_connectivity) / [`set_public_connectivity(Option)`](crate::operation::update_graph::builders::UpdateGraphFluentBuilder::set_public_connectivity):
required: **false**

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable.


/// - [`provisioned_memory(i32)`](crate::operation::update_graph::builders::UpdateGraphFluentBuilder::provisioned_memory) / [`set_provisioned_memory(Option)`](crate::operation::update_graph::builders::UpdateGraphFluentBuilder::set_provisioned_memory):
required: **false**

The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph. Min = 128


/// - [`deletion_protection(bool)`](crate::operation::update_graph::builders::UpdateGraphFluentBuilder::deletion_protection) / [`set_deletion_protection(Option)`](crate::operation::update_graph::builders::UpdateGraphFluentBuilder::set_deletion_protection):
required: **false**

A value that indicates whether the graph has deletion protection enabled. The graph can't be deleted when deletion protection is enabled.


/// - On success, responds with [`UpdateGraphOutput`](crate::operation::update_graph::UpdateGraphOutput) with field(s): diff --git a/sdk/neptunegraph/src/lib.rs b/sdk/neptunegraph/src/lib.rs index 0b869deb9eee..a15c7c5b1007 100644 --- a/sdk/neptunegraph/src/lib.rs +++ b/sdk/neptunegraph/src/lib.rs @@ -29,7 +29,7 @@ //! ```toml //! [dependencies] //! aws-config = { version = "1.1.5", features = ["behavior-version-latest"] } -//! aws-sdk-neptunegraph = "1.7.0" +//! aws-sdk-neptunegraph = "1.8.0" //! tokio = { version = "1", features = ["full"] } //! ``` //! diff --git a/sdk/neptunegraph/src/operation/create_graph/_create_graph_input.rs b/sdk/neptunegraph/src/operation/create_graph/_create_graph_input.rs index e87aebb008cc..659445c2fdde 100644 --- a/sdk/neptunegraph/src/operation/create_graph/_create_graph_input.rs +++ b/sdk/neptunegraph/src/operation/create_graph/_create_graph_input.rs @@ -8,7 +8,7 @@ pub struct CreateGraphInput { pub graph_name: ::std::option::Option<::std::string::String>, ///

Adds metadata tags to the new graph. These tags can also be used with cost allocation reporting, or used in a Condition statement in an IAM policy.

pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>, - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable.

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable.

pub public_connectivity: ::std::option::Option, ///

Specifies a KMS key to use to encrypt data in the new graph.

pub kms_key_identifier: ::std::option::Option<::std::string::String>, @@ -31,7 +31,7 @@ impl CreateGraphInput { pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> { self.tags.as_ref() } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable.

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable.

pub fn public_connectivity(&self) -> ::std::option::Option { self.public_connectivity } @@ -115,17 +115,17 @@ impl CreateGraphInputBuilder { pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> { &self.tags } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable.

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable.

pub fn public_connectivity(mut self, input: bool) -> Self { self.public_connectivity = ::std::option::Option::Some(input); self } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable.

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable.

pub fn set_public_connectivity(mut self, input: ::std::option::Option) -> Self { self.public_connectivity = input; self } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable.

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable.

pub fn get_public_connectivity(&self) -> &::std::option::Option { &self.public_connectivity } diff --git a/sdk/neptunegraph/src/operation/create_graph/_create_graph_output.rs b/sdk/neptunegraph/src/operation/create_graph/_create_graph_output.rs index 97e0a7877b6a..d65ff906f4c0 100644 --- a/sdk/neptunegraph/src/operation/create_graph/_create_graph_output.rs +++ b/sdk/neptunegraph/src/operation/create_graph/_create_graph_output.rs @@ -20,7 +20,7 @@ pub struct CreateGraphOutput { pub provisioned_memory: ::std::option::Option, ///

The graph endpoint.

pub endpoint: ::std::option::Option<::std::string::String>, - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated.

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.

pub public_connectivity: ::std::option::Option, ///

The vector-search configuration for the graph, which specifies the vector dimension to use in the vector index, if any.

pub vector_search_configuration: ::std::option::Option, @@ -73,7 +73,7 @@ impl CreateGraphOutput { pub fn endpoint(&self) -> ::std::option::Option<&str> { self.endpoint.as_deref() } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated.

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.

pub fn public_connectivity(&self) -> ::std::option::Option { self.public_connectivity } @@ -254,17 +254,17 @@ impl CreateGraphOutputBuilder { pub fn get_endpoint(&self) -> &::std::option::Option<::std::string::String> { &self.endpoint } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated.

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.

pub fn public_connectivity(mut self, input: bool) -> Self { self.public_connectivity = ::std::option::Option::Some(input); self } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated.

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.

pub fn set_public_connectivity(mut self, input: ::std::option::Option) -> Self { self.public_connectivity = input; self } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated.

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.

pub fn get_public_connectivity(&self) -> &::std::option::Option { &self.public_connectivity } diff --git a/sdk/neptunegraph/src/operation/create_graph/builders.rs b/sdk/neptunegraph/src/operation/create_graph/builders.rs index 0cfa58efaeed..f38300047513 100644 --- a/sdk/neptunegraph/src/operation/create_graph/builders.rs +++ b/sdk/neptunegraph/src/operation/create_graph/builders.rs @@ -143,17 +143,17 @@ impl CreateGraphFluentBuilder { pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> { self.inner.get_tags() } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable.

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable.

pub fn public_connectivity(mut self, input: bool) -> Self { self.inner = self.inner.public_connectivity(input); self } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable.

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable.

pub fn set_public_connectivity(mut self, input: ::std::option::Option) -> Self { self.inner = self.inner.set_public_connectivity(input); self } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable.

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable.

pub fn get_public_connectivity(&self) -> &::std::option::Option { self.inner.get_public_connectivity() } diff --git a/sdk/neptunegraph/src/operation/create_graph_using_import_task/_create_graph_using_import_task_input.rs b/sdk/neptunegraph/src/operation/create_graph_using_import_task/_create_graph_using_import_task_input.rs index 0bdb9d23f50f..6b6ef5502f2b 100644 --- a/sdk/neptunegraph/src/operation/create_graph_using_import_task/_create_graph_using_import_task_input.rs +++ b/sdk/neptunegraph/src/operation/create_graph_using_import_task/_create_graph_using_import_task_input.rs @@ -8,7 +8,7 @@ pub struct CreateGraphUsingImportTaskInput { pub graph_name: ::std::option::Option<::std::string::String>, ///

Adds metadata tags to the new graph. These tags can also be used with cost allocation reporting, or used in a Condition statement in an IAM policy.

pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>, - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable).

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable).

pub public_connectivity: ::std::option::Option, ///

Specifies a KMS key to use to encrypt data imported into the new graph.

pub kms_key_identifier: ::std::option::Option<::std::string::String>, @@ -44,7 +44,7 @@ impl CreateGraphUsingImportTaskInput { pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> { self.tags.as_ref() } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable).

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable).

pub fn public_connectivity(&self) -> ::std::option::Option { self.public_connectivity } @@ -159,17 +159,17 @@ impl CreateGraphUsingImportTaskInputBuilder { pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> { &self.tags } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable).

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable).

pub fn public_connectivity(mut self, input: bool) -> Self { self.public_connectivity = ::std::option::Option::Some(input); self } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable).

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable).

pub fn set_public_connectivity(mut self, input: ::std::option::Option) -> Self { self.public_connectivity = input; self } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable).

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable).

pub fn get_public_connectivity(&self) -> &::std::option::Option { &self.public_connectivity } diff --git a/sdk/neptunegraph/src/operation/create_graph_using_import_task/builders.rs b/sdk/neptunegraph/src/operation/create_graph_using_import_task/builders.rs index aeec1a73ad73..7dd503bcd8f0 100644 --- a/sdk/neptunegraph/src/operation/create_graph_using_import_task/builders.rs +++ b/sdk/neptunegraph/src/operation/create_graph_using_import_task/builders.rs @@ -144,17 +144,17 @@ impl CreateGraphUsingImportTaskFluentBuilder { pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> { self.inner.get_tags() } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable).

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable).

pub fn public_connectivity(mut self, input: bool) -> Self { self.inner = self.inner.public_connectivity(input); self } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable).

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable).

pub fn set_public_connectivity(mut self, input: ::std::option::Option) -> Self { self.inner = self.inner.set_public_connectivity(input); self } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable).

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable).

pub fn get_public_connectivity(&self) -> &::std::option::Option { self.inner.get_public_connectivity() } diff --git a/sdk/neptunegraph/src/operation/execute_query/_execute_query_input.rs b/sdk/neptunegraph/src/operation/execute_query/_execute_query_input.rs index b18f536dc9d2..95c1ec18afd5 100644 --- a/sdk/neptunegraph/src/operation/execute_query/_execute_query_input.rs +++ b/sdk/neptunegraph/src/operation/execute_query/_execute_query_input.rs @@ -9,6 +9,8 @@ pub struct ExecuteQueryInput { pub query_string: ::std::option::Option<::std::string::String>, ///

The query language the query is written in. Currently only openCypher is supported.

pub language: ::std::option::Option, + ///

The data parameters the query can use in JSON format. For example: {"name": "john", "age": 20}. (optional)

+ pub parameters: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::aws_smithy_types::Document>>, ///

Query plan cache is a feature that saves the query plan and reuses it on successive executions of the same query. This reduces query latency, and works for both READ and UPDATE queries. The plan cache is an LRU cache with a 5 minute TTL and a capacity of 1000.

pub plan_cache: ::std::option::Option, ///

The explain mode parameter returns a query explain instead of the actual query results. A query explain can be used to gather insights about the query execution such as planning decisions, time spent on each operator, solutions flowing etc.

@@ -29,6 +31,10 @@ impl ExecuteQueryInput { pub fn language(&self) -> ::std::option::Option<&crate::types::QueryLanguage> { self.language.as_ref() } + ///

The data parameters the query can use in JSON format. For example: {"name": "john", "age": 20}. (optional)

+ pub fn parameters(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::aws_smithy_types::Document>> { + self.parameters.as_ref() + } ///

Query plan cache is a feature that saves the query plan and reuses it on successive executions of the same query. This reduces query latency, and works for both READ and UPDATE queries. The plan cache is an LRU cache with a 5 minute TTL and a capacity of 1000.

pub fn plan_cache(&self) -> ::std::option::Option<&crate::types::PlanCacheType> { self.plan_cache.as_ref() @@ -56,6 +62,7 @@ pub struct ExecuteQueryInputBuilder { pub(crate) graph_identifier: ::std::option::Option<::std::string::String>, pub(crate) query_string: ::std::option::Option<::std::string::String>, pub(crate) language: ::std::option::Option, + pub(crate) parameters: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::aws_smithy_types::Document>>, pub(crate) plan_cache: ::std::option::Option, pub(crate) explain_mode: ::std::option::Option, pub(crate) query_timeout_milliseconds: ::std::option::Option, @@ -106,6 +113,29 @@ impl ExecuteQueryInputBuilder { pub fn get_language(&self) -> &::std::option::Option { &self.language } + /// Adds a key-value pair to `parameters`. + /// + /// To override the contents of this collection use [`set_parameters`](Self::set_parameters). + /// + ///

The data parameters the query can use in JSON format. For example: {"name": "john", "age": 20}. (optional)

+ pub fn parameters(mut self, k: impl ::std::convert::Into<::std::string::String>, v: ::aws_smithy_types::Document) -> Self { + let mut hash_map = self.parameters.unwrap_or_default(); + hash_map.insert(k.into(), v); + self.parameters = ::std::option::Option::Some(hash_map); + self + } + ///

The data parameters the query can use in JSON format. For example: {"name": "john", "age": 20}. (optional)

+ pub fn set_parameters( + mut self, + input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::aws_smithy_types::Document>>, + ) -> Self { + self.parameters = input; + self + } + ///

The data parameters the query can use in JSON format. For example: {"name": "john", "age": 20}. (optional)

+ pub fn get_parameters(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::aws_smithy_types::Document>> { + &self.parameters + } ///

Query plan cache is a feature that saves the query plan and reuses it on successive executions of the same query. This reduces query latency, and works for both READ and UPDATE queries. The plan cache is an LRU cache with a 5 minute TTL and a capacity of 1000.

pub fn plan_cache(mut self, input: crate::types::PlanCacheType) -> Self { self.plan_cache = ::std::option::Option::Some(input); @@ -156,6 +186,7 @@ impl ExecuteQueryInputBuilder { graph_identifier: self.graph_identifier, query_string: self.query_string, language: self.language, + parameters: self.parameters, plan_cache: self.plan_cache, explain_mode: self.explain_mode, query_timeout_milliseconds: self.query_timeout_milliseconds, diff --git a/sdk/neptunegraph/src/operation/execute_query/builders.rs b/sdk/neptunegraph/src/operation/execute_query/builders.rs index ab2fc5b5461b..803ccc579ce0 100644 --- a/sdk/neptunegraph/src/operation/execute_query/builders.rs +++ b/sdk/neptunegraph/src/operation/execute_query/builders.rs @@ -22,7 +22,16 @@ impl ExecuteQueryInputBuilder { } /// Fluent builder constructing a request to `ExecuteQuery`. /// -///

Execute an openCypher query. Currently, the SDK does not support parameterized queries. If you want to make a parameterized query call, you can use an HTTP request.

+///

Execute an openCypher query. Currently, the SDK does not support parameterized queries. If you want to make a parameterized query call, you can use an HTTP request.

+///

When invoking this operation in a Neptune Analytics cluster, the IAM user or role making the request must have a policy attached that allows one of the following IAM actions in that cluster, depending on the query:

+///
    +///
  • +///

    neptune-graph:ReadDataViaQuery

  • +///
  • +///

    neptune-graph:WriteDataViaQuery

  • +///
  • +///

    neptune-graph:DeleteDataViaQuery

  • +///
///

Non-parametrized queries are not considered for plan caching. You can force plan caching with planCache=enabled. The plan cache will be reused only for the same exact query. Slight variations in the query will not be able to reuse the query plan cache.

///
#[derive(::std::clone::Clone, ::std::fmt::Debug)] @@ -152,6 +161,27 @@ impl ExecuteQueryFluentBuilder { pub fn get_language(&self) -> &::std::option::Option { self.inner.get_language() } + /// Adds a key-value pair to `parameters`. + /// + /// To override the contents of this collection use [`set_parameters`](Self::set_parameters). + /// + ///

The data parameters the query can use in JSON format. For example: {"name": "john", "age": 20}. (optional)

+ pub fn parameters(mut self, k: impl ::std::convert::Into<::std::string::String>, v: ::aws_smithy_types::Document) -> Self { + self.inner = self.inner.parameters(k.into(), v); + self + } + ///

The data parameters the query can use in JSON format. For example: {"name": "john", "age": 20}. (optional)

+ pub fn set_parameters( + mut self, + input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::aws_smithy_types::Document>>, + ) -> Self { + self.inner = self.inner.set_parameters(input); + self + } + ///

The data parameters the query can use in JSON format. For example: {"name": "john", "age": 20}. (optional)

+ pub fn get_parameters(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::aws_smithy_types::Document>> { + self.inner.get_parameters() + } ///

Query plan cache is a feature that saves the query plan and reuses it on successive executions of the same query. This reduces query latency, and works for both READ and UPDATE queries. The plan cache is an LRU cache with a 5 minute TTL and a capacity of 1000.

pub fn plan_cache(mut self, input: crate::types::PlanCacheType) -> Self { self.inner = self.inner.plan_cache(input); diff --git a/sdk/neptunegraph/src/operation/get_query/builders.rs b/sdk/neptunegraph/src/operation/get_query/builders.rs index af87909420ed..6f2ecc21818f 100644 --- a/sdk/neptunegraph/src/operation/get_query/builders.rs +++ b/sdk/neptunegraph/src/operation/get_query/builders.rs @@ -22,7 +22,9 @@ impl GetQueryInputBuilder { } /// Fluent builder constructing a request to `GetQuery`. /// -///

Retrieves the status of a specified query.

+///

Retrieves the status of a specified query.

+///

When invoking this operation in a Neptune Analytics cluster, the IAM user or role making the request must have the neptune-graph:GetQueryStatus IAM action attached.

+///
#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct GetQueryFluentBuilder { handle: ::std::sync::Arc, diff --git a/sdk/neptunegraph/src/operation/restore_graph_from_snapshot/_restore_graph_from_snapshot_input.rs b/sdk/neptunegraph/src/operation/restore_graph_from_snapshot/_restore_graph_from_snapshot_input.rs index 1a1e8ea3c5ca..7c919d4f503c 100644 --- a/sdk/neptunegraph/src/operation/restore_graph_from_snapshot/_restore_graph_from_snapshot_input.rs +++ b/sdk/neptunegraph/src/operation/restore_graph_from_snapshot/_restore_graph_from_snapshot_input.rs @@ -16,7 +16,7 @@ pub struct RestoreGraphFromSnapshotInput { pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>, ///

The number of replicas in other AZs. Min =0, Max = 2, Default =1

pub replica_count: ::std::option::Option, - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable).

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable).

pub public_connectivity: ::std::option::Option, } impl RestoreGraphFromSnapshotInput { @@ -45,7 +45,7 @@ impl RestoreGraphFromSnapshotInput { pub fn replica_count(&self) -> ::std::option::Option { self.replica_count } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable).

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable).

pub fn public_connectivity(&self) -> ::std::option::Option { self.public_connectivity } @@ -165,17 +165,17 @@ impl RestoreGraphFromSnapshotInputBuilder { pub fn get_replica_count(&self) -> &::std::option::Option { &self.replica_count } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable).

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable).

pub fn public_connectivity(mut self, input: bool) -> Self { self.public_connectivity = ::std::option::Option::Some(input); self } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable).

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable).

pub fn set_public_connectivity(mut self, input: ::std::option::Option) -> Self { self.public_connectivity = input; self } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable).

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable).

pub fn get_public_connectivity(&self) -> &::std::option::Option { &self.public_connectivity } diff --git a/sdk/neptunegraph/src/operation/restore_graph_from_snapshot/builders.rs b/sdk/neptunegraph/src/operation/restore_graph_from_snapshot/builders.rs index a307167e8af8..7cfcaad7fcdf 100644 --- a/sdk/neptunegraph/src/operation/restore_graph_from_snapshot/builders.rs +++ b/sdk/neptunegraph/src/operation/restore_graph_from_snapshot/builders.rs @@ -199,17 +199,17 @@ impl RestoreGraphFromSnapshotFluentBuilder { pub fn get_replica_count(&self) -> &::std::option::Option { self.inner.get_replica_count() } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable).

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable).

pub fn public_connectivity(mut self, input: bool) -> Self { self.inner = self.inner.public_connectivity(input); self } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable).

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable).

pub fn set_public_connectivity(mut self, input: ::std::option::Option) -> Self { self.inner = self.inner.set_public_connectivity(input); self } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable).

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable).

pub fn get_public_connectivity(&self) -> &::std::option::Option { self.inner.get_public_connectivity() } diff --git a/sdk/neptunegraph/src/operation/update_graph/_update_graph_input.rs b/sdk/neptunegraph/src/operation/update_graph/_update_graph_input.rs index 99548ddb778f..4fe618f7d1bf 100644 --- a/sdk/neptunegraph/src/operation/update_graph/_update_graph_input.rs +++ b/sdk/neptunegraph/src/operation/update_graph/_update_graph_input.rs @@ -5,7 +5,7 @@ pub struct UpdateGraphInput { ///

The unique identifier of the Neptune Analytics graph.

pub graph_identifier: ::std::option::Option<::std::string::String>, - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable.

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable.

pub public_connectivity: ::std::option::Option, ///

The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph. Min = 128

pub provisioned_memory: ::std::option::Option, @@ -17,7 +17,7 @@ impl UpdateGraphInput { pub fn graph_identifier(&self) -> ::std::option::Option<&str> { self.graph_identifier.as_deref() } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable.

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable.

pub fn public_connectivity(&self) -> ::std::option::Option { self.public_connectivity } @@ -62,17 +62,17 @@ impl UpdateGraphInputBuilder { pub fn get_graph_identifier(&self) -> &::std::option::Option<::std::string::String> { &self.graph_identifier } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable.

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable.

pub fn public_connectivity(mut self, input: bool) -> Self { self.public_connectivity = ::std::option::Option::Some(input); self } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable.

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable.

pub fn set_public_connectivity(mut self, input: ::std::option::Option) -> Self { self.public_connectivity = input; self } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable.

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable.

pub fn get_public_connectivity(&self) -> &::std::option::Option { &self.public_connectivity } diff --git a/sdk/neptunegraph/src/operation/update_graph/builders.rs b/sdk/neptunegraph/src/operation/update_graph/builders.rs index c290bc30c6c7..37a958abe2d0 100644 --- a/sdk/neptunegraph/src/operation/update_graph/builders.rs +++ b/sdk/neptunegraph/src/operation/update_graph/builders.rs @@ -122,17 +122,17 @@ impl UpdateGraphFluentBuilder { pub fn get_graph_identifier(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_graph_identifier() } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable.

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable.

pub fn public_connectivity(mut self, input: bool) -> Self { self.inner = self.inner.public_connectivity(input); self } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable.

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable.

pub fn set_public_connectivity(mut self, input: ::std::option::Option) -> Self { self.inner = self.inner.set_public_connectivity(input); self } - ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (true to enable, or false to disable.

+ ///

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable.

pub fn get_public_connectivity(&self) -> &::std::option::Option { self.inner.get_public_connectivity() } diff --git a/sdk/neptunegraph/src/protocol_serde/shape_execute_query_input.rs b/sdk/neptunegraph/src/protocol_serde/shape_execute_query_input.rs index d57549bb5260..3871b12792d7 100644 --- a/sdk/neptunegraph/src/protocol_serde/shape_execute_query_input.rs +++ b/sdk/neptunegraph/src/protocol_serde/shape_execute_query_input.rs @@ -9,16 +9,26 @@ pub fn ser_execute_query_input_input( if let Some(var_2) = &input.language { object.key("language").string(var_2.as_str()); } - if let Some(var_3) = &input.plan_cache { - object.key("planCache").string(var_3.as_str()); + if let Some(var_3) = &input.parameters { + #[allow(unused_mut)] + let mut object_4 = object.key("parameters").start_object(); + for (key_5, value_6) in var_3 { + { + object_4.key(key_5.as_str()).document(value_6); + } + } + object_4.finish(); } - if let Some(var_4) = &input.query_string { - object.key("query").string(var_4.as_str()); + if let Some(var_7) = &input.plan_cache { + object.key("planCache").string(var_7.as_str()); } - if let Some(var_5) = &input.query_timeout_milliseconds { + if let Some(var_8) = &input.query_string { + object.key("query").string(var_8.as_str()); + } + if let Some(var_9) = &input.query_timeout_milliseconds { object.key("queryTimeoutMilliseconds").number( #[allow(clippy::useless_conversion)] - ::aws_smithy_types::Number::NegInt((*var_5).into()), + ::aws_smithy_types::Number::NegInt((*var_9).into()), ); } Ok(()) diff --git a/sdk/route53domains/Cargo.toml b/sdk/route53domains/Cargo.toml index 2aa795466a15..5a358e9031c5 100644 --- a/sdk/route53domains/Cargo.toml +++ b/sdk/route53domains/Cargo.toml @@ -1,7 +1,7 @@ # Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. [package] name = "aws-sdk-route53domains" -version = "1.13.0" +version = "1.14.0" authors = ["AWS Rust SDK Team ", "Russell Cohen "] description = "AWS SDK for Amazon Route 53 Domains" edition = "2021" diff --git a/sdk/route53domains/README.md b/sdk/route53domains/README.md index 5621d4690425..12afe82ae952 100644 --- a/sdk/route53domains/README.md +++ b/sdk/route53domains/README.md @@ -14,7 +14,7 @@ your project, add the following to your **Cargo.toml** file: ```toml [dependencies] aws-config = { version = "1.1.5", features = ["behavior-version-latest"] } -aws-sdk-route53domains = "1.13.0" +aws-sdk-route53domains = "1.14.0" tokio = { version = "1", features = ["full"] } ``` diff --git a/sdk/route53domains/src/client/check_domain_availability.rs b/sdk/route53domains/src/client/check_domain_availability.rs index b9917afab3c1..354885d1131d 100644 --- a/sdk/route53domains/src/client/check_domain_availability.rs +++ b/sdk/route53domains/src/client/check_domain_availability.rs @@ -6,7 +6,7 @@ impl super::Client { /// - [`domain_name(impl Into)`](crate::operation::check_domain_availability::builders::CheckDomainAvailabilityFluentBuilder::domain_name) / [`set_domain_name(Option)`](crate::operation::check_domain_availability::builders::CheckDomainAvailabilityFluentBuilder::set_domain_name):
required: **true**

The name of the domain that you want to get availability for. The top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of supported TLDs, see Domains that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer Guide.

The domain name can contain only the following characters:

  • Letters a through z. Domain names are not case sensitive.

  • Numbers 0 through 9.

  • Hyphen (-). You can't specify a hyphen at the beginning or end of a label.

  • Period (.) to separate the labels in the name, such as the . in example.com.

Internationalized domain names are not supported for some top-level domains. To determine whether the TLD that you want to use supports internationalized domain names, see Domains that You Can Register with Amazon Route 53. For more information, see Formatting Internationalized Domain Names.


/// - [`idn_lang_code(impl Into)`](crate::operation::check_domain_availability::builders::CheckDomainAvailabilityFluentBuilder::idn_lang_code) / [`set_idn_lang_code(Option)`](crate::operation::check_domain_availability::builders::CheckDomainAvailabilityFluentBuilder::set_idn_lang_code):
required: **false**

Reserved for future use.


/// - On success, responds with [`CheckDomainAvailabilityOutput`](crate::operation::check_domain_availability::CheckDomainAvailabilityOutput) with field(s): - /// - [`availability(Option)`](crate::operation::check_domain_availability::CheckDomainAvailabilityOutput::availability):

Whether the domain name is available for registering.

You can register only domains designated as AVAILABLE.

Valid values:

AVAILABLE

The domain name is available.

AVAILABLE_RESERVED

The domain name is reserved under specific conditions.

AVAILABLE_PREORDER

The domain name is available and can be preordered.

DONT_KNOW

The TLD registry didn't reply with a definitive answer about whether the domain name is available. Route 53 can return this response for a variety of reasons, for example, the registry is performing maintenance. Try again later.

PENDING

The TLD registry didn't return a response in the expected amount of time. When the response is delayed, it usually takes just a few extra seconds. You can resubmit the request immediately.

RESERVED

The domain name has been reserved for another person or organization.

UNAVAILABLE

The domain name is not available.

UNAVAILABLE_PREMIUM

The domain name is not available.

UNAVAILABLE_RESTRICTED

The domain name is forbidden.

+ /// - [`availability(Option)`](crate::operation::check_domain_availability::CheckDomainAvailabilityOutput::availability):

Whether the domain name is available for registering.

You can register only domains designated as AVAILABLE.

Valid values:

AVAILABLE

The domain name is available.

AVAILABLE_RESERVED

The domain name is reserved under specific conditions.

AVAILABLE_PREORDER

The domain name is available and can be preordered.

DONT_KNOW

The TLD registry didn't reply with a definitive answer about whether the domain name is available. Route 53 can return this response for a variety of reasons, for example, the registry is performing maintenance. Try again later.

INVALID_NAME_FOR_TLD

The TLD isn't valid. For example, it can contain characters that aren't allowed.

PENDING

The TLD registry didn't return a response in the expected amount of time. When the response is delayed, it usually takes just a few extra seconds. You can resubmit the request immediately.

RESERVED

The domain name has been reserved for another person or organization.

UNAVAILABLE

The domain name is not available.

UNAVAILABLE_PREMIUM

The domain name is not available.

UNAVAILABLE_RESTRICTED

The domain name is forbidden.

/// - On failure, responds with [`SdkError`](crate::operation::check_domain_availability::CheckDomainAvailabilityError) pub fn check_domain_availability(&self) -> crate::operation::check_domain_availability::builders::CheckDomainAvailabilityFluentBuilder { crate::operation::check_domain_availability::builders::CheckDomainAvailabilityFluentBuilder::new(self.handle.clone()) diff --git a/sdk/route53domains/src/client/get_domain_detail.rs b/sdk/route53domains/src/client/get_domain_detail.rs index 03adebb8a593..0ec00935cc0a 100644 --- a/sdk/route53domains/src/client/get_domain_detail.rs +++ b/sdk/route53domains/src/client/get_domain_detail.rs @@ -11,10 +11,10 @@ impl super::Client { /// - [`admin_contact(Option)`](crate::operation::get_domain_detail::GetDomainDetailOutput::admin_contact):

Provides details about the domain administrative contact.

/// - [`registrant_contact(Option)`](crate::operation::get_domain_detail::GetDomainDetailOutput::registrant_contact):

Provides details about the domain registrant.

/// - [`tech_contact(Option)`](crate::operation::get_domain_detail::GetDomainDetailOutput::tech_contact):

Provides details about the domain technical contact.

- /// - [`admin_privacy(Option)`](crate::operation::get_domain_detail::GetDomainDetailOutput::admin_privacy):

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is false, WHOIS queries return the information that you entered for the admin contact.

- /// - [`registrant_privacy(Option)`](crate::operation::get_domain_detail::GetDomainDetailOutput::registrant_privacy):

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

- /// - [`tech_privacy(Option)`](crate::operation::get_domain_detail::GetDomainDetailOutput::tech_privacy):

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is false, WHOIS queries return the information that you entered for the technical contact.

- /// - [`registrar_name(Option)`](crate::operation::get_domain_detail::GetDomainDetailOutput::registrar_name):

Name of the registrar of the domain as identified in the registry. Domains with a .com, .net, or .org TLD are registered by Amazon Registrar. All other domains are registered by our registrar associate, Gandi. The value for domains that are registered by Gandi is "GANDI SAS".

+ /// - [`admin_privacy(Option)`](crate::operation::get_domain_detail::GetDomainDetailOutput::admin_privacy):

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the admin contact.

+ /// - [`registrant_privacy(Option)`](crate::operation::get_domain_detail::GetDomainDetailOutput::registrant_privacy):

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

+ /// - [`tech_privacy(Option)`](crate::operation::get_domain_detail::GetDomainDetailOutput::tech_privacy):

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the technical contact.

+ /// - [`registrar_name(Option)`](crate::operation::get_domain_detail::GetDomainDetailOutput::registrar_name):

Name of the registrar of the domain as identified in the registry.

/// - [`who_is_server(Option)`](crate::operation::get_domain_detail::GetDomainDetailOutput::who_is_server):

The fully qualified name of the WHOIS server that can answer the WHOIS query for the domain.

/// - [`registrar_url(Option)`](crate::operation::get_domain_detail::GetDomainDetailOutput::registrar_url):

Web address of the registrar.

/// - [`abuse_contact_email(Option)`](crate::operation::get_domain_detail::GetDomainDetailOutput::abuse_contact_email):

Email address to contact to report incorrect contact information for a domain, to report that the domain is being used to send spam, to report that someone is cybersquatting on a domain name, or report some other type of abuse.

@@ -27,6 +27,8 @@ impl super::Client { /// - [`dns_sec(Option)`](crate::operation::get_domain_detail::GetDomainDetailOutput::dns_sec):

Deprecated.

/// - [`status_list(Option>)`](crate::operation::get_domain_detail::GetDomainDetailOutput::status_list):

An array of domain name status codes, also known as Extensible Provisioning Protocol (EPP) status codes.

ICANN, the organization that maintains a central database of domain names, has developed a set of domain name status codes that tell you the status of a variety of operations on a domain name, for example, registering a domain name, transferring a domain name to another registrar, renewing the registration for a domain name, and so on. All registrars use this same set of status codes.

For a current list of domain name status codes and an explanation of what each code means, go to the ICANN website and search for epp status codes. (Search on the ICANN website; web searches sometimes return an old version of the document.)

/// - [`dnssec_keys(Option>)`](crate::operation::get_domain_detail::GetDomainDetailOutput::dnssec_keys):

A complex type that contains information about the DNSSEC configuration.

+ /// - [`billing_contact(Option)`](crate::operation::get_domain_detail::GetDomainDetailOutput::billing_contact):

Provides details about the domain billing contact.

+ /// - [`billing_privacy(Option)`](crate::operation::get_domain_detail::GetDomainDetailOutput::billing_privacy):

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the billing contact.

/// - On failure, responds with [`SdkError`](crate::operation::get_domain_detail::GetDomainDetailError) pub fn get_domain_detail(&self) -> crate::operation::get_domain_detail::builders::GetDomainDetailFluentBuilder { crate::operation::get_domain_detail::builders::GetDomainDetailFluentBuilder::new(self.handle.clone()) diff --git a/sdk/route53domains/src/client/register_domain.rs b/sdk/route53domains/src/client/register_domain.rs index e6836027f9cc..0fd5c597f9c2 100644 --- a/sdk/route53domains/src/client/register_domain.rs +++ b/sdk/route53domains/src/client/register_domain.rs @@ -10,9 +10,11 @@ impl super::Client { /// - [`admin_contact(ContactDetail)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::admin_contact) / [`set_admin_contact(Option)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::set_admin_contact):
required: **true**

Provides detailed contact information. For information about the values that you specify for each element, see ContactDetail.


/// - [`registrant_contact(ContactDetail)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::registrant_contact) / [`set_registrant_contact(Option)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::set_registrant_contact):
required: **true**

Provides detailed contact information. For information about the values that you specify for each element, see ContactDetail.


/// - [`tech_contact(ContactDetail)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::tech_contact) / [`set_tech_contact(Option)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::set_tech_contact):
required: **true**

Provides detailed contact information. For information about the values that you specify for each element, see ContactDetail.


- /// - [`privacy_protect_admin_contact(bool)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::privacy_protect_admin_contact) / [`set_privacy_protect_admin_contact(Option)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::set_privacy_protect_admin_contact):
required: **false**

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the admin contact.

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

Default: true


- /// - [`privacy_protect_registrant_contact(bool)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::privacy_protect_registrant_contact) / [`set_privacy_protect_registrant_contact(Option)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::set_privacy_protect_registrant_contact):
required: **false**

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (the domain owner).

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

Default: true


- /// - [`privacy_protect_tech_contact(bool)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::privacy_protect_tech_contact) / [`set_privacy_protect_tech_contact(Option)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::set_privacy_protect_tech_contact):
required: **false**

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

Default: true


+ /// - [`privacy_protect_admin_contact(bool)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::privacy_protect_admin_contact) / [`set_privacy_protect_admin_contact(Option)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::set_privacy_protect_admin_contact):
required: **false**

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the admin contact.

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

Default: true


+ /// - [`privacy_protect_registrant_contact(bool)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::privacy_protect_registrant_contact) / [`set_privacy_protect_registrant_contact(Option)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::set_privacy_protect_registrant_contact):
required: **false**

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (the domain owner).

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

Default: true


+ /// - [`privacy_protect_tech_contact(bool)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::privacy_protect_tech_contact) / [`set_privacy_protect_tech_contact(Option)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::set_privacy_protect_tech_contact):
required: **false**

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

Default: true


+ /// - [`billing_contact(ContactDetail)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::billing_contact) / [`set_billing_contact(Option)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::set_billing_contact):
required: **false**

Provides detailed contact information. For information about the values that you specify for each element, see ContactDetail.


+ /// - [`privacy_protect_billing_contact(bool)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::privacy_protect_billing_contact) / [`set_privacy_protect_billing_contact(Option)`](crate::operation::register_domain::builders::RegisterDomainFluentBuilder::set_privacy_protect_billing_contact):
required: **false**

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.


/// - On success, responds with [`RegisterDomainOutput`](crate::operation::register_domain::RegisterDomainOutput) with field(s): /// - [`operation_id(Option)`](crate::operation::register_domain::RegisterDomainOutput::operation_id):

Identifier for tracking the progress of the request. To query the operation status, use GetOperationDetail.

/// - On failure, responds with [`SdkError`](crate::operation::register_domain::RegisterDomainError) diff --git a/sdk/route53domains/src/client/transfer_domain.rs b/sdk/route53domains/src/client/transfer_domain.rs index f494002c094b..dd3f909d2b81 100644 --- a/sdk/route53domains/src/client/transfer_domain.rs +++ b/sdk/route53domains/src/client/transfer_domain.rs @@ -13,8 +13,10 @@ impl super::Client { /// - [`registrant_contact(ContactDetail)`](crate::operation::transfer_domain::builders::TransferDomainFluentBuilder::registrant_contact) / [`set_registrant_contact(Option)`](crate::operation::transfer_domain::builders::TransferDomainFluentBuilder::set_registrant_contact):
required: **true**

Provides detailed contact information.


/// - [`tech_contact(ContactDetail)`](crate::operation::transfer_domain::builders::TransferDomainFluentBuilder::tech_contact) / [`set_tech_contact(Option)`](crate::operation::transfer_domain::builders::TransferDomainFluentBuilder::set_tech_contact):
required: **true**

Provides detailed contact information.


/// - [`privacy_protect_admin_contact(bool)`](crate::operation::transfer_domain::builders::TransferDomainFluentBuilder::privacy_protect_admin_contact) / [`set_privacy_protect_admin_contact(Option)`](crate::operation::transfer_domain::builders::TransferDomainFluentBuilder::set_privacy_protect_admin_contact):
required: **false**

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information for the registrar, the phrase "REDACTED FOR PRIVACY", or "On behalf of owner.".

While some domains may allow different privacy settings per contact, we recommend specifying the same privacy setting for all contacts.

Default: true


- /// - [`privacy_protect_registrant_contact(bool)`](crate::operation::transfer_domain::builders::TransferDomainFluentBuilder::privacy_protect_registrant_contact) / [`set_privacy_protect_registrant_contact(Option)`](crate::operation::transfer_domain::builders::TransferDomainFluentBuilder::set_privacy_protect_registrant_contact):
required: **false**

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

Default: true


- /// - [`privacy_protect_tech_contact(bool)`](crate::operation::transfer_domain::builders::TransferDomainFluentBuilder::privacy_protect_tech_contact) / [`set_privacy_protect_tech_contact(Option)`](crate::operation::transfer_domain::builders::TransferDomainFluentBuilder::set_privacy_protect_tech_contact):
required: **false**

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

Default: true


+ /// - [`privacy_protect_registrant_contact(bool)`](crate::operation::transfer_domain::builders::TransferDomainFluentBuilder::privacy_protect_registrant_contact) / [`set_privacy_protect_registrant_contact(Option)`](crate::operation::transfer_domain::builders::TransferDomainFluentBuilder::set_privacy_protect_registrant_contact):
required: **false**

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

Default: true


+ /// - [`privacy_protect_tech_contact(bool)`](crate::operation::transfer_domain::builders::TransferDomainFluentBuilder::privacy_protect_tech_contact) / [`set_privacy_protect_tech_contact(Option)`](crate::operation::transfer_domain::builders::TransferDomainFluentBuilder::set_privacy_protect_tech_contact):
required: **false**

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

Default: true


+ /// - [`billing_contact(ContactDetail)`](crate::operation::transfer_domain::builders::TransferDomainFluentBuilder::billing_contact) / [`set_billing_contact(Option)`](crate::operation::transfer_domain::builders::TransferDomainFluentBuilder::set_billing_contact):
required: **false**

Provides detailed contact information.


+ /// - [`privacy_protect_billing_contact(bool)`](crate::operation::transfer_domain::builders::TransferDomainFluentBuilder::privacy_protect_billing_contact) / [`set_privacy_protect_billing_contact(Option)`](crate::operation::transfer_domain::builders::TransferDomainFluentBuilder::set_privacy_protect_billing_contact):
required: **false**

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.


/// - On success, responds with [`TransferDomainOutput`](crate::operation::transfer_domain::TransferDomainOutput) with field(s): /// - [`operation_id(Option)`](crate::operation::transfer_domain::TransferDomainOutput::operation_id):

Identifier for tracking the progress of the request. To query the operation status, use GetOperationDetail.

/// - On failure, responds with [`SdkError`](crate::operation::transfer_domain::TransferDomainError) diff --git a/sdk/route53domains/src/client/update_domain_contact.rs b/sdk/route53domains/src/client/update_domain_contact.rs index 11e0e88ae495..c2fe9c044731 100644 --- a/sdk/route53domains/src/client/update_domain_contact.rs +++ b/sdk/route53domains/src/client/update_domain_contact.rs @@ -8,6 +8,7 @@ impl super::Client { /// - [`registrant_contact(ContactDetail)`](crate::operation::update_domain_contact::builders::UpdateDomainContactFluentBuilder::registrant_contact) / [`set_registrant_contact(Option)`](crate::operation::update_domain_contact::builders::UpdateDomainContactFluentBuilder::set_registrant_contact):
required: **false**

Provides detailed contact information.


/// - [`tech_contact(ContactDetail)`](crate::operation::update_domain_contact::builders::UpdateDomainContactFluentBuilder::tech_contact) / [`set_tech_contact(Option)`](crate::operation::update_domain_contact::builders::UpdateDomainContactFluentBuilder::set_tech_contact):
required: **false**

Provides detailed contact information.


/// - [`consent(Consent)`](crate::operation::update_domain_contact::builders::UpdateDomainContactFluentBuilder::consent) / [`set_consent(Option)`](crate::operation::update_domain_contact::builders::UpdateDomainContactFluentBuilder::set_consent):
required: **false**

Customer's consent for the owner change request. Required if the domain is not free (consent price is more than $0.00).


+ /// - [`billing_contact(ContactDetail)`](crate::operation::update_domain_contact::builders::UpdateDomainContactFluentBuilder::billing_contact) / [`set_billing_contact(Option)`](crate::operation::update_domain_contact::builders::UpdateDomainContactFluentBuilder::set_billing_contact):
required: **false**

Provides detailed contact information.


/// - On success, responds with [`UpdateDomainContactOutput`](crate::operation::update_domain_contact::UpdateDomainContactOutput) with field(s): /// - [`operation_id(Option)`](crate::operation::update_domain_contact::UpdateDomainContactOutput::operation_id):

Identifier for tracking the progress of the request. To query the operation status, use GetOperationDetail.

/// - On failure, responds with [`SdkError`](crate::operation::update_domain_contact::UpdateDomainContactError) diff --git a/sdk/route53domains/src/client/update_domain_contact_privacy.rs b/sdk/route53domains/src/client/update_domain_contact_privacy.rs index 8928ea2f8b20..dd7c72fe34e4 100644 --- a/sdk/route53domains/src/client/update_domain_contact_privacy.rs +++ b/sdk/route53domains/src/client/update_domain_contact_privacy.rs @@ -4,9 +4,10 @@ impl super::Client { /// /// - The fluent builder is configurable: /// - [`domain_name(impl Into)`](crate::operation::update_domain_contact_privacy::builders::UpdateDomainContactPrivacyFluentBuilder::domain_name) / [`set_domain_name(Option)`](crate::operation::update_domain_contact_privacy::builders::UpdateDomainContactPrivacyFluentBuilder::set_domain_name):
required: **true**

The name of the domain that you want to update the privacy setting for.


- /// - [`admin_privacy(bool)`](crate::operation::update_domain_contact_privacy::builders::UpdateDomainContactPrivacyFluentBuilder::admin_privacy) / [`set_admin_privacy(Option)`](crate::operation::update_domain_contact_privacy::builders::UpdateDomainContactPrivacyFluentBuilder::set_admin_privacy):
required: **false**

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the admin contact.

You must specify the same privacy setting for the administrative, registrant, and technical contacts.


- /// - [`registrant_privacy(bool)`](crate::operation::update_domain_contact_privacy::builders::UpdateDomainContactPrivacyFluentBuilder::registrant_privacy) / [`set_registrant_privacy(Option)`](crate::operation::update_domain_contact_privacy::builders::UpdateDomainContactPrivacyFluentBuilder::set_registrant_privacy):
required: **false**

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

You must specify the same privacy setting for the administrative, registrant, and technical contacts.


- /// - [`tech_privacy(bool)`](crate::operation::update_domain_contact_privacy::builders::UpdateDomainContactPrivacyFluentBuilder::tech_privacy) / [`set_tech_privacy(Option)`](crate::operation::update_domain_contact_privacy::builders::UpdateDomainContactPrivacyFluentBuilder::set_tech_privacy):
required: **false**

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

You must specify the same privacy setting for the administrative, registrant, and technical contacts.


+ /// - [`admin_privacy(bool)`](crate::operation::update_domain_contact_privacy::builders::UpdateDomainContactPrivacyFluentBuilder::admin_privacy) / [`set_admin_privacy(Option)`](crate::operation::update_domain_contact_privacy::builders::UpdateDomainContactPrivacyFluentBuilder::set_admin_privacy):
required: **false**

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the admin contact.

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.


+ /// - [`registrant_privacy(bool)`](crate::operation::update_domain_contact_privacy::builders::UpdateDomainContactPrivacyFluentBuilder::registrant_privacy) / [`set_registrant_privacy(Option)`](crate::operation::update_domain_contact_privacy::builders::UpdateDomainContactPrivacyFluentBuilder::set_registrant_privacy):
required: **false**

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.


+ /// - [`tech_privacy(bool)`](crate::operation::update_domain_contact_privacy::builders::UpdateDomainContactPrivacyFluentBuilder::tech_privacy) / [`set_tech_privacy(Option)`](crate::operation::update_domain_contact_privacy::builders::UpdateDomainContactPrivacyFluentBuilder::set_tech_privacy):
required: **false**

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.


+ /// - [`billing_privacy(bool)`](crate::operation::update_domain_contact_privacy::builders::UpdateDomainContactPrivacyFluentBuilder::billing_privacy) / [`set_billing_privacy(Option)`](crate::operation::update_domain_contact_privacy::builders::UpdateDomainContactPrivacyFluentBuilder::set_billing_privacy):
required: **false**

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.


/// - On success, responds with [`UpdateDomainContactPrivacyOutput`](crate::operation::update_domain_contact_privacy::UpdateDomainContactPrivacyOutput) with field(s): /// - [`operation_id(Option)`](crate::operation::update_domain_contact_privacy::UpdateDomainContactPrivacyOutput::operation_id):

Identifier for tracking the progress of the request. To use this ID to query the operation status, use GetOperationDetail.

/// - On failure, responds with [`SdkError`](crate::operation::update_domain_contact_privacy::UpdateDomainContactPrivacyError) diff --git a/sdk/route53domains/src/lib.rs b/sdk/route53domains/src/lib.rs index 77fe4373208d..f59fdb4a3242 100644 --- a/sdk/route53domains/src/lib.rs +++ b/sdk/route53domains/src/lib.rs @@ -29,7 +29,7 @@ //! ```toml //! [dependencies] //! aws-config = { version = "1.1.5", features = ["behavior-version-latest"] } -//! aws-sdk-route53domains = "1.13.0" +//! aws-sdk-route53domains = "1.14.0" //! tokio = { version = "1", features = ["full"] } //! ``` //! diff --git a/sdk/route53domains/src/operation/check_domain_availability/_check_domain_availability_output.rs b/sdk/route53domains/src/operation/check_domain_availability/_check_domain_availability_output.rs index cc82c074505c..6ca63bcf66c8 100644 --- a/sdk/route53domains/src/operation/check_domain_availability/_check_domain_availability_output.rs +++ b/sdk/route53domains/src/operation/check_domain_availability/_check_domain_availability_output.rs @@ -34,6 +34,12 @@ pub struct CheckDomainAvailabilityOutput { ///

The TLD registry didn't reply with a definitive answer about whether the domain name is available. Route 53 can return this response for a variety of reasons, for example, the registry is performing maintenance. Try again later.

/// ///
+ /// INVALID_NAME_FOR_TLD + ///
+ ///
+ ///

The TLD isn't valid. For example, it can contain characters that aren't allowed.

+ ///
+ ///
/// PENDING ///
///
@@ -98,6 +104,12 @@ impl CheckDomainAvailabilityOutput { ///

The TLD registry didn't reply with a definitive answer about whether the domain name is available. Route 53 can return this response for a variety of reasons, for example, the registry is performing maintenance. Try again later.

///
///
+ /// INVALID_NAME_FOR_TLD + ///
+ ///
+ ///

The TLD isn't valid. For example, it can contain characters that aren't allowed.

+ ///
+ ///
/// PENDING ///
///
@@ -182,6 +194,12 @@ impl CheckDomainAvailabilityOutputBuilder { ///

The TLD registry didn't reply with a definitive answer about whether the domain name is available. Route 53 can return this response for a variety of reasons, for example, the registry is performing maintenance. Try again later.

///
///
+ /// INVALID_NAME_FOR_TLD + ///
+ ///
+ ///

The TLD isn't valid. For example, it can contain characters that aren't allowed.

+ ///
+ ///
/// PENDING ///
///
@@ -246,6 +264,12 @@ impl CheckDomainAvailabilityOutputBuilder { ///

The TLD registry didn't reply with a definitive answer about whether the domain name is available. Route 53 can return this response for a variety of reasons, for example, the registry is performing maintenance. Try again later.

///
///
+ /// INVALID_NAME_FOR_TLD + ///
+ ///
+ ///

The TLD isn't valid. For example, it can contain characters that aren't allowed.

+ ///
+ ///
/// PENDING ///
///
@@ -310,6 +334,12 @@ impl CheckDomainAvailabilityOutputBuilder { ///

The TLD registry didn't reply with a definitive answer about whether the domain name is available. Route 53 can return this response for a variety of reasons, for example, the registry is performing maintenance. Try again later.

///
///
+ /// INVALID_NAME_FOR_TLD + ///
+ ///
+ ///

The TLD isn't valid. For example, it can contain characters that aren't allowed.

+ ///
+ ///
/// PENDING ///
///
diff --git a/sdk/route53domains/src/operation/get_domain_detail/_get_domain_detail_output.rs b/sdk/route53domains/src/operation/get_domain_detail/_get_domain_detail_output.rs index 02025d298869..57446ff82767 100644 --- a/sdk/route53domains/src/operation/get_domain_detail/_get_domain_detail_output.rs +++ b/sdk/route53domains/src/operation/get_domain_detail/_get_domain_detail_output.rs @@ -16,13 +16,13 @@ pub struct GetDomainDetailOutput { pub registrant_contact: ::std::option::Option, ///

Provides details about the domain technical contact.

pub tech_contact: ::std::option::Option, - ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is false, WHOIS queries return the information that you entered for the admin contact.

+ ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the admin contact.

pub admin_privacy: ::std::option::Option, - ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

+ ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

pub registrant_privacy: ::std::option::Option, - ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is false, WHOIS queries return the information that you entered for the technical contact.

+ ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the technical contact.

pub tech_privacy: ::std::option::Option, - ///

Name of the registrar of the domain as identified in the registry. Domains with a .com, .net, or .org TLD are registered by Amazon Registrar. All other domains are registered by our registrar associate, Gandi. The value for domains that are registered by Gandi is "GANDI SAS".

+ ///

Name of the registrar of the domain as identified in the registry.

pub registrar_name: ::std::option::Option<::std::string::String>, ///

The fully qualified name of the WHOIS server that can answer the WHOIS query for the domain.

pub who_is_server: ::std::option::Option<::std::string::String>, @@ -50,6 +50,10 @@ pub struct GetDomainDetailOutput { pub status_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>, ///

A complex type that contains information about the DNSSEC configuration.

pub dnssec_keys: ::std::option::Option<::std::vec::Vec>, + ///

Provides details about the domain billing contact.

+ pub billing_contact: ::std::option::Option, + ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the billing contact.

+ pub billing_privacy: ::std::option::Option, _request_id: Option, } impl GetDomainDetailOutput { @@ -79,19 +83,19 @@ impl GetDomainDetailOutput { pub fn tech_contact(&self) -> ::std::option::Option<&crate::types::ContactDetail> { self.tech_contact.as_ref() } - ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is false, WHOIS queries return the information that you entered for the admin contact.

+ ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the admin contact.

pub fn admin_privacy(&self) -> ::std::option::Option { self.admin_privacy } - ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

+ ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

pub fn registrant_privacy(&self) -> ::std::option::Option { self.registrant_privacy } - ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is false, WHOIS queries return the information that you entered for the technical contact.

+ ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the technical contact.

pub fn tech_privacy(&self) -> ::std::option::Option { self.tech_privacy } - ///

Name of the registrar of the domain as identified in the registry. Domains with a .com, .net, or .org TLD are registered by Amazon Registrar. All other domains are registered by our registrar associate, Gandi. The value for domains that are registered by Gandi is "GANDI SAS".

+ ///

Name of the registrar of the domain as identified in the registry.

pub fn registrar_name(&self) -> ::std::option::Option<&str> { self.registrar_name.as_deref() } @@ -149,6 +153,14 @@ impl GetDomainDetailOutput { pub fn dnssec_keys(&self) -> &[crate::types::DnssecKey] { self.dnssec_keys.as_deref().unwrap_or_default() } + ///

Provides details about the domain billing contact.

+ pub fn billing_contact(&self) -> ::std::option::Option<&crate::types::ContactDetail> { + self.billing_contact.as_ref() + } + ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the billing contact.

+ pub fn billing_privacy(&self) -> ::std::option::Option { + self.billing_privacy + } } impl ::std::fmt::Debug for GetDomainDetailOutput { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { @@ -175,6 +187,8 @@ impl ::std::fmt::Debug for GetDomainDetailOutput { formatter.field("dns_sec", &self.dns_sec); formatter.field("status_list", &self.status_list); formatter.field("dnssec_keys", &self.dnssec_keys); + formatter.field("billing_contact", &"*** Sensitive Data Redacted ***"); + formatter.field("billing_privacy", &self.billing_privacy); formatter.field("_request_id", &self._request_id); formatter.finish() } @@ -217,6 +231,8 @@ pub struct GetDomainDetailOutputBuilder { pub(crate) dns_sec: ::std::option::Option<::std::string::String>, pub(crate) status_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>, pub(crate) dnssec_keys: ::std::option::Option<::std::vec::Vec>, + pub(crate) billing_contact: ::std::option::Option, + pub(crate) billing_privacy: ::std::option::Option, _request_id: Option, } impl GetDomainDetailOutputBuilder { @@ -310,59 +326,59 @@ impl GetDomainDetailOutputBuilder { pub fn get_tech_contact(&self) -> &::std::option::Option { &self.tech_contact } - ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is false, WHOIS queries return the information that you entered for the admin contact.

+ ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the admin contact.

pub fn admin_privacy(mut self, input: bool) -> Self { self.admin_privacy = ::std::option::Option::Some(input); self } - ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is false, WHOIS queries return the information that you entered for the admin contact.

+ ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the admin contact.

pub fn set_admin_privacy(mut self, input: ::std::option::Option) -> Self { self.admin_privacy = input; self } - ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is false, WHOIS queries return the information that you entered for the admin contact.

+ ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the admin contact.

pub fn get_admin_privacy(&self) -> &::std::option::Option { &self.admin_privacy } - ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

+ ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

pub fn registrant_privacy(mut self, input: bool) -> Self { self.registrant_privacy = ::std::option::Option::Some(input); self } - ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

+ ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

pub fn set_registrant_privacy(mut self, input: ::std::option::Option) -> Self { self.registrant_privacy = input; self } - ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

+ ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

pub fn get_registrant_privacy(&self) -> &::std::option::Option { &self.registrant_privacy } - ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is false, WHOIS queries return the information that you entered for the technical contact.

+ ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the technical contact.

pub fn tech_privacy(mut self, input: bool) -> Self { self.tech_privacy = ::std::option::Option::Some(input); self } - ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is false, WHOIS queries return the information that you entered for the technical contact.

+ ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the technical contact.

pub fn set_tech_privacy(mut self, input: ::std::option::Option) -> Self { self.tech_privacy = input; self } - ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is false, WHOIS queries return the information that you entered for the technical contact.

+ ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the technical contact.

pub fn get_tech_privacy(&self) -> &::std::option::Option { &self.tech_privacy } - ///

Name of the registrar of the domain as identified in the registry. Domains with a .com, .net, or .org TLD are registered by Amazon Registrar. All other domains are registered by our registrar associate, Gandi. The value for domains that are registered by Gandi is "GANDI SAS".

+ ///

Name of the registrar of the domain as identified in the registry.

pub fn registrar_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.registrar_name = ::std::option::Option::Some(input.into()); self } - ///

Name of the registrar of the domain as identified in the registry. Domains with a .com, .net, or .org TLD are registered by Amazon Registrar. All other domains are registered by our registrar associate, Gandi. The value for domains that are registered by Gandi is "GANDI SAS".

+ ///

Name of the registrar of the domain as identified in the registry.

pub fn set_registrar_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.registrar_name = input; self } - ///

Name of the registrar of the domain as identified in the registry. Domains with a .com, .net, or .org TLD are registered by Amazon Registrar. All other domains are registered by our registrar associate, Gandi. The value for domains that are registered by Gandi is "GANDI SAS".

+ ///

Name of the registrar of the domain as identified in the registry.

pub fn get_registrar_name(&self) -> &::std::option::Option<::std::string::String> { &self.registrar_name } @@ -552,6 +568,34 @@ impl GetDomainDetailOutputBuilder { pub fn get_dnssec_keys(&self) -> &::std::option::Option<::std::vec::Vec> { &self.dnssec_keys } + ///

Provides details about the domain billing contact.

+ pub fn billing_contact(mut self, input: crate::types::ContactDetail) -> Self { + self.billing_contact = ::std::option::Option::Some(input); + self + } + ///

Provides details about the domain billing contact.

+ pub fn set_billing_contact(mut self, input: ::std::option::Option) -> Self { + self.billing_contact = input; + self + } + ///

Provides details about the domain billing contact.

+ pub fn get_billing_contact(&self) -> &::std::option::Option { + &self.billing_contact + } + ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the billing contact.

+ pub fn billing_privacy(mut self, input: bool) -> Self { + self.billing_privacy = ::std::option::Option::Some(input); + self + } + ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the billing contact.

+ pub fn set_billing_privacy(mut self, input: ::std::option::Option) -> Self { + self.billing_privacy = input; + self + } + ///

Specifies whether contact information is concealed from WHOIS queries. If the value is true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If the value is false, WHOIS queries return the information that you entered for the billing contact.

+ pub fn get_billing_privacy(&self) -> &::std::option::Option { + &self.billing_privacy + } pub(crate) fn _request_id(mut self, request_id: impl Into) -> Self { self._request_id = Some(request_id.into()); self @@ -586,6 +630,8 @@ impl GetDomainDetailOutputBuilder { dns_sec: self.dns_sec, status_list: self.status_list, dnssec_keys: self.dnssec_keys, + billing_contact: self.billing_contact, + billing_privacy: self.billing_privacy, _request_id: self._request_id, } } @@ -615,6 +661,8 @@ impl ::std::fmt::Debug for GetDomainDetailOutputBuilder { formatter.field("dns_sec", &self.dns_sec); formatter.field("status_list", &self.status_list); formatter.field("dnssec_keys", &self.dnssec_keys); + formatter.field("billing_contact", &"*** Sensitive Data Redacted ***"); + formatter.field("billing_privacy", &self.billing_privacy); formatter.field("_request_id", &self._request_id); formatter.finish() } diff --git a/sdk/route53domains/src/operation/register_domain/_register_domain_input.rs b/sdk/route53domains/src/operation/register_domain/_register_domain_input.rs index 14ae78e621c6..92c0876e6148 100644 --- a/sdk/route53domains/src/operation/register_domain/_register_domain_input.rs +++ b/sdk/route53domains/src/operation/register_domain/_register_domain_input.rs @@ -32,21 +32,27 @@ pub struct RegisterDomainInput { pub registrant_contact: ::std::option::Option, ///

Provides detailed contact information. For information about the values that you specify for each element, see ContactDetail.

pub tech_contact: ::std::option::Option, - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the admin contact.

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the admin contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub privacy_protect_admin_contact: ::std::option::Option, - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (the domain owner).

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (the domain owner).

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub privacy_protect_registrant_contact: ::std::option::Option, - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub privacy_protect_tech_contact: ::std::option::Option, + ///

Provides detailed contact information. For information about the values that you specify for each element, see ContactDetail.

+ pub billing_contact: ::std::option::Option, + ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

+ ///
+ pub privacy_protect_billing_contact: ::std::option::Option, } impl RegisterDomainInput { ///

The domain name that you want to register. The top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of supported TLDs, see Domains that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer Guide.

@@ -91,27 +97,37 @@ impl RegisterDomainInput { pub fn tech_contact(&self) -> ::std::option::Option<&crate::types::ContactDetail> { self.tech_contact.as_ref() } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the admin contact.

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the admin contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn privacy_protect_admin_contact(&self) -> ::std::option::Option { self.privacy_protect_admin_contact } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (the domain owner).

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (the domain owner).

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn privacy_protect_registrant_contact(&self) -> ::std::option::Option { self.privacy_protect_registrant_contact } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn privacy_protect_tech_contact(&self) -> ::std::option::Option { self.privacy_protect_tech_contact } + ///

Provides detailed contact information. For information about the values that you specify for each element, see ContactDetail.

+ pub fn billing_contact(&self) -> ::std::option::Option<&crate::types::ContactDetail> { + self.billing_contact.as_ref() + } + ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

+ ///
+ pub fn privacy_protect_billing_contact(&self) -> ::std::option::Option { + self.privacy_protect_billing_contact + } } impl ::std::fmt::Debug for RegisterDomainInput { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { @@ -126,6 +142,8 @@ impl ::std::fmt::Debug for RegisterDomainInput { formatter.field("privacy_protect_admin_contact", &self.privacy_protect_admin_contact); formatter.field("privacy_protect_registrant_contact", &self.privacy_protect_registrant_contact); formatter.field("privacy_protect_tech_contact", &self.privacy_protect_tech_contact); + formatter.field("billing_contact", &"*** Sensitive Data Redacted ***"); + formatter.field("privacy_protect_billing_contact", &self.privacy_protect_billing_contact); formatter.finish() } } @@ -150,6 +168,8 @@ pub struct RegisterDomainInputBuilder { pub(crate) privacy_protect_admin_contact: ::std::option::Option, pub(crate) privacy_protect_registrant_contact: ::std::option::Option, pub(crate) privacy_protect_tech_contact: ::std::option::Option, + pub(crate) billing_contact: ::std::option::Option, + pub(crate) privacy_protect_billing_contact: ::std::option::Option, } impl RegisterDomainInputBuilder { ///

The domain name that you want to register. The top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of supported TLDs, see Domains that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer Guide.

@@ -297,75 +317,109 @@ impl RegisterDomainInputBuilder { pub fn get_tech_contact(&self) -> &::std::option::Option { &self.tech_contact } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the admin contact.

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the admin contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn privacy_protect_admin_contact(mut self, input: bool) -> Self { self.privacy_protect_admin_contact = ::std::option::Option::Some(input); self } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the admin contact.

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the admin contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn set_privacy_protect_admin_contact(mut self, input: ::std::option::Option) -> Self { self.privacy_protect_admin_contact = input; self } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the admin contact.

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the admin contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn get_privacy_protect_admin_contact(&self) -> &::std::option::Option { &self.privacy_protect_admin_contact } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (the domain owner).

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (the domain owner).

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn privacy_protect_registrant_contact(mut self, input: bool) -> Self { self.privacy_protect_registrant_contact = ::std::option::Option::Some(input); self } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (the domain owner).

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (the domain owner).

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn set_privacy_protect_registrant_contact(mut self, input: ::std::option::Option) -> Self { self.privacy_protect_registrant_contact = input; self } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (the domain owner).

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (the domain owner).

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn get_privacy_protect_registrant_contact(&self) -> &::std::option::Option { &self.privacy_protect_registrant_contact } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn privacy_protect_tech_contact(mut self, input: bool) -> Self { self.privacy_protect_tech_contact = ::std::option::Option::Some(input); self } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn set_privacy_protect_tech_contact(mut self, input: ::std::option::Option) -> Self { self.privacy_protect_tech_contact = input; self } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn get_privacy_protect_tech_contact(&self) -> &::std::option::Option { &self.privacy_protect_tech_contact } + ///

Provides detailed contact information. For information about the values that you specify for each element, see ContactDetail.

+ pub fn billing_contact(mut self, input: crate::types::ContactDetail) -> Self { + self.billing_contact = ::std::option::Option::Some(input); + self + } + ///

Provides detailed contact information. For information about the values that you specify for each element, see ContactDetail.

+ pub fn set_billing_contact(mut self, input: ::std::option::Option) -> Self { + self.billing_contact = input; + self + } + ///

Provides detailed contact information. For information about the values that you specify for each element, see ContactDetail.

+ pub fn get_billing_contact(&self) -> &::std::option::Option { + &self.billing_contact + } + ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

+ ///
+ pub fn privacy_protect_billing_contact(mut self, input: bool) -> Self { + self.privacy_protect_billing_contact = ::std::option::Option::Some(input); + self + } + ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

+ ///
+ pub fn set_privacy_protect_billing_contact(mut self, input: ::std::option::Option) -> Self { + self.privacy_protect_billing_contact = input; + self + } + ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

+ ///
+ pub fn get_privacy_protect_billing_contact(&self) -> &::std::option::Option { + &self.privacy_protect_billing_contact + } /// Consumes the builder and constructs a [`RegisterDomainInput`](crate::operation::register_domain::RegisterDomainInput). pub fn build( self, @@ -381,6 +435,8 @@ impl RegisterDomainInputBuilder { privacy_protect_admin_contact: self.privacy_protect_admin_contact, privacy_protect_registrant_contact: self.privacy_protect_registrant_contact, privacy_protect_tech_contact: self.privacy_protect_tech_contact, + billing_contact: self.billing_contact, + privacy_protect_billing_contact: self.privacy_protect_billing_contact, }) } } @@ -397,6 +453,8 @@ impl ::std::fmt::Debug for RegisterDomainInputBuilder { formatter.field("privacy_protect_admin_contact", &self.privacy_protect_admin_contact); formatter.field("privacy_protect_registrant_contact", &self.privacy_protect_registrant_contact); formatter.field("privacy_protect_tech_contact", &self.privacy_protect_tech_contact); + formatter.field("billing_contact", &"*** Sensitive Data Redacted ***"); + formatter.field("privacy_protect_billing_contact", &self.privacy_protect_billing_contact); formatter.finish() } } diff --git a/sdk/route53domains/src/operation/register_domain/builders.rs b/sdk/route53domains/src/operation/register_domain/builders.rs index c914e1f930b8..282d2c00f26c 100644 --- a/sdk/route53domains/src/operation/register_domain/builders.rs +++ b/sdk/route53domains/src/operation/register_domain/builders.rs @@ -265,73 +265,107 @@ impl RegisterDomainFluentBuilder { pub fn get_tech_contact(&self) -> &::std::option::Option { self.inner.get_tech_contact() } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the admin contact.

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the admin contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn privacy_protect_admin_contact(mut self, input: bool) -> Self { self.inner = self.inner.privacy_protect_admin_contact(input); self } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the admin contact.

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the admin contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn set_privacy_protect_admin_contact(mut self, input: ::std::option::Option) -> Self { self.inner = self.inner.set_privacy_protect_admin_contact(input); self } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the admin contact.

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the admin contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn get_privacy_protect_admin_contact(&self) -> &::std::option::Option { self.inner.get_privacy_protect_admin_contact() } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (the domain owner).

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (the domain owner).

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn privacy_protect_registrant_contact(mut self, input: bool) -> Self { self.inner = self.inner.privacy_protect_registrant_contact(input); self } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (the domain owner).

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (the domain owner).

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn set_privacy_protect_registrant_contact(mut self, input: ::std::option::Option) -> Self { self.inner = self.inner.set_privacy_protect_registrant_contact(input); self } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (the domain owner).

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (the domain owner).

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn get_privacy_protect_registrant_contact(&self) -> &::std::option::Option { self.inner.get_privacy_protect_registrant_contact() } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn privacy_protect_tech_contact(mut self, input: bool) -> Self { self.inner = self.inner.privacy_protect_tech_contact(input); self } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn set_privacy_protect_tech_contact(mut self, input: ::std::option::Option) -> Self { self.inner = self.inner.set_privacy_protect_tech_contact(input); self } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn get_privacy_protect_tech_contact(&self) -> &::std::option::Option { self.inner.get_privacy_protect_tech_contact() } + ///

Provides detailed contact information. For information about the values that you specify for each element, see ContactDetail.

+ pub fn billing_contact(mut self, input: crate::types::ContactDetail) -> Self { + self.inner = self.inner.billing_contact(input); + self + } + ///

Provides detailed contact information. For information about the values that you specify for each element, see ContactDetail.

+ pub fn set_billing_contact(mut self, input: ::std::option::Option) -> Self { + self.inner = self.inner.set_billing_contact(input); + self + } + ///

Provides detailed contact information. For information about the values that you specify for each element, see ContactDetail.

+ pub fn get_billing_contact(&self) -> &::std::option::Option { + self.inner.get_billing_contact() + } + ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

+ ///
+ pub fn privacy_protect_billing_contact(mut self, input: bool) -> Self { + self.inner = self.inner.privacy_protect_billing_contact(input); + self + } + ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

+ ///
+ pub fn set_privacy_protect_billing_contact(mut self, input: ::std::option::Option) -> Self { + self.inner = self.inner.set_privacy_protect_billing_contact(input); + self + } + ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

+ ///
+ pub fn get_privacy_protect_billing_contact(&self) -> &::std::option::Option { + self.inner.get_privacy_protect_billing_contact() + } } diff --git a/sdk/route53domains/src/operation/transfer_domain/_transfer_domain_input.rs b/sdk/route53domains/src/operation/transfer_domain/_transfer_domain_input.rs index dc76501fc448..6901d2cb2bf9 100644 --- a/sdk/route53domains/src/operation/transfer_domain/_transfer_domain_input.rs +++ b/sdk/route53domains/src/operation/transfer_domain/_transfer_domain_input.rs @@ -42,16 +42,22 @@ pub struct TransferDomainInput { ///
///

Default: true

pub privacy_protect_admin_contact: ::std::option::Option, - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub privacy_protect_registrant_contact: ::std::option::Option, - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub privacy_protect_tech_contact: ::std::option::Option, + ///

Provides detailed contact information.

+ pub billing_contact: ::std::option::Option, + ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

+ ///
+ pub privacy_protect_billing_contact: ::std::option::Option, } impl TransferDomainInput { ///

The name of the domain that you want to transfer to Route 53. The top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of supported TLDs, see Domains that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer Guide.

@@ -114,20 +120,30 @@ impl TransferDomainInput { pub fn privacy_protect_admin_contact(&self) -> ::std::option::Option { self.privacy_protect_admin_contact } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn privacy_protect_registrant_contact(&self) -> ::std::option::Option { self.privacy_protect_registrant_contact } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn privacy_protect_tech_contact(&self) -> ::std::option::Option { self.privacy_protect_tech_contact } + ///

Provides detailed contact information.

+ pub fn billing_contact(&self) -> ::std::option::Option<&crate::types::ContactDetail> { + self.billing_contact.as_ref() + } + ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

+ ///
+ pub fn privacy_protect_billing_contact(&self) -> ::std::option::Option { + self.privacy_protect_billing_contact + } } impl ::std::fmt::Debug for TransferDomainInput { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { @@ -144,6 +160,8 @@ impl ::std::fmt::Debug for TransferDomainInput { formatter.field("privacy_protect_admin_contact", &self.privacy_protect_admin_contact); formatter.field("privacy_protect_registrant_contact", &self.privacy_protect_registrant_contact); formatter.field("privacy_protect_tech_contact", &self.privacy_protect_tech_contact); + formatter.field("billing_contact", &"*** Sensitive Data Redacted ***"); + formatter.field("privacy_protect_billing_contact", &self.privacy_protect_billing_contact); formatter.finish() } } @@ -170,6 +188,8 @@ pub struct TransferDomainInputBuilder { pub(crate) privacy_protect_admin_contact: ::std::option::Option, pub(crate) privacy_protect_registrant_contact: ::std::option::Option, pub(crate) privacy_protect_tech_contact: ::std::option::Option, + pub(crate) billing_contact: ::std::option::Option, + pub(crate) privacy_protect_billing_contact: ::std::option::Option, } impl TransferDomainInputBuilder { ///

The name of the domain that you want to transfer to Route 53. The top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of supported TLDs, see Domains that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer Guide.

@@ -377,52 +397,86 @@ impl TransferDomainInputBuilder { pub fn get_privacy_protect_admin_contact(&self) -> &::std::option::Option { &self.privacy_protect_admin_contact } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn privacy_protect_registrant_contact(mut self, input: bool) -> Self { self.privacy_protect_registrant_contact = ::std::option::Option::Some(input); self } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn set_privacy_protect_registrant_contact(mut self, input: ::std::option::Option) -> Self { self.privacy_protect_registrant_contact = input; self } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn get_privacy_protect_registrant_contact(&self) -> &::std::option::Option { &self.privacy_protect_registrant_contact } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn privacy_protect_tech_contact(mut self, input: bool) -> Self { self.privacy_protect_tech_contact = ::std::option::Option::Some(input); self } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn set_privacy_protect_tech_contact(mut self, input: ::std::option::Option) -> Self { self.privacy_protect_tech_contact = input; self } - ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

- ///

You must specify the same privacy setting for the administrative, registrant, and technical contacts.

+ ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

///
///

Default: true

pub fn get_privacy_protect_tech_contact(&self) -> &::std::option::Option { &self.privacy_protect_tech_contact } + ///

Provides detailed contact information.

+ pub fn billing_contact(mut self, input: crate::types::ContactDetail) -> Self { + self.billing_contact = ::std::option::Option::Some(input); + self + } + ///

Provides detailed contact information.

+ pub fn set_billing_contact(mut self, input: ::std::option::Option) -> Self { + self.billing_contact = input; + self + } + ///

Provides detailed contact information.

+ pub fn get_billing_contact(&self) -> &::std::option::Option { + &self.billing_contact + } + ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

+ ///
+ pub fn privacy_protect_billing_contact(mut self, input: bool) -> Self { + self.privacy_protect_billing_contact = ::std::option::Option::Some(input); + self + } + ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

+ ///
+ pub fn set_privacy_protect_billing_contact(mut self, input: ::std::option::Option) -> Self { + self.privacy_protect_billing_contact = input; + self + } + ///

Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

+ ///

You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

+ ///
+ pub fn get_privacy_protect_billing_contact(&self) -> &::std::option::Option { + &self.privacy_protect_billing_contact + } /// Consumes the builder and constructs a [`TransferDomainInput`](crate::operation::transfer_domain::TransferDomainInput). pub fn build( self, @@ -440,6 +494,8 @@ impl TransferDomainInputBuilder { privacy_protect_admin_contact: self.privacy_protect_admin_contact, privacy_protect_registrant_contact: self.privacy_protect_registrant_contact, privacy_protect_tech_contact: self.privacy_protect_tech_contact, + billing_contact: self.billing_contact, + privacy_protect_billing_contact: self.privacy_protect_billing_contact, }) } } @@ -458,6 +514,8 @@ impl ::std::fmt::Debug for TransferDomainInputBuilder { formatter.field("privacy_protect_admin_contact", &self.privacy_protect_admin_contact); formatter.field("privacy_protect_registrant_contact", &self.privacy_protect_registrant_contact); formatter.field("privacy_protect_tech_contact", &self.privacy_protect_tech_contact); + formatter.field("billing_contact", &"*** Sensitive Data Redacted ***"); + formatter.field("privacy_protect_billing_contact", &self.privacy_protect_billing_contact); formatter.finish() } } diff --git a/sdk/route53domains/src/operation/transfer_domain/builders.rs b/sdk/route53domains/src/operation/transfer_domain/builders.rs index 5911800b2343..d9a1a076fa61 100644 --- a/sdk/route53domains/src/operation/transfer_domain/builders.rs +++ b/sdk/route53domains/src/operation/transfer_domain/builders.rs @@ -31,7 +31,9 @@ impl TransferDomainInputBuilder { ///

For information about how to transfer a domain from one Amazon Web Services account to another, see TransferDomainToAnotherAwsAccount.

///
  • ///

    For information about how to transfer a domain to another domain registrar, see Transferring a Domain from Amazon Route 53 to Another Registrar in the Amazon Route 53 Developer Guide.

  • -/// +/// +///

    During the transfer of any country code top-level domains (ccTLDs) to Route 53, except for .cc and .tv, updates to the owner contact are ignored and the owner contact data from the registry is used. You can update the owner contact after the transfer is complete. For more information, see UpdateDomainContact.

    +///
    ///

    If the registrar for your domain is also the DNS service provider for the domain, we highly recommend that you transfer your DNS service to Route 53 or to another DNS service provider before you transfer your registration. Some registrars provide free DNS service when you purchase a domain registration. When you transfer the registration, the previous registrar will not renew your domain registration and could end your DNS service at any time.

    ///

    If the registrar for your domain is also the DNS service provider for the domain and you don't transfer DNS service to another provider, your website, email, and the web applications associated with the domain might become unavailable.

    ///
    @@ -319,50 +321,84 @@ impl TransferDomainFluentBuilder { pub fn get_privacy_protect_admin_contact(&self) -> &::std::option::Option { self.inner.get_privacy_protect_admin_contact() } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    ///

    Default: true

    pub fn privacy_protect_registrant_contact(mut self, input: bool) -> Self { self.inner = self.inner.privacy_protect_registrant_contact(input); self } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    ///

    Default: true

    pub fn set_privacy_protect_registrant_contact(mut self, input: ::std::option::Option) -> Self { self.inner = self.inner.set_privacy_protect_registrant_contact(input); self } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    ///

    Default: true

    pub fn get_privacy_protect_registrant_contact(&self) -> &::std::option::Option { self.inner.get_privacy_protect_registrant_contact() } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    ///

    Default: true

    pub fn privacy_protect_tech_contact(mut self, input: bool) -> Self { self.inner = self.inner.privacy_protect_tech_contact(input); self } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    ///

    Default: true

    pub fn set_privacy_protect_tech_contact(mut self, input: ::std::option::Option) -> Self { self.inner = self.inner.set_privacy_protect_tech_contact(input); self } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    ///

    Default: true

    pub fn get_privacy_protect_tech_contact(&self) -> &::std::option::Option { self.inner.get_privacy_protect_tech_contact() } + ///

    Provides detailed contact information.

    + pub fn billing_contact(mut self, input: crate::types::ContactDetail) -> Self { + self.inner = self.inner.billing_contact(input); + self + } + ///

    Provides detailed contact information.

    + pub fn set_billing_contact(mut self, input: ::std::option::Option) -> Self { + self.inner = self.inner.set_billing_contact(input); + self + } + ///

    Provides detailed contact information.

    + pub fn get_billing_contact(&self) -> &::std::option::Option { + self.inner.get_billing_contact() + } + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    + ///
    + pub fn privacy_protect_billing_contact(mut self, input: bool) -> Self { + self.inner = self.inner.privacy_protect_billing_contact(input); + self + } + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    + ///
    + pub fn set_privacy_protect_billing_contact(mut self, input: ::std::option::Option) -> Self { + self.inner = self.inner.set_privacy_protect_billing_contact(input); + self + } + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    + ///
    + pub fn get_privacy_protect_billing_contact(&self) -> &::std::option::Option { + self.inner.get_privacy_protect_billing_contact() + } } diff --git a/sdk/route53domains/src/operation/update_domain_contact/_update_domain_contact_input.rs b/sdk/route53domains/src/operation/update_domain_contact/_update_domain_contact_input.rs index f735db0140fd..b09824bf4a93 100644 --- a/sdk/route53domains/src/operation/update_domain_contact/_update_domain_contact_input.rs +++ b/sdk/route53domains/src/operation/update_domain_contact/_update_domain_contact_input.rs @@ -14,6 +14,8 @@ pub struct UpdateDomainContactInput { pub tech_contact: ::std::option::Option, ///

    Customer's consent for the owner change request. Required if the domain is not free (consent price is more than $0.00).

    pub consent: ::std::option::Option, + ///

    Provides detailed contact information.

    + pub billing_contact: ::std::option::Option, } impl UpdateDomainContactInput { ///

    The name of the domain that you want to update contact information for.

    @@ -36,6 +38,10 @@ impl UpdateDomainContactInput { pub fn consent(&self) -> ::std::option::Option<&crate::types::Consent> { self.consent.as_ref() } + ///

    Provides detailed contact information.

    + pub fn billing_contact(&self) -> ::std::option::Option<&crate::types::ContactDetail> { + self.billing_contact.as_ref() + } } impl ::std::fmt::Debug for UpdateDomainContactInput { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { @@ -45,6 +51,7 @@ impl ::std::fmt::Debug for UpdateDomainContactInput { formatter.field("registrant_contact", &"*** Sensitive Data Redacted ***"); formatter.field("tech_contact", &"*** Sensitive Data Redacted ***"); formatter.field("consent", &self.consent); + formatter.field("billing_contact", &"*** Sensitive Data Redacted ***"); formatter.finish() } } @@ -64,6 +71,7 @@ pub struct UpdateDomainContactInputBuilder { pub(crate) registrant_contact: ::std::option::Option, pub(crate) tech_contact: ::std::option::Option, pub(crate) consent: ::std::option::Option, + pub(crate) billing_contact: ::std::option::Option, } impl UpdateDomainContactInputBuilder { ///

    The name of the domain that you want to update contact information for.

    @@ -137,6 +145,20 @@ impl UpdateDomainContactInputBuilder { pub fn get_consent(&self) -> &::std::option::Option { &self.consent } + ///

    Provides detailed contact information.

    + pub fn billing_contact(mut self, input: crate::types::ContactDetail) -> Self { + self.billing_contact = ::std::option::Option::Some(input); + self + } + ///

    Provides detailed contact information.

    + pub fn set_billing_contact(mut self, input: ::std::option::Option) -> Self { + self.billing_contact = input; + self + } + ///

    Provides detailed contact information.

    + pub fn get_billing_contact(&self) -> &::std::option::Option { + &self.billing_contact + } /// Consumes the builder and constructs a [`UpdateDomainContactInput`](crate::operation::update_domain_contact::UpdateDomainContactInput). pub fn build( self, @@ -148,6 +170,7 @@ impl UpdateDomainContactInputBuilder { registrant_contact: self.registrant_contact, tech_contact: self.tech_contact, consent: self.consent, + billing_contact: self.billing_contact, }) } } @@ -159,6 +182,7 @@ impl ::std::fmt::Debug for UpdateDomainContactInputBuilder { formatter.field("registrant_contact", &"*** Sensitive Data Redacted ***"); formatter.field("tech_contact", &"*** Sensitive Data Redacted ***"); formatter.field("consent", &self.consent); + formatter.field("billing_contact", &"*** Sensitive Data Redacted ***"); formatter.finish() } } diff --git a/sdk/route53domains/src/operation/update_domain_contact/builders.rs b/sdk/route53domains/src/operation/update_domain_contact/builders.rs index 70332f2f3402..dc713705d945 100644 --- a/sdk/route53domains/src/operation/update_domain_contact/builders.rs +++ b/sdk/route53domains/src/operation/update_domain_contact/builders.rs @@ -179,4 +179,18 @@ impl UpdateDomainContactFluentBuilder { pub fn get_consent(&self) -> &::std::option::Option { self.inner.get_consent() } + ///

    Provides detailed contact information.

    + pub fn billing_contact(mut self, input: crate::types::ContactDetail) -> Self { + self.inner = self.inner.billing_contact(input); + self + } + ///

    Provides detailed contact information.

    + pub fn set_billing_contact(mut self, input: ::std::option::Option) -> Self { + self.inner = self.inner.set_billing_contact(input); + self + } + ///

    Provides detailed contact information.

    + pub fn get_billing_contact(&self) -> &::std::option::Option { + self.inner.get_billing_contact() + } } diff --git a/sdk/route53domains/src/operation/update_domain_contact_privacy/_update_domain_contact_privacy_input.rs b/sdk/route53domains/src/operation/update_domain_contact_privacy/_update_domain_contact_privacy_input.rs index da72aee2bb03..39e8270d6f1a 100644 --- a/sdk/route53domains/src/operation/update_domain_contact_privacy/_update_domain_contact_privacy_input.rs +++ b/sdk/route53domains/src/operation/update_domain_contact_privacy/_update_domain_contact_privacy_input.rs @@ -6,42 +6,52 @@ pub struct UpdateDomainContactPrivacyInput { ///

    The name of the domain that you want to update the privacy setting for.

    pub domain_name: ::std::option::Option<::std::string::String>, - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the admin contact.

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the admin contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub admin_privacy: ::std::option::Option, - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub registrant_privacy: ::std::option::Option, - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub tech_privacy: ::std::option::Option, + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    + ///
    + pub billing_privacy: ::std::option::Option, } impl UpdateDomainContactPrivacyInput { ///

    The name of the domain that you want to update the privacy setting for.

    pub fn domain_name(&self) -> ::std::option::Option<&str> { self.domain_name.as_deref() } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the admin contact.

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the admin contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub fn admin_privacy(&self) -> ::std::option::Option { self.admin_privacy } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub fn registrant_privacy(&self) -> ::std::option::Option { self.registrant_privacy } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub fn tech_privacy(&self) -> ::std::option::Option { self.tech_privacy } + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    + ///
    + pub fn billing_privacy(&self) -> ::std::option::Option { + self.billing_privacy + } } impl UpdateDomainContactPrivacyInput { /// Creates a new builder-style object to manufacture [`UpdateDomainContactPrivacyInput`](crate::operation::update_domain_contact_privacy::UpdateDomainContactPrivacyInput). @@ -58,6 +68,7 @@ pub struct UpdateDomainContactPrivacyInputBuilder { pub(crate) admin_privacy: ::std::option::Option, pub(crate) registrant_privacy: ::std::option::Option, pub(crate) tech_privacy: ::std::option::Option, + pub(crate) billing_privacy: ::std::option::Option, } impl UpdateDomainContactPrivacyInputBuilder { ///

    The name of the domain that you want to update the privacy setting for.

    @@ -75,66 +86,86 @@ impl UpdateDomainContactPrivacyInputBuilder { pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> { &self.domain_name } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the admin contact.

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the admin contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub fn admin_privacy(mut self, input: bool) -> Self { self.admin_privacy = ::std::option::Option::Some(input); self } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the admin contact.

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the admin contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub fn set_admin_privacy(mut self, input: ::std::option::Option) -> Self { self.admin_privacy = input; self } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the admin contact.

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the admin contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub fn get_admin_privacy(&self) -> &::std::option::Option { &self.admin_privacy } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub fn registrant_privacy(mut self, input: bool) -> Self { self.registrant_privacy = ::std::option::Option::Some(input); self } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub fn set_registrant_privacy(mut self, input: ::std::option::Option) -> Self { self.registrant_privacy = input; self } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub fn get_registrant_privacy(&self) -> &::std::option::Option { &self.registrant_privacy } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub fn tech_privacy(mut self, input: bool) -> Self { self.tech_privacy = ::std::option::Option::Some(input); self } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub fn set_tech_privacy(mut self, input: ::std::option::Option) -> Self { self.tech_privacy = input; self } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub fn get_tech_privacy(&self) -> &::std::option::Option { &self.tech_privacy } + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    + ///
    + pub fn billing_privacy(mut self, input: bool) -> Self { + self.billing_privacy = ::std::option::Option::Some(input); + self + } + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    + ///
    + pub fn set_billing_privacy(mut self, input: ::std::option::Option) -> Self { + self.billing_privacy = input; + self + } + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    + ///
    + pub fn get_billing_privacy(&self) -> &::std::option::Option { + &self.billing_privacy + } /// Consumes the builder and constructs a [`UpdateDomainContactPrivacyInput`](crate::operation::update_domain_contact_privacy::UpdateDomainContactPrivacyInput). pub fn build( self, @@ -147,6 +178,7 @@ impl UpdateDomainContactPrivacyInputBuilder { admin_privacy: self.admin_privacy, registrant_privacy: self.registrant_privacy, tech_privacy: self.tech_privacy, + billing_privacy: self.billing_privacy, }) } } diff --git a/sdk/route53domains/src/operation/update_domain_contact_privacy/builders.rs b/sdk/route53domains/src/operation/update_domain_contact_privacy/builders.rs index 128b095ed365..244079239c82 100644 --- a/sdk/route53domains/src/operation/update_domain_contact_privacy/builders.rs +++ b/sdk/route53domains/src/operation/update_domain_contact_privacy/builders.rs @@ -129,64 +129,84 @@ impl UpdateDomainContactPrivacyFluentBuilder { pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_domain_name() } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the admin contact.

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the admin contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub fn admin_privacy(mut self, input: bool) -> Self { self.inner = self.inner.admin_privacy(input); self } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the admin contact.

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the admin contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub fn set_admin_privacy(mut self, input: ::std::option::Option) -> Self { self.inner = self.inner.set_admin_privacy(input); self } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the admin contact.

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the admin contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub fn get_admin_privacy(&self) -> &::std::option::Option { self.inner.get_admin_privacy() } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub fn registrant_privacy(mut self, input: bool) -> Self { self.inner = self.inner.registrant_privacy(input); self } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub fn set_registrant_privacy(mut self, input: ::std::option::Option) -> Self { self.inner = self.inner.set_registrant_privacy(input); self } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the registrant contact (domain owner).

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub fn get_registrant_privacy(&self) -> &::std::option::Option { self.inner.get_registrant_privacy() } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub fn tech_privacy(mut self, input: bool) -> Self { self.inner = self.inner.tech_privacy(input); self } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub fn set_tech_privacy(mut self, input: ::std::option::Option) -> Self { self.inner = self.inner.set_tech_privacy(input); self } - ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false, WHOIS queries return the information that you entered for the technical contact.

    - ///

    You must specify the same privacy setting for the administrative, registrant, and technical contacts.

    + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the technical contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    ///
    pub fn get_tech_privacy(&self) -> &::std::option::Option { self.inner.get_tech_privacy() } + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    + ///
    + pub fn billing_privacy(mut self, input: bool) -> Self { + self.inner = self.inner.billing_privacy(input); + self + } + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    + ///
    + pub fn set_billing_privacy(mut self, input: ::std::option::Option) -> Self { + self.inner = self.inner.set_billing_privacy(input); + self + } + ///

    Whether you want to conceal contact information from WHOIS queries. If you specify true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify false, WHOIS queries return the information that you entered for the billing contact.

    + ///

    You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.

    + ///
    + pub fn get_billing_privacy(&self) -> &::std::option::Option { + self.inner.get_billing_privacy() + } } diff --git a/sdk/route53domains/src/protocol_serde/shape_get_domain_detail.rs b/sdk/route53domains/src/protocol_serde/shape_get_domain_detail.rs index 8d26ba4905b9..0469cb0d68ac 100644 --- a/sdk/route53domains/src/protocol_serde/shape_get_domain_detail.rs +++ b/sdk/route53domains/src/protocol_serde/shape_get_domain_detail.rs @@ -199,6 +199,12 @@ pub(crate) fn de_get_domain_detail( "DnssecKeys" => { builder = builder.set_dnssec_keys(crate::protocol_serde::shape_dnssec_key_list::de_dnssec_key_list(tokens)?); } + "BillingContact" => { + builder = builder.set_billing_contact(crate::protocol_serde::shape_contact_detail::de_contact_detail(tokens)?); + } + "BillingPrivacy" => { + builder = builder.set_billing_privacy(::aws_smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?); + } _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, }, other => { diff --git a/sdk/route53domains/src/protocol_serde/shape_register_domain_input.rs b/sdk/route53domains/src/protocol_serde/shape_register_domain_input.rs index 9322101b7cda..79863a9c0c0e 100644 --- a/sdk/route53domains/src/protocol_serde/shape_register_domain_input.rs +++ b/sdk/route53domains/src/protocol_serde/shape_register_domain_input.rs @@ -45,5 +45,14 @@ pub fn ser_register_domain_input_input( if let Some(var_13) = &input.privacy_protect_tech_contact { object.key("PrivacyProtectTechContact").boolean(*var_13); } + if let Some(var_14) = &input.billing_contact { + #[allow(unused_mut)] + let mut object_15 = object.key("BillingContact").start_object(); + crate::protocol_serde::shape_contact_detail::ser_contact_detail(&mut object_15, var_14)?; + object_15.finish(); + } + if let Some(var_16) = &input.privacy_protect_billing_contact { + object.key("PrivacyProtectBillingContact").boolean(*var_16); + } Ok(()) } diff --git a/sdk/route53domains/src/protocol_serde/shape_transfer_domain_input.rs b/sdk/route53domains/src/protocol_serde/shape_transfer_domain_input.rs index 72e8a5340266..ae33c205e5c5 100644 --- a/sdk/route53domains/src/protocol_serde/shape_transfer_domain_input.rs +++ b/sdk/route53domains/src/protocol_serde/shape_transfer_domain_input.rs @@ -60,5 +60,14 @@ pub fn ser_transfer_domain_input_input( if let Some(var_18) = &input.privacy_protect_tech_contact { object.key("PrivacyProtectTechContact").boolean(*var_18); } + if let Some(var_19) = &input.billing_contact { + #[allow(unused_mut)] + let mut object_20 = object.key("BillingContact").start_object(); + crate::protocol_serde::shape_contact_detail::ser_contact_detail(&mut object_20, var_19)?; + object_20.finish(); + } + if let Some(var_21) = &input.privacy_protect_billing_contact { + object.key("PrivacyProtectBillingContact").boolean(*var_21); + } Ok(()) } diff --git a/sdk/route53domains/src/protocol_serde/shape_update_domain_contact_input.rs b/sdk/route53domains/src/protocol_serde/shape_update_domain_contact_input.rs index 791db01ddbd8..0fbeb00fe84e 100644 --- a/sdk/route53domains/src/protocol_serde/shape_update_domain_contact_input.rs +++ b/sdk/route53domains/src/protocol_serde/shape_update_domain_contact_input.rs @@ -30,5 +30,11 @@ pub fn ser_update_domain_contact_input_input( crate::protocol_serde::shape_consent::ser_consent(&mut object_9, var_8)?; object_9.finish(); } + if let Some(var_10) = &input.billing_contact { + #[allow(unused_mut)] + let mut object_11 = object.key("BillingContact").start_object(); + crate::protocol_serde::shape_contact_detail::ser_contact_detail(&mut object_11, var_10)?; + object_11.finish(); + } Ok(()) } diff --git a/sdk/route53domains/src/protocol_serde/shape_update_domain_contact_privacy_input.rs b/sdk/route53domains/src/protocol_serde/shape_update_domain_contact_privacy_input.rs index e5885ae83c92..9d5a79a5953e 100644 --- a/sdk/route53domains/src/protocol_serde/shape_update_domain_contact_privacy_input.rs +++ b/sdk/route53domains/src/protocol_serde/shape_update_domain_contact_privacy_input.rs @@ -15,5 +15,8 @@ pub fn ser_update_domain_contact_privacy_input_input( if let Some(var_4) = &input.tech_privacy { object.key("TechPrivacy").boolean(*var_4); } + if let Some(var_5) = &input.billing_privacy { + object.key("BillingPrivacy").boolean(*var_5); + } Ok(()) } diff --git a/sdk/route53domains/src/types.rs b/sdk/route53domains/src/types.rs index 6e18b51679d6..562881d1d5dc 100644 --- a/sdk/route53domains/src/types.rs +++ b/sdk/route53domains/src/types.rs @@ -7,8 +7,6 @@ pub use crate::types::_tag::Tag; pub use crate::types::_nameserver::Nameserver; -pub use crate::types::_consent::Consent; - pub use crate::types::_contact_detail::ContactDetail; pub use crate::types::_extra_param::ExtraParam; @@ -19,6 +17,8 @@ pub use crate::types::_country_code::CountryCode; pub use crate::types::_contact_type::ContactType; +pub use crate::types::_consent::Consent; + pub use crate::types::_domain_price::DomainPrice; pub use crate::types::_price_with_currency::PriceWithCurrency; diff --git a/sdk/route53domains/src/types/_domain_availability.rs b/sdk/route53domains/src/types/_domain_availability.rs index 1cc28d1cf929..a25ddaa05704 100644 --- a/sdk/route53domains/src/types/_domain_availability.rs +++ b/sdk/route53domains/src/types/_domain_availability.rs @@ -16,6 +16,8 @@ /// DomainAvailability::AvailablePreorder => { /* ... */ }, /// DomainAvailability::AvailableReserved => { /* ... */ }, /// DomainAvailability::DontKnow => { /* ... */ }, +/// DomainAvailability::InvalidNameForTld => { /* ... */ }, +/// DomainAvailability::Pending => { /* ... */ }, /// DomainAvailability::Reserved => { /* ... */ }, /// DomainAvailability::Unavailable => { /* ... */ }, /// DomainAvailability::UnavailablePremium => { /* ... */ }, @@ -56,6 +58,10 @@ pub enum DomainAvailability { #[allow(missing_docs)] // documentation missing in model DontKnow, #[allow(missing_docs)] // documentation missing in model + InvalidNameForTld, + #[allow(missing_docs)] // documentation missing in model + Pending, + #[allow(missing_docs)] // documentation missing in model Reserved, #[allow(missing_docs)] // documentation missing in model Unavailable, @@ -74,6 +80,8 @@ impl ::std::convert::From<&str> for DomainAvailability { "AVAILABLE_PREORDER" => DomainAvailability::AvailablePreorder, "AVAILABLE_RESERVED" => DomainAvailability::AvailableReserved, "DONT_KNOW" => DomainAvailability::DontKnow, + "INVALID_NAME_FOR_TLD" => DomainAvailability::InvalidNameForTld, + "PENDING" => DomainAvailability::Pending, "RESERVED" => DomainAvailability::Reserved, "UNAVAILABLE" => DomainAvailability::Unavailable, "UNAVAILABLE_PREMIUM" => DomainAvailability::UnavailablePremium, @@ -97,6 +105,8 @@ impl DomainAvailability { DomainAvailability::AvailablePreorder => "AVAILABLE_PREORDER", DomainAvailability::AvailableReserved => "AVAILABLE_RESERVED", DomainAvailability::DontKnow => "DONT_KNOW", + DomainAvailability::InvalidNameForTld => "INVALID_NAME_FOR_TLD", + DomainAvailability::Pending => "PENDING", DomainAvailability::Reserved => "RESERVED", DomainAvailability::Unavailable => "UNAVAILABLE", DomainAvailability::UnavailablePremium => "UNAVAILABLE_PREMIUM", @@ -111,6 +121,8 @@ impl DomainAvailability { "AVAILABLE_PREORDER", "AVAILABLE_RESERVED", "DONT_KNOW", + "INVALID_NAME_FOR_TLD", + "PENDING", "RESERVED", "UNAVAILABLE", "UNAVAILABLE_PREMIUM", diff --git a/sdk/route53domains/src/types/_domain_transferability.rs b/sdk/route53domains/src/types/_domain_transferability.rs index 12e2bbd3c63f..b9c9a33723b6 100644 --- a/sdk/route53domains/src/types/_domain_transferability.rs +++ b/sdk/route53domains/src/types/_domain_transferability.rs @@ -37,7 +37,7 @@ pub struct DomainTransferability { /// DOMAIN_IN_ANOTHER_ACCOUNT /// ///
    - ///

    the domain exists in another Amazon Web Services account.

    + ///

    The domain exists in another Amazon Web Services account.

    ///
    ///
    /// PREMIUM_DOMAIN @@ -82,7 +82,7 @@ impl DomainTransferability { /// DOMAIN_IN_ANOTHER_ACCOUNT ///
    ///
    - ///

    the domain exists in another Amazon Web Services account.

    + ///

    The domain exists in another Amazon Web Services account.

    ///
    ///
    /// PREMIUM_DOMAIN @@ -142,7 +142,7 @@ impl DomainTransferabilityBuilder { /// DOMAIN_IN_ANOTHER_ACCOUNT ///
    ///
    - ///

    the domain exists in another Amazon Web Services account.

    + ///

    The domain exists in another Amazon Web Services account.

    ///
    ///
    /// PREMIUM_DOMAIN @@ -188,7 +188,7 @@ impl DomainTransferabilityBuilder { /// DOMAIN_IN_ANOTHER_ACCOUNT ///
    ///
    - ///

    the domain exists in another Amazon Web Services account.

    + ///

    The domain exists in another Amazon Web Services account.

    ///
    ///
    /// PREMIUM_DOMAIN @@ -234,7 +234,7 @@ impl DomainTransferabilityBuilder { /// DOMAIN_IN_ANOTHER_ACCOUNT ///
    ///
    - ///

    the domain exists in another Amazon Web Services account.

    + ///

    The domain exists in another Amazon Web Services account.

    ///
    ///
    /// PREMIUM_DOMAIN diff --git a/sdk/route53domains/src/types/_operation_type.rs b/sdk/route53domains/src/types/_operation_type.rs index 8654d58e166a..3160296e369f 100644 --- a/sdk/route53domains/src/types/_operation_type.rs +++ b/sdk/route53domains/src/types/_operation_type.rs @@ -24,9 +24,11 @@ /// OperationType::InternalTransferOutDomain => { /* ... */ }, /// OperationType::PushDomain => { /* ... */ }, /// OperationType::RegisterDomain => { /* ... */ }, +/// OperationType::ReleaseToGandi => { /* ... */ }, /// OperationType::RemoveDnssec => { /* ... */ }, /// OperationType::RenewDomain => { /* ... */ }, /// OperationType::TransferInDomain => { /* ... */ }, +/// OperationType::TransferOnRenew => { /* ... */ }, /// OperationType::TransferOutDomain => { /* ... */ }, /// OperationType::UpdateDomainContact => { /* ... */ }, /// OperationType::UpdateNameserver => { /* ... */ }, @@ -82,12 +84,16 @@ pub enum OperationType { #[allow(missing_docs)] // documentation missing in model RegisterDomain, #[allow(missing_docs)] // documentation missing in model + ReleaseToGandi, + #[allow(missing_docs)] // documentation missing in model RemoveDnssec, #[allow(missing_docs)] // documentation missing in model RenewDomain, #[allow(missing_docs)] // documentation missing in model TransferInDomain, #[allow(missing_docs)] // documentation missing in model + TransferOnRenew, + #[allow(missing_docs)] // documentation missing in model TransferOutDomain, #[allow(missing_docs)] // documentation missing in model UpdateDomainContact, @@ -112,9 +118,11 @@ impl ::std::convert::From<&str> for OperationType { "INTERNAL_TRANSFER_OUT_DOMAIN" => OperationType::InternalTransferOutDomain, "PUSH_DOMAIN" => OperationType::PushDomain, "REGISTER_DOMAIN" => OperationType::RegisterDomain, + "RELEASE_TO_GANDI" => OperationType::ReleaseToGandi, "REMOVE_DNSSEC" => OperationType::RemoveDnssec, "RENEW_DOMAIN" => OperationType::RenewDomain, "TRANSFER_IN_DOMAIN" => OperationType::TransferInDomain, + "TRANSFER_ON_RENEW" => OperationType::TransferOnRenew, "TRANSFER_OUT_DOMAIN" => OperationType::TransferOutDomain, "UPDATE_DOMAIN_CONTACT" => OperationType::UpdateDomainContact, "UPDATE_NAMESERVER" => OperationType::UpdateNameserver, @@ -145,9 +153,11 @@ impl OperationType { OperationType::InternalTransferOutDomain => "INTERNAL_TRANSFER_OUT_DOMAIN", OperationType::PushDomain => "PUSH_DOMAIN", OperationType::RegisterDomain => "REGISTER_DOMAIN", + OperationType::ReleaseToGandi => "RELEASE_TO_GANDI", OperationType::RemoveDnssec => "REMOVE_DNSSEC", OperationType::RenewDomain => "RENEW_DOMAIN", OperationType::TransferInDomain => "TRANSFER_IN_DOMAIN", + OperationType::TransferOnRenew => "TRANSFER_ON_RENEW", OperationType::TransferOutDomain => "TRANSFER_OUT_DOMAIN", OperationType::UpdateDomainContact => "UPDATE_DOMAIN_CONTACT", OperationType::UpdateNameserver => "UPDATE_NAMESERVER", @@ -169,9 +179,11 @@ impl OperationType { "INTERNAL_TRANSFER_OUT_DOMAIN", "PUSH_DOMAIN", "REGISTER_DOMAIN", + "RELEASE_TO_GANDI", "REMOVE_DNSSEC", "RENEW_DOMAIN", "TRANSFER_IN_DOMAIN", + "TRANSFER_ON_RENEW", "TRANSFER_OUT_DOMAIN", "UPDATE_DOMAIN_CONTACT", "UPDATE_NAMESERVER", diff --git a/sdk/route53domains/src/types/_transferable.rs b/sdk/route53domains/src/types/_transferable.rs index 8d7c34c563a5..b534d78cd20c 100644 --- a/sdk/route53domains/src/types/_transferable.rs +++ b/sdk/route53domains/src/types/_transferable.rs @@ -64,7 +64,7 @@ /// ///
    DOMAIN_IN_ANOTHER_ACCOUNT
    ///
    -///

    the domain exists in another Amazon Web Services account.

    +///

    The domain exists in another Amazon Web Services account.

    ///
    ///
    PREMIUM_DOMAIN
    ///
    diff --git a/sdk/route53domains/src/types/builders.rs b/sdk/route53domains/src/types/builders.rs index caf900883efa..a52bf38bd00b 100644 --- a/sdk/route53domains/src/types/builders.rs +++ b/sdk/route53domains/src/types/builders.rs @@ -5,12 +5,12 @@ pub use crate::types::_tag::TagBuilder; pub use crate::types::_nameserver::NameserverBuilder; -pub use crate::types::_consent::ConsentBuilder; - pub use crate::types::_contact_detail::ContactDetailBuilder; pub use crate::types::_extra_param::ExtraParamBuilder; +pub use crate::types::_consent::ConsentBuilder; + pub use crate::types::_domain_price::DomainPriceBuilder; pub use crate::types::_price_with_currency::PriceWithCurrencyBuilder; diff --git a/versions.toml b/versions.toml index 51be65389eeb..8c33e43af969 100644 --- a/versions.toml +++ b/versions.toml @@ -184,9 +184,9 @@ model_hash = '3006e79daf1741f4f68666f88bf146845e3ee473bffaf4de695075870e0c39f1' [crates.aws-sdk-appsync] category = 'AwsSdk' -version = '1.15.0' -source_hash = 'f59d0272228cca2979ad059b026c0c0c11b8168be4f535bda34b4cae2c414996' -model_hash = '3e3f0b42c33af44ade9923efaa59bb26b81ad5681f6b3534a6a5103f9cab2163' +version = '1.16.0' +source_hash = '6460ba9399d07aec6059f1359d31a01a84997790b3b86ce2b55ea4f6de45b719' +model_hash = '2cf3f1bae8c69e08d3da927b5e5b92420d43d3ed39fdea6be05ea29eba564ce6' [crates.aws-sdk-arczonalshift] category = 'AwsSdk' @@ -418,9 +418,9 @@ model_hash = 'b0fca8401448081d86469d214adf368b56a8a534032015ff2c80fe0bd86f2c7a' [crates.aws-sdk-cloudwatch] category = 'AwsSdk' -version = '1.14.0' -source_hash = 'd401ac1c7efd1b939c16bd61017af1639dc7adb97bc2eca0a902c7858e0d184e' -model_hash = '9ba6fd0d7fafe1ef203d22970fcd53feaf867ae56e0ca18bd1861667f6df7f9c' +version = '1.15.0' +source_hash = '29512e7538447073f28b3495bd4928b642f60b413471db306afdbb5e863f5883' +model_hash = '5ed355e6ea2c7b2d3cf7577c99ffb3ad590f3b9fb4f9b3116115a64908409503' [crates.aws-sdk-cloudwatchevents] category = 'AwsSdk' @@ -1522,9 +1522,9 @@ model_hash = '3b83cd13db92df4ca24a11f8978d16f9aaebaaaf6144a282feba7c369d65c248' [crates.aws-sdk-neptunegraph] category = 'AwsSdk' -version = '1.7.0' -source_hash = '635c7efab5656bd938e01b3c95ab48b854e50cd131b2c673566223a19bdbdff1' -model_hash = 'c1b3cd2e6fd7b8b37a4870b1f622695adb6707d005de70185e75e360720deed4' +version = '1.8.0' +source_hash = '0a22af68aed487c58f61e919787ea5b45c69b84a2f2c4eeb1b0099f2769be625' +model_hash = '1d44aeff3df749292de282a21589c29953209a4b67804a363a600b2e3a258c2f' [crates.aws-sdk-networkfirewall] category = 'AwsSdk' @@ -1834,9 +1834,9 @@ model_hash = '574aa90a97bbbe60702691ca6450ebf92d407f70da7eeb36d4c2c1a79b1a331e' [crates.aws-sdk-route53domains] category = 'AwsSdk' -version = '1.13.0' -source_hash = '85296c05a58a64b13f58c3aa2c7c3984e7e296e045e8f8061ead098b0c254c60' -model_hash = 'ce1458e71a879ffae3f59253bdf6e49cdc1160b72928e666400555e388792a5e' +version = '1.14.0' +source_hash = 'bac51101e55c1a3708c228d172701aec2ce6696f5807293ca4140ce5c125f8af' +model_hash = '3c5fcda69ee82c2a93d68e023a451df9b08472221cde4b4fca74869940aa24f6' [crates.aws-sdk-route53recoverycluster] category = 'AwsSdk' @@ -2413,15 +2413,8 @@ source_hash = '4fd2d545d2a156185c8c71b6a40ccc7cc9981c1b75fd73cc3c7bbb01f0dbbcb5' category = 'AwsRuntime' version = '0.0.0' source_hash = '7bec66f5e4d17b0301fe04d9e7df0b5dc9696047ad3d2d3292ff65d22a3a515d' - -[release] -tag = 'release-2024-02-09.2' - [release.crates] -aws-sdk-amp = '1.13.1' -aws-sdk-batch = '1.14.0' -aws-sdk-braket = '1.15.0' -aws-sdk-costoptimizationhub = '1.12.0' -aws-sdk-ecs = '1.14.1' -aws-sdk-iot = '1.15.0' -aws-sdk-pricing = '1.14.0' +aws-sdk-appsync = '1.16.0' +aws-sdk-cloudwatch = '1.15.0' +aws-sdk-neptunegraph = '1.8.0' +aws-sdk-route53domains = '1.14.0'