AWS Elastic Beanstalk

2018/12/18 - AWS Elastic Beanstalk - 1 updated api methods

Changes  Update elasticbeanstalk client to latest version

DescribeEnvironmentResources (updated) Link ΒΆ
Changes (response)
{'EnvironmentResources': {'LaunchTemplates': [{'Id': 'string'}]}}

Returns AWS resources for this environment.

See also: AWS API Documentation

Request Syntax

client.describe_environment_resources(
    EnvironmentId='string',
    EnvironmentName='string'
)
type EnvironmentId:

string

param EnvironmentId:

The ID of the environment to retrieve AWS resource usage data.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

type EnvironmentName:

string

param EnvironmentName:

The name of the environment to retrieve AWS resource usage data.

Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

rtype:

dict

returns:

Response Syntax

{
    'EnvironmentResources': {
        'EnvironmentName': 'string',
        'AutoScalingGroups': [
            {
                'Name': 'string'
            },
        ],
        'Instances': [
            {
                'Id': 'string'
            },
        ],
        'LaunchConfigurations': [
            {
                'Name': 'string'
            },
        ],
        'LaunchTemplates': [
            {
                'Id': 'string'
            },
        ],
        'LoadBalancers': [
            {
                'Name': 'string'
            },
        ],
        'Triggers': [
            {
                'Name': 'string'
            },
        ],
        'Queues': [
            {
                'Name': 'string',
                'URL': 'string'
            },
        ]
    }
}

Response Structure

  • (dict) --

    Result message containing a list of environment resource descriptions.

    • EnvironmentResources (dict) --

      A list of EnvironmentResourceDescription.

      • EnvironmentName (string) --

        The name of the environment.

      • AutoScalingGroups (list) --

        The AutoScalingGroups used by this environment.

        • (dict) --

          Describes an Auto Scaling launch configuration.

          • Name (string) --

            The name of the AutoScalingGroup .

      • Instances (list) --

        The Amazon EC2 instances used by this environment.

        • (dict) --

          The description of an Amazon EC2 instance.

          • Id (string) --

            The ID of the Amazon EC2 instance.

      • LaunchConfigurations (list) --

        The Auto Scaling launch configurations in use by this environment.

        • (dict) --

          Describes an Auto Scaling launch configuration.

          • Name (string) --

            The name of the launch configuration.

      • LaunchTemplates (list) --

        The Amazon EC2 launch templates in use by this environment.

        • (dict) --

          Describes an Amazon EC2 launch template.

          • Id (string) --

            The ID of the launch template.

      • LoadBalancers (list) --

        The LoadBalancers in use by this environment.

        • (dict) --

          Describes a LoadBalancer.

          • Name (string) --

            The name of the LoadBalancer.

      • Triggers (list) --

        The AutoScaling triggers in use by this environment.

        • (dict) --

          Describes a trigger.

          • Name (string) --

            The name of the trigger.

      • Queues (list) --

        The queues used by this environment.

        • (dict) --

          Describes a queue.

          • Name (string) --

            The name of the queue.

          • URL (string) --

            The URL of the queue.