aws-sdk-appsync 1.45.0 → 1.49.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.
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/defaults_mode.rb'
30
31
  require 'aws-sdk-core/plugins/signature_v4.rb'
31
32
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
32
33
 
@@ -73,6 +74,7 @@ module Aws::AppSync
73
74
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
74
75
  add_plugin(Aws::Plugins::TransferEncoding)
75
76
  add_plugin(Aws::Plugins::HttpChecksum)
77
+ add_plugin(Aws::Plugins::DefaultsMode)
76
78
  add_plugin(Aws::Plugins::SignatureV4)
77
79
  add_plugin(Aws::Plugins::Protocols::RestJson)
78
80
 
@@ -119,7 +121,9 @@ module Aws::AppSync
119
121
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
122
  # are very aggressive. Construct and pass an instance of
121
123
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
- # enable retries and extended timeouts.
124
+ # enable retries and extended timeouts. Instance profile credential
125
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
126
+ # to true.
123
127
  #
124
128
  # @option options [required, String] :region
125
129
  # The AWS region to connect to. The configured `:region` is
@@ -173,6 +177,10 @@ module Aws::AppSync
173
177
  # Used only in `standard` and adaptive retry modes. Specifies whether to apply
174
178
  # a clock skew correction and retry requests with skewed client clocks.
175
179
  #
180
+ # @option options [String] :defaults_mode ("legacy")
181
+ # See {Aws::DefaultsModeConfiguration} for a list of the
182
+ # accepted modes and the configuration defaults that are included.
183
+ #
176
184
  # @option options [Boolean] :disable_host_prefix_injection (false)
177
185
  # Set to true to disable SDK automatically adding host prefix
178
186
  # to default service endpoint when available.
@@ -275,6 +283,15 @@ module Aws::AppSync
275
283
  # ** Please note ** When response stubbing is enabled, no HTTP
276
284
  # requests are made, and retries are disabled.
277
285
  #
286
+ # @option options [Boolean] :use_dualstack_endpoint
287
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
288
+ # will be used if available.
289
+ #
290
+ # @option options [Boolean] :use_fips_endpoint
291
+ # When set to `true`, fips compatible endpoints will be used if available.
292
+ # When a `fips` region is used, the region is normalized and this config
293
+ # is set to `true`.
294
+ #
278
295
  # @option options [Boolean] :validate_params (true)
279
296
  # When `true`, request parameters are validated before
280
297
  # sending the request.
@@ -286,7 +303,7 @@ module Aws::AppSync
286
303
  # seconds to wait when opening a HTTP session before raising a
287
304
  # `Timeout::Error`.
288
305
  #
289
- # @option options [Integer] :http_read_timeout (60) The default
306
+ # @option options [Float] :http_read_timeout (60) The default
290
307
  # number of seconds to wait for response data. This value can
291
308
  # safely be set per-request on the session.
292
309
  #
@@ -302,6 +319,9 @@ module Aws::AppSync
302
319
  # disables this behaviour. This value can safely be set per
303
320
  # request on the session.
304
321
  #
322
+ # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
323
+ # in seconds.
324
+ #
305
325
  # @option options [Boolean] :http_wire_trace (false) When `true`,
306
326
  # HTTP debug output will be sent to the `:logger`.
307
327
  #
@@ -327,22 +347,57 @@ module Aws::AppSync
327
347
 
328
348
  # @!group API Operations
329
349
 
350
+ # Maps an endpoint to your custom domain.
351
+ #
352
+ # @option params [required, String] :domain_name
353
+ # The domain name.
354
+ #
355
+ # @option params [required, String] :api_id
356
+ # The API ID.
357
+ #
358
+ # @return [Types::AssociateApiResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
359
+ #
360
+ # * {Types::AssociateApiResponse#api_association #api_association} => Types::ApiAssociation
361
+ #
362
+ # @example Request syntax with placeholder values
363
+ #
364
+ # resp = client.associate_api({
365
+ # domain_name: "DomainName", # required
366
+ # api_id: "String", # required
367
+ # })
368
+ #
369
+ # @example Response structure
370
+ #
371
+ # resp.api_association.domain_name #=> String
372
+ # resp.api_association.api_id #=> String
373
+ # resp.api_association.association_status #=> String, one of "PROCESSING", "FAILED", "SUCCESS"
374
+ # resp.api_association.deployment_detail #=> String
375
+ #
376
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateApi AWS API Documentation
377
+ #
378
+ # @overload associate_api(params = {})
379
+ # @param [Hash] params ({})
380
+ def associate_api(params = {}, options = {})
381
+ req = build_request(:associate_api, params)
382
+ req.send_request(options)
383
+ end
384
+
330
385
  # Creates a cache for the GraphQL API.
