Struct aws_sdk_appsync::operation::put_graphql_api_environment_variables::PutGraphqlApiEnvironmentVariablesInput
source · #[non_exhaustive]pub struct PutGraphqlApiEnvironmentVariablesInput {
pub api_id: Option<String>,
pub environment_variables: Option<HashMap<String, String>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.api_id: Option<String>
The ID of the API to which the environmental variable list will be written.
environment_variables: Option<HashMap<String, String>>
The 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 environmentVariables
payload as a list in the format {"key1":"value1","key2":"value2", …}
. Note that each call of the PutGraphqlApiEnvironmentVariables
action 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.
Implementations§
source§impl PutGraphqlApiEnvironmentVariablesInput
impl PutGraphqlApiEnvironmentVariablesInput
sourcepub fn api_id(&self) -> Option<&str>
pub fn api_id(&self) -> Option<&str>
The ID of the API to which the environmental variable list will be written.
sourcepub fn environment_variables(&self) -> Option<&HashMap<String, String>>
pub fn environment_variables(&self) -> Option<&HashMap<String, String>>
The 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 environmentVariables
payload as a list in the format {"key1":"value1","key2":"value2", …}
. Note that each call of the PutGraphqlApiEnvironmentVariables
action 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.
source§impl PutGraphqlApiEnvironmentVariablesInput
impl PutGraphqlApiEnvironmentVariablesInput
sourcepub fn builder() -> PutGraphqlApiEnvironmentVariablesInputBuilder
pub fn builder() -> PutGraphqlApiEnvironmentVariablesInputBuilder
Creates a new builder-style object to manufacture PutGraphqlApiEnvironmentVariablesInput
.
Trait Implementations§
source§impl Clone for PutGraphqlApiEnvironmentVariablesInput
impl Clone for PutGraphqlApiEnvironmentVariablesInput
source§fn clone(&self) -> PutGraphqlApiEnvironmentVariablesInput
fn clone(&self) -> PutGraphqlApiEnvironmentVariablesInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for PutGraphqlApiEnvironmentVariablesInput
impl PartialEq for PutGraphqlApiEnvironmentVariablesInput
source§fn eq(&self, other: &PutGraphqlApiEnvironmentVariablesInput) -> bool
fn eq(&self, other: &PutGraphqlApiEnvironmentVariablesInput) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for PutGraphqlApiEnvironmentVariablesInput
Auto Trait Implementations§
impl Freeze for PutGraphqlApiEnvironmentVariablesInput
impl RefUnwindSafe for PutGraphqlApiEnvironmentVariablesInput
impl Send for PutGraphqlApiEnvironmentVariablesInput
impl Sync for PutGraphqlApiEnvironmentVariablesInput
impl Unpin for PutGraphqlApiEnvironmentVariablesInput
impl UnwindSafe for PutGraphqlApiEnvironmentVariablesInput
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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 more