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 values that can be set on the Config that
is absent from SdkConfig, or slightly different settings for a specific client may be desired.
The Builder 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>):
required: trueThe domain name.
api_id(impl Into<String>)/set_api_id(Option<String>):
required: trueThe 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>):
required: trueThe 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>):
required: trueThe 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>):
required: falseThe description field.
source_api_association_config(SourceApiAssociationConfig)/set_source_api_association_config(Option<SourceApiAssociationConfig>):
required: falseThe
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>):
required: trueThe 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>):
required: trueThe 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>):
required: falseThe description field.
source_api_association_config(SourceApiAssociationConfig)/set_source_api_association_config(Option<SourceApiAssociationConfig>):
required: falseThe
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(&self) -> CreateApiFluentBuilder
pub fn create_api(&self) -> CreateApiFluentBuilder
Constructs a fluent builder for the CreateApi operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name for the
Api.owner_contact(impl Into<String>)/set_owner_contact(Option<String>):
required: falseThe owner contact information for the
Api.tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseA map with keys of
TagKeyobjects and values ofTagValueobjects.event_config(EventConfig)/set_event_config(Option<EventConfig>):
required: falseThe Event API configuration. This includes the default authorization configuration for connecting, publishing, and subscribing to an Event API.
- On success, responds with
CreateApiOutputwith field(s):api(Option<Api>):The
Apiobject.
- On failure, responds with
SdkError<CreateApiError>
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>):
required: trueThe GraphQL API ID.
ttl(i64)/set_ttl(Option<i64>):
required: trueTTL in seconds for cache entries.
Valid values are 1–3,600 seconds.
transit_encryption_enabled(bool)/set_transit_encryption_enabled(Option<bool>):
required: falseTransit 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>):
required: falseAt-rest encryption flag for cache. You cannot update this setting after creation.
api_caching_behavior(ApiCachingBehavior)/set_api_caching_behavior(Option<ApiCachingBehavior>):
required: trueCaching 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>):
required: trueThe 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.
-
health_metrics_config(CacheHealthMetricsConfig)/set_health_metrics_config(Option<CacheHealthMetricsConfig>):
required: falseControls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:
-
NetworkBandwidthOutAllowanceExceeded: The network packets dropped because the throughput exceeded the aggregated bandwidth limit. This is useful for diagnosing bottlenecks in a cache configuration.
-
EngineCPUUtilization: The CPU utilization (percentage) allocated to the Redis process. This is useful for diagnosing bottlenecks in a cache configuration.
Metrics will be recorded by API ID. You can set the value to
ENABLEDorDISABLED.-
- 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>):
required: trueThe ID for your GraphQL API.
description(impl Into<String>)/set_description(Option<String>):
required: falseA description of the purpose of the API key.
expires(i64)/set_expires(Option<i64>):
required: falseFrom 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_channel_namespace(&self) -> CreateChannelNamespaceFluentBuilder
pub fn create_channel_namespace(&self) -> CreateChannelNamespaceFluentBuilder
Constructs a fluent builder for the CreateChannelNamespace operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):
required: trueThe
ApiID.name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the
ChannelNamespace. This name must be unique within theApisubscribe_auth_modes(AuthMode)/set_subscribe_auth_modes(Option<Vec::<AuthMode>>):
required: falseThe authorization mode to use for subscribing to messages on the channel namespace. This configuration overrides the default
Apiauthorization configuration.publish_auth_modes(AuthMode)/set_publish_auth_modes(Option<Vec::<AuthMode>>):
required: falseThe authorization mode to use for publishing messages on the channel namespace. This configuration overrides the default
Apiauthorization configuration.code_handlers(impl Into<String>)/set_code_handlers(Option<String>):
required: falseThe event handler functions that run custom business logic to process published events and subscribe requests.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseA map with keys of
TagKeyobjects and values ofTagValueobjects.
- On success, responds with
CreateChannelNamespaceOutputwith field(s):channel_namespace(Option<ChannelNamespace>):The
ChannelNamespaceobject.
- On failure, responds with
SdkError<CreateChannelNamespaceError>
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>):
required: trueThe API ID for the GraphQL API for the
DataSource.name(impl Into<String>)/set_name(Option<String>):
required: trueA user-supplied name for the
DataSource.description(impl Into<String>)/set_description(Option<String>):
required: falseA description of the
DataSource.r#type(DataSourceType)/set_type(Option<DataSourceType>):
required: trueThe type of the
DataSource.service_role_arn(impl Into<String>)/set_service_role_arn(Option<String>):
required: falseThe 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>):
required: falseAmazon DynamoDB settings.
lambda_config(LambdaDataSourceConfig)/set_lambda_config(Option<LambdaDataSourceConfig>):
required: falseLambda settings.
elasticsearch_config(ElasticsearchDataSourceConfig)/set_elasticsearch_config(Option<ElasticsearchDataSourceConfig>):
required: falseAmazon 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>):
required: falseAmazon OpenSearch Service settings.
http_config(HttpDataSourceConfig)/set_http_config(Option<HttpDataSourceConfig>):
required: falseHTTP endpoint settings.
relational_database_config(RelationalDatabaseDataSourceConfig)/set_relational_database_config(Option<RelationalDatabaseDataSourceConfig>):
required: falseRelational database settings.
event_bridge_config(EventBridgeDataSourceConfig)/set_event_bridge_config(Option<EventBridgeDataSourceConfig>):
required: falseAmazon EventBridge settings.
metrics_config(DataSourceLevelMetricsConfig)/set_metrics_config(Option<DataSourceLevelMetricsConfig>):
required: falseEnables or disables enhanced data source metrics for specified data sources. Note that
metricsConfigwon’t be used unless thedataSourceLevelMetricsBehaviorvalue is set toPER_DATA_SOURCE_METRICS. If thedataSourceLevelMetricsBehavioris set toFULL_REQUEST_DATA_SOURCE_METRICSinstead,metricsConfigwill be ignored. However, you can still set its value.metricsConfigcan beENABLEDorDISABLED.
- 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>):
required: trueThe domain name.
certificate_arn(impl Into<String>)/set_certificate_arn(Option<String>):
required: trueThe 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>):
required: falseA 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>):
required: trueThe GraphQL API ID.
name(impl Into<String>)/set_name(Option<String>):
required: trueThe
Functionname. The function name does not have to be unique.description(impl Into<String>)/set_description(Option<String>):
required: falseThe
Functiondescription.data_source_name(impl Into<String>)/set_data_source_name(Option<String>):
required: trueThe
FunctionDataSourcename.request_mapping_template(impl Into<String>)/set_request_mapping_template(Option<String>):
required: falseThe
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>):
required: falseThe
Functionresponse mapping template.function_version(impl Into<String>)/set_function_version(Option<String>):
required: falseThe
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>):
required: falseDescribes 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>):
required: falseThe maximum batching size for a resolver.
runtime(AppSyncRuntime)/set_runtime(Option<AppSyncRuntime>):
required: falseDescribes 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>):
required: falseThe
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>):
required: trueA user-supplied name for the
GraphqlApi.log_config(LogConfig)/set_log_config(Option<LogConfig>):
required: falseThe Amazon CloudWatch Logs configuration.
authentication_type(AuthenticationType)/set_authentication_type(Option<AuthenticationType>):
required: trueThe 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>):
required: falseThe Amazon Cognito user pool configuration.
open_id_connect_config(OpenIdConnectConfig)/set_open_id_connect_config(Option<OpenIdConnectConfig>):
required: falseThe OIDC configuration.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseA
TagMapobject.additional_authentication_providers(AdditionalAuthenticationProvider)/set_additional_authentication_providers(Option<Vec::<AdditionalAuthenticationProvider>>):
required: falseA list of additional authentication providers for the
GraphqlApiAPI.xray_enabled(bool)/set_xray_enabled(Option<bool>):
required: falseA flag indicating whether to use X-Ray tracing for the
GraphqlApi.lambda_authorizer_config(LambdaAuthorizerConfig)/set_lambda_authorizer_config(Option<LambdaAuthorizerConfig>):
required: falseConfiguration for Lambda function authorization.
api_type(GraphQlApiType)/set_api_type(Option<GraphQlApiType>):
required: falseThe 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>):
required: falseThe 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.visibility(GraphQlApiVisibility)/set_visibility(Option<GraphQlApiVisibility>):
required: falseSets 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.owner_contact(impl Into<String>)/set_owner_contact(Option<String>):
required: falseThe owner contact information for an API resource.
This field accepts any string input with a length of 0 - 256 characters.
introspection_config(GraphQlApiIntrospectionConfig)/set_introspection_config(Option<GraphQlApiIntrospectionConfig>):
required: falseSets the value of the GraphQL API to enable (
ENABLED) or disable (DISABLED) introspection. If no value is provided, the introspection configuration will be set toENABLEDby default. This field will produce an error if the operation attempts to use the introspection feature while this field is disabled.For more information about introspection, see GraphQL introspection.
query_depth_limit(i32)/set_query_depth_limit(Option<i32>):
required: falseThe maximum depth a query can have in a single request. Depth refers to the amount of nested levels allowed in the body of query. The default value is
0(or unspecified), which indicates there’s no depth limit. If you set a limit, it can be between1and75nested levels. This field will produce a limit error if the operation falls out of bounds.Note that fields can still be set to nullable or non-nullable. If a non-nullable field produces an error, the error will be thrown upwards to the first nullable field available.
resolver_count_limit(i32)/set_resolver_count_limit(Option<i32>):
required: falseThe maximum number of resolvers that can be invoked in a single request. The default value is
0(or unspecified), which will set the limit to10000. When specified, the limit value can be between1and10000. This field will produce a limit error if the operation falls out of bounds.enhanced_metrics_config(EnhancedMetricsConfig)/set_enhanced_metrics_config(Option<EnhancedMetricsConfig>):
required: falseThe
enhancedMetricsConfigobject.
- 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>):
required: trueThe ID for the GraphQL API for which the resolver is being created.
type_name(impl Into<String>)/set_type_name(Option<String>):
required: trueThe name of the
Type.field_name(impl Into<String>)/set_field_name(Option<String>):
required: trueThe name of the field to attach the resolver to.
data_source_name(impl Into<String>)/set_data_source_name(Option<String>):
required: falseThe name of the data source for which the resolver is being created.
request_mapping_template(impl Into<String>)/set_request_mapping_template(Option<String>):
required: falseThe 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>):
required: falseThe mapping template to use for responses from the data source.
kind(ResolverKind)/set_kind(Option<ResolverKind>):
required: falseThe 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>):
required: falseThe
PipelineConfig.sync_config(SyncConfig)/set_sync_config(Option<SyncConfig>):
required: falseThe
SyncConfigfor a resolver attached to a versioned data source.caching_config(CachingConfig)/set_caching_config(Option<CachingConfig>):
required: falseThe caching configuration for the resolver.
max_batch_size(i32)/set_max_batch_size(Option<i32>):
required: falseThe maximum batching size for a resolver.
runtime(AppSyncRuntime)/set_runtime(Option<AppSyncRuntime>):
required: falseDescribes 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>):
required: falseThe
resolvercode that contains the request and response functions. When code is used, theruntimeis required. Theruntimevalue must beAPPSYNC_JS.metrics_config(ResolverLevelMetricsConfig)/set_metrics_config(Option<ResolverLevelMetricsConfig>):
required: falseEnables or disables enhanced resolver metrics for specified resolvers. Note that
metricsConfigwon’t be used unless theresolverLevelMetricsBehaviorvalue is set toPER_RESOLVER_METRICS. If theresolverLevelMetricsBehavioris set toFULL_REQUEST_RESOLVER_METRICSinstead,metricsConfigwill be ignored. However, you can still set its value.metricsConfigcan beENABLEDorDISABLED.
- 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>):
required: trueThe API ID.
definition(impl Into<String>)/set_definition(Option<String>):
required: trueThe type definition, in GraphQL Schema Definition Language (SDL) format.
For more information, see the GraphQL SDL documentation.
format(TypeDefinitionFormat)/set_format(Option<TypeDefinitionFormat>):
required: trueThe 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(&self) -> DeleteApiFluentBuilder
pub fn delete_api(&self) -> DeleteApiFluentBuilder
Constructs a fluent builder for the DeleteApi operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):
required: trueThe
ApiID.
- On success, responds with
DeleteApiOutput - On failure, responds with
SdkError<DeleteApiError>
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>):
required: trueThe 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>):
required: trueThe API ID.
id(impl Into<String>)/set_id(Option<String>):
required: trueThe ID for the API key.
- On success, responds with
DeleteApiKeyOutput - On failure, responds with
SdkError<DeleteApiKeyError>
Source§impl Client
impl Client
Sourcepub fn delete_channel_namespace(&self) -> DeleteChannelNamespaceFluentBuilder
pub fn delete_channel_namespace(&self) -> DeleteChannelNamespaceFluentBuilder
Constructs a fluent builder for the DeleteChannelNamespace operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):
required: trueThe ID of the
Apiassociated with theChannelNamespace.name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the
ChannelNamespace.
- On success, responds with
DeleteChannelNamespaceOutput - On failure, responds with
SdkError<DeleteChannelNamespaceError>
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>):
required: trueThe API ID.
name(impl Into<String>)/set_name(Option<String>):
required: trueThe 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>):
required: trueThe 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>):
required: trueThe GraphQL API ID.
function_id(impl Into<String>)/set_function_id(Option<String>):
required: trueThe
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>):
required: trueThe 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>):
required: trueThe API ID.
type_name(impl Into<String>)/set_type_name(Option<String>):
required: trueThe name of the resolver type.
field_name(impl Into<String>)/set_field_name(Option<String>):
required: trueThe 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>):
required: trueThe API ID.
type_name(impl Into<String>)/set_type_name(Option<String>):
required: trueThe 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>):
required: trueThe 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>):
required: trueThe 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>):
required: trueThe 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>):
required: trueThe 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>):
required: trueThe 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>):
required: trueThe runtime to be used when evaluating the code. Currently, only the
APPSYNC_JSruntime is supported.code(impl Into<String>)/set_code(Option<String>):
required: trueThe 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>):
required: trueThe 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>):
required: falseThe 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>):
required: trueThe mapping template; this can be a request or response template. A
templateis required for this action.context(impl Into<String>)/set_context(Option<String>):
required: trueThe 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>):
required: trueThe API ID.
- On success, responds with
FlushApiCacheOutput - On failure, responds with
SdkError<FlushApiCacheError>
Source§impl Client
impl Client
Sourcepub fn get_api(&self) -> GetApiFluentBuilder
pub fn get_api(&self) -> GetApiFluentBuilder
Constructs a fluent builder for the GetApi operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):
required: trueThe
ApiID.
- On success, responds with
GetApiOutputwith field(s):api(Option<Api>):The
Apiobject.
- On failure, responds with
SdkError<GetApiError>
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>):
required: trueThe 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>):
required: trueThe 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_channel_namespace(&self) -> GetChannelNamespaceFluentBuilder
pub fn get_channel_namespace(&self) -> GetChannelNamespaceFluentBuilder
Constructs a fluent builder for the GetChannelNamespace operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):
required: trueThe
ApiID.name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the
ChannelNamespace.
- On success, responds with
GetChannelNamespaceOutputwith field(s):channel_namespace(Option<ChannelNamespace>):The
ChannelNamespaceobject.
- On failure, responds with
SdkError<GetChannelNamespaceError>
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>):
required: trueThe API ID.
name(impl Into<String>)/set_name(Option<String>):
required: trueThe 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_data_source_introspection(
&self,
) -> GetDataSourceIntrospectionFluentBuilder
pub fn get_data_source_introspection( &self, ) -> GetDataSourceIntrospectionFluentBuilder
Constructs a fluent builder for the GetDataSourceIntrospection operation.
- The fluent builder is configurable:
introspection_id(impl Into<String>)/set_introspection_id(Option<String>):
required: trueThe introspection ID. Each introspection contains a unique ID that can be used to reference the instrospection record.
include_models_sdl(bool)/set_include_models_sdl(Option<bool>):
required: falseA boolean flag that determines whether SDL should be generated for introspected types. If set to
true, each model will contain ansdlproperty that contains the SDL for that type. The SDL only contains the type data and no additional metadata or directives.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseDetermines the number of types to be returned in a single response before paginating. This value is typically taken from
nextTokenvalue from the previous response.max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of introspected types that will be returned in a single response.
- On success, responds with
GetDataSourceIntrospectionOutputwith field(s):introspection_id(Option<String>):The introspection ID. Each introspection contains a unique ID that can be used to reference the instrospection record.
introspection_status(Option<DataSourceIntrospectionStatus>):The status of the introspection during retrieval. By default, when a new instrospection is being retrieved, the status will be set to
PROCESSING. Once the operation has been completed, the status will change toSUCCESSorFAILEDdepending on how the data was parsed. AFAILEDoperation will return an error and its details as anintrospectionStatusDetail.introspection_status_detail(Option<String>):The error detail field. When a
FAILEDintrospectionStatusis returned, theintrospectionStatusDetailwill also return the exact error that was generated during the operation.introspection_result(Option<DataSourceIntrospectionResult>):The
DataSourceIntrospectionResultobject data.
- On failure, responds with
SdkError<GetDataSourceIntrospectionError>
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>):
required: trueThe 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>):
required: trueThe GraphQL API ID.
function_id(impl Into<String>)/set_function_id(Option<String>):
required: trueThe
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>):
required: trueThe 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_graphql_api_environment_variables(
&self,
) -> GetGraphqlApiEnvironmentVariablesFluentBuilder
pub fn get_graphql_api_environment_variables( &self, ) -> GetGraphqlApiEnvironmentVariablesFluentBuilder
Constructs a fluent builder for the GetGraphqlApiEnvironmentVariables operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):
required: trueThe ID of the API from which the environmental variable list will be retrieved.
- On success, responds with
GetGraphqlApiEnvironmentVariablesOutputwith field(s):environment_variables(Option<HashMap::<String, String>>):The payload containing each environmental variable in the
“key” : “value”format.
- On failure, responds with
SdkError<GetGraphqlApiEnvironmentVariablesError>
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>):
required: trueThe API ID.
format(OutputType)/set_format(Option<OutputType>):
required: trueThe schema format: SDL or JSON.
include_directives(bool)/set_include_directives(Option<bool>):
required: falseA 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>):
required: trueThe API ID.
type_name(impl Into<String>)/set_type_name(Option<String>):
required: trueThe resolver type name.
field_name(impl Into<String>)/set_field_name(Option<String>):
required: trueThe 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>):
required: trueThe 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>):
required: trueThe 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>):
required: trueThe 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>):
required: trueThe API ID.
type_name(impl Into<String>)/set_type_name(Option<String>):
required: trueThe type name.
format(TypeDefinitionFormat)/set_format(Option<TypeDefinitionFormat>):
required: trueThe 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.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):
required: trueThe API ID.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseAn 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>):
required: falseThe 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_apis(&self) -> ListApisFluentBuilder
pub fn list_apis(&self) -> ListApisFluentBuilder
Constructs a fluent builder for the ListApis operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseAn 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>):
required: falseThe maximum number of results that you want the request to return.
- On success, responds with
ListApisOutputwith field(s):apis(Option<Vec::<Api>>):The
Apiobjects.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<ListApisError>
Source§impl Client
impl Client
Sourcepub fn list_channel_namespaces(&self) -> ListChannelNamespacesFluentBuilder
pub fn list_channel_namespaces(&self) -> ListChannelNamespacesFluentBuilder
Constructs a fluent builder for the ListChannelNamespaces operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):
required: trueThe
ApiID.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseAn 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>):
required: falseThe maximum number of results that you want the request to return.
- On success, responds with
ListChannelNamespacesOutputwith field(s):channel_namespaces(Option<Vec::<ChannelNamespace>>):The
ChannelNamespaceobjects.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<ListChannelNamespacesError>
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.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):
required: trueThe API ID.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseAn 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>):
required: falseThe 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.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseAn 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>):
required: falseThe 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.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):
required: trueThe GraphQL API ID.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseAn 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>):
required: falseThe 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.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseAn 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>):
required: falseThe maximum number of results that you want the request to return.
api_type(GraphQlApiType)/set_api_type(Option<GraphQlApiType>):
required: falseThe value that indicates whether the GraphQL API is a standard API (
GRAPHQL) or merged API (MERGED).owner(Ownership)/set_owner(Option<Ownership>):
required: falseThe 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.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):
required: trueThe API ID.
type_name(impl Into<String>)/set_type_name(Option<String>):
required: trueThe type name.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseAn 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>):
required: falseThe 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.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):
required: trueThe API ID.
function_id(impl Into<String>)/set_function_id(Option<String>):
required: trueThe function ID.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseAn 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>):
required: falseThe 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.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):
required: trueThe API ID.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseAn 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>):
required: falseThe 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>):
required: trueThe
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.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):
required: trueThe API ID.
format(TypeDefinitionFormat)/set_format(Option<TypeDefinitionFormat>):
required: trueThe type format: SDL or JSON.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseAn 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>):
required: falseThe 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.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
merged_api_identifier(impl Into<String>)/set_merged_api_identifier(Option<String>):
required: trueThe 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>):
required: trueThe ID generated by the AppSync service for the source API association.
format(TypeDefinitionFormat)/set_format(Option<TypeDefinitionFormat>):
required: trueThe format type.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseAn 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>):
required: falseThe 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 put_graphql_api_environment_variables(
&self,
) -> PutGraphqlApiEnvironmentVariablesFluentBuilder
pub fn put_graphql_api_environment_variables( &self, ) -> PutGraphqlApiEnvironmentVariablesFluentBuilder
Constructs a fluent builder for the PutGraphqlApiEnvironmentVariables operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):
required: trueThe ID of the API to which the environmental variable list will be written.
environment_variables(impl Into<String>, impl Into<String>)/set_environment_variables(Option<HashMap::<String, String>>):
required: trueThe list of environmental variables to add to the API.
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
environmentVariablespayload as a list in the format{“key1”:“value1”,“key2”:“value2”, …}. Note that each call of thePutGraphqlApiEnvironmentVariablesaction 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.-
- On success, responds with
PutGraphqlApiEnvironmentVariablesOutputwith field(s):environment_variables(Option<HashMap::<String, String>>):The payload containing each environmental variable in the
“key” : “value”format.
- On failure, responds with
SdkError<PutGraphqlApiEnvironmentVariablesError>
Source§impl Client
impl Client
Sourcepub fn start_data_source_introspection(
&self,
) -> StartDataSourceIntrospectionFluentBuilder
pub fn start_data_source_introspection( &self, ) -> StartDataSourceIntrospectionFluentBuilder
Constructs a fluent builder for the StartDataSourceIntrospection operation.
- The fluent builder is configurable:
rds_data_api_config(RdsDataApiConfig)/set_rds_data_api_config(Option<RdsDataApiConfig>):
required: falseThe
rdsDataApiConfigobject data.
- On success, responds with
StartDataSourceIntrospectionOutputwith field(s):introspection_id(Option<String>):The introspection ID. Each introspection contains a unique ID that can be used to reference the instrospection record.
introspection_status(Option<DataSourceIntrospectionStatus>):The status of the introspection during creation. By default, when a new instrospection has been created, the status will be set to
PROCESSING. Once the operation has been completed, the status will change toSUCCESSorFAILEDdepending on how the data was parsed. AFAILEDoperation will return an error and its details as anintrospectionStatusDetail.introspection_status_detail(Option<String>):The error detail field. When a
FAILEDintrospectionStatusis returned, theintrospectionStatusDetailwill also return the exact error that was generated during the operation.
- On failure, responds with
SdkError<StartDataSourceIntrospectionError>
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>):
required: trueThe API ID.
definition(Blob)/set_definition(Option<Blob>):
required: trueThe 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>):
required: trueThe ID generated by the AppSync service for the source API association.
merged_api_identifier(impl Into<String>)/set_merged_api_identifier(Option<String>):
required: trueThe 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>):
required: trueThe
GraphqlApiAmazon Resource Name (ARN).tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: trueA
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>):
required: trueThe
GraphqlApiAmazon Resource Name (ARN).tag_keys(impl Into<String>)/set_tag_keys(Option<Vec::<String>>):
required: trueA list of
TagKeyobjects.
- On success, responds with
UntagResourceOutput - On failure, responds with
SdkError<UntagResourceError>
Source§impl Client
impl Client
Sourcepub fn update_api(&self) -> UpdateApiFluentBuilder
pub fn update_api(&self) -> UpdateApiFluentBuilder
Constructs a fluent builder for the UpdateApi operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):
required: trueThe
ApiID.name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the Api.
owner_contact(impl Into<String>)/set_owner_contact(Option<String>):
required: falseThe owner contact information for the
Api.event_config(EventConfig)/set_event_config(Option<EventConfig>):
required: falseThe new event configuration. This includes the default authorization configuration for connecting, publishing, and subscribing to an Event API.
- On success, responds with
UpdateApiOutputwith field(s):api(Option<Api>):The
Apiobject.
- On failure, responds with
SdkError<UpdateApiError>
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>):
required: trueThe GraphQL API ID.
ttl(i64)/set_ttl(Option<i64>):
required: trueTTL in seconds for cache entries.
Valid values are 1–3,600 seconds.
api_caching_behavior(ApiCachingBehavior)/set_api_caching_behavior(Option<ApiCachingBehavior>):
required: trueCaching 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>):
required: trueThe 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.
-
health_metrics_config(CacheHealthMetricsConfig)/set_health_metrics_config(Option<CacheHealthMetricsConfig>):
required: falseControls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:
-
NetworkBandwidthOutAllowanceExceeded: The network packets dropped because the throughput exceeded the aggregated bandwidth limit. This is useful for diagnosing bottlenecks in a cache configuration.
-
EngineCPUUtilization: The CPU utilization (percentage) allocated to the Redis process. This is useful for diagnosing bottlenecks in a cache configuration.
Metrics will be recorded by API ID. You can set the value to
ENABLEDorDISABLED.-
- 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>):
required: trueThe ID for the GraphQL API.
id(impl Into<String>)/set_id(Option<String>):
required: trueThe API key ID.
description(impl Into<String>)/set_description(Option<String>):
required: falseA description of the purpose of the API key.
expires(i64)/set_expires(Option<i64>):
required: falseFrom 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_channel_namespace(&self) -> UpdateChannelNamespaceFluentBuilder
pub fn update_channel_namespace(&self) -> UpdateChannelNamespaceFluentBuilder
Constructs a fluent builder for the UpdateChannelNamespace operation.
- The fluent builder is configurable:
api_id(impl Into<String>)/set_api_id(Option<String>):
required: trueThe
ApiID.name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the
ChannelNamespace.subscribe_auth_modes(AuthMode)/set_subscribe_auth_modes(Option<Vec::<AuthMode>>):
required: falseThe authorization mode to use for subscribing to messages on the channel namespace. This configuration overrides the default
Apiauthorization configuration.publish_auth_modes(AuthMode)/set_publish_auth_modes(Option<Vec::<AuthMode>>):
required: falseThe authorization mode to use for publishing messages on the channel namespace. This configuration overrides the default
Apiauthorization configuration.code_handlers(impl Into<String>)/set_code_handlers(Option<String>):
required: falseThe event handler functions that run custom business logic to process published events and subscribe requests.
- On success, responds with
UpdateChannelNamespaceOutputwith field(s):channel_namespace(Option<ChannelNamespace>):The
ChannelNamespaceobject.
- On failure, responds with
SdkError<UpdateChannelNamespaceError>
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>):
required: trueThe API ID.
name(impl Into<String>)/set_name(Option<String>):
required: trueThe new name for the data source.
description(impl Into<String>)/set_description(Option<String>):
required: falseThe new description for the data source.
r#type(DataSourceType)/set_type(Option<DataSourceType>):
required: trueThe new data source type.
service_role_arn(impl Into<String>)/set_service_role_arn(Option<String>):
required: falseThe new service role Amazon Resource Name (ARN) for the data source.
dynamodb_config(DynamodbDataSourceConfig)/set_dynamodb_config(Option<DynamodbDataSourceConfig>):
required: falseThe new Amazon DynamoDB configuration.
lambda_config(LambdaDataSourceConfig)/set_lambda_config(Option<LambdaDataSourceConfig>):
required: falseThe new Lambda configuration.
elasticsearch_config(ElasticsearchDataSourceConfig)/set_elasticsearch_config(Option<ElasticsearchDataSourceConfig>):
required: falseThe 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>):
required: falseThe new OpenSearch configuration.
http_config(HttpDataSourceConfig)/set_http_config(Option<HttpDataSourceConfig>):
required: falseThe new HTTP endpoint configuration.
relational_database_config(RelationalDatabaseDataSourceConfig)/set_relational_database_config(Option<RelationalDatabaseDataSourceConfig>):
required: falseThe new relational database configuration.
event_bridge_config(EventBridgeDataSourceConfig)/set_event_bridge_config(Option<EventBridgeDataSourceConfig>):
required: falseThe new Amazon EventBridge settings.
metrics_config(DataSourceLevelMetricsConfig)/set_metrics_config(Option<DataSourceLevelMetricsConfig>):
required: falseEnables or disables enhanced data source metrics for specified data sources. Note that
metricsConfigwon’t be used unless thedataSourceLevelMetricsBehaviorvalue is set toPER_DATA_SOURCE_METRICS. If thedataSourceLevelMetricsBehavioris set toFULL_REQUEST_DATA_SOURCE_METRICSinstead,metricsConfigwill be ignored. However, you can still set its value.metricsConfigcan beENABLEDorDISABLED.
- 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>):
required: trueThe domain name.
description(impl Into<String>)/set_description(Option<String>):
required: falseA 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>):
required: trueThe GraphQL API ID.
name(impl Into<String>)/set_name(Option<String>):
required: trueThe
Functionname.description(impl Into<String>)/set_description(Option<String>):
required: falseThe
Functiondescription.function_id(impl Into<String>)/set_function_id(Option<String>):
required: trueThe function ID.
data_source_name(impl Into<String>)/set_data_source_name(Option<String>):
required: trueThe
FunctionDataSourcename.request_mapping_template(impl Into<String>)/set_request_mapping_template(Option<String>):
required: falseThe
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>):
required: falseThe
Functionrequest mapping template.function_version(impl Into<String>)/set_function_version(Option<String>):
required: falseThe
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>):
required: falseDescribes 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>):
required: falseThe maximum batching size for a resolver.
runtime(AppSyncRuntime)/set_runtime(Option<AppSyncRuntime>):
required: falseDescribes 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>):
required: falseThe
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>):
required: trueThe API ID.
name(impl Into<String>)/set_name(Option<String>):
required: trueThe new name for the
GraphqlApiobject.log_config(LogConfig)/set_log_config(Option<LogConfig>):
required: falseThe Amazon CloudWatch Logs configuration for the
GraphqlApiobject.authentication_type(AuthenticationType)/set_authentication_type(Option<AuthenticationType>):
required: falseThe new authentication type for the
GraphqlApiobject.user_pool_config(UserPoolConfig)/set_user_pool_config(Option<UserPoolConfig>):
required: falseThe new Amazon Cognito user pool configuration for the
~GraphqlApiobject.open_id_connect_config(OpenIdConnectConfig)/set_open_id_connect_config(Option<OpenIdConnectConfig>):
required: falseThe OpenID Connect configuration for the
GraphqlApiobject.additional_authentication_providers(AdditionalAuthenticationProvider)/set_additional_authentication_providers(Option<Vec::<AdditionalAuthenticationProvider>>):
required: falseA list of additional authentication providers for the
GraphqlApiAPI.xray_enabled(bool)/set_xray_enabled(Option<bool>):
required: falseA flag indicating whether to use X-Ray tracing for the
GraphqlApi.lambda_authorizer_config(LambdaAuthorizerConfig)/set_lambda_authorizer_config(Option<LambdaAuthorizerConfig>):
required: falseConfiguration for Lambda function authorization.
merged_api_execution_role_arn(impl Into<String>)/set_merged_api_execution_role_arn(Option<String>):
required: falseThe 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>):
required: falseThe owner contact information for an API resource.
This field accepts any string input with a length of 0 - 256 characters.
introspection_config(GraphQlApiIntrospectionConfig)/set_introspection_config(Option<GraphQlApiIntrospectionConfig>):
required: falseSets the value of the GraphQL API to enable (
ENABLED) or disable (DISABLED) introspection. If no value is provided, the introspection configuration will be set toENABLEDby default. This field will produce an error if the operation attempts to use the introspection feature while this field is disabled.For more information about introspection, see GraphQL introspection.
query_depth_limit(i32)/set_query_depth_limit(Option<i32>):
required: falseThe maximum depth a query can have in a single request. Depth refers to the amount of nested levels allowed in the body of query. The default value is
0(or unspecified), which indicates there’s no depth limit. If you set a limit, it can be between1and75nested levels. This field will produce a limit error if the operation falls out of bounds.Note that fields can still be set to nullable or non-nullable. If a non-nullable field produces an error, the error will be thrown upwards to the first nullable field available.
resolver_count_limit(i32)/set_resolver_count_limit(Option<i32>):
required: falseThe maximum number of resolvers that can be invoked in a single request. The default value is
0(or unspecified), which will set the limit to10000. When specified, the limit value can be between1and10000. This field will produce a limit error if the operation falls out of bounds.enhanced_metrics_config(EnhancedMetricsConfig)/set_enhanced_metrics_config(Option<EnhancedMetricsConfig>):
required: falseThe
enhancedMetricsConfigobject.
- 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>):
required: trueThe API ID.
type_name(impl Into<String>)/set_type_name(Option<String>):
required: trueThe new type name.
field_name(impl Into<String>)/set_field_name(Option<String>):
required: trueThe new field name.
data_source_name(impl Into<String>)/set_data_source_name(Option<String>):
required: falseThe new data source name.
request_mapping_template(impl Into<String>)/set_request_mapping_template(Option<String>):
required: falseThe 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>):
required: falseThe new response mapping template.
kind(ResolverKind)/set_kind(Option<ResolverKind>):
required: falseThe 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>):
required: falseThe
PipelineConfig.sync_config(SyncConfig)/set_sync_config(Option<SyncConfig>):
required: falseThe
SyncConfigfor a resolver attached to a versioned data source.caching_config(CachingConfig)/set_caching_config(Option<CachingConfig>):
required: falseThe caching configuration for the resolver.
max_batch_size(i32)/set_max_batch_size(Option<i32>):
required: falseThe maximum batching size for a resolver.
runtime(AppSyncRuntime)/set_runtime(Option<AppSyncRuntime>):
required: falseDescribes 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>):
required: falseThe
resolvercode that contains the request and response functions. When code is used, theruntimeis required. Theruntimevalue must beAPPSYNC_JS.metrics_config(ResolverLevelMetricsConfig)/set_metrics_config(Option<ResolverLevelMetricsConfig>):
required: falseEnables or disables enhanced resolver metrics for specified resolvers. Note that
metricsConfigwon’t be used unless theresolverLevelMetricsBehaviorvalue is set toPER_RESOLVER_METRICS. If theresolverLevelMetricsBehavioris set toFULL_REQUEST_RESOLVER_METRICSinstead,metricsConfigwill be ignored. However, you can still set its value.metricsConfigcan beENABLEDorDISABLED.
- 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>):
required: trueThe ID generated by the AppSync service for the source API association.
merged_api_identifier(impl Into<String>)/set_merged_api_identifier(Option<String>):
required: trueThe 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>):
required: falseThe description field.
source_api_association_config(SourceApiAssociationConfig)/set_source_api_association_config(Option<SourceApiAssociationConfig>):
required: falseThe
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>):
required: trueThe API ID.
type_name(impl Into<String>)/set_type_name(Option<String>):
required: trueThe new type name.
definition(impl Into<String>)/set_definition(Option<String>):
required: falseThe new definition.
format(TypeDefinitionFormat)/set_format(Option<TypeDefinitionFormat>):
required: trueThe 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 from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config.
§Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a
sleep_implconfigured. - Identity caching is enabled without a
sleep_implandtime_sourceconfigured. - No
behavior_versionis provided.
The panic message for each of these will have instructions on how to resolve them.
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. - This method will panic if no
BehaviorVersionis provided. If you experience this panic, setbehavior_versionon the Config or enable thebehavior-version-latestCargo feature.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Returns self with the
fg()
set to
Color::BrightBlack.
§Example
println!("{}", value.bright_black());Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Returns self with the
fg()
set to
Color::BrightGreen.
§Example
println!("{}", value.bright_green());Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Returns self with the
fg()
set to
Color::BrightYellow.
§Example
println!("{}", value.bright_yellow());Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Returns self with the
fg()
set to
Color::BrightMagenta.
§Example
println!("{}", value.bright_magenta());Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Returns self with the
fg()
set to
Color::BrightWhite.
§Example
println!("{}", value.bright_white());Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightBlack.
§Example
println!("{}", value.on_bright_black());Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightGreen.
§Example
println!("{}", value.on_bright_green());Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightYellow.
§Example
println!("{}", value.on_bright_yellow());Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightBlue.
§Example
println!("{}", value.on_bright_blue());Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightMagenta.
§Example
println!("{}", value.on_bright_magenta());Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightCyan.
§Example
println!("{}", value.on_bright_cyan());Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightWhite.
§Example
println!("{}", value.on_bright_white());Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn underline(&self) -> Painted<&T>
fn underline(&self) -> Painted<&T>
Returns self with the
attr()
set to
Attribute::Underline.
§Example
println!("{}", value.underline());Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Returns self with the
attr()
set to
Attribute::RapidBlink.
§Example
println!("{}", value.rapid_blink());Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);