describe_events
¶
describe_events(
*,
config_overrides: Optional[ElasticBeanstalkClientConfig] = None,
application_name: Optional[ApplicationName] = None,
version_label: Optional[VersionLabel] = None,
template_name: Optional[ConfigurationTemplateName] = None,
environment_id: Optional[EnvironmentId] = None,
environment_name: Optional[EnvironmentName] = None,
platform_arn: Optional[PlatformArn] = None,
request_id: Optional[RequestId] = None,
severity: Optional[EventSeverity] = None,
start_time: Optional[TimeFilterStart] = None,
end_time: Optional[TimeFilterEnd] = None,
max_records: Optional[MaxRecords] = None,
next_token: Optional[Token] = None,
) -> EventDescriptionsMessage
Returns list of event descriptions matching criteria up to the last 6 weeks.
This action returns the most recent 1,000 events from the specified NextToken.
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.
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.
Parameters:
-
application_name(Optional[ApplicationName], default:None) –If specified, Elastic Beanstalk restricts the returned descriptions to include only those associated with this application.
-
version_label(Optional[VersionLabel], default:None) –If specified, Elastic Beanstalk restricts the returned descriptions to those associated with this application version.
-
template_name(Optional[ConfigurationTemplateName], default:None) –If specified, Elastic Beanstalk restricts the returned descriptions to those that are associated with this environment configuration.
-
environment_id(Optional[EnvironmentId], default:None) –If specified, Elastic Beanstalk restricts the returned descriptions to those associated with this environment.
-
environment_name(Optional[EnvironmentName], default:None) –If specified, Elastic Beanstalk restricts the returned descriptions to those associated with this environment.
-
platform_arn(Optional[PlatformArn], default:None) –The ARN of a custom platform version. If specified, Elastic Beanstalk restricts the returned descriptions to those associated with this custom platform version.
-
request_id(Optional[RequestId], default:None) –If specified, Elastic Beanstalk restricts the described events to include only those associated with this request ID.
-
severity(Optional[EventSeverity], default:None) –If specified, limits the events returned from this call to include only those with the specified severity or higher.
-
start_time(Optional[TimeFilterStart], default:None) –If specified, Elastic Beanstalk restricts the returned descriptions to those that occur on or after this time.
-
end_time(Optional[TimeFilterEnd], default:None) –If specified, Elastic Beanstalk restricts the returned descriptions to those that occur up to, but not including, the
EndTime. -
max_records(Optional[MaxRecords], default:None) –Specifies the maximum number of events that can be returned, beginning with the most recent event.
-
next_token(Optional[Token], default:None) –Pagination token. If specified, the events return the next batch of results.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To view events for an environment The following operation retrieves events for an environment named my-env:
Source code in docs_src/capo_elastic_beanstalk/_services/elastic_beanstalk.py
1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 | |