import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EventBridgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EventBridgeClient"; import type { ListTargetsByRuleRequest, ListTargetsByRuleResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListTargetsByRuleCommand}. */ export interface ListTargetsByRuleCommandInput extends ListTargetsByRuleRequest { } /** * @public * * The output of {@link ListTargetsByRuleCommand}. */ export interface ListTargetsByRuleCommandOutput extends ListTargetsByRuleResponse, __MetadataBearer { } declare const ListTargetsByRuleCommand_base: { new (input: ListTargetsByRuleCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ListTargetsByRuleCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Lists the targets assigned to the specified rule.

*

The maximum number of results per page for requests is 100.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EventBridgeClient, ListTargetsByRuleCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import * // const { EventBridgeClient, ListTargetsByRuleCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import * // import type { EventBridgeClientConfig } from "@aws-sdk/client-eventbridge"; * const config = {}; // type is EventBridgeClientConfig * const client = new EventBridgeClient(config); * const input = { // ListTargetsByRuleRequest * Rule: "STRING_VALUE", // required * EventBusName: "STRING_VALUE", * NextToken: "STRING_VALUE", * Limit: Number("int"), * }; * const command = new ListTargetsByRuleCommand(input); * const response = await client.send(command); * // { // ListTargetsByRuleResponse * // Targets: [ // TargetList * // { // Target * // Id: "STRING_VALUE", // required * // Arn: "STRING_VALUE", // required * // RoleArn: "STRING_VALUE", * // Input: "STRING_VALUE", * // InputPath: "STRING_VALUE", * // InputTransformer: { // InputTransformer * // InputPathsMap: { // TransformerPaths * // "": "STRING_VALUE", * // }, * // InputTemplate: "STRING_VALUE", // required * // }, * // KinesisParameters: { // KinesisParameters * // PartitionKeyPath: "STRING_VALUE", // required * // }, * // RunCommandParameters: { // RunCommandParameters * // RunCommandTargets: [ // RunCommandTargets // required * // { // RunCommandTarget * // Key: "STRING_VALUE", // required * // Values: [ // RunCommandTargetValues // required * // "STRING_VALUE", * // ], * // }, * // ], * // }, * // EcsParameters: { // EcsParameters * // TaskDefinitionArn: "STRING_VALUE", // required * // TaskCount: Number("int"), * // LaunchType: "EC2" || "FARGATE" || "EXTERNAL", * // NetworkConfiguration: { // NetworkConfiguration * // awsvpcConfiguration: { // AwsVpcConfiguration * // Subnets: [ // StringList // required * // "STRING_VALUE", * // ], * // SecurityGroups: [ * // "STRING_VALUE", * // ], * // AssignPublicIp: "ENABLED" || "DISABLED", * // }, * // }, * // PlatformVersion: "STRING_VALUE", * // Group: "STRING_VALUE", * // CapacityProviderStrategy: [ // CapacityProviderStrategy * // { // CapacityProviderStrategyItem * // capacityProvider: "STRING_VALUE", // required * // weight: Number("int"), * // base: Number("int"), * // }, * // ], * // EnableECSManagedTags: true || false, * // EnableExecuteCommand: true || false, * // PlacementConstraints: [ // PlacementConstraints * // { // PlacementConstraint * // type: "distinctInstance" || "memberOf", * // expression: "STRING_VALUE", * // }, * // ], * // PlacementStrategy: [ // PlacementStrategies * // { // PlacementStrategy * // type: "random" || "spread" || "binpack", * // field: "STRING_VALUE", * // }, * // ], * // PropagateTags: "TASK_DEFINITION", * // ReferenceId: "STRING_VALUE", * // Tags: [ // TagList * // { // Tag * // Key: "STRING_VALUE", // required * // Value: "STRING_VALUE", // required * // }, * // ], * // }, * // BatchParameters: { // BatchParameters * // JobDefinition: "STRING_VALUE", // required * // JobName: "STRING_VALUE", // required * // ArrayProperties: { // BatchArrayProperties * // Size: Number("int"), * // }, * // RetryStrategy: { // BatchRetryStrategy * // Attempts: Number("int"), * // }, * // }, * // SqsParameters: { // SqsParameters * // MessageGroupId: "STRING_VALUE", * // }, * // HttpParameters: { // HttpParameters * // PathParameterValues: [ // PathParameterList * // "STRING_VALUE", * // ], * // HeaderParameters: { // HeaderParametersMap * // "": "STRING_VALUE", * // }, * // QueryStringParameters: { // QueryStringParametersMap * // "": "STRING_VALUE", * // }, * // }, * // RedshiftDataParameters: { // RedshiftDataParameters * // SecretManagerArn: "STRING_VALUE", * // Database: "STRING_VALUE", // required * // DbUser: "STRING_VALUE", * // Sql: "STRING_VALUE", * // StatementName: "STRING_VALUE", * // WithEvent: true || false, * // Sqls: [ // Sqls * // "STRING_VALUE", * // ], * // }, * // SageMakerPipelineParameters: { // SageMakerPipelineParameters * // PipelineParameterList: [ // SageMakerPipelineParameterList * // { // SageMakerPipelineParameter * // Name: "STRING_VALUE", // required * // Value: "STRING_VALUE", // required * // }, * // ], * // }, * // DeadLetterConfig: { // DeadLetterConfig * // Arn: "STRING_VALUE", * // }, * // RetryPolicy: { // RetryPolicy * // MaximumRetryAttempts: Number("int"), * // MaximumEventAgeInSeconds: Number("int"), * // }, * // AppSyncParameters: { // AppSyncParameters * // GraphQLOperation: "STRING_VALUE", * // }, * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param ListTargetsByRuleCommandInput - {@link ListTargetsByRuleCommandInput} * @returns {@link ListTargetsByRuleCommandOutput} * @see {@link ListTargetsByRuleCommandInput} for command's `input` shape. * @see {@link ListTargetsByRuleCommandOutput} for command's `response` shape. * @see {@link EventBridgeClientResolvedConfig | config} for EventBridgeClient's `config` shape. * * @throws {@link InternalException} (server fault) *

This exception occurs due to unexpected causes.

* * @throws {@link ResourceNotFoundException} (client fault) *

An entity that you specified does not exist.

* * @throws {@link EventBridgeServiceException} *

Base exception class for all service exceptions from EventBridge service.

* * * @public */ export declare class ListTargetsByRuleCommand extends ListTargetsByRuleCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListTargetsByRuleRequest; output: ListTargetsByRuleResponse; }; sdk: { input: ListTargetsByRuleCommandInput; output: ListTargetsByRuleCommandOutput; }; }; }