Struct aws_sdk_appsync::Client
source · pub struct Client { /* private fields */ }Expand description
Client for AWS AppSync
Client for invoking operations on AWS AppSync. Each operation on AWS AppSync is a method on this
this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.
Constructing a Client
A Config is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env() instead, which returns a ConfigLoader that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_appsync::Client::new(&config);Occasionally, SDKs may have additional service-specific that can be set on the Config that
is absent from SdkConfig, or slightly different settings for a specific client may be desired.
The Config struct implements From<&SdkConfig>, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_appsync::config::Builder::from(&sdk_config)
.some_service_specific_setting("value")
.build();See the aws-config docs and Config for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
Using the Client
A client has a function for every operation that can be performed by the service.
For example, the AssociateApi operation has
a Client::associate_api, function which returns a builder for that operation.
The fluent builder ultimately has a send() function that returns an async future that
returns a result, as illustrated below:
let result = client.associate_api()
.domain_name("example")
.send()
.await;The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize module for more
information.
Implementations§
source§impl Client
impl Client
sourcepub fn associate_api(&self) -> AssociateApiFluentBuilder
pub fn associate_api(&self) -> AssociateApiFluentBuilder
Constructs a fluent builder for the AssociateApi operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):The domain name.
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID. Private APIs can not be associated with custom domains.
- On success, responds with
AssociateApiOutputwith field(s):api_association(Option<ApiAssociation>):The
ApiAssociationobject.
- On failure, responds with
SdkError<AssociateApiError>
source§impl Client
impl Client
sourcepub fn associate_merged_graphql_api(
&self
) -> AssociateMergedGraphqlApiFluentBuilder
pub fn associate_merged_graphql_api( &self ) -> AssociateMergedGraphqlApiFluentBuilder
Constructs a fluent builder for the AssociateMergedGraphqlApi operation.
- The fluent builder is configurable:
source_api_identifier(impl Into<String>)/set_source_api_identifier(Option<String>):The identifier of the AppSync Source API. This is generated by the AppSync service. In most cases, source APIs (especially in your account) only require the API ID value or ARN of the source API. However, source APIs from other accounts (cross-account use cases) strictly require the full resource ARN of the source API.
merged_api_identifier(impl Into<String>)/set_merged_api_identifier(Option<String>):The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
description(impl Into<String>)/set_description(Option<String>):The description field.
source_api_association_config(SourceApiAssociationConfig)/set_source_api_association_config(Option<SourceApiAssociationConfig>):The
SourceApiAssociationConfigobject data.
- On success, responds with
AssociateMergedGraphqlApiOutputwith field(s):source_api_association(Option<SourceApiAssociation>):The
SourceApiAssociationobject data.
- On failure, responds with
SdkError<AssociateMergedGraphqlApiError>
source§impl Client
impl Client
sourcepub fn associate_source_graphql_api(
&self
) -> AssociateSourceGraphqlApiFluentBuilder
pub fn associate_source_graphql_api( &self ) -> AssociateSourceGraphqlApiFluentBuilder
Constructs a fluent builder for the AssociateSourceGraphqlApi operation.
- The fluent builder is configurable:
merged_api_identifier(impl Into<String>)/set_merged_api_identifier(Option<String>):The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
source_api_identifier(impl Into<String>)/set_source_api_identifier(Option<String>):The identifier of the AppSync Source API. This is generated by the AppSync service. In most cases, source APIs (especially in your account) only require the API ID value or ARN of the source API. However, source APIs from other accounts (cross-account use cases) strictly require the full resource ARN of the source API.
description(impl Into<String>)/set_description(Option<String>):The description field.
source_api_association_config(SourceApiAssociationConfig)/set_source_api_association_config(Option<SourceApiAssociationConfig>):The
SourceApiAssociationConfigobject data.
- On success, responds with
AssociateSourceGraphqlApiOutputwith field(s):source_api_association(Option<SourceApiAssociation>):The
SourceApiAssociationobject data.
- On failure, responds with
SdkError<AssociateSourceGraphqlApiError>
source§impl Client
impl Client
sourcepub fn create_api_cache(&self) -> CreateApiCacheFluentBuilder
pub fn create_api_cache(&self) -> CreateApiCacheFluentBuilder
Constructs a fluent builder for the CreateApiCache operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The GraphQL API ID.
ttl(i64)/set_ttl(Option<i64>):TTL in seconds for cache entries.
Valid values are 1–3,600 seconds.
transit_encryption_enabled(bool)/set_transit_encryption_enabled(Option<bool>):Transit encryption flag when connecting to cache. You cannot update this setting after creation.
at_rest_encryption_enabled(bool)/set_at_rest_encryption_enabled(Option<bool>):At-rest encryption flag for cache. You cannot update this setting after creation.
api_caching_behavior(ApiCachingBehavior)/set_api_caching_behavior(Option<ApiCachingBehavior>):Caching behavior.
-
FULL_REQUEST_CACHING: All requests are fully cached.
-
PER_RESOLVER_CACHING: Individual resolvers that you specify are cached.
-
r#type(ApiCacheType)/set_type(Option<ApiCacheType>):The cache instance type. Valid values are
-
SMALL -
MEDIUM -
LARGE -
XLARGE -
LARGE_2X -
LARGE_4X -
LARGE_8X(not available in all regions) -
LARGE_12X
Historically, instance types were identified by an EC2-style value. As of July 2020, this is deprecated, and the generic identifiers above should be used.
The following legacy instance types are available, but their use is discouraged:
-
T2_SMALL: A t2.small instance type.
-
T2_MEDIUM: A t2.medium instance type.
-
R4_LARGE: A r4.large instance type.
-
R4_XLARGE: A r4.xlarge instance type.
-
R4_2XLARGE: A r4.2xlarge instance type.
-
R4_4XLARGE: A r4.4xlarge instance type.
-
R4_8XLARGE: A r4.8xlarge instance type.
-
- On success, responds with
CreateApiCacheOutputwith field(s):api_cache(Option<ApiCache>):The
ApiCacheobject.
- On failure, responds with
SdkError<CreateApiCacheError>
source§impl Client
impl Client
sourcepub fn create_api_key(&self) -> CreateApiKeyFluentBuilder
pub fn create_api_key(&self) -> CreateApiKeyFluentBuilder
Constructs a fluent builder for the CreateApiKey operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The ID for your GraphQL API.
description(impl Into<String>)/set_description(Option<String>):A description of the purpose of the API key.
expires(i64)/set_expires(Option<i64>):From the creation time, the time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour. The default value for this parameter is 7 days from creation time. For more information, see .
- On success, responds with
CreateApiKeyOutputwith field(s):api_key(Option<ApiKey>):The API key.
- On failure, responds with
SdkError<CreateApiKeyError>
source§impl Client
impl Client
sourcepub fn create_data_source(&self) -> CreateDataSourceFluentBuilder
pub fn create_data_source(&self) -> CreateDataSourceFluentBuilder
Constructs a fluent builder for the CreateDataSource operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID for the GraphQL API for the
DataSource.name(impl Into<String>)/set_name(Option<String>):A user-supplied name for the
DataSource.description(impl Into<String>)/set_description(Option<String>):A description of the
DataSource.r#type(DataSourceType)/set_type(Option<DataSourceType>):The type of the
DataSource.service_role_arn(impl Into<String>)/set_service_role_arn(Option<String>):The Identity and Access Management (IAM) service role Amazon Resource Name (ARN) for the data source. The system assumes this role when accessing the data source.
dynamodb_config(DynamodbDataSourceConfig)/set_dynamodb_config(Option<DynamodbDataSourceConfig>):Amazon DynamoDB settings.
lambda_config(LambdaDataSourceConfig)/set_lambda_config(Option<LambdaDataSourceConfig>):Lambda settings.
elasticsearch_config(ElasticsearchDataSourceConfig)/set_elasticsearch_config(Option<ElasticsearchDataSourceConfig>):Amazon OpenSearch Service settings.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. For new data sources, use
CreateDataSourceRequest$openSearchServiceConfigto create an OpenSearch data source.open_search_service_config(OpenSearchServiceDataSourceConfig)/set_open_search_service_config(Option<OpenSearchServiceDataSourceConfig>):Amazon OpenSearch Service settings.
http_config(HttpDataSourceConfig)/set_http_config(Option<HttpDataSourceConfig>):HTTP endpoint settings.
relational_database_config(RelationalDatabaseDataSourceConfig)/set_relational_database_config(Option<RelationalDatabaseDataSourceConfig>):Relational database settings.
event_bridge_config(EventBridgeDataSourceConfig)/set_event_bridge_config(Option<EventBridgeDataSourceConfig>):Amazon EventBridge settings.
- On success, responds with
CreateDataSourceOutputwith field(s):data_source(Option<DataSource>):The
DataSourceobject.
- On failure, responds with
SdkError<CreateDataSourceError>
source§impl Client
impl Client
sourcepub fn create_domain_name(&self) -> CreateDomainNameFluentBuilder
pub fn create_domain_name(&self) -> CreateDomainNameFluentBuilder
Constructs a fluent builder for the CreateDomainName operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):The domain name.
certificate_arn(impl Into<String>)/set_certificate_arn(Option<String>):The Amazon Resource Name (ARN) of the certificate. This can be an Certificate Manager (ACM) certificate or an Identity and Access Management (IAM) server certificate.
description(impl Into<String>)/set_description(Option<String>):A description of the
DomainName.
- On success, responds with
CreateDomainNameOutputwith field(s):domain_name_config(Option<DomainNameConfig>):The configuration for the
DomainName.
- On failure, responds with
SdkError<CreateDomainNameError>
source§impl Client
impl Client
sourcepub fn create_function(&self) -> CreateFunctionFluentBuilder
pub fn create_function(&self) -> CreateFunctionFluentBuilder
Constructs a fluent builder for the CreateFunction operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The GraphQL API ID.
name(impl Into<String>)/set_name(Option<String>):The
Functionname. The function name does not have to be unique.description(impl Into<String>)/set_description(Option<String>):The
Functiondescription.data_source_name(impl Into<String>)/set_data_source_name(Option<String>):The
FunctionDataSourcename.request_mapping_template(impl Into<String>)/set_request_mapping_template(Option<String>):The
Functionrequest mapping template. Functions support only the 2018-05-29 version of the request mapping template.response_mapping_template(impl Into<String>)/set_response_mapping_template(Option<String>):The
Functionresponse mapping template.function_version(impl Into<String>)/set_function_version(Option<String>):The
versionof the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, thefunctionVersionis required.sync_config(SyncConfig)/set_sync_config(Option<SyncConfig>):Describes a Sync configuration for a resolver.
Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.
max_batch_size(i32)/set_max_batch_size(Option<i32>):The maximum batching size for a resolver.
runtime(AppSyncRuntime)/set_runtime(Option<AppSyncRuntime>):Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.
code(impl Into<String>)/set_code(Option<String>):The
functioncode that contains the request and response functions. When code is used, theruntimeis required. Theruntimevalue must beAPPSYNC_JS.
- On success, responds with
CreateFunctionOutputwith field(s):function_configuration(Option<FunctionConfiguration>):The
Functionobject.
- On failure, responds with
SdkError<CreateFunctionError>
source§impl Client
impl Client
sourcepub fn create_graphql_api(&self) -> CreateGraphqlApiFluentBuilder
pub fn create_graphql_api(&self) -> CreateGraphqlApiFluentBuilder
Constructs a fluent builder for the CreateGraphqlApi operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):A user-supplied name for the
GraphqlApi.log_config(LogConfig)/set_log_config(Option<LogConfig>):The Amazon CloudWatch Logs configuration.
authentication_type(AuthenticationType)/set_authentication_type(Option<AuthenticationType>):The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.
user_pool_config(UserPoolConfig)/set_user_pool_config(Option<UserPoolConfig>):The Amazon Cognito user pool configuration.
open_id_connect_config(OpenIdConnectConfig)/set_open_id_connect_config(Option<OpenIdConnectConfig>):The OIDC configuration.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap<String, String>>):A
TagMapobject.additional_authentication_providers(AdditionalAuthenticationProvider)/set_additional_authentication_providers(Option<Vec<AdditionalAuthenticationProvider>>):A list of additional authentication providers for the
GraphqlApiAPI.xray_enabled(bool)/set_xray_enabled(Option<bool>):A flag indicating whether to use X-Ray tracing for the
GraphqlApi.lambda_authorizer_config(LambdaAuthorizerConfig)/set_lambda_authorizer_config(Option<LambdaAuthorizerConfig>):Configuration for Lambda function authorization.
visibility(GraphQlApiVisibility)/set_visibility(Option<GraphQlApiVisibility>):Sets the value of the GraphQL API to public (
GLOBAL) or private (PRIVATE). If no value is provided, the visibility will be set toGLOBALby default. This value cannot be changed once the API has been created.api_type(GraphQlApiType)/set_api_type(Option<GraphQlApiType>):The value that indicates whether the GraphQL API is a standard API (
GRAPHQL) or merged API (MERGED).merged_api_execution_role_arn(impl Into<String>)/set_merged_api_execution_role_arn(Option<String>):The Identity and Access Management service role ARN for a merged API. The AppSync service assumes this role on behalf of the Merged API to validate access to source APIs at runtime and to prompt the
AUTO_MERGEto update the merged API endpoint with the source API changes automatically.owner_contact(impl Into<String>)/set_owner_contact(Option<String>):The owner contact information for an API resource.
This field accepts any string input with a length of 0 - 256 characters.
- On success, responds with
CreateGraphqlApiOutputwith field(s):graphql_api(Option<GraphqlApi>):The
GraphqlApi.
- On failure, responds with
SdkError<CreateGraphqlApiError>
source§impl Client
impl Client
sourcepub fn create_resolver(&self) -> CreateResolverFluentBuilder
pub fn create_resolver(&self) -> CreateResolverFluentBuilder
Constructs a fluent builder for the CreateResolver operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The ID for the GraphQL API for which the resolver is being created.
type_name(impl Into<String>)/set_type_name(Option<String>):The name of the
Type.field_name(impl Into<String>)/set_field_name(Option<String>):The name of the field to attach the resolver to.
data_source_name(impl Into<String>)/set_data_source_name(Option<String>):The name of the data source for which the resolver is being created.
request_mapping_template(impl Into<String>)/set_request_mapping_template(Option<String>):The mapping template to use for requests.
A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).
VTL request mapping templates are optional when using an Lambda data source. For all other data sources, VTL request and response mapping templates are required.
response_mapping_template(impl Into<String>)/set_response_mapping_template(Option<String>):The mapping template to use for responses from the data source.
kind(ResolverKind)/set_kind(Option<ResolverKind>):The resolver type.
-
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
-
PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of
Functionobjects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.
-
pipeline_config(PipelineConfig)/set_pipeline_config(Option<PipelineConfig>):The
PipelineConfig.sync_config(SyncConfig)/set_sync_config(Option<SyncConfig>):The
SyncConfigfor a resolver attached to a versioned data source.caching_config(CachingConfig)/set_caching_config(Option<CachingConfig>):The caching configuration for the resolver.
max_batch_size(i32)/set_max_batch_size(Option<i32>):The maximum batching size for a resolver.
runtime(AppSyncRuntime)/set_runtime(Option<AppSyncRuntime>):Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.
code(impl Into<String>)/set_code(Option<String>):The
resolvercode that contains the request and response functions. When code is used, theruntimeis required. Theruntimevalue must beAPPSYNC_JS.
- On success, responds with
CreateResolverOutputwith field(s):resolver(Option<Resolver>):The
Resolverobject.
- On failure, responds with
SdkError<CreateResolverError>
source§impl Client
impl Client
sourcepub fn create_type(&self) -> CreateTypeFluentBuilder
pub fn create_type(&self) -> CreateTypeFluentBuilder
Constructs a fluent builder for the CreateType operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
definition(impl Into<String>)/set_definition(Option<String>):The type definition, in GraphQL Schema Definition Language (SDL) format.
For more information, see the GraphQL SDL documentation.
format(TypeDefinitionFormat)/set_format(Option<TypeDefinitionFormat>):The type format: SDL or JSON.
- On success, responds with
CreateTypeOutputwith field(s):r#type(Option<Type>):The
Typeobject.
- On failure, responds with
SdkError<CreateTypeError>
source§impl Client
impl Client
sourcepub fn delete_api_cache(&self) -> DeleteApiCacheFluentBuilder
pub fn delete_api_cache(&self) -> DeleteApiCacheFluentBuilder
Constructs a fluent builder for the DeleteApiCache operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
- On success, responds with
DeleteApiCacheOutput - On failure, responds with
SdkError<DeleteApiCacheError>
source§impl Client
impl Client
sourcepub fn delete_api_key(&self) -> DeleteApiKeyFluentBuilder
pub fn delete_api_key(&self) -> DeleteApiKeyFluentBuilder
Constructs a fluent builder for the DeleteApiKey operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
id(impl Into<String>)/set_id(Option<String>):The ID for the API key.
- On success, responds with
DeleteApiKeyOutput - On failure, responds with
SdkError<DeleteApiKeyError>
source§impl Client
impl Client
sourcepub fn delete_data_source(&self) -> DeleteDataSourceFluentBuilder
pub fn delete_data_source(&self) -> DeleteDataSourceFluentBuilder
Constructs a fluent builder for the DeleteDataSource operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
name(impl Into<String>)/set_name(Option<String>):The name of the data source.
- On success, responds with
DeleteDataSourceOutput - On failure, responds with
SdkError<DeleteDataSourceError>
source§impl Client
impl Client
sourcepub fn delete_domain_name(&self) -> DeleteDomainNameFluentBuilder
pub fn delete_domain_name(&self) -> DeleteDomainNameFluentBuilder
Constructs a fluent builder for the DeleteDomainName operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):The domain name.
- On success, responds with
DeleteDomainNameOutput - On failure, responds with
SdkError<DeleteDomainNameError>
source§impl Client
impl Client
sourcepub fn delete_function(&self) -> DeleteFunctionFluentBuilder
pub fn delete_function(&self) -> DeleteFunctionFluentBuilder
Constructs a fluent builder for the DeleteFunction operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The GraphQL API ID.
function_id(impl Into<String>)/set_function_id(Option<String>):The
FunctionID.
- On success, responds with
DeleteFunctionOutput - On failure, responds with
SdkError<DeleteFunctionError>
source§impl Client
impl Client
sourcepub fn delete_graphql_api(&self) -> DeleteGraphqlApiFluentBuilder
pub fn delete_graphql_api(&self) -> DeleteGraphqlApiFluentBuilder
Constructs a fluent builder for the DeleteGraphqlApi operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
- On success, responds with
DeleteGraphqlApiOutput - On failure, responds with
SdkError<DeleteGraphqlApiError>
source§impl Client
impl Client
sourcepub fn delete_resolver(&self) -> DeleteResolverFluentBuilder
pub fn delete_resolver(&self) -> DeleteResolverFluentBuilder
Constructs a fluent builder for the DeleteResolver operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
type_name(impl Into<String>)/set_type_name(Option<String>):The name of the resolver type.
field_name(impl Into<String>)/set_field_name(Option<String>):The resolver field name.
- On success, responds with
DeleteResolverOutput - On failure, responds with
SdkError<DeleteResolverError>
source§impl Client
impl Client
sourcepub fn delete_type(&self) -> DeleteTypeFluentBuilder
pub fn delete_type(&self) -> DeleteTypeFluentBuilder
Constructs a fluent builder for the DeleteType operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
type_name(impl Into<String>)/set_type_name(Option<String>):The type name.
- On success, responds with
DeleteTypeOutput - On failure, responds with
SdkError<DeleteTypeError>
source§impl Client
impl Client
sourcepub fn disassociate_api(&self) -> DisassociateApiFluentBuilder
pub fn disassociate_api(&self) -> DisassociateApiFluentBuilder
Constructs a fluent builder for the DisassociateApi operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):The domain name.
- On success, responds with
DisassociateApiOutput - On failure, responds with
SdkError<DisassociateApiError>
source§impl Client
impl Client
sourcepub fn disassociate_merged_graphql_api(
&self
) -> DisassociateMergedGraphqlApiFluentBuilder
pub fn disassociate_merged_graphql_api( &self ) -> DisassociateMergedGraphqlApiFluentBuilder
Constructs a fluent builder for the DisassociateMergedGraphqlApi operation.
- The fluent builder is configurable:
source_api_identifier(impl Into<String>)/set_source_api_identifier(Option<String>):The identifier of the AppSync Source API. This is generated by the AppSync service. In most cases, source APIs (especially in your account) only require the API ID value or ARN of the source API. However, source APIs from other accounts (cross-account use cases) strictly require the full resource ARN of the source API.
association_id(impl Into<String>)/set_association_id(Option<String>):The ID generated by the AppSync service for the source API association.
- On success, responds with
DisassociateMergedGraphqlApiOutputwith field(s):source_api_association_status(Option<SourceApiAssociationStatus>):The state of the source API association.
- On failure, responds with
SdkError<DisassociateMergedGraphqlApiError>
source§impl Client
impl Client
sourcepub fn disassociate_source_graphql_api(
&self
) -> DisassociateSourceGraphqlApiFluentBuilder
pub fn disassociate_source_graphql_api( &self ) -> DisassociateSourceGraphqlApiFluentBuilder
Constructs a fluent builder for the DisassociateSourceGraphqlApi operation.
- The fluent builder is configurable:
merged_api_identifier(impl Into<String>)/set_merged_api_identifier(Option<String>):The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
association_id(impl Into<String>)/set_association_id(Option<String>):The ID generated by the AppSync service for the source API association.
- On success, responds with
DisassociateSourceGraphqlApiOutputwith field(s):source_api_association_status(Option<SourceApiAssociationStatus>):The state of the source API association.
- On failure, responds with
SdkError<DisassociateSourceGraphqlApiError>
source§impl Client
impl Client
sourcepub fn evaluate_code(&self) -> EvaluateCodeFluentBuilder
pub fn evaluate_code(&self) -> EvaluateCodeFluentBuilder
Constructs a fluent builder for the EvaluateCode operation.
- The fluent builder is configurable:
runtime(AppSyncRuntime)/set_runtime(Option<AppSyncRuntime>):The runtime to be used when evaluating the code. Currently, only the
APPSYNC_JSruntime is supported.code(impl Into<String>)/set_code(Option<String>):The code definition to be evaluated. Note that
codeandruntimeare both required for this action. Theruntimevalue must beAPPSYNC_JS.context(impl Into<String>)/set_context(Option<String>):The map that holds all of the contextual information for your resolver invocation. A
contextis required for this action.function(impl Into<String>)/set_function(Option<String>):The function within the code to be evaluated. If provided, the valid values are
requestandresponse.
- On success, responds with
EvaluateCodeOutputwith field(s):evaluation_result(Option<String>):The result of the evaluation operation.
error(Option<EvaluateCodeErrorDetail>):Contains the payload of the response error.
logs(Option<Vec<String>>):A list of logs that were generated by calls to
util.log.infoandutil.log.errorin the evaluated code.
- On failure, responds with
SdkError<EvaluateCodeError>
source§impl Client
impl Client
sourcepub fn evaluate_mapping_template(&self) -> EvaluateMappingTemplateFluentBuilder
pub fn evaluate_mapping_template(&self) -> EvaluateMappingTemplateFluentBuilder
Constructs a fluent builder for the EvaluateMappingTemplate operation.
- The fluent builder is configurable:
template(impl Into<String>)/set_template(Option<String>):The mapping template; this can be a request or response template. A
templateis required for this action.context(impl Into<String>)/set_context(Option<String>):The map that holds all of the contextual information for your resolver invocation. A
contextis required for this action.
- On success, responds with
EvaluateMappingTemplateOutputwith field(s):evaluation_result(Option<String>):The mapping template; this can be a request or response template.
error(Option<ErrorDetail>):The
ErrorDetailobject.logs(Option<Vec<String>>):A list of logs that were generated by calls to
util.log.infoandutil.log.errorin the evaluated code.
- On failure, responds with
SdkError<EvaluateMappingTemplateError>
source§impl Client
impl Client
sourcepub fn flush_api_cache(&self) -> FlushApiCacheFluentBuilder
pub fn flush_api_cache(&self) -> FlushApiCacheFluentBuilder
Constructs a fluent builder for the FlushApiCache operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
- On success, responds with
FlushApiCacheOutput - On failure, responds with
SdkError<FlushApiCacheError>
source§impl Client
impl Client
sourcepub fn get_api_association(&self) -> GetApiAssociationFluentBuilder
pub fn get_api_association(&self) -> GetApiAssociationFluentBuilder
Constructs a fluent builder for the GetApiAssociation operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):The domain name.
- On success, responds with
GetApiAssociationOutputwith field(s):api_association(Option<ApiAssociation>):The
ApiAssociationobject.
- On failure, responds with
SdkError<GetApiAssociationError>
source§impl Client
impl Client
sourcepub fn get_api_cache(&self) -> GetApiCacheFluentBuilder
pub fn get_api_cache(&self) -> GetApiCacheFluentBuilder
Constructs a fluent builder for the GetApiCache operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
- On success, responds with
GetApiCacheOutputwith field(s):api_cache(Option<ApiCache>):The
ApiCacheobject.
- On failure, responds with
SdkError<GetApiCacheError>
source§impl Client
impl Client
sourcepub fn get_data_source(&self) -> GetDataSourceFluentBuilder
pub fn get_data_source(&self) -> GetDataSourceFluentBuilder
Constructs a fluent builder for the GetDataSource operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
name(impl Into<String>)/set_name(Option<String>):The name of the data source.
- On success, responds with
GetDataSourceOutputwith field(s):data_source(Option<DataSource>):The
DataSourceobject.
- On failure, responds with
SdkError<GetDataSourceError>
source§impl Client
impl Client
sourcepub fn get_domain_name(&self) -> GetDomainNameFluentBuilder
pub fn get_domain_name(&self) -> GetDomainNameFluentBuilder
Constructs a fluent builder for the GetDomainName operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):The domain name.
- On success, responds with
GetDomainNameOutputwith field(s):domain_name_config(Option<DomainNameConfig>):The configuration for the
DomainName.
- On failure, responds with
SdkError<GetDomainNameError>
source§impl Client
impl Client
sourcepub fn get_function(&self) -> GetFunctionFluentBuilder
pub fn get_function(&self) -> GetFunctionFluentBuilder
Constructs a fluent builder for the GetFunction operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The GraphQL API ID.
function_id(impl Into<String>)/set_function_id(Option<String>):The
FunctionID.
- On success, responds with
GetFunctionOutputwith field(s):function_configuration(Option<FunctionConfiguration>):The
Functionobject.
- On failure, responds with
SdkError<GetFunctionError>
source§impl Client
impl Client
sourcepub fn get_graphql_api(&self) -> GetGraphqlApiFluentBuilder
pub fn get_graphql_api(&self) -> GetGraphqlApiFluentBuilder
Constructs a fluent builder for the GetGraphqlApi operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID for the GraphQL API.
- On success, responds with
GetGraphqlApiOutputwith field(s):graphql_api(Option<GraphqlApi>):The
GraphqlApiobject.
- On failure, responds with
SdkError<GetGraphqlApiError>
source§impl Client
impl Client
sourcepub fn get_introspection_schema(&self) -> GetIntrospectionSchemaFluentBuilder
pub fn get_introspection_schema(&self) -> GetIntrospectionSchemaFluentBuilder
Constructs a fluent builder for the GetIntrospectionSchema operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
format(OutputType)/set_format(Option<OutputType>):The schema format: SDL or JSON.
include_directives(bool)/set_include_directives(Option<bool>):A flag that specifies whether the schema introspection should contain directives.
- On success, responds with
GetIntrospectionSchemaOutputwith field(s):schema(Option<Blob>):The schema, in GraphQL Schema Definition Language (SDL) format.
For more information, see the GraphQL SDL documentation.
- On failure, responds with
SdkError<GetIntrospectionSchemaError>
source§impl Client
impl Client
sourcepub fn get_resolver(&self) -> GetResolverFluentBuilder
pub fn get_resolver(&self) -> GetResolverFluentBuilder
Constructs a fluent builder for the GetResolver operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
type_name(impl Into<String>)/set_type_name(Option<String>):The resolver type name.
field_name(impl Into<String>)/set_field_name(Option<String>):The resolver field name.
- On success, responds with
GetResolverOutputwith field(s):resolver(Option<Resolver>):The
Resolverobject.
- On failure, responds with
SdkError<GetResolverError>
source§impl Client
impl Client
sourcepub fn get_schema_creation_status(&self) -> GetSchemaCreationStatusFluentBuilder
pub fn get_schema_creation_status(&self) -> GetSchemaCreationStatusFluentBuilder
Constructs a fluent builder for the GetSchemaCreationStatus operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
- On success, responds with
GetSchemaCreationStatusOutputwith field(s):status(Option<SchemaStatus>):The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). When the schema is in the ACTIVE state, you can add data.
details(Option<String>):Detailed information about the status of the schema creation operation.
- On failure, responds with
SdkError<GetSchemaCreationStatusError>
source§impl Client
impl Client
sourcepub fn get_source_api_association(&self) -> GetSourceApiAssociationFluentBuilder
pub fn get_source_api_association(&self) -> GetSourceApiAssociationFluentBuilder
Constructs a fluent builder for the GetSourceApiAssociation operation.
- The fluent builder is configurable:
merged_api_identifier(impl Into<String>)/set_merged_api_identifier(Option<String>):The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
association_id(impl Into<String>)/set_association_id(Option<String>):The ID generated by the AppSync service for the source API association.
- On success, responds with
GetSourceApiAssociationOutputwith field(s):source_api_association(Option<SourceApiAssociation>):The
SourceApiAssociationobject data.
- On failure, responds with
SdkError<GetSourceApiAssociationError>
source§impl Client
impl Client
sourcepub fn get_type(&self) -> GetTypeFluentBuilder
pub fn get_type(&self) -> GetTypeFluentBuilder
Constructs a fluent builder for the GetType operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
type_name(impl Into<String>)/set_type_name(Option<String>):The type name.
format(TypeDefinitionFormat)/set_format(Option<TypeDefinitionFormat>):The type format: SDL or JSON.
- On success, responds with
GetTypeOutputwith field(s):r#type(Option<Type>):The
Typeobject.
- On failure, responds with
SdkError<GetTypeError>
source§impl Client
impl Client
sourcepub fn list_api_keys(&self) -> ListApiKeysFluentBuilder
pub fn list_api_keys(&self) -> ListApiKeysFluentBuilder
Constructs a fluent builder for the ListApiKeys operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
next_token(impl Into<String>)/set_next_token(Option<String>):An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results that you want the request to return.
- On success, responds with
ListApiKeysOutputwith field(s):api_keys(Option<Vec<ApiKey>>):The
ApiKeyobjects.next_token(Option<String>):An identifier to pass in the next request to this operation to return the next set of items in the list.
- On failure, responds with
SdkError<ListApiKeysError>
source§impl Client
impl Client
sourcepub fn list_data_sources(&self) -> ListDataSourcesFluentBuilder
pub fn list_data_sources(&self) -> ListDataSourcesFluentBuilder
Constructs a fluent builder for the ListDataSources operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
next_token(impl Into<String>)/set_next_token(Option<String>):An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results that you want the request to return.
- On success, responds with
ListDataSourcesOutputwith field(s):data_sources(Option<Vec<DataSource>>):The
DataSourceobjects.next_token(Option<String>):An identifier to pass in the next request to this operation to return the next set of items in the list.
- On failure, responds with
SdkError<ListDataSourcesError>
source§impl Client
impl Client
sourcepub fn list_domain_names(&self) -> ListDomainNamesFluentBuilder
pub fn list_domain_names(&self) -> ListDomainNamesFluentBuilder
Constructs a fluent builder for the ListDomainNames operation.
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results that you want the request to return.
- On success, responds with
ListDomainNamesOutputwith field(s):domain_name_configs(Option<Vec<DomainNameConfig>>):Lists configurations for multiple domain names.
next_token(Option<String>):An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
- On failure, responds with
SdkError<ListDomainNamesError>
source§impl Client
impl Client
sourcepub fn list_functions(&self) -> ListFunctionsFluentBuilder
pub fn list_functions(&self) -> ListFunctionsFluentBuilder
Constructs a fluent builder for the ListFunctions operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The GraphQL API ID.
next_token(impl Into<String>)/set_next_token(Option<String>):An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results that you want the request to return.
- On success, responds with
ListFunctionsOutputwith field(s):functions(Option<Vec<FunctionConfiguration>>):A list of
Functionobjects.next_token(Option<String>):An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
- On failure, responds with
SdkError<ListFunctionsError>
source§impl Client
impl Client
sourcepub fn list_graphql_apis(&self) -> ListGraphqlApisFluentBuilder
pub fn list_graphql_apis(&self) -> ListGraphqlApisFluentBuilder
Constructs a fluent builder for the ListGraphqlApis operation.
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results that you want the request to return.
api_type(GraphQlApiType)/set_api_type(Option<GraphQlApiType>):The value that indicates whether the GraphQL API is a standard API (
GRAPHQL) or merged API (MERGED).owner(Ownership)/set_owner(Option<Ownership>):The account owner of the GraphQL API.
- On success, responds with
ListGraphqlApisOutputwith field(s):graphql_apis(Option<Vec<GraphqlApi>>):The
GraphqlApiobjects.next_token(Option<String>):An identifier to pass in the next request to this operation to return the next set of items in the list.
- On failure, responds with
SdkError<ListGraphqlApisError>
source§impl Client
impl Client
sourcepub fn list_resolvers(&self) -> ListResolversFluentBuilder
pub fn list_resolvers(&self) -> ListResolversFluentBuilder
Constructs a fluent builder for the ListResolvers operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
type_name(impl Into<String>)/set_type_name(Option<String>):The type name.
next_token(impl Into<String>)/set_next_token(Option<String>):An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results that you want the request to return.
- On success, responds with
ListResolversOutputwith field(s):resolvers(Option<Vec<Resolver>>):The
Resolverobjects.next_token(Option<String>):An identifier to pass in the next request to this operation to return the next set of items in the list.
- On failure, responds with
SdkError<ListResolversError>
source§impl Client
impl Client
sourcepub fn list_resolvers_by_function(&self) -> ListResolversByFunctionFluentBuilder
pub fn list_resolvers_by_function(&self) -> ListResolversByFunctionFluentBuilder
Constructs a fluent builder for the ListResolversByFunction operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
function_id(impl Into<String>)/set_function_id(Option<String>):The function ID.
next_token(impl Into<String>)/set_next_token(Option<String>):An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results that you want the request to return.
- On success, responds with
ListResolversByFunctionOutputwith field(s):resolvers(Option<Vec<Resolver>>):The list of resolvers.
next_token(Option<String>):An identifier that you can use to return the next set of items in the list.
- On failure, responds with
SdkError<ListResolversByFunctionError>
source§impl Client
impl Client
sourcepub fn list_source_api_associations(
&self
) -> ListSourceApiAssociationsFluentBuilder
pub fn list_source_api_associations( &self ) -> ListSourceApiAssociationsFluentBuilder
Constructs a fluent builder for the ListSourceApiAssociations operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
next_token(impl Into<String>)/set_next_token(Option<String>):An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results that you want the request to return.
- On success, responds with
ListSourceApiAssociationsOutputwith field(s):source_api_association_summaries(Option<Vec<SourceApiAssociationSummary>>):The
SourceApiAssociationSummaryobject data.next_token(Option<String>):An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
- On failure, responds with
SdkError<ListSourceApiAssociationsError>
source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):The
GraphqlApiAmazon Resource Name (ARN).
- On success, responds with
ListTagsForResourceOutputwith field(s):tags(Option<HashMap<String, String>>):A
TagMapobject.
- On failure, responds with
SdkError<ListTagsForResourceError>
source§impl Client
impl Client
sourcepub fn list_types(&self) -> ListTypesFluentBuilder
pub fn list_types(&self) -> ListTypesFluentBuilder
Constructs a fluent builder for the ListTypes operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
format(TypeDefinitionFormat)/set_format(Option<TypeDefinitionFormat>):The type format: SDL or JSON.
next_token(impl Into<String>)/set_next_token(Option<String>):An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results that you want the request to return.
- On success, responds with
ListTypesOutputwith field(s):types(Option<Vec<Type>>):The
Typeobjects.next_token(Option<String>):An identifier to pass in the next request to this operation to return the next set of items in the list.
- On failure, responds with
SdkError<ListTypesError>
source§impl Client
impl Client
sourcepub fn list_types_by_association(&self) -> ListTypesByAssociationFluentBuilder
pub fn list_types_by_association(&self) -> ListTypesByAssociationFluentBuilder
Constructs a fluent builder for the ListTypesByAssociation operation.
- The fluent builder is configurable:
merged_api_identifier(impl Into<String>)/set_merged_api_identifier(Option<String>):The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
association_id(impl Into<String>)/set_association_id(Option<String>):The ID generated by the AppSync service for the source API association.
format(TypeDefinitionFormat)/set_format(Option<TypeDefinitionFormat>):The format type.
next_token(impl Into<String>)/set_next_token(Option<String>):An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results that you want the request to return.
- On success, responds with
ListTypesByAssociationOutputwith field(s):types(Option<Vec<Type>>):The
Typeobjects.next_token(Option<String>):An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
- On failure, responds with
SdkError<ListTypesByAssociationError>
source§impl Client
impl Client
sourcepub fn start_schema_creation(&self) -> StartSchemaCreationFluentBuilder
pub fn start_schema_creation(&self) -> StartSchemaCreationFluentBuilder
Constructs a fluent builder for the StartSchemaCreation operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
definition(Blob)/set_definition(Option<Blob>):The schema definition, in GraphQL schema language format.
- On success, responds with
StartSchemaCreationOutputwith field(s):status(Option<SchemaStatus>):The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). When the schema is in the ACTIVE state, you can add data.
- On failure, responds with
SdkError<StartSchemaCreationError>
source§impl Client
impl Client
sourcepub fn start_schema_merge(&self) -> StartSchemaMergeFluentBuilder
pub fn start_schema_merge(&self) -> StartSchemaMergeFluentBuilder
Constructs a fluent builder for the StartSchemaMerge operation.
- The fluent builder is configurable:
association_id(impl Into<String>)/set_association_id(Option<String>):The ID generated by the AppSync service for the source API association.
merged_api_identifier(impl Into<String>)/set_merged_api_identifier(Option<String>):The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
- On success, responds with
StartSchemaMergeOutputwith field(s):source_api_association_status(Option<SourceApiAssociationStatus>):The state of the source API association.
- On failure, responds with
SdkError<StartSchemaMergeError>
source§impl Client
impl Client
sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):The
GraphqlApiAmazon Resource Name (ARN).tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap<String, String>>):A
TagMapobject.
- On success, responds with
TagResourceOutput - On failure, responds with
SdkError<TagResourceError>
source§impl Client
impl Client
sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):The
GraphqlApiAmazon Resource Name (ARN).tag_keys(impl Into<String>)/set_tag_keys(Option<Vec<String>>):A list of
TagKeyobjects.
- On success, responds with
UntagResourceOutput - On failure, responds with
SdkError<UntagResourceError>
source§impl Client
impl Client
sourcepub fn update_api_cache(&self) -> UpdateApiCacheFluentBuilder
pub fn update_api_cache(&self) -> UpdateApiCacheFluentBuilder
Constructs a fluent builder for the UpdateApiCache operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The GraphQL API ID.
ttl(i64)/set_ttl(Option<i64>):TTL in seconds for cache entries.
Valid values are 1–3,600 seconds.
api_caching_behavior(ApiCachingBehavior)/set_api_caching_behavior(Option<ApiCachingBehavior>):Caching behavior.
-
FULL_REQUEST_CACHING: All requests are fully cached.
-
PER_RESOLVER_CACHING: Individual resolvers that you specify are cached.
-
r#type(ApiCacheType)/set_type(Option<ApiCacheType>):The cache instance type. Valid values are
-
SMALL -
MEDIUM -
LARGE -
XLARGE -
LARGE_2X -
LARGE_4X -
LARGE_8X(not available in all regions) -
LARGE_12X
Historically, instance types were identified by an EC2-style value. As of July 2020, this is deprecated, and the generic identifiers above should be used.
The following legacy instance types are available, but their use is discouraged:
-
T2_SMALL: A t2.small instance type.
-
T2_MEDIUM: A t2.medium instance type.
-
R4_LARGE: A r4.large instance type.
-
R4_XLARGE: A r4.xlarge instance type.
-
R4_2XLARGE: A r4.2xlarge instance type.
-
R4_4XLARGE: A r4.4xlarge instance type.
-
R4_8XLARGE: A r4.8xlarge instance type.
-
- On success, responds with
UpdateApiCacheOutputwith field(s):api_cache(Option<ApiCache>):The
ApiCacheobject.
- On failure, responds with
SdkError<UpdateApiCacheError>
source§impl Client
impl Client
sourcepub fn update_api_key(&self) -> UpdateApiKeyFluentBuilder
pub fn update_api_key(&self) -> UpdateApiKeyFluentBuilder
Constructs a fluent builder for the UpdateApiKey operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The ID for the GraphQL API.
id(impl Into<String>)/set_id(Option<String>):The API key ID.
description(impl Into<String>)/set_description(Option<String>):A description of the purpose of the API key.
expires(i64)/set_expires(Option<i64>):From the update time, the time after which the API key expires. The date is represented as seconds since the epoch. For more information, see .
- On success, responds with
UpdateApiKeyOutputwith field(s):api_key(Option<ApiKey>):The API key.
- On failure, responds with
SdkError<UpdateApiKeyError>
source§impl Client
impl Client
sourcepub fn update_data_source(&self) -> UpdateDataSourceFluentBuilder
pub fn update_data_source(&self) -> UpdateDataSourceFluentBuilder
Constructs a fluent builder for the UpdateDataSource operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
name(impl Into<String>)/set_name(Option<String>):The new name for the data source.
description(impl Into<String>)/set_description(Option<String>):The new description for the data source.
r#type(DataSourceType)/set_type(Option<DataSourceType>):The new data source type.
service_role_arn(impl Into<String>)/set_service_role_arn(Option<String>):The new service role Amazon Resource Name (ARN) for the data source.
dynamodb_config(DynamodbDataSourceConfig)/set_dynamodb_config(Option<DynamodbDataSourceConfig>):The new Amazon DynamoDB configuration.
lambda_config(LambdaDataSourceConfig)/set_lambda_config(Option<LambdaDataSourceConfig>):The new Lambda configuration.
elasticsearch_config(ElasticsearchDataSourceConfig)/set_elasticsearch_config(Option<ElasticsearchDataSourceConfig>):The new OpenSearch configuration.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. Instead, use
UpdateDataSourceRequest$openSearchServiceConfigto update an OpenSearch data source.open_search_service_config(OpenSearchServiceDataSourceConfig)/set_open_search_service_config(Option<OpenSearchServiceDataSourceConfig>):The new OpenSearch configuration.
http_config(HttpDataSourceConfig)/set_http_config(Option<HttpDataSourceConfig>):The new HTTP endpoint configuration.
relational_database_config(RelationalDatabaseDataSourceConfig)/set_relational_database_config(Option<RelationalDatabaseDataSourceConfig>):The new relational database configuration.
event_bridge_config(EventBridgeDataSourceConfig)/set_event_bridge_config(Option<EventBridgeDataSourceConfig>):The new Amazon EventBridge settings.
- On success, responds with
UpdateDataSourceOutputwith field(s):data_source(Option<DataSource>):The updated
DataSourceobject.
- On failure, responds with
SdkError<UpdateDataSourceError>
source§impl Client
impl Client
sourcepub fn update_domain_name(&self) -> UpdateDomainNameFluentBuilder
pub fn update_domain_name(&self) -> UpdateDomainNameFluentBuilder
Constructs a fluent builder for the UpdateDomainName operation.
- The fluent builder is configurable:
domain_name(impl Into<String>)/set_domain_name(Option<String>):The domain name.
description(impl Into<String>)/set_description(Option<String>):A description of the
DomainName.
- On success, responds with
UpdateDomainNameOutputwith field(s):domain_name_config(Option<DomainNameConfig>):The configuration for the
DomainName.
- On failure, responds with
SdkError<UpdateDomainNameError>
source§impl Client
impl Client
sourcepub fn update_function(&self) -> UpdateFunctionFluentBuilder
pub fn update_function(&self) -> UpdateFunctionFluentBuilder
Constructs a fluent builder for the UpdateFunction operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The GraphQL API ID.
name(impl Into<String>)/set_name(Option<String>):The
Functionname.description(impl Into<String>)/set_description(Option<String>):The
Functiondescription.function_id(impl Into<String>)/set_function_id(Option<String>):The function ID.
data_source_name(impl Into<String>)/set_data_source_name(Option<String>):The
FunctionDataSourcename.request_mapping_template(impl Into<String>)/set_request_mapping_template(Option<String>):The
Functionrequest mapping template. Functions support only the 2018-05-29 version of the request mapping template.response_mapping_template(impl Into<String>)/set_response_mapping_template(Option<String>):The
Functionrequest mapping template.function_version(impl Into<String>)/set_function_version(Option<String>):The
versionof the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, thefunctionVersionis required.sync_config(SyncConfig)/set_sync_config(Option<SyncConfig>):Describes a Sync configuration for a resolver.
Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.
max_batch_size(i32)/set_max_batch_size(Option<i32>):The maximum batching size for a resolver.
runtime(AppSyncRuntime)/set_runtime(Option<AppSyncRuntime>):Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.
code(impl Into<String>)/set_code(Option<String>):The
functioncode that contains the request and response functions. When code is used, theruntimeis required. Theruntimevalue must beAPPSYNC_JS.
- On success, responds with
UpdateFunctionOutputwith field(s):function_configuration(Option<FunctionConfiguration>):The
Functionobject.
- On failure, responds with
SdkError<UpdateFunctionError>
source§impl Client
impl Client
sourcepub fn update_graphql_api(&self) -> UpdateGraphqlApiFluentBuilder
pub fn update_graphql_api(&self) -> UpdateGraphqlApiFluentBuilder
Constructs a fluent builder for the UpdateGraphqlApi operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
name(impl Into<String>)/set_name(Option<String>):The new name for the
GraphqlApiobject.log_config(LogConfig)/set_log_config(Option<LogConfig>):The Amazon CloudWatch Logs configuration for the
GraphqlApiobject.authentication_type(AuthenticationType)/set_authentication_type(Option<AuthenticationType>):The new authentication type for the
GraphqlApiobject.user_pool_config(UserPoolConfig)/set_user_pool_config(Option<UserPoolConfig>):The new Amazon Cognito user pool configuration for the
~GraphqlApiobject.open_id_connect_config(OpenIdConnectConfig)/set_open_id_connect_config(Option<OpenIdConnectConfig>):The OpenID Connect configuration for the
GraphqlApiobject.additional_authentication_providers(AdditionalAuthenticationProvider)/set_additional_authentication_providers(Option<Vec<AdditionalAuthenticationProvider>>):A list of additional authentication providers for the
GraphqlApiAPI.xray_enabled(bool)/set_xray_enabled(Option<bool>):A flag indicating whether to use X-Ray tracing for the
GraphqlApi.lambda_authorizer_config(LambdaAuthorizerConfig)/set_lambda_authorizer_config(Option<LambdaAuthorizerConfig>):Configuration for Lambda function authorization.
merged_api_execution_role_arn(impl Into<String>)/set_merged_api_execution_role_arn(Option<String>):The Identity and Access Management service role ARN for a merged API. The AppSync service assumes this role on behalf of the Merged API to validate access to source APIs at runtime and to prompt the
AUTO_MERGEto update the merged API endpoint with the source API changes automatically.owner_contact(impl Into<String>)/set_owner_contact(Option<String>):The owner contact information for an API resource.
This field accepts any string input with a length of 0 - 256 characters.
- On success, responds with
UpdateGraphqlApiOutputwith field(s):graphql_api(Option<GraphqlApi>):The updated
GraphqlApiobject.
- On failure, responds with
SdkError<UpdateGraphqlApiError>
source§impl Client
impl Client
sourcepub fn update_resolver(&self) -> UpdateResolverFluentBuilder
pub fn update_resolver(&self) -> UpdateResolverFluentBuilder
Constructs a fluent builder for the UpdateResolver operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
type_name(impl Into<String>)/set_type_name(Option<String>):The new type name.
field_name(impl Into<String>)/set_field_name(Option<String>):The new field name.
data_source_name(impl Into<String>)/set_data_source_name(Option<String>):The new data source name.
request_mapping_template(impl Into<String>)/set_request_mapping_template(Option<String>):The new request mapping template.
A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).
VTL request mapping templates are optional when using an Lambda data source. For all other data sources, VTL request and response mapping templates are required.
response_mapping_template(impl Into<String>)/set_response_mapping_template(Option<String>):The new response mapping template.
kind(ResolverKind)/set_kind(Option<ResolverKind>):The resolver type.
-
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
-
PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of
Functionobjects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.
-
pipeline_config(PipelineConfig)/set_pipeline_config(Option<PipelineConfig>):The
PipelineConfig.sync_config(SyncConfig)/set_sync_config(Option<SyncConfig>):The
SyncConfigfor a resolver attached to a versioned data source.caching_config(CachingConfig)/set_caching_config(Option<CachingConfig>):The caching configuration for the resolver.
max_batch_size(i32)/set_max_batch_size(Option<i32>):The maximum batching size for a resolver.
runtime(AppSyncRuntime)/set_runtime(Option<AppSyncRuntime>):Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.
code(impl Into<String>)/set_code(Option<String>):The
resolvercode that contains the request and response functions. When code is used, theruntimeis required. Theruntimevalue must beAPPSYNC_JS.
- On success, responds with
UpdateResolverOutputwith field(s):resolver(Option<Resolver>):The updated
Resolverobject.
- On failure, responds with
SdkError<UpdateResolverError>
source§impl Client
impl Client
sourcepub fn update_source_api_association(
&self
) -> UpdateSourceApiAssociationFluentBuilder
pub fn update_source_api_association( &self ) -> UpdateSourceApiAssociationFluentBuilder
Constructs a fluent builder for the UpdateSourceApiAssociation operation.
- The fluent builder is configurable:
association_id(impl Into<String>)/set_association_id(Option<String>):The ID generated by the AppSync service for the source API association.
merged_api_identifier(impl Into<String>)/set_merged_api_identifier(Option<String>):The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
description(impl Into<String>)/set_description(Option<String>):The description field.
source_api_association_config(SourceApiAssociationConfig)/set_source_api_association_config(Option<SourceApiAssociationConfig>):The
SourceApiAssociationConfigobject data.
- On success, responds with
UpdateSourceApiAssociationOutputwith field(s):source_api_association(Option<SourceApiAssociation>):The
SourceApiAssociationobject data.
- On failure, responds with
SdkError<UpdateSourceApiAssociationError>
source§impl Client
impl Client
sourcepub fn update_type(&self) -> UpdateTypeFluentBuilder
pub fn update_type(&self) -> UpdateTypeFluentBuilder
Constructs a fluent builder for the UpdateType operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):The API ID.
type_name(impl Into<String>)/set_type_name(Option<String>):The new type name.
definition(impl Into<String>)/set_definition(Option<String>):The new definition.
format(TypeDefinitionFormat)/set_format(Option<TypeDefinitionFormat>):The new type format: SDL or JSON.
- On success, responds with
UpdateTypeOutputwith field(s):r#type(Option<Type>):The updated
Typeobject.
- On failure, responds with
SdkError<UpdateTypeError>
source§impl Client
impl Client
sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
Panics
- This method will panic if the
sdk_configis missing an async sleep implementation. If you experience this panic, set thesleep_implon the Config passed into this function to fix it. - This method will panic if the
sdk_configis missing an HTTP connector. If you experience this panic, set thehttp_connectoron the Config passed into this function to fix it.