describe_applications
(**kwargs)¶Returns the descriptions of existing applications.
See also: AWS API Documentation
Request Syntax
response = client.describe_applications(
ApplicationNames=[
'string',
]
)
If specified, AWS Elastic Beanstalk restricts the returned descriptions to only include those with the specified names.
{
'Applications': [
{
'ApplicationArn': 'string',
'ApplicationName': 'string',
'Description': 'string',
'DateCreated': datetime(2015, 1, 1),
'DateUpdated': datetime(2015, 1, 1),
'Versions': [
'string',
],
'ConfigurationTemplates': [
'string',
],
'ResourceLifecycleConfig': {
'ServiceRole': 'string',
'VersionLifecycleConfig': {
'MaxCountRule': {
'Enabled': True|False,
'MaxCount': 123,
'DeleteSourceFromS3': True|False
},
'MaxAgeRule': {
'Enabled': True|False,
'MaxAgeInDays': 123,
'DeleteSourceFromS3': True|False
}
}
}
},
]
}
Response Structure
Result message containing a list of application descriptions.
This parameter contains a list of ApplicationDescription.
Describes the properties of an application.
The Amazon Resource Name (ARN) of the application.
The name of the application.
User-defined description of the application.
The date when the application was created.
The date when the application was last modified.
The names of the versions for this application.
The names of the configuration templates associated with this application.
The lifecycle settings for the application.
The ARN of an IAM service role that Elastic Beanstalk has permission to assume.
The ServiceRole
property is required the first time that you provide a VersionLifecycleConfig
for the application in one of the supporting calls ( CreateApplication
or UpdateApplicationResourceLifecycle
). After you provide it once, in either one of the calls, Elastic Beanstalk persists the Service Role with the application, and you don't need to specify it again in subsequent UpdateApplicationResourceLifecycle
calls. You can, however, specify it in subsequent calls to change the Service Role to another value.
Defines lifecycle settings for application versions.
Specify a max count rule to restrict the number of application versions that are retained for an application.
Specify true
to apply the rule, or false
to disable it.
Specify the maximum number of application versions to retain.
Set to true
to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
Specify a max age rule to restrict the length of time that application versions are retained for an application.
Specify true
to apply the rule, or false
to disable it.
Specify the number of days to retain an application versions.
Set to true
to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
Examples
The following operation retrieves information about applications in the current region:
response = client.describe_applications(
)
print(response)
Expected Output:
{
'Applications': [
{
'ApplicationName': 'ruby',
'ConfigurationTemplates': [
],
'DateCreated': datetime(2015, 8, 13, 21, 5, 44, 3, 225, 0),
'DateUpdated': datetime(2015, 8, 13, 21, 5, 44, 3, 225, 0),
'Versions': [
'Sample Application',
],
},
{
'ApplicationName': 'pythonsample',
'ConfigurationTemplates': [
],
'DateCreated': datetime(2015, 8, 13, 19, 5, 43, 3, 225, 0),
'DateUpdated': datetime(2015, 8, 13, 19, 5, 43, 3, 225, 0),
'Description': 'Application created from the EB CLI using "eb init"',
'Versions': [
'Sample Application',
],
},
{
'ApplicationName': 'nodejs-example',
'ConfigurationTemplates': [
],
'DateCreated': datetime(2015, 8, 6, 17, 50, 2, 3, 218, 0),
'DateUpdated': datetime(2015, 8, 6, 17, 50, 2, 3, 218, 0),
'Versions': [
'add elasticache',
'First Release',
],
},
],
'ResponseMetadata': {
'...': '...',
},
}