Class: Aws::AppSync::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::AppSync::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-appsync/client.rb
Overview
An API client for AppSync. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::AppSync::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#associate_api(params = {}) ⇒ Types::AssociateApiResponse
Maps an endpoint to your custom domain.
-
#associate_merged_graphql_api(params = {}) ⇒ Types::AssociateMergedGraphqlApiResponse
Creates an association between a Merged API and source API using the source API’s identifier.
-
#associate_source_graphql_api(params = {}) ⇒ Types::AssociateSourceGraphqlApiResponse
Creates an association between a Merged API and source API using the Merged API’s identifier.
-
#create_api_cache(params = {}) ⇒ Types::CreateApiCacheResponse
Creates a cache for the GraphQL API.
-
#create_api_key(params = {}) ⇒ Types::CreateApiKeyResponse
Creates a unique key that you can distribute to clients who invoke your API.
-
#create_data_source(params = {}) ⇒ Types::CreateDataSourceResponse
Creates a ‘DataSource` object.
-
#create_domain_name(params = {}) ⇒ Types::CreateDomainNameResponse
Creates a custom ‘DomainName` object.
-
#create_function(params = {}) ⇒ Types::CreateFunctionResponse
Creates a ‘Function` object.
-
#create_graphql_api(params = {}) ⇒ Types::CreateGraphqlApiResponse
Creates a ‘GraphqlApi` object.
-
#create_resolver(params = {}) ⇒ Types::CreateResolverResponse
Creates a ‘Resolver` object.
-
#create_type(params = {}) ⇒ Types::CreateTypeResponse
Creates a ‘Type` object.
-
#delete_api_cache(params = {}) ⇒ Struct
Deletes an ‘ApiCache` object.
-
#delete_api_key(params = {}) ⇒ Struct
Deletes an API key.
-
#delete_data_source(params = {}) ⇒ Struct
Deletes a ‘DataSource` object.
-
#delete_domain_name(params = {}) ⇒ Struct
Deletes a custom ‘DomainName` object.
-
#delete_function(params = {}) ⇒ Struct
Deletes a ‘Function`.
-
#delete_graphql_api(params = {}) ⇒ Struct
Deletes a ‘GraphqlApi` object.
-
#delete_resolver(params = {}) ⇒ Struct
Deletes a ‘Resolver` object.
-
#delete_type(params = {}) ⇒ Struct
Deletes a ‘Type` object.
-
#disassociate_api(params = {}) ⇒ Struct
Removes an ‘ApiAssociation` object from a custom domain.
-
#disassociate_merged_graphql_api(params = {}) ⇒ Types::DisassociateMergedGraphqlApiResponse
Deletes an association between a Merged API and source API using the source API’s identifier and the association ID.
-
#disassociate_source_graphql_api(params = {}) ⇒ Types::DisassociateSourceGraphqlApiResponse
Deletes an association between a Merged API and source API using the Merged API’s identifier and the association ID.
-
#evaluate_code(params = {}) ⇒ Types::EvaluateCodeResponse
Evaluates the given code and returns the response.
-
#evaluate_mapping_template(params = {}) ⇒ Types::EvaluateMappingTemplateResponse
Evaluates a given template and returns the response.
-
#flush_api_cache(params = {}) ⇒ Struct
Flushes an ‘ApiCache` object.
-
#get_api_association(params = {}) ⇒ Types::GetApiAssociationResponse
Retrieves an ‘ApiAssociation` object.
-
#get_api_cache(params = {}) ⇒ Types::GetApiCacheResponse
Retrieves an ‘ApiCache` object.
-
#get_data_source(params = {}) ⇒ Types::GetDataSourceResponse
Retrieves a ‘DataSource` object.
-
#get_data_source_introspection(params = {}) ⇒ Types::GetDataSourceIntrospectionResponse
Retrieves the record of an existing introspection.
-
#get_domain_name(params = {}) ⇒ Types::GetDomainNameResponse
Retrieves a custom ‘DomainName` object.
-
#get_function(params = {}) ⇒ Types::GetFunctionResponse
Get a ‘Function`.
-
#get_graphql_api(params = {}) ⇒ Types::GetGraphqlApiResponse
Retrieves a ‘GraphqlApi` object.
-
#get_graphql_api_environment_variables(params = {}) ⇒ Types::GetGraphqlApiEnvironmentVariablesResponse
Retrieves the list of environmental variable key-value pairs associated with an API by its ID value.
-
#get_introspection_schema(params = {}) ⇒ Types::GetIntrospectionSchemaResponse
Retrieves the introspection schema for a GraphQL API.
-
#get_resolver(params = {}) ⇒ Types::GetResolverResponse
Retrieves a ‘Resolver` object.
-
#get_schema_creation_status(params = {}) ⇒ Types::GetSchemaCreationStatusResponse
Retrieves the current status of a schema creation operation.
-
#get_source_api_association(params = {}) ⇒ Types::GetSourceApiAssociationResponse
Retrieves a ‘SourceApiAssociation` object.
-
#get_type(params = {}) ⇒ Types::GetTypeResponse
Retrieves a ‘Type` object.
-
#list_api_keys(params = {}) ⇒ Types::ListApiKeysResponse
Lists the API keys for a given API.
-
#list_data_sources(params = {}) ⇒ Types::ListDataSourcesResponse
Lists the data sources for a given API.
-
#list_domain_names(params = {}) ⇒ Types::ListDomainNamesResponse
Lists multiple custom domain names.
-
#list_functions(params = {}) ⇒ Types::ListFunctionsResponse
List multiple functions.
-
#list_graphql_apis(params = {}) ⇒ Types::ListGraphqlApisResponse
Lists your GraphQL APIs.
-
#list_resolvers(params = {}) ⇒ Types::ListResolversResponse
Lists the resolvers for a given API and type.
-
#list_resolvers_by_function(params = {}) ⇒ Types::ListResolversByFunctionResponse
List the resolvers that are associated with a specific function.
-
#list_source_api_associations(params = {}) ⇒ Types::ListSourceApiAssociationsResponse
Lists the ‘SourceApiAssociationSummary` data.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags for a resource.
-
#list_types(params = {}) ⇒ Types::ListTypesResponse
Lists the types for a given API.
-
#list_types_by_association(params = {}) ⇒ Types::ListTypesByAssociationResponse
Lists ‘Type` objects by the source API association ID.
-
#put_graphql_api_environment_variables(params = {}) ⇒ Types::PutGraphqlApiEnvironmentVariablesResponse
Creates a list of environmental variables in an API by its ID value.
-
#start_data_source_introspection(params = {}) ⇒ Types::StartDataSourceIntrospectionResponse
Creates a new introspection.
-
#start_schema_creation(params = {}) ⇒ Types::StartSchemaCreationResponse
Adds a new schema to your GraphQL API.
-
#start_schema_merge(params = {}) ⇒ Types::StartSchemaMergeResponse
Initiates a merge operation.
-
#tag_resource(params = {}) ⇒ Struct
Tags a resource with user-supplied tags.
-
#untag_resource(params = {}) ⇒ Struct
Untags a resource.
-
#update_api_cache(params = {}) ⇒ Types::UpdateApiCacheResponse
Updates the cache for the GraphQL API.
-
#update_api_key(params = {}) ⇒ Types::UpdateApiKeyResponse
Updates an API key.
-
#update_data_source(params = {}) ⇒ Types::UpdateDataSourceResponse
Updates a ‘DataSource` object.
-
#update_domain_name(params = {}) ⇒ Types::UpdateDomainNameResponse
Updates a custom ‘DomainName` object.
-
#update_function(params = {}) ⇒ Types::UpdateFunctionResponse
Updates a ‘Function` object.
-
#update_graphql_api(params = {}) ⇒ Types::UpdateGraphqlApiResponse
Updates a ‘GraphqlApi` object.
-
#update_resolver(params = {}) ⇒ Types::UpdateResolverResponse
Updates a ‘Resolver` object.
-
#update_source_api_association(params = {}) ⇒ Types::UpdateSourceApiAssociationResponse
Updates some of the configuration choices of a particular source API association.
-
#update_type(params = {}) ⇒ Types::UpdateTypeResponse
Updates a ‘Type` object.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
434 435 436 |
# File 'lib/aws-sdk-appsync/client.rb', line 434 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
4333 4334 4335 |
# File 'lib/aws-sdk-appsync/client.rb', line 4333 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
4336 4337 4338 |
# File 'lib/aws-sdk-appsync/client.rb', line 4336 def errors_module Errors end |
Instance Method Details
#associate_api(params = {}) ⇒ Types::AssociateApiResponse
Maps an endpoint to your custom domain.
470 471 472 473 |
# File 'lib/aws-sdk-appsync/client.rb', line 470 def associate_api(params = {}, = {}) req = build_request(:associate_api, params) req.send_request() end |
#associate_merged_graphql_api(params = {}) ⇒ Types::AssociateMergedGraphqlApiResponse
Creates an association between a Merged API and source API using the source API’s identifier.
531 532 533 534 |
# File 'lib/aws-sdk-appsync/client.rb', line 531 def associate_merged_graphql_api(params = {}, = {}) req = build_request(:associate_merged_graphql_api, params) req.send_request() end |
#associate_source_graphql_api(params = {}) ⇒ Types::AssociateSourceGraphqlApiResponse
Creates an association between a Merged API and source API using the Merged API’s identifier.
592 593 594 595 |
# File 'lib/aws-sdk-appsync/client.rb', line 592 def associate_source_graphql_api(params = {}, = {}) req = build_request(:associate_source_graphql_api, params) req.send_request() end |
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 |
# File 'lib/aws-sdk-appsync/client.rb', line 4306 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::AppSync') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-appsync' context[:gem_version] = '1.84.0' Seahorse::Client::Request.new(handlers, context) end |
#create_api_cache(params = {}) ⇒ Types::CreateApiCacheResponse
Creates a cache for the GraphQL API.
708 709 710 711 |
# File 'lib/aws-sdk-appsync/client.rb', line 708 def create_api_cache(params = {}, = {}) req = build_request(:create_api_cache, params) req.send_request() end |
#create_api_key(params = {}) ⇒ Types::CreateApiKeyResponse
Creates a unique key that you can distribute to clients who invoke your API.
751 752 753 754 |
# File 'lib/aws-sdk-appsync/client.rb', line 751 def create_api_key(params = {}, = {}) req = build_request(:create_api_key, params) req.send_request() end |
#create_data_source(params = {}) ⇒ Types::CreateDataSourceResponse
Creates a ‘DataSource` object.
907 908 909 910 |
# File 'lib/aws-sdk-appsync/client.rb', line 907 def create_data_source(params = {}, = {}) req = build_request(:create_data_source, params) req.send_request() end |
#create_domain_name(params = {}) ⇒ Types::CreateDomainNameResponse
Creates a custom ‘DomainName` object.
949 950 951 952 |
# File 'lib/aws-sdk-appsync/client.rb', line 949 def create_domain_name(params = {}, = {}) req = build_request(:create_domain_name, params) req.send_request() end |
#create_function(params = {}) ⇒ Types::CreateFunctionResponse
Creates a ‘Function` object.
A function is a reusable entity. You can use multiple functions to compose the resolver logic.
1054 1055 1056 1057 |
# File 'lib/aws-sdk-appsync/client.rb', line 1054 def create_function(params = {}, = {}) req = build_request(:create_function, params) req.send_request() end |
#create_graphql_api(params = {}) ⇒ Types::CreateGraphqlApiResponse
Creates a ‘GraphqlApi` object.
1275 1276 1277 1278 |
# File 'lib/aws-sdk-appsync/client.rb', line 1275 def create_graphql_api(params = {}, = {}) req = build_request(:create_graphql_api, params) req.send_request() end |
#create_resolver(params = {}) ⇒ Types::CreateResolverResponse
Creates a ‘Resolver` object.
A resolver converts incoming requests into a format that a data source can understand, and converts the data source’s responses into GraphQL.
1421 1422 1423 1424 |
# File 'lib/aws-sdk-appsync/client.rb', line 1421 def create_resolver(params = {}, = {}) req = build_request(:create_resolver, params) req.send_request() end |
#create_type(params = {}) ⇒ Types::CreateTypeResponse
Creates a ‘Type` object.
1468 1469 1470 1471 |
# File 'lib/aws-sdk-appsync/client.rb', line 1468 def create_type(params = {}, = {}) req = build_request(:create_type, params) req.send_request() end |
#delete_api_cache(params = {}) ⇒ Struct
Deletes an ‘ApiCache` object.
1490 1491 1492 1493 |
# File 'lib/aws-sdk-appsync/client.rb', line 1490 def delete_api_cache(params = {}, = {}) req = build_request(:delete_api_cache, params) req.send_request() end |
#delete_api_key(params = {}) ⇒ Struct
Deletes an API key.
1516 1517 1518 1519 |
# File 'lib/aws-sdk-appsync/client.rb', line 1516 def delete_api_key(params = {}, = {}) req = build_request(:delete_api_key, params) req.send_request() end |
#delete_data_source(params = {}) ⇒ Struct
Deletes a ‘DataSource` object.
1542 1543 1544 1545 |
# File 'lib/aws-sdk-appsync/client.rb', line 1542 def delete_data_source(params = {}, = {}) req = build_request(:delete_data_source, params) req.send_request() end |
#delete_domain_name(params = {}) ⇒ Struct
Deletes a custom ‘DomainName` object.
1564 1565 1566 1567 |
# File 'lib/aws-sdk-appsync/client.rb', line 1564 def delete_domain_name(params = {}, = {}) req = build_request(:delete_domain_name, params) req.send_request() end |
#delete_function(params = {}) ⇒ Struct
Deletes a ‘Function`.
1590 1591 1592 1593 |
# File 'lib/aws-sdk-appsync/client.rb', line 1590 def delete_function(params = {}, = {}) req = build_request(:delete_function, params) req.send_request() end |
#delete_graphql_api(params = {}) ⇒ Struct
Deletes a ‘GraphqlApi` object.
1612 1613 1614 1615 |
# File 'lib/aws-sdk-appsync/client.rb', line 1612 def delete_graphql_api(params = {}, = {}) req = build_request(:delete_graphql_api, params) req.send_request() end |
#delete_resolver(params = {}) ⇒ Struct
Deletes a ‘Resolver` object.
1642 1643 1644 1645 |
# File 'lib/aws-sdk-appsync/client.rb', line 1642 def delete_resolver(params = {}, = {}) req = build_request(:delete_resolver, params) req.send_request() end |
#delete_type(params = {}) ⇒ Struct
Deletes a ‘Type` object.
1668 1669 1670 1671 |
# File 'lib/aws-sdk-appsync/client.rb', line 1668 def delete_type(params = {}, = {}) req = build_request(:delete_type, params) req.send_request() end |
#disassociate_api(params = {}) ⇒ Struct
Removes an ‘ApiAssociation` object from a custom domain.
1690 1691 1692 1693 |
# File 'lib/aws-sdk-appsync/client.rb', line 1690 def disassociate_api(params = {}, = {}) req = build_request(:disassociate_api, params) req.send_request() end |
#disassociate_merged_graphql_api(params = {}) ⇒ Types::DisassociateMergedGraphqlApiResponse
Deletes an association between a Merged API and source API using the source API’s identifier and the association ID.
1728 1729 1730 1731 |
# File 'lib/aws-sdk-appsync/client.rb', line 1728 def disassociate_merged_graphql_api(params = {}, = {}) req = build_request(:disassociate_merged_graphql_api, params) req.send_request() end |
#disassociate_source_graphql_api(params = {}) ⇒ Types::DisassociateSourceGraphqlApiResponse
Deletes an association between a Merged API and source API using the Merged API’s identifier and the association ID.
1766 1767 1768 1769 |
# File 'lib/aws-sdk-appsync/client.rb', line 1766 def disassociate_source_graphql_api(params = {}, = {}) req = build_request(:disassociate_source_graphql_api, params) req.send_request() end |
#evaluate_code(params = {}) ⇒ Types::EvaluateCodeResponse
Evaluates the given code and returns the response. The code definition requirements depend on the specified runtime. For ‘APPSYNC_JS` runtimes, the code defines the request and response functions. The request function takes the incoming request after a GraphQL operation is parsed and converts it into a request configuration for the selected data source operation. The response function interprets responses from the data source and maps it to the shape of the GraphQL field output type.
1832 1833 1834 1835 |
# File 'lib/aws-sdk-appsync/client.rb', line 1832 def evaluate_code(params = {}, = {}) req = build_request(:evaluate_code, params) req.send_request() end |
#evaluate_mapping_template(params = {}) ⇒ Types::EvaluateMappingTemplateResponse
Evaluates a given template and returns the response. The mapping template can be a request or response template.
Request templates take the incoming request after a GraphQL operation is parsed and convert it into a request configuration for the selected data source operation. Response templates interpret responses from the data source and map it to the shape of the GraphQL field output type.
Mapping templates are written in the Apache Velocity Template Language (VTL).
1880 1881 1882 1883 |
# File 'lib/aws-sdk-appsync/client.rb', line 1880 def evaluate_mapping_template(params = {}, = {}) req = build_request(:evaluate_mapping_template, params) req.send_request() end |
#flush_api_cache(params = {}) ⇒ Struct
Flushes an ‘ApiCache` object.
1902 1903 1904 1905 |
# File 'lib/aws-sdk-appsync/client.rb', line 1902 def flush_api_cache(params = {}, = {}) req = build_request(:flush_api_cache, params) req.send_request() end |
#get_api_association(params = {}) ⇒ Types::GetApiAssociationResponse
Retrieves an ‘ApiAssociation` object.
1933 1934 1935 1936 |
# File 'lib/aws-sdk-appsync/client.rb', line 1933 def get_api_association(params = {}, = {}) req = build_request(:get_api_association, params) req.send_request() end |
#get_api_cache(params = {}) ⇒ Types::GetApiCacheResponse
Retrieves an ‘ApiCache` object.
1967 1968 1969 1970 |
# File 'lib/aws-sdk-appsync/client.rb', line 1967 def get_api_cache(params = {}, = {}) req = build_request(:get_api_cache, params) req.send_request() end |
#get_data_source(params = {}) ⇒ Types::GetDataSourceResponse
Retrieves a ‘DataSource` object.
2027 2028 2029 2030 |
# File 'lib/aws-sdk-appsync/client.rb', line 2027 def get_data_source(params = {}, = {}) req = build_request(:get_data_source, params) req.send_request() end |
#get_data_source_introspection(params = {}) ⇒ Types::GetDataSourceIntrospectionResponse
Retrieves the record of an existing introspection. If the retrieval is successful, the result of the instrospection will also be returned. If the retrieval fails the operation, an error message will be returned instead.
2101 2102 2103 2104 |
# File 'lib/aws-sdk-appsync/client.rb', line 2101 def get_data_source_introspection(params = {}, = {}) req = build_request(:get_data_source_introspection, params) req.send_request() end |
#get_domain_name(params = {}) ⇒ Types::GetDomainNameResponse
Retrieves a custom ‘DomainName` object.
2133 2134 2135 2136 |
# File 'lib/aws-sdk-appsync/client.rb', line 2133 def get_domain_name(params = {}, = {}) req = build_request(:get_domain_name, params) req.send_request() end |
#get_function(params = {}) ⇒ Types::GetFunctionResponse
Get a ‘Function`.
2179 2180 2181 2182 |
# File 'lib/aws-sdk-appsync/client.rb', line 2179 def get_function(params = {}, = {}) req = build_request(:get_function, params) req.send_request() end |
#get_graphql_api(params = {}) ⇒ Types::GetGraphqlApiResponse
Retrieves a ‘GraphqlApi` object.
2255 2256 2257 2258 |
# File 'lib/aws-sdk-appsync/client.rb', line 2255 def get_graphql_api(params = {}, = {}) req = build_request(:get_graphql_api, params) req.send_request() end |
#get_graphql_api_environment_variables(params = {}) ⇒ Types::GetGraphqlApiEnvironmentVariablesResponse
Retrieves the list of environmental variable key-value pairs associated with an API by its ID value.
2286 2287 2288 2289 |
# File 'lib/aws-sdk-appsync/client.rb', line 2286 def get_graphql_api_environment_variables(params = {}, = {}) req = build_request(:get_graphql_api_environment_variables, params) req.send_request() end |
#get_introspection_schema(params = {}) ⇒ Types::GetIntrospectionSchemaResponse
Retrieves the introspection schema for a GraphQL API.
2323 2324 2325 2326 |
# File 'lib/aws-sdk-appsync/client.rb', line 2323 def get_introspection_schema(params = {}, = {}) req = build_request(:get_introspection_schema, params) req.send_request() end |
#get_resolver(params = {}) ⇒ Types::GetResolverResponse
Retrieves a ‘Resolver` object.
2378 2379 2380 2381 |
# File 'lib/aws-sdk-appsync/client.rb', line 2378 def get_resolver(params = {}, = {}) req = build_request(:get_resolver, params) req.send_request() end |
#get_schema_creation_status(params = {}) ⇒ Types::GetSchemaCreationStatusResponse
Retrieves the current status of a schema creation operation.
2408 2409 2410 2411 |
# File 'lib/aws-sdk-appsync/client.rb', line 2408 def get_schema_creation_status(params = {}, = {}) req = build_request(:get_schema_creation_status, params) req.send_request() end |
#get_source_api_association(params = {}) ⇒ Types::GetSourceApiAssociationResponse
Retrieves a ‘SourceApiAssociation` object.
2455 2456 2457 2458 |
# File 'lib/aws-sdk-appsync/client.rb', line 2455 def get_source_api_association(params = {}, = {}) req = build_request(:get_source_api_association, params) req.send_request() end |
#get_type(params = {}) ⇒ Types::GetTypeResponse
Retrieves a ‘Type` object.
2495 2496 2497 2498 |
# File 'lib/aws-sdk-appsync/client.rb', line 2495 def get_type(params = {}, = {}) req = build_request(:get_type, params) req.send_request() end |
#list_api_keys(params = {}) ⇒ Types::ListApiKeysResponse
Lists the API keys for a given API.
<note markdown=“1”> API keys are deleted automatically 60 days after they expire. However, they may still be included in the response until they have actually been deleted. You can safely call ‘DeleteApiKey` to manually delete a key before it’s automatically deleted.
</note>
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2548 2549 2550 2551 |
# File 'lib/aws-sdk-appsync/client.rb', line 2548 def list_api_keys(params = {}, = {}) req = build_request(:list_api_keys, params) req.send_request() end |
#list_data_sources(params = {}) ⇒ Types::ListDataSourcesResponse
Lists the data sources for a given API.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2619 2620 2621 2622 |
# File 'lib/aws-sdk-appsync/client.rb', line 2619 def list_data_sources(params = {}, = {}) req = build_request(:list_data_sources, params) req.send_request() end |
#list_domain_names(params = {}) ⇒ Types::ListDomainNamesResponse
Lists multiple custom domain names.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2662 2663 2664 2665 |
# File 'lib/aws-sdk-appsync/client.rb', line 2662 def list_domain_names(params = {}, = {}) req = build_request(:list_domain_names, params) req.send_request() end |
#list_functions(params = {}) ⇒ Types::ListFunctionsResponse
List multiple functions.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2719 2720 2721 2722 |
# File 'lib/aws-sdk-appsync/client.rb', line 2719 def list_functions(params = {}, = {}) req = build_request(:list_functions, params) req.send_request() end |
#list_graphql_apis(params = {}) ⇒ Types::ListGraphqlApisResponse
Lists your GraphQL APIs.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2815 2816 2817 2818 |
# File 'lib/aws-sdk-appsync/client.rb', line 2815 def list_graphql_apis(params = {}, = {}) req = build_request(:list_graphql_apis, params) req.send_request() end |
#list_resolvers(params = {}) ⇒ Types::ListResolversResponse
Lists the resolvers for a given API and type.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2881 2882 2883 2884 |
# File 'lib/aws-sdk-appsync/client.rb', line 2881 def list_resolvers(params = {}, = {}) req = build_request(:list_resolvers, params) req.send_request() end |
#list_resolvers_by_function(params = {}) ⇒ Types::ListResolversByFunctionResponse
List the resolvers that are associated with a specific function.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2947 2948 2949 2950 |
# File 'lib/aws-sdk-appsync/client.rb', line 2947 def list_resolvers_by_function(params = {}, = {}) req = build_request(:list_resolvers_by_function, params) req.send_request() end |
#list_source_api_associations(params = {}) ⇒ Types::ListSourceApiAssociationsResponse
Lists the ‘SourceApiAssociationSummary` data.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2996 2997 2998 2999 |
# File 'lib/aws-sdk-appsync/client.rb', line 2996 def list_source_api_associations(params = {}, = {}) req = build_request(:list_source_api_associations, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags for a resource.
3025 3026 3027 3028 |
# File 'lib/aws-sdk-appsync/client.rb', line 3025 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#list_types(params = {}) ⇒ Types::ListTypesResponse
Lists the types for a given API.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3076 3077 3078 3079 |
# File 'lib/aws-sdk-appsync/client.rb', line 3076 def list_types(params = {}, = {}) req = build_request(:list_types, params) req.send_request() end |
#list_types_by_association(params = {}) ⇒ Types::ListTypesByAssociationResponse
Lists ‘Type` objects by the source API association ID.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3136 3137 3138 3139 |
# File 'lib/aws-sdk-appsync/client.rb', line 3136 def list_types_by_association(params = {}, = {}) req = build_request(:list_types_by_association, params) req.send_request() end |
#put_graphql_api_environment_variables(params = {}) ⇒ Types::PutGraphqlApiEnvironmentVariablesResponse
Creates a list of environmental variables in an API by its ID value.
When creating an environmental variable, it must follow the constraints below:
-
Both JavaScript and VTL templates support environmental variables.
-
Environmental variables are not evaluated before function invocation.
-
Environmental variables only support string values.
-
Any defined value in an environmental variable is considered a string literal and not expanded.
-
Variable evaluations should ideally be performed in the function code.
When creating an environmental variable key-value pair, it must follow the additional constraints below:
-
Keys must begin with a letter.
-
Keys must be at least two characters long.
-
Keys can only contain letters, numbers, and the underscore character (_).
-
Values can be up to 512 characters long.
-
You can configure up to 50 key-value pairs in a GraphQL API.
You can create a list of environmental variables by adding it to the ‘environmentVariables` payload as a list in the format `…`. Note that each call of the `PutGraphqlApiEnvironmentVariables` action will result in the overwriting of the existing environmental variable list of that API. This means the existing environmental variables will be lost. To avoid this, you must include all existing and new environmental variables in the list each time you call this action.
3234 3235 3236 3237 |
# File 'lib/aws-sdk-appsync/client.rb', line 3234 def put_graphql_api_environment_variables(params = {}, = {}) req = build_request(:put_graphql_api_environment_variables, params) req.send_request() end |
#start_data_source_introspection(params = {}) ⇒ Types::StartDataSourceIntrospectionResponse
Creates a new introspection. Returns the ‘introspectionId` of the new introspection after its creation.
3271 3272 3273 3274 |
# File 'lib/aws-sdk-appsync/client.rb', line 3271 def start_data_source_introspection(params = {}, = {}) req = build_request(:start_data_source_introspection, params) req.send_request() end |
#start_schema_creation(params = {}) ⇒ Types::StartSchemaCreationResponse
Adds a new schema to your GraphQL API.
This operation is asynchronous. Use to determine when it has completed.
3306 3307 3308 3309 |
# File 'lib/aws-sdk-appsync/client.rb', line 3306 def start_schema_creation(params = {}, = {}) req = build_request(:start_schema_creation, params) req.send_request() end |
#start_schema_merge(params = {}) ⇒ Types::StartSchemaMergeResponse
Initiates a merge operation. Returns a status that shows the result of the merge operation.
3344 3345 3346 3347 |
# File 'lib/aws-sdk-appsync/client.rb', line 3344 def start_schema_merge(params = {}, = {}) req = build_request(:start_schema_merge, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Tags a resource with user-supplied tags.
3372 3373 3374 3375 |
# File 'lib/aws-sdk-appsync/client.rb', line 3372 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Untags a resource.
3398 3399 3400 3401 |
# File 'lib/aws-sdk-appsync/client.rb', line 3398 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_api_cache(params = {}) ⇒ Types::UpdateApiCacheResponse
Updates the cache for the GraphQL API.
3504 3505 3506 3507 |
# File 'lib/aws-sdk-appsync/client.rb', line 3504 def update_api_cache(params = {}, = {}) req = build_request(:update_api_cache, params) req.send_request() end |
#update_api_key(params = {}) ⇒ Types::UpdateApiKeyResponse
Updates an API key. You can update the key as long as it’s not deleted.
3550 3551 3552 3553 |
# File 'lib/aws-sdk-appsync/client.rb', line 3550 def update_api_key(params = {}, = {}) req = build_request(:update_api_key, params) req.send_request() end |
#update_data_source(params = {}) ⇒ Types::UpdateDataSourceResponse
Updates a ‘DataSource` object.
3704 3705 3706 3707 |
# File 'lib/aws-sdk-appsync/client.rb', line 3704 def update_data_source(params = {}, = {}) req = build_request(:update_data_source, params) req.send_request() end |
#update_domain_name(params = {}) ⇒ Types::UpdateDomainNameResponse
Updates a custom ‘DomainName` object.
3740 3741 3742 3743 |
# File 'lib/aws-sdk-appsync/client.rb', line 3740 def update_domain_name(params = {}, = {}) req = build_request(:update_domain_name, params) req.send_request() end |
#update_function(params = {}) ⇒ Types::UpdateFunctionResponse
Updates a ‘Function` object.
3846 3847 3848 3849 |
# File 'lib/aws-sdk-appsync/client.rb', line 3846 def update_function(params = {}, = {}) req = build_request(:update_function, params) req.send_request() end |
#update_graphql_api(params = {}) ⇒ Types::UpdateGraphqlApiResponse
Updates a ‘GraphqlApi` object.
4053 4054 4055 4056 |
# File 'lib/aws-sdk-appsync/client.rb', line 4053 def update_graphql_api(params = {}, = {}) req = build_request(:update_graphql_api, params) req.send_request() end |
#update_resolver(params = {}) ⇒ Types::UpdateResolverResponse
Updates a ‘Resolver` object.
4195 4196 4197 4198 |
# File 'lib/aws-sdk-appsync/client.rb', line 4195 def update_resolver(params = {}, = {}) req = build_request(:update_resolver, params) req.send_request() end |
#update_source_api_association(params = {}) ⇒ Types::UpdateSourceApiAssociationResponse
Updates some of the configuration choices of a particular source API association.
4253 4254 4255 4256 |
# File 'lib/aws-sdk-appsync/client.rb', line 4253 def update_source_api_association(params = {}, = {}) req = build_request(:update_source_api_association, params) req.send_request() end |
#update_type(params = {}) ⇒ Types::UpdateTypeResponse
Updates a ‘Type` object.
4297 4298 4299 4300 |
# File 'lib/aws-sdk-appsync/client.rb', line 4297 def update_type(params = {}, = {}) req = build_request(:update_type, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
4326 4327 4328 |
# File 'lib/aws-sdk-appsync/client.rb', line 4326 def waiter_names [] end |