Struct aws_sdk_appsync::operation::put_graphql_api_environment_variables::builders::PutGraphqlApiEnvironmentVariablesInputBuilder
source · #[non_exhaustive]pub struct PutGraphqlApiEnvironmentVariablesInputBuilder { /* private fields */ }
Expand description
A builder for PutGraphqlApiEnvironmentVariablesInput
.
Implementations§
source§impl PutGraphqlApiEnvironmentVariablesInputBuilder
impl PutGraphqlApiEnvironmentVariablesInputBuilder
sourcepub fn api_id(self, input: impl Into<String>) -> Self
pub fn api_id(self, input: impl Into<String>) -> Self
The ID of the API to which the environmental variable list will be written.
This field is required.sourcepub fn set_api_id(self, input: Option<String>) -> Self
pub fn set_api_id(self, input: Option<String>) -> Self
The ID of the API to which the environmental variable list will be written.
sourcepub fn get_api_id(&self) -> &Option<String>
pub fn get_api_id(&self) -> &Option<String>
The ID of the API to which the environmental variable list will be written.
sourcepub fn environment_variables(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn environment_variables( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to environment_variables
.
To override the contents of this collection use set_environment_variables
.
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.
sourcepub fn set_environment_variables(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_environment_variables( self, input: Option<HashMap<String, String>> ) -> Self
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.
sourcepub fn get_environment_variables(&self) -> &Option<HashMap<String, String>>
pub fn get_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.
sourcepub fn build(self) -> Result<PutGraphqlApiEnvironmentVariablesInput, BuildError>
pub fn build(self) -> Result<PutGraphqlApiEnvironmentVariablesInput, BuildError>
Consumes the builder and constructs a PutGraphqlApiEnvironmentVariablesInput
.
source§impl PutGraphqlApiEnvironmentVariablesInputBuilder
impl PutGraphqlApiEnvironmentVariablesInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PutGraphqlApiEnvironmentVariablesOutput, SdkError<PutGraphqlApiEnvironmentVariablesError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PutGraphqlApiEnvironmentVariablesOutput, SdkError<PutGraphqlApiEnvironmentVariablesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutGraphqlApiEnvironmentVariablesInputBuilder
impl Clone for PutGraphqlApiEnvironmentVariablesInputBuilder
source§fn clone(&self) -> PutGraphqlApiEnvironmentVariablesInputBuilder
fn clone(&self) -> PutGraphqlApiEnvironmentVariablesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PutGraphqlApiEnvironmentVariablesInputBuilder
impl Default for PutGraphqlApiEnvironmentVariablesInputBuilder
source§fn default() -> PutGraphqlApiEnvironmentVariablesInputBuilder
fn default() -> PutGraphqlApiEnvironmentVariablesInputBuilder
source§impl PartialEq for PutGraphqlApiEnvironmentVariablesInputBuilder
impl PartialEq for PutGraphqlApiEnvironmentVariablesInputBuilder
source§fn eq(&self, other: &PutGraphqlApiEnvironmentVariablesInputBuilder) -> bool
fn eq(&self, other: &PutGraphqlApiEnvironmentVariablesInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.