Struct aws_sdk_apigateway::client::fluent_builders::CreateRestApi [−][src]
pub struct CreateRestApi<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateRestApi
.
Creates a new RestApi
resource.
Implementations
impl<C, M, R> CreateRestApi<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateRestApi<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateRestApiOutput, SdkError<CreateRestApiError>> where
R::Policy: SmithyRetryPolicy<CreateRestApiInputOperationOutputAlias, CreateRestApiOutput, CreateRestApiError, CreateRestApiInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateRestApiOutput, SdkError<CreateRestApiError>> where
R::Policy: SmithyRetryPolicy<CreateRestApiInputOperationOutputAlias, CreateRestApiOutput, CreateRestApiError, CreateRestApiInputOperationRetryAlias>,
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.
The description of the RestApi
.
The description of the RestApi
.
A version identifier for the API.
The ID of the RestApi
that you want to clone from.
The ID of the RestApi
that you want to clone from.
Appends an item to binaryMediaTypes
.
To override the contents of this collection use set_binary_media_types
.
The list of binary media types supported by the RestApi
. By default, the RestApi
supports only UTF-8-encoded text payloads.
The list of binary media types supported by the RestApi
. By default, the RestApi
supports only UTF-8-encoded text payloads.
A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.
A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.
The source of the API key for metering requests according to a usage plan. Valid values are:
HEADER
to read the API key from theX-API-Key
header of a request.AUTHORIZER
to read the API key from theUsageIdentifierKey
from a custom authorizer.
The source of the API key for metering requests according to a usage plan. Valid values are:
HEADER
to read the API key from theX-API-Key
header of a request.AUTHORIZER
to read the API key from theUsageIdentifierKey
from a custom authorizer.
The endpoint configuration of this RestApi
showing the endpoint types of the API.
The endpoint configuration of this RestApi
showing the endpoint types of the API.
A stringified JSON policy document that applies to this RestApi regardless of the caller and Method
configuration.
A stringified JSON policy document that applies to this RestApi regardless of the caller and Method
configuration.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:
. The tag value can be up to 256 characters.
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:
. The tag value can be up to 256 characters.
Specifies whether clients can invoke your API by using the default execute-api
endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.
Specifies whether clients can invoke your API by using the default execute-api
endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateRestApi<C, M, R>
impl<C, M, R> Unpin for CreateRestApi<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateRestApi<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more