pub struct CreateFunctionFluentBuilder { /* 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 CreateFunctionFluentBuilder

source

pub fn as_input(&self) -> &CreateFunctionInputBuilder

Access the CreateFunction as a reference.

source

pub async fn send( self ) -> Result<CreateFunctionOutput, SdkError<CreateFunctionError, HttpResponse>>

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.

source

pub async fn customize( self ) -> Result<CustomizableOperation<CreateFunctionOutput, CreateFunctionError>, SdkError<CreateFunctionError>>

Consumes this builder, creating a customizable operation that can be modified before being sent.

source

pub fn api_id(self, input: impl Into<String>) -> Self

The GraphQL API ID.

source

pub fn set_api_id(self, input: Option<String>) -> Self

The GraphQL API ID.

source

pub fn get_api_id(&self) -> &Option<String>

The GraphQL API ID.

source

pub fn name(self, input: impl Into<String>) -> Self

The Function name. The function name does not have to be unique.

source

pub fn set_name(self, input: Option<String>) -> Self

The Function name. The function name does not have to be unique.

source

pub fn get_name(&self) -> &Option<String>

The Function name. The function name does not have to be unique.

source

pub fn description(self, input: impl Into<String>) -> Self

The Function description.

source

pub fn set_description(self, input: Option<String>) -> Self

The Function description.

source

pub fn get_description(&self) -> &Option<String>

The Function description.

source

pub fn data_source_name(self, input: impl Into<String>) -> Self

The Function DataSource name.

source

pub fn set_data_source_name(self, input: Option<String>) -> Self

The Function DataSource name.

source

pub fn get_data_source_name(&self) -> &Option<String>

The Function DataSource name.

source

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.

source

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.

source

pub fn get_request_mapping_template(&self) -> &Option<String>

The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

source

pub fn response_mapping_template(self, input: impl Into<String>) -> Self

The Function response mapping template.

source

pub fn set_response_mapping_template(self, input: Option<String>) -> Self

The Function response mapping template.

source

pub fn get_response_mapping_template(&self) -> &Option<String>

The Function response mapping template.

source

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.

source

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.

source

pub fn get_function_version(&self) -> &Option<String>

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.

source

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.

source

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.

source

pub fn get_sync_config(&self) -> &Option<SyncConfig>

Describes a Sync configuration for a resolver.

Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.

source

pub fn max_batch_size(self, input: i32) -> Self

The maximum batching size for a resolver.

source

pub fn set_max_batch_size(self, input: Option<i32>) -> Self

The maximum batching size for a resolver.

source

pub fn get_max_batch_size(&self) -> &Option<i32>

The maximum batching size for a resolver.

source

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.

source

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.

source

pub fn get_runtime(&self) -> &Option<AppSyncRuntime>

Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.

source

pub fn code(self, input: impl Into<String>) -> Self

The function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.

source

pub fn set_code(self, input: Option<String>) -> Self

The function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.

source

pub fn get_code(&self) -> &Option<String>

The function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.

Trait Implementations§

source§

impl Clone for CreateFunctionFluentBuilder

source§

fn clone(&self) -> CreateFunctionFluentBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CreateFunctionFluentBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more