ElasticBeanstalk / Client / list_available_solution_stacks
list_available_solution_stacks¶
- ElasticBeanstalk.Client.list_available_solution_stacks()¶
Returns a list of the available solution stack names, with the public version first and then in reverse chronological order.
This action only returns information about resources that the calling principle has IAM permissions to access. For example, consider a case where a user only has permission to access one of three resources. When the user calls the this action, the response will only include the one resource that the user has permission to access instead of all three resources. If the user doesn’t have access to any of the resources an empty result is returned.
Note
The AWSElasticBeanstalkReadOnly managed policy allows operators to view information about resources related to Elastic Beanstalk. For more information, see Managing Elastic Beanstalk user policies in the Elastic Beanstalk Developer Guide. For detailed instructions to attach a policy to a user or group, see the section Controlling access with managed policies in the same topic.
See also: AWS API Documentation
Request Syntax
response = client.list_available_solution_stacks()
- Return type:
dict
- Returns:
Response Syntax
{ 'SolutionStacks': [ 'string', ], 'SolutionStackDetails': [ { 'SolutionStackName': 'string', 'PermittedFileTypes': [ 'string', ] }, ] }
Response Structure
(dict) –
A list of available Elastic Beanstalk solution stacks.
SolutionStacks (list) –
A list of available solution stacks.
(string) –
SolutionStackDetails (list) –
A list of available solution stacks and their SolutionStackDescription.
(dict) –
Describes the solution stack.
SolutionStackName (string) –
The name of the solution stack.
PermittedFileTypes (list) –
The permitted file types allowed for a solution stack.
(string) –
Examples
The following operation lists solution stacks for all currently available platform configurations and any that you have used in the past:
response = client.list_available_solution_stacks( ) print(response)
Expected Output:
{ 'SolutionStackDetails': [ { 'PermittedFileTypes': [ 'zip', ], 'SolutionStackName': '64bit Amazon Linux 2015.03 v2.0.0 running Node.js', }, ], 'SolutionStacks': [ '64bit Amazon Linux 2015.03 v2.0.0 running Node.js', '64bit Amazon Linux 2015.03 v2.0.0 running PHP 5.6', '64bit Amazon Linux 2015.03 v2.0.0 running PHP 5.5', '64bit Amazon Linux 2015.03 v2.0.0 running PHP 5.4', '64bit Amazon Linux 2015.03 v2.0.0 running Python 3.4', '64bit Amazon Linux 2015.03 v2.0.0 running Python 2.7', '64bit Amazon Linux 2015.03 v2.0.0 running Python', '64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.2 (Puma)', '64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.2 (Passenger Standalone)', '64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.1 (Puma)', '64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.1 (Passenger Standalone)', '64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.0 (Puma)', '64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.0 (Passenger Standalone)', '64bit Amazon Linux 2015.03 v2.0.0 running Ruby 1.9.3', '64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8', '64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 7 Java 7', '64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 7 Java 6', '64bit Windows Server Core 2012 R2 running IIS 8.5', '64bit Windows Server 2012 R2 running IIS 8.5', '64bit Windows Server 2012 running IIS 8', '64bit Windows Server 2008 R2 running IIS 7.5', '64bit Amazon Linux 2015.03 v2.0.0 running Docker 1.6.2', '64bit Amazon Linux 2015.03 v2.0.0 running Multi-container Docker 1.6.2 (Generic)', '64bit Debian jessie v2.0.0 running GlassFish 4.1 Java 8 (Preconfigured - Docker)', '64bit Debian jessie v2.0.0 running GlassFish 4.0 Java 7 (Preconfigured - Docker)', '64bit Debian jessie v2.0.0 running Go 1.4 (Preconfigured - Docker)', '64bit Debian jessie v2.0.0 running Go 1.3 (Preconfigured - Docker)', '64bit Debian jessie v2.0.0 running Python 3.4 (Preconfigured - Docker)', ], 'ResponseMetadata': { '...': '...', }, }