effortless-aws 0.14.2 → 0.15.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 CHANGED
@@ -69209,6 +69209,7 @@ __export(clients_exports, {
69209
69209
  makeClients: () => makeClients,
69210
69210
  resource_groups_tagging_api: () => resource_groups_tagging_api_exports,
69211
69211
  s3: () => s3_exports,
69212
+ sesv2: () => sesv2_exports,
69212
69213
  sqs: () => sqs_exports,
69213
69214
  ssm: () => ssm_exports
69214
69215
  });
@@ -70472,30 +70473,188 @@ var S3CommandFactory = {
70472
70473
  write_get_object_response: Sdk9.WriteGetObjectResponseCommand
70473
70474
  };
70474
70475
 
70476
+ // src/aws/clients/sesv2.ts
70477
+ var sesv2_exports = {};
70478
+ __export(sesv2_exports, {
70479
+ SESv2Client: () => SESv2Client2,
70480
+ SESv2Error: () => SESv2Error,
70481
+ make: () => make77
70482
+ });
70483
+ import * as Sdk10 from "@aws-sdk/client-sesv2";
70484
+ var SESv2Client2 = class _SESv2Client extends Tag2("SESv2Client")() {
70485
+ static Default = (config2) => effect(
70486
+ _SESv2Client,
70487
+ gen3(function* () {
70488
+ return new Sdk10.SESv2Client(config2 ?? {});
70489
+ })
70490
+ );
70491
+ };
70492
+ var make77 = fn("aws_SESv2")(function* (actionName, actionInput) {
70493
+ yield* logDebug2(`aws_SESv2.${actionName}`, { input: actionInput });
70494
+ const client = yield* SESv2Client2;
70495
+ const command = new SESv2CommandFactory[actionName](actionInput);
70496
+ const result = yield* tryPromise2({
70497
+ try: () => client.send(command),
70498
+ catch: (error4) => {
70499
+ if (error4 instanceof Sdk10.SESv2ServiceException) {
70500
+ return new SESv2Error(error4, actionName);
70501
+ }
70502
+ throw error4;
70503
+ }
70504
+ });
70505
+ yield* logDebug2(`aws_SESv2.${actionName} completed`);
70506
+ return result;
70507
+ });
70508
+ var SESv2Error = class {
70509
+ constructor(cause3, command) {
70510
+ this.cause = cause3;
70511
+ this.command = command;
70512
+ }
70513
+ _tag = "SESv2Error";
70514
+ $is(name) {
70515
+ return this.cause.name == name;
70516
+ }
70517
+ is(name) {
70518
+ return this.cause.name == name;
70519
+ }
70520
+ };
70521
+ var SESv2CommandFactory = {
70522
+ batch_get_metric_data: Sdk10.BatchGetMetricDataCommand,
70523
+ cancel_export_job: Sdk10.CancelExportJobCommand,
70524
+ create_configuration_set: Sdk10.CreateConfigurationSetCommand,
70525
+ create_configuration_set_event_destination: Sdk10.CreateConfigurationSetEventDestinationCommand,
70526
+ create_contact: Sdk10.CreateContactCommand,
70527
+ create_contact_list: Sdk10.CreateContactListCommand,
70528
+ create_custom_verification_email_template: Sdk10.CreateCustomVerificationEmailTemplateCommand,
70529
+ create_dedicated_ip_pool: Sdk10.CreateDedicatedIpPoolCommand,
70530
+ create_deliverability_test_report: Sdk10.CreateDeliverabilityTestReportCommand,
70531
+ create_email_identity: Sdk10.CreateEmailIdentityCommand,
70532
+ create_email_identity_policy: Sdk10.CreateEmailIdentityPolicyCommand,
70533
+ create_email_template: Sdk10.CreateEmailTemplateCommand,
70534
+ create_export_job: Sdk10.CreateExportJobCommand,
70535
+ create_import_job: Sdk10.CreateImportJobCommand,
70536
+ create_multi_region_endpoint: Sdk10.CreateMultiRegionEndpointCommand,
70537
+ create_tenant: Sdk10.CreateTenantCommand,
70538
+ create_tenant_resource_association: Sdk10.CreateTenantResourceAssociationCommand,
70539
+ delete_configuration_set: Sdk10.DeleteConfigurationSetCommand,
70540
+ delete_configuration_set_event_destination: Sdk10.DeleteConfigurationSetEventDestinationCommand,
70541
+ delete_contact: Sdk10.DeleteContactCommand,
70542
+ delete_contact_list: Sdk10.DeleteContactListCommand,
70543
+ delete_custom_verification_email_template: Sdk10.DeleteCustomVerificationEmailTemplateCommand,
70544
+ delete_dedicated_ip_pool: Sdk10.DeleteDedicatedIpPoolCommand,
70545
+ delete_email_identity: Sdk10.DeleteEmailIdentityCommand,
70546
+ delete_email_identity_policy: Sdk10.DeleteEmailIdentityPolicyCommand,
70547
+ delete_email_template: Sdk10.DeleteEmailTemplateCommand,
70548
+ delete_multi_region_endpoint: Sdk10.DeleteMultiRegionEndpointCommand,
70549
+ delete_suppressed_destination: Sdk10.DeleteSuppressedDestinationCommand,
70550
+ delete_tenant: Sdk10.DeleteTenantCommand,
70551
+ delete_tenant_resource_association: Sdk10.DeleteTenantResourceAssociationCommand,
70552
+ get_account: Sdk10.GetAccountCommand,
70553
+ get_blacklist_reports: Sdk10.GetBlacklistReportsCommand,
70554
+ get_configuration_set: Sdk10.GetConfigurationSetCommand,
70555
+ get_configuration_set_event_destinations: Sdk10.GetConfigurationSetEventDestinationsCommand,
70556
+ get_contact: Sdk10.GetContactCommand,
70557
+ get_contact_list: Sdk10.GetContactListCommand,
70558
+ get_custom_verification_email_template: Sdk10.GetCustomVerificationEmailTemplateCommand,
70559
+ get_dedicated_ip: Sdk10.GetDedicatedIpCommand,
70560
+ get_dedicated_ip_pool: Sdk10.GetDedicatedIpPoolCommand,
70561
+ get_dedicated_ips: Sdk10.GetDedicatedIpsCommand,
70562
+ get_deliverability_dashboard_options: Sdk10.GetDeliverabilityDashboardOptionsCommand,
70563
+ get_deliverability_test_report: Sdk10.GetDeliverabilityTestReportCommand,
70564
+ get_domain_deliverability_campaign: Sdk10.GetDomainDeliverabilityCampaignCommand,
70565
+ get_domain_statistics_report: Sdk10.GetDomainStatisticsReportCommand,
70566
+ get_email_address_insights: Sdk10.GetEmailAddressInsightsCommand,
70567
+ get_email_identity: Sdk10.GetEmailIdentityCommand,
70568
+ get_email_identity_policies: Sdk10.GetEmailIdentityPoliciesCommand,
70569
+ get_email_template: Sdk10.GetEmailTemplateCommand,
70570
+ get_export_job: Sdk10.GetExportJobCommand,
70571
+ get_import_job: Sdk10.GetImportJobCommand,
70572
+ get_message_insights: Sdk10.GetMessageInsightsCommand,
70573
+ get_multi_region_endpoint: Sdk10.GetMultiRegionEndpointCommand,
70574
+ get_reputation_entity: Sdk10.GetReputationEntityCommand,
70575
+ get_suppressed_destination: Sdk10.GetSuppressedDestinationCommand,
70576
+ get_tenant: Sdk10.GetTenantCommand,
70577
+ list_configuration_sets: Sdk10.ListConfigurationSetsCommand,
70578
+ list_contact_lists: Sdk10.ListContactListsCommand,
70579
+ list_contacts: Sdk10.ListContactsCommand,
70580
+ list_custom_verification_email_templates: Sdk10.ListCustomVerificationEmailTemplatesCommand,
70581
+ list_dedicated_ip_pools: Sdk10.ListDedicatedIpPoolsCommand,
70582
+ list_deliverability_test_reports: Sdk10.ListDeliverabilityTestReportsCommand,
70583
+ list_domain_deliverability_campaigns: Sdk10.ListDomainDeliverabilityCampaignsCommand,
70584
+ list_email_identities: Sdk10.ListEmailIdentitiesCommand,
70585
+ list_email_templates: Sdk10.ListEmailTemplatesCommand,
70586
+ list_export_jobs: Sdk10.ListExportJobsCommand,
70587
+ list_import_jobs: Sdk10.ListImportJobsCommand,
70588
+ list_multi_region_endpoints: Sdk10.ListMultiRegionEndpointsCommand,
70589
+ list_recommendations: Sdk10.ListRecommendationsCommand,
70590
+ list_reputation_entities: Sdk10.ListReputationEntitiesCommand,
70591
+ list_resource_tenants: Sdk10.ListResourceTenantsCommand,
70592
+ list_suppressed_destinations: Sdk10.ListSuppressedDestinationsCommand,
70593
+ list_tags_for_resource: Sdk10.ListTagsForResourceCommand,
70594
+ list_tenant_resources: Sdk10.ListTenantResourcesCommand,
70595
+ list_tenants: Sdk10.ListTenantsCommand,
70596
+ put_account_dedicated_ip_warmup_attributes: Sdk10.PutAccountDedicatedIpWarmupAttributesCommand,
70597
+ put_account_details: Sdk10.PutAccountDetailsCommand,
70598
+ put_account_sending_attributes: Sdk10.PutAccountSendingAttributesCommand,
70599
+ put_account_suppression_attributes: Sdk10.PutAccountSuppressionAttributesCommand,
70600
+ put_account_vdm_attributes: Sdk10.PutAccountVdmAttributesCommand,
70601
+ put_configuration_set_archiving_options: Sdk10.PutConfigurationSetArchivingOptionsCommand,
70602
+ put_configuration_set_delivery_options: Sdk10.PutConfigurationSetDeliveryOptionsCommand,
70603
+ put_configuration_set_reputation_options: Sdk10.PutConfigurationSetReputationOptionsCommand,
70604
+ put_configuration_set_sending_options: Sdk10.PutConfigurationSetSendingOptionsCommand,
70605
+ put_configuration_set_suppression_options: Sdk10.PutConfigurationSetSuppressionOptionsCommand,
70606
+ put_configuration_set_tracking_options: Sdk10.PutConfigurationSetTrackingOptionsCommand,
70607
+ put_configuration_set_vdm_options: Sdk10.PutConfigurationSetVdmOptionsCommand,
70608
+ put_dedicated_ip_in_pool: Sdk10.PutDedicatedIpInPoolCommand,
70609
+ put_dedicated_ip_pool_scaling_attributes: Sdk10.PutDedicatedIpPoolScalingAttributesCommand,
70610
+ put_dedicated_ip_warmup_attributes: Sdk10.PutDedicatedIpWarmupAttributesCommand,
70611
+ put_deliverability_dashboard_option: Sdk10.PutDeliverabilityDashboardOptionCommand,
70612
+ put_email_identity_configuration_set_attributes: Sdk10.PutEmailIdentityConfigurationSetAttributesCommand,
70613
+ put_email_identity_dkim_attributes: Sdk10.PutEmailIdentityDkimAttributesCommand,
70614
+ put_email_identity_dkim_signing_attributes: Sdk10.PutEmailIdentityDkimSigningAttributesCommand,
70615
+ put_email_identity_feedback_attributes: Sdk10.PutEmailIdentityFeedbackAttributesCommand,
70616
+ put_email_identity_mail_from_attributes: Sdk10.PutEmailIdentityMailFromAttributesCommand,
70617
+ put_suppressed_destination: Sdk10.PutSuppressedDestinationCommand,
70618
+ send_bulk_email: Sdk10.SendBulkEmailCommand,
70619
+ send_custom_verification_email: Sdk10.SendCustomVerificationEmailCommand,
70620
+ send_email: Sdk10.SendEmailCommand,
70621
+ tag_resource: Sdk10.TagResourceCommand,
70622
+ test_render_email_template: Sdk10.TestRenderEmailTemplateCommand,
70623
+ untag_resource: Sdk10.UntagResourceCommand,
70624
+ update_configuration_set_event_destination: Sdk10.UpdateConfigurationSetEventDestinationCommand,
70625
+ update_contact: Sdk10.UpdateContactCommand,
70626
+ update_contact_list: Sdk10.UpdateContactListCommand,
70627
+ update_custom_verification_email_template: Sdk10.UpdateCustomVerificationEmailTemplateCommand,
70628
+ update_email_identity_policy: Sdk10.UpdateEmailIdentityPolicyCommand,
70629
+ update_email_template: Sdk10.UpdateEmailTemplateCommand,
70630
+ update_reputation_entity_customer_managed_status: Sdk10.UpdateReputationEntityCustomerManagedStatusCommand,
70631
+ update_reputation_entity_policy: Sdk10.UpdateReputationEntityPolicyCommand
70632
+ };
70633
+
70475
70634
  // src/aws/clients/sqs.ts
