alchemy 2.0.0-beta.52 → 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 +8 -8
- 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/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.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/AiGateway/AiGateway.d.ts.map +1 -1
- package/lib/Cloudflare/AiGateway/AiGateway.js +185 -180
- 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/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/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/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/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/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/Workers/Assets.js +2 -2
- package/lib/Cloudflare/Workers/Assets.js.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 +3 -2
- package/lib/Cloudflare/Workers/LocalWorkerProvider.js.map +1 -1
- package/lib/Cloudflare/Workers/Worker.d.ts +2 -2
- package/lib/Cloudflare/Workers/Worker.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Worker.js +111 -61
- 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 +2 -14
- package/lib/Cloudflare/Workers/WorkerAsyncBindings.js.map +1 -1
- package/lib/Cloudflare/Workers/Workflow.js +6 -6
- package/lib/Cloudflare/Workers/Workflow.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/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/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/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/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +12 -11
- 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/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 +2 -5
- 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/AiGateway/AiGateway.ts +219 -218
- package/src/Cloudflare/ApiToken/AccountApiToken.ts +142 -153
- package/src/Cloudflare/ApiToken/UserApiToken.ts +105 -121
- package/src/Cloudflare/CloudflareEnvironment.ts +10 -5
- package/src/Cloudflare/Container/ContainerApplication.ts +32 -29
- 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/KV/KVNamespace.ts +139 -138
- 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/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/Workers/Assets.ts +2 -2
- package/src/Cloudflare/Workers/LocalWorkerProvider.ts +3 -2
- package/src/Cloudflare/Workers/Worker.ts +323 -269
- package/src/Cloudflare/Workers/WorkerAsyncBindings.ts +7 -21
- package/src/Cloudflare/Workers/Workflow.ts +8 -8
- package/src/Cloudflare/Zaraz/ZarazConfig.ts +87 -99
- package/src/Cloudflare/Zone/Zone.ts +36 -33
- 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/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/Server/SQSQueueEventSource.ts +3 -2
- package/src/Stack.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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alchemy",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.53",
|
|
4
4
|
"homepage": "https://alchemy.run",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Sam Goodwin <sam@alchemy.run>",
|
|
@@ -288,18 +288,18 @@
|
|
|
288
288
|
"access": "public"
|
|
289
289
|
},
|
|
290
290
|
"dependencies": {
|
|
291
|
-
"@alchemy.run/node-utils": "0.0.
|
|
291
|
+
"@alchemy.run/node-utils": "0.0.5",
|
|
292
292
|
"@aws-sdk/credential-providers": "^3.0.0",
|
|
293
293
|
"@clack/prompts": "^0.11.0",
|
|
294
|
-
"@distilled.cloud/aws": "^0.
|
|
295
|
-
"@distilled.cloud/axiom": "^0.
|
|
296
|
-
"@distilled.cloud/cloudflare": "^0.
|
|
297
|
-
"@distilled.cloud/cloudflare-rolldown-plugin": "0.10.
|
|
298
|
-
"@distilled.cloud/cloudflare-runtime": "0.10.
|
|
299
|
-
"@distilled.cloud/cloudflare-vite-plugin": "0.10.
|
|
300
|
-
"@distilled.cloud/core": "^0.
|
|
301
|
-
"@distilled.cloud/neon": "^0.
|
|
302
|
-
"@distilled.cloud/planetscale": "^0.
|
|
294
|
+
"@distilled.cloud/aws": "^0.24.5",
|
|
295
|
+
"@distilled.cloud/axiom": "^0.24.5",
|
|
296
|
+
"@distilled.cloud/cloudflare": "^0.24.5",
|
|
297
|
+
"@distilled.cloud/cloudflare-rolldown-plugin": "0.10.11",
|
|
298
|
+
"@distilled.cloud/cloudflare-runtime": "0.10.11",
|
|
299
|
+
"@distilled.cloud/cloudflare-vite-plugin": "0.10.11",
|
|
300
|
+
"@distilled.cloud/core": "^0.24.5",
|
|
301
|
+
"@distilled.cloud/neon": "^0.24.5",
|
|
302
|
+
"@distilled.cloud/planetscale": "^0.24.5",
|
|
303
303
|
"@effect/vitest": ">=4.0.0-beta.78 || >=4.0.0",
|
|
304
304
|
"@libsql/client": "^0.17.0",
|
|
305
305
|
"@octokit/rest": "^22.0.1",
|
|
@@ -347,6 +347,7 @@
|
|
|
347
347
|
"tsdown": "^0.15.4",
|
|
348
348
|
"tsx": "^4.20.6",
|
|
349
349
|
"typescript": "^6.0.3",
|
|
350
|
+
"uuid": "^14.0.0",
|
|
350
351
|
"ws": "^8.20.0"
|
|
351
352
|
},
|
|
352
353
|
"peerDependencies": {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Region } from "@distilled.cloud/aws/Region";
|
|
2
1
|
import * as ag from "@distilled.cloud/aws/api-gateway";
|
|
3
2
|
import * as Effect from "effect/Effect";
|
|
4
3
|
import * as Redacted from "effect/Redacted";
|
|
@@ -7,9 +6,10 @@ import { deepEqual, isResolved } from "../../Diff.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 { createInternalTags, hasAlchemyTags, tagRecord } from "../../Tags.ts";
|
|
10
|
+
import type { Providers } from "../Providers.ts";
|
|
12
11
|
|
|
12
|
+
import { AWSEnvironment } from "../Environment.ts";
|
|
13
13
|
import { apiKeyArn, syncTags } from "./common.ts";
|
|
14
14
|
|
|
15
15
|
export interface ApiKeyProps {
|
|
@@ -110,8 +110,6 @@ export const ApiKeyProvider = () =>
|
|
|
110
110
|
Provider.effect(
|
|
111
111
|
ApiKeyResource,
|
|
112
112
|
Effect.gen(function* () {
|
|
113
|
-
const awsRegion = yield* Region;
|
|
114
|
-
|
|
115
113
|
return {
|
|
116
114
|
stables: ["id"] as const,
|
|
117
115
|
diff: Effect.fn(function* ({ news: newsIn, olds }) {
|
|
@@ -144,6 +142,7 @@ export const ApiKeyProvider = () =>
|
|
|
144
142
|
};
|
|
145
143
|
}),
|
|
146
144
|
reconcile: Effect.fn(function* ({ id, news: newsIn, output, session }) {
|
|
145
|
+
const { region } = yield* AWSEnvironment.current;
|
|
147
146
|
if (!isResolved(newsIn)) {
|
|
148
147
|
return yield* Effect.die("ApiKey props were not resolved");
|
|
149
148
|
}
|
|
@@ -246,7 +245,7 @@ export const ApiKeyProvider = () =>
|
|
|
246
245
|
const observedTags = tagRecord(observed.tags);
|
|
247
246
|
if (!deepEqual(observedTags, desiredTags)) {
|
|
248
247
|
yield* syncTags({
|
|
249
|
-
resourceArn: apiKeyArn(
|
|
248
|
+
resourceArn: apiKeyArn(region, apiKeyId),
|
|
250
249
|
oldTags: observedTags,
|
|
251
250
|
newTags: desiredTags,
|
|
252
251
|
});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Region } from "@distilled.cloud/aws/Region";
|
|
2
1
|
import * as ag from "@distilled.cloud/aws/api-gateway";
|
|
3
2
|
import * as Effect from "effect/Effect";
|
|
4
3
|
import { deepEqual, isResolved } from "../../Diff.ts";
|
|
@@ -6,9 +5,10 @@ import type { Input } from "../../Input.ts";
|
|
|
6
5
|
import { createPhysicalName } from "../../PhysicalName.ts";
|
|
7
6
|
import * as Provider from "../../Provider.ts";
|
|
8
7
|
import { Resource } from "../../Resource.ts";
|
|
9
|
-
import type { Providers } from "../Providers.ts";
|
|
10
8
|
import { createInternalTags, tagRecord } from "../../Tags.ts";
|
|
9
|
+
import type { Providers } from "../Providers.ts";
|
|
11
10
|
|
|
11
|
+
import { AWSEnvironment } from "../Environment.ts";
|
|
12
12
|
import { restApiArn, retryOnApiStatusUpdating, syncTags } from "./common.ts";
|
|
13
13
|
|
|
14
14
|
export interface RestApiProps {
|
|
@@ -299,8 +299,6 @@ export const RestApiProvider = () =>
|
|
|
299
299
|
Provider.effect(
|
|
300
300
|
RestApi,
|
|
301
301
|
Effect.gen(function* () {
|
|
302
|
-
const awsRegion = yield* Region;
|
|
303
|
-
|
|
304
302
|
return {
|
|
305
303
|
stables: ["restApiId", "rootResourceId"] as const,
|
|
306
304
|
diff: Effect.fn(function* ({ news: newsIn, olds }) {
|
|
@@ -355,7 +353,7 @@ export const RestApiProvider = () =>
|
|
|
355
353
|
const news = newsIn as RestApiProps;
|
|
356
354
|
const name = yield* generatedName(id, news);
|
|
357
355
|
const internalTags = yield* createInternalTags(id);
|
|
358
|
-
const allTags = { ...
|
|
356
|
+
const allTags = { ...news.tags, ...internalTags };
|
|
359
357
|
const created = yield* retryOnApiStatusUpdating(
|
|
360
358
|
ag.createRestApi({
|
|
361
359
|
name,
|
|
@@ -383,6 +381,7 @@ export const RestApiProvider = () =>
|
|
|
383
381
|
return snapshotFromApi(full);
|
|
384
382
|
}),
|
|
385
383
|
reconcile: Effect.fn(function* ({ id, news: newsIn, output, session }) {
|
|
384
|
+
const { region } = yield* AWSEnvironment.current;
|
|
386
385
|
if (!isResolved(newsIn)) {
|
|
387
386
|
return yield* Effect.die("RestApi props were not resolved");
|
|
388
387
|
}
|
|
@@ -434,7 +433,7 @@ export const RestApiProvider = () =>
|
|
|
434
433
|
const internalTags = yield* createInternalTags(id);
|
|
435
434
|
const desiredTags = { ...news.tags, ...internalTags };
|
|
436
435
|
if (!deepEqual(observedSnapshot.tags, desiredTags)) {
|
|
437
|
-
const arn = restApiArn(
|
|
436
|
+
const arn = restApiArn(region, output.restApiId);
|
|
438
437
|
yield* syncTags({
|
|
439
438
|
resourceArn: arn,
|
|
440
439
|
oldTags: observedSnapshot.tags,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Region } from "@distilled.cloud/aws/Region";
|
|
2
1
|
import * as ag from "@distilled.cloud/aws/api-gateway";
|
|
3
2
|
import * as Effect from "effect/Effect";
|
|
4
3
|
import { deepEqual, isResolved } from "../../Diff.ts";
|
|
5
4
|
import type { Input } from "../../Input.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 } from "../../Tags.ts";
|
|
8
|
+
import type { Providers } from "../Providers.ts";
|
|
10
9
|
|
|
10
|
+
import { AWSEnvironment } from "../Environment.ts";
|
|
11
11
|
import type { RestApi } from "./RestApi.ts";
|
|
12
12
|
import { retryOnApiStatusUpdating, stageArn, syncTags } from "./common.ts";
|
|
13
13
|
|
|
@@ -527,8 +527,6 @@ export const StageProvider = () =>
|
|
|
527
527
|
Provider.effect(
|
|
528
528
|
StageResource,
|
|
529
529
|
Effect.gen(function* () {
|
|
530
|
-
const awsRegion = yield* Region;
|
|
531
|
-
|
|
532
530
|
return {
|
|
533
531
|
stables: ["restApiId", "stageName"] as const,
|
|
534
532
|
diff: Effect.fn(function* ({ news: newsIn, olds }) {
|
|
@@ -557,6 +555,7 @@ export const StageProvider = () =>
|
|
|
557
555
|
return snapshotStage(s, output.restApiId, s.stageName);
|
|
558
556
|
}),
|
|
559
557
|
reconcile: Effect.fn(function* ({ id, news: newsIn, output, session }) {
|
|
558
|
+
const { region } = yield* AWSEnvironment.current;
|
|
560
559
|
if (!isResolved(newsIn)) {
|
|
561
560
|
return yield* Effect.die("Stage props were not resolved");
|
|
562
561
|
}
|
|
@@ -626,7 +625,7 @@ export const StageProvider = () =>
|
|
|
626
625
|
|
|
627
626
|
// Sync tags — observed ↔ desired.
|
|
628
627
|
if (!deepEqual(observedSnapshot.tags, desiredTags)) {
|
|
629
|
-
const arn = stageArn(
|
|
628
|
+
const arn = stageArn(region, restApiId, stageName);
|
|
630
629
|
yield* syncTags({
|
|
631
630
|
resourceArn: arn,
|
|
632
631
|
oldTags: observedSnapshot.tags,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Region } from "@distilled.cloud/aws/Region";
|
|
2
1
|
import * as ag from "@distilled.cloud/aws/api-gateway";
|
|
3
2
|
import * as Effect from "effect/Effect";
|
|
4
3
|
import { deepEqual, 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, tagRecord } from "../../Tags.ts";
|
|
8
|
+
import type { Providers } from "../Providers.ts";
|
|
10
9
|
|
|
10
|
+
import { AWSEnvironment } from "../Environment.ts";
|
|
11
11
|
import { syncTags, usagePlanArn } from "./common.ts";
|
|
12
12
|
|
|
13
13
|
export interface UsagePlanProps {
|
|
@@ -234,8 +234,6 @@ export const UsagePlanProvider = () =>
|
|
|
234
234
|
Provider.effect(
|
|
235
235
|
UsagePlanResource,
|
|
236
236
|
Effect.gen(function* () {
|
|
237
|
-
const awsRegion = yield* Region;
|
|
238
|
-
|
|
239
237
|
return {
|
|
240
238
|
stables: ["id"] as const,
|
|
241
239
|
diff: Effect.fn(function* ({ news: newsIn, olds }) {
|
|
@@ -266,6 +264,7 @@ export const UsagePlanProvider = () =>
|
|
|
266
264
|
};
|
|
267
265
|
}),
|
|
268
266
|
reconcile: Effect.fn(function* ({ id, news: newsIn, output, session }) {
|
|
267
|
+
const { region } = yield* AWSEnvironment.current;
|
|
269
268
|
if (!isResolved(newsIn)) {
|
|
270
269
|
return yield* Effect.die("UsagePlan props were not resolved");
|
|
271
270
|
}
|
|
@@ -333,7 +332,7 @@ export const UsagePlanProvider = () =>
|
|
|
333
332
|
const observedTags = tagRecord(observed.tags);
|
|
334
333
|
if (!deepEqual(observedTags, desiredTags)) {
|
|
335
334
|
yield* syncTags({
|
|
336
|
-
resourceArn: usagePlanArn(
|
|
335
|
+
resourceArn: usagePlanArn(region, planId),
|
|
337
336
|
oldTags: observedTags,
|
|
338
337
|
newTags: desiredTags,
|
|
339
338
|
});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Region } from "@distilled.cloud/aws/Region";
|
|
2
1
|
import * as ag from "@distilled.cloud/aws/api-gateway";
|
|
3
2
|
import * as Effect from "effect/Effect";
|
|
4
3
|
import * as Schedule from "effect/Schedule";
|
|
@@ -6,9 +5,10 @@ import { deepEqual, isResolved } from "../../Diff.ts";
|
|
|
6
5
|
import { createPhysicalName } from "../../PhysicalName.ts";
|
|
7
6
|
import * as Provider from "../../Provider.ts";
|
|
8
7
|
import { Resource } from "../../Resource.ts";
|
|
9
|
-
import type { Providers } from "../Providers.ts";
|
|
10
8
|
import { createInternalTags, tagRecord } from "../../Tags.ts";
|
|
9
|
+
import type { Providers } from "../Providers.ts";
|
|
11
10
|
|
|
11
|
+
import { AWSEnvironment } from "../Environment.ts";
|
|
12
12
|
import { syncTags, vpcLinkArn } from "./common.ts";
|
|
13
13
|
|
|
14
14
|
export interface VpcLinkProps {
|
|
@@ -96,8 +96,6 @@ export const VpcLinkProvider = () =>
|
|
|
96
96
|
Provider.effect(
|
|
97
97
|
VpcLinkResource,
|
|
98
98
|
Effect.gen(function* () {
|
|
99
|
-
const awsRegion = yield* Region;
|
|
100
|
-
|
|
101
99
|
return {
|
|
102
100
|
stables: ["vpcLinkId"] as const,
|
|
103
101
|
diff: Effect.fn(function* ({ news: newsIn, olds }) {
|
|
@@ -127,7 +125,7 @@ export const VpcLinkProvider = () =>
|
|
|
127
125
|
const name = yield* generatedName(id, news);
|
|
128
126
|
const internalTags = yield* createInternalTags(id);
|
|
129
127
|
const desiredTags = { ...news.tags, ...internalTags };
|
|
130
|
-
|
|
128
|
+
const { region } = yield* AWSEnvironment.current;
|
|
131
129
|
// Observe — fetch the live VPC link if we have a cached id.
|
|
132
130
|
// We never trust `output.description`/etc. for diffing; the
|
|
133
131
|
// observed cloud state drives every sync below.
|
|
@@ -186,7 +184,7 @@ export const VpcLinkProvider = () =>
|
|
|
186
184
|
const observedTags = tagRecord(observed.tags);
|
|
187
185
|
if (!deepEqual(observedTags, desiredTags)) {
|
|
188
186
|
yield* syncTags({
|
|
189
|
-
resourceArn: vpcLinkArn(
|
|
187
|
+
resourceArn: vpcLinkArn(region, vpcLinkId),
|
|
190
188
|
oldTags: observedTags,
|
|
191
189
|
newTags: desiredTags,
|
|
192
190
|
});
|
package/src/AWS/Assets.ts
CHANGED
|
@@ -5,9 +5,14 @@ import * as Context from "effect/Context";
|
|
|
5
5
|
import * as Effect from "effect/Effect";
|
|
6
6
|
import * as Layer from "effect/Layer";
|
|
7
7
|
import * as Option from "effect/Option";
|
|
8
|
+
import * as Stream from "effect/Stream";
|
|
8
9
|
import type { HttpClient } from "effect/unstable/http/HttpClient";
|
|
10
|
+
import { AWSEnvironment } from "./Environment.ts";
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Tag key used to identify the alchemy assets bucket.
|
|
14
|
+
*/
|
|
15
|
+
export const ASSETS_BUCKET_TAG = "alchemy::assets-bucket";
|
|
11
16
|
|
|
12
17
|
/**
|
|
13
18
|
* Error type for Assets service operations.
|
|
@@ -27,7 +32,11 @@ export type AssetsError =
|
|
|
27
32
|
/**
|
|
28
33
|
* Requirements for Assets operations (S3 operations need these).
|
|
29
34
|
*/
|
|
30
|
-
export type AssetsRequirements =
|
|
35
|
+
export type AssetsRequirements =
|
|
36
|
+
| Region
|
|
37
|
+
| Credentials
|
|
38
|
+
| HttpClient
|
|
39
|
+
| AWSEnvironment;
|
|
31
40
|
|
|
32
41
|
export class Assets extends Context.Service<
|
|
33
42
|
Assets,
|
|
@@ -35,7 +44,7 @@ export class Assets extends Context.Service<
|
|
|
35
44
|
/**
|
|
36
45
|
* The name of the assets bucket.
|
|
37
46
|
*/
|
|
38
|
-
readonly bucketName: string
|
|
47
|
+
readonly bucketName: Effect.Effect<string, never, AssetsRequirements>;
|
|
39
48
|
|
|
40
49
|
/**
|
|
41
50
|
* Upload an asset to the assets bucket.
|
|
@@ -60,123 +69,167 @@ export class Assets extends Context.Service<
|
|
|
60
69
|
hash: string,
|
|
61
70
|
) => Effect.Effect<boolean, AssetsError, AssetsRequirements>;
|
|
62
71
|
}
|
|
63
|
-
>()("AWS::Assets") {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
* S3 key prefix for Lambda function code assets.
|
|
67
|
-
*/
|
|
68
|
-
const LAMBDA_PREFIX = "lambda";
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Generate the S3 key for a Lambda asset.
|
|
72
|
-
*/
|
|
73
|
-
const getLambdaAssetKey = (hash: string) => `${LAMBDA_PREFIX}/${hash}.zip`;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Look up the assets bucket by scanning for the bootstrap tags.
|
|
77
|
-
* Returns Option.some(bucketName) if found, Option.none() otherwise.
|
|
78
|
-
*/
|
|
79
|
-
export { lookupAssetsBucket };
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Create the Assets service implementation for a given bucket.
|
|
83
|
-
*/
|
|
84
|
-
const createAssetsService = (bucketName: string): typeof Assets.Service => ({
|
|
85
|
-
bucketName,
|
|
86
|
-
uploadAsset: (hash: string, content: Uint8Array) => {
|
|
87
|
-
const key = getLambdaAssetKey(hash);
|
|
88
|
-
|
|
89
|
-
return Effect.gen(function* () {
|
|
90
|
-
// Check if asset already exists
|
|
91
|
-
const exists = yield* s3
|
|
92
|
-
.headObject({ Bucket: bucketName, Key: key })
|
|
93
|
-
.pipe(
|
|
94
|
-
Effect.map(() => true),
|
|
95
|
-
Effect.catchTag("NotFound", () => Effect.succeed(false)),
|
|
96
|
-
);
|
|
97
|
-
|
|
98
|
-
if (exists) {
|
|
99
|
-
yield* Effect.logDebug(
|
|
100
|
-
`Asset already exists: s3://${bucketName}/${key}`,
|
|
101
|
-
);
|
|
102
|
-
return key;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// Upload the asset
|
|
106
|
-
yield* s3.putObject({
|
|
107
|
-
Bucket: bucketName,
|
|
108
|
-
Key: key,
|
|
109
|
-
Body: content,
|
|
110
|
-
ContentType: "application/zip",
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
yield* Effect.logDebug(`Uploaded asset: s3://${bucketName}/${key}`);
|
|
114
|
-
return key;
|
|
115
|
-
}).pipe(
|
|
116
|
-
Effect.mapError(
|
|
117
|
-
(err): AssetsError => ({
|
|
118
|
-
_tag: "AssetsUploadError",
|
|
119
|
-
message: `Failed to upload asset ${key}`,
|
|
120
|
-
cause: err,
|
|
121
|
-
}),
|
|
122
|
-
),
|
|
123
|
-
);
|
|
124
|
-
},
|
|
125
|
-
hasAsset: (hash: string) => {
|
|
126
|
-
const key = getLambdaAssetKey(hash);
|
|
127
|
-
|
|
128
|
-
return s3.headObject({ Bucket: bucketName, Key: key }).pipe(
|
|
129
|
-
Effect.map(() => true),
|
|
130
|
-
Effect.catchTag("NotFound", () => Effect.succeed(false)),
|
|
131
|
-
Effect.mapError(
|
|
132
|
-
(err): AssetsError => ({
|
|
133
|
-
_tag: "AssetsCheckError",
|
|
134
|
-
message: `Failed to check asset ${key}`,
|
|
135
|
-
cause: err,
|
|
136
|
-
}),
|
|
137
|
-
),
|
|
138
|
-
);
|
|
139
|
-
},
|
|
140
|
-
});
|
|
72
|
+
>()("AWS::Assets") {
|
|
73
|
+
static BucketName = Assets.use((assets) => assets.bucketName);
|
|
74
|
+
}
|
|
141
75
|
|
|
142
76
|
/**
|
|
143
77
|
* Layer that provides the Assets service.
|
|
144
78
|
* Looks up the assets bucket on initialization.
|
|
145
79
|
* If the bucket doesn't exist, the layer will fail - use `assetsLayerWithFallback` for graceful fallback.
|
|
146
80
|
*/
|
|
147
|
-
export const
|
|
81
|
+
export const AssetsLive = Layer.effect(
|
|
148
82
|
Assets,
|
|
149
83
|
Effect.gen(function* () {
|
|
150
|
-
const
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
84
|
+
const bucketName = yield* lookupAssetsBucket.pipe(
|
|
85
|
+
Effect.flatMap(
|
|
86
|
+
Option.match({
|
|
87
|
+
onNone: () =>
|
|
88
|
+
Effect.die(
|
|
89
|
+
new Error(
|
|
90
|
+
"Assets bucket not found. Run 'alchemy aws bootstrap' to create it.",
|
|
91
|
+
),
|
|
92
|
+
),
|
|
93
|
+
onSome: (bucketName) => Effect.succeed(bucketName),
|
|
94
|
+
}),
|
|
95
|
+
),
|
|
96
|
+
Effect.orDie,
|
|
97
|
+
Effect.cached,
|
|
98
|
+
);
|
|
159
99
|
|
|
160
|
-
|
|
100
|
+
const getLambdaAssetKey = (hash: string) => `lambda/${hash}.zip`;
|
|
101
|
+
|
|
102
|
+
return {
|
|
103
|
+
bucketName,
|
|
104
|
+
uploadAsset: (hash: string, content: Uint8Array) => {
|
|
105
|
+
const key = getLambdaAssetKey(hash);
|
|
106
|
+
|
|
107
|
+
return Effect.gen(function* () {
|
|
108
|
+
// Check if asset already exists
|
|
109
|
+
const exists = yield* s3
|
|
110
|
+
.headObject({ Bucket: yield* bucketName, Key: key })
|
|
111
|
+
.pipe(
|
|
112
|
+
Effect.map(() => true),
|
|
113
|
+
Effect.catchTag("NotFound", () => Effect.succeed(false)),
|
|
114
|
+
);
|
|
115
|
+
|
|
116
|
+
if (exists) {
|
|
117
|
+
yield* Effect.logDebug(
|
|
118
|
+
`Asset already exists: s3://${yield* bucketName}/${key}`,
|
|
119
|
+
);
|
|
120
|
+
return key;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// Upload the asset
|
|
124
|
+
yield* s3.putObject({
|
|
125
|
+
Bucket: yield* bucketName,
|
|
126
|
+
Key: key,
|
|
127
|
+
Body: content,
|
|
128
|
+
ContentType: "application/zip",
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
yield* Effect.logDebug(
|
|
132
|
+
`Uploaded asset: s3://${yield* bucketName}/${key}`,
|
|
133
|
+
);
|
|
134
|
+
return key;
|
|
135
|
+
}).pipe(
|
|
136
|
+
Effect.mapError(
|
|
137
|
+
(err): AssetsError => ({
|
|
138
|
+
_tag: "AssetsUploadError",
|
|
139
|
+
message: `Failed to upload asset ${key}`,
|
|
140
|
+
cause: err,
|
|
141
|
+
}),
|
|
142
|
+
),
|
|
143
|
+
);
|
|
144
|
+
},
|
|
145
|
+
hasAsset: Effect.fnUntraced(function* (hash: string) {
|
|
146
|
+
const key = getLambdaAssetKey(hash);
|
|
147
|
+
|
|
148
|
+
return yield* s3
|
|
149
|
+
.headObject({ Bucket: yield* bucketName, Key: key })
|
|
150
|
+
.pipe(
|
|
151
|
+
Effect.map(() => true),
|
|
152
|
+
Effect.catchTag("NotFound", () => Effect.succeed(false)),
|
|
153
|
+
Effect.mapError(
|
|
154
|
+
(err): AssetsError => ({
|
|
155
|
+
_tag: "AssetsCheckError",
|
|
156
|
+
message: `Failed to check asset ${key}`,
|
|
157
|
+
cause: err,
|
|
158
|
+
}),
|
|
159
|
+
),
|
|
160
|
+
);
|
|
161
|
+
}),
|
|
162
|
+
};
|
|
161
163
|
}),
|
|
162
164
|
);
|
|
163
165
|
|
|
166
|
+
export const lookupAssetsBuckets = Effect.gen(function* () {
|
|
167
|
+
const { region } = yield* AWSEnvironment.current;
|
|
168
|
+
|
|
169
|
+
return yield* s3.listBuckets
|
|
170
|
+
.pages({
|
|
171
|
+
Prefix: "alchemy-assets-",
|
|
172
|
+
BucketRegion: region,
|
|
173
|
+
})
|
|
174
|
+
.pipe(
|
|
175
|
+
Stream.flatMap((page) => Stream.fromIterable(page.Buckets ?? [])),
|
|
176
|
+
Stream.filterEffect((bucket) =>
|
|
177
|
+
bucket.Name === undefined
|
|
178
|
+
? Effect.succeed(false)
|
|
179
|
+
: getBucketTags(bucket.Name).pipe(
|
|
180
|
+
Effect.map((tags) => hasAssetsBucketTag(tags)),
|
|
181
|
+
Effect.catch(() => Effect.succeed(false)),
|
|
182
|
+
),
|
|
183
|
+
),
|
|
184
|
+
Stream.map((bucket) => bucket.Name!),
|
|
185
|
+
Stream.runCollect,
|
|
186
|
+
);
|
|
187
|
+
});
|
|
188
|
+
|
|
189
|
+
export const lookupAssetsBucket = Effect.gen(function* () {
|
|
190
|
+
const matchingBuckets = yield* lookupAssetsBuckets;
|
|
191
|
+
for (const bucketName of matchingBuckets) {
|
|
192
|
+
return Option.some(bucketName);
|
|
193
|
+
}
|
|
194
|
+
return Option.none<string>();
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
const hasAssetsBucketTag = (tags: Array<{ Key?: string; Value?: string }>) =>
|
|
198
|
+
tags.some((tag) => tag.Key === ASSETS_BUCKET_TAG && tag.Value === "true");
|
|
199
|
+
|
|
164
200
|
/**
|
|
165
|
-
*
|
|
166
|
-
*
|
|
201
|
+
* Build an account-regional namespace bucket name.
|
|
202
|
+
*
|
|
203
|
+
* Account-regional buckets must follow the naming convention:
|
|
204
|
+
* `<prefix>-<accountId>-<region>-an`
|
|
205
|
+
*
|
|
206
|
+
* @see https://docs.aws.amazon.com/AmazonS3/latest/userguide/gpbucketnamespaces.html#account-regional-gp-buckets
|
|
167
207
|
*/
|
|
168
|
-
export const
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
return Layer.empty;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
return Layer.succeed(Assets, createAssetsService(maybeBucket.value));
|
|
181
|
-
}),
|
|
208
|
+
export const createAssetsBucketName = (accountId: string, region: string) =>
|
|
209
|
+
`alchemy-assets-${accountId}-${region}-an`.toLowerCase();
|
|
210
|
+
|
|
211
|
+
const getBucketTags = (bucketName: string) =>
|
|
212
|
+
s3.getBucketTagging({ Bucket: bucketName }).pipe(
|
|
213
|
+
Effect.map((response) => response.TagSet ?? []),
|
|
214
|
+
Effect.catchTag("NoSuchTagSet", () =>
|
|
215
|
+
Effect.succeed<Array<{ Key?: string; Value?: string }>>([]),
|
|
216
|
+
),
|
|
182
217
|
);
|
|
218
|
+
|
|
219
|
+
export const ensureAssetsBucketTags = Effect.fn(function* (bucketName: string) {
|
|
220
|
+
const existingTags = yield* getBucketTags(bucketName);
|
|
221
|
+
const tagSet = [
|
|
222
|
+
...existingTags.filter((tag) => tag.Key !== ASSETS_BUCKET_TAG),
|
|
223
|
+
{ Key: ASSETS_BUCKET_TAG, Value: "true" },
|
|
224
|
+
];
|
|
225
|
+
|
|
226
|
+
yield* s3.putBucketTagging({
|
|
227
|
+
Bucket: bucketName,
|
|
228
|
+
Tagging: {
|
|
229
|
+
TagSet: tagSet.map((tag) => ({
|
|
230
|
+
Key: tag.Key!,
|
|
231
|
+
Value: tag.Value!,
|
|
232
|
+
})),
|
|
233
|
+
},
|
|
234
|
+
});
|
|
235
|
+
});
|