import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DescribeEventsMessage, EventDescriptionsMessage } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DescribeEventsCommand}. */ export interface DescribeEventsCommandInput extends DescribeEventsMessage { } /** * @public * * The output of {@link DescribeEventsCommand}. */ export interface DescribeEventsCommandOutput extends EventDescriptionsMessage, __MetadataBearer { } declare const DescribeEventsCommand_base: { new (input: DescribeEventsCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [DescribeEventsCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

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.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ElasticBeanstalkClient, DescribeEventsCommand } from "@aws-sdk/client-elastic-beanstalk"; // ES Modules import * // const { ElasticBeanstalkClient, DescribeEventsCommand } = require("@aws-sdk/client-elastic-beanstalk"); // CommonJS import * // import type { ElasticBeanstalkClientConfig } from "@aws-sdk/client-elastic-beanstalk"; * const config = {}; // type is ElasticBeanstalkClientConfig * const client = new ElasticBeanstalkClient(config); * const input = { // DescribeEventsMessage * ApplicationName: "STRING_VALUE", * VersionLabel: "STRING_VALUE", * TemplateName: "STRING_VALUE", * EnvironmentId: "STRING_VALUE", * EnvironmentName: "STRING_VALUE", * PlatformArn: "STRING_VALUE", * RequestId: "STRING_VALUE", * Severity: "TRACE" || "DEBUG" || "INFO" || "WARN" || "ERROR" || "FATAL", * StartTime: new Date("TIMESTAMP"), * EndTime: new Date("TIMESTAMP"), * MaxRecords: Number("int"), * NextToken: "STRING_VALUE", * }; * const command = new DescribeEventsCommand(input); * const response = await client.send(command); * // { // EventDescriptionsMessage * // Events: [ // EventDescriptionList * // { // EventDescription * // EventDate: new Date("TIMESTAMP"), * // Message: "STRING_VALUE", * // ApplicationName: "STRING_VALUE", * // VersionLabel: "STRING_VALUE", * // TemplateName: "STRING_VALUE", * // EnvironmentName: "STRING_VALUE", * // PlatformArn: "STRING_VALUE", * // RequestId: "STRING_VALUE", * // Severity: "TRACE" || "DEBUG" || "INFO" || "WARN" || "ERROR" || "FATAL", * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param DescribeEventsCommandInput - {@link DescribeEventsCommandInput} * @returns {@link DescribeEventsCommandOutput} * @see {@link DescribeEventsCommandInput} for command's `input` shape. * @see {@link DescribeEventsCommandOutput} for command's `response` shape. * @see {@link ElasticBeanstalkClientResolvedConfig | config} for ElasticBeanstalkClient's `config` shape. * * @throws {@link ElasticBeanstalkSyntheticServiceException} *

Base exception class for all service exceptions from ElasticBeanstalk service.

* * * @example To view events for an environment * ```javascript * // The following operation retrieves events for an environment named my-env: * const input = { * EnvironmentName: "my-env" * }; * const command = new DescribeEventsCommand(input); * const response = await client.send(command); * /* response is * { * Events: [ * { * ApplicationName: "my-app", * EnvironmentName: "my-env", * EventDate: "2015-08-20T07:06:53.535Z", * Message: "Environment health has transitioned from Info to Ok.", * Severity: "INFO" * }, * { * ApplicationName: "my-app", * EnvironmentName: "my-env", * EventDate: "2015-08-20T07:06:02.049Z", * Message: "Environment update completed successfully.", * RequestId: "b7f3960b-4709-11e5-ba1e-07e16200da41", * Severity: "INFO" * }, * { * ApplicationName: "my-app", * EnvironmentName: "my-env", * EventDate: "2015-08-13T19:16:27.561Z", * Message: "Using elasticbeanstalk-us-west-2-012445113685 as Amazon S3 storage bucket for environment data.", * RequestId: "ca8dfbf6-41ef-11e5-988b-651aa638f46b", * Severity: "INFO" * }, * { * ApplicationName: "my-app", * EnvironmentName: "my-env", * EventDate: "2015-08-13T19:16:26.581Z", * Message: "createEnvironment is starting.", * RequestId: "cdfba8f6-41ef-11e5-988b-65638f41aa6b", * Severity: "INFO" * } * ] * } * *\/ * ``` * * @public */ export declare class DescribeEventsCommand extends DescribeEventsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeEventsMessage; output: EventDescriptionsMessage; }; sdk: { input: DescribeEventsCommandInput; output: DescribeEventsCommandOutput; }; }; }