effortless-aws 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +455 -158
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +250 -20
- package/dist/index.js +25 -1
- package/dist/index.js.map +1 -1
- package/dist/runtime/wrap-fifo-queue.js +84 -0
- package/package.json +2 -1
package/dist/cli/index.js
CHANGED
|
@@ -68722,6 +68722,7 @@ __export(clients_exports, {
|
|
|
68722
68722
|
makeClients: () => makeClients,
|
|
68723
68723
|
resource_groups_tagging_api: () => resource_groups_tagging_api_exports,
|
|
68724
68724
|
s3: () => s3_exports,
|
|
68725
|
+
sqs: () => sqs_exports,
|
|
68725
68726
|
ssm: () => ssm_exports
|
|
68726
68727
|
});
|
|
68727
68728
|
|
|
@@ -69765,30 +69766,101 @@ var S3CommandFactory = {
|
|
|
69765
69766
|
write_get_object_response: Sdk7.WriteGetObjectResponseCommand
|
|
69766
69767
|
};
|
|
69767
69768
|
|
|
69769
|
+
// src/aws/clients/sqs.ts
|
|
69770
|
+
var sqs_exports = {};
|
|
69771
|
+
__export(sqs_exports, {
|
|
69772
|
+
SQSClient: () => SQSClient2,
|
|
69773
|
+
SQSError: () => SQSError,
|
|
69774
|
+
make: () => make75
|
|
69775
|
+
});
|
|
69776
|
+
import * as Sdk8 from "@aws-sdk/client-sqs";
|
|
69777
|
+
var SQSClient2 = class _SQSClient extends Tag2("SQSClient")() {
|
|
69778
|
+
static Default = (config2) => effect(
|
|
69779
|
+
_SQSClient,
|
|
69780
|
+
gen3(function* () {
|
|
69781
|
+
return new Sdk8.SQSClient(config2 ?? {});
|
|
69782
|
+
})
|
|
69783
|
+
);
|
|
69784
|
+
};
|
|
69785
|
+
var make75 = fn("aws_SQS")(function* (actionName, actionInput) {
|
|
69786
|
+
yield* logDebug2(`aws_SQS.${actionName}`, { input: actionInput });
|
|
69787
|
+
const client = yield* SQSClient2;
|
|
69788
|
+
const command = new SQSCommandFactory[actionName](actionInput);
|
|
69789
|
+
const result = yield* tryPromise2({
|
|
69790
|
+
try: () => client.send(command),
|
|
69791
|
+
catch: (error4) => {
|
|
69792
|
+
if (error4 instanceof Sdk8.SQSServiceException) {
|
|
69793
|
+
return new SQSError(error4, actionName);
|
|
69794
|
+
}
|
|
69795
|
+
throw error4;
|
|
69796
|
+
}
|
|
69797
|
+
});
|
|
69798
|
+
yield* logDebug2(`aws_SQS.${actionName} completed`);
|
|
69799
|
+
return result;
|
|
69800
|
+
});
|
|
69801
|
+
var SQSError = class {
|
|
69802
|
+
constructor(cause3, command) {
|
|
69803
|
+
this.cause = cause3;
|
|
69804
|
+
this.command = command;
|
|
69805
|
+
}
|
|
69806
|
+
_tag = "SQSError";
|
|
69807
|
+
$is(name) {
|
|
69808
|
+
return this.cause.name == name;
|
|
69809
|
+
}
|
|
69810
|
+
is(name) {
|
|
69811
|
+
return this.cause.name == name;
|
|
69812
|
+
}
|
|
69813
|
+
};
|
|
69814
|
+
var SQSCommandFactory = {
|
|
69815
|
+
add_permission: Sdk8.AddPermissionCommand,
|
|
69816
|
+
cancel_message_move_task: Sdk8.CancelMessageMoveTaskCommand,
|
|
69817
|
+
change_message_visibility: Sdk8.ChangeMessageVisibilityCommand,
|
|
69818
|
+
change_message_visibility_batch: Sdk8.ChangeMessageVisibilityBatchCommand,
|
|
69819
|
+
create_queue: Sdk8.CreateQueueCommand,
|
|
69820
|
+
delete_message: Sdk8.DeleteMessageCommand,
|
|
69821
|
+
delete_message_batch: Sdk8.DeleteMessageBatchCommand,
|
|
69822
|
+
delete_queue: Sdk8.DeleteQueueCommand,
|
|
69823
|
+
get_queue_attributes: Sdk8.GetQueueAttributesCommand,
|
|
69824
|
+
get_queue_url: Sdk8.GetQueueUrlCommand,
|
|
69825
|
+
list_dead_letter_source_queues: Sdk8.ListDeadLetterSourceQueuesCommand,
|
|
69826
|
+
list_message_move_tasks: Sdk8.ListMessageMoveTasksCommand,
|
|
69827
|
+
list_queue_tags: Sdk8.ListQueueTagsCommand,
|
|
69828
|
+
list_queues: Sdk8.ListQueuesCommand,
|
|
69829
|
+
purge_queue: Sdk8.PurgeQueueCommand,
|
|
69830
|
+
receive_message: Sdk8.ReceiveMessageCommand,
|
|
69831
|
+
remove_permission: Sdk8.RemovePermissionCommand,
|
|
69832
|
+
send_message: Sdk8.SendMessageCommand,
|
|
69833
|
+
send_message_batch: Sdk8.SendMessageBatchCommand,
|
|
69834
|
+
set_queue_attributes: Sdk8.SetQueueAttributesCommand,
|
|
69835
|
+
start_message_move_task: Sdk8.StartMessageMoveTaskCommand,
|
|
69836
|
+
tag_queue: Sdk8.TagQueueCommand,
|
|
69837
|
+
untag_queue: Sdk8.UntagQueueCommand
|
|
69838
|
+
};
|
|
69839
|
+
|
|
69768
69840
|
// src/aws/clients/ssm.ts
|
|
69769
69841
|
var ssm_exports = {};
|
|
69770
69842
|
__export(ssm_exports, {
|
|
69771
69843
|
SSMClient: () => SSMClient2,
|
|
69772
69844
|
SSMError: () => SSMError,
|
|
69773
|
-
make: () =>
|
|
69845
|
+
make: () => make76
|
|
69774
69846
|
});
|
|
69775
|
-
import * as
|
|
69847
|
+
import * as Sdk9 from "@aws-sdk/client-ssm";
|
|
69776
69848
|
var SSMClient2 = class _SSMClient extends Tag2("SSMClient")() {
|
|
69777
69849
|
static Default = (config2) => effect(
|
|
69778
69850
|
_SSMClient,
|
|
69779
69851
|
gen3(function* () {
|
|
69780
|
-
return new
|
|
69852
|
+
return new Sdk9.SSMClient(config2 ?? {});
|
|
69781
69853
|
})
|
|
69782
69854
|
);
|
|
69783
69855
|
};
|
|
69784
|
-
var
|
|
69856
|
+
var make76 = fn("aws_SSM")(function* (actionName, actionInput) {
|
|
69785
69857
|
yield* logDebug2(`aws_SSM.${actionName}`, { input: actionInput });
|
|
69786
69858
|
const client = yield* SSMClient2;
|
|
69787
69859
|
const command = new SSMCommandFactory[actionName](actionInput);
|
|
69788
69860
|
const result = yield* tryPromise2({
|
|
69789
69861
|
try: () => client.send(command),
|
|
69790
69862
|
catch: (error4) => {
|
|
69791
|
-
if (error4 instanceof
|
|
69863
|
+
if (error4 instanceof Sdk9.SSMServiceException) {
|
|
69792
69864
|
return new SSMError(error4, actionName);
|
|
69793
69865
|
}
|
|
69794
69866
|
throw error4;
|
|
@@ -69811,152 +69883,152 @@ var SSMError = class {
|
|
|
69811
69883
|
}
|
|
69812
69884
|
};
|
|
69813
69885
|
var SSMCommandFactory = {
|
|
69814
|
-
add_tags_to_resource:
|
|
69815
|
-
associate_ops_item_related_item:
|
|
69816
|
-
cancel_command:
|
|
69817
|
-
cancel_maintenance_window_execution:
|
|
69818
|
-
create_activation:
|
|
69819
|
-
create_association:
|
|
69820
|
-
create_association_batch:
|
|
69821
|
-
create_document:
|
|
69822
|
-
create_maintenance_window:
|
|
69823
|
-
create_ops_item:
|
|
69824
|
-
create_ops_metadata:
|
|
69825
|
-
create_patch_baseline:
|
|
69826
|
-
create_resource_data_sync:
|
|
69827
|
-
delete_activation:
|
|
69828
|
-
delete_association:
|
|
69829
|
-
delete_document:
|
|
69830
|
-
delete_inventory:
|
|
69831
|
-
delete_maintenance_window:
|
|
69832
|
-
delete_ops_item:
|
|
69833
|
-
delete_ops_metadata:
|
|
69834
|
-
delete_parameter:
|
|
69835
|
-
delete_parameters:
|
|
69836
|
-
delete_patch_baseline:
|
|
69837
|
-
delete_resource_data_sync:
|
|
69838
|
-
delete_resource_policy:
|
|
69839
|
-
deregister_managed_instance:
|
|
69840
|
-
deregister_patch_baseline_for_patch_group:
|
|
69841
|
-
deregister_target_from_maintenance_window:
|
|
69842
|
-
deregister_task_from_maintenance_window:
|
|
69843
|
-
describe_activations:
|
|
69844
|
-
describe_association:
|
|
69845
|
-
describe_association_execution_targets:
|
|
69846
|
-
describe_association_executions:
|
|
69847
|
-
describe_automation_executions:
|
|
69848
|
-
describe_automation_step_executions:
|
|
69849
|
-
describe_available_patches:
|
|
69850
|
-
describe_document:
|
|
69851
|
-
describe_document_permission:
|
|
69852
|
-
describe_effective_instance_associations:
|
|
69853
|
-
describe_effective_patches_for_patch_baseline:
|
|
69854
|
-
describe_instance_associations_status:
|
|
69855
|
-
describe_instance_information:
|
|
69856
|
-
describe_instance_patch_states:
|
|
69857
|
-
describe_instance_patch_states_for_patch_group:
|
|
69858
|
-
describe_instance_patches:
|
|
69859
|
-
describe_instance_properties:
|
|
69860
|
-
describe_inventory_deletions:
|
|
69861
|
-
describe_maintenance_window_execution_task_invocations:
|
|
69862
|
-
describe_maintenance_window_execution_tasks:
|
|
69863
|
-
describe_maintenance_window_executions:
|
|
69864
|
-
describe_maintenance_window_schedule:
|
|
69865
|
-
describe_maintenance_window_targets:
|
|
69866
|
-
describe_maintenance_window_tasks:
|
|
69867
|
-
describe_maintenance_windows:
|
|
69868
|
-
describe_maintenance_windows_for_target:
|
|
69869
|
-
describe_ops_items:
|
|
69870
|
-
describe_parameters:
|
|
69871
|
-
describe_patch_baselines:
|
|
69872
|
-
describe_patch_group_state:
|
|
69873
|
-
describe_patch_groups:
|
|
69874
|
-
describe_patch_properties:
|
|
69875
|
-
describe_sessions:
|
|
69876
|
-
disassociate_ops_item_related_item:
|
|
69877
|
-
get_access_token:
|
|
69878
|
-
get_automation_execution:
|
|
69879
|
-
get_calendar_state:
|
|
69880
|
-
get_command_invocation:
|
|
69881
|
-
get_connection_status:
|
|
69882
|
-
get_default_patch_baseline:
|
|
69883
|
-
get_deployable_patch_snapshot_for_instance:
|
|
69884
|
-
get_document:
|
|
69885
|
-
get_execution_preview:
|
|
69886
|
-
get_inventory:
|
|
69887
|
-
get_inventory_schema:
|
|
69888
|
-
get_maintenance_window:
|
|
69889
|
-
get_maintenance_window_execution:
|
|
69890
|
-
get_maintenance_window_execution_task:
|
|
69891
|
-
get_maintenance_window_execution_task_invocation:
|
|
69892
|
-
get_maintenance_window_task:
|
|
69893
|
-
get_ops_item:
|
|
69894
|
-
get_ops_metadata:
|
|
69895
|
-
get_ops_summary:
|
|
69896
|
-
get_parameter:
|
|
69897
|
-
get_parameter_history:
|
|
69898
|
-
get_parameters:
|
|
69899
|
-
get_parameters_by_path:
|
|
69900
|
-
get_patch_baseline:
|
|
69901
|
-
get_patch_baseline_for_patch_group:
|
|
69902
|
-
get_resource_policies:
|
|
69903
|
-
get_service_setting:
|
|
69904
|
-
label_parameter_version:
|
|
69905
|
-
list_association_versions:
|
|
69906
|
-
list_associations:
|
|
69907
|
-
list_command_invocations:
|
|
69908
|
-
list_commands:
|
|
69909
|
-
list_compliance_items:
|
|
69910
|
-
list_compliance_summaries:
|
|
69911
|
-
list_document_metadata_history:
|
|
69912
|
-
list_document_versions:
|
|
69913
|
-
list_documents:
|
|
69914
|
-
list_inventory_entries:
|
|
69915
|
-
list_nodes:
|
|
69916
|
-
list_nodes_summary:
|
|
69917
|
-
list_ops_item_events:
|
|
69918
|
-
list_ops_item_related_items:
|
|
69919
|
-
list_ops_metadata:
|
|
69920
|
-
list_resource_compliance_summaries:
|
|
69921
|
-
list_resource_data_sync:
|
|
69922
|
-
list_tags_for_resource:
|
|
69923
|
-
modify_document_permission:
|
|
69924
|
-
put_compliance_items:
|
|
69925
|
-
put_inventory:
|
|
69926
|
-
put_parameter:
|
|
69927
|
-
put_resource_policy:
|
|
69928
|
-
register_default_patch_baseline:
|
|
69929
|
-
register_patch_baseline_for_patch_group:
|
|
69930
|
-
register_target_with_maintenance_window:
|
|
69931
|
-
register_task_with_maintenance_window:
|
|
69932
|
-
remove_tags_from_resource:
|
|
69933
|
-
reset_service_setting:
|
|
69934
|
-
resume_session:
|
|
69935
|
-
send_automation_signal:
|
|
69936
|
-
send_command:
|
|
69937
|
-
start_access_request:
|
|
69938
|
-
start_associations_once:
|
|
69939
|
-
start_automation_execution:
|
|
69940
|
-
start_change_request_execution:
|
|
69941
|
-
start_execution_preview:
|
|
69942
|
-
start_session:
|
|
69943
|
-
stop_automation_execution:
|
|
69944
|
-
terminate_session:
|
|
69945
|
-
unlabel_parameter_version:
|
|
69946
|
-
update_association:
|
|
69947
|
-
update_association_status:
|
|
69948
|
-
update_document:
|
|
69949
|
-
update_document_default_version:
|
|
69950
|
-
update_document_metadata:
|
|
69951
|
-
update_maintenance_window:
|
|
69952
|
-
update_maintenance_window_target:
|
|
69953
|
-
update_maintenance_window_task:
|
|
69954
|
-
update_managed_instance_role:
|
|
69955
|
-
update_ops_item:
|
|
69956
|
-
update_ops_metadata:
|
|
69957
|
-
update_patch_baseline:
|
|
69958
|
-
update_resource_data_sync:
|
|
69959
|
-
update_service_setting:
|
|
69886
|
+
add_tags_to_resource: Sdk9.AddTagsToResourceCommand,
|
|
69887
|
+
associate_ops_item_related_item: Sdk9.AssociateOpsItemRelatedItemCommand,
|
|
69888
|
+
cancel_command: Sdk9.CancelCommandCommand,
|
|
69889
|
+
cancel_maintenance_window_execution: Sdk9.CancelMaintenanceWindowExecutionCommand,
|
|
69890
|
+
create_activation: Sdk9.CreateActivationCommand,
|
|
69891
|
+
create_association: Sdk9.CreateAssociationCommand,
|
|
69892
|
+
create_association_batch: Sdk9.CreateAssociationBatchCommand,
|
|
69893
|
+
create_document: Sdk9.CreateDocumentCommand,
|
|
69894
|
+
create_maintenance_window: Sdk9.CreateMaintenanceWindowCommand,
|
|
69895
|
+
create_ops_item: Sdk9.CreateOpsItemCommand,
|
|
69896
|
+
create_ops_metadata: Sdk9.CreateOpsMetadataCommand,
|
|
69897
|
+
create_patch_baseline: Sdk9.CreatePatchBaselineCommand,
|
|
69898
|
+
create_resource_data_sync: Sdk9.CreateResourceDataSyncCommand,
|
|
69899
|
+
delete_activation: Sdk9.DeleteActivationCommand,
|
|
69900
|
+
delete_association: Sdk9.DeleteAssociationCommand,
|
|
69901
|
+
delete_document: Sdk9.DeleteDocumentCommand,
|
|
69902
|
+
delete_inventory: Sdk9.DeleteInventoryCommand,
|
|
69903
|
+
delete_maintenance_window: Sdk9.DeleteMaintenanceWindowCommand,
|
|
69904
|
+
delete_ops_item: Sdk9.DeleteOpsItemCommand,
|
|
69905
|
+
delete_ops_metadata: Sdk9.DeleteOpsMetadataCommand,
|
|
69906
|
+
delete_parameter: Sdk9.DeleteParameterCommand,
|
|
69907
|
+
delete_parameters: Sdk9.DeleteParametersCommand,
|
|
69908
|
+
delete_patch_baseline: Sdk9.DeletePatchBaselineCommand,
|
|
69909
|
+
delete_resource_data_sync: Sdk9.DeleteResourceDataSyncCommand,
|
|
69910
|
+
delete_resource_policy: Sdk9.DeleteResourcePolicyCommand,
|
|
69911
|
+
deregister_managed_instance: Sdk9.DeregisterManagedInstanceCommand,
|
|
69912
|
+
deregister_patch_baseline_for_patch_group: Sdk9.DeregisterPatchBaselineForPatchGroupCommand,
|
|
69913
|
+
deregister_target_from_maintenance_window: Sdk9.DeregisterTargetFromMaintenanceWindowCommand,
|
|
69914
|
+
deregister_task_from_maintenance_window: Sdk9.DeregisterTaskFromMaintenanceWindowCommand,
|
|
69915
|
+
describe_activations: Sdk9.DescribeActivationsCommand,
|
|
69916
|
+
describe_association: Sdk9.DescribeAssociationCommand,
|
|
69917
|
+
describe_association_execution_targets: Sdk9.DescribeAssociationExecutionTargetsCommand,
|
|
69918
|
+
describe_association_executions: Sdk9.DescribeAssociationExecutionsCommand,
|
|
69919
|
+
describe_automation_executions: Sdk9.DescribeAutomationExecutionsCommand,
|
|
69920
|
+
describe_automation_step_executions: Sdk9.DescribeAutomationStepExecutionsCommand,
|
|
69921
|
+
describe_available_patches: Sdk9.DescribeAvailablePatchesCommand,
|
|
69922
|
+
describe_document: Sdk9.DescribeDocumentCommand,
|
|
69923
|
+
describe_document_permission: Sdk9.DescribeDocumentPermissionCommand,
|
|
69924
|
+
describe_effective_instance_associations: Sdk9.DescribeEffectiveInstanceAssociationsCommand,
|
|
69925
|
+
describe_effective_patches_for_patch_baseline: Sdk9.DescribeEffectivePatchesForPatchBaselineCommand,
|
|
69926
|
+
describe_instance_associations_status: Sdk9.DescribeInstanceAssociationsStatusCommand,
|
|
69927
|
+
describe_instance_information: Sdk9.DescribeInstanceInformationCommand,
|
|
69928
|
+
describe_instance_patch_states: Sdk9.DescribeInstancePatchStatesCommand,
|
|
69929
|
+
describe_instance_patch_states_for_patch_group: Sdk9.DescribeInstancePatchStatesForPatchGroupCommand,
|
|
69930
|
+
describe_instance_patches: Sdk9.DescribeInstancePatchesCommand,
|
|
69931
|
+
describe_instance_properties: Sdk9.DescribeInstancePropertiesCommand,
|
|
69932
|
+
describe_inventory_deletions: Sdk9.DescribeInventoryDeletionsCommand,
|
|
69933
|
+
describe_maintenance_window_execution_task_invocations: Sdk9.DescribeMaintenanceWindowExecutionTaskInvocationsCommand,
|
|
69934
|
+
describe_maintenance_window_execution_tasks: Sdk9.DescribeMaintenanceWindowExecutionTasksCommand,
|
|
69935
|
+
describe_maintenance_window_executions: Sdk9.DescribeMaintenanceWindowExecutionsCommand,
|
|
69936
|
+
describe_maintenance_window_schedule: Sdk9.DescribeMaintenanceWindowScheduleCommand,
|
|
69937
|
+
describe_maintenance_window_targets: Sdk9.DescribeMaintenanceWindowTargetsCommand,
|
|
69938
|
+
describe_maintenance_window_tasks: Sdk9.DescribeMaintenanceWindowTasksCommand,
|
|
69939
|
+
describe_maintenance_windows: Sdk9.DescribeMaintenanceWindowsCommand,
|
|
69940
|
+
describe_maintenance_windows_for_target: Sdk9.DescribeMaintenanceWindowsForTargetCommand,
|
|
69941
|
+
describe_ops_items: Sdk9.DescribeOpsItemsCommand,
|
|
69942
|
+
describe_parameters: Sdk9.DescribeParametersCommand,
|
|
69943
|
+
describe_patch_baselines: Sdk9.DescribePatchBaselinesCommand,
|
|
69944
|
+
describe_patch_group_state: Sdk9.DescribePatchGroupStateCommand,
|
|
69945
|
+
describe_patch_groups: Sdk9.DescribePatchGroupsCommand,
|
|
69946
|
+
describe_patch_properties: Sdk9.DescribePatchPropertiesCommand,
|
|
69947
|
+
describe_sessions: Sdk9.DescribeSessionsCommand,
|
|
69948
|
+
disassociate_ops_item_related_item: Sdk9.DisassociateOpsItemRelatedItemCommand,
|
|
69949
|
+
get_access_token: Sdk9.GetAccessTokenCommand,
|
|
69950
|
+
get_automation_execution: Sdk9.GetAutomationExecutionCommand,
|
|
69951
|
+
get_calendar_state: Sdk9.GetCalendarStateCommand,
|
|
69952
|
+
get_command_invocation: Sdk9.GetCommandInvocationCommand,
|
|
69953
|
+
get_connection_status: Sdk9.GetConnectionStatusCommand,
|
|
69954
|
+
get_default_patch_baseline: Sdk9.GetDefaultPatchBaselineCommand,
|
|
69955
|
+
get_deployable_patch_snapshot_for_instance: Sdk9.GetDeployablePatchSnapshotForInstanceCommand,
|
|
69956
|
+
get_document: Sdk9.GetDocumentCommand,
|
|
69957
|
+
get_execution_preview: Sdk9.GetExecutionPreviewCommand,
|
|
69958
|
+
get_inventory: Sdk9.GetInventoryCommand,
|
|
69959
|
+
get_inventory_schema: Sdk9.GetInventorySchemaCommand,
|
|
69960
|
+
get_maintenance_window: Sdk9.GetMaintenanceWindowCommand,
|
|
69961
|
+
get_maintenance_window_execution: Sdk9.GetMaintenanceWindowExecutionCommand,
|
|
69962
|
+
get_maintenance_window_execution_task: Sdk9.GetMaintenanceWindowExecutionTaskCommand,
|
|
69963
|
+
get_maintenance_window_execution_task_invocation: Sdk9.GetMaintenanceWindowExecutionTaskInvocationCommand,
|
|
69964
|
+
get_maintenance_window_task: Sdk9.GetMaintenanceWindowTaskCommand,
|
|
69965
|
+
get_ops_item: Sdk9.GetOpsItemCommand,
|
|
69966
|
+
get_ops_metadata: Sdk9.GetOpsMetadataCommand,
|
|
69967
|
+
get_ops_summary: Sdk9.GetOpsSummaryCommand,
|
|
69968
|
+
get_parameter: Sdk9.GetParameterCommand,
|
|
69969
|
+
get_parameter_history: Sdk9.GetParameterHistoryCommand,
|
|
69970
|
+
get_parameters: Sdk9.GetParametersCommand,
|
|
69971
|
+
get_parameters_by_path: Sdk9.GetParametersByPathCommand,
|
|
69972
|
+
get_patch_baseline: Sdk9.GetPatchBaselineCommand,
|
|
69973
|
+
get_patch_baseline_for_patch_group: Sdk9.GetPatchBaselineForPatchGroupCommand,
|
|
69974
|
+
get_resource_policies: Sdk9.GetResourcePoliciesCommand,
|
|
69975
|
+
get_service_setting: Sdk9.GetServiceSettingCommand,
|
|
69976
|
+
label_parameter_version: Sdk9.LabelParameterVersionCommand,
|
|
69977
|
+
list_association_versions: Sdk9.ListAssociationVersionsCommand,
|
|
69978
|
+
list_associations: Sdk9.ListAssociationsCommand,
|
|
69979
|
+
list_command_invocations: Sdk9.ListCommandInvocationsCommand,
|
|
69980
|
+
list_commands: Sdk9.ListCommandsCommand,
|
|
69981
|
+
list_compliance_items: Sdk9.ListComplianceItemsCommand,
|
|
69982
|
+
list_compliance_summaries: Sdk9.ListComplianceSummariesCommand,
|
|
69983
|
+
list_document_metadata_history: Sdk9.ListDocumentMetadataHistoryCommand,
|
|
69984
|
+
list_document_versions: Sdk9.ListDocumentVersionsCommand,
|
|
69985
|
+
list_documents: Sdk9.ListDocumentsCommand,
|
|
69986
|
+
list_inventory_entries: Sdk9.ListInventoryEntriesCommand,
|
|
69987
|
+
list_nodes: Sdk9.ListNodesCommand,
|
|
69988
|
+
list_nodes_summary: Sdk9.ListNodesSummaryCommand,
|
|
69989
|
+
list_ops_item_events: Sdk9.ListOpsItemEventsCommand,
|
|
69990
|
+
list_ops_item_related_items: Sdk9.ListOpsItemRelatedItemsCommand,
|
|
69991
|
+
list_ops_metadata: Sdk9.ListOpsMetadataCommand,
|
|
69992
|
+
list_resource_compliance_summaries: Sdk9.ListResourceComplianceSummariesCommand,
|
|
69993
|
+
list_resource_data_sync: Sdk9.ListResourceDataSyncCommand,
|
|
69994
|
+
list_tags_for_resource: Sdk9.ListTagsForResourceCommand,
|
|
69995
|
+
modify_document_permission: Sdk9.ModifyDocumentPermissionCommand,
|
|
69996
|
+
put_compliance_items: Sdk9.PutComplianceItemsCommand,
|
|
69997
|
+
put_inventory: Sdk9.PutInventoryCommand,
|
|
69998
|
+
put_parameter: Sdk9.PutParameterCommand,
|
|
69999
|
+
put_resource_policy: Sdk9.PutResourcePolicyCommand,
|
|
70000
|
+
register_default_patch_baseline: Sdk9.RegisterDefaultPatchBaselineCommand,
|
|
70001
|
+
register_patch_baseline_for_patch_group: Sdk9.RegisterPatchBaselineForPatchGroupCommand,
|
|
70002
|
+
register_target_with_maintenance_window: Sdk9.RegisterTargetWithMaintenanceWindowCommand,
|
|
70003
|
+
register_task_with_maintenance_window: Sdk9.RegisterTaskWithMaintenanceWindowCommand,
|
|
70004
|
+
remove_tags_from_resource: Sdk9.RemoveTagsFromResourceCommand,
|
|
70005
|
+
reset_service_setting: Sdk9.ResetServiceSettingCommand,
|
|
70006
|
+
resume_session: Sdk9.ResumeSessionCommand,
|
|
70007
|
+
send_automation_signal: Sdk9.SendAutomationSignalCommand,
|
|
70008
|
+
send_command: Sdk9.SendCommandCommand,
|
|
70009
|
+
start_access_request: Sdk9.StartAccessRequestCommand,
|
|
70010
|
+
start_associations_once: Sdk9.StartAssociationsOnceCommand,
|
|
70011
|
+
start_automation_execution: Sdk9.StartAutomationExecutionCommand,
|
|
70012
|
+
start_change_request_execution: Sdk9.StartChangeRequestExecutionCommand,
|
|
70013
|
+
start_execution_preview: Sdk9.StartExecutionPreviewCommand,
|
|
70014
|
+
start_session: Sdk9.StartSessionCommand,
|
|
70015
|
+
stop_automation_execution: Sdk9.StopAutomationExecutionCommand,
|
|
70016
|
+
terminate_session: Sdk9.TerminateSessionCommand,
|
|
70017
|
+
unlabel_parameter_version: Sdk9.UnlabelParameterVersionCommand,
|
|
70018
|
+
update_association: Sdk9.UpdateAssociationCommand,
|
|
70019
|
+
update_association_status: Sdk9.UpdateAssociationStatusCommand,
|
|
70020
|
+
update_document: Sdk9.UpdateDocumentCommand,
|
|
70021
|
+
update_document_default_version: Sdk9.UpdateDocumentDefaultVersionCommand,
|
|
70022
|
+
update_document_metadata: Sdk9.UpdateDocumentMetadataCommand,
|
|
70023
|
+
update_maintenance_window: Sdk9.UpdateMaintenanceWindowCommand,
|
|
70024
|
+
update_maintenance_window_target: Sdk9.UpdateMaintenanceWindowTargetCommand,
|
|
70025
|
+
update_maintenance_window_task: Sdk9.UpdateMaintenanceWindowTaskCommand,
|
|
70026
|
+
update_managed_instance_role: Sdk9.UpdateManagedInstanceRoleCommand,
|
|
70027
|
+
update_ops_item: Sdk9.UpdateOpsItemCommand,
|
|
70028
|
+
update_ops_metadata: Sdk9.UpdateOpsMetadataCommand,
|
|
70029
|
+
update_patch_baseline: Sdk9.UpdatePatchBaselineCommand,
|
|
70030
|
+
update_resource_data_sync: Sdk9.UpdateResourceDataSyncCommand,
|
|
70031
|
+
update_service_setting: Sdk9.UpdateServiceSettingCommand
|
|
69960
70032
|
};
|
|
69961
70033
|
|
|
69962
70034
|
// src/aws/clients/index.ts
|
|
@@ -69968,6 +70040,7 @@ var AllClientsDefault = mergeAll6(
|
|
|
69968
70040
|
LambdaClient2.Default(),
|
|
69969
70041
|
ResourceGroupsTaggingAPIClient2.Default(),
|
|
69970
70042
|
S3Client2.Default(),
|
|
70043
|
+
SQSClient2.Default(),
|
|
69971
70044
|
SSMClient2.Default()
|
|
69972
70045
|
);
|
|
69973
70046
|
var makeClients = (config2) => mergeAll6(
|
|
@@ -69978,6 +70051,7 @@ var makeClients = (config2) => mergeAll6(
|
|
|
69978
70051
|
LambdaClient2.Default(config2?.lambda),
|
|
69979
70052
|
ResourceGroupsTaggingAPIClient2.Default(config2?.resource_groups_tagging_api),
|
|
69980
70053
|
S3Client2.Default(config2?.s3),
|
|
70054
|
+
SQSClient2.Default(config2?.sqs),
|
|
69981
70055
|
SSMClient2.Default(config2?.ssm)
|
|
69982
70056
|
);
|
|
69983
70057
|
|
|
@@ -71348,6 +71422,118 @@ var waitForDistributionDeployed = (distributionId) => Effect_exports.gen(functio
|
|
|
71348
71422
|
);
|
|
71349
71423
|
});
|
|
71350
71424
|
|
|
71425
|
+
// src/aws/sqs.ts
|
|
71426
|
+
var ensureFifoQueue = (input) => Effect_exports.gen(function* () {
|
|
71427
|
+
const {
|
|
71428
|
+
name,
|
|
71429
|
+
visibilityTimeout = 30,
|
|
71430
|
+
retentionPeriod = 345600,
|
|
71431
|
+
contentBasedDeduplication = true,
|
|
71432
|
+
tags: tags2
|
|
71433
|
+
} = input;
|
|
71434
|
+
const queueName = `${name}.fifo`;
|
|
71435
|
+
const existingUrl = yield* sqs_exports.make("get_queue_url", {
|
|
71436
|
+
QueueName: queueName
|
|
71437
|
+
}).pipe(
|
|
71438
|
+
Effect_exports.map((result) => result.QueueUrl),
|
|
71439
|
+
Effect_exports.catchIf(
|
|
71440
|
+
(error4) => error4 instanceof sqs_exports.SQSError && error4.cause.name === "QueueDoesNotExist",
|
|
71441
|
+
() => Effect_exports.succeed(void 0)
|
|
71442
|
+
)
|
|
71443
|
+
);
|
|
71444
|
+
let queueUrl;
|
|
71445
|
+
if (!existingUrl) {
|
|
71446
|
+
yield* Effect_exports.logInfo(`Creating FIFO queue ${queueName}...`);
|
|
71447
|
+
const result = yield* sqs_exports.make("create_queue", {
|
|
71448
|
+
QueueName: queueName,
|
|
71449
|
+
Attributes: {
|
|
71450
|
+
FifoQueue: "true",
|
|
71451
|
+
ContentBasedDeduplication: String(contentBasedDeduplication),
|
|
71452
|
+
VisibilityTimeout: String(visibilityTimeout),
|
|
71453
|
+
MessageRetentionPeriod: String(retentionPeriod)
|
|
71454
|
+
},
|
|
71455
|
+
...tags2 ? { tags: tags2 } : {}
|
|
71456
|
+
});
|
|
71457
|
+
queueUrl = result.QueueUrl;
|
|
71458
|
+
} else {
|
|
71459
|
+
yield* Effect_exports.logInfo(`FIFO queue ${queueName} already exists`);
|
|
71460
|
+
queueUrl = existingUrl;
|
|
71461
|
+
yield* sqs_exports.make("set_queue_attributes", {
|
|
71462
|
+
QueueUrl: queueUrl,
|
|
71463
|
+
Attributes: {
|
|
71464
|
+
ContentBasedDeduplication: String(contentBasedDeduplication),
|
|
71465
|
+
VisibilityTimeout: String(visibilityTimeout),
|
|
71466
|
+
MessageRetentionPeriod: String(retentionPeriod)
|
|
71467
|
+
}
|
|
71468
|
+
});
|
|
71469
|
+
if (tags2) {
|
|
71470
|
+
yield* sqs_exports.make("tag_queue", {
|
|
71471
|
+
QueueUrl: queueUrl,
|
|
71472
|
+
Tags: tags2
|
|
71473
|
+
});
|
|
71474
|
+
}
|
|
71475
|
+
}
|
|
71476
|
+
const attrs = yield* sqs_exports.make("get_queue_attributes", {
|
|
71477
|
+
QueueUrl: queueUrl,
|
|
71478
|
+
AttributeNames: ["QueueArn"]
|
|
71479
|
+
});
|
|
71480
|
+
const queueArn = attrs.Attributes?.QueueArn;
|
|
71481
|
+
if (!queueArn) {
|
|
71482
|
+
return yield* Effect_exports.fail(new Error(`Could not resolve ARN for queue ${queueName}`));
|
|
71483
|
+
}
|
|
71484
|
+
return { queueUrl, queueArn };
|
|
71485
|
+
});
|
|
71486
|
+
var ensureSqsEventSourceMapping = (input) => Effect_exports.gen(function* () {
|
|
71487
|
+
const { functionArn, queueArn, batchSize = 10, batchWindow } = input;
|
|
71488
|
+
const existingMappings = yield* lambda_exports.make("list_event_source_mappings", {
|
|
71489
|
+
FunctionName: functionArn,
|
|
71490
|
+
EventSourceArn: queueArn
|
|
71491
|
+
});
|
|
71492
|
+
const existing = existingMappings.EventSourceMappings?.[0];
|
|
71493
|
+
if (existing) {
|
|
71494
|
+
yield* Effect_exports.logInfo("Updating SQS event source mapping...");
|
|
71495
|
+
yield* lambda_exports.make("update_event_source_mapping", {
|
|
71496
|
+
UUID: existing.UUID,
|
|
71497
|
+
FunctionName: functionArn,
|
|
71498
|
+
BatchSize: batchSize,
|
|
71499
|
+
...batchWindow !== void 0 ? { MaximumBatchingWindowInSeconds: batchWindow } : {},
|
|
71500
|
+
FunctionResponseTypes: ["ReportBatchItemFailures"],
|
|
71501
|
+
Enabled: true
|
|
71502
|
+
});
|
|
71503
|
+
return existing.UUID;
|
|
71504
|
+
}
|
|
71505
|
+
yield* Effect_exports.logInfo("Creating SQS event source mapping...");
|
|
71506
|
+
const result = yield* lambda_exports.make("create_event_source_mapping", {
|
|
71507
|
+
FunctionName: functionArn,
|
|
71508
|
+
EventSourceArn: queueArn,
|
|
71509
|
+
BatchSize: batchSize,
|
|
71510
|
+
...batchWindow !== void 0 ? { MaximumBatchingWindowInSeconds: batchWindow } : {},
|
|
71511
|
+
FunctionResponseTypes: ["ReportBatchItemFailures"],
|
|
71512
|
+
Enabled: true
|
|
71513
|
+
});
|
|
71514
|
+
return result.UUID;
|
|
71515
|
+
});
|
|
71516
|
+
var deleteFifoQueue = (queueName) => Effect_exports.gen(function* () {
|
|
71517
|
+
const name = queueName.endsWith(".fifo") ? queueName : `${queueName}.fifo`;
|
|
71518
|
+
yield* Effect_exports.logInfo(`Deleting SQS queue: ${name}`);
|
|
71519
|
+
const urlResult = yield* sqs_exports.make("get_queue_url", {
|
|
71520
|
+
QueueName: name
|
|
71521
|
+
}).pipe(
|
|
71522
|
+
Effect_exports.catchIf(
|
|
71523
|
+
(error4) => error4 instanceof sqs_exports.SQSError && error4.cause.name === "QueueDoesNotExist",
|
|
71524
|
+
() => {
|
|
71525
|
+
Effect_exports.logDebug(`Queue ${name} not found, skipping`);
|
|
71526
|
+
return Effect_exports.succeed(void 0);
|
|
71527
|
+
}
|
|
71528
|
+
)
|
|
71529
|
+
);
|
|
71530
|
+
if (urlResult?.QueueUrl) {
|
|
71531
|
+
yield* sqs_exports.make("delete_queue", {
|
|
71532
|
+
QueueUrl: urlResult.QueueUrl
|
|
71533
|
+
});
|
|
71534
|
+
}
|
|
71535
|
+
});
|
|
71536
|
+
|
|
71351
71537
|
// src/aws/index.ts
|
|
71352
71538
|
import { unmarshall, marshall } from "@aws-sdk/util-dynamodb";
|
|
71353
71539
|
|
|
@@ -71365,7 +71551,7 @@ var parseSource = (source) => {
|
|
|
71365
71551
|
const project2 = new Project({ useInMemoryFileSystem: true });
|
|
71366
71552
|
return project2.createSourceFile("input.ts", source);
|
|
71367
71553
|
};
|
|
71368
|
-
var RUNTIME_PROPS = ["onRequest", "onRecord", "onBatchComplete", "onBatch", "context", "schema", "onError", "deps", "params", "static"];
|
|
71554
|
+
var RUNTIME_PROPS = ["onRequest", "onRecord", "onBatchComplete", "onBatch", "onMessage", "context", "schema", "onError", "deps", "params", "static"];
|
|
71369
71555
|
var buildConfigWithoutRuntime = (obj) => {
|
|
71370
71556
|
const props = obj.getProperties().filter((p3) => {
|
|
71371
71557
|
if (p3.getKind() === SyntaxKind.PropertyAssignment) {
|
|
@@ -71476,6 +71662,12 @@ var handlerRegistry = {
|
|
|
71476
71662
|
handlerProps: [],
|
|
71477
71663
|
wrapperFn: "",
|
|
71478
71664
|
wrapperPath: ""
|
|
71665
|
+
},
|
|
71666
|
+
fifoQueue: {
|
|
71667
|
+
defineFn: "defineFifoQueue",
|
|
71668
|
+
handlerProps: ["onMessage", "onBatch"],
|
|
71669
|
+
wrapperFn: "wrapFifoQueue",
|
|
71670
|
+
wrapperPath: "~/runtime/wrap-fifo-queue"
|
|
71479
71671
|
}
|
|
71480
71672
|
};
|
|
71481
71673
|
var extractHandlerConfigs = (source, type2) => {
|
|
@@ -71542,6 +71734,7 @@ var extractConfigs = (source) => extractHandlerConfigs(source, "http");
|
|
|
71542
71734
|
var extractTableConfigs = (source) => extractHandlerConfigs(source, "table");
|
|
71543
71735
|
var extractAppConfigs = (source) => extractHandlerConfigs(source, "app");
|
|
71544
71736
|
var extractStaticSiteConfigs = (source) => extractHandlerConfigs(source, "staticSite");
|
|
71737
|
+
var extractFifoQueueConfigs = (source) => extractHandlerConfigs(source, "fifoQueue");
|
|
71545
71738
|
var runtimeDir = path6.resolve(path6.dirname(fileURLToPath2(import.meta.url)), "../../dist/runtime");
|
|
71546
71739
|
var bundle = (input) => Effect_exports.gen(function* () {
|
|
71547
71740
|
const exportName = input.exportName ?? "default";
|
|
@@ -71617,6 +71810,7 @@ var discoverHandlers = (files) => {
|
|
|
71617
71810
|
const tableHandlers = [];
|
|
71618
71811
|
const appHandlers = [];
|
|
71619
71812
|
const staticSiteHandlers = [];
|
|
71813
|
+
const fifoQueueHandlers = [];
|
|
71620
71814
|
for (const file6 of files) {
|
|
71621
71815
|
if (!fsSync2.statSync(file6).isFile()) continue;
|
|
71622
71816
|
const source = fsSync2.readFileSync(file6, "utf-8");
|
|
@@ -71624,12 +71818,14 @@ var discoverHandlers = (files) => {
|
|
|
71624
71818
|
const table3 = extractTableConfigs(source);
|
|
71625
71819
|
const app = extractAppConfigs(source);
|
|
71626
71820
|
const staticSite = extractStaticSiteConfigs(source);
|
|
71821
|
+
const fifoQueue = extractFifoQueueConfigs(source);
|
|
71627
71822
|
if (http.length > 0) httpHandlers.push({ file: file6, exports: http });
|
|
71628
71823
|
if (table3.length > 0) tableHandlers.push({ file: file6, exports: table3 });
|
|
71629
71824
|
if (app.length > 0) appHandlers.push({ file: file6, exports: app });
|
|
71630
71825
|
if (staticSite.length > 0) staticSiteHandlers.push({ file: file6, exports: staticSite });
|
|
71826
|
+
if (fifoQueue.length > 0) fifoQueueHandlers.push({ file: file6, exports: fifoQueue });
|
|
71631
71827
|
}
|
|
71632
|
-
return { httpHandlers, tableHandlers, appHandlers, staticSiteHandlers };
|
|
71828
|
+
return { httpHandlers, tableHandlers, appHandlers, staticSiteHandlers, fifoQueueHandlers };
|
|
71633
71829
|
};
|
|
71634
71830
|
|
|
71635
71831
|
// src/deploy/shared.ts
|
|
@@ -72066,6 +72262,62 @@ var deployStaticSite = (input) => Effect_exports.gen(function* () {
|
|
|
72066
72262
|
};
|
|
72067
72263
|
});
|
|
72068
72264
|
|
|
72265
|
+
// src/deploy/deploy-fifo-queue.ts
|
|
72266
|
+
var FIFO_QUEUE_DEFAULT_PERMISSIONS = ["sqs:*", "logs:*"];
|
|
72267
|
+
var deployFifoQueueFunction = ({ input, fn: fn2, layerArn, external, depsEnv, depsPermissions, staticGlobs }) => Effect_exports.gen(function* () {
|
|
72268
|
+
const { exportName, config: config2 } = fn2;
|
|
72269
|
+
const handlerName = config2.name ?? exportName;
|
|
72270
|
+
const tagCtx = {
|
|
72271
|
+
project: input.project,
|
|
72272
|
+
stage: resolveStage(input.stage),
|
|
72273
|
+
handler: handlerName
|
|
72274
|
+
};
|
|
72275
|
+
yield* Effect_exports.logInfo("Creating SQS FIFO queue...");
|
|
72276
|
+
const queueName = `${input.project}-${tagCtx.stage}-${handlerName}`;
|
|
72277
|
+
const timeout4 = config2.timeout ?? 30;
|
|
72278
|
+
const { queueUrl, queueArn } = yield* ensureFifoQueue({
|
|
72279
|
+
name: queueName,
|
|
72280
|
+
visibilityTimeout: Math.max(config2.visibilityTimeout ?? timeout4, timeout4),
|
|
72281
|
+
retentionPeriod: config2.retentionPeriod,
|
|
72282
|
+
contentBasedDeduplication: config2.contentBasedDeduplication ?? true,
|
|
72283
|
+
tags: makeTags(tagCtx, "sqs")
|
|
72284
|
+
});
|
|
72285
|
+
const queueEnv = {
|
|
72286
|
+
EFF_QUEUE_URL: queueUrl,
|
|
72287
|
+
EFF_QUEUE_ARN: queueArn,
|
|
72288
|
+
...depsEnv
|
|
72289
|
+
};
|
|
72290
|
+
const { functionArn } = yield* deployCoreLambda({
|
|
72291
|
+
input,
|
|
72292
|
+
exportName,
|
|
72293
|
+
handlerName,
|
|
72294
|
+
defaultPermissions: FIFO_QUEUE_DEFAULT_PERMISSIONS,
|
|
72295
|
+
bundleType: "fifoQueue",
|
|
72296
|
+
...config2.permissions ? { permissions: config2.permissions } : {},
|
|
72297
|
+
...config2.memory ? { memory: config2.memory } : {},
|
|
72298
|
+
...config2.timeout ? { timeout: config2.timeout } : {},
|
|
72299
|
+
...layerArn ? { layerArn } : {},
|
|
72300
|
+
...external ? { external } : {},
|
|
72301
|
+
depsEnv: queueEnv,
|
|
72302
|
+
...depsPermissions ? { depsPermissions } : {},
|
|
72303
|
+
...staticGlobs && staticGlobs.length > 0 ? { staticGlobs } : {}
|
|
72304
|
+
});
|
|
72305
|
+
yield* Effect_exports.logInfo("Setting up SQS event source mapping...");
|
|
72306
|
+
yield* ensureSqsEventSourceMapping({
|
|
72307
|
+
functionArn,
|
|
72308
|
+
queueArn,
|
|
72309
|
+
batchSize: config2.batchSize ?? 10,
|
|
72310
|
+
batchWindow: config2.batchWindow
|
|
72311
|
+
});
|
|
72312
|
+
yield* Effect_exports.logInfo(`FIFO queue deployment complete! Queue: ${queueUrl}`);
|
|
72313
|
+
return {
|
|
72314
|
+
exportName,
|
|
72315
|
+
functionArn,
|
|
72316
|
+
queueUrl,
|
|
72317
|
+
queueArn
|
|
72318
|
+
};
|
|
72319
|
+
});
|
|
72320
|
+
|
|
72069
72321
|
// src/deploy/deploy.ts
|
|
72070
72322
|
var prepareLayer = (input) => Effect_exports.gen(function* () {
|
|
72071
72323
|
const layerResult = yield* ensureLayer({
|
|
@@ -72349,16 +72601,17 @@ var deployProject = (input) => Effect_exports.gen(function* () {
|
|
|
72349
72601
|
return yield* Effect_exports.fail(new Error(`No files match patterns: ${input.patterns.join(", ")}`));
|
|
72350
72602
|
}
|
|
72351
72603
|
yield* Effect_exports.logInfo(`Found ${files.length} file(s) matching patterns`);
|
|
72352
|
-
const { httpHandlers, tableHandlers, appHandlers, staticSiteHandlers } = discoverHandlers(files);
|
|
72604
|
+
const { httpHandlers, tableHandlers, appHandlers, staticSiteHandlers, fifoQueueHandlers } = discoverHandlers(files);
|
|
72353
72605
|
const totalHttpHandlers = httpHandlers.reduce((acc, h) => acc + h.exports.length, 0);
|
|
72354
72606
|
const totalTableHandlers = tableHandlers.reduce((acc, h) => acc + h.exports.length, 0);
|
|
72355
72607
|
const totalAppHandlers = appHandlers.reduce((acc, h) => acc + h.exports.length, 0);
|
|
72356
72608
|
const totalStaticSiteHandlers = staticSiteHandlers.reduce((acc, h) => acc + h.exports.length, 0);
|
|
72357
|
-
const
|
|
72609
|
+
const totalFifoQueueHandlers = fifoQueueHandlers.reduce((acc, h) => acc + h.exports.length, 0);
|
|
72610
|
+
const totalAllHandlers = totalHttpHandlers + totalTableHandlers + totalAppHandlers + totalStaticSiteHandlers + totalFifoQueueHandlers;
|
|
72358
72611
|
if (totalAllHandlers === 0) {
|
|
72359
72612
|
return yield* Effect_exports.fail(new Error("No handlers found in matched files"));
|
|
72360
72613
|
}
|
|
72361
|
-
yield* Effect_exports.logInfo(`Discovered ${totalHttpHandlers} HTTP, ${totalTableHandlers} table, ${totalAppHandlers} app, ${totalStaticSiteHandlers} static site handler(s)`);
|
|
72614
|
+
yield* Effect_exports.logInfo(`Discovered ${totalHttpHandlers} HTTP, ${totalTableHandlers} table, ${totalAppHandlers} app, ${totalStaticSiteHandlers} static site, ${totalFifoQueueHandlers} FIFO queue handler(s)`);
|
|
72362
72615
|
const tableNameMap = buildTableNameMap(tableHandlers, input.project, resolveStage(input.stage));
|
|
72363
72616
|
const { layerArn, external } = yield* prepareLayer({
|
|
72364
72617
|
project: input.project,
|
|
@@ -72443,10 +72696,51 @@ var deployProject = (input) => Effect_exports.gen(function* () {
|
|
|
72443
72696
|
staticSiteResults.push(result);
|
|
72444
72697
|
}
|
|
72445
72698
|
}
|
|
72699
|
+
const fifoQueueResults = [];
|
|
72700
|
+
for (const { file: file6, exports } of fifoQueueHandlers) {
|
|
72701
|
+
yield* Effect_exports.logInfo(`Processing ${path9.basename(file6)} (${exports.length} FIFO queue handler(s))`);
|
|
72702
|
+
const deployInput = {
|
|
72703
|
+
projectDir: input.projectDir,
|
|
72704
|
+
file: file6,
|
|
72705
|
+
project: input.project,
|
|
72706
|
+
region: input.region
|
|
72707
|
+
};
|
|
72708
|
+
if (input.stage) deployInput.stage = input.stage;
|
|
72709
|
+
for (const fn2 of exports) {
|
|
72710
|
+
const fnStage = resolveStage(input.stage);
|
|
72711
|
+
const resolved = mergeResolved(
|
|
72712
|
+
resolveDeps(fn2.depsKeys, tableNameMap),
|
|
72713
|
+
resolveParams(fn2.paramEntries, input.project, fnStage)
|
|
72714
|
+
);
|
|
72715
|
+
const observe = fn2.config.observe !== false;
|
|
72716
|
+
const withPlatform = {
|
|
72717
|
+
depsEnv: { ...resolved?.depsEnv, ...observe ? platformEnv : {} },
|
|
72718
|
+
depsPermissions: [...resolved?.depsPermissions ?? [], ...observe ? PLATFORM_PERMISSIONS : []]
|
|
72719
|
+
};
|
|
72720
|
+
const result = yield* deployFifoQueueFunction({
|
|
72721
|
+
input: deployInput,
|
|
72722
|
+
fn: fn2,
|
|
72723
|
+
...layerArn ? { layerArn } : {},
|
|
72724
|
+
...external.length > 0 ? { external } : {},
|
|
72725
|
+
depsEnv: withPlatform.depsEnv,
|
|
72726
|
+
depsPermissions: withPlatform.depsPermissions,
|
|
72727
|
+
...fn2.staticGlobs.length > 0 ? { staticGlobs: fn2.staticGlobs } : {}
|
|
72728
|
+
}).pipe(
|
|
72729
|
+
Effect_exports.provide(
|
|
72730
|
+
clients_exports.makeClients({
|
|
72731
|
+
lambda: { region: input.region },
|
|
72732
|
+
iam: { region: input.region },
|
|
72733
|
+
sqs: { region: input.region }
|
|
72734
|
+
})
|
|
72735
|
+
)
|
|
72736
|
+
);
|
|
72737
|
+
fifoQueueResults.push(result);
|
|
72738
|
+
}
|
|
72739
|
+
}
|
|
72446
72740
|
if (apiUrl) {
|
|
72447
72741
|
yield* Effect_exports.logInfo(`Deployment complete! API: ${apiUrl}`);
|
|
72448
72742
|
}
|
|
72449
|
-
return { apiId, apiUrl, httpResults, tableResults, appResults, staticSiteResults };
|
|
72743
|
+
return { apiId, apiUrl, httpResults, tableResults, appResults, staticSiteResults, fifoQueueResults };
|
|
72450
72744
|
});
|
|
72451
72745
|
|
|
72452
72746
|
// src/cli/config.ts
|
|
@@ -73046,12 +73340,15 @@ var deleteResource = (resource) => Effect_exports.gen(function* () {
|
|
|
73046
73340
|
case "cloudfront-distribution":
|
|
73047
73341
|
yield* disableAndDeleteDistribution(name);
|
|
73048
73342
|
break;
|
|
73343
|
+
case "sqs":
|
|
73344
|
+
yield* deleteFifoQueue(name);
|
|
73345
|
+
break;
|
|
73049
73346
|
default:
|
|
73050
73347
|
yield* Effect_exports.logWarning(`Unknown resource type: ${resource.type}, skipping ${resource.arn}`);
|
|
73051
73348
|
}
|
|
73052
73349
|
});
|
|
73053
73350
|
var deleteResources = (resources) => Effect_exports.gen(function* () {
|
|
73054
|
-
const orderedTypes = ["lambda", "api-gateway", "cloudfront-distribution", "dynamodb", "s3-bucket", "lambda-layer", "iam-role"];
|
|
73351
|
+
const orderedTypes = ["lambda", "api-gateway", "cloudfront-distribution", "sqs", "dynamodb", "s3-bucket", "lambda-layer", "iam-role"];
|
|
73055
73352
|
const iamRolesToDelete = /* @__PURE__ */ new Set();
|
|
73056
73353
|
for (const type2 of orderedTypes) {
|
|
73057
73354
|
const resourcesOfType = resources.filter((r) => r.type === type2);
|