aws-sdk-appsync 1.82.0 → 1.89.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,11 +15,11 @@ module Aws::AppSync
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::AppSync::EndpointProvider',
17
17
  rbs_type: 'untyped',
18
- docstring: 'The endpoint provider used to resolve endpoints. Any '\
19
- 'object that responds to `#resolve_endpoint(parameters)` '\
20
- 'where `parameters` is a Struct similar to '\
21
- '`Aws::AppSync::EndpointParameters`'
22
- ) do |cfg|
18
+ docstring: <<~DOCS) do |_cfg|
19
+ The endpoint provider used to resolve endpoints. Any object that responds to
20
+ `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
21
+ `Aws::AppSync::EndpointParameters`.
22
+ DOCS
23
23
  Aws::AppSync::EndpointProvider.new
24
24
  end
25
25
 
@@ -40,11 +40,23 @@ module Aws::AppSync
40
40
  context[:auth_scheme] =
41
41
  Aws::Endpoints.resolve_auth_scheme(context, endpoint)
42
42
 
43
- @handler.call(context)
43
+ with_metrics(context) { @handler.call(context) }
44
44
  end
45
45
 
46
46
  private
47
47
 
48
+ def with_metrics(context, &block)
49
+ metrics = []
50
+ metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint
51
+ if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
52
+ metrics << 'SIGV4A_SIGNING'
53
+ end
54
+ if context.config.credentials&.credentials&.account_id
55
+ metrics << 'RESOLVED_ACCOUNT_ID'
56
+ end
57
+ Aws::Plugins::UserAgent.metric(*metrics, &block)
58
+ end
59
+
48
60
  def apply_endpoint_headers(context, headers)
49
61
  headers.each do |key, values|
50
62
  value = values
@@ -3575,12 +3575,13 @@ module Aws::AppSync
3575
3575
  # The Amazon CloudWatch Logs configuration.
3576
3576
  #
3577
3577
  # @!attribute [rw] field_log_level
3578
- # The field logging level. Values can be NONE, ERROR, or ALL.
3578
+ # The field logging level. Values can be NONE, ERROR, INFO, DEBUG, or
3579
+ # ALL.
3579
3580
  #
3580
3581
  # * **NONE**: No field-level logs are captured.
3581
3582
  #
3582
- # * **ERROR**: Logs the following information only for the fields that
3583
- # are in error:
3583
+ # * **ERROR**: Logs the following information **only** for the fields
3584
+ # that are in the error category:
3584
3585
  #
3585
3586
  # * The error section in the server response.
3586
3587
  #
@@ -3589,12 +3590,32 @@ module Aws::AppSync
3589
3590
  # * The generated request/response functions that got resolved for
3590
3591
  # error fields.
3591
3592
  #
3593
+ # * **INFO**: Logs the following information **only** for the fields
3594
+ # that are in the info and error categories:
3595
+ #
3596
+ # * Info-level messages.
3597
+ #
3598
+ # * The user messages sent through `$util.log.info` and
3599
+ # `console.log`.
3600
+ #
3601
+ # * Field-level tracing and mapping logs are not shown.
3602
+ #
3603
+ # * **DEBUG**: Logs the following information **only** for the fields
3604
+ # that are in the debug, info, and error categories:
3605
+ #
3606
+ # * Debug-level messages.
3607
+ #
3608
+ # * The user messages sent through `$util.log.info`,
3609
+ # `$util.log.debug`, `console.log`, and `console.debug`.
3610
+ #
3611
+ # * Field-level tracing and mapping logs are not shown.
3612
+ #
3592
3613
  # * **ALL**: The following information is logged for all fields in the
3593
3614
  # query:
3594
3615
  #
3595
3616
  # * Field-level tracing information.
3596
3617
  #
3597
- # * The generated request/response functions that got resolved for
3618
+ # * The generated request/response functions that were resolved for
3598
3619
  # each field.
3599
3620
  # @return [String]
3600
3621
  #
@@ -5063,3 +5084,4 @@ module Aws::AppSync
5063
5084
 
5064
5085
  end
5065
5086
  end
5087
+
@@ -11,16 +11,7 @@
11
11
  require 'aws-sdk-core'
12
12
  require 'aws-sigv4'
13
13
 
14
- require_relative 'aws-sdk-appsync/types'
15
- require_relative 'aws-sdk-appsync/client_api'
16
- require_relative 'aws-sdk-appsync/plugins/endpoints.rb'
17
- require_relative 'aws-sdk-appsync/client'
18
- require_relative 'aws-sdk-appsync/errors'
19
- require_relative 'aws-sdk-appsync/resource'
20
- require_relative 'aws-sdk-appsync/endpoint_parameters'
21
- require_relative 'aws-sdk-appsync/endpoint_provider'
22
- require_relative 'aws-sdk-appsync/endpoints'
23
- require_relative 'aws-sdk-appsync/customizations'
14
+ Aws::Plugins::GlobalConfiguration.add_identifier(:appsync)
24
15
 
25
16
  # This module provides support for AWS AppSync. This module is available in the
26
17
  # `aws-sdk-appsync` gem.
@@ -51,7 +42,20 @@ require_relative 'aws-sdk-appsync/customizations'
51
42
  #
52
43
  # @!group service
53
44
  module Aws::AppSync
45
+ autoload :Types, 'aws-sdk-appsync/types'
46
+ autoload :ClientApi, 'aws-sdk-appsync/client_api'
47
+ module Plugins
48
+ autoload :Endpoints, 'aws-sdk-appsync/plugins/endpoints.rb'
49
+ end
50
+ autoload :Client, 'aws-sdk-appsync/client'
51
+ autoload :Errors, 'aws-sdk-appsync/errors'
52
+ autoload :Resource, 'aws-sdk-appsync/resource'
53
+ autoload :EndpointParameters, 'aws-sdk-appsync/endpoint_parameters'
54
+ autoload :EndpointProvider, 'aws-sdk-appsync/endpoint_provider'
55
+ autoload :Endpoints, 'aws-sdk-appsync/endpoints'
54
56
 
55
- GEM_VERSION = '1.82.0'
57
+ GEM_VERSION = '1.89.0'
56
58
 
57
59
  end
60
+
61
+ require_relative 'aws-sdk-appsync/customizations'
data/sig/client.rbs CHANGED
@@ -15,6 +15,7 @@ module Aws
15
15
  ?credentials: untyped,
16
16
  ?region: String,
17
17
  ?access_key_id: String,
18
+ ?account_id: String,
18
19
  ?active_endpoint_cache: bool,
19
20
  ?adaptive_retry_wait_to_fill: bool,
20
21
  ?client_side_monitoring: bool,
@@ -50,6 +51,7 @@ module Aws
50
51
  ?session_token: String,
51
52
  ?sigv4a_signing_region_set: Array[String],
52
53
  ?stub_responses: untyped,
54
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
53
55
  ?token_provider: untyped,
54
56
  ?use_dualstack_endpoint: bool,
55
57
  ?use_fips_endpoint: bool,
@@ -251,7 +253,7 @@ module Aws
251
253
  def create_graphql_api: (
252
254
  name: ::String,
253
255
  ?log_config: {
254
- field_log_level: ("NONE" | "ERROR" | "ALL"),
256
+ field_log_level: ("NONE" | "ERROR" | "ALL" | "INFO" | "DEBUG"),
255
257
  cloud_watch_logs_role_arn: ::String,
256
258
  exclude_verbose_content: bool?
257
259
  },
@@ -1004,7 +1006,7 @@ module Aws
1004
1006
  api_id: ::String,
1005
1007
  name: ::String,
1006
1008
  ?log_config: {
1007
- field_log_level: ("NONE" | "ERROR" | "ALL"),
1009
+ field_log_level: ("NONE" | "ERROR" | "ALL" | "INFO" | "DEBUG"),
1008
1010
  cloud_watch_logs_role_arn: ::String,
1009
1011
  exclude_verbose_content: bool?
1010
1012
  },
data/sig/resource.rbs CHANGED
@@ -15,6 +15,7 @@ module Aws
15
15
  ?credentials: untyped,
16
16
  ?region: String,
17
17
  ?access_key_id: String,
18
+ ?account_id: String,
18
19
  ?active_endpoint_cache: bool,
19
20
  ?adaptive_retry_wait_to_fill: bool,
20
21
  ?client_side_monitoring: bool,
@@ -50,6 +51,7 @@ module Aws
50
51
  ?session_token: String,
51
52
  ?sigv4a_signing_region_set: Array[String],
52
53
  ?stub_responses: untyped,
54
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
53
55
  ?token_provider: untyped,
54
56
  ?use_dualstack_endpoint: bool,
55
57
  ?use_fips_endpoint: bool,
data/sig/types.rbs CHANGED
@@ -921,7 +921,7 @@ module Aws::AppSync
921
921
  end
922
922
 
923
923
  class LogConfig
924
- attr_accessor field_log_level: ("NONE" | "ERROR" | "ALL")
924
+ attr_accessor field_log_level: ("NONE" | "ERROR" | "ALL" | "INFO" | "DEBUG")
925
925
  attr_accessor cloud_watch_logs_role_arn: ::String
926
926
  attr_accessor exclude_verbose_content: bool
927
927
  SENSITIVE: []
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-appsync
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.82.0
4
+ version: 1.89.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-23 00:00:00.000000000 Z
11
+ date: 2024-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.201.0
22
+ version: 3.207.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.201.0
32
+ version: 3.207.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement