Struct aws_sdk_appsync::client::fluent_builders::CreateFunction
source · pub struct CreateFunction { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateFunction
.
Creates a Function
object.
A function is a reusable entity. You can use multiple functions to compose the resolver logic.
Implementations§
source§impl CreateFunction
impl CreateFunction
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateFunction, AwsResponseRetryClassifier>, SdkError<CreateFunctionError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateFunction, AwsResponseRetryClassifier>, SdkError<CreateFunctionError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateFunctionOutput, SdkError<CreateFunctionError>>
pub async fn send(
self
) -> Result<CreateFunctionOutput, SdkError<CreateFunctionError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn set_api_id(self, input: Option<String>) -> Self
pub fn set_api_id(self, input: Option<String>) -> Self
The GraphQL API ID.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The Function
name. The function name does not have to be unique.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The Function
name. The function name does not have to be unique.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The Function
description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The Function
description.
sourcepub fn data_source_name(self, input: impl Into<String>) -> Self
pub fn data_source_name(self, input: impl Into<String>) -> Self
The Function
DataSource
name.
sourcepub fn set_data_source_name(self, input: Option<String>) -> Self
pub fn set_data_source_name(self, input: Option<String>) -> Self
The Function
DataSource
name.
sourcepub fn request_mapping_template(self, input: impl Into<String>) -> Self
pub fn request_mapping_template(self, input: impl Into<String>) -> Self
The Function
request mapping template. Functions support only the 2018-05-29 version of the request mapping template.
sourcepub fn set_request_mapping_template(self, input: Option<String>) -> Self
pub fn set_request_mapping_template(self, input: Option<String>) -> Self
The Function
request mapping template. Functions support only the 2018-05-29 version of the request mapping template.
sourcepub fn response_mapping_template(self, input: impl Into<String>) -> Self
pub fn response_mapping_template(self, input: impl Into<String>) -> Self
The Function
response mapping template.
sourcepub fn set_response_mapping_template(self, input: Option<String>) -> Self
pub fn set_response_mapping_template(self, input: Option<String>) -> Self
The Function
response mapping template.
sourcepub fn function_version(self, input: impl Into<String>) -> Self
pub fn function_version(self, input: impl Into<String>) -> Self
The version
of the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, the functionVersion
is required.
sourcepub fn set_function_version(self, input: Option<String>) -> Self
pub fn set_function_version(self, input: Option<String>) -> Self
The version
of the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, the functionVersion
is required.
sourcepub fn sync_config(self, input: SyncConfig) -> Self
pub fn sync_config(self, input: SyncConfig) -> Self
Describes a Sync configuration for a resolver.
Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.
sourcepub fn set_sync_config(self, input: Option<SyncConfig>) -> Self
pub fn set_sync_config(self, input: Option<SyncConfig>) -> Self
Describes a Sync configuration for a resolver.
Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.
sourcepub fn max_batch_size(self, input: i32) -> Self
pub fn max_batch_size(self, input: i32) -> Self
The maximum batching size for a resolver.
sourcepub fn set_max_batch_size(self, input: Option<i32>) -> Self
pub fn set_max_batch_size(self, input: Option<i32>) -> Self
The maximum batching size for a resolver.
sourcepub fn runtime(self, input: AppSyncRuntime) -> Self
pub fn runtime(self, input: AppSyncRuntime) -> Self
Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.
sourcepub fn set_runtime(self, input: Option<AppSyncRuntime>) -> Self
pub fn set_runtime(self, input: Option<AppSyncRuntime>) -> Self
Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.
Trait Implementations§
source§impl Clone for CreateFunction
impl Clone for CreateFunction
source§fn clone(&self) -> CreateFunction
fn clone(&self) -> CreateFunction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more