331
386
  #
332
387
  # @option params [required, String] :api_id
333
- # The GraphQL API Id.
388
+ # The GraphQL API ID.
334
389
  #
335
390
  # @option params [required, Integer] :ttl
336
391
  # TTL in seconds for cache entries.
337
392
  #
338
- # Valid values are between 1 and 3600 seconds.
393
+ # Valid values are 1–3,600 seconds.
339
394
  #
340
395
  # @option params [Boolean] :transit_encryption_enabled
341
- # Transit encryption flag when connecting to cache. This setting cannot
342
- # be updated after creation.
396
+ # Transit encryption flag when connecting to cache. You cannot update
397
+ # this setting after creation.
343
398
  #
344
399
  # @option params [Boolean] :at_rest_encryption_enabled
345
- # At rest encryption flag for cache. This setting cannot be updated
400
+ # At-rest encryption flag for cache. You cannot update this setting
346
401
  # after creation.
347
402
  #
348
403
  # @option params [required, String] :api_caching_behavior
@@ -426,8 +481,8 @@ module Aws::AppSync
426
481
  req.send_request(options)
427
482
  end
428
483
 
429
- # Creates a unique key that you can distribute to clients who are
430
- # executing your API.
484
+ # Creates a unique key that you can distribute to clients who invoke
485
+ # your API.
431
486
  #
432
487
  # @option params [required, String] :api_id
433
488
  # The ID for your GraphQL API.
@@ -436,10 +491,10 @@ module Aws::AppSync
436
491
  # A description of the purpose of the API key.
437
492
  #
438
493
  # @option params [Integer] :expires
439
- # The time from creation time after which the API key expires. The date
440
- # is represented as seconds since the epoch, rounded down to the nearest
441
- # hour. The default value for this parameter is 7 days from creation
442
- # time. For more information, see .
494
+ # From the creation time, the time after which the API key expires. The
495
+ # date is represented as seconds since the epoch, rounded down to the
496
+ # nearest hour. The default value for this parameter is 7 days from
497
+ # creation time. For more information, see .
443
498
  #
444
499
  # @return [Types::CreateApiKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
445
500
  #
@@ -484,14 +539,15 @@ module Aws::AppSync
484
539
  # The type of the `DataSource`.
485
540
  #
486
541
  # @option params [String] :service_role_arn
487
- # The Identity and Access Management service role ARN for the data
488
- # source. The system assumes this role when accessing the data source.
542
+ # The Identity and Access Management (IAM) service role Amazon Resource
543
+ # Name (ARN) for the data source. The system assumes this role when
544
+ # accessing the data source.
489
545
  #
490
546
  # @option params [Types::DynamodbDataSourceConfig] :dynamodb_config
491
547
  # Amazon DynamoDB settings.
492
548
  #
493
549
  # @option params [Types::LambdaDataSourceConfig] :lambda_config
494
- # Amazon Web Services Lambda settings.
550
+ # Lambda settings.
495
551
  #
496
552
  # @option params [Types::ElasticsearchDataSourceConfig] :elasticsearch_config
497
553
  # Amazon OpenSearch Service settings.
@@ -605,9 +661,51 @@ module Aws::AppSync
605
661
  req.send_request(options)
606
662
  end
607
663
 
664
+ # Creates a custom `DomainName` object.
665
+ #
666
+ # @option params [required, String] :domain_name
667
+ # The domain name.
668
+ #
669
+ # @option params [required, String] :certificate_arn
670
+ # The Amazon Resource Name (ARN) of the certificate. This can be an
671
+ # Certificate Manager (ACM) certificate or an Identity and Access
672
+ # Management (IAM) server certificate.
673
+ #
674
+ # @option params [String] :description
675
+ # A description of the `DomainName`.
676
+ #
677
+ # @return [Types::CreateDomainNameResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
678
+ #
679
+ # * {Types::CreateDomainNameResponse#domain_name_config #domain_name_config} => Types::DomainNameConfig
680
+ #
681
+ # @example Request syntax with placeholder values
682
+ #
683
+ # resp = client.create_domain_name({
684
+ # domain_name: "DomainName", # required
685
+ # certificate_arn: "CertificateArn", # required
686
+ # description: "Description",
687
+ # })
688
+ #
689
+ # @example Response structure
690
+ #
691
+ # resp.domain_name_config.domain_name #=> String
692
+ # resp.domain_name_config.description #=> String
693
+ # resp.domain_name_config.certificate_arn #=> String
694
+ # resp.domain_name_config.appsync_domain_name #=> String
695
+ # resp.domain_name_config.hosted_zone_id #=> String
696
+ #
697
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDomainName AWS API Documentation
698
+ #
699
+ # @overload create_domain_name(params = {})
700
+ # @param [Hash] params ({})
701
+ def create_domain_name(params = {}, options = {})
702
+ req = build_request(:create_domain_name, params)
703
+ req.send_request(options)
704
+ end
705
+
608
706
  # Creates a `Function` object.
