aws-sdk-appsync 1.44.0 → 1.48.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-appsync/client.rb +350 -78
- data/lib/aws-sdk-appsync/client_api.rb +187 -0
- data/lib/aws-sdk-appsync/types.rb +537 -195
- data/lib/aws-sdk-appsync.rb +2 -2
- metadata +4 -4
@@ -119,7 +119,9 @@ module Aws::AppSync
|
|
119
119
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
120
|
# are very aggressive. Construct and pass an instance of
|
121
121
|
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
-
# enable retries and extended timeouts.
|
122
|
+
# enable retries and extended timeouts. Instance profile credential
|
123
|
+
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
124
|
+
# to true.
|
123
125
|
#
|
124
126
|
# @option options [required, String] :region
|
125
127
|
# The AWS region to connect to. The configured `:region` is
|
@@ -275,6 +277,15 @@ module Aws::AppSync
|
|
275
277
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
276
278
|
# requests are made, and retries are disabled.
|
277
279
|
#
|
280
|
+
# @option options [Boolean] :use_dualstack_endpoint
|
281
|
+
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
282
|
+
# will be used if available.
|
283
|
+
#
|
284
|
+
# @option options [Boolean] :use_fips_endpoint
|
285
|
+
# When set to `true`, fips compatible endpoints will be used if available.
|
286
|
+
# When a `fips` region is used, the region is normalized and this config
|
287
|
+
# is set to `true`.
|
288
|
+
#
|
278
289
|
# @option options [Boolean] :validate_params (true)
|
279
290
|
# When `true`, request parameters are validated before
|
280
291
|
# sending the request.
|
@@ -327,22 +338,57 @@ module Aws::AppSync
|
|
327
338
|
|
328
339
|
# @!group API Operations
|
329
340
|
|
341
|
+
# Maps an endpoint to your custom domain.
|
342
|
+
#
|
343
|
+
# @option params [required, String] :domain_name
|
344
|
+
# The domain name.
|
345
|
+
#
|
346
|
+
# @option params [required, String] :api_id
|
347
|
+
# The API ID.
|
348
|
+
#
|
349
|
+
# @return [Types::AssociateApiResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
350
|
+
#
|
351
|
+
# * {Types::AssociateApiResponse#api_association #api_association} => Types::ApiAssociation
|
352
|
+
#
|
353
|
+
# @example Request syntax with placeholder values
|
354
|
+
#
|
355
|
+
# resp = client.associate_api({
|
356
|
+
# domain_name: "DomainName", # required
|
357
|
+
# api_id: "String", # required
|
358
|
+
# })
|
359
|
+
#
|
360
|
+
# @example Response structure
|
361
|
+
#
|
362
|
+
# resp.api_association.domain_name #=> String
|
363
|
+
# resp.api_association.api_id #=> String
|
364
|
+
# resp.api_association.association_status #=> String, one of "PROCESSING", "FAILED", "SUCCESS"
|
365
|
+
# resp.api_association.deployment_detail #=> String
|
366
|
+
#
|
367
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateApi AWS API Documentation
|
368
|
+
#
|
369
|
+
# @overload associate_api(params = {})
|
370
|
+
# @param [Hash] params ({})
|
371
|
+
def associate_api(params = {}, options = {})
|
372
|
+
req = build_request(:associate_api, params)
|
373
|
+
req.send_request(options)
|
374
|
+
end
|
375
|
+
|
330
376
|
# Creates a cache for the GraphQL API.
|
331
377
|
#
|
332
378
|
# @option params [required, String] :api_id
|
333
|
-
# The GraphQL API
|
379
|
+
# The GraphQL API ID.
|
334
380
|
#
|
335
381
|
# @option params [required, Integer] :ttl
|
336
382
|
# TTL in seconds for cache entries.
|
337
383
|
#
|
338
|
-
# Valid values are
|
384
|
+
# Valid values are 1–3,600 seconds.
|
339
385
|
#
|
340
386
|
# @option params [Boolean] :transit_encryption_enabled
|
341
|
-
# Transit encryption flag when connecting to cache.
|
342
|
-
#
|
387
|
+
# Transit encryption flag when connecting to cache. You cannot update
|
388
|
+
# this setting after creation.
|
343
389
|
#
|
344
390
|
# @option params [Boolean] :at_rest_encryption_enabled
|
345
|
-
# At
|
391
|
+
# At-rest encryption flag for cache. You cannot update this setting
|
346
392
|
# after creation.
|
347
393
|
#
|
348
394
|
# @option params [required, String] :api_caching_behavior
|
@@ -426,8 +472,8 @@ module Aws::AppSync
|
|
426
472
|
req.send_request(options)
|
427
473
|
end
|
428
474
|
|
429
|
-
# Creates a unique key that you can distribute to clients who
|
430
|
-
#
|
475
|
+
# Creates a unique key that you can distribute to clients who invoke
|
476
|
+
# your API.
|
431
477
|
#
|
432
478
|
# @option params [required, String] :api_id
|
433
479
|
# The ID for your GraphQL API.
|
@@ -436,10 +482,10 @@ module Aws::AppSync
|
|
436
482
|
# A description of the purpose of the API key.
|
437
483
|
#
|
438
484
|
# @option params [Integer] :expires
|
439
|
-
#
|
440
|
-
# is represented as seconds since the epoch, rounded down to the
|
441
|
-
# hour. The default value for this parameter is 7 days from
|
442
|
-
# time. For more information, see .
|
485
|
+
# From the creation time, the time after which the API key expires. The
|
486
|
+
# date is represented as seconds since the epoch, rounded down to the
|
487
|
+
# nearest hour. The default value for this parameter is 7 days from
|
488
|
+
# creation time. For more information, see .
|
443
489
|
#
|
444
490
|
# @return [Types::CreateApiKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
445
491
|
#
|
@@ -484,14 +530,15 @@ module Aws::AppSync
|
|
484
530
|
# The type of the `DataSource`.
|
485
531
|
#
|
486
532
|
# @option params [String] :service_role_arn
|
487
|
-
# The Identity and Access Management service role
|
488
|
-
# source. The system assumes this role when
|
533
|
+
# The Identity and Access Management (IAM) service role Amazon Resource
|
534
|
+
# Name (ARN) for the data source. The system assumes this role when
|
535
|
+
# accessing the data source.
|
489
536
|
#
|
490
537
|
# @option params [Types::DynamodbDataSourceConfig] :dynamodb_config
|
491
538
|
# Amazon DynamoDB settings.
|
492
539
|
#
|
493
540
|
# @option params [Types::LambdaDataSourceConfig] :lambda_config
|
494
|
-
#
|
541
|
+
# Lambda settings.
|
495
542
|
#
|
496
543
|
# @option params [Types::ElasticsearchDataSourceConfig] :elasticsearch_config
|
497
544
|
# Amazon OpenSearch Service settings.
|
@@ -605,9 +652,51 @@ module Aws::AppSync
|
|
605
652
|
req.send_request(options)
|
606
653
|
end
|
607
654
|
|
655
|
+
# Creates a custom `DomainName` object.
|
656
|
+
#
|
657
|
+
# @option params [required, String] :domain_name
|
658
|
+
# The domain name.
|
659
|
+
#
|
660
|
+
# @option params [required, String] :certificate_arn
|
661
|
+
# The Amazon Resource Name (ARN) of the certificate. This can be an
|
662
|
+
# Certificate Manager (ACM) certificate or an Identity and Access
|
663
|
+
# Management (IAM) server certificate.
|
664
|
+
#
|
665
|
+
# @option params [String] :description
|
666
|
+
# A description of the `DomainName`.
|
667
|
+
#
|
668
|
+
# @return [Types::CreateDomainNameResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
669
|
+
#
|
670
|
+
# * {Types::CreateDomainNameResponse#domain_name_config #domain_name_config} => Types::DomainNameConfig
|
671
|
+
#
|
672
|
+
# @example Request syntax with placeholder values
|
673
|
+
#
|
674
|
+
# resp = client.create_domain_name({
|
675
|
+
# domain_name: "DomainName", # required
|
676
|
+
# certificate_arn: "CertificateArn", # required
|
677
|
+
# description: "Description",
|
678
|
+
# })
|
679
|
+
#
|
680
|
+
# @example Response structure
|
681
|
+
#
|
682
|
+
# resp.domain_name_config.domain_name #=> String
|
683
|
+
# resp.domain_name_config.description #=> String
|
684
|
+
# resp.domain_name_config.certificate_arn #=> String
|
685
|
+
# resp.domain_name_config.appsync_domain_name #=> String
|
686
|
+
# resp.domain_name_config.hosted_zone_id #=> String
|
687
|
+
#
|
688
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDomainName AWS API Documentation
|
689
|
+
#
|
690
|
+
# @overload create_domain_name(params = {})
|
691
|
+
# @param [Hash] params ({})
|
692
|
+
def create_domain_name(params = {}, options = {})
|
693
|
+
req = build_request(:create_domain_name, params)
|
694
|
+
req.send_request(options)
|
695
|
+
end
|
696
|
+
|
608
697
|
# Creates a `Function` object.
|
609
698
|
#
|
610
|
-
# A function is a reusable entity.
|
699
|
+
# A function is a reusable entity. You can use multiple functions to
|
611
700
|
# compose the resolver logic.
|
612
701
|
#
|
613
702
|
# @option params [required, String] :api_id
|
@@ -630,14 +719,14 @@ module Aws::AppSync
|
|
630
719
|
# The `Function` response mapping template.
|
631
720
|
#
|
632
721
|
# @option params [required, String] :function_version
|
633
|
-
# The `version` of the request mapping template. Currently the
|
634
|
-
# value is 2018-05-29.
|
722
|
+
# The `version` of the request mapping template. Currently, the
|
723
|
+
# supported value is 2018-05-29.
|
635
724
|
#
|
636
725
|
# @option params [Types::SyncConfig] :sync_config
|
637
726
|
# Describes a Sync configuration for a resolver.
|
638
727
|
#
|
639
|
-
#
|
640
|
-
#
|
728
|
+
# Specifies which Conflict Detection strategy and Resolution strategy to
|
729
|
+
# use when the resolver is invoked.
|
641
730
|
#
|
642
731
|
# @return [Types::CreateFunctionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
643
732
|
#
|
@@ -694,14 +783,14 @@ module Aws::AppSync
|
|
694
783
|
# The Amazon CloudWatch Logs configuration.
|
695
784
|
#
|
696
785
|
# @option params [required, String] :authentication_type
|
697
|
-
# The authentication type: API key, Identity and Access Management
|
698
|
-
# OIDC, Amazon Cognito user pools, or
|
786
|
+
# The authentication type: API key, Identity and Access Management
|
787
|
+
# (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.
|
699
788
|
#
|
700
789
|
# @option params [Types::UserPoolConfig] :user_pool_config
|
701
790
|
# The Amazon Cognito user pool configuration.
|
702
791
|
#
|
703
792
|
# @option params [Types::OpenIDConnectConfig] :open_id_connect_config
|
704
|
-
# The
|
793
|
+
# The OIDC configuration.
|
705
794
|
#
|
706
795
|
# @option params [Hash<String,String>] :tags
|
707
796
|
# A `TagMap` object.
|
@@ -711,11 +800,10 @@ module Aws::AppSync
|
|
711
800
|
# API.
|
712
801
|
#
|
713
802
|
# @option params [Boolean] :xray_enabled
|
714
|
-
# A flag indicating whether to
|
715
|
-
# `GraphqlApi`.
|
803
|
+
# A flag indicating whether to use X-Ray tracing for the `GraphqlApi`.
|
716
804
|
#
|
717
805
|
# @option params [Types::LambdaAuthorizerConfig] :lambda_authorizer_config
|
718
|
-
# Configuration for
|
806
|
+
# Configuration for Lambda function authorization.
|
719
807
|
#
|
720
808
|
# @return [Types::CreateGraphqlApiResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
721
809
|
#
|
@@ -826,7 +914,8 @@ module Aws::AppSync
|
|
826
914
|
# Creates a `Resolver` object.
|
827
915
|
#
|
828
916
|
# A resolver converts incoming requests into a format that a data source
|
829
|
-
# can understand and converts the data source's responses into
|
917
|
+
# can understand, and converts the data source's responses into
|
918
|
+
# GraphQL.
|
830
919
|
#
|
831
920
|
# @option params [required, String] :api_id
|
832
921
|
# The ID for the GraphQL API for which the resolver is being created.
|
@@ -841,36 +930,36 @@ module Aws::AppSync
|
|
841
930
|
# The name of the data source for which the resolver is being created.
|
842
931
|
#
|
843
932
|
# @option params [String] :request_mapping_template
|
844
|
-
# The mapping template to
|
933
|
+
# The mapping template to use for requests.
|
845
934
|
#
|
846
935
|
# A resolver uses a request mapping template to convert a GraphQL
|
847
936
|
# expression into a format that a data source can understand. Mapping
|
848
937
|
# templates are written in Apache Velocity Template Language (VTL).
|
849
938
|
#
|
850
|
-
# VTL request mapping templates are optional when using
|
939
|
+
# VTL request mapping templates are optional when using an Lambda data
|
851
940
|
# source. For all other data sources, VTL request and response mapping
|
852
941
|
# templates are required.
|
853
942
|
#
|
854
943
|
# @option params [String] :response_mapping_template
|
855
|
-
# The mapping template to
|
944
|
+
# The mapping template to use for responses from the data source.
|
856
945
|
#
|
857
946
|
# @option params [String] :kind
|
858
947
|
# The resolver type.
|
859
948
|
#
|
860
949
|
# * **UNIT**\: A UNIT resolver type. A UNIT resolver is the default
|
861
|
-
# resolver type.
|
862
|
-
#
|
950
|
+
# resolver type. You can use a UNIT resolver to run a GraphQL query
|
951
|
+
# against a single data source.
|
863
952
|
#
|
864
|
-
# * **PIPELINE**\: A PIPELINE resolver type.
|
865
|
-
#
|
866
|
-
# use a pipeline resolver to
|
867
|
-
# data sources.
|
953
|
+
# * **PIPELINE**\: A PIPELINE resolver type. You can use a PIPELINE
|
954
|
+
# resolver to invoke a series of `Function` objects in a serial
|
955
|
+
# manner. You can use a pipeline resolver to run a GraphQL query
|
956
|
+
# against multiple data sources.
|
868
957
|
#
|
869
958
|
# @option params [Types::PipelineConfig] :pipeline_config
|
870
959
|
# The `PipelineConfig`.
|
871
960
|
#
|
872
961
|
# @option params [Types::SyncConfig] :sync_config
|
873
|
-
# The `SyncConfig` for a resolver attached to a versioned
|
962
|
+
# The `SyncConfig` for a resolver attached to a versioned data source.
|
874
963
|
#
|
875
964
|
# @option params [Types::CachingConfig] :caching_config
|
876
965
|
# The caching configuration for the resolver.
|
@@ -1053,6 +1142,28 @@ module Aws::AppSync
|
|
1053
1142
|
req.send_request(options)
|
1054
1143
|
end
|
1055
1144
|
|
1145
|
+
# Deletes a custom `DomainName` object.
|
1146
|
+
#
|
1147
|
+
# @option params [required, String] :domain_name
|
1148
|
+
# The domain name.
|
1149
|
+
#
|
1150
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1151
|
+
#
|
1152
|
+
# @example Request syntax with placeholder values
|
1153
|
+
#
|
1154
|
+
# resp = client.delete_domain_name({
|
1155
|
+
# domain_name: "DomainName", # required
|
1156
|
+
# })
|
1157
|
+
#
|
1158
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDomainName AWS API Documentation
|
1159
|
+
#
|
1160
|
+
# @overload delete_domain_name(params = {})
|
1161
|
+
# @param [Hash] params ({})
|
1162
|
+
def delete_domain_name(params = {}, options = {})
|
1163
|
+
req = build_request(:delete_domain_name, params)
|
1164
|
+
req.send_request(options)
|
1165
|
+
end
|
1166
|
+
|
1056
1167
|
# Deletes a `Function`.
|
1057
1168
|
#
|
1058
1169
|
# @option params [required, String] :api_id
|
@@ -1157,6 +1268,28 @@ module Aws::AppSync
|
|
1157
1268
|
req.send_request(options)
|
1158
1269
|
end
|
1159
1270
|
|
1271
|
+
# Removes an `ApiAssociation` object from a custom domain.
|
1272
|
+
#
|
1273
|
+
# @option params [required, String] :domain_name
|
1274
|
+
# The domain name.
|
1275
|
+
#
|
1276
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1277
|
+
#
|
1278
|
+
# @example Request syntax with placeholder values
|
1279
|
+
#
|
1280
|
+
# resp = client.disassociate_api({
|
1281
|
+
# domain_name: "DomainName", # required
|
1282
|
+
# })
|
1283
|
+
#
|
1284
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateApi AWS API Documentation
|
1285
|
+
#
|
1286
|
+
# @overload disassociate_api(params = {})
|
1287
|
+
# @param [Hash] params ({})
|
1288
|
+
def disassociate_api(params = {}, options = {})
|
1289
|
+
req = build_request(:disassociate_api, params)
|
1290
|
+
req.send_request(options)
|
1291
|
+
end
|
1292
|
+
|
1160
1293
|
# Flushes an `ApiCache` object.
|
1161
1294
|
#
|
1162
1295
|
# @option params [required, String] :api_id
|
@@ -1179,6 +1312,37 @@ module Aws::AppSync
|
|
1179
1312
|
req.send_request(options)
|
1180
1313
|
end
|
1181
1314
|
|
1315
|
+
# Retrieves an `ApiAssociation` object.
|
1316
|
+
#
|
1317
|
+
# @option params [required, String] :domain_name
|
1318
|
+
# The domain name.
|
1319
|
+
#
|
1320
|
+
# @return [Types::GetApiAssociationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1321
|
+
#
|
1322
|
+
# * {Types::GetApiAssociationResponse#api_association #api_association} => Types::ApiAssociation
|
1323
|
+
#
|
1324
|
+
# @example Request syntax with placeholder values
|
1325
|
+
#
|
1326
|
+
# resp = client.get_api_association({
|
1327
|
+
# domain_name: "DomainName", # required
|
1328
|
+
# })
|
1329
|
+
#
|
1330
|
+
# @example Response structure
|
1331
|
+
#
|
1332
|
+
# resp.api_association.domain_name #=> String
|
1333
|
+
# resp.api_association.api_id #=> String
|
1334
|
+
# resp.api_association.association_status #=> String, one of "PROCESSING", "FAILED", "SUCCESS"
|
1335
|
+
# resp.api_association.deployment_detail #=> String
|
1336
|
+
#
|
1337
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiAssociation AWS API Documentation
|
1338
|
+
#
|
1339
|
+
# @overload get_api_association(params = {})
|
1340
|
+
# @param [Hash] params ({})
|
1341
|
+
def get_api_association(params = {}, options = {})
|
1342
|
+
req = build_request(:get_api_association, params)
|
1343
|
+
req.send_request(options)
|
1344
|
+
end
|
1345
|
+
|
1182
1346
|
# Retrieves an `ApiCache` object.
|
1183
1347
|
#
|
1184
1348
|
# @option params [required, String] :api_id
|
@@ -1270,6 +1434,38 @@ module Aws::AppSync
|
|
1270
1434
|
req.send_request(options)
|
1271
1435
|
end
|
1272
1436
|
|
1437
|
+
# Retrieves a custom `DomainName` object.
|
1438
|
+
#
|
1439
|
+
# @option params [required, String] :domain_name
|
1440
|
+
# The domain name.
|
1441
|
+
#
|
1442
|
+
# @return [Types::GetDomainNameResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1443
|
+
#
|
1444
|
+
# * {Types::GetDomainNameResponse#domain_name_config #domain_name_config} => Types::DomainNameConfig
|
1445
|
+
#
|
1446
|
+
# @example Request syntax with placeholder values
|
1447
|
+
#
|
1448
|
+
# resp = client.get_domain_name({
|
1449
|
+
# domain_name: "DomainName", # required
|
1450
|
+
# })
|
1451
|
+
#
|
1452
|
+
# @example Response structure
|
1453
|
+
#
|
1454
|
+
# resp.domain_name_config.domain_name #=> String
|
1455
|
+
# resp.domain_name_config.description #=> String
|
1456
|
+
# resp.domain_name_config.certificate_arn #=> String
|
1457
|
+
# resp.domain_name_config.appsync_domain_name #=> String
|
1458
|
+
# resp.domain_name_config.hosted_zone_id #=> String
|
1459
|
+
#
|
1460
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDomainName AWS API Documentation
|
1461
|
+
#
|
1462
|
+
# @overload get_domain_name(params = {})
|
1463
|
+
# @param [Hash] params ({})
|
1464
|
+
def get_domain_name(params = {}, options = {})
|
1465
|
+
req = build_request(:get_domain_name, params)
|
1466
|
+
req.send_request(options)
|
1467
|
+
end
|
1468
|
+
|
1273
1469
|
# Get a `Function`.
|
1274
1470
|
#
|
1275
1471
|
# @option params [required, String] :api_id
|
@@ -1546,11 +1742,11 @@ module Aws::AppSync
|
|
1546
1742
|
#
|
1547
1743
|
# @option params [String] :next_token
|
1548
1744
|
# An identifier that was returned from the previous call to this
|
1549
|
-
# operation, which can
|
1745
|
+
# operation, which you can use to return the next set of items in the
|
1550
1746
|
# list.
|
1551
1747
|
#
|
1552
1748
|
# @option params [Integer] :max_results
|
1553
|
-
# The maximum number of results you want the request to return.
|
1749
|
+
# The maximum number of results that you want the request to return.
|
1554
1750
|
#
|
1555
1751
|
# @return [Types::ListApiKeysResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1556
1752
|
#
|
@@ -1590,11 +1786,11 @@ module Aws::AppSync
|
|
1590
1786
|
#
|
1591
1787
|
# @option params [String] :next_token
|
1592
1788
|
# An identifier that was returned from the previous call to this
|
1593
|
-
# operation, which can
|
1789
|
+
# operation, which you can use to return the next set of items in the
|
1594
1790
|
# list.
|
1595
1791
|
#
|
1596
1792
|
# @option params [Integer] :max_results
|
1597
|
-
# The maximum number of results you want the request to return.
|
1793
|
+
# The maximum number of results that you want the request to return.
|
1598
1794
|
#
|
1599
1795
|
# @return [Types::ListDataSourcesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1600
1796
|
#
|
@@ -1650,6 +1846,45 @@ module Aws::AppSync
|
|
1650
1846
|
req.send_request(options)
|
1651
1847
|
end
|
1652
1848
|
|
1849
|
+
# Lists multiple custom domain names.
|
1850
|
+
#
|
1851
|
+
# @option params [String] :next_token
|
1852
|
+
# The API token.
|
1853
|
+
#
|
1854
|
+
# @option params [Integer] :max_results
|
1855
|
+
# The maximum number of results that you want the request to return.
|
1856
|
+
#
|
1857
|
+
# @return [Types::ListDomainNamesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1858
|
+
#
|
1859
|
+
# * {Types::ListDomainNamesResponse#domain_name_configs #domain_name_configs} => Array<Types::DomainNameConfig>
|
1860
|
+
# * {Types::ListDomainNamesResponse#next_token #next_token} => String
|
1861
|
+
#
|
1862
|
+
# @example Request syntax with placeholder values
|
1863
|
+
#
|
1864
|
+
# resp = client.list_domain_names({
|
1865
|
+
# next_token: "PaginationToken",
|
1866
|
+
# max_results: 1,
|
1867
|
+
# })
|
1868
|
+
#
|
1869
|
+
# @example Response structure
|
1870
|
+
#
|
1871
|
+
# resp.domain_name_configs #=> Array
|
1872
|
+
# resp.domain_name_configs[0].domain_name #=> String
|
1873
|
+
# resp.domain_name_configs[0].description #=> String
|
1874
|
+
# resp.domain_name_configs[0].certificate_arn #=> String
|
1875
|
+
# resp.domain_name_configs[0].appsync_domain_name #=> String
|
1876
|
+
# resp.domain_name_configs[0].hosted_zone_id #=> String
|
1877
|
+
# resp.next_token #=> String
|
1878
|
+
#
|
1879
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDomainNames AWS API Documentation
|
1880
|
+
#
|
1881
|
+
# @overload list_domain_names(params = {})
|
1882
|
+
# @param [Hash] params ({})
|
1883
|
+
def list_domain_names(params = {}, options = {})
|
1884
|
+
req = build_request(:list_domain_names, params)
|
1885
|
+
req.send_request(options)
|
1886
|
+
end
|
1887
|
+
|
1653
1888
|
# List multiple functions.
|
1654
1889
|
#
|
1655
1890
|
# @option params [required, String] :api_id
|
@@ -1657,11 +1892,11 @@ module Aws::AppSync
|
|
1657
1892
|
#
|
1658
1893
|
# @option params [String] :next_token
|
1659
1894
|
# An identifier that was returned from the previous call to this
|
1660
|
-
# operation, which can
|
1895
|
+
# operation, which you can use to return the next set of items in the
|
1661
1896
|
# list.
|
1662
1897
|
#
|
1663
1898
|
# @option params [Integer] :max_results
|
1664
|
-
# The maximum number of results you want the request to return.
|
1899
|
+
# The maximum number of results that you want the request to return.
|
1665
1900
|
#
|
1666
1901
|
# @return [Types::ListFunctionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1667
1902
|
#
|
@@ -1705,11 +1940,11 @@ module Aws::AppSync
|
|
1705
1940
|
#
|
1706
1941
|
# @option params [String] :next_token
|
1707
1942
|
# An identifier that was returned from the previous call to this
|
1708
|
-
# operation, which can
|
1943
|
+
# operation, which you can use to return the next set of items in the
|
1709
1944
|
# list.
|
1710
1945
|
#
|
1711
1946
|
# @option params [Integer] :max_results
|
1712
|
-
# The maximum number of results you want the request to return.
|
1947
|
+
# The maximum number of results that you want the request to return.
|
1713
1948
|
#
|
1714
1949
|
# @return [Types::ListGraphqlApisResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1715
1950
|
#
|
@@ -1783,11 +2018,11 @@ module Aws::AppSync
|
|
1783
2018
|
#
|
1784
2019
|
# @option params [String] :next_token
|
1785
2020
|
# An identifier that was returned from the previous call to this
|
1786
|
-
# operation, which can
|
2021
|
+
# operation, which you can use to return the next set of items in the
|
1787
2022
|
# list.
|
1788
2023
|
#
|
1789
2024
|
# @option params [Integer] :max_results
|
1790
|
-
# The maximum number of results you want the request to return.
|
2025
|
+
# The maximum number of results that you want the request to return.
|
1791
2026
|
#
|
1792
2027
|
# @return [Types::ListResolversResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1793
2028
|
#
|
@@ -1838,7 +2073,7 @@ module Aws::AppSync
|
|
1838
2073
|
# The API ID.
|
1839
2074
|
#
|
1840
2075
|
# @option params [required, String] :function_id
|
1841
|
-
# The
|
2076
|
+
# The function ID.
|
1842
2077
|
#
|
1843
2078
|
# @option params [String] :next_token
|
1844
2079
|
# An identifier that was returned from the previous call to this
|
@@ -1846,7 +2081,7 @@ module Aws::AppSync
|
|
1846
2081
|
# list.
|
1847
2082
|
#
|
1848
2083
|
# @option params [Integer] :max_results
|
1849
|
-
# The maximum number of results you want the request to return.
|
2084
|
+
# The maximum number of results that you want the request to return.
|
1850
2085
|
#
|
1851
2086
|
# @return [Types::ListResolversByFunctionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1852
2087
|
#
|
@@ -1894,7 +2129,7 @@ module Aws::AppSync
|
|
1894
2129
|
# Lists the tags for a resource.
|
1895
2130
|
#
|
1896
2131
|
# @option params [required, String] :resource_arn
|
1897
|
-
# The `GraphqlApi` ARN.
|
2132
|
+
# The `GraphqlApi` Amazon Resource Name (ARN).
|
1898
2133
|
#
|
1899
2134
|
# @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1900
2135
|
#
|
@@ -1930,11 +2165,11 @@ module Aws::AppSync
|
|
1930
2165
|
#
|
1931
2166
|
# @option params [String] :next_token
|
1932
2167
|
# An identifier that was returned from the previous call to this
|
1933
|
-
# operation, which can
|
2168
|
+
# operation, which you can use to return the next set of items in the
|
1934
2169
|
# list.
|
1935
2170
|
#
|
1936
2171
|
# @option params [Integer] :max_results
|
1937
|
-
# The maximum number of results you want the request to return.
|
2172
|
+
# The maximum number of results that you want the request to return.
|
1938
2173
|
#
|
1939
2174
|
# @return [Types::ListTypesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1940
2175
|
#
|
@@ -2007,7 +2242,7 @@ module Aws::AppSync
|
|
2007
2242
|
# Tags a resource with user-supplied tags.
|
2008
2243
|
#
|
2009
2244
|
# @option params [required, String] :resource_arn
|
2010
|
-
# The `GraphqlApi` ARN.
|
2245
|
+
# The `GraphqlApi` Amazon Resource Name (ARN).
|
2011
2246
|
#
|
2012
2247
|
# @option params [required, Hash<String,String>] :tags
|
2013
2248
|
# A `TagMap` object.
|
@@ -2035,7 +2270,7 @@ module Aws::AppSync
|
|
2035
2270
|
# Untags a resource.
|
2036
2271
|
#
|
2037
2272
|
# @option params [required, String] :resource_arn
|
2038
|
-
# The `GraphqlApi` ARN.
|
2273
|
+
# The `GraphqlApi` Amazon Resource Name (ARN).
|
2039
2274
|
#
|
2040
2275
|
# @option params [required, Array<String>] :tag_keys
|
2041
2276
|
# A list of `TagKey` objects.
|
@@ -2061,12 +2296,12 @@ module Aws::AppSync
|
|
2061
2296
|
# Updates the cache for the GraphQL API.
|
2062
2297
|
#
|
2063
2298
|
# @option params [required, String] :api_id
|
2064
|
-
# The GraphQL API
|
2299
|
+
# The GraphQL API ID.
|
2065
2300
|
#
|
2066
2301
|
# @option params [required, Integer] :ttl
|
2067
2302
|
# TTL in seconds for cache entries.
|
2068
2303
|
#
|
2069
|
-
# Valid values are
|
2304
|
+
# Valid values are 1–3,600 seconds.
|
2070
2305
|
#
|
2071
2306
|
# @option params [required, String] :api_caching_behavior
|
2072
2307
|
# Caching behavior.
|
@@ -2147,7 +2382,8 @@ module Aws::AppSync
|
|
2147
2382
|
req.send_request(options)
|
2148
2383
|
end
|
2149
2384
|
|
2150
|
-
# Updates an API key.
|
2385
|
+
# Updates an API key. You can update the key as long as it's not
|
2386
|
+
# deleted.
|
2151
2387
|
#
|
2152
2388
|
# @option params [required, String] :api_id
|
2153
2389
|
# The ID for the GraphQL API.
|
@@ -2159,8 +2395,9 @@ module Aws::AppSync
|
|
2159
2395
|
# A description of the purpose of the API key.
|
2160
2396
|
#
|
2161
2397
|
# @option params [Integer] :expires
|
2162
|
-
#
|
2163
|
-
# represented as seconds since the epoch. For more information,
|
2398
|
+
# From the update time, the time after which the API key expires. The
|
2399
|
+
# date is represented as seconds since the epoch. For more information,
|
2400
|
+
# see .
|
2164
2401
|
#
|
2165
2402
|
# @return [Types::UpdateApiKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2166
2403
|
#
|
@@ -2206,13 +2443,13 @@ module Aws::AppSync
|
|
2206
2443
|
# The new data source type.
|
2207
2444
|
#
|
2208
2445
|
# @option params [String] :service_role_arn
|
2209
|
-
# The new service role ARN for the data source.
|
2446
|
+
# The new service role Amazon Resource Name (ARN) for the data source.
|
2210
2447
|
#
|
2211
2448
|
# @option params [Types::DynamodbDataSourceConfig] :dynamodb_config
|
2212
2449
|
# The new Amazon DynamoDB configuration.
|
2213
2450
|
#
|
2214
2451
|
# @option params [Types::LambdaDataSourceConfig] :lambda_config
|
2215
|
-
# The new
|
2452
|
+
# The new Lambda configuration.
|
2216
2453
|
#
|
2217
2454
|
# @option params [Types::ElasticsearchDataSourceConfig] :elasticsearch_config
|
2218
2455
|
# The new OpenSearch configuration.
|
@@ -2326,6 +2563,42 @@ module Aws::AppSync
|
|
2326
2563
|
req.send_request(options)
|
2327
2564
|
end
|
2328
2565
|
|
2566
|
+
# Updates a custom `DomainName` object.
|
2567
|
+
#
|
2568
|
+
# @option params [required, String] :domain_name
|
2569
|
+
# The domain name.
|
2570
|
+
#
|
2571
|
+
# @option params [String] :description
|
2572
|
+
# A description of the `DomainName`.
|
2573
|
+
#
|
2574
|
+
# @return [Types::UpdateDomainNameResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2575
|
+
#
|
2576
|
+
# * {Types::UpdateDomainNameResponse#domain_name_config #domain_name_config} => Types::DomainNameConfig
|
2577
|
+
#
|
2578
|
+
# @example Request syntax with placeholder values
|
2579
|
+
#
|
2580
|
+
# resp = client.update_domain_name({
|
2581
|
+
# domain_name: "DomainName", # required
|
2582
|
+
# description: "Description",
|
2583
|
+
# })
|
2584
|
+
#
|
2585
|
+
# @example Response structure
|
2586
|
+
#
|
2587
|
+
# resp.domain_name_config.domain_name #=> String
|
2588
|
+
# resp.domain_name_config.description #=> String
|
2589
|
+
# resp.domain_name_config.certificate_arn #=> String
|
2590
|
+
# resp.domain_name_config.appsync_domain_name #=> String
|
2591
|
+
# resp.domain_name_config.hosted_zone_id #=> String
|
2592
|
+
#
|
2593
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDomainName AWS API Documentation
|
2594
|
+
#
|
2595
|
+
# @overload update_domain_name(params = {})
|
2596
|
+
# @param [Hash] params ({})
|
2597
|
+
def update_domain_name(params = {}, options = {})
|
2598
|
+
req = build_request(:update_domain_name, params)
|
2599
|
+
req.send_request(options)
|
2600
|
+
end
|
2601
|
+
|
2329
2602
|
# Updates a `Function` object.
|
2330
2603
|
#
|
2331
2604
|
# @option params [required, String] :api_id
|
@@ -2351,14 +2624,14 @@ module Aws::AppSync
|
|
2351
2624
|
# The `Function` request mapping template.
|
2352
2625
|
#
|
2353
2626
|
# @option params [required, String] :function_version
|
2354
|
-
# The `version` of the request mapping template. Currently the
|
2355
|
-
# value is 2018-05-29.
|
2627
|
+
# The `version` of the request mapping template. Currently, the
|
2628
|
+
# supported value is 2018-05-29.
|
2356
2629
|
#
|
2357
2630
|
# @option params [Types::SyncConfig] :sync_config
|
2358
2631
|
# Describes a Sync configuration for a resolver.
|
2359
2632
|
#
|
2360
|
-
#
|
2361
|
-
#
|
2633
|
+
# Specifies which Conflict Detection strategy and Resolution strategy to
|
2634
|
+
# use when the resolver is invoked.
|
2362
2635
|
#
|
2363
2636
|
# @return [Types::UpdateFunctionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2364
2637
|
#
|
@@ -2422,7 +2695,7 @@ module Aws::AppSync
|
|
2422
2695
|
# The new authentication type for the `GraphqlApi` object.
|
2423
2696
|
#
|
2424
2697
|
# @option params [Types::UserPoolConfig] :user_pool_config
|
2425
|
-
# The new Amazon Cognito user pool configuration for the
|
2698
|
+
# The new Amazon Cognito user pool configuration for the `~GraphqlApi`
|
2426
2699
|
# object.
|
2427
2700
|
#
|
2428
2701
|
# @option params [Types::OpenIDConnectConfig] :open_id_connect_config
|
@@ -2433,11 +2706,10 @@ module Aws::AppSync
|
|
2433
2706
|
# API.
|
2434
2707
|
#
|
2435
2708
|
# @option params [Boolean] :xray_enabled
|
2436
|
-
# A flag indicating whether to
|
2437
|
-
# `GraphqlApi`.
|
2709
|
+
# A flag indicating whether to use X-Ray tracing for the `GraphqlApi`.
|
2438
2710
|
#
|
2439
2711
|
# @option params [Types::LambdaAuthorizerConfig] :lambda_authorizer_config
|
2440
|
-
# Configuration for
|
2712
|
+
# Configuration for Lambda function authorization.
|
2441
2713
|
#
|
2442
2714
|
# @return [Types::UpdateGraphqlApiResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2443
2715
|
#
|
@@ -2564,7 +2836,7 @@ module Aws::AppSync
|
|
2564
2836
|
# expression into a format that a data source can understand. Mapping
|
2565
2837
|
# templates are written in Apache Velocity Template Language (VTL).
|
2566
2838
|
#
|
2567
|
-
# VTL request mapping templates are optional when using
|
2839
|
+
# VTL request mapping templates are optional when using an Lambda data
|
2568
2840
|
# source. For all other data sources, VTL request and response mapping
|
2569
2841
|
# templates are required.
|
2570
2842
|
#
|
@@ -2575,19 +2847,19 @@ module Aws::AppSync
|
|
2575
2847
|
# The resolver type.
|
2576
2848
|
#
|
2577
2849
|
# * **UNIT**\: A UNIT resolver type. A UNIT resolver is the default
|
2578
|
-
# resolver type.
|
2579
|
-
#
|
2850
|
+
# resolver type. You can use a UNIT resolver to run a GraphQL query
|
2851
|
+
# against a single data source.
|
2580
2852
|
#
|
2581
|
-
# * **PIPELINE**\: A PIPELINE resolver type.
|
2582
|
-
#
|
2583
|
-
# use a pipeline resolver to
|
2584
|
-
# data sources.
|
2853
|
+
# * **PIPELINE**\: A PIPELINE resolver type. You can use a PIPELINE
|
2854
|
+
# resolver to invoke a series of `Function` objects in a serial
|
2855
|
+
# manner. You can use a pipeline resolver to run a GraphQL query
|
2856
|
+
# against multiple data sources.
|
2585
2857
|
#
|
2586
2858
|
# @option params [Types::PipelineConfig] :pipeline_config
|
2587
2859
|
# The `PipelineConfig`.
|
2588
2860
|
#
|
2589
2861
|
# @option params [Types::SyncConfig] :sync_config
|
2590
|
-
# The `SyncConfig` for a resolver attached to a versioned
|
2862
|
+
# The `SyncConfig` for a resolver attached to a versioned data source.
|
2591
2863
|
#
|
2592
2864
|
# @option params [Types::CachingConfig] :caching_config
|
2593
2865
|
# The caching configuration for the resolver.
|
@@ -2706,7 +2978,7 @@ module Aws::AppSync
|
|
2706
2978
|
params: params,
|
2707
2979
|
config: config)
|
2708
2980
|
context[:gem_name] = 'aws-sdk-appsync'
|
2709
|
-
context[:gem_version] = '1.
|
2981
|
+
context[:gem_version] = '1.48.0'
|
2710
2982
|
Seahorse::Client::Request.new(handlers, context)
|
2711
2983
|
end
|
2712
2984
|
|