AmplifyGen3 / Client / list_environment_variables
list_environment_variables¶
- AmplifyGen3.Client.list_environment_variables(**kwargs)¶
Returns a list of the environment variables for an environment of a Gen 3 app.
See also: AWS API Documentation
Request Syntax
response = client.list_environment_variables( AppName='string', EnvironmentName='string', MaxResults=123, NextToken='string' )
- Parameters:
AppName (string) –
[REQUIRED]
The name of the app.
EnvironmentName (string) –
[REQUIRED]
The name of the environment.
MaxResults (integer) – The maximum number of results to return in a single response.
NextToken (string) – The pagination token returned in a previous response, used to retrieve the next page of results.
- Return type:
dict
- Returns:
Response Syntax
{ 'EnvironmentVariables': [ { 'Key': 'string', 'Value': 'string', 'Type': 'PLAINTEXT'|'SENSITIVE', 'Comment': 'string', 'SourceIntegrationArn': 'string', 'Scope': 'BUILD'|'RUNTIME'|'ALL'|'BACKEND' }, ], 'NextToken': 'string' }
Response Structure
(dict) –
EnvironmentVariables (list) –
The environment variables.
(dict) –
An environment variable for an environment.
Key (string) –
The key of the environment variable.
Value (string) –
The value of the environment variable. Omitted for secrets.
Type (string) –
The type of the environment variable.
Comment (string) –
An optional comment describing the environment variable.
SourceIntegrationArn (string) –
The Amazon Resource Name (ARN) of the integration that provides this environment variable, if any.
Scope (string) –
The scope where the environment variable is available.
NextToken (string) –
The pagination token returned in a previous response, used to retrieve the next page of results.
Exceptions