/** * ECS Service Discovery Utilities * * Shared utilities for discovering ECS services and their log groups * from CloudFormation stacks. Used by both status and logs commands. * * @module utils/ecs-service-discovery */ export interface ECSServiceInfo { serviceName: string; logGroup?: string; logStreamPrefix?: string; } export interface APIGatewayLogInfo { apiId: string; apiName: string; accessLogGroup?: string; executionLogGroup?: string; } /** * Discover all ECS services in a CloudFormation stack and their log groups * * @param stackName - CloudFormation stack name * @param region - AWS region * @param awsProfile - Optional AWS profile name * @returns Map of service names to log group info (logGroup + optional streamPrefix) */ export declare function discoverECSServiceLogGroups(stackName: string, region: string, awsProfile?: string): Promise>; /** * Discover ECS services with full information (for status command) * * @param stackName - CloudFormation stack name * @param region - AWS region * @param awsProfile - Optional AWS profile name * @returns Array of ECS service information */ export declare function discoverECSServices(stackName: string, region: string, awsProfile?: string): Promise; /** * Discover API Gateway APIs (both REST v1 and HTTP v2) in a CloudFormation stack and their log groups * * @param stackNameOrArn - CloudFormation stack name or ARN * @param region - AWS region * @param awsProfile - Optional AWS profile name * @returns Array of API Gateway log information */ export declare function discoverAPIGatewayLogs(stackNameOrArn: string, region: string, awsProfile?: string): Promise; /** * Discover API Gateway log groups from a CloudFormation stack (simplified version for logs command) * * @param stackNameOrArn - CloudFormation stack name or ARN * @param region - AWS region * @param awsProfile - Optional AWS profile name * @returns Map of log types to log group names */ export declare function discoverAPIGatewayLogGroups(stackNameOrArn: string, region: string, awsProfile?: string): Promise>; /** * Restart ECS services that use a specific secret ARN * * Only restarts services whose task definitions reference the given secret ARN, * avoiding unnecessary disruption to unrelated services. * * @param stackNameOrArn - CloudFormation stack name or ARN * @param region - AWS region * @param secretArn - Secret Manager ARN to filter by * @param awsProfile - Optional AWS profile name * @returns Array of restarted service names */ export declare function restartECSServicesUsingSecret(stackNameOrArn: string, region: string, secretArn: string, awsProfile?: string): Promise; /** * Restart all ECS services in a CloudFormation stack to pick up updated secrets * * @param stackNameOrArn - CloudFormation stack name or ARN * @param region - AWS region * @param awsProfile - Optional AWS profile name * @returns Array of restarted service names */ export declare function restartECSServices(stackNameOrArn: string, region: string, awsProfile?: string): Promise; //# sourceMappingURL=ecs-service-discovery.d.ts.map