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 ==
.