alchemy 2.0.0-beta.51 → 2.0.0-beta.53
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/bin/exec.js +24 -30
- package/bin/exec.js.map +1 -1
- package/lib/AWS/ACM/Certificate.d.ts +1 -1
- package/lib/AWS/ApiGateway/Account.d.ts +1 -1
- package/lib/AWS/ApiGateway/ApiKey.d.ts +2 -2
- package/lib/AWS/ApiGateway/ApiKey.d.ts.map +1 -1
- package/lib/AWS/ApiGateway/ApiKey.js +3 -3
- package/lib/AWS/ApiGateway/ApiKey.js.map +1 -1
- package/lib/AWS/ApiGateway/Authorizer.d.ts +1 -1
- package/lib/AWS/ApiGateway/BasePathMapping.d.ts +1 -1
- package/lib/AWS/ApiGateway/Deployment.d.ts +1 -1
- package/lib/AWS/ApiGateway/DomainName.d.ts +1 -1
- package/lib/AWS/ApiGateway/GatewayResource.d.ts +1 -1
- package/lib/AWS/ApiGateway/GatewayResponse.d.ts +1 -1
- package/lib/AWS/ApiGateway/Method.d.ts +1 -1
- package/lib/AWS/ApiGateway/RestApi.d.ts +2 -2
- package/lib/AWS/ApiGateway/RestApi.d.ts.map +1 -1
- package/lib/AWS/ApiGateway/RestApi.js +4 -4
- package/lib/AWS/ApiGateway/RestApi.js.map +1 -1
- package/lib/AWS/ApiGateway/Stage.d.ts +2 -2
- package/lib/AWS/ApiGateway/Stage.d.ts.map +1 -1
- package/lib/AWS/ApiGateway/Stage.js +3 -3
- package/lib/AWS/ApiGateway/Stage.js.map +1 -1
- package/lib/AWS/ApiGateway/UsagePlan.d.ts +2 -2
- package/lib/AWS/ApiGateway/UsagePlan.d.ts.map +1 -1
- package/lib/AWS/ApiGateway/UsagePlan.js +3 -3
- package/lib/AWS/ApiGateway/UsagePlan.js.map +1 -1
- package/lib/AWS/ApiGateway/UsagePlanKey.d.ts +1 -1
- package/lib/AWS/ApiGateway/VpcLink.d.ts +2 -2
- package/lib/AWS/ApiGateway/VpcLink.d.ts.map +1 -1
- package/lib/AWS/ApiGateway/VpcLink.js +3 -3
- package/lib/AWS/ApiGateway/VpcLink.js.map +1 -1
- package/lib/AWS/ApiGateway/common.d.ts +1 -1
- package/lib/AWS/Assets.d.ts +21 -12
- package/lib/AWS/Assets.d.ts.map +1 -1
- package/lib/AWS/Assets.js +95 -70
- package/lib/AWS/Assets.js.map +1 -1
- package/lib/AWS/AuthProvider.d.ts +12 -6
- package/lib/AWS/AuthProvider.d.ts.map +1 -1
- package/lib/AWS/AuthProvider.js +120 -75
- package/lib/AWS/AuthProvider.js.map +1 -1
- package/lib/AWS/AutoScaling/AutoScalingGroup.d.ts +1 -1
- package/lib/AWS/AutoScaling/LaunchTemplate.d.ts +1 -2
- package/lib/AWS/AutoScaling/LaunchTemplate.d.ts.map +1 -1
- package/lib/AWS/AutoScaling/LaunchTemplate.js +21 -27
- package/lib/AWS/AutoScaling/LaunchTemplate.js.map +1 -1
- package/lib/AWS/AutoScaling/ScalingPolicy.d.ts +1 -1
- package/lib/AWS/Bootstrap.d.ts +2 -14
- package/lib/AWS/Bootstrap.d.ts.map +1 -1
- package/lib/AWS/Bootstrap.js +46 -133
- package/lib/AWS/Bootstrap.js.map +1 -1
- package/lib/AWS/CloudFront/CachePolicy.d.ts +1 -1
- package/lib/AWS/CloudFront/Distribution.d.ts +1 -1
- package/lib/AWS/CloudFront/Function.d.ts +1 -1
- package/lib/AWS/CloudFront/Invalidation.d.ts +1 -1
- package/lib/AWS/CloudFront/KeyGroup.d.ts +1 -1
- package/lib/AWS/CloudFront/KeyValueStore.d.ts +1 -1
- package/lib/AWS/CloudFront/OriginAccessControl.d.ts +1 -1
- package/lib/AWS/CloudFront/OriginRequestPolicy.d.ts +1 -1
- package/lib/AWS/CloudFront/PublicKey.d.ts +1 -1
- package/lib/AWS/CloudFront/ResponseHeadersPolicy.d.ts +1 -1
- package/lib/AWS/CloudFront/common.d.ts +1 -1
- package/lib/AWS/CloudWatch/Alarm.d.ts +2 -3
- package/lib/AWS/CloudWatch/Alarm.d.ts.map +1 -1
- package/lib/AWS/CloudWatch/Alarm.js +3 -6
- package/lib/AWS/CloudWatch/Alarm.js.map +1 -1
- package/lib/AWS/CloudWatch/AlarmMuteRule.d.ts +2 -3
- package/lib/AWS/CloudWatch/AlarmMuteRule.d.ts.map +1 -1
- package/lib/AWS/CloudWatch/AlarmMuteRule.js +2 -5
- package/lib/AWS/CloudWatch/AlarmMuteRule.js.map +1 -1
- package/lib/AWS/CloudWatch/AnomalyDetector.d.ts +1 -1
- package/lib/AWS/CloudWatch/CompositeAlarm.d.ts +2 -3
- package/lib/AWS/CloudWatch/CompositeAlarm.d.ts.map +1 -1
- package/lib/AWS/CloudWatch/CompositeAlarm.js +3 -6
- package/lib/AWS/CloudWatch/CompositeAlarm.js.map +1 -1
- package/lib/AWS/CloudWatch/Dashboard.d.ts +2 -2
- package/lib/AWS/CloudWatch/Dashboard.d.ts.map +1 -1
- package/lib/AWS/CloudWatch/Dashboard.js +3 -4
- package/lib/AWS/CloudWatch/Dashboard.js.map +1 -1
- package/lib/AWS/CloudWatch/DescribeAlarmContributors.d.ts +1 -1
- package/lib/AWS/CloudWatch/DescribeAlarmHistory.d.ts +1 -1
- package/lib/AWS/CloudWatch/DescribeAlarms.d.ts +1 -1
- package/lib/AWS/CloudWatch/DescribeAlarmsForMetric.d.ts +1 -1
- package/lib/AWS/CloudWatch/DescribeAnomalyDetectors.d.ts +1 -1
- package/lib/AWS/CloudWatch/DescribeInsightRules.d.ts +1 -1
- package/lib/AWS/CloudWatch/DisableAlarmActions.d.ts +1 -1
- package/lib/AWS/CloudWatch/DisableInsightRules.d.ts +1 -1
- package/lib/AWS/CloudWatch/EnableAlarmActions.d.ts +1 -1
- package/lib/AWS/CloudWatch/GetAlarmMuteRule.d.ts +1 -1
- package/lib/AWS/CloudWatch/GetDashboard.d.ts +1 -1
- package/lib/AWS/CloudWatch/GetInsightRuleReport.d.ts +1 -1
- package/lib/AWS/CloudWatch/GetMetricData.d.ts +1 -1
- package/lib/AWS/CloudWatch/GetMetricStatistics.d.ts +1 -1
- package/lib/AWS/CloudWatch/GetMetricStream.d.ts +1 -1
- package/lib/AWS/CloudWatch/GetMetricWidgetImage.d.ts +1 -1
- package/lib/AWS/CloudWatch/InsightRule.d.ts +2 -3
- package/lib/AWS/CloudWatch/InsightRule.d.ts.map +1 -1
- package/lib/AWS/CloudWatch/InsightRule.js +4 -7
- package/lib/AWS/CloudWatch/InsightRule.js.map +1 -1
- package/lib/AWS/CloudWatch/ListAlarmMuteRules.d.ts +1 -1
- package/lib/AWS/CloudWatch/ListDashboards.d.ts +1 -1
- package/lib/AWS/CloudWatch/ListManagedInsightRules.d.ts +1 -1
- package/lib/AWS/CloudWatch/ListMetricStreams.d.ts +1 -1
- package/lib/AWS/CloudWatch/ListMetrics.d.ts +1 -1
- package/lib/AWS/CloudWatch/ListTagsForResource.d.ts +1 -1
- package/lib/AWS/CloudWatch/MetricStream.d.ts +2 -3
- package/lib/AWS/CloudWatch/MetricStream.d.ts.map +1 -1
- package/lib/AWS/CloudWatch/MetricStream.js +3 -6
- package/lib/AWS/CloudWatch/MetricStream.js.map +1 -1
- package/lib/AWS/CloudWatch/PutMetricData.d.ts +1 -1
- package/lib/AWS/CloudWatch/SetAlarmState.d.ts +1 -1
- package/lib/AWS/CloudWatch/common.d.ts +2 -2
- package/lib/AWS/Credentials.d.ts.map +1 -1
- package/lib/AWS/Credentials.js +4 -1
- package/lib/AWS/Credentials.js.map +1 -1
- package/lib/AWS/DynamoDB/BatchExecuteStatement.d.ts +1 -1
- package/lib/AWS/DynamoDB/BatchGetItem.d.ts +1 -1
- package/lib/AWS/DynamoDB/BatchWriteItem.d.ts +1 -1
- package/lib/AWS/DynamoDB/DeleteItem.d.ts +1 -1
- package/lib/AWS/DynamoDB/DescribeTable.d.ts +1 -1
- package/lib/AWS/DynamoDB/DescribeTimeToLive.d.ts +1 -1
- package/lib/AWS/DynamoDB/ExecuteStatement.d.ts +1 -1
- package/lib/AWS/DynamoDB/ExecuteTransaction.d.ts +1 -1
- package/lib/AWS/DynamoDB/GetItem.d.ts +1 -1
- package/lib/AWS/DynamoDB/ListTables.d.ts +1 -1
- package/lib/AWS/DynamoDB/ListTagsOfResource.d.ts +1 -1
- package/lib/AWS/DynamoDB/PutItem.d.ts +1 -1
- package/lib/AWS/DynamoDB/Query.d.ts +1 -1
- package/lib/AWS/DynamoDB/RestoreTableToPointInTime.d.ts +1 -1
- package/lib/AWS/DynamoDB/Scan.d.ts +1 -1
- package/lib/AWS/DynamoDB/Table.d.ts +1 -1
- package/lib/AWS/DynamoDB/TransactGetItems.d.ts +1 -1
- package/lib/AWS/DynamoDB/TransactWriteItems.d.ts +1 -1
- package/lib/AWS/DynamoDB/UpdateItem.d.ts +1 -1
- package/lib/AWS/DynamoDB/UpdateTimeToLive.d.ts +1 -1
- package/lib/AWS/EC2/EIP.d.ts +2 -3
- package/lib/AWS/EC2/EIP.d.ts.map +1 -1
- package/lib/AWS/EC2/EIP.js +2 -3
- package/lib/AWS/EC2/EIP.js.map +1 -1
- package/lib/AWS/EC2/EgressOnlyInternetGateway.d.ts +2 -3
- package/lib/AWS/EC2/EgressOnlyInternetGateway.d.ts.map +1 -1
- package/lib/AWS/EC2/EgressOnlyInternetGateway.js +5 -8
- package/lib/AWS/EC2/EgressOnlyInternetGateway.js.map +1 -1
- package/lib/AWS/EC2/Image.d.ts +6 -6
- package/lib/AWS/EC2/Instance.d.ts +2 -2
- package/lib/AWS/EC2/Instance.d.ts.map +1 -1
- package/lib/AWS/EC2/Instance.js +30 -36
- package/lib/AWS/EC2/Instance.js.map +1 -1
- package/lib/AWS/EC2/InternetGateway.d.ts +2 -4
- package/lib/AWS/EC2/InternetGateway.d.ts.map +1 -1
- package/lib/AWS/EC2/InternetGateway.js +2 -4
- package/lib/AWS/EC2/InternetGateway.js.map +1 -1
- package/lib/AWS/EC2/NatGateway.d.ts +2 -3
- package/lib/AWS/EC2/NatGateway.d.ts.map +1 -1
- package/lib/AWS/EC2/NatGateway.js +6 -8
- package/lib/AWS/EC2/NatGateway.js.map +1 -1
- package/lib/AWS/EC2/Network.d.ts +2 -2
- package/lib/AWS/EC2/Network.d.ts.map +1 -1
- package/lib/AWS/EC2/Network.js +2 -2
- package/lib/AWS/EC2/Network.js.map +1 -1
- package/lib/AWS/EC2/NetworkAcl.d.ts +2 -3
- package/lib/AWS/EC2/NetworkAcl.d.ts.map +1 -1
- package/lib/AWS/EC2/NetworkAcl.js +36 -36
- package/lib/AWS/EC2/NetworkAcl.js.map +1 -1
- package/lib/AWS/EC2/NetworkAclAssociation.d.ts +1 -1
- package/lib/AWS/EC2/NetworkAclEntry.d.ts +1 -1
- package/lib/AWS/EC2/Route.d.ts +1 -1
- package/lib/AWS/EC2/RouteTable.d.ts +2 -3
- package/lib/AWS/EC2/RouteTable.d.ts.map +1 -1
- package/lib/AWS/EC2/RouteTable.js +2 -4
- package/lib/AWS/EC2/RouteTable.js.map +1 -1
- package/lib/AWS/EC2/RouteTableAssociation.d.ts +1 -1
- package/lib/AWS/EC2/SecurityGroup.d.ts +2 -3
- package/lib/AWS/EC2/SecurityGroup.d.ts.map +1 -1
- package/lib/AWS/EC2/SecurityGroup.js +40 -40
- package/lib/AWS/EC2/SecurityGroup.js.map +1 -1
- package/lib/AWS/EC2/SecurityGroupRule.d.ts +1 -1
- package/lib/AWS/EC2/Subnet.d.ts +1 -1
- package/lib/AWS/EC2/Vpc.d.ts +2 -3
- package/lib/AWS/EC2/Vpc.d.ts.map +1 -1
- package/lib/AWS/EC2/Vpc.js +1 -3
- package/lib/AWS/EC2/Vpc.js.map +1 -1
- package/lib/AWS/EC2/VpcEndpoint.d.ts +1 -2
- package/lib/AWS/EC2/VpcEndpoint.d.ts.map +1 -1
- package/lib/AWS/EC2/VpcEndpoint.js +44 -43
- package/lib/AWS/EC2/VpcEndpoint.js.map +1 -1
- package/lib/AWS/EC2/hosted.d.ts +3 -6
- package/lib/AWS/EC2/hosted.d.ts.map +1 -1
- package/lib/AWS/EC2/hosted.js +17 -18
- package/lib/AWS/EC2/hosted.js.map +1 -1
- package/lib/AWS/ECR/Repository.d.ts +1 -1
- package/lib/AWS/ECS/CapacityProvider.d.ts +1 -2
- package/lib/AWS/ECS/CapacityProvider.d.ts.map +1 -1
- package/lib/AWS/ECS/CapacityProvider.js +1 -3
- package/lib/AWS/ECS/CapacityProvider.js.map +1 -1
- package/lib/AWS/ECS/Cluster.d.ts +2 -3
- package/lib/AWS/ECS/Cluster.d.ts.map +1 -1
- package/lib/AWS/ECS/Cluster.js +1 -3
- package/lib/AWS/ECS/Cluster.js.map +1 -1
- package/lib/AWS/ECS/DescribeTasks.d.ts +1 -1
- package/lib/AWS/ECS/ListTasks.d.ts +1 -1
- package/lib/AWS/ECS/RunTask.d.ts +1 -1
- package/lib/AWS/ECS/Service.d.ts +1 -1
- package/lib/AWS/ECS/StopTask.d.ts +1 -1
- package/lib/AWS/ECS/Task.d.ts +2 -2
- package/lib/AWS/ECS/Task.d.ts.map +1 -1
- package/lib/AWS/ECS/Task.js +2 -2
- package/lib/AWS/ECS/Task.js.map +1 -1
- package/lib/AWS/EKS/AccessEntry.d.ts +1 -1
- package/lib/AWS/EKS/Addon.d.ts +1 -1
- package/lib/AWS/EKS/Cluster.d.ts +1 -1
- package/lib/AWS/EKS/Cluster.d.ts.map +1 -1
- package/lib/AWS/EKS/PodIdentityAssociation.d.ts +1 -1
- package/lib/AWS/ELBv2/Listener.d.ts +1 -1
- package/lib/AWS/ELBv2/LoadBalancer.d.ts +1 -1
- package/lib/AWS/ELBv2/TargetGroup.d.ts +1 -1
- package/lib/AWS/Endpoint.d.ts.map +1 -1
- package/lib/AWS/Endpoint.js +5 -2
- package/lib/AWS/Endpoint.js.map +1 -1
- package/lib/AWS/Environment.d.ts +6 -50
- package/lib/AWS/Environment.d.ts.map +1 -1
- package/lib/AWS/Environment.js +11 -80
- package/lib/AWS/Environment.js.map +1 -1
- package/lib/AWS/EventBridge/DescribeEventBus.d.ts +1 -1
- package/lib/AWS/EventBridge/DescribeRule.d.ts +1 -1
- package/lib/AWS/EventBridge/EventBus.d.ts +2 -3
- package/lib/AWS/EventBridge/EventBus.d.ts.map +1 -1
- package/lib/AWS/EventBridge/EventBus.js +1 -3
- package/lib/AWS/EventBridge/EventBus.js.map +1 -1
- package/lib/AWS/EventBridge/ListEventBuses.d.ts +1 -1
- package/lib/AWS/EventBridge/ListRules.d.ts +2 -3
- package/lib/AWS/EventBridge/ListRules.d.ts.map +1 -1
- package/lib/AWS/EventBridge/ListRules.js +2 -3
- package/lib/AWS/EventBridge/ListRules.js.map +1 -1
- package/lib/AWS/EventBridge/ListTargetsByRule.d.ts +1 -1
- package/lib/AWS/EventBridge/Permission.d.ts +1 -1
- package/lib/AWS/EventBridge/PutEvents.d.ts +2 -3
- package/lib/AWS/EventBridge/PutEvents.d.ts.map +1 -1
- package/lib/AWS/EventBridge/PutEvents.js +2 -3
- package/lib/AWS/EventBridge/PutEvents.js.map +1 -1
- package/lib/AWS/EventBridge/Rule.d.ts +2 -3
- package/lib/AWS/EventBridge/Rule.d.ts.map +1 -1
- package/lib/AWS/EventBridge/Rule.js +2 -3
- package/lib/AWS/EventBridge/Rule.js.map +1 -1
- package/lib/AWS/EventBridge/TestEventPattern.d.ts +1 -1
- package/lib/AWS/IAM/AccessKey.d.ts +1 -1
- package/lib/AWS/IAM/AccountAlias.d.ts +1 -1
- package/lib/AWS/IAM/AccountPasswordPolicy.d.ts +1 -1
- package/lib/AWS/IAM/Group.d.ts +1 -1
- package/lib/AWS/IAM/GroupMembership.d.ts +1 -1
- package/lib/AWS/IAM/InstanceProfile.d.ts +1 -1
- package/lib/AWS/IAM/LoginProfile.d.ts +1 -1
- package/lib/AWS/IAM/OpenIDConnectProvider.d.ts +1 -1
- package/lib/AWS/IAM/OpenIDConnectProvider.d.ts.map +1 -1
- package/lib/AWS/IAM/OpenIDConnectProvider.js +5 -4
- package/lib/AWS/IAM/OpenIDConnectProvider.js.map +1 -1
- package/lib/AWS/IAM/Policy.d.ts +1 -1
- package/lib/AWS/IAM/Policy.d.ts.map +1 -1
- package/lib/AWS/IAM/Policy.js +1 -1
- package/lib/AWS/IAM/Policy.js.map +1 -1
- package/lib/AWS/IAM/Role.d.ts +2 -2
- package/lib/AWS/IAM/Role.d.ts.map +1 -1
- package/lib/AWS/IAM/Role.js +1 -1
- package/lib/AWS/IAM/Role.js.map +1 -1
- package/lib/AWS/IAM/SAMLProvider.d.ts +2 -2
- package/lib/AWS/IAM/SAMLProvider.d.ts.map +1 -1
- package/lib/AWS/IAM/SAMLProvider.js +2 -2
- package/lib/AWS/IAM/SAMLProvider.js.map +1 -1
- package/lib/AWS/IAM/SSHPublicKey.d.ts +1 -1
- package/lib/AWS/IAM/ServerCertificate.d.ts +1 -1
- package/lib/AWS/IAM/ServiceSpecificCredential.d.ts +1 -1
- package/lib/AWS/IAM/SigningCertificate.d.ts +1 -1
- package/lib/AWS/IAM/User.d.ts +1 -1
- package/lib/AWS/IAM/VirtualMFADevice.d.ts +1 -1
- package/lib/AWS/IdentityCenter/AccountAssignment.d.ts +1 -1
- package/lib/AWS/IdentityCenter/Group.d.ts +1 -1
- package/lib/AWS/IdentityCenter/Instance.d.ts +1 -1
- package/lib/AWS/IdentityCenter/PermissionSet.d.ts +1 -1
- package/lib/AWS/IdentityCenter/common.d.ts +4 -4
- package/lib/AWS/Kinesis/DescribeAccountSettings.d.ts +1 -1
- package/lib/AWS/Kinesis/DescribeLimits.d.ts +1 -1
- package/lib/AWS/Kinesis/DescribeStream.d.ts +1 -1
- package/lib/AWS/Kinesis/DescribeStreamConsumer.d.ts +1 -1
- package/lib/AWS/Kinesis/DescribeStreamSummary.d.ts +1 -1
- package/lib/AWS/Kinesis/GetRecords.d.ts +1 -1
- package/lib/AWS/Kinesis/GetResourcePolicy.d.ts +1 -1
- package/lib/AWS/Kinesis/GetShardIterator.d.ts +1 -1
- package/lib/AWS/Kinesis/ListShards.d.ts +1 -1
- package/lib/AWS/Kinesis/ListStreamConsumers.d.ts +1 -1
- package/lib/AWS/Kinesis/ListStreams.d.ts +1 -1
- package/lib/AWS/Kinesis/ListTagsForResource.d.ts +1 -1
- package/lib/AWS/Kinesis/PutRecord.d.ts +1 -1
- package/lib/AWS/Kinesis/PutRecords.d.ts +1 -1
- package/lib/AWS/Kinesis/Stream.d.ts +2 -3
- package/lib/AWS/Kinesis/Stream.d.ts.map +1 -1
- package/lib/AWS/Kinesis/Stream.js +1 -3
- package/lib/AWS/Kinesis/Stream.js.map +1 -1
- package/lib/AWS/Kinesis/StreamConsumer.d.ts +1 -1
- package/lib/AWS/Kinesis/SubscribeToShard.d.ts +1 -1
- package/lib/AWS/Lambda/EventSourceMapping.d.ts +2 -3
- package/lib/AWS/Lambda/EventSourceMapping.d.ts.map +1 -1
- package/lib/AWS/Lambda/EventSourceMapping.js +1 -3
- package/lib/AWS/Lambda/EventSourceMapping.js.map +1 -1
- package/lib/AWS/Lambda/Function.d.ts +2 -2
- package/lib/AWS/Lambda/Function.d.ts.map +1 -1
- package/lib/AWS/Lambda/Function.js +9 -7
- package/lib/AWS/Lambda/Function.js.map +1 -1
- package/lib/AWS/Lambda/InvokeFunction.d.ts +1 -1
- package/lib/AWS/Lambda/Permission.d.ts +2 -2
- package/lib/AWS/Lambda/Permission.js +1 -1
- package/lib/AWS/Logs/LogGroup.d.ts +2 -3
- package/lib/AWS/Logs/LogGroup.d.ts.map +1 -1
- package/lib/AWS/Logs/LogGroup.js +1 -3
- package/lib/AWS/Logs/LogGroup.js.map +1 -1
- package/lib/AWS/Organizations/Account.d.ts +1 -1
- package/lib/AWS/Organizations/DelegatedAdministrator.d.ts +1 -1
- package/lib/AWS/Organizations/Organization.d.ts +1 -1
- package/lib/AWS/Organizations/OrganizationResourcePolicy.d.ts +1 -1
- package/lib/AWS/Organizations/OrganizationalUnit.d.ts +1 -1
- package/lib/AWS/Organizations/Policy.d.ts +1 -1
- package/lib/AWS/Organizations/PolicyAttachment.d.ts +1 -1
- package/lib/AWS/Organizations/Root.d.ts +1 -1
- package/lib/AWS/Organizations/RootPolicyType.d.ts +1 -1
- package/lib/AWS/Organizations/TrustedServiceAccess.d.ts +1 -1
- package/lib/AWS/Organizations/common.d.ts +2 -2
- package/lib/AWS/Providers.d.ts +3 -2
- package/lib/AWS/Providers.d.ts.map +1 -1
- package/lib/AWS/Providers.js +2 -2
- package/lib/AWS/Providers.js.map +1 -1
- package/lib/AWS/RDS/Connect.d.ts +1 -1
- package/lib/AWS/RDS/DBCluster.d.ts +1 -1
- package/lib/AWS/RDS/DBClusterEndpoint.d.ts +1 -1
- package/lib/AWS/RDS/DBClusterParameterGroup.d.ts +1 -1
- package/lib/AWS/RDS/DBInstance.d.ts +1 -1
- package/lib/AWS/RDS/DBParameterGroup.d.ts +1 -1
- package/lib/AWS/RDS/DBProxy.d.ts +1 -1
- package/lib/AWS/RDS/DBProxyEndpoint.d.ts +1 -1
- package/lib/AWS/RDS/DBProxyTargetGroup.d.ts +1 -1
- package/lib/AWS/RDS/DBSubnetGroup.d.ts +1 -1
- package/lib/AWS/RDSData/BatchExecuteStatement.d.ts +1 -1
- package/lib/AWS/RDSData/BeginTransaction.d.ts +1 -1
- package/lib/AWS/RDSData/CommitTransaction.d.ts +1 -1
- package/lib/AWS/RDSData/ExecuteSql.d.ts +1 -1
- package/lib/AWS/RDSData/ExecuteStatement.d.ts +1 -1
- package/lib/AWS/RDSData/RollbackTransaction.d.ts +1 -1
- package/lib/AWS/Region.d.ts +2 -0
- package/lib/AWS/Region.d.ts.map +1 -1
- package/lib/AWS/Region.js +8 -3
- package/lib/AWS/Region.js.map +1 -1
- package/lib/AWS/Route53/Record.d.ts +1 -1
- package/lib/AWS/S3/AbortMultipartUpload.d.ts +1 -1
- package/lib/AWS/S3/Bucket.d.ts +6 -3
- package/lib/AWS/S3/Bucket.d.ts.map +1 -1
- package/lib/AWS/S3/Bucket.js +3 -4
- package/lib/AWS/S3/Bucket.js.map +1 -1
- package/lib/AWS/S3/CompleteMultipartUpload.d.ts +1 -1
- package/lib/AWS/S3/CopyObject.d.ts +1 -1
- package/lib/AWS/S3/CreateMultipartUpload.d.ts +1 -1
- package/lib/AWS/S3/DeleteObject.d.ts +1 -1
- package/lib/AWS/S3/GetObject.d.ts +1 -1
- package/lib/AWS/S3/HeadObject.d.ts +1 -1
- package/lib/AWS/S3/ListObjectsV2.d.ts +1 -1
- package/lib/AWS/S3/PutObject.d.ts +1 -1
- package/lib/AWS/S3/UploadPart.d.ts +1 -1
- package/lib/AWS/SNS/AddPermission.d.ts +1 -1
- package/lib/AWS/SNS/ConfirmSubscription.d.ts +1 -1
- package/lib/AWS/SNS/GetDataProtectionPolicy.d.ts +1 -1
- package/lib/AWS/SNS/GetSubscriptionAttributes.d.ts +1 -1
- package/lib/AWS/SNS/GetTopicAttributes.d.ts +1 -1
- package/lib/AWS/SNS/ListSubscriptions.d.ts +1 -1
- package/lib/AWS/SNS/ListSubscriptionsByTopic.d.ts +1 -1
- package/lib/AWS/SNS/ListTagsForResource.d.ts +1 -1
- package/lib/AWS/SNS/ListTopics.d.ts +1 -1
- package/lib/AWS/SNS/Publish.d.ts +1 -1
- package/lib/AWS/SNS/PublishBatch.d.ts +1 -1
- package/lib/AWS/SNS/PutDataProtectionPolicy.d.ts +1 -1
- package/lib/AWS/SNS/RemovePermission.d.ts +1 -1
- package/lib/AWS/SNS/SetSubscriptionAttributes.d.ts +1 -1
- package/lib/AWS/SNS/SetTopicAttributes.d.ts +1 -1
- package/lib/AWS/SNS/Subscription.d.ts +1 -1
- package/lib/AWS/SNS/TagResource.d.ts +1 -1
- package/lib/AWS/SNS/Topic.d.ts +1 -1
- package/lib/AWS/SNS/UntagResource.d.ts +1 -1
- package/lib/AWS/SQS/DeleteMessage.d.ts +1 -1
- package/lib/AWS/SQS/DeleteMessageBatch.d.ts +1 -1
- package/lib/AWS/SQS/Queue.d.ts +1 -2
- package/lib/AWS/SQS/Queue.d.ts.map +1 -1
- package/lib/AWS/SQS/Queue.js +2 -3
- package/lib/AWS/SQS/Queue.js.map +1 -1
- package/lib/AWS/SQS/ReceiveMessage.d.ts +1 -1
- package/lib/AWS/SQS/SendMessage.d.ts +1 -1
- package/lib/AWS/SQS/SendMessageBatch.d.ts +1 -1
- package/lib/AWS/Scheduler/Schedule.d.ts +1 -1
- package/lib/AWS/Scheduler/ScheduleGroup.d.ts +1 -1
- package/lib/AWS/SecretsManager/DescribeSecret.d.ts +1 -1
- package/lib/AWS/SecretsManager/GetRandomPassword.d.ts +1 -1
- package/lib/AWS/SecretsManager/GetSecretValue.d.ts +1 -1
- package/lib/AWS/SecretsManager/ListSecrets.d.ts +1 -1
- package/lib/AWS/SecretsManager/PutSecretValue.d.ts +1 -1
- package/lib/AWS/SecretsManager/Secret.d.ts +1 -1
- package/lib/AWS/Website/AssetDeployment.d.ts +1 -1
- package/lib/AWS/index.d.ts +0 -1
- package/lib/AWS/index.d.ts.map +1 -1
- package/lib/AWS/index.js +0 -1
- package/lib/AWS/index.js.map +1 -1
- package/lib/Apply.js +15 -3
- package/lib/Apply.js.map +1 -1
- package/lib/Auth/AuthProvider.js +1 -1
- package/lib/Auth/AuthProvider.js.map +1 -1
- package/lib/Auth/Profile.d.ts +10 -10
- package/lib/Auth/Profile.d.ts.map +1 -1
- package/lib/Auth/Profile.js +4 -4
- package/lib/Auth/Profile.js.map +1 -1
- package/lib/Axiom/Credentials.d.ts +2 -3
- package/lib/Axiom/Credentials.d.ts.map +1 -1
- package/lib/Axiom/Credentials.js +3 -3
- package/lib/Axiom/Credentials.js.map +1 -1
- package/lib/Axiom/Dataset.js +1 -1
- package/lib/Axiom/Dataset.js.map +1 -1
- package/lib/Axiom/Providers.d.ts +1 -1
- package/lib/Axiom/Providers.d.ts.map +1 -1
- package/lib/Axiom/Providers.js +1 -1
- package/lib/Axiom/Providers.js.map +1 -1
- package/lib/Binding.d.ts +2 -2
- package/lib/Binding.d.ts.map +1 -1
- package/lib/Binding.js +12 -8
- package/lib/Binding.js.map +1 -1
- package/lib/Build/DevServer.d.ts +113 -0
- package/lib/Build/DevServer.d.ts.map +1 -0
- package/lib/Build/DevServer.js +212 -0
- package/lib/Build/DevServer.js.map +1 -0
- package/lib/Build/Local.d.ts +2 -0
- package/lib/Build/Local.d.ts.map +1 -0
- package/lib/Build/Local.js +4 -0
- package/lib/Build/Local.js.map +1 -0
- package/lib/Bundle/Bundle.js +1 -1
- package/lib/Bundle/Bundle.js.map +1 -1
- package/lib/Cli/commands/_shared.d.ts +3 -3
- package/lib/Cli/commands/_shared.d.ts.map +1 -1
- package/lib/Cli/commands/_shared.js.map +1 -1
- package/lib/Cli/commands/aws.d.ts +1 -1
- package/lib/Cli/commands/aws.d.ts.map +1 -1
- package/lib/Cli/commands/aws.js +3 -3
- package/lib/Cli/commands/aws.js.map +1 -1
- package/lib/Cli/commands/cloudflare.js +1 -1
- package/lib/Cli/commands/cloudflare.js.map +1 -1
- package/lib/Cli/commands/deploy.d.ts +4 -4
- package/lib/Cli/commands/deploy.d.ts.map +1 -1
- package/lib/Cli/commands/login.d.ts +2 -3
- package/lib/Cli/commands/login.d.ts.map +1 -1
- package/lib/Cli/commands/login.js +6 -15
- package/lib/Cli/commands/login.js.map +1 -1
- package/lib/Cli/commands/logs.d.ts +1 -1
- package/lib/Cli/commands/logs.d.ts.map +1 -1
- package/lib/Cli/commands/profile.js +3 -3
- package/lib/Cli/commands/profile.js.map +1 -1
- package/lib/Cli/commands/tail.d.ts +1 -1
- package/lib/Cli/commands/tail.d.ts.map +1 -1
- package/lib/Cloudflare/Access.js +1 -1
- package/lib/Cloudflare/Access.js.map +1 -1
- package/lib/Cloudflare/AiGateway/AiGateway.d.ts +1 -1
- package/lib/Cloudflare/AiGateway/AiGateway.d.ts.map +1 -1
- package/lib/Cloudflare/AiGateway/AiGateway.js +186 -181
- package/lib/Cloudflare/AiGateway/AiGateway.js.map +1 -1
- package/lib/Cloudflare/ApiToken/AccountApiToken.d.ts.map +1 -1
- package/lib/Cloudflare/ApiToken/AccountApiToken.js +103 -102
- package/lib/Cloudflare/ApiToken/AccountApiToken.js.map +1 -1
- package/lib/Cloudflare/ApiToken/UserApiToken.d.ts.map +1 -1
- package/lib/Cloudflare/ApiToken/UserApiToken.js +77 -81
- package/lib/Cloudflare/ApiToken/UserApiToken.js.map +1 -1
- package/lib/Cloudflare/Browser/Browser.d.ts +84 -12
- package/lib/Cloudflare/Browser/Browser.d.ts.map +1 -1
- package/lib/Cloudflare/Browser/Browser.js +80 -9
- package/lib/Cloudflare/Browser/Browser.js.map +1 -1
- package/lib/Cloudflare/Browser/BrowserBinding.d.ts +90 -16
- package/lib/Cloudflare/Browser/BrowserBinding.d.ts.map +1 -1
- package/lib/Cloudflare/Browser/BrowserBinding.js +41 -6
- package/lib/Cloudflare/Browser/BrowserBinding.js.map +1 -1
- package/lib/Cloudflare/Browser/index.d.ts +1 -1
- package/lib/Cloudflare/Browser/index.d.ts.map +1 -1
- package/lib/Cloudflare/Browser/index.js.map +1 -1
- package/lib/Cloudflare/CloudflareEnvironment.d.ts +4 -3
- package/lib/Cloudflare/CloudflareEnvironment.d.ts.map +1 -1
- package/lib/Cloudflare/CloudflareEnvironment.js +3 -4
- package/lib/Cloudflare/CloudflareEnvironment.js.map +1 -1
- package/lib/Cloudflare/Container/ContainerApplication.d.ts.map +1 -1
- package/lib/Cloudflare/Container/ContainerApplication.js +18 -18
- package/lib/Cloudflare/Container/ContainerApplication.js.map +1 -1
- package/lib/Cloudflare/Container/ContainerBinding.d.ts.map +1 -1
- package/lib/Cloudflare/Container/ContainerBinding.js +2 -4
- package/lib/Cloudflare/Container/ContainerBinding.js.map +1 -1
- package/lib/Cloudflare/Credentials.d.ts +2 -2
- package/lib/Cloudflare/Credentials.d.ts.map +1 -1
- package/lib/Cloudflare/Credentials.js +2 -2
- package/lib/Cloudflare/Credentials.js.map +1 -1
- package/lib/Cloudflare/D1/D1Database.d.ts +3 -1
- package/lib/Cloudflare/D1/D1Database.d.ts.map +1 -1
- package/lib/Cloudflare/D1/D1Database.js +205 -201
- package/lib/Cloudflare/D1/D1Database.js.map +1 -1
- package/lib/Cloudflare/EdgeSession.d.ts.map +1 -1
- package/lib/Cloudflare/EdgeSession.js +6 -5
- package/lib/Cloudflare/EdgeSession.js.map +1 -1
- package/lib/Cloudflare/Email/EmailAddress.d.ts.map +1 -1
- package/lib/Cloudflare/Email/EmailAddress.js +69 -61
- package/lib/Cloudflare/Email/EmailAddress.js.map +1 -1
- package/lib/Cloudflare/Email/EmailRouting.d.ts.map +1 -1
- package/lib/Cloudflare/Email/EmailRouting.js +63 -56
- package/lib/Cloudflare/Email/EmailRouting.js.map +1 -1
- package/lib/Cloudflare/Email/EmailRule.d.ts.map +1 -1
- package/lib/Cloudflare/Email/EmailRule.js +67 -63
- package/lib/Cloudflare/Email/EmailRule.js.map +1 -1
- package/lib/Cloudflare/Hyperdrive/Hyperdrive.d.ts.map +1 -1
- package/lib/Cloudflare/Hyperdrive/Hyperdrive.js +139 -137
- package/lib/Cloudflare/Hyperdrive/Hyperdrive.js.map +1 -1
- package/lib/Cloudflare/Images/Images.d.ts +4 -3
- package/lib/Cloudflare/Images/Images.d.ts.map +1 -1
- package/lib/Cloudflare/Images/Images.js.map +1 -1
- package/lib/Cloudflare/KV/KVNamespace.d.ts.map +1 -1
- package/lib/Cloudflare/KV/KVNamespace.js +115 -108
- package/lib/Cloudflare/KV/KVNamespace.js.map +1 -1
- package/lib/Cloudflare/Providers.d.ts +1 -1
- package/lib/Cloudflare/Providers.d.ts.map +1 -1
- package/lib/Cloudflare/Providers.js +4 -1
- package/lib/Cloudflare/Providers.js.map +1 -1
- package/lib/Cloudflare/Queue/Queue.d.ts.map +1 -1
- package/lib/Cloudflare/Queue/Queue.js +109 -101
- package/lib/Cloudflare/Queue/Queue.js.map +1 -1
- package/lib/Cloudflare/Queue/QueueConsumer.d.ts.map +1 -1
- package/lib/Cloudflare/Queue/QueueConsumer.js +260 -250
- package/lib/Cloudflare/Queue/QueueConsumer.js.map +1 -1
- package/lib/Cloudflare/R2/R2Bucket.d.ts.map +1 -1
- package/lib/Cloudflare/R2/R2Bucket.js +101 -66
- package/lib/Cloudflare/R2/R2Bucket.js.map +1 -1
- package/lib/Cloudflare/RateLimit/RateLimit.d.ts +4 -3
- package/lib/Cloudflare/RateLimit/RateLimit.d.ts.map +1 -1
- package/lib/Cloudflare/RateLimit/RateLimit.js.map +1 -1
- package/lib/Cloudflare/Ruleset/Ruleset.d.ts.map +1 -1
- package/lib/Cloudflare/Ruleset/Ruleset.js +81 -81
- package/lib/Cloudflare/Ruleset/Ruleset.js.map +1 -1
- package/lib/Cloudflare/SecretsStore/Secret.d.ts.map +1 -1
- package/lib/Cloudflare/SecretsStore/Secret.js +144 -143
- package/lib/Cloudflare/SecretsStore/Secret.js.map +1 -1
- package/lib/Cloudflare/SecretsStore/SecretsStore.d.ts.map +1 -1
- package/lib/Cloudflare/SecretsStore/SecretsStore.js +74 -75
- package/lib/Cloudflare/SecretsStore/SecretsStore.js.map +1 -1
- package/lib/Cloudflare/StateStore/State.d.ts +1 -1
- package/lib/Cloudflare/StateStore/State.d.ts.map +1 -1
- package/lib/Cloudflare/StateStore/State.js +3 -3
- package/lib/Cloudflare/StateStore/State.js.map +1 -1
- package/lib/Cloudflare/Tunnel/Tunnel.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/Tunnel.js +166 -158
- package/lib/Cloudflare/Tunnel/Tunnel.js.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelBinding.d.ts +2 -2
- package/lib/Cloudflare/Tunnel/TunnelBinding.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelBinding.js +10 -11
- package/lib/Cloudflare/Tunnel/TunnelBinding.js.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelRead.d.ts +4 -3
- package/lib/Cloudflare/Tunnel/TunnelRead.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelRead.js.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelReadWrite.d.ts +4 -3
- package/lib/Cloudflare/Tunnel/TunnelReadWrite.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelReadWrite.js.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelWrite.d.ts +4 -3
- package/lib/Cloudflare/Tunnel/TunnelWrite.d.ts.map +1 -1
- package/lib/Cloudflare/Tunnel/TunnelWrite.js.map +1 -1
- package/lib/Cloudflare/Vectorize/VectorizeIndex.d.ts.map +1 -1
- package/lib/Cloudflare/Vectorize/VectorizeIndex.js +79 -75
- package/lib/Cloudflare/Vectorize/VectorizeIndex.js.map +1 -1
- package/lib/Cloudflare/Vectorize/VectorizeMetadataIndex.d.ts.map +1 -1
- package/lib/Cloudflare/Vectorize/VectorizeMetadataIndex.js +85 -82
- package/lib/Cloudflare/Vectorize/VectorizeMetadataIndex.js.map +1 -1
- package/lib/Cloudflare/VpcService/VpcService.d.ts.map +1 -1
- package/lib/Cloudflare/VpcService/VpcService.js +112 -106
- package/lib/Cloudflare/VpcService/VpcService.js.map +1 -1
- package/lib/Cloudflare/VpcService/VpcServiceRef.js +1 -1
- package/lib/Cloudflare/VpcService/VpcServiceRef.js.map +1 -1
- package/lib/Cloudflare/Website/StaticSite.d.ts +64 -12
- package/lib/Cloudflare/Website/StaticSite.d.ts.map +1 -1
- package/lib/Cloudflare/Website/StaticSite.js +80 -30
- package/lib/Cloudflare/Website/StaticSite.js.map +1 -1
- package/lib/Cloudflare/Website/Vite.d.ts +36 -7
- package/lib/Cloudflare/Website/Vite.d.ts.map +1 -1
- package/lib/Cloudflare/Website/Vite.js +26 -8
- package/lib/Cloudflare/Website/Vite.js.map +1 -1
- package/lib/Cloudflare/Workers/Assets.d.ts +10 -4
- package/lib/Cloudflare/Workers/Assets.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Assets.js +8 -8
- package/lib/Cloudflare/Workers/Assets.js.map +1 -1
- package/lib/Cloudflare/Workers/DynamicWorkerLoader.d.ts +4 -4
- package/lib/Cloudflare/Workers/InferEnv.d.ts +1 -1
- package/lib/Cloudflare/Workers/InferEnv.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/LocalWorkerProvider.d.ts +1 -1
- package/lib/Cloudflare/Workers/LocalWorkerProvider.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/LocalWorkerProvider.js +48 -13
- package/lib/Cloudflare/Workers/LocalWorkerProvider.js.map +1 -1
- package/lib/Cloudflare/Workers/RpcDurableObjectNamespace.d.ts +5 -4
- package/lib/Cloudflare/Workers/RpcDurableObjectNamespace.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/RpcDurableObjectNamespace.js +4 -2
- package/lib/Cloudflare/Workers/RpcDurableObjectNamespace.js.map +1 -1
- package/lib/Cloudflare/Workers/RpcWorker.d.ts +3 -2
- package/lib/Cloudflare/Workers/RpcWorker.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/RpcWorker.js +5 -3
- package/lib/Cloudflare/Workers/RpcWorker.js.map +1 -1
- package/lib/Cloudflare/Workers/VersionMetadata.d.ts +99 -0
- package/lib/Cloudflare/Workers/VersionMetadata.d.ts.map +1 -0
- package/lib/Cloudflare/Workers/VersionMetadata.js +65 -0
- package/lib/Cloudflare/Workers/VersionMetadata.js.map +1 -0
- package/lib/Cloudflare/Workers/VersionMetadataBinding.d.ts +35 -0
- package/lib/Cloudflare/Workers/VersionMetadataBinding.d.ts.map +1 -0
- package/lib/Cloudflare/Workers/VersionMetadataBinding.js +31 -0
- package/lib/Cloudflare/Workers/VersionMetadataBinding.js.map +1 -0
- package/lib/Cloudflare/Workers/Worker.d.ts +19 -19
- package/lib/Cloudflare/Workers/Worker.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Worker.js +134 -98
- package/lib/Cloudflare/Workers/Worker.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.js +9 -14
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkerBinding.d.ts +2 -1
- package/lib/Cloudflare/Workers/WorkerBinding.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkerBinding.js.map +1 -1
- package/lib/Cloudflare/Workers/Workflow.d.ts +8 -1
- package/lib/Cloudflare/Workers/Workflow.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Workflow.js +7 -6
- package/lib/Cloudflare/Workers/Workflow.js.map +1 -1
- package/lib/Cloudflare/Workers/WorkflowBridge.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/WorkflowBridge.js +31 -2
- package/lib/Cloudflare/Workers/WorkflowBridge.js.map +1 -1
- package/lib/Cloudflare/Workers/index.d.ts +2 -0
- package/lib/Cloudflare/Workers/index.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/index.js +2 -0
- package/lib/Cloudflare/Workers/index.js.map +1 -1
- package/lib/Cloudflare/Zaraz/ZarazConfig.d.ts.map +1 -1
- package/lib/Cloudflare/Zaraz/ZarazConfig.js +68 -75
- package/lib/Cloudflare/Zaraz/ZarazConfig.js.map +1 -1
- package/lib/Cloudflare/Zone/Zone.d.ts.map +1 -1
- package/lib/Cloudflare/Zone/Zone.js +18 -13
- package/lib/Cloudflare/Zone/Zone.js.map +1 -1
- package/lib/Diff.d.ts.map +1 -1
- package/lib/Diff.js +7 -0
- package/lib/Diff.js.map +1 -1
- package/lib/Drizzle/Postgres.d.ts +13 -12
- package/lib/Drizzle/Postgres.d.ts.map +1 -1
- package/lib/Drizzle/Postgres.js +13 -12
- package/lib/Drizzle/Postgres.js.map +1 -1
- package/lib/Drizzle/Schema.d.ts +1 -1
- package/lib/Drizzle/Schema.d.ts.map +1 -1
- package/lib/Drizzle/Schema.js +14 -6
- package/lib/Drizzle/Schema.js.map +1 -1
- package/lib/GitHub/Comment.d.ts +1 -6
- package/lib/GitHub/Comment.d.ts.map +1 -1
- package/lib/GitHub/Comment.js +3 -9
- package/lib/GitHub/Comment.js.map +1 -1
- package/lib/GitHub/Credentials.d.ts +4 -3
- package/lib/GitHub/Credentials.d.ts.map +1 -1
- package/lib/GitHub/Credentials.js +5 -5
- package/lib/GitHub/Credentials.js.map +1 -1
- package/lib/GitHub/Octokit.d.ts +5 -0
- package/lib/GitHub/Octokit.d.ts.map +1 -0
- package/lib/GitHub/Octokit.js +7 -0
- package/lib/GitHub/Octokit.js.map +1 -0
- package/lib/GitHub/Providers.d.ts +1 -1
- package/lib/GitHub/Providers.d.ts.map +1 -1
- package/lib/GitHub/Secret.d.ts +1 -2
- package/lib/GitHub/Secret.d.ts.map +1 -1
- package/lib/GitHub/Secret.js +8 -12
- package/lib/GitHub/Secret.js.map +1 -1
- package/lib/GitHub/Variable.d.ts +1 -2
- package/lib/GitHub/Variable.d.ts.map +1 -1
- package/lib/GitHub/Variable.js +3 -7
- package/lib/GitHub/Variable.js.map +1 -1
- package/lib/Kubernetes/client.d.ts +11 -11
- package/lib/Kubernetes/client.d.ts.map +1 -1
- package/lib/Kubernetes/client.js +2 -2
- package/lib/Kubernetes/client.js.map +1 -1
- package/lib/Local/RpcSerialization.js +5 -2
- package/lib/Local/RpcSerialization.js.map +1 -1
- package/lib/Local/RpcServerEnvironment.d.ts +2 -2
- package/lib/Local/RpcServerEnvironment.d.ts.map +1 -1
- package/lib/Neon/AuthProvider.d.ts +2 -2
- package/lib/Neon/AuthProvider.d.ts.map +1 -1
- package/lib/Neon/AuthProvider.js +2 -2
- package/lib/Neon/AuthProvider.js.map +1 -1
- package/lib/Neon/Branch.d.ts.map +1 -1
- package/lib/Neon/Branch.js +213 -215
- package/lib/Neon/Branch.js.map +1 -1
- package/lib/Neon/Credentials.d.ts +2 -3
- package/lib/Neon/Credentials.d.ts.map +1 -1
- package/lib/Neon/Credentials.js +3 -3
- package/lib/Neon/Credentials.js.map +1 -1
- package/lib/Neon/Project.d.ts +22 -22
- package/lib/Neon/Project.d.ts.map +1 -1
- package/lib/Neon/Project.js +263 -266
- package/lib/Neon/Project.js.map +1 -1
- package/lib/Neon/Providers.d.ts +2 -4
- package/lib/Neon/Providers.d.ts.map +1 -1
- package/lib/Neon/Providers.js +1 -3
- package/lib/Neon/Providers.js.map +1 -1
- package/lib/Neon/index.d.ts +0 -1
- package/lib/Neon/index.d.ts.map +1 -1
- package/lib/Neon/index.js +0 -1
- package/lib/Neon/index.js.map +1 -1
- package/lib/Output.d.ts +2 -1
- package/lib/Output.d.ts.map +1 -1
- package/lib/Output.js +7 -3
- package/lib/Output.js.map +1 -1
- package/lib/Plan.d.ts.map +1 -1
- package/lib/Plan.js +14 -6
- package/lib/Plan.js.map +1 -1
- package/lib/Planetscale/Branch.d.ts +1 -2
- package/lib/Planetscale/Branch.d.ts.map +1 -1
- package/lib/Planetscale/Branch.js +230 -235
- package/lib/Planetscale/Branch.js.map +1 -1
- package/lib/Planetscale/Credentials.d.ts +2 -3
- package/lib/Planetscale/Credentials.d.ts.map +1 -1
- package/lib/Planetscale/Credentials.js +6 -6
- package/lib/Planetscale/Credentials.js.map +1 -1
- package/lib/Planetscale/MySQL/MySQLBranch.d.ts +1 -1
- package/lib/Planetscale/MySQL/MySQLBranch.d.ts.map +1 -1
- package/lib/Planetscale/MySQL/MySQLClusterSize.d.ts +2 -2
- package/lib/Planetscale/MySQL/MySQLClusterSize.d.ts.map +1 -1
- package/lib/Planetscale/MySQL/MySQLDatabase.d.ts +1 -1
- package/lib/Planetscale/MySQL/MySQLDatabase.d.ts.map +1 -1
- package/lib/Planetscale/MySQL/MySQLDatabase.js +215 -215
- package/lib/Planetscale/MySQL/MySQLDatabase.js.map +1 -1
- package/lib/Planetscale/MySQL/MySQLMigrations.d.ts +2 -2
- package/lib/Planetscale/MySQL/MySQLMigrations.d.ts.map +1 -1
- package/lib/Planetscale/MySQL/MySQLPassword.d.ts.map +1 -1
- package/lib/Planetscale/MySQL/MySQLPassword.js +145 -145
- package/lib/Planetscale/MySQL/MySQLPassword.js.map +1 -1
- package/lib/Planetscale/Postgres/PostgresBranch.d.ts +1 -1
- package/lib/Planetscale/Postgres/PostgresBranch.d.ts.map +1 -1
- package/lib/Planetscale/Postgres/PostgresClusterSize.d.ts +3 -2
- package/lib/Planetscale/Postgres/PostgresClusterSize.d.ts.map +1 -1
- package/lib/Planetscale/Postgres/PostgresClusterSize.js +4 -4
- package/lib/Planetscale/Postgres/PostgresClusterSize.js.map +1 -1
- package/lib/Planetscale/Postgres/PostgresDatabase.d.ts +1 -1
- package/lib/Planetscale/Postgres/PostgresDatabase.d.ts.map +1 -1
- package/lib/Planetscale/Postgres/PostgresDatabase.js +220 -218
- package/lib/Planetscale/Postgres/PostgresDatabase.js.map +1 -1
- package/lib/Planetscale/Postgres/PostgresDefaultRole.d.ts.map +1 -1
- package/lib/Planetscale/Postgres/PostgresDefaultRole.js +123 -121
- package/lib/Planetscale/Postgres/PostgresDefaultRole.js.map +1 -1
- package/lib/Planetscale/Postgres/PostgresMigrations.d.ts +2 -2
- package/lib/Planetscale/Postgres/PostgresMigrations.d.ts.map +1 -1
- package/lib/Planetscale/Postgres/PostgresRole.d.ts.map +1 -1
- package/lib/Planetscale/Postgres/PostgresRole.js +159 -160
- package/lib/Planetscale/Postgres/PostgresRole.js.map +1 -1
- package/lib/Planetscale/Providers.d.ts +1 -2
- package/lib/Planetscale/Providers.d.ts.map +1 -1
- package/lib/Planetscale/Providers.js.map +1 -1
- package/lib/Planetscale/Util.d.ts +2 -2
- package/lib/Planetscale/Util.d.ts.map +1 -1
- package/lib/Platform.d.ts.map +1 -1
- package/lib/Platform.js +27 -25
- package/lib/Platform.js.map +1 -1
- package/lib/Resource.d.ts +1 -1
- package/lib/Resource.d.ts.map +1 -1
- package/lib/Resource.js +9 -12
- package/lib/Resource.js.map +1 -1
- package/lib/Runtime.d.ts +1 -1
- package/lib/Runtime.d.ts.map +1 -1
- package/lib/Runtime.js +3 -4
- package/lib/Runtime.js.map +1 -1
- package/lib/Server/S3BucketEventSource.d.ts +1 -1
- package/lib/Server/S3BucketEventSource.d.ts.map +1 -1
- package/lib/Server/SQSQueueEventSource.d.ts +2 -2
- package/lib/Server/SQSQueueEventSource.d.ts.map +1 -1
- package/lib/Server/SQSQueueEventSource.js +3 -2
- package/lib/Server/SQSQueueEventSource.js.map +1 -1
- package/lib/Stack.d.ts +4 -4
- package/lib/Stack.d.ts.map +1 -1
- package/lib/Stack.js +1 -1
- package/lib/Stack.js.map +1 -1
- package/lib/Util/effect.d.ts.map +1 -1
- package/lib/Util/effect.js +13 -15
- package/lib/Util/effect.js.map +1 -1
- package/lib/Util/poll.d.ts +0 -1
- package/lib/Util/poll.d.ts.map +1 -1
- package/lib/Util/poll.js +2 -2
- package/lib/Util/poll.js.map +1 -1
- package/lib/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +22 -21
- package/src/AWS/ApiGateway/ApiKey.ts +4 -5
- package/src/AWS/ApiGateway/RestApi.ts +5 -6
- package/src/AWS/ApiGateway/Stage.ts +4 -5
- package/src/AWS/ApiGateway/UsagePlan.ts +4 -5
- package/src/AWS/ApiGateway/VpcLink.ts +4 -6
- package/src/AWS/Assets.ts +161 -108
- package/src/AWS/AuthProvider.ts +221 -124
- package/src/AWS/AutoScaling/LaunchTemplate.ts +31 -32
- package/src/AWS/Bootstrap.ts +66 -195
- package/src/AWS/CloudWatch/Alarm.ts +9 -8
- package/src/AWS/CloudWatch/AlarmMuteRule.ts +8 -7
- package/src/AWS/CloudWatch/CompositeAlarm.ts +9 -8
- package/src/AWS/CloudWatch/Dashboard.ts +9 -6
- package/src/AWS/CloudWatch/InsightRule.ts +10 -9
- package/src/AWS/CloudWatch/MetricStream.ts +9 -7
- package/src/AWS/Credentials.ts +4 -1
- package/src/AWS/EC2/EIP.ts +5 -5
- package/src/AWS/EC2/EgressOnlyInternetGateway.ts +20 -17
- package/src/AWS/EC2/Instance.ts +42 -41
- package/src/AWS/EC2/InternetGateway.ts +4 -8
- package/src/AWS/EC2/NatGateway.ts +10 -11
- package/src/AWS/EC2/Network.ts +2 -2
- package/src/AWS/EC2/NetworkAcl.ts +38 -39
- package/src/AWS/EC2/RouteTable.ts +3 -6
- package/src/AWS/EC2/SecurityGroup.ts +43 -44
- package/src/AWS/EC2/Vpc.ts +2 -5
- package/src/AWS/EC2/VpcEndpoint.ts +47 -47
- package/src/AWS/EC2/hosted.ts +19 -33
- package/src/AWS/ECS/CapacityProvider.ts +1 -3
- package/src/AWS/ECS/Cluster.ts +2 -5
- package/src/AWS/ECS/Task.ts +4 -3
- package/src/AWS/Endpoint.ts +12 -6
- package/src/AWS/Environment.ts +22 -120
- package/src/AWS/EventBridge/EventBus.ts +2 -5
- package/src/AWS/EventBridge/ListRules.ts +2 -5
- package/src/AWS/EventBridge/PutEvents.ts +2 -3
- package/src/AWS/EventBridge/Rule.ts +3 -5
- package/src/AWS/IAM/OpenIDConnectProvider.ts +10 -4
- package/src/AWS/IAM/Policy.ts +1 -2
- package/src/AWS/IAM/Role.ts +2 -2
- package/src/AWS/IAM/SAMLProvider.ts +3 -3
- package/src/AWS/Kinesis/Stream.ts +2 -5
- package/src/AWS/Lambda/EventSourceMapping.ts +2 -5
- package/src/AWS/Lambda/Function.ts +10 -8
- package/src/AWS/Lambda/Permission.ts +1 -1
- package/src/AWS/Logs/LogGroup.ts +2 -5
- package/src/AWS/Providers.ts +2 -2
- package/src/AWS/Region.ts +15 -3
- package/src/AWS/S3/Bucket.ts +15 -15
- package/src/AWS/SQS/Queue.ts +2 -3
- package/src/AWS/index.ts +0 -1
- package/src/Apply.ts +22 -3
- package/src/Auth/AuthProvider.ts +1 -1
- package/src/Auth/Profile.ts +13 -12
- package/src/Axiom/Credentials.ts +4 -2
- package/src/Axiom/Dataset.ts +1 -1
- package/src/Axiom/Providers.ts +1 -1
- package/src/Binding.ts +47 -43
- package/src/Build/DevServer.ts +330 -0
- package/src/Build/Local.ts +4 -0
- package/src/Bundle/Bundle.ts +1 -1
- package/src/Cli/commands/_shared.ts +2 -2
- package/src/Cli/commands/aws.ts +12 -9
- package/src/Cli/commands/cloudflare.ts +1 -1
- package/src/Cli/commands/login.ts +6 -22
- package/src/Cli/commands/profile.ts +3 -3
- package/src/Cloudflare/Access.ts +1 -1
- package/src/Cloudflare/AiGateway/AiGateway.ts +220 -219
- package/src/Cloudflare/ApiToken/AccountApiToken.ts +142 -153
- package/src/Cloudflare/ApiToken/UserApiToken.ts +105 -121
- package/src/Cloudflare/Browser/Browser.ts +84 -12
- package/src/Cloudflare/Browser/BrowserBinding.ts +205 -33
- package/src/Cloudflare/Browser/index.ts +15 -2
- package/src/Cloudflare/CloudflareEnvironment.ts +10 -5
- package/src/Cloudflare/Container/ContainerApplication.ts +32 -29
- package/src/Cloudflare/Container/ContainerBinding.ts +5 -10
- package/src/Cloudflare/Credentials.ts +2 -2
- package/src/Cloudflare/D1/D1Database.ts +268 -263
- package/src/Cloudflare/EdgeSession.ts +6 -5
- package/src/Cloudflare/Email/EmailAddress.ts +74 -71
- package/src/Cloudflare/Email/EmailRouting.ts +73 -75
- package/src/Cloudflare/Email/EmailRule.ts +79 -80
- package/src/Cloudflare/Hyperdrive/Hyperdrive.ts +155 -158
- package/src/Cloudflare/Images/Images.ts +4 -3
- package/src/Cloudflare/KV/KVNamespace.ts +139 -138
- package/src/Cloudflare/Providers.ts +5 -0
- package/src/Cloudflare/Queue/Queue.ts +122 -119
- package/src/Cloudflare/Queue/QueueConsumer.ts +334 -330
- package/src/Cloudflare/R2/R2Bucket.ts +200 -165
- package/src/Cloudflare/RateLimit/RateLimit.ts +4 -3
- package/src/Cloudflare/Ruleset/Ruleset.ts +93 -98
- package/src/Cloudflare/SecretsStore/Secret.ts +187 -194
- package/src/Cloudflare/SecretsStore/SecretsStore.ts +82 -87
- package/src/Cloudflare/StateStore/State.ts +5 -3
- package/src/Cloudflare/Tunnel/Tunnel.ts +187 -186
- package/src/Cloudflare/Tunnel/TunnelBinding.ts +16 -9
- package/src/Cloudflare/Tunnel/TunnelRead.ts +3 -2
- package/src/Cloudflare/Tunnel/TunnelReadWrite.ts +7 -2
- package/src/Cloudflare/Tunnel/TunnelWrite.ts +3 -2
- package/src/Cloudflare/Vectorize/VectorizeIndex.ts +98 -98
- package/src/Cloudflare/Vectorize/VectorizeMetadataIndex.ts +97 -109
- package/src/Cloudflare/VpcService/VpcService.ts +126 -125
- package/src/Cloudflare/VpcService/VpcServiceRef.ts +1 -1
- package/src/Cloudflare/Website/StaticSite.ts +154 -41
- package/src/Cloudflare/Website/Vite.ts +73 -25
- package/src/Cloudflare/Workers/Assets.ts +12 -10
- package/src/Cloudflare/Workers/DynamicWorkerLoader.ts +4 -4
- package/src/Cloudflare/Workers/InferEnv.ts +14 -12
- package/src/Cloudflare/Workers/LocalWorkerProvider.ts +57 -15
- package/src/Cloudflare/Workers/RpcDurableObjectNamespace.ts +11 -8
- package/src/Cloudflare/Workers/RpcWorker.ts +8 -7
- package/src/Cloudflare/Workers/VersionMetadata.ts +129 -0
- package/src/Cloudflare/Workers/VersionMetadataBinding.ts +82 -0
- package/src/Cloudflare/Workers/Worker.ts +382 -349
- package/src/Cloudflare/Workers/WorkerAsyncBindings.ts +13 -21
- package/src/Cloudflare/Workers/WorkerBinding.ts +2 -0
- package/src/Cloudflare/Workers/Workflow.ts +20 -9
- package/src/Cloudflare/Workers/WorkflowBridge.ts +47 -6
- package/src/Cloudflare/Workers/index.ts +2 -0
- package/src/Cloudflare/Zaraz/ZarazConfig.ts +87 -99
- package/src/Cloudflare/Zone/Zone.ts +36 -33
- package/src/Diff.ts +7 -0
- package/src/Drizzle/Postgres.ts +13 -12
- package/src/Drizzle/Schema.ts +16 -6
- package/src/GitHub/Comment.ts +3 -20
- package/src/GitHub/Credentials.ts +9 -5
- package/src/GitHub/Octokit.ts +9 -0
- package/src/GitHub/Secret.ts +8 -21
- package/src/GitHub/Variable.ts +3 -8
- package/src/Kubernetes/client.ts +2 -2
- package/src/Local/RpcSerialization.ts +5 -2
- package/src/Neon/AuthProvider.ts +2 -2
- package/src/Neon/Branch.ts +264 -272
- package/src/Neon/Credentials.ts +4 -2
- package/src/Neon/Project.ts +372 -378
- package/src/Neon/Providers.ts +0 -6
- package/src/Neon/index.ts +0 -1
- package/src/Output.ts +8 -4
- package/src/Plan.ts +15 -7
- package/src/Planetscale/Branch.ts +311 -321
- package/src/Planetscale/Credentials.ts +20 -15
- package/src/Planetscale/MySQL/MySQLDatabase.ts +269 -280
- package/src/Planetscale/MySQL/MySQLPassword.ts +161 -168
- package/src/Planetscale/Postgres/PostgresClusterSize.ts +4 -4
- package/src/Planetscale/Postgres/PostgresDatabase.ts +287 -296
- package/src/Planetscale/Postgres/PostgresDefaultRole.ts +143 -146
- package/src/Planetscale/Postgres/PostgresRole.ts +188 -195
- package/src/Planetscale/Providers.ts +2 -7
- package/src/Platform.ts +36 -32
- package/src/Resource.ts +12 -13
- package/src/Runtime.ts +3 -7
- package/src/Server/SQSQueueEventSource.ts +3 -2
- package/src/Stack.ts +3 -3
- package/src/Util/effect.ts +13 -17
- package/src/Util/poll.ts +3 -3
- package/bin/alchemy.sh +0 -15
- package/lib/AWS/Context.d.ts +0 -8
- package/lib/AWS/Context.d.ts.map +0 -1
- package/lib/AWS/Context.js +0 -16
- package/lib/AWS/Context.js.map +0 -1
- package/lib/Neon/NeonEnvironment.d.ts +0 -11
- package/lib/Neon/NeonEnvironment.d.ts.map +0 -1
- package/lib/Neon/NeonEnvironment.js +0 -18
- package/lib/Neon/NeonEnvironment.js.map +0 -1
- package/src/AWS/Context.ts +0 -30
- package/src/Neon/NeonEnvironment.ts +0 -32
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Region } from "@distilled.cloud/aws/Region";
|
|
2
1
|
import * as eventbridge from "@distilled.cloud/aws/eventbridge";
|
|
3
2
|
import * as Effect from "effect/Effect";
|
|
4
3
|
import * as Layer from "effect/Layer";
|
|
@@ -61,11 +60,11 @@ export class PutEventsPolicy extends Binding.Policy<
|
|
|
61
60
|
|
|
62
61
|
export const PutEventsPolicyLive = PutEventsPolicy.layer.effect(
|
|
63
62
|
Effect.gen(function* () {
|
|
64
|
-
const
|
|
65
|
-
const { accountId } = yield* AWSEnvironment;
|
|
63
|
+
const env = yield* AWSEnvironment;
|
|
66
64
|
|
|
67
65
|
return Effect.fn(function* (host, bus?: EventBus) {
|
|
68
66
|
if (isFunction(host)) {
|
|
67
|
+
const { accountId, region } = yield* env;
|
|
69
68
|
const resource = bus
|
|
70
69
|
? yield* yield* bus.eventBusArn
|
|
71
70
|
: (`arn:aws:events:${region}:${accountId}:event-bus/default` as const);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Region } from "@distilled.cloud/aws/Region";
|
|
2
1
|
import * as eventbridge from "@distilled.cloud/aws/eventbridge";
|
|
3
2
|
import * as Effect from "effect/Effect";
|
|
4
3
|
import { Unowned } from "../../AdoptPolicy.ts";
|
|
@@ -7,7 +6,6 @@ import type { Input } from "../../Input.ts";
|
|
|
7
6
|
import { createPhysicalName } from "../../PhysicalName.ts";
|
|
8
7
|
import * as Provider from "../../Provider.ts";
|
|
9
8
|
import { Resource } from "../../Resource.ts";
|
|
10
|
-
import type { Providers } from "../Providers.ts";
|
|
11
9
|
import {
|
|
12
10
|
createInternalTags,
|
|
13
11
|
createTagsList,
|
|
@@ -15,6 +13,7 @@ import {
|
|
|
15
13
|
hasAlchemyTags,
|
|
16
14
|
} from "../../Tags.ts";
|
|
17
15
|
import { AWSEnvironment, type AccountID } from "../Environment.ts";
|
|
16
|
+
import type { Providers } from "../Providers.ts";
|
|
18
17
|
import type { RegionID } from "../Region.ts";
|
|
19
18
|
|
|
20
19
|
export type {
|
|
@@ -273,9 +272,6 @@ export const RuleProvider = () =>
|
|
|
273
272
|
Provider.effect(
|
|
274
273
|
Rule,
|
|
275
274
|
Effect.gen(function* () {
|
|
276
|
-
const region = yield* Region;
|
|
277
|
-
const { accountId } = yield* AWSEnvironment;
|
|
278
|
-
|
|
279
275
|
const createRuleName = (id: string, props: { name?: string } = {}) => {
|
|
280
276
|
if (props.name) {
|
|
281
277
|
return Effect.succeed(props.name);
|
|
@@ -302,6 +298,7 @@ export const RuleProvider = () =>
|
|
|
302
298
|
}
|
|
303
299
|
}),
|
|
304
300
|
read: Effect.fn(function* ({ id, olds, output }) {
|
|
301
|
+
const { accountId, region } = yield* AWSEnvironment.current;
|
|
305
302
|
const ruleName =
|
|
306
303
|
output?.ruleName ?? (yield* createRuleName(id, olds));
|
|
307
304
|
const eventBusName =
|
|
@@ -342,6 +339,7 @@ export const RuleProvider = () =>
|
|
|
342
339
|
: Unowned(attrs);
|
|
343
340
|
}),
|
|
344
341
|
reconcile: Effect.fn(function* ({ id, news = {}, output, session }) {
|
|
342
|
+
const { accountId, region } = yield* AWSEnvironment.current;
|
|
345
343
|
yield* validateRuleProps(news);
|
|
346
344
|
const ruleName =
|
|
347
345
|
output?.ruleName ?? (yield* createRuleName(id, news));
|
|
@@ -73,9 +73,13 @@ export const OpenIDConnectProviderProvider = () =>
|
|
|
73
73
|
Provider.effect(
|
|
74
74
|
OpenIDConnectProvider,
|
|
75
75
|
Effect.gen(function* () {
|
|
76
|
-
const { accountId } = yield* AWSEnvironment;
|
|
77
76
|
const oidcArnFromUrl = (url: string) =>
|
|
78
|
-
|
|
77
|
+
AWSEnvironment.current.pipe(
|
|
78
|
+
Effect.map(
|
|
79
|
+
({ accountId }) =>
|
|
80
|
+
`arn:aws:iam::${accountId}:oidc-provider/${url.replace(/^https?:\/\//, "")}`,
|
|
81
|
+
),
|
|
82
|
+
);
|
|
79
83
|
|
|
80
84
|
const readProvider = Effect.fn(function* (providerArn: string) {
|
|
81
85
|
const response = yield* iam
|
|
@@ -100,7 +104,8 @@ export const OpenIDConnectProviderProvider = () =>
|
|
|
100
104
|
}),
|
|
101
105
|
read: Effect.fn(function* ({ olds, output }) {
|
|
102
106
|
const providerArn =
|
|
103
|
-
output?.openIDConnectProviderArn ??
|
|
107
|
+
output?.openIDConnectProviderArn ??
|
|
108
|
+
(yield* oidcArnFromUrl(olds.url));
|
|
104
109
|
const provider = yield* readProvider(providerArn);
|
|
105
110
|
if (!provider?.Url) {
|
|
106
111
|
return undefined;
|
|
@@ -120,7 +125,8 @@ export const OpenIDConnectProviderProvider = () =>
|
|
|
120
125
|
// The OIDC provider's ARN is deterministic from its URL, so we
|
|
121
126
|
// can observe with or without prior output.
|
|
122
127
|
const providerArn =
|
|
123
|
-
output?.openIDConnectProviderArn ??
|
|
128
|
+
output?.openIDConnectProviderArn ??
|
|
129
|
+
(yield* oidcArnFromUrl(news.url));
|
|
124
130
|
|
|
125
131
|
// Observe — read the live provider; absent when missing.
|
|
126
132
|
let observed = yield* readProvider(providerArn);
|
package/src/AWS/IAM/Policy.ts
CHANGED
|
@@ -113,14 +113,13 @@ export const PolicyProvider = () =>
|
|
|
113
113
|
Provider.effect(
|
|
114
114
|
Policy,
|
|
115
115
|
Effect.gen(function* () {
|
|
116
|
-
const { accountId } = yield* AWSEnvironment;
|
|
117
|
-
|
|
118
116
|
const toPolicyName = (id: string, props: PolicyProps) =>
|
|
119
117
|
props.policyName
|
|
120
118
|
? Effect.succeed(props.policyName)
|
|
121
119
|
: createPhysicalName({ id, maxLength: 128 });
|
|
122
120
|
|
|
123
121
|
const toPolicyArn = Effect.fn(function* (id: string, props: PolicyProps) {
|
|
122
|
+
const { accountId } = yield* AWSEnvironment.current;
|
|
124
123
|
const policyName = yield* toPolicyName(id, props);
|
|
125
124
|
return policyArnFromParts({
|
|
126
125
|
accountId,
|
package/src/AWS/IAM/Role.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { isResolved } from "../../Diff.ts";
|
|
|
5
5
|
import { createPhysicalName } from "../../PhysicalName.ts";
|
|
6
6
|
import * as Provider from "../../Provider.ts";
|
|
7
7
|
import { Resource } from "../../Resource.ts";
|
|
8
|
-
import type { Providers } from "../Providers.ts";
|
|
9
8
|
import {
|
|
10
9
|
createInternalTags,
|
|
11
10
|
createTagsList,
|
|
@@ -14,6 +13,7 @@ import {
|
|
|
14
13
|
} from "../../Tags.ts";
|
|
15
14
|
import type { AccountID } from "../Environment.ts";
|
|
16
15
|
import { AWSEnvironment } from "../Environment.ts";
|
|
16
|
+
import type { Providers } from "../Providers.ts";
|
|
17
17
|
import type { PolicyDocument } from "./Policy.ts";
|
|
18
18
|
import {
|
|
19
19
|
parsePolicyDocument,
|
|
@@ -431,7 +431,7 @@ export const RoleProvider = () =>
|
|
|
431
431
|
const liveRole = yield* iam.getRole({ RoleName: roleName });
|
|
432
432
|
const roleArn = (liveRole.Role?.Arn ??
|
|
433
433
|
observedRole.Role?.Arn ??
|
|
434
|
-
`arn:aws:iam::${(yield* AWSEnvironment).accountId}:role/${roleName}`) as RoleArn;
|
|
434
|
+
`arn:aws:iam::${(yield* AWSEnvironment.current).accountId}:role/${roleName}`) as RoleArn;
|
|
435
435
|
|
|
436
436
|
yield* session.note(roleArn);
|
|
437
437
|
return {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as iam from "@distilled.cloud/aws/iam";
|
|
2
2
|
import * as Effect from "effect/Effect";
|
|
3
3
|
import * as Redacted from "effect/Redacted";
|
|
4
|
-
import { AWSEnvironment } from "../Environment.ts";
|
|
5
4
|
import { isResolved } from "../../Diff.ts";
|
|
6
5
|
import * as Provider from "../../Provider.ts";
|
|
7
6
|
import { Resource } from "../../Resource.ts";
|
|
8
|
-
import type { Providers } from "../Providers.ts";
|
|
9
7
|
import { createInternalTags, diffTags, hasTags } from "../../Tags.ts";
|
|
8
|
+
import { AWSEnvironment } from "../Environment.ts";
|
|
9
|
+
import type { Providers } from "../Providers.ts";
|
|
10
10
|
import { toTagRecord, unwrapRedactedString } from "./common.ts";
|
|
11
11
|
|
|
12
12
|
export interface SAMLProviderProps {
|
|
@@ -107,7 +107,7 @@ export const SAMLProviderProvider = () =>
|
|
|
107
107
|
...internalTags,
|
|
108
108
|
...news.tags,
|
|
109
109
|
};
|
|
110
|
-
const accountId = (yield* AWSEnvironment).accountId;
|
|
110
|
+
const accountId = (yield* AWSEnvironment.current).accountId;
|
|
111
111
|
const samlProviderArn =
|
|
112
112
|
output?.samlProviderArn ??
|
|
113
113
|
`arn:aws:iam::${accountId}:saml-provider/${news.name}`;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// required to avoid this error in consumers: "The inferred type of 'Records' cannot be named without a reference to '../../@distilled.cloud/aws/node_modules/@types/aws-lambda'. This is likely not portable. A type annotation is necessary.ts(2742)"
|
|
2
2
|
export type * as lambda from "aws-lambda";
|
|
3
3
|
|
|
4
|
-
import { Region } from "@distilled.cloud/aws/Region";
|
|
5
4
|
import * as kinesis from "@distilled.cloud/aws/kinesis";
|
|
6
5
|
import type * as lambda from "aws-lambda";
|
|
7
6
|
import * as Effect from "effect/Effect";
|
|
@@ -11,7 +10,6 @@ import { isResolved } from "../../Diff.ts";
|
|
|
11
10
|
import { createPhysicalName } from "../../PhysicalName.ts";
|
|
12
11
|
import * as Provider from "../../Provider.ts";
|
|
13
12
|
import { Resource } from "../../Resource.ts";
|
|
14
|
-
import type { Providers } from "../Providers.ts";
|
|
15
13
|
import {
|
|
16
14
|
createInternalTags,
|
|
17
15
|
diffTags,
|
|
@@ -19,6 +17,7 @@ import {
|
|
|
19
17
|
type Tags,
|
|
20
18
|
} from "../../Tags.ts";
|
|
21
19
|
import { AWSEnvironment, type AccountID } from "../Environment.ts";
|
|
20
|
+
import type { Providers } from "../Providers.ts";
|
|
22
21
|
import type { RegionID } from "../Region.ts";
|
|
23
22
|
|
|
24
23
|
export type StreamRecord = lambda.KinesisStreamRecord;
|
|
@@ -424,9 +423,6 @@ export const StreamProvider = () =>
|
|
|
424
423
|
Provider.effect(
|
|
425
424
|
Stream,
|
|
426
425
|
Effect.gen(function* () {
|
|
427
|
-
const region = yield* Region;
|
|
428
|
-
const { accountId } = yield* AWSEnvironment;
|
|
429
|
-
|
|
430
426
|
return {
|
|
431
427
|
stables: ["streamName", "streamArn"],
|
|
432
428
|
read: Effect.fn(function* ({ id, olds, output }) {
|
|
@@ -450,6 +446,7 @@ export const StreamProvider = () =>
|
|
|
450
446
|
}
|
|
451
447
|
}),
|
|
452
448
|
reconcile: Effect.fn(function* ({ id, news = {}, output, session }) {
|
|
449
|
+
const { accountId, region } = yield* AWSEnvironment.current;
|
|
453
450
|
yield* assertProvisionedProps(news);
|
|
454
451
|
|
|
455
452
|
const streamName =
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as lambda from "@distilled.cloud/aws/lambda";
|
|
2
|
-
import { Region } from "@distilled.cloud/aws/Region";
|
|
3
2
|
import * as Effect from "effect/Effect";
|
|
4
3
|
import * as Option from "effect/Option";
|
|
5
4
|
import * as Schedule from "effect/Schedule";
|
|
@@ -7,9 +6,9 @@ import * as Stream from "effect/Stream";
|
|
|
7
6
|
import { deepEqual, isResolved } from "../../Diff.ts";
|
|
8
7
|
import * as Provider from "../../Provider.ts";
|
|
9
8
|
import { Resource } from "../../Resource.ts";
|
|
10
|
-
import type { Providers } from "../Providers.ts";
|
|
11
9
|
import { createInternalTags, diffTags, hasTags } from "../../Tags.ts";
|
|
12
10
|
import { AWSEnvironment } from "../Environment.ts";
|
|
11
|
+
import type { Providers } from "../Providers.ts";
|
|
13
12
|
|
|
14
13
|
export type StartingPosition = "TRIM_HORIZON" | "LATEST" | "AT_TIMESTAMP";
|
|
15
14
|
|
|
@@ -179,9 +178,6 @@ export const EventSourceMappingProvider = () =>
|
|
|
179
178
|
Provider.effect(
|
|
180
179
|
EventSourceMapping,
|
|
181
180
|
Effect.gen(function* () {
|
|
182
|
-
const region = yield* Region;
|
|
183
|
-
const { accountId } = yield* AWSEnvironment;
|
|
184
|
-
|
|
185
181
|
const createEventSourceMappingTags = Effect.fn(function* (id: string) {
|
|
186
182
|
const internalTags = yield* createInternalTags(id);
|
|
187
183
|
return {
|
|
@@ -293,6 +289,7 @@ export const EventSourceMappingProvider = () =>
|
|
|
293
289
|
}
|
|
294
290
|
}),
|
|
295
291
|
reconcile: Effect.fn(function* ({ id, news, output, session }) {
|
|
292
|
+
const { accountId, region } = yield* AWSEnvironment.current;
|
|
296
293
|
const expectedInternalTags = yield* createEventSourceMappingTags(id);
|
|
297
294
|
const desiredTags = { ...expectedInternalTags, ...news.tags };
|
|
298
295
|
|
|
@@ -153,7 +153,7 @@ export interface Function extends Resource<
|
|
|
153
153
|
Providers
|
|
154
154
|
> {}
|
|
155
155
|
|
|
156
|
-
export type FunctionServices = Credentials | Region;
|
|
156
|
+
export type FunctionServices = Credentials | Region | AWSEnvironment;
|
|
157
157
|
|
|
158
158
|
export type FunctionShape = Main<FunctionServices>;
|
|
159
159
|
|
|
@@ -456,6 +456,7 @@ export const Function: Platform<
|
|
|
456
456
|
}
|
|
457
457
|
}),
|
|
458
458
|
serve: (handler: HttpEffect) =>
|
|
459
|
+
// @ts-ignore
|
|
459
460
|
ctx.listen(makeFunctionHttpHandler(handler)),
|
|
460
461
|
listen: ((
|
|
461
462
|
handler:
|
|
@@ -500,8 +501,7 @@ export const FunctionProvider = () =>
|
|
|
500
501
|
Function,
|
|
501
502
|
Effect.gen(function* () {
|
|
502
503
|
const stack = yield* Stack;
|
|
503
|
-
|
|
504
|
-
const region = yield* Region;
|
|
504
|
+
|
|
505
505
|
const fs = yield* FileSystem.FileSystem;
|
|
506
506
|
const virtualEntryPlugin = yield* Bundle.virtualEntryPlugin;
|
|
507
507
|
const alchemyEnv = {
|
|
@@ -530,6 +530,7 @@ export const FunctionProvider = () =>
|
|
|
530
530
|
|
|
531
531
|
const createNames = (id: string, functionName: string | undefined) =>
|
|
532
532
|
Effect.gen(function* () {
|
|
533
|
+
const { accountId, region } = yield* AWSEnvironment.current;
|
|
533
534
|
const roleName = yield* createRoleName(id);
|
|
534
535
|
const policyName = yield* createPolicyName(id);
|
|
535
536
|
const fn = yield* createFunctionName(id, functionName);
|
|
@@ -663,7 +664,6 @@ export const FunctionProvider = () =>
|
|
|
663
664
|
id: string,
|
|
664
665
|
props: FunctionProps,
|
|
665
666
|
) {
|
|
666
|
-
const handler = props.handler ?? "default";
|
|
667
667
|
const sourcemap = props.build?.output?.sourcemap ?? true;
|
|
668
668
|
const uploadSourceMap = props.uploadSourceMap ?? true;
|
|
669
669
|
|
|
@@ -885,10 +885,10 @@ export default await Effect.runPromise(handlerEffect)
|
|
|
885
885
|
if (assets) {
|
|
886
886
|
const key = yield* assets.uploadAsset(hash, archive);
|
|
887
887
|
yield* Effect.logDebug(
|
|
888
|
-
`Using S3 for code: s3://${assets.bucketName}/${key}`,
|
|
888
|
+
`Using S3 for code: s3://${yield* assets.bucketName}/${key}`,
|
|
889
889
|
);
|
|
890
890
|
return {
|
|
891
|
-
S3Bucket: assets.bucketName,
|
|
891
|
+
S3Bucket: yield* assets.bucketName,
|
|
892
892
|
S3Key: key,
|
|
893
893
|
} as const;
|
|
894
894
|
} else {
|
|
@@ -1220,6 +1220,7 @@ export default await Effect.runPromise(handlerEffect)
|
|
|
1220
1220
|
}),
|
|
1221
1221
|
|
|
1222
1222
|
precreate: Effect.fnUntraced(function* ({ id, news, session }) {
|
|
1223
|
+
const { accountId, region } = yield* AWSEnvironment.current;
|
|
1223
1224
|
const { roleName, functionName, roleArn } = yield* createNames(
|
|
1224
1225
|
id,
|
|
1225
1226
|
news.functionName,
|
|
@@ -1381,9 +1382,10 @@ export default await Effect.runPromise(handlerEffect)
|
|
|
1381
1382
|
return null as any;
|
|
1382
1383
|
}),
|
|
1383
1384
|
tail: ({ output }) => {
|
|
1384
|
-
const logGroupArn = `arn:aws:logs:${region}:${accountId}:log-group:/aws/lambda/${output.functionName}`;
|
|
1385
|
-
|
|
1386
1385
|
const runTailSession = Effect.gen(function* () {
|
|
1386
|
+
const { accountId, region } = yield* AWSEnvironment.current;
|
|
1387
|
+
|
|
1388
|
+
const logGroupArn = `arn:aws:logs:${region}:${accountId}:log-group:/aws/lambda/${output.functionName}`;
|
|
1387
1389
|
const response = yield* logs.startLiveTail({
|
|
1388
1390
|
logGroupIdentifiers: [logGroupArn],
|
|
1389
1391
|
});
|
|
@@ -90,7 +90,7 @@ export interface Permission extends Resource<
|
|
|
90
90
|
* functionName: yield* fn.functionArn(),
|
|
91
91
|
* principal: "s3.amazonaws.com",
|
|
92
92
|
* sourceArn: yield* bucket.bucketArn,
|
|
93
|
-
* sourceAccount: (yield* AWSEnvironment).accountId,
|
|
93
|
+
* sourceAccount: (yield* AWSEnvironment.current).accountId,
|
|
94
94
|
* });
|
|
95
95
|
* ```
|
|
96
96
|
*
|
package/src/AWS/Logs/LogGroup.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import * as logs from "@distilled.cloud/aws/cloudwatch-logs";
|
|
2
|
-
import { Region } from "@distilled.cloud/aws/Region";
|
|
3
2
|
import * as Effect from "effect/Effect";
|
|
4
3
|
import { isResolved } from "../../Diff.ts";
|
|
5
4
|
import { createPhysicalName } from "../../PhysicalName.ts";
|
|
6
5
|
import * as Provider from "../../Provider.ts";
|
|
7
6
|
import { Resource } from "../../Resource.ts";
|
|
8
|
-
import type { Providers } from "../Providers.ts";
|
|
9
7
|
import { createInternalTags, diffTags } from "../../Tags.ts";
|
|
10
8
|
import type { AccountID } from "../Environment.ts";
|
|
11
9
|
import { AWSEnvironment } from "../Environment.ts";
|
|
10
|
+
import type { Providers } from "../Providers.ts";
|
|
12
11
|
import type { RegionID } from "../Region.ts";
|
|
13
12
|
|
|
14
13
|
export type LogGroupName = string;
|
|
@@ -65,9 +64,6 @@ export const LogGroupProvider = () =>
|
|
|
65
64
|
Provider.effect(
|
|
66
65
|
LogGroup,
|
|
67
66
|
Effect.gen(function* () {
|
|
68
|
-
const region = yield* Region;
|
|
69
|
-
const { accountId } = yield* AWSEnvironment;
|
|
70
|
-
|
|
71
67
|
const toLogGroupName = (
|
|
72
68
|
id: string,
|
|
73
69
|
props: { logGroupName?: string } = {},
|
|
@@ -109,6 +105,7 @@ export const LogGroupProvider = () =>
|
|
|
109
105
|
};
|
|
110
106
|
}),
|
|
111
107
|
reconcile: Effect.fn(function* ({ id, news, output, session }) {
|
|
108
|
+
const { accountId, region } = yield* AWSEnvironment.current;
|
|
112
109
|
const logGroupName =
|
|
113
110
|
output?.logGroupName ?? (yield* toLogGroupName(id, news));
|
|
114
111
|
const arn = (output?.logGroupArn ??
|
package/src/AWS/Providers.ts
CHANGED
|
@@ -18,8 +18,8 @@ import * as Schedule from "effect/Schedule";
|
|
|
18
18
|
import * as HttpClientError from "effect/unstable/http/HttpClientError";
|
|
19
19
|
import { CredentialsStoreLive } from "../Auth/Credentials.ts";
|
|
20
20
|
import { Command, CommandProvider } from "../Build/Command.ts";
|
|
21
|
-
import * as Provider from "../Provider.ts";
|
|
22
21
|
import { KeyPair, KeyPairProvider } from "../KeyPair.ts";
|
|
22
|
+
import * as Provider from "../Provider.ts";
|
|
23
23
|
import { Random, RandomProvider } from "../Random.ts";
|
|
24
24
|
import * as ACM from "./ACM/index.ts";
|
|
25
25
|
import * as ApiGateway from "./ApiGateway/index.ts";
|
|
@@ -575,7 +575,7 @@ export const providers = () =>
|
|
|
575
575
|
CommandProvider(),
|
|
576
576
|
KeyPairProvider(),
|
|
577
577
|
RandomProvider(),
|
|
578
|
-
Assets.
|
|
578
|
+
Assets.AssetsLive,
|
|
579
579
|
),
|
|
580
580
|
),
|
|
581
581
|
Layer.provideMerge(Region.fromEnvironment),
|
package/src/AWS/Region.ts
CHANGED
|
@@ -1,19 +1,31 @@
|
|
|
1
1
|
import * as Region from "@distilled.cloud/aws/Region";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
2
3
|
import * as Layer from "effect/Layer";
|
|
3
4
|
import { AWSEnvironment } from "./Environment.ts";
|
|
4
5
|
|
|
5
6
|
export { AWS_REGION, type RegionID } from "./Environment.ts";
|
|
6
7
|
export { Region } from "@distilled.cloud/aws/Region";
|
|
7
8
|
|
|
8
|
-
export const of = (region: string) =>
|
|
9
|
+
export const of = (region: string) =>
|
|
10
|
+
Layer.succeed(Region.Region, Effect.succeed(region));
|
|
9
11
|
|
|
10
12
|
export const fromEnvOrElse = (region: string) =>
|
|
11
|
-
Layer.succeed(
|
|
13
|
+
Layer.succeed(
|
|
14
|
+
Region.Region,
|
|
15
|
+
Effect.succeed(process.env.AWS_REGION ?? region),
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
export const CurrentRegion = AWSEnvironment.use((env) =>
|
|
19
|
+
Effect.flatMap(env, ({ region }) => Effect.succeed(region)),
|
|
20
|
+
);
|
|
12
21
|
|
|
13
22
|
/**
|
|
14
23
|
* Derive the AWS region from the surrounding {@link AWSEnvironment}.
|
|
15
24
|
*/
|
|
16
25
|
export const fromEnvironment = Layer.effect(
|
|
17
26
|
Region.Region,
|
|
18
|
-
|
|
27
|
+
Effect.gen(function* () {
|
|
28
|
+
const env = yield* AWSEnvironment;
|
|
29
|
+
return Effect.map(env, (env) => env.region);
|
|
30
|
+
}),
|
|
19
31
|
);
|
package/src/AWS/S3/Bucket.ts
CHANGED
|
@@ -5,15 +5,17 @@ import * as Arr from "effect/Array";
|
|
|
5
5
|
import * as Effect from "effect/Effect";
|
|
6
6
|
import * as Order from "effect/Order";
|
|
7
7
|
import * as Schedule from "effect/Schedule";
|
|
8
|
+
import type { HttpClient } from "effect/unstable/http";
|
|
8
9
|
import type { ScopedPlanStatusSession } from "../../Cli/Cli.ts";
|
|
9
10
|
import { isResolved } from "../../Diff.ts";
|
|
10
11
|
import { createPhysicalName } from "../../PhysicalName.ts";
|
|
11
12
|
import * as Provider from "../../Provider.ts";
|
|
12
13
|
import { Resource, type ResourceBinding } from "../../Resource.ts";
|
|
13
|
-
import type { Providers } from "../Providers.ts";
|
|
14
14
|
import { diffTags } from "../../Tags.ts";
|
|
15
|
+
import type { Credentials } from "../Credentials.ts";
|
|
15
16
|
import { AWSEnvironment, type AccountID } from "../Environment.ts";
|
|
16
17
|
import type { PolicyStatement } from "../IAM/Policy.ts";
|
|
18
|
+
import type { Providers } from "../Providers.ts";
|
|
17
19
|
import type { RegionID } from "../Region.ts";
|
|
18
20
|
|
|
19
21
|
export type BucketName = string;
|
|
@@ -258,8 +260,8 @@ export const BucketProvider = () =>
|
|
|
258
260
|
id: string;
|
|
259
261
|
news: BucketProps;
|
|
260
262
|
}) {
|
|
261
|
-
const region = yield*
|
|
262
|
-
const { accountId } = yield* AWSEnvironment;
|
|
263
|
+
const { region } = yield* AWSEnvironment.current;
|
|
264
|
+
const { accountId } = yield* AWSEnvironment.current;
|
|
263
265
|
const bucketName = yield* createBucketName(id, news);
|
|
264
266
|
|
|
265
267
|
yield* Effect.logInfo(
|
|
@@ -343,18 +345,17 @@ export const BucketProvider = () =>
|
|
|
343
345
|
|
|
344
346
|
const fetchBucketTags = (
|
|
345
347
|
bucketName: string,
|
|
346
|
-
): Effect.Effect<
|
|
348
|
+
): Effect.Effect<
|
|
349
|
+
Record<string, string>,
|
|
350
|
+
never,
|
|
351
|
+
Credentials | HttpClient.HttpClient | Region
|
|
352
|
+
> =>
|
|
347
353
|
s3.getBucketTagging({ Bucket: bucketName }).pipe(
|
|
348
|
-
Effect.map(
|
|
349
|
-
(r) =>
|
|
350
|
-
Object.fromEntries(
|
|
351
|
-
(r.TagSet ?? []).map((t) => [t.Key!, t.Value!]),
|
|
352
|
-
) as Record<string, string>,
|
|
353
|
-
),
|
|
354
|
-
Effect.catchTag("NoSuchTagSet", () =>
|
|
355
|
-
Effect.succeed({} as Record<string, string>),
|
|
354
|
+
Effect.map((r) =>
|
|
355
|
+
Object.fromEntries((r.TagSet ?? []).map((t) => [t.Key!, t.Value!])),
|
|
356
356
|
),
|
|
357
|
-
Effect.
|
|
357
|
+
Effect.catchTag("NoSuchTagSet", () => Effect.succeed({})),
|
|
358
|
+
Effect.catch(() => Effect.succeed({})),
|
|
358
359
|
);
|
|
359
360
|
|
|
360
361
|
const syncBucketTags = Effect.fnUntraced(function* ({
|
|
@@ -555,8 +556,7 @@ export const BucketProvider = () =>
|
|
|
555
556
|
read: Effect.fn(function* ({ id, olds, output }) {
|
|
556
557
|
const bucketName =
|
|
557
558
|
output?.bucketName ?? (yield* createBucketName(id, olds ?? {}));
|
|
558
|
-
const region = yield*
|
|
559
|
-
const { accountId } = yield* AWSEnvironment;
|
|
559
|
+
const { accountId, region } = yield* AWSEnvironment.current;
|
|
560
560
|
const exists = yield* s3.headBucket({ Bucket: bucketName }).pipe(
|
|
561
561
|
Effect.map(() => true),
|
|
562
562
|
Effect.catchTag("NotFound", () => Effect.succeed(false)),
|
package/src/AWS/SQS/Queue.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Region } from "@distilled.cloud/aws/Region";
|
|
2
1
|
import * as sqs from "@distilled.cloud/aws/sqs";
|
|
3
2
|
import * as Effect from "effect/Effect";
|
|
4
3
|
import * as Schedule from "effect/Schedule";
|
|
@@ -161,8 +160,6 @@ export const QueueProvider = () =>
|
|
|
161
160
|
Provider.effect(
|
|
162
161
|
Queue,
|
|
163
162
|
Effect.gen(function* () {
|
|
164
|
-
const region = yield* Region;
|
|
165
|
-
const { accountId } = yield* AWSEnvironment;
|
|
166
163
|
const createQueueName = Effect.fnUntraced(function* (
|
|
167
164
|
id: string,
|
|
168
165
|
props: {
|
|
@@ -216,6 +213,7 @@ export const QueueProvider = () =>
|
|
|
216
213
|
return Queue.Provider.of({
|
|
217
214
|
stables: ["queueName", "queueUrl", "queueArn"],
|
|
218
215
|
read: Effect.fn(function* ({ id, olds, output }) {
|
|
216
|
+
const { accountId, region } = yield* AWSEnvironment.current;
|
|
219
217
|
const queueName =
|
|
220
218
|
output?.queueName ?? (yield* createQueueName(id, olds ?? {}));
|
|
221
219
|
const url = yield* sqs.getQueueUrl({ QueueName: queueName }).pipe(
|
|
@@ -259,6 +257,7 @@ export const QueueProvider = () =>
|
|
|
259
257
|
session,
|
|
260
258
|
bindings,
|
|
261
259
|
}) {
|
|
260
|
+
const { accountId, region } = yield* AWSEnvironment.current;
|
|
262
261
|
const queueName =
|
|
263
262
|
output?.queueName ?? (yield* createQueueName(id, news));
|
|
264
263
|
const queueArn =
|
package/src/AWS/index.ts
CHANGED
package/src/Apply.ts
CHANGED
|
@@ -1544,7 +1544,20 @@ const collectGarbage = Effect.fnUntraced(function* (
|
|
|
1544
1544
|
});
|
|
1545
1545
|
}
|
|
1546
1546
|
|
|
1547
|
-
|
|
1547
|
+
// Honor `retain` for the old generation of a replacement, mirroring
|
|
1548
|
+
// the orphan-delete path above. Delete-node retain is already
|
|
1549
|
+
// handled with an early return; this guards the replaced
|
|
1550
|
+
// old-generation physical delete.
|
|
1551
|
+
const retainOldGeneration =
|
|
1552
|
+
!isDeleteNode(node) && node.removalPolicy === "retain";
|
|
1553
|
+
|
|
1554
|
+
if (retainOldGeneration) {
|
|
1555
|
+
yield* scopedSession.note(
|
|
1556
|
+
"Retaining replaced resource (removal policy: retain)...",
|
|
1557
|
+
);
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
if (attr !== undefined && !retainOldGeneration) {
|
|
1548
1561
|
yield* provider
|
|
1549
1562
|
.delete({
|
|
1550
1563
|
id: logicalId,
|
|
@@ -1573,7 +1586,9 @@ const collectGarbage = Effect.fnUntraced(function* (
|
|
|
1573
1586
|
});
|
|
1574
1587
|
yield* report("deleted");
|
|
1575
1588
|
} else {
|
|
1576
|
-
|
|
1589
|
+
if (!retainOldGeneration) {
|
|
1590
|
+
yield* scopedSession.note("Cleaning up replaced resource...");
|
|
1591
|
+
}
|
|
1577
1592
|
if (
|
|
1578
1593
|
node.old.status === "replacing" ||
|
|
1579
1594
|
node.old.status === "replaced"
|
|
@@ -1613,7 +1628,11 @@ const collectGarbage = Effect.fnUntraced(function* (
|
|
|
1613
1628
|
removalPolicy: node.removalPolicy,
|
|
1614
1629
|
});
|
|
1615
1630
|
}
|
|
1616
|
-
yield* scopedSession.note(
|
|
1631
|
+
yield* scopedSession.note(
|
|
1632
|
+
retainOldGeneration
|
|
1633
|
+
? "Replaced resource retained."
|
|
1634
|
+
: "Replaced resource cleanup complete.",
|
|
1635
|
+
);
|
|
1617
1636
|
}
|
|
1618
1637
|
}),
|
|
1619
1638
|
));
|
package/src/Auth/AuthProvider.ts
CHANGED
package/src/Auth/Profile.ts
CHANGED
|
@@ -32,12 +32,12 @@ export class AlchemyConfig extends Context.Service<
|
|
|
32
32
|
{
|
|
33
33
|
version: typeof CONFIG_VERSION;
|
|
34
34
|
profiles: {
|
|
35
|
-
[profileName: string]:
|
|
35
|
+
[profileName: string]: AlchemyProfileProviders;
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
>()("Alchemy::Profiles") {}
|
|
39
39
|
|
|
40
|
-
export interface
|
|
40
|
+
export interface AlchemyProfileProviders {
|
|
41
41
|
[providerName: string]: {
|
|
42
42
|
/**
|
|
43
43
|
* The method used to login to the provider. Different providers may use different methods, but common ones are:
|
|
@@ -64,7 +64,7 @@ const emptyConfig = (): AlchemyConfig["Service"] => ({
|
|
|
64
64
|
* {@link ProfileLive} when the layer is built, freeing call sites from
|
|
65
65
|
* having to thread `FileSystem` through their own Effects.
|
|
66
66
|
*
|
|
67
|
-
* Use {@link
|
|
67
|
+
* Use {@link AlchemyProfile} directly when you need profile helpers — yield it
|
|
68
68
|
* from your `Effect.gen` and call its methods (each has `R = never`).
|
|
69
69
|
*/
|
|
70
70
|
export interface ProfileService {
|
|
@@ -74,10 +74,10 @@ export interface ProfileService {
|
|
|
74
74
|
) => Effect.Effect<void, PlatformError>;
|
|
75
75
|
readonly getProfile: (
|
|
76
76
|
name: string,
|
|
77
|
-
) => Effect.Effect<
|
|
77
|
+
) => Effect.Effect<AlchemyProfileProviders | undefined>;
|
|
78
78
|
readonly setProfile: (
|
|
79
79
|
name: string,
|
|
80
|
-
profile:
|
|
80
|
+
profile: AlchemyProfileProviders,
|
|
81
81
|
) => Effect.Effect<void, PlatformError>;
|
|
82
82
|
readonly deleteProfile: (
|
|
83
83
|
name: string,
|
|
@@ -89,19 +89,20 @@ export interface ProfileService {
|
|
|
89
89
|
) => Effect.Effect<Config, AuthError | PlatformError>;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
export class
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
export class AlchemyProfile extends Context.Service<
|
|
93
|
+
AlchemyProfile,
|
|
94
|
+
ProfileService
|
|
95
|
+
>()("Alchemy::Profile") {}
|
|
95
96
|
|
|
96
97
|
/**
|
|
97
|
-
* Layer that builds the {@link
|
|
98
|
+
* Layer that builds the {@link AlchemyProfile} service. Captures the
|
|
98
99
|
* {@link FileSystem.FileSystem} dependency at layer-build time, so any
|
|
99
|
-
* Effect that yields {@link
|
|
100
|
+
* Effect that yields {@link AlchemyProfile} ends up with `R = Profile` (no
|
|
100
101
|
* `FileSystem` leak). Provide this once at the top of your runtime
|
|
101
102
|
* (alongside `PlatformServices` / `NodeContext`).
|
|
102
103
|
*/
|
|
103
104
|
export const ProfileLive = Layer.effect(
|
|
104
|
-
|
|
105
|
+
AlchemyProfile,
|
|
105
106
|
Effect.gen(function* () {
|
|
106
107
|
const fs = yield* FileSystem.FileSystem;
|
|
107
108
|
|
|
@@ -136,7 +137,7 @@ export const ProfileLive = Layer.effect(
|
|
|
136
137
|
const getProfile = (name: string) =>
|
|
137
138
|
readConfig.pipe(Effect.map((config) => config.profiles[name]));
|
|
138
139
|
|
|
139
|
-
const setProfile = (name: string, profile:
|
|
140
|
+
const setProfile = (name: string, profile: AlchemyProfileProviders) =>
|
|
140
141
|
readConfig.pipe(
|
|
141
142
|
Effect.tap((config) =>
|
|
142
143
|
Effect.sync(() => (config.profiles[name] = profile)),
|