70476
70635
  var sqs_exports = {};
70477
70636
  __export(sqs_exports, {
70478
70637
  SQSClient: () => SQSClient2,
70479
70638
  SQSError: () => SQSError,
70480
- make: () => make77
70639
+ make: () => make78
70481
70640
  });
70482
- import * as Sdk10 from "@aws-sdk/client-sqs";
70641
+ import * as Sdk11 from "@aws-sdk/client-sqs";
70483
70642
  var SQSClient2 = class _SQSClient extends Tag2("SQSClient")() {
70484
70643
  static Default = (config2) => effect(
70485
70644
  _SQSClient,
70486
70645
  gen3(function* () {
70487
- return new Sdk10.SQSClient(config2 ?? {});
70646
+ return new Sdk11.SQSClient(config2 ?? {});
70488
70647
  })
70489
70648
  );
70490
70649
  };
70491
- var make77 = fn("aws_SQS")(function* (actionName, actionInput) {
70650
+ var make78 = fn("aws_SQS")(function* (actionName, actionInput) {
70492
70651
  yield* logDebug2(`aws_SQS.${actionName}`, { input: actionInput });
70493
70652
  const client = yield* SQSClient2;
70494
70653
  const command = new SQSCommandFactory[actionName](actionInput);
70495
70654
  const result = yield* tryPromise2({
70496
70655
  try: () => client.send(command),
70497
70656
  catch: (error4) => {
70498
- if (error4 instanceof Sdk10.SQSServiceException) {
70657
+ if (error4 instanceof Sdk11.SQSServiceException) {
70499
70658
  return new SQSError(error4, actionName);
70500
70659
  }
70501
70660
  throw error4;
@@ -70518,29 +70677,29 @@ var SQSError = class {
70518
70677
  }
70519
70678
  };
70520
70679
  var SQSCommandFactory = {
70521
- add_permission: Sdk10.AddPermissionCommand,
70522
- cancel_message_move_task: Sdk10.CancelMessageMoveTaskCommand,
70523
- change_message_visibility: Sdk10.ChangeMessageVisibilityCommand,
70524
- change_message_visibility_batch: Sdk10.ChangeMessageVisibilityBatchCommand,
70525
- create_queue: Sdk10.CreateQueueCommand,
70526
- delete_message: Sdk10.DeleteMessageCommand,
70527
- delete_message_batch: Sdk10.DeleteMessageBatchCommand,
70528
- delete_queue: Sdk10.DeleteQueueCommand,
70529
- get_queue_attributes: Sdk10.GetQueueAttributesCommand,
70530
- get_queue_url: Sdk10.GetQueueUrlCommand,
70531
- list_dead_letter_source_queues: Sdk10.ListDeadLetterSourceQueuesCommand,
70532
- list_message_move_tasks: Sdk10.ListMessageMoveTasksCommand,
70533
- list_queue_tags: Sdk10.ListQueueTagsCommand,
70534
- list_queues: Sdk10.ListQueuesCommand,
70535
- purge_queue: Sdk10.PurgeQueueCommand,
70536
- receive_message: Sdk10.ReceiveMessageCommand,
70537
- remove_permission: Sdk10.RemovePermissionCommand,
70538
- send_message: Sdk10.SendMessageCommand,
70539
- send_message_batch: Sdk10.SendMessageBatchCommand,
70540
- set_queue_attributes: Sdk10.SetQueueAttributesCommand,
70541
- start_message_move_task: Sdk10.StartMessageMoveTaskCommand,
70542
- tag_queue: Sdk10.TagQueueCommand,
70543
- untag_queue: Sdk10.UntagQueueCommand
70680
+ add_permission: Sdk11.AddPermissionCommand,
70681
+ cancel_message_move_task: Sdk11.CancelMessageMoveTaskCommand,
70682
+ change_message_visibility: Sdk11.ChangeMessageVisibilityCommand,
70683
+ change_message_visibility_batch: Sdk11.ChangeMessageVisibilityBatchCommand,
70684
+ create_queue: Sdk11.CreateQueueCommand,
70685
+ delete_message: Sdk11.DeleteMessageCommand,
70686
+ delete_message_batch: Sdk11.DeleteMessageBatchCommand,
70687
+ delete_queue: Sdk11.DeleteQueueCommand,
70688
+ get_queue_attributes: Sdk11.GetQueueAttributesCommand,
70689
+ get_queue_url: Sdk11.GetQueueUrlCommand,
70690
+ list_dead_letter_source_queues: Sdk11.ListDeadLetterSourceQueuesCommand,
70691
+ list_message_move_tasks: Sdk11.ListMessageMoveTasksCommand,
70692
+ list_queue_tags: Sdk11.ListQueueTagsCommand,
70693
+ list_queues: Sdk11.ListQueuesCommand,
70694
+ purge_queue: Sdk11.PurgeQueueCommand,
70695
+ receive_message: Sdk11.ReceiveMessageCommand,
70696
+ remove_permission: Sdk11.RemovePermissionCommand,
70697
+ send_message: Sdk11.SendMessageCommand,
70698
+ send_message_batch: Sdk11.SendMessageBatchCommand,
70699
+ set_queue_attributes: Sdk11.SetQueueAttributesCommand,
70700
+ start_message_move_task: Sdk11.StartMessageMoveTaskCommand,
70701
+ tag_queue: Sdk11.TagQueueCommand,
70702
+ untag_queue: Sdk11.UntagQueueCommand
70544
70703
  };
70545
70704
 
70546
70705
  // src/aws/clients/ssm.ts
@@ -70548,25 +70707,25 @@ var ssm_exports = {};
70548
70707
  __export(ssm_exports, {
70549
70708
  SSMClient: () => SSMClient2,
70550
70709
  SSMError: () => SSMError,
70551
- make: () => make78
70710
+ make: () => make79
70552
70711
  });
70553
- import * as Sdk11 from "@aws-sdk/client-ssm";
70712
+ import * as Sdk12 from "@aws-sdk/client-ssm";
70554
70713
  var SSMClient2 = class _SSMClient extends Tag2("SSMClient")() {
70555
70714
  static Default = (config2) => effect(
70556
70715
  _SSMClient,
70557
70716
  gen3(function* () {
70558
- return new Sdk11.SSMClient(config2 ?? {});
70717
+ return new Sdk12.SSMClient(config2 ?? {});
70559
70718
  })
70560
70719
  );
70561
70720
  };
70562
- var make78 = fn("aws_SSM")(function* (actionName, actionInput) {
70721
+ var make79 = fn("aws_SSM")(function* (actionName, actionInput) {
70563
70722
  yield* logDebug2(`aws_SSM.${actionName}`, { input: actionInput });
70564
70723
  const client = yield* SSMClient2;
70565
70724
  const command = new SSMCommandFactory[actionName](actionInput);
70566
70725
  const result = yield* tryPromise2({
70567
70726
  try: () => client.send(command),
70568
70727
  catch: (error4) => {
70569
- if (error4 instanceof Sdk11.SSMServiceException) {
70728
+ if (error4 instanceof Sdk12.SSMServiceException) {
70570
70729
  return new SSMError(error4, actionName);
70571
70730
  }
70572
70731
  throw error4;
@@ -70589,152 +70748,152 @@ var SSMError = class {
70589
70748
  }
70590
70749
  };
70591
70750
  var SSMCommandFactory = {
70592
- add_tags_to_resource: Sdk11.AddTagsToResourceCommand,
70593
- associate_ops_item_related_item: Sdk11.AssociateOpsItemRelatedItemCommand,
70594
- cancel_command: Sdk11.CancelCommandCommand,
70595
- cancel_maintenance_window_execution: Sdk11.CancelMaintenanceWindowExecutionCommand,
70596
- create_activation: Sdk11.CreateActivationCommand,
70597
- create_association: Sdk11.CreateAssociationCommand,
70598
- create_association_batch: Sdk11.CreateAssociationBatchCommand,
70599
- create_document: Sdk11.CreateDocumentCommand,
70600
- create_maintenance_window: Sdk11.CreateMaintenanceWindowCommand,
70601
- create_ops_item: Sdk11.CreateOpsItemCommand,
70602
- create_ops_metadata: Sdk11.CreateOpsMetadataCommand,
70603
- create_patch_baseline: Sdk11.CreatePatchBaselineCommand,
70604
- create_resource_data_sync: Sdk11.CreateResourceDataSyncCommand,
70605
- delete_activation: Sdk11.DeleteActivationCommand,
70606
- delete_association: Sdk11.DeleteAssociationCommand,
70607
- delete_document: Sdk11.DeleteDocumentCommand,
70608
- delete_inventory: Sdk11.DeleteInventoryCommand,
70609
- delete_maintenance_window: Sdk11.DeleteMaintenanceWindowCommand,
70610
- delete_ops_item: Sdk11.DeleteOpsItemCommand,
70611
- delete_ops_metadata: Sdk11.DeleteOpsMetadataCommand,
70612
- delete_parameter: Sdk11.DeleteParameterCommand,
70613
- delete_parameters: Sdk11.DeleteParametersCommand,
70614
- delete_patch_baseline: Sdk11.DeletePatchBaselineCommand,
70615
- delete_resource_data_sync: Sdk11.DeleteResourceDataSyncCommand,
70616
- delete_resource_policy: Sdk11.DeleteResourcePolicyCommand,
70617
- deregister_managed_instance: Sdk11.DeregisterManagedInstanceCommand,
70618
- deregister_patch_baseline_for_patch_group: Sdk11.DeregisterPatchBaselineForPatchGroupCommand,
70619
- deregister_target_from_maintenance_window: Sdk11.DeregisterTargetFromMaintenanceWindowCommand,
70620
- deregister_task_from_maintenance_window: Sdk11.DeregisterTaskFromMaintenanceWindowCommand,
70621
- describe_activations: Sdk11.DescribeActivationsCommand,
70622
- describe_association: Sdk11.DescribeAssociationCommand,
70623
- describe_association_execution_targets: Sdk11.DescribeAssociationExecutionTargetsCommand,
70624
- describe_association_executions: Sdk11.DescribeAssociationExecutionsCommand,
70625
- describe_automation_executions: Sdk11.DescribeAutomationExecutionsCommand,
70626
- describe_automation_step_executions: Sdk11.DescribeAutomationStepExecutionsCommand,
70627
- describe_available_patches: Sdk11.DescribeAvailablePatchesCommand,
70628
- describe_document: Sdk11.DescribeDocumentCommand,
70629
- describe_document_permission: Sdk11.DescribeDocumentPermissionCommand,
70630
- describe_effective_instance_associations: Sdk11.DescribeEffectiveInstanceAssociationsCommand,
70631
- describe_effective_patches_for_patch_baseline: Sdk11.DescribeEffectivePatchesForPatchBaselineCommand,
70632
- describe_instance_associations_status: Sdk11.DescribeInstanceAssociationsStatusCommand,
70633
- describe_instance_information: Sdk11.DescribeInstanceInformationCommand,
70634
- describe_instance_patch_states: Sdk11.DescribeInstancePatchStatesCommand,
70635
- describe_instance_patch_states_for_patch_group: Sdk11.DescribeInstancePatchStatesForPatchGroupCommand,
70636
- describe_instance_patches: Sdk11.DescribeInstancePatchesCommand,
70637
- describe_instance_properties: Sdk11.DescribeInstancePropertiesCommand,
70638
- describe_inventory_deletions: Sdk11.DescribeInventoryDeletionsCommand,
70639
- describe_maintenance_window_execution_task_invocations: Sdk11.DescribeMaintenanceWindowExecutionTaskInvocationsCommand,
70640
- describe_maintenance_window_execution_tasks: Sdk11.DescribeMaintenanceWindowExecutionTasksCommand,
70641
- describe_maintenance_window_executions: Sdk11.DescribeMaintenanceWindowExecutionsCommand,
70642
- describe_maintenance_window_schedule: Sdk11.DescribeMaintenanceWindowScheduleCommand,
70643
- describe_maintenance_window_targets: Sdk11.DescribeMaintenanceWindowTargetsCommand,
70644
- describe_maintenance_window_tasks: Sdk11.DescribeMaintenanceWindowTasksCommand,
70645
- describe_maintenance_windows: Sdk11.DescribeMaintenanceWindowsCommand,
70646
- describe_maintenance_windows_for_target: Sdk11.DescribeMaintenanceWindowsForTargetCommand,
70647
- describe_ops_items: Sdk11.DescribeOpsItemsCommand,
70648
- describe_parameters: Sdk11.DescribeParametersCommand,
70649
- describe_patch_baselines: Sdk11.DescribePatchBaselinesCommand,
70650
- describe_patch_group_state: Sdk11.DescribePatchGroupStateCommand,
70651
- describe_patch_groups: Sdk11.DescribePatchGroupsCommand,
70652
- describe_patch_properties: Sdk11.DescribePatchPropertiesCommand,
70653
- describe_sessions: Sdk11.DescribeSessionsCommand,
70654
- disassociate_ops_item_related_item: Sdk11.DisassociateOpsItemRelatedItemCommand,
70655
- get_access_token: Sdk11.GetAccessTokenCommand,
70656
- get_automation_execution: Sdk11.GetAutomationExecutionCommand,
70657
- get_calendar_state: Sdk11.GetCalendarStateCommand,
70658
- get_command_invocation: Sdk11.GetCommandInvocationCommand,
70659
- get_connection_status: Sdk11.GetConnectionStatusCommand,
70660
- get_default_patch_baseline: Sdk11.GetDefaultPatchBaselineCommand,
70661
- get_deployable_patch_snapshot_for_instance: Sdk11.GetDeployablePatchSnapshotForInstanceCommand,
70662
- get_document: Sdk11.GetDocumentCommand,
70663
- get_execution_preview: Sdk11.GetExecutionPreviewCommand,
70664
- get_inventory: Sdk11.GetInventoryCommand,
70665
- get_inventory_schema: Sdk11.GetInventorySchemaCommand,
70666
- get_maintenance_window: Sdk11.GetMaintenanceWindowCommand,
70667
- get_maintenance_window_execution: Sdk11.GetMaintenanceWindowExecutionCommand,
70668
- get_maintenance_window_execution_task: Sdk11.GetMaintenanceWindowExecutionTaskCommand,
70669
- get_maintenance_window_execution_task_invocation: Sdk11.GetMaintenanceWindowExecutionTaskInvocationCommand,
70670
- get_maintenance_window_task: Sdk11.GetMaintenanceWindowTaskCommand,
70671
- get_ops_item: Sdk11.GetOpsItemCommand,
70672
- get_ops_metadata: Sdk11.GetOpsMetadataCommand,
70673
- get_ops_summary: Sdk11.GetOpsSummaryCommand,
70674
- get_parameter: Sdk11.GetParameterCommand,
70675
- get_parameter_history: Sdk11.GetParameterHistoryCommand,
70676
- get_parameters: Sdk11.GetParametersCommand,
70677
- get_parameters_by_path: Sdk11.GetParametersByPathCommand,
70678
- get_patch_baseline: Sdk11.GetPatchBaselineCommand,
70679
- get_patch_baseline_for_patch_group: Sdk11.GetPatchBaselineForPatchGroupCommand,
70680
- get_resource_policies: Sdk11.GetResourcePoliciesCommand,
70681
- get_service_setting: Sdk11.GetServiceSettingCommand,
70682
- label_parameter_version: Sdk11.LabelParameterVersionCommand,
70683
- list_association_versions: Sdk11.ListAssociationVersionsCommand,
70684
- list_associations: Sdk11.ListAssociationsCommand,
70685
- list_command_invocations: Sdk11.ListCommandInvocationsCommand,
70686
- list_commands: Sdk11.ListCommandsCommand,
70687
- list_compliance_items: Sdk11.ListComplianceItemsCommand,
70688
- list_compliance_summaries: Sdk11.ListComplianceSummariesCommand,
70689
- list_document_metadata_history: Sdk11.ListDocumentMetadataHistoryCommand,
70690
- list_document_versions: Sdk11.ListDocumentVersionsCommand,
70691
- list_documents: Sdk11.ListDocumentsCommand,
70692
- list_inventory_entries: Sdk11.ListInventoryEntriesCommand,
70693
- list_nodes: Sdk11.ListNodesCommand,
70694
- list_nodes_summary: Sdk11.ListNodesSummaryCommand,
70695
- list_ops_item_events: Sdk11.ListOpsItemEventsCommand,
70696
- list_ops_item_related_items: Sdk11.ListOpsItemRelatedItemsCommand,
70697
- list_ops_metadata: Sdk11.ListOpsMetadataCommand,
70698
- list_resource_compliance_summaries: Sdk11.ListResourceComplianceSummariesCommand,
70699
- list_resource_data_sync: Sdk11.ListResourceDataSyncCommand,
70700
- list_tags_for_resource: Sdk11.ListTagsForResourceCommand,
70701
- modify_document_permission: Sdk11.ModifyDocumentPermissionCommand,
70702
- put_compliance_items: Sdk11.PutComplianceItemsCommand,
70703
- put_inventory: Sdk11.PutInventoryCommand,
70704
- put_parameter: Sdk11.PutParameterCommand,
70705
- put_resource_policy: Sdk11.PutResourcePolicyCommand,
70706
- register_default_patch_baseline: Sdk11.RegisterDefaultPatchBaselineCommand,
70707
- register_patch_baseline_for_patch_group: Sdk11.RegisterPatchBaselineForPatchGroupCommand,
70708
- register_target_with_maintenance_window: Sdk11.RegisterTargetWithMaintenanceWindowCommand,
70709
- register_task_with_maintenance_window: Sdk11.RegisterTaskWithMaintenanceWindowCommand,
70710
- remove_tags_from_resource: Sdk11.RemoveTagsFromResourceCommand,
70711
- reset_service_setting: Sdk11.ResetServiceSettingCommand,
70712
- resume_session: Sdk11.ResumeSessionCommand,
70713
- send_automation_signal: Sdk11.SendAutomationSignalCommand,
70714
- send_command: Sdk11.SendCommandCommand,
70715
- start_access_request: Sdk11.StartAccessRequestCommand,
70716
- start_associations_once: Sdk11.StartAssociationsOnceCommand,
70717
- start_automation_execution: Sdk11.StartAutomationExecutionCommand,
70718
- start_change_request_execution: Sdk11.StartChangeRequestExecutionCommand,
70719
- start_execution_preview: Sdk11.StartExecutionPreviewCommand,
70720
- start_session: Sdk11.StartSessionCommand,
70721
- stop_automation_execution: Sdk11.StopAutomationExecutionCommand,
70722
- terminate_session: Sdk11.TerminateSessionCommand,
70723
- unlabel_parameter_version: Sdk11.UnlabelParameterVersionCommand,
70724
- update_association: Sdk11.UpdateAssociationCommand,
70725
- update_association_status: Sdk11.UpdateAssociationStatusCommand,
70726
- update_document: Sdk11.UpdateDocumentCommand,
70727
- update_document_default_version: Sdk11.UpdateDocumentDefaultVersionCommand,
70728
- update_document_metadata: Sdk11.UpdateDocumentMetadataCommand,
70729
- update_maintenance_window: Sdk11.UpdateMaintenanceWindowCommand,
70730
- update_maintenance_window_target: Sdk11.UpdateMaintenanceWindowTargetCommand,
70731
- update_maintenance_window_task: Sdk11.UpdateMaintenanceWindowTaskCommand,
70732
- update_managed_instance_role: Sdk11.UpdateManagedInstanceRoleCommand,
70733
- update_ops_item: Sdk11.UpdateOpsItemCommand,
70734
- update_ops_metadata: Sdk11.UpdateOpsMetadataCommand,
70735
- update_patch_baseline: Sdk11.UpdatePatchBaselineCommand,
70736
- update_resource_data_sync: Sdk11.UpdateResourceDataSyncCommand,
70737
- update_service_setting: Sdk11.UpdateServiceSettingCommand
70751
+ add_tags_to_resource: Sdk12.AddTagsToResourceCommand,
70752
+ associate_ops_item_related_item: Sdk12.AssociateOpsItemRelatedItemCommand,
70753
+ cancel_command: Sdk12.CancelCommandCommand,
70754
+ cancel_maintenance_window_execution: Sdk12.CancelMaintenanceWindowExecutionCommand,
70755
+ create_activation: Sdk12.CreateActivationCommand,
70756
+ create_association: Sdk12.CreateAssociationCommand,
70757
+ create_association_batch: Sdk12.CreateAssociationBatchCommand,
70758
+ create_document: Sdk12.CreateDocumentCommand,
70759
+ create_maintenance_window: Sdk12.CreateMaintenanceWindowCommand,
70760
+ create_ops_item: Sdk12.CreateOpsItemCommand,
70761
+ create_ops_metadata: Sdk12.CreateOpsMetadataCommand,
70762
+ create_patch_baseline: Sdk12.CreatePatchBaselineCommand,
70763
+ create_resource_data_sync: Sdk12.CreateResourceDataSyncCommand,
70764
+ delete_activation: Sdk12.DeleteActivationCommand,
70765
+ delete_association: Sdk12.DeleteAssociationCommand,
70766
+ delete_document: Sdk12.DeleteDocumentCommand,
70767
+ delete_inventory: Sdk12.DeleteInventoryCommand,
70768
+ delete_maintenance_window: Sdk12.DeleteMaintenanceWindowCommand,
70769
+ delete_ops_item: Sdk12.DeleteOpsItemCommand,
70770
+ delete_ops_metadata: Sdk12.DeleteOpsMetadataCommand,
70771
+ delete_parameter: Sdk12.DeleteParameterCommand,
70772
+ delete_parameters: Sdk12.DeleteParametersCommand,
70773
+ delete_patch_baseline: Sdk12.DeletePatchBaselineCommand,
70774
+ delete_resource_data_sync: Sdk12.DeleteResourceDataSyncCommand,
70775
+ delete_resource_policy: Sdk12.DeleteResourcePolicyCommand,
70776
+ deregister_managed_instance: Sdk12.DeregisterManagedInstanceCommand,
70777
+ deregister_patch_baseline_for_patch_group: Sdk12.DeregisterPatchBaselineForPatchGroupCommand,
70778
+ deregister_target_from_maintenance_window: Sdk12.DeregisterTargetFromMaintenanceWindowCommand,
70779
+ deregister_task_from_maintenance_window: Sdk12.DeregisterTaskFromMaintenanceWindowCommand,
70780
+ describe_activations: Sdk12.DescribeActivationsCommand,
70781
+ describe_association: Sdk12.DescribeAssociationCommand,
70782
+ describe_association_execution_targets: Sdk12.DescribeAssociationExecutionTargetsCommand,
70783
+ describe_association_executions: Sdk12.DescribeAssociationExecutionsCommand,
70784
+ describe_automation_executions: Sdk12.DescribeAutomationExecutionsCommand,
70785
+ describe_automation_step_executions: Sdk12.DescribeAutomationStepExecutionsCommand,
70786
+ describe_available_patches: Sdk12.DescribeAvailablePatchesCommand,
70787
+ describe_document: Sdk12.DescribeDocumentCommand,
70788
+ describe_document_permission: Sdk12.DescribeDocumentPermissionCommand,
70789
+ describe_effective_instance_associations: Sdk12.DescribeEffectiveInstanceAssociationsCommand,
70790
+ describe_effective_patches_for_patch_baseline: Sdk12.DescribeEffectivePatchesForPatchBaselineCommand,
70791
+ describe_instance_associations_status: Sdk12.DescribeInstanceAssociationsStatusCommand,
70792
+ describe_instance_information: Sdk12.DescribeInstanceInformationCommand,
70793
+ describe_instance_patch_states: Sdk12.DescribeInstancePatchStatesCommand,
70794
+ describe_instance_patch_states_for_patch_group: Sdk12.DescribeInstancePatchStatesForPatchGroupCommand,
70795
+ describe_instance_patches: Sdk12.DescribeInstancePatchesCommand,
70796
+ describe_instance_properties: Sdk12.DescribeInstancePropertiesCommand,
70797
+ describe_inventory_deletions: Sdk12.DescribeInventoryDeletionsCommand,
70798
+ describe_maintenance_window_execution_task_invocations: Sdk12.DescribeMaintenanceWindowExecutionTaskInvocationsCommand,
70799
+ describe_maintenance_window_execution_tasks: Sdk12.DescribeMaintenanceWindowExecutionTasksCommand,
70800
+ describe_maintenance_window_executions: Sdk12.DescribeMaintenanceWindowExecutionsCommand,
70801
+ describe_maintenance_window_schedule: Sdk12.DescribeMaintenanceWindowScheduleCommand,
70802
+ describe_maintenance_window_targets: Sdk12.DescribeMaintenanceWindowTargetsCommand,
70803
+ describe_maintenance_window_tasks: Sdk12.DescribeMaintenanceWindowTasksCommand,
70804
+ describe_maintenance_windows: Sdk12.DescribeMaintenanceWindowsCommand,
70805
+ describe_maintenance_windows_for_target: Sdk12.DescribeMaintenanceWindowsForTargetCommand,
70806
+ describe_ops_items: Sdk12.DescribeOpsItemsCommand,
70807
+ describe_parameters: Sdk12.DescribeParametersCommand,
70808
+ describe_patch_baselines: Sdk12.DescribePatchBaselinesCommand,
70809
+ describe_patch_group_state: Sdk12.DescribePatchGroupStateCommand,
70810
+ describe_patch_groups: Sdk12.DescribePatchGroupsCommand,
70811
+ describe_patch_properties: Sdk12.DescribePatchPropertiesCommand,
70812
+ describe_sessions: Sdk12.DescribeSessionsCommand,
70813
+ disassociate_ops_item_related_item: Sdk12.DisassociateOpsItemRelatedItemCommand,
70814
+ get_access_token: Sdk12.GetAccessTokenCommand,
70815
+ get_automation_execution: Sdk12.GetAutomationExecutionCommand,
70816
+ get_calendar_state: Sdk12.GetCalendarStateCommand,
70817
+ get_command_invocation: Sdk12.GetCommandInvocationCommand,
70818
+ get_connection_status: Sdk12.GetConnectionStatusCommand,
70819
+ get_default_patch_baseline: Sdk12.GetDefaultPatchBaselineCommand,
70820
+ get_deployable_patch_snapshot_for_instance: Sdk12.GetDeployablePatchSnapshotForInstanceCommand,
70821
+ get_document: Sdk12.GetDocumentCommand,
70822
+ get_execution_preview: Sdk12.GetExecutionPreviewCommand,
70823
+ get_inventory: Sdk12.GetInventoryCommand,
70824
+ get_inventory_schema: Sdk12.GetInventorySchemaCommand,
70825
+ get_maintenance_window: Sdk12.GetMaintenanceWindowCommand,
70826
+ get_maintenance_window_execution: Sdk12.GetMaintenanceWindowExecutionCommand,
70827
+ get_maintenance_window_execution_task: Sdk12.GetMaintenanceWindowExecutionTaskCommand,
70828
+ get_maintenance_window_execution_task_invocation: Sdk12.GetMaintenanceWindowExecutionTaskInvocationCommand,
70829
+ get_maintenance_window_task: Sdk12.GetMaintenanceWindowTaskCommand,
70830
+ get_ops_item: Sdk12.GetOpsItemCommand,
70831
+ get_ops_metadata: Sdk12.GetOpsMetadataCommand,
70832
+ get_ops_summary: Sdk12.GetOpsSummaryCommand,
70833
+ get_parameter: Sdk12.GetParameterCommand,
70834
+ get_parameter_history: Sdk12.GetParameterHistoryCommand,
70835
+ get_parameters: Sdk12.GetParametersCommand,
70836
+ get_parameters_by_path: Sdk12.GetParametersByPathCommand,
70837
+ get_patch_baseline: Sdk12.GetPatchBaselineCommand,
70838
+ get_patch_baseline_for_patch_group: Sdk12.GetPatchBaselineForPatchGroupCommand,
70839
+ get_resource_policies: Sdk12.GetResourcePoliciesCommand,
70840
+ get_service_setting: Sdk12.GetServiceSettingCommand,
70841
+ label_parameter_version: Sdk12.LabelParameterVersionCommand,
70842
+ list_association_versions: Sdk12.ListAssociationVersionsCommand,
70843
+ list_associations: Sdk12.ListAssociationsCommand,
70844
+ list_command_invocations: Sdk12.ListCommandInvocationsCommand,
70845
+ list_commands: Sdk12.ListCommandsCommand,
70846
+ list_compliance_items: Sdk12.ListComplianceItemsCommand,
70847
+ list_compliance_summaries: Sdk12.ListComplianceSummariesCommand,
70848
+ list_document_metadata_history: Sdk12.ListDocumentMetadataHistoryCommand,
70849
+ list_document_versions: Sdk12.ListDocumentVersionsCommand,
70850
+ list_documents: Sdk12.ListDocumentsCommand,
70851
+ list_inventory_entries: Sdk12.ListInventoryEntriesCommand,
70852
+ list_nodes: Sdk12.ListNodesCommand,
70853
+ list_nodes_summary: Sdk12.ListNodesSummaryCommand,
70854
+ list_ops_item_events: Sdk12.ListOpsItemEventsCommand,
70855
+ list_ops_item_related_items: Sdk12.ListOpsItemRelatedItemsCommand,
70856
+ list_ops_metadata: Sdk12.ListOpsMetadataCommand,
70857
+ list_resource_compliance_summaries: Sdk12.ListResourceComplianceSummariesCommand,
70858
+ list_resource_data_sync: Sdk12.ListResourceDataSyncCommand,
70859
+ list_tags_for_resource: Sdk12.ListTagsForResourceCommand,
70860
+ modify_document_permission: Sdk12.ModifyDocumentPermissionCommand,
70861
+ put_compliance_items: Sdk12.PutComplianceItemsCommand,
70862
+ put_inventory: Sdk12.PutInventoryCommand,
70863
+ put_parameter: Sdk12.PutParameterCommand,
70864
+ put_resource_policy: Sdk12.PutResourcePolicyCommand,
70865
+ register_default_patch_baseline: Sdk12.RegisterDefaultPatchBaselineCommand,
70866
+ register_patch_baseline_for_patch_group: Sdk12.RegisterPatchBaselineForPatchGroupCommand,
70867
+ register_target_with_maintenance_window: Sdk12.RegisterTargetWithMaintenanceWindowCommand,
70868
+ register_task_with_maintenance_window: Sdk12.RegisterTaskWithMaintenanceWindowCommand,
70869
+ remove_tags_from_resource: Sdk12.RemoveTagsFromResourceCommand,
70870
+ reset_service_setting: Sdk12.ResetServiceSettingCommand,
70871
+ resume_session: Sdk12.ResumeSessionCommand,
70872
+ send_automation_signal: Sdk12.SendAutomationSignalCommand,
70873
+ send_command: Sdk12.SendCommandCommand,
70874
+ start_access_request: Sdk12.StartAccessRequestCommand,
70875
+ start_associations_once: Sdk12.StartAssociationsOnceCommand,
70876
+ start_automation_execution: Sdk12.StartAutomationExecutionCommand,
70877
+ start_change_request_execution: Sdk12.StartChangeRequestExecutionCommand,
70878
+ start_execution_preview: Sdk12.StartExecutionPreviewCommand,
70879
+ start_session: Sdk12.StartSessionCommand,
70880
+ stop_automation_execution: Sdk12.StopAutomationExecutionCommand,
70881
+ terminate_session: Sdk12.TerminateSessionCommand,
70882
+ unlabel_parameter_version: Sdk12.UnlabelParameterVersionCommand,
70883
+ update_association: Sdk12.UpdateAssociationCommand,
70884
+ update_association_status: Sdk12.UpdateAssociationStatusCommand,
70885
+ update_document: Sdk12.UpdateDocumentCommand,
70886
+ update_document_default_version: Sdk12.UpdateDocumentDefaultVersionCommand,
70887
+ update_document_metadata: Sdk12.UpdateDocumentMetadataCommand,
70888
+ update_maintenance_window: Sdk12.UpdateMaintenanceWindowCommand,
70889
+ update_maintenance_window_target: Sdk12.UpdateMaintenanceWindowTargetCommand,
70890
+ update_maintenance_window_task: Sdk12.UpdateMaintenanceWindowTaskCommand,
70891
+ update_managed_instance_role: Sdk12.UpdateManagedInstanceRoleCommand,
70892
+ update_ops_item: Sdk12.UpdateOpsItemCommand,
70893
+ update_ops_metadata: Sdk12.UpdateOpsMetadataCommand,
70894
+ update_patch_baseline: Sdk12.UpdatePatchBaselineCommand,
70895
+ update_resource_data_sync: Sdk12.UpdateResourceDataSyncCommand,
70896
+ update_service_setting: Sdk12.UpdateServiceSettingCommand
70738
70897
  };
70739
70898
 
70740
70899
  // src/aws/clients/index.ts
@@ -70748,6 +70907,7 @@ var AllClientsDefault = mergeAll6(
70748
70907
  LambdaClient2.Default(),
70749
70908
  ResourceGroupsTaggingAPIClient2.Default(),
70750
70909
  S3Client2.Default(),
70910
+ SESv2Client2.Default(),
70751
70911
  SQSClient2.Default(),
70752
70912
  SSMClient2.Default()
70753
70913
  );
@@ -70761,6 +70921,7 @@ var makeClients = (config2) => mergeAll6(
70761
70921
  LambdaClient2.Default(config2?.lambda),
70762
70922
  ResourceGroupsTaggingAPIClient2.Default(config2?.resource_groups_tagging_api),
70763
70923
  S3Client2.Default(config2?.s3),
70924
+ SESv2Client2.Default(config2?.sesv2),
70764
70925
  SQSClient2.Default(config2?.sqs),
70765
70926
  SSMClient2.Default(config2?.ssm)
70766
70927
  );
@@ -72271,46 +72432,68 @@ var ensureDistribution = (input) => Effect_exports.gen(function* () {
72271
72432
  };
72272
72433
  }
72273
72434
  yield* Effect_exports.logDebug("Creating CloudFront distribution (first deploy may take 5-15 minutes)...");
72435
+ const distConfig = {
72436
+ CallerReference: `${project2}-${stage}-${handlerName}-${Date.now()}`,
72437
+ Comment: comment,
72438
+ Origins: {
72439
+ Quantity: 1,
72440
+ Items: [
72441
+ {
72442
+ Id: originId,
72443
+ DomainName: originDomain,
72444
+ OriginAccessControlId: oacId,
72445
+ S3OriginConfig: { OriginAccessIdentity: "" }
72446
+ }
72447
+ ]
72448
+ },
72449
+ DefaultCacheBehavior: {
72450
+ TargetOriginId: originId,
72451
+ ViewerProtocolPolicy: "redirect-to-https",
72452
+ AllowedMethods: {
72453
+ Quantity: 2,
72454
+ Items: ["GET", "HEAD"],
72455
+ CachedMethods: { Quantity: 2, Items: ["GET", "HEAD"] }
72456
+ },
72457
+ Compress: true,
72458
+ CachePolicyId: CACHING_OPTIMIZED_POLICY_ID,
72459
+ FunctionAssociations: functionAssociations,
72460
+ LambdaFunctionAssociations: lambdaFunctionAssociations
72461
+ },
72462
+ Aliases: aliasesConfig,
72463
+ ...viewerCertificate ? { ViewerCertificate: viewerCertificate } : {},
72464
+ DefaultRootObject: index,
72465
+ Enabled: true,
72466
+ CustomErrorResponses: customErrorResponses,
72467
+ PriceClass: "PriceClass_All",
72468
+ HttpVersion: "http2and3"
72469
+ };
72274
72470
  const createResult = yield* cloudfront_exports.make("create_distribution_with_tags", {
72275
72471
  DistributionConfigWithTags: {
72276
- DistributionConfig: {
72277
- CallerReference: `${project2}-${stage}-${handlerName}-${Date.now()}`,
72278
- Comment: comment,
72279
- Origins: {
72280
- Quantity: 1,
72281
- Items: [
72282
- {
72283
- Id: originId,
72284
- DomainName: originDomain,
72285
- OriginAccessControlId: oacId,
72286
- S3OriginConfig: { OriginAccessIdentity: "" }
72287
- }
72288
- ]
72289
- },
72290
- DefaultCacheBehavior: {
72291
- TargetOriginId: originId,
72292
- ViewerProtocolPolicy: "redirect-to-https",
72293
- AllowedMethods: {
72294
- Quantity: 2,
72295
- Items: ["GET", "HEAD"],
72296
- CachedMethods: { Quantity: 2, Items: ["GET", "HEAD"] }
72297
- },
72298
- Compress: true,
72299
- CachePolicyId: CACHING_OPTIMIZED_POLICY_ID,
72300
- FunctionAssociations: functionAssociations,
72301
- LambdaFunctionAssociations: lambdaFunctionAssociations
72302
- },
72303
- Aliases: aliasesConfig,
72304
- ...viewerCertificate ? { ViewerCertificate: viewerCertificate } : {},
72305
- DefaultRootObject: index,
72306
- Enabled: true,
72307
- CustomErrorResponses: customErrorResponses,
72308
- PriceClass: "PriceClass_All",
72309
- HttpVersion: "http2and3"
72310
- },
72472
+ DistributionConfig: distConfig,
72311
72473
  Tags: { Items: toAwsTagList(tags2) }
72312
72474
  }
72313
- });
72475
+ }).pipe(
72476
+ // If CNAME is claimed by another distribution (e.g. DNS still points elsewhere),
72477
+ // retry without aliases so the deploy doesn't fail
72478
+ Effect_exports.catchIf(
72479
+ (e) => e._tag === "CloudFrontError" && e.is("CNAMEAlreadyExists"),
72480
+ () => Effect_exports.gen(function* () {
72481
+ const cnameList = aliases?.join(", ") ?? "";
72482
+ yield* Effect_exports.logWarning(
72483
+ `Domain ${cnameList} is still associated with another CloudFront distribution (DNS points elsewhere). Creating distribution without custom domain. Update your DNS records and redeploy to attach the domain.`
72484
+ );
72485
+ return yield* cloudfront_exports.make("create_distribution_with_tags", {
72486
+ DistributionConfigWithTags: {
72487
+ DistributionConfig: {
72488
+ ...distConfig,
72489
+ Aliases: { Quantity: 0, Items: [] }
72490
+ },
72491
+ Tags: { Items: toAwsTagList(tags2) }
72492
+ }
72493
+ });
72494
+ })
72495
+ )
72496
+ );
72314
72497
  const dist = createResult.Distribution;
72315
72498
  return {
72316
72499
  distributionId: dist.Id,
@@ -72320,24 +72503,30 @@ var ensureDistribution = (input) => Effect_exports.gen(function* () {
72320
72503
  });
72321
72504
  var findDistributionByTags = (project2, stage, handlerName) => Effect_exports.gen(function* () {
72322
72505
  const resources = yield* getResourcesByTags(project2, stage);
72323
- const dist = resources.find((r) => {
72506
+ const candidates = resources.filter((r) => {
72324
72507
  const isDistribution = r.ResourceARN?.includes(":distribution/");
72325
72508
  const handlerTag = r.Tags?.find((t) => t.Key === "effortless:handler");
72326
72509
  return isDistribution && handlerTag?.Value === handlerName;
72327
72510
  });
72328
- if (!dist?.ResourceARN) return void 0;
72329
- const distributionId = dist.ResourceARN.split("/").pop();
72330
- const result = yield* cloudfront_exports.make("get_distribution", { Id: distributionId }).pipe(
72331
- Effect_exports.catchIf(
72332
- (e) => e._tag === "CloudFrontError" && e.is("NoSuchDistribution"),
72333
- () => Effect_exports.succeed(void 0)
72334
- )
72335
- );
72336
- if (!result) return void 0;
72337
- return {
72338
- Id: distributionId,
72339
- DomainName: result.Distribution.DomainName
72340
- };
72511
+ for (const dist of candidates) {
72512
+ const distributionId = dist.ResourceARN.split("/").pop();
72513
+ const result = yield* cloudfront_exports.make("get_distribution", { Id: distributionId }).pipe(
72514
+ Effect_exports.catchIf(
72515
+ (e) => e._tag === "CloudFrontError" && e.is("NoSuchDistribution"),
72516
+ () => {
72517
+ Effect_exports.logDebug(`Distribution ${distributionId} no longer exists (stale tag), skipping`);
72518
+ return Effect_exports.succeed(void 0);
72519
+ }
72520
+ )
72521
+ );
72522
+ if (result) {
72523
+ return {
72524
+ Id: distributionId,
72525
+ DomainName: result.Distribution.DomainName
72526
+ };
72527
+ }
72528
+ }
72529
+ return void 0;
72341
72530
  });
72342
72531
  var invalidateDistribution = (distributionId) => Effect_exports.gen(function* () {
72343
72532
  yield* Effect_exports.logDebug(`Invalidating CloudFront distribution: ${distributionId}`);
@@ -72559,6 +72748,61 @@ var deleteFifoQueue = (queueName) => Effect_exports.gen(function* () {
72559
72748
  }
72560
72749
  });
72561
72750
 
72751
+ // src/aws/ses.ts
72752
+ var ensureSesIdentity = (input) => Effect_exports.gen(function* () {
72753
+ const { domain, tags: tags2 } = input;
72754
+ const existing = yield* sesv2_exports.make("get_email_identity", {
72755
+ EmailIdentity: domain
72756
+ }).pipe(
72757
+ Effect_exports.catchIf(
72758
+ (error4) => error4 instanceof sesv2_exports.SESv2Error && error4.is("NotFoundException"),
72759
+ () => Effect_exports.succeed(void 0)
72760
+ )
72761
+ );
72762
+ if (!existing) {
72763
+ yield* Effect_exports.logDebug(`Creating SES email identity for ${domain}...`);
72764
+ yield* sesv2_exports.make("create_email_identity", {
72765
+ EmailIdentity: domain,
72766
+ DkimSigningAttributes: {
72767
+ NextSigningKeyLength: "RSA_2048_BIT"
72768
+ },
72769
+ ...tags2 ? { Tags: Object.entries(tags2).map(([Key2, Value]) => ({ Key: Key2, Value })) } : {}
72770
+ });
72771
+ const created = yield* sesv2_exports.make("get_email_identity", {
72772
+ EmailIdentity: domain
72773
+ });
72774
+ const dkimRecords2 = (created.DkimAttributes?.Tokens ?? []).map((token) => ({
72775
+ name: `${token}._domainkey.${domain}`,
72776
+ value: `${token}.dkim.amazonses.com`
72777
+ }));
72778
+ return {
72779
+ domain,
72780
+ verified: false,
72781
+ dkimRecords: dkimRecords2
72782
+ };
72783
+ }
72784
+ const verified = existing.DkimAttributes?.Status === "SUCCESS";
72785
+ const dkimRecords = (existing.DkimAttributes?.Tokens ?? []).map((token) => ({
72786
+ name: `${token}._domainkey.${domain}`,
72787
+ value: `${token}.dkim.amazonses.com`
72788
+ }));
72789
+ return {
72790
+ domain,
72791
+ verified,
72792
+ dkimRecords
72793
+ };
72794
+ });
72795
+ var deleteSesIdentity = (domain) => Effect_exports.gen(function* () {
72796
+ yield* sesv2_exports.make("delete_email_identity", {
72797
+ EmailIdentity: domain
72798
+ }).pipe(
72799
+ Effect_exports.catchIf(
72800
+ (error4) => error4 instanceof sesv2_exports.SESv2Error && error4.is("NotFoundException"),
72801
+ () => Effect_exports.void
72802
+ )
72803
+ );
72804
+ });
72805
+
72562
72806
  // src/aws/index.ts
72563
72807
  import { unmarshall, marshall } from "@aws-sdk/util-dynamodb";
72564
72808
 
@@ -72716,6 +72960,12 @@ var handlerRegistry = {
72716
72960
  handlerProps: ["onObjectCreated", "onObjectRemoved"],
72717
72961
  wrapperFn: "wrapBucket",
72718
72962
  wrapperPath: "~/runtime/wrap-bucket"
72963
+ },
72964
+ mailer: {
72965
+ defineFn: "defineMailer",
72966
+ handlerProps: [],
72967
+ wrapperFn: "",
72968
+ wrapperPath: ""
72719
72969
  }
72720
72970
  };
72721
72971
  var extractHandlerConfigs = (source, type2) => {
@@ -72785,6 +73035,7 @@ var extractAppConfigs = (source) => extractHandlerConfigs(source, "app");
72785
73035
  var extractStaticSiteConfigs = (source) => extractHandlerConfigs(source, "staticSite");
72786
73036
  var extractFifoQueueConfigs = (source) => extractHandlerConfigs(source, "fifoQueue");
72787
73037
  var extractBucketConfigs = (source) => extractHandlerConfigs(source, "bucket");
73038
+ var extractMailerConfigs = (source) => extractHandlerConfigs(source, "mailer");
72788
73039
  var runtimeDir = path6.resolve(path6.dirname(fileURLToPath2(import.meta.url)), "../../dist/runtime");
72789
73040
  var bundle = (input) => Effect_exports.gen(function* () {
72790
73041
  const exportName = input.exportName ?? "default";
@@ -72862,6 +73113,7 @@ var discoverHandlers = (files) => {
72862
73113
  const staticSiteHandlers = [];
72863
73114
  const fifoQueueHandlers = [];
72864
73115
  const bucketHandlers = [];
73116
+ const mailerHandlers = [];
72865
73117
  for (const file7 of files) {
72866
73118
  if (!fsSync2.statSync(file7).isFile()) continue;
72867
73119
  const source = fsSync2.readFileSync(file7, "utf-8");
@@ -72871,14 +73123,16 @@ var discoverHandlers = (files) => {
72871
73123
  const staticSite = extractStaticSiteConfigs(source);
72872
73124
  const fifoQueue = extractFifoQueueConfigs(source);
72873
73125
  const bucket = extractBucketConfigs(source);
73126
+ const mailer = extractMailerConfigs(source);
72874
73127
  if (http.length > 0) httpHandlers.push({ file: file7, exports: http });
72875
73128
  if (table3.length > 0) tableHandlers.push({ file: file7, exports: table3 });
72876
73129
  if (app.length > 0) appHandlers.push({ file: file7, exports: app });
72877
73130
  if (staticSite.length > 0) staticSiteHandlers.push({ file: file7, exports: staticSite });
72878
73131
  if (fifoQueue.length > 0) fifoQueueHandlers.push({ file: file7, exports: fifoQueue });
72879
73132
  if (bucket.length > 0) bucketHandlers.push({ file: file7, exports: bucket });
73133
+ if (mailer.length > 0) mailerHandlers.push({ file: file7, exports: mailer });
72880
73134
  }
72881
- return { httpHandlers, tableHandlers, appHandlers, staticSiteHandlers, fifoQueueHandlers, bucketHandlers };
73135
+ return { httpHandlers, tableHandlers, appHandlers, staticSiteHandlers, fifoQueueHandlers, bucketHandlers, mailerHandlers };
72882
73136
  };
72883
73137
 
72884
73138
  // src/deploy/resolve-config.ts
@@ -73576,6 +73830,39 @@ var deployBucketFunction = ({ input, fn: fn2, layerArn, external, depsEnv, depsP
73576
73830
  };
73577
73831
  });
73578
73832
 
73833
+ // src/deploy/deploy-mailer.ts
73834
+ var deployMailer = ({ project: project2, stage, region, fn: fn2 }) => Effect_exports.gen(function* () {
73835
+ const { exportName, config: config2 } = fn2;
73836
+ const handlerName = exportName;
73837
+ const resolvedStage = resolveStage(stage);
73838
+ const tagCtx = {
73839
+ project: project2,
73840
+ stage: resolvedStage,
73841
+ handler: handlerName
73842
+ };
73843
+ yield* Effect_exports.logDebug(`Ensuring SES identity for ${config2.domain}...`);
73844
+ const { domain, verified, dkimRecords } = yield* ensureSesIdentity({
73845
+ domain: config2.domain,
73846
+ tags: makeTags(tagCtx, "ses")
73847
+ });
73848
+ if (!verified && dkimRecords.length > 0) {
73849
+ yield* Console_exports.log(`
73850
+ ${c.yellow("\u26A0")} Domain ${c.cyan(domain)} is not verified. Add these DNS records:
73851
+ `);
73852
+ for (const record2 of dkimRecords) {
73853
+ yield* Console_exports.log(` ${c.dim("CNAME")} ${record2.name}`);
73854
+ yield* Console_exports.log(` ${c.dim("\u2192")} ${record2.value}
73855
+ `);
73856
+ }
73857
+ }
73858
+ return {
73859
+ exportName,
73860
+ domain,
73861
+ verified,
73862
+ dkimRecords
73863
+ };
73864
+ });
73865
+
73579
73866
  // src/deploy/deploy.ts
73580
73867
  var statusLabel = (status2) => {
73581
73868
  switch (status2) {
@@ -73680,6 +73967,19 @@ var BUCKET_CLIENT_PERMISSIONS = [
73680
73967
  "s3:DeleteObject",
73681
73968
  "s3:ListBucket"
73682
73969
  ];
73970
+ var SES_PERMISSIONS = [
73971
+ "ses:SendEmail",
73972
+ "ses:SendRawEmail"
73973
+ ];
73974
+ var buildMailerDomainMap = (mailerHandlers) => {
73975
+ const map37 = /* @__PURE__ */ new Map();
73976
+ for (const { exports } of mailerHandlers) {
73977
+ for (const fn2 of exports) {
73978
+ map37.set(fn2.exportName, fn2.config.domain);
73979
+ }
73980
+ }
73981
+ return map37;
73982
+ };
73683
73983
  var buildTableNameMap = (tableHandlers, project2, stage) => {
73684
73984
  const map37 = /* @__PURE__ */ new Map();
73685
73985
  for (const { exports } of tableHandlers) {
@@ -73700,11 +74000,12 @@ var buildBucketNameMap = (bucketHandlers, project2, stage) => {
73700
74000
  }
73701
74001
  return map37;
73702
74002
  };
73703
- var resolveDeps = (depsKeys, tableNameMap, bucketNameMap) => {
74003
+ var resolveDeps = (depsKeys, tableNameMap, bucketNameMap, mailerDomainMap) => {
73704
74004
  if (depsKeys.length === 0) return void 0;
73705
74005
  const depsEnv = {};
73706
74006
  let hasTable = false;
73707
74007
  let hasBucket = false;
74008
+ let hasMailer = false;
73708
74009
  for (const key of depsKeys) {
73709
74010
  const tableName = tableNameMap.get(key);
73710
74011
  if (tableName) {
@@ -73716,12 +74017,19 @@ var resolveDeps = (depsKeys, tableNameMap, bucketNameMap) => {
73716
74017
  if (bucketName) {
73717
74018
  depsEnv[`EFF_DEP_${key}`] = `bucket:${bucketName}`;
73718
74019
  hasBucket = true;
74020
+ continue;
74021
+ }
74022
+ const mailerDomain = mailerDomainMap.get(key);
74023
+ if (mailerDomain) {
74024
+ depsEnv[`EFF_DEP_${key}`] = `mailer:${mailerDomain}`;
74025
+ hasMailer = true;
73719
74026
  }
73720
74027
  }
73721
74028
  if (Object.keys(depsEnv).length === 0) return void 0;
73722
74029
  const permissions = [];
73723
74030
  if (hasTable) permissions.push(...TABLE_CLIENT_PERMISSIONS);
73724
74031
  if (hasBucket) permissions.push(...BUCKET_CLIENT_PERMISSIONS);
74032
+ if (hasMailer) permissions.push(...SES_PERMISSIONS);
73725
74033
  return { depsEnv, depsPermissions: permissions };
73726
74034
  };
73727
74035
  var SSM_PERMISSIONS = [
@@ -73752,7 +74060,7 @@ var makeDeployInput = (ctx, file7) => ({
73752
74060
  });
73753
74061
  var resolveHandlerEnv = (depsKeys, paramEntries, ctx) => {
73754
74062
  const resolved = mergeResolved(
73755
- resolveDeps(depsKeys, ctx.tableNameMap, ctx.bucketNameMap),
74063
+ resolveDeps(depsKeys, ctx.tableNameMap, ctx.bucketNameMap, ctx.mailerDomainMap),
73756
74064
  resolveParams(paramEntries, ctx.input.project, ctx.stage)
73757
74065
  );
73758
74066
  return {
@@ -73936,6 +74244,27 @@ var buildBucketTasks = (ctx, handlers, results) => {
73936
74244
  }
73937
74245
  return tasks;
73938
74246
  };
74247
+ var buildMailerTasks = (ctx, handlers, results) => {
74248
+ const tasks = [];
74249
+ const { region } = ctx.input;
74250
+ for (const { exports } of handlers) {
74251
+ for (const fn2 of exports) {
74252
+ tasks.push(
74253
+ Effect_exports.gen(function* () {
74254
+ const result = yield* deployMailer({
74255
+ project: ctx.input.project,
74256
+ stage: ctx.input.stage,
74257
+ region,
74258
+ fn: fn2
74259
+ }).pipe(Effect_exports.provide(clients_exports.makeClients({ sesv2: { region } })));
74260
+ results.push(result);
74261
+ yield* ctx.logComplete(fn2.exportName, "mailer", result.verified ? "unchanged" : "created");
74262
+ })
74263
+ );
74264
+ }
74265
+ }
74266
+ return tasks;
74267
+ };
73939
74268
  var deployProject = (input) => Effect_exports.gen(function* () {
73940
74269
  const stage = resolveStage(input.stage);
73941
74270
  const files = findHandlerFiles(input.patterns, input.projectDir);
@@ -73943,14 +74272,15 @@ var deployProject = (input) => Effect_exports.gen(function* () {
73943
74272
  return yield* Effect_exports.fail(new Error(`No files match patterns: ${input.patterns.join(", ")}`));
73944
74273
  }
73945
74274
  yield* Effect_exports.logDebug(`Found ${files.length} file(s) matching patterns`);
73946
- const { httpHandlers, tableHandlers, appHandlers, staticSiteHandlers, fifoQueueHandlers, bucketHandlers } = discoverHandlers(files);
74275
+ const { httpHandlers, tableHandlers, appHandlers, staticSiteHandlers, fifoQueueHandlers, bucketHandlers, mailerHandlers } = discoverHandlers(files);
73947
74276
  const totalHttpHandlers = httpHandlers.reduce((acc, h) => acc + h.exports.length, 0);
73948
74277
  const totalTableHandlers = tableHandlers.reduce((acc, h) => acc + h.exports.length, 0);
73949
74278
  const totalAppHandlers = appHandlers.reduce((acc, h) => acc + h.exports.length, 0);
73950
74279
  const totalStaticSiteHandlers = staticSiteHandlers.reduce((acc, h) => acc + h.exports.length, 0);
73951
74280
  const totalFifoQueueHandlers = fifoQueueHandlers.reduce((acc, h) => acc + h.exports.length, 0);
73952
74281
  const totalBucketHandlers = bucketHandlers.reduce((acc, h) => acc + h.exports.length, 0);
73953
- const totalAllHandlers = totalHttpHandlers + totalTableHandlers + totalAppHandlers + totalStaticSiteHandlers + totalFifoQueueHandlers + totalBucketHandlers;
74282
+ const totalMailerHandlers = mailerHandlers.reduce((acc, h) => acc + h.exports.length, 0);
74283
+ const totalAllHandlers = totalHttpHandlers + totalTableHandlers + totalAppHandlers + totalStaticSiteHandlers + totalFifoQueueHandlers + totalBucketHandlers + totalMailerHandlers;
73954
74284
  if (totalAllHandlers === 0) {
73955
74285
  return yield* Effect_exports.fail(new Error("No handlers found in matched files"));
73956
74286
  }
@@ -73961,9 +74291,10 @@ var deployProject = (input) => Effect_exports.gen(function* () {
73961
74291
  if (totalStaticSiteHandlers > 0) parts2.push(`${totalStaticSiteHandlers} site`);
73962
74292
  if (totalFifoQueueHandlers > 0) parts2.push(`${totalFifoQueueHandlers} queue`);
73963
74293
  if (totalBucketHandlers > 0) parts2.push(`${totalBucketHandlers} bucket`);
74294
+ if (totalMailerHandlers > 0) parts2.push(`${totalMailerHandlers} mailer`);
73964
74295
  yield* Console_exports.log(`
73965
74296
  ${c.dim("Handlers:")} ${parts2.join(", ")}`);
73966
- const discovered = { httpHandlers, tableHandlers, appHandlers, staticSiteHandlers, fifoQueueHandlers, bucketHandlers };
74297
+ const discovered = { httpHandlers, tableHandlers, appHandlers, staticSiteHandlers, fifoQueueHandlers, bucketHandlers, mailerHandlers };
73967
74298
  const requiredParams = collectRequiredParams(discovered, input.project, stage);
73968
74299
  if (requiredParams.length > 0) {
73969
74300
  const { missing } = yield* checkMissingParams(requiredParams).pipe(
@@ -73982,6 +74313,7 @@ var deployProject = (input) => Effect_exports.gen(function* () {
73982
74313
  }
73983
74314
  const tableNameMap = buildTableNameMap(tableHandlers, input.project, stage);
73984
74315
  const bucketNameMap = buildBucketNameMap(bucketHandlers, input.project, stage);
74316
+ const mailerDomainMap = buildMailerDomainMap(mailerHandlers);
73985
74317
  const { layerArn, layerVersion, layerStatus, external } = yield* prepareLayer({
73986
74318
  project: input.project,
73987
74319
  stage,
@@ -74030,6 +74362,8 @@ var deployProject = (input) => Effect_exports.gen(function* () {
74030
74362
  for (const fn2 of exports) manifest.push({ name: fn2.exportName, type: "queue" });
74031
74363
  for (const { exports } of bucketHandlers)
74032
74364
  for (const fn2 of exports) manifest.push({ name: fn2.exportName, type: "bucket" });
74365
+ for (const { exports } of mailerHandlers)
74366
+ for (const fn2 of exports) manifest.push({ name: fn2.exportName, type: "mailer" });
74033
74367
  manifest.sort((a, b) => a.name.localeCompare(b.name));
74034
74368
  const logComplete = createLiveProgress(manifest);
74035
74369
  const ctx = {
@@ -74039,6 +74373,7 @@ var deployProject = (input) => Effect_exports.gen(function* () {
74039
74373
  stage,
74040
74374
  tableNameMap,
74041
74375
  bucketNameMap,
74376
+ mailerDomainMap,
74042
74377
  logComplete
74043
74378
  };
74044
74379
  const httpResults = [];
@@ -74047,13 +74382,15 @@ var deployProject = (input) => Effect_exports.gen(function* () {
74047
74382
  const staticSiteResults = [];
74048
74383
  const fifoQueueResults = [];
74049
74384
  const bucketResults = [];
74385
+ const mailerResults = [];
74050
74386
  const tasks = [
74051
74387
  ...apiId ? buildHttpTasks(ctx, httpHandlers, apiId, httpResults) : [],
74052
74388
  ...buildTableTasks(ctx, tableHandlers, tableResults),
74053
74389
  ...apiId ? buildAppTasks(ctx, appHandlers, apiId, appResults) : [],
74054
74390
  ...buildStaticSiteTasks(ctx, staticSiteHandlers, staticSiteResults),
74055
74391
  ...buildFifoQueueTasks(ctx, fifoQueueHandlers, fifoQueueResults),
74056
- ...buildBucketTasks(ctx, bucketHandlers, bucketResults)
74392
+ ...buildBucketTasks(ctx, bucketHandlers, bucketResults),
74393
+ ...buildMailerTasks(ctx, mailerHandlers, mailerResults)
74057
74394
  ];
74058
74395
  yield* Effect_exports.all(tasks, { concurrency: DEPLOY_CONCURRENCY, discard: true });
74059
74396
  if (staticSiteResults.length > 0) {
@@ -74092,7 +74429,7 @@ var deployProject = (input) => Effect_exports.gen(function* () {
74092
74429
  if (apiUrl) {
74093
74430
  yield* Effect_exports.logDebug(`Deployment complete! API: ${apiUrl}`);
74094
74431
  }
74095
- return { apiId, apiUrl, httpResults, tableResults, appResults, staticSiteResults, fifoQueueResults, bucketResults };
74432
+ return { apiId, apiUrl, httpResults, tableResults, appResults, staticSiteResults, fifoQueueResults, bucketResults, mailerResults };
74096
74433
  });
74097
74434
 
74098
74435
  // src/cli/config.ts
@@ -74690,6 +75027,9 @@ var extractResourceName = (arn, type2) => {
74690
75027
  case "cloudfront-distribution": {
74691
75028
  return arn.split("/").pop() ?? arn;
74692
75029
  }
75030
+ case "ses": {
75031
+ return arn.split("/").pop() ?? arn;
75032
+ }
74693
75033
  default:
74694
75034
  return arn;
74695
75035
  }
@@ -74730,12 +75070,15 @@ var deleteResource = (resource) => Effect_exports.gen(function* () {
74730
75070
  case "sqs":
74731
75071
  yield* deleteFifoQueue(name);
74732
75072
  break;
75073
+ case "ses":
75074
+ yield* deleteSesIdentity(name);
75075
+ break;
74733
75076
  default:
74734
75077
  yield* Effect_exports.logWarning(`Unknown resource type: ${resource.type}, skipping ${resource.arn}`);
74735
75078
  }
74736
75079
  });
74737
75080
  var deleteResources = (resources) => Effect_exports.gen(function* () {
74738
- const orderedTypes = ["lambda", "api-gateway", "cloudfront-distribution", "sqs", "dynamodb", "s3-bucket", "lambda-layer", "iam-role"];
75081
+ const orderedTypes = ["lambda", "api-gateway", "cloudfront-distribution", "sqs", "ses", "dynamodb", "s3-bucket", "lambda-layer", "iam-role"];
74739
75082
  const iamRolesToDelete = /* @__PURE__ */ new Set();
74740
75083
  for (const type2 of orderedTypes) {
74741
75084
  const resourcesOfType = resources.filter((r) => r.type === type2);