609
707
  #
610
- # A function is a reusable entity. Multiple functions can be used to
708
+ # A function is a reusable entity. You can use multiple functions to
611
709
  # compose the resolver logic.
612
710
  #
613
711
  # @option params [required, String] :api_id
@@ -630,14 +728,14 @@ module Aws::AppSync
630
728
  # The `Function` response mapping template.
631
729
  #
632
730
  # @option params [required, String] :function_version
633
- # The `version` of the request mapping template. Currently the supported
634
- # value is 2018-05-29.
731
+ # The `version` of the request mapping template. Currently, the
732
+ # supported value is 2018-05-29.
635
733
  #
636
734
  # @option params [Types::SyncConfig] :sync_config
637
735
  # Describes a Sync configuration for a resolver.
638
736
  #
639
- # Contains information on which Conflict Detection as well as Resolution
640
- # strategy should be performed when the resolver is invoked.
737
+ # Specifies which Conflict Detection strategy and Resolution strategy to
738
+ # use when the resolver is invoked.
641
739
  #
642
740
  # @return [Types::CreateFunctionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
643
741
  #
@@ -694,14 +792,14 @@ module Aws::AppSync
694
792
  # The Amazon CloudWatch Logs configuration.
695
793
  #
696
794
  # @option params [required, String] :authentication_type
697
- # The authentication type: API key, Identity and Access Management,
698
- # OIDC, Amazon Cognito user pools, or Amazon Web Services Lambda.
795
+ # The authentication type: API key, Identity and Access Management
796
+ # (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.
699
797
  #
700
798
  # @option params [Types::UserPoolConfig] :user_pool_config
701
799
  # The Amazon Cognito user pool configuration.
702
800
  #
703
801
  # @option params [Types::OpenIDConnectConfig] :open_id_connect_config
704
- # The OpenID Connect configuration.
802
+ # The OIDC configuration.
705
803
  #
706
804
  # @option params [Hash<String,String>] :tags
707
805
  # A `TagMap` object.
@@ -711,11 +809,10 @@ module Aws::AppSync
711
809
  # API.
712
810
  #
713
811
  # @option params [Boolean] :xray_enabled
714
- # A flag indicating whether to enable X-Ray tracing for the
715
- # `GraphqlApi`.
812
+ # A flag indicating whether to use X-Ray tracing for the `GraphqlApi`.
716
813
  #
717
814
  # @option params [Types::LambdaAuthorizerConfig] :lambda_authorizer_config
718
- # Configuration for Amazon Web Services Lambda function authorization.
815
+ # Configuration for Lambda function authorization.
719
816
  #
720
817
  # @return [Types::CreateGraphqlApiResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
721
818
  #
@@ -826,7 +923,8 @@ module Aws::AppSync
826
923
  # Creates a `Resolver` object.
827
924
  #
828
925
  # A resolver converts incoming requests into a format that a data source
829
- # can understand and converts the data source's responses into GraphQL.
926
+ # can understand, and converts the data source's responses into
927
+ # GraphQL.
830
928
  #
831
929
  # @option params [required, String] :api_id
832
930
  # The ID for the GraphQL API for which the resolver is being created.
@@ -841,36 +939,36 @@ module Aws::AppSync
841
939
  # The name of the data source for which the resolver is being created.
842
940
  #
843
941
  # @option params [String] :request_mapping_template
844
- # The mapping template to be used for requests.
942
+ # The mapping template to use for requests.
845
943
  #
846
944
  # A resolver uses a request mapping template to convert a GraphQL
847
945
  # expression into a format that a data source can understand. Mapping
848
946
  # templates are written in Apache Velocity Template Language (VTL).
849
947
  #
850
- # VTL request mapping templates are optional when using a Lambda data
948
+ # VTL request mapping templates are optional when using an Lambda data
851
949
  # source. For all other data sources, VTL request and response mapping
852
950
  # templates are required.
853
951
  #
854
952
  # @option params [String] :response_mapping_template
855
- # The mapping template to be used for responses from the data source.
953
+ # The mapping template to use for responses from the data source.
856
954
  #
857
955
  # @option params [String] :kind
858
956
  # The resolver type.
859
957
  #
860
958
  # * **UNIT**\: A UNIT resolver type. A UNIT resolver is the default
861
- # resolver type. A UNIT resolver enables you to execute a GraphQL
862
- # query against a single data source.
959
+ # resolver type. You can use a UNIT resolver to run a GraphQL query
960
+ # against a single data source.
863
961
  #
864
- # * **PIPELINE**\: A PIPELINE resolver type. A PIPELINE resolver enables
865
- # you to execute a series of `Function` in a serial manner. You can
866
- # use a pipeline resolver to execute a GraphQL query against multiple
867
- # data sources.
962
+ # * **PIPELINE**\: A PIPELINE resolver type. You can use a PIPELINE
963
+ # resolver to invoke a series of `Function` objects in a serial
964
+ # manner. You can use a pipeline resolver to run a GraphQL query
965
+ # against multiple data sources.
868
966
  #
869
967
  # @option params [Types::PipelineConfig] :pipeline_config
870
968
  # The `PipelineConfig`.
871
969
  #
872
970
  # @option params [Types::SyncConfig] :sync_config
873
- # The `SyncConfig` for a resolver attached to a versioned datasource.
971
+ # The `SyncConfig` for a resolver attached to a versioned data source.
874
972
  #
875
973
  # @option params [Types::CachingConfig] :caching_config
876
974
  # The caching configuration for the resolver.
@@ -1053,6 +1151,28 @@ module Aws::AppSync
1053
1151
  req.send_request(options)
1054
1152
  end
1055
1153
 
1154
+ # Deletes a custom `DomainName` object.
1155
+ #
1156
+ # @option params [required, String] :domain_name
1157
+ # The domain name.
1158
+ #
1159
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1160
+ #
1161
+ # @example Request syntax with placeholder values
1162
+ #
1163
+ # resp = client.delete_domain_name({
1164
+ # domain_name: "DomainName", # required
1165
+ # })
1166
+ #
1167
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDomainName AWS API Documentation
1168
+ #
1169
+ # @overload delete_domain_name(params = {})
1170
+ # @param [Hash] params ({})
1171
+ def delete_domain_name(params = {}, options = {})
1172
+ req = build_request(:delete_domain_name, params)
1173
+ req.send_request(options)
1174
+ end
1175
+
1056
1176
  # Deletes a `Function`.
1057
1177
  #
1058
1178
  # @option params [required, String] :api_id
@@ -1157,6 +1277,28 @@ module Aws::AppSync
1157
1277
  req.send_request(options)
1158
1278
  end
1159
1279
 
1280
+ # Removes an `ApiAssociation` object from a custom domain.
1281
+ #
1282
+ # @option params [required, String] :domain_name
1283
+ # The domain name.
1284
+ #
1285
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1286
+ #
1287
+ # @example Request syntax with placeholder values
1288
+ #
1289
+ # resp = client.disassociate_api({
1290
+ # domain_name: "DomainName", # required
1291
+ # })
1292
+ #
1293
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateApi AWS API Documentation
1294
+ #
1295
+ # @overload disassociate_api(params = {})
1296
+ # @param [Hash] params ({})
1297
+ def disassociate_api(params = {}, options = {})
1298
+ req = build_request(:disassociate_api, params)
1299
+ req.send_request(options)
1300
+ end
1301
+
1160
1302
  # Flushes an `ApiCache` object.
1161
1303
  #
1162
1304
  # @option params [required, String] :api_id
@@ -1179,6 +1321,37 @@ module Aws::AppSync
1179
1321
  req.send_request(options)
1180
1322
  end
1181
1323
 
1324
+ # Retrieves an `ApiAssociation` object.
1325
+ #
1326
+ # @option params [required, String] :domain_name
1327
+ # The domain name.
1328
+ #
1329
+ # @return [Types::GetApiAssociationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1330
+ #
1331
+ # * {Types::GetApiAssociationResponse#api_association #api_association} => Types::ApiAssociation
1332
+ #
1333
+ # @example Request syntax with placeholder values
1334
+ #
1335
+ # resp = client.get_api_association({
1336
+ # domain_name: "DomainName", # required
1337
+ # })
1338
+ #
1339
+ # @example Response structure
1340
+ #
1341
+ # resp.api_association.domain_name #=> String
1342
+ # resp.api_association.api_id #=> String
1343
+ # resp.api_association.association_status #=> String, one of "PROCESSING", "FAILED", "SUCCESS"
1344
+ # resp.api_association.deployment_detail #=> String
1345
+ #
1346
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiAssociation AWS API Documentation
1347
+ #
1348
+ # @overload get_api_association(params = {})
1349
+ # @param [Hash] params ({})
1350
+ def get_api_association(params = {}, options = {})
1351
+ req = build_request(:get_api_association, params)
1352
+ req.send_request(options)
1353
+ end
1354
+
1182
1355
  # Retrieves an `ApiCache` object.
1183
1356
  #
1184
1357
  # @option params [required, String] :api_id
@@ -1270,6 +1443,38 @@ module Aws::AppSync
1270
1443
  req.send_request(options)
1271
1444
  end
1272
1445
 
1446
+ # Retrieves a custom `DomainName` object.
1447
+ #
1448
+ # @option params [required, String] :domain_name
1449
+ # The domain name.
1450
+ #
1451
+ # @return [Types::GetDomainNameResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1452
+ #
1453
+ # * {Types::GetDomainNameResponse#domain_name_config #domain_name_config} => Types::DomainNameConfig
1454
+ #
1455
+ # @example Request syntax with placeholder values
1456
+ #
1457
+ # resp = client.get_domain_name({
1458
+ # domain_name: "DomainName", # required
1459
+ # })
1460
+ #
1461
+ # @example Response structure
1462
+ #
1463
+ # resp.domain_name_config.domain_name #=> String
1464
+ # resp.domain_name_config.description #=> String
1465
+ # resp.domain_name_config.certificate_arn #=> String
1466
+ # resp.domain_name_config.appsync_domain_name #=> String
1467
+ # resp.domain_name_config.hosted_zone_id #=> String
1468
+ #
1469
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDomainName AWS API Documentation
1470
+ #
1471
+ # @overload get_domain_name(params = {})
1472
+ # @param [Hash] params ({})
1473
+ def get_domain_name(params = {}, options = {})
1474
+ req = build_request(:get_domain_name, params)
1475
+ req.send_request(options)
1476
+ end
1477
+
1273
1478
  # Get a `Function`.
1274
1479
  #
1275
1480
  # @option params [required, String] :api_id
@@ -1546,11 +1751,11 @@ module Aws::AppSync
1546
1751
  #
1547
1752
  # @option params [String] :next_token
1548
1753
  # An identifier that was returned from the previous call to this
1549
- # operation, which can be used to return the next set of items in the
1754
+ # operation, which you can use to return the next set of items in the
1550
1755
  # list.
1551
1756
  #
1552
1757
  # @option params [Integer] :max_results
1553
- # The maximum number of results you want the request to return.
1758
+ # The maximum number of results that you want the request to return.
1554
1759
  #
1555
1760
  # @return [Types::ListApiKeysResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1556
1761
  #
@@ -1590,11 +1795,11 @@ module Aws::AppSync
1590
1795
  #
1591
1796
  # @option params [String] :next_token
1592
1797
  # An identifier that was returned from the previous call to this
1593
- # operation, which can be used to return the next set of items in the
1798
+ # operation, which you can use to return the next set of items in the
1594
1799
  # list.
1595
1800
  #
1596
1801
  # @option params [Integer] :max_results
1597
- # The maximum number of results you want the request to return.
1802
+ # The maximum number of results that you want the request to return.
1598
1803
  #
1599
1804
  # @return [Types::ListDataSourcesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1600
1805
  #
@@ -1650,6 +1855,45 @@ module Aws::AppSync
1650
1855
  req.send_request(options)
1651
1856
  end
1652
1857
 
1858
+ # Lists multiple custom domain names.
1859
+ #
1860
+ # @option params [String] :next_token
1861
+ # The API token.
1862
+ #
1863
+ # @option params [Integer] :max_results
1864
+ # The maximum number of results that you want the request to return.
1865
+ #
1866
+ # @return [Types::ListDomainNamesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1867
+ #
1868
+ # * {Types::ListDomainNamesResponse#domain_name_configs #domain_name_configs} => Array&lt;Types::DomainNameConfig&gt;
1869
+ # * {Types::ListDomainNamesResponse#next_token #next_token} => String
1870
+ #
1871
+ # @example Request syntax with placeholder values
1872
+ #
1873
+ # resp = client.list_domain_names({
1874
+ # next_token: "PaginationToken",
1875
+ # max_results: 1,
1876
+ # })
1877
+ #
1878
+ # @example Response structure
1879
+ #
1880
+ # resp.domain_name_configs #=> Array
1881
+ # resp.domain_name_configs[0].domain_name #=> String
1882
+ # resp.domain_name_configs[0].description #=> String
1883
+ # resp.domain_name_configs[0].certificate_arn #=> String
1884
+ # resp.domain_name_configs[0].appsync_domain_name #=> String
1885
+ # resp.domain_name_configs[0].hosted_zone_id #=> String
1886
+ # resp.next_token #=> String
1887
+ #
1888
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDomainNames AWS API Documentation
1889
+ #
1890
+ # @overload list_domain_names(params = {})
1891
+ # @param [Hash] params ({})
1892
+ def list_domain_names(params = {}, options = {})
1893
+ req = build_request(:list_domain_names, params)
1894
+ req.send_request(options)
1895
+ end
1896
+
1653
1897
  # List multiple functions.
1654
1898
  #
1655
1899
  # @option params [required, String] :api_id
@@ -1657,11 +1901,11 @@ module Aws::AppSync
1657
1901
  #
1658
1902
  # @option params [String] :next_token
1659
1903
  # An identifier that was returned from the previous call to this
1660
- # operation, which can be used to return the next set of items in the
1904
+ # operation, which you can use to return the next set of items in the
1661
1905
  # list.
1662
1906
  #
1663
1907
  # @option params [Integer] :max_results
1664
- # The maximum number of results you want the request to return.
1908
+ # The maximum number of results that you want the request to return.
1665
1909
  #
1666
1910
  # @return [Types::ListFunctionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1667
1911
  #
@@ -1705,11 +1949,11 @@ module Aws::AppSync
1705
1949
  #
1706
1950
  # @option params [String] :next_token
1707
1951
  # An identifier that was returned from the previous call to this
1708
- # operation, which can be used to return the next set of items in the
1952
+ # operation, which you can use to return the next set of items in the
1709
1953
  # list.
1710
1954
  #
1711
1955
  # @option params [Integer] :max_results
1712
- # The maximum number of results you want the request to return.
1956
+ # The maximum number of results that you want the request to return.
1713
1957
  #
1714
1958
  # @return [Types::ListGraphqlApisResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1715
1959
  #
@@ -1783,11 +2027,11 @@ module Aws::AppSync
1783
2027
  #
1784
2028
  # @option params [String] :next_token
1785
2029
  # An identifier that was returned from the previous call to this
1786
- # operation, which can be used to return the next set of items in the
2030
+ # operation, which you can use to return the next set of items in the
1787
2031
  # list.
1788
2032
  #
1789
2033
  # @option params [Integer] :max_results
1790
- # The maximum number of results you want the request to return.
2034
+ # The maximum number of results that you want the request to return.
1791
2035
  #
1792
2036
  # @return [Types::ListResolversResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1793
2037
  #
@@ -1838,7 +2082,7 @@ module Aws::AppSync
1838
2082
  # The API ID.
1839
2083
  #
1840
2084
  # @option params [required, String] :function_id
1841
- # The Function ID.
2085
+ # The function ID.
1842
2086
  #
1843
2087
  # @option params [String] :next_token
1844
2088
  # An identifier that was returned from the previous call to this
@@ -1846,7 +2090,7 @@ module Aws::AppSync
1846
2090
  # list.
1847
2091
  #
1848
2092
  # @option params [Integer] :max_results
1849
- # The maximum number of results you want the request to return.
2093
+ # The maximum number of results that you want the request to return.
1850
2094
  #
1851
2095
  # @return [Types::ListResolversByFunctionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1852
2096
  #
@@ -1894,7 +2138,7 @@ module Aws::AppSync
1894
2138
  # Lists the tags for a resource.
1895
2139
  #
1896
2140
  # @option params [required, String] :resource_arn
1897
- # The `GraphqlApi` ARN.
2141
+ # The `GraphqlApi` Amazon Resource Name (ARN).
1898
2142
  #
1899
2143
  # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1900
2144
  #
@@ -1930,11 +2174,11 @@ module Aws::AppSync
1930
2174
  #
1931
2175
  # @option params [String] :next_token
1932
2176
  # An identifier that was returned from the previous call to this
1933
- # operation, which can be used to return the next set of items in the
2177
+ # operation, which you can use to return the next set of items in the
1934
2178
  # list.
1935
2179
  #
1936
2180
  # @option params [Integer] :max_results
1937
- # The maximum number of results you want the request to return.
2181
+ # The maximum number of results that you want the request to return.
1938
2182
  #
1939
2183
  # @return [Types::ListTypesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1940
2184
  #
@@ -2007,7 +2251,7 @@ module Aws::AppSync
2007
2251
  # Tags a resource with user-supplied tags.
2008
2252
  #
2009
2253
  # @option params [required, String] :resource_arn
2010
- # The `GraphqlApi` ARN.
2254
+ # The `GraphqlApi` Amazon Resource Name (ARN).
2011
2255
  #
2012
2256
  # @option params [required, Hash<String,String>] :tags
2013
2257
  # A `TagMap` object.
@@ -2035,7 +2279,7 @@ module Aws::AppSync
2035
2279
  # Untags a resource.
2036
2280
  #
2037
2281
  # @option params [required, String] :resource_arn
2038
- # The `GraphqlApi` ARN.
2282
+ # The `GraphqlApi` Amazon Resource Name (ARN).
2039
2283
  #
2040
2284
  # @option params [required, Array<String>] :tag_keys
2041
2285
  # A list of `TagKey` objects.
@@ -2061,12 +2305,12 @@ module Aws::AppSync
2061
2305
  # Updates the cache for the GraphQL API.
2062
2306
  #
2063
2307
  # @option params [required, String] :api_id
2064
- # The GraphQL API Id.
2308
+ # The GraphQL API ID.
2065
2309
  #
2066
2310
  # @option params [required, Integer] :ttl
2067
2311
  # TTL in seconds for cache entries.
2068
2312
  #
2069
- # Valid values are between 1 and 3600 seconds.
2313
+ # Valid values are 1–3,600 seconds.
2070
2314
  #
2071
2315
  # @option params [required, String] :api_caching_behavior
2072
2316
  # Caching behavior.
@@ -2147,7 +2391,8 @@ module Aws::AppSync
2147
2391
  req.send_request(options)
2148
2392
  end
2149
2393
 
2150
- # Updates an API key. The key can be updated while it is not deleted.
2394
+ # Updates an API key. You can update the key as long as it's not
2395
+ # deleted.
2151
2396
  #
2152
2397
  # @option params [required, String] :api_id
2153
2398
  # The ID for the GraphQL API.
@@ -2159,8 +2404,9 @@ module Aws::AppSync
2159
2404
  # A description of the purpose of the API key.
2160
2405
  #
2161
2406
  # @option params [Integer] :expires
2162
- # The time from update time after which the API key expires. The date is
2163
- # represented as seconds since the epoch. For more information, see .
2407
+ # From the update time, the time after which the API key expires. The
2408
+ # date is represented as seconds since the epoch. For more information,
2409
+ # see .
2164
2410
  #
2165
2411
  # @return [Types::UpdateApiKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2166
2412
  #
@@ -2206,13 +2452,13 @@ module Aws::AppSync
2206
2452
  # The new data source type.
2207
2453
  #
2208
2454
  # @option params [String] :service_role_arn
2209
- # The new service role ARN for the data source.
2455
+ # The new service role Amazon Resource Name (ARN) for the data source.
2210
2456
  #
2211
2457
  # @option params [Types::DynamodbDataSourceConfig] :dynamodb_config
2212
2458
  # The new Amazon DynamoDB configuration.
2213
2459
  #
2214
2460
  # @option params [Types::LambdaDataSourceConfig] :lambda_config
2215
- # The new Amazon Web Services Lambda configuration.
2461
+ # The new Lambda configuration.
2216
2462
  #
2217
2463
  # @option params [Types::ElasticsearchDataSourceConfig] :elasticsearch_config
2218
2464
  # The new OpenSearch configuration.
@@ -2326,6 +2572,42 @@ module Aws::AppSync
2326
2572
  req.send_request(options)
2327
2573
  end
2328
2574
 
2575
+ # Updates a custom `DomainName` object.
2576
+ #
2577
+ # @option params [required, String] :domain_name
2578
+ # The domain name.
2579
+ #
2580
+ # @option params [String] :description
2581
+ # A description of the `DomainName`.
2582
+ #
2583
+ # @return [Types::UpdateDomainNameResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2584
+ #
2585
+ # * {Types::UpdateDomainNameResponse#domain_name_config #domain_name_config} => Types::DomainNameConfig
2586
+ #
2587
+ # @example Request syntax with placeholder values
2588
+ #
2589
+ # resp = client.update_domain_name({
2590
+ # domain_name: "DomainName", # required
2591
+ # description: "Description",
2592
+ # })
2593
+ #
2594
+ # @example Response structure
2595
+ #
2596
+ # resp.domain_name_config.domain_name #=> String
2597
+ # resp.domain_name_config.description #=> String
2598
+ # resp.domain_name_config.certificate_arn #=> String
2599
+ # resp.domain_name_config.appsync_domain_name #=> String
2600
+ # resp.domain_name_config.hosted_zone_id #=> String
2601
+ #
2602
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDomainName AWS API Documentation
2603
+ #
2604
+ # @overload update_domain_name(params = {})
2605
+ # @param [Hash] params ({})
2606
+ def update_domain_name(params = {}, options = {})
2607
+ req = build_request(:update_domain_name, params)
2608
+ req.send_request(options)
2609
+ end
2610
+
2329
2611
  # Updates a `Function` object.
2330
2612
  #
2331
2613
  # @option params [required, String] :api_id
@@ -2351,14 +2633,14 @@ module Aws::AppSync
2351
2633
  # The `Function` request mapping template.
2352
2634
  #
2353
2635
  # @option params [required, String] :function_version
2354
- # The `version` of the request mapping template. Currently the supported
2355
- # value is 2018-05-29.
2636
+ # The `version` of the request mapping template. Currently, the
2637
+ # supported value is 2018-05-29.
2356
2638
  #
2357
2639
  # @option params [Types::SyncConfig] :sync_config
2358
2640
  # Describes a Sync configuration for a resolver.
2359
2641
  #
2360
- # Contains information on which Conflict Detection as well as Resolution
2361
- # strategy should be performed when the resolver is invoked.
2642
+ # Specifies which Conflict Detection strategy and Resolution strategy to
2643
+ # use when the resolver is invoked.
2362
2644
  #
2363
2645
  # @return [Types::UpdateFunctionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2364
2646
  #
@@ -2422,7 +2704,7 @@ module Aws::AppSync
2422
2704
  # The new authentication type for the `GraphqlApi` object.
2423
2705
  #
2424
2706
  # @option params [Types::UserPoolConfig] :user_pool_config
2425
- # The new Amazon Cognito user pool configuration for the `GraphqlApi`
2707
+ # The new Amazon Cognito user pool configuration for the `~GraphqlApi`
2426
2708
  # object.
2427
2709
  #
2428
2710
  # @option params [Types::OpenIDConnectConfig] :open_id_connect_config
@@ -2433,11 +2715,10 @@ module Aws::AppSync
2433
2715
  # API.
2434
2716
  #
2435
2717
  # @option params [Boolean] :xray_enabled
2436
- # A flag indicating whether to enable X-Ray tracing for the
2437
- # `GraphqlApi`.
2718
+ # A flag indicating whether to use X-Ray tracing for the `GraphqlApi`.
2438
2719
  #
2439
2720
  # @option params [Types::LambdaAuthorizerConfig] :lambda_authorizer_config
2440
- # Configuration for Amazon Web Services Lambda function authorization.
2721
+ # Configuration for Lambda function authorization.
2441
2722
  #
2442
2723
  # @return [Types::UpdateGraphqlApiResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2443
2724
  #
@@ -2564,7 +2845,7 @@ module Aws::AppSync
2564
2845
  # expression into a format that a data source can understand. Mapping
2565
2846
  # templates are written in Apache Velocity Template Language (VTL).
2566
2847
  #
2567
- # VTL request mapping templates are optional when using a Lambda data
2848
+ # VTL request mapping templates are optional when using an Lambda data
2568
2849
  # source. For all other data sources, VTL request and response mapping
2569
2850
  # templates are required.
2570
2851
  #
@@ -2575,19 +2856,19 @@ module Aws::AppSync
2575
2856
  # The resolver type.
2576
2857
  #
2577
2858
  # * **UNIT**\: A UNIT resolver type. A UNIT resolver is the default
2578
- # resolver type. A UNIT resolver enables you to execute a GraphQL
2579
- # query against a single data source.
2859
+ # resolver type. You can use a UNIT resolver to run a GraphQL query
2860
+ # against a single data source.
2580
2861
  #
2581
- # * **PIPELINE**\: A PIPELINE resolver type. A PIPELINE resolver enables
2582
- # you to execute a series of `Function` in a serial manner. You can
2583
- # use a pipeline resolver to execute a GraphQL query against multiple
2584
- # data sources.
2862
+ # * **PIPELINE**\: A PIPELINE resolver type. You can use a PIPELINE
2863
+ # resolver to invoke a series of `Function` objects in a serial
2864
+ # manner. You can use a pipeline resolver to run a GraphQL query
2865
+ # against multiple data sources.
2585
2866
  #
2586
2867
  # @option params [Types::PipelineConfig] :pipeline_config
2587
2868
  # The `PipelineConfig`.
2588
2869
  #
2589
2870
  # @option params [Types::SyncConfig] :sync_config
2590
- # The `SyncConfig` for a resolver attached to a versioned datasource.
2871
+ # The `SyncConfig` for a resolver attached to a versioned data source.
2591
2872
  #
2592
2873
  # @option params [Types::CachingConfig] :caching_config
2593
2874
  # The caching configuration for the resolver.
@@ -2706,7 +2987,7 @@ module Aws::AppSync
2706
2987
  params: params,
2707
2988
  config: config)
2708
2989
  context[:gem_name] = 'aws-sdk-appsync'
2709
- context[:gem_version] = '1.45.0'
2990
+ context[:gem_version] = '1.49.0'
2710
2991
  Seahorse::Client::Request.new(handlers, context)
2711
2992
  end
2712
2993