Struct rusoto_apigateway::CreateRestApiRequest
source · [−]pub struct CreateRestApiRequest {
pub api_key_source: Option<String>,
pub binary_media_types: Option<Vec<String>>,
pub clone_from: Option<String>,
pub description: Option<String>,
pub disable_execute_api_endpoint: Option<bool>,
pub endpoint_configuration: Option<EndpointConfiguration>,
pub minimum_compression_size: Option<i64>,
pub name: String,
pub policy: Option<String>,
pub tags: Option<HashMap<String, String>>,
pub version: Option<String>,
}
Expand description
The POST Request to add a new RestApi resource to your collection.
Fields
api_key_source: Option<String>
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.
binary_media_types: Option<Vec<String>>
The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.
clone_from: Option<String>
The ID of the RestApi that you want to clone from.
description: Option<String>
The description of the RestApi.
disable_execute_api_endpoint: Option<bool>
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.
endpoint_configuration: Option<EndpointConfiguration>
The endpoint configuration of this RestApi showing the endpoint types of the API.
minimum_compression_size: Option<i64>
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.
name: String
[Required] The name of the RestApi.
policy: Option<String>
A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration.
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.
version: Option<String>
A version identifier for the API.
Trait Implementations
sourceimpl Clone for CreateRestApiRequest
impl Clone for CreateRestApiRequest
sourcefn clone(&self) -> CreateRestApiRequest
fn clone(&self) -> CreateRestApiRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CreateRestApiRequest
impl Debug for CreateRestApiRequest
sourceimpl Default for CreateRestApiRequest
impl Default for CreateRestApiRequest
sourcefn default() -> CreateRestApiRequest
fn default() -> CreateRestApiRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<CreateRestApiRequest> for CreateRestApiRequest
impl PartialEq<CreateRestApiRequest> for CreateRestApiRequest
sourcefn eq(&self, other: &CreateRestApiRequest) -> bool
fn eq(&self, other: &CreateRestApiRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CreateRestApiRequest) -> bool
fn ne(&self, other: &CreateRestApiRequest) -> bool
This method tests for !=
.
sourceimpl Serialize for CreateRestApiRequest
impl Serialize for CreateRestApiRequest
impl StructuralPartialEq for CreateRestApiRequest
Auto Trait Implementations
impl RefUnwindSafe for CreateRestApiRequest
impl Send for CreateRestApiRequest
impl Sync for CreateRestApiRequest
impl Unpin for CreateRestApiRequest
impl UnwindSafe for CreateRestApiRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more