AmplifyGen3 / Client / put_environment_variables

put_environment_variables

AmplifyGen3.Client.put_environment_variables(**kwargs)

Updates environment variables for an environment of a Gen 3 app.

See also: AWS API Documentation

Request Syntax

response = client.put_environment_variables(
    AppName='string',
    EnvironmentName='string',
    EnvironmentVariables=[
        {
            'Key': 'string',
            'Value': 'string',
            'Type': 'PLAINTEXT'|'SENSITIVE',
            'Comment': 'string',
            'Scope': 'BUILD'|'RUNTIME'|'ALL'|'BACKEND'
        },
    ]
)
Parameters:
  • AppName (string) –

    [REQUIRED]

    The name of the app.

  • EnvironmentName (string) –

    [REQUIRED]

    The name of the environment.

  • EnvironmentVariables (list) –

    [REQUIRED]

    The environment variables.

    • (dict) –

      An environment variable to set.

      • Key (string) – [REQUIRED]

        The key of the environment variable.

      • Value (string) – [REQUIRED]

        The value of the environment variable.

      • Type (string) – [REQUIRED]

        The type of the environment.

      • Comment (string) –

        An optional comment describing the environment variable.

      • Scope (string) –

        The scope where the environment variable is available. Valid values are BUILD, RUNTIME, BACKEND, and ALL. The default is ALL.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • AmplifyGen3.Client.exceptions.ThrottlingException

  • AmplifyGen3.Client.exceptions.AccessDeniedException

  • AmplifyGen3.Client.exceptions.ResourceNotFoundException

  • AmplifyGen3.Client.exceptions.ValidationException

  • AmplifyGen3.Client.exceptions.ConflictException

  • AmplifyGen3.Client.exceptions.InternalServerException