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/src/AWS/EC2/Vpc.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as EC2 from "@distilled.cloud/aws/ec2";
|
|
2
2
|
import * as ec2 from "@distilled.cloud/aws/ec2";
|
|
3
|
-
import { Region } from "@distilled.cloud/aws/Region";
|
|
4
3
|
import * as Data from "effect/Data";
|
|
5
4
|
import * as Effect from "effect/Effect";
|
|
6
5
|
import * as Schedule from "effect/Schedule";
|
|
@@ -8,10 +7,10 @@ import type { ScopedPlanStatusSession } from "../../Cli/Cli.ts";
|
|
|
8
7
|
import { isResolved, somePropsAreDifferent } from "../../Diff.ts";
|
|
9
8
|
import * as Provider from "../../Provider.ts";
|
|
10
9
|
import { Resource } from "../../Resource.ts";
|
|
11
|
-
import type { Providers } from "../Providers.ts";
|
|
12
10
|
import { createInternalTags, createTagsList, diffTags } from "../../Tags.ts";
|
|
13
11
|
import type { AccountID } from "../Environment.ts";
|
|
14
12
|
import { AWSEnvironment } from "../Environment.ts";
|
|
13
|
+
import type { Providers } from "../Providers.ts";
|
|
15
14
|
import type { RegionID } from "../Region.ts";
|
|
16
15
|
|
|
17
16
|
export type VpcId = `vpc-${string}`;
|
|
@@ -169,9 +168,6 @@ export const VpcProvider = () =>
|
|
|
169
168
|
Provider.effect(
|
|
170
169
|
Vpc,
|
|
171
170
|
Effect.gen(function* () {
|
|
172
|
-
const region = yield* Region;
|
|
173
|
-
const { accountId } = yield* AWSEnvironment;
|
|
174
|
-
|
|
175
171
|
const createTags = Effect.fn(function* (
|
|
176
172
|
id: string,
|
|
177
173
|
tags?: Record<string, string>,
|
|
@@ -201,6 +197,7 @@ export const VpcProvider = () =>
|
|
|
201
197
|
}),
|
|
202
198
|
|
|
203
199
|
reconcile: Effect.fn(function* ({ id, news = {}, output, session }) {
|
|
200
|
+
const { accountId, region } = yield* AWSEnvironment.current;
|
|
204
201
|
const desiredTags = yield* createTags(id, news.tags);
|
|
205
202
|
|
|
206
203
|
// Observe — find the VPC if we already have its id, else describe
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type * as EC2 from "@distilled.cloud/aws/ec2";
|
|
2
2
|
import * as ec2 from "@distilled.cloud/aws/ec2";
|
|
3
|
-
import { Region } from "@distilled.cloud/aws/Region";
|
|
4
3
|
import * as Data from "effect/Data";
|
|
5
4
|
import * as Effect from "effect/Effect";
|
|
6
5
|
import * as Schedule from "effect/Schedule";
|
|
@@ -219,9 +218,6 @@ export const VpcEndpointProvider = () =>
|
|
|
219
218
|
Provider.effect(
|
|
220
219
|
VpcEndpoint,
|
|
221
220
|
Effect.gen(function* () {
|
|
222
|
-
const region = yield* Region;
|
|
223
|
-
const { accountId } = yield* AWSEnvironment;
|
|
224
|
-
|
|
225
221
|
const createTags = Effect.fn(function* (
|
|
226
222
|
id: string,
|
|
227
223
|
tags?: Record<string, string>,
|
|
@@ -244,48 +240,52 @@ export const VpcEndpointProvider = () =>
|
|
|
244
240
|
),
|
|
245
241
|
),
|
|
246
242
|
);
|
|
243
|
+
// const { accountId, region } = yield* AWSEnvironment.current;
|
|
247
244
|
|
|
248
|
-
const toAttrs = (ep: ec2.VpcEndpoint)
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
ep.DnsOptions.
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
245
|
+
const toAttrs = Effect.fnUntraced(function* (ep: ec2.VpcEndpoint) {
|
|
246
|
+
const { accountId, region } = yield* AWSEnvironment.current;
|
|
247
|
+
return {
|
|
248
|
+
vpcEndpointId: ep.VpcEndpointId as VpcEndpointId,
|
|
249
|
+
vpcEndpointArn:
|
|
250
|
+
`arn:aws:ec2:${region}:${accountId}:vpc-endpoint/${ep.VpcEndpointId}` as VpcEndpointArn,
|
|
251
|
+
vpcEndpointType: ep.VpcEndpointType!,
|
|
252
|
+
vpcId: ep.VpcId as VpcId,
|
|
253
|
+
serviceName: ep.ServiceName!,
|
|
254
|
+
state: ep.State!,
|
|
255
|
+
policyDocument: ep.PolicyDocument,
|
|
256
|
+
routeTableIds: ep.RouteTableIds,
|
|
257
|
+
subnetIds: ep.SubnetIds,
|
|
258
|
+
groups: ep.Groups?.map((g) => ({
|
|
259
|
+
groupId: g.GroupId!,
|
|
260
|
+
groupName: g.GroupName!,
|
|
261
|
+
})),
|
|
262
|
+
privateDnsEnabled: ep.PrivateDnsEnabled,
|
|
263
|
+
requesterManaged: ep.RequesterManaged,
|
|
264
|
+
networkInterfaceIds: ep.NetworkInterfaceIds,
|
|
265
|
+
dnsEntries: ep.DnsEntries?.map((d) => ({
|
|
266
|
+
dnsName: d.DnsName,
|
|
267
|
+
hostedZoneId: d.HostedZoneId,
|
|
268
|
+
})),
|
|
269
|
+
creationTimestamp:
|
|
270
|
+
ep.CreationTimestamp instanceof Date
|
|
271
|
+
? ep.CreationTimestamp.toISOString()
|
|
272
|
+
: (ep.CreationTimestamp as string | undefined),
|
|
273
|
+
ownerId: ep.OwnerId,
|
|
274
|
+
ipAddressType: ep.IpAddressType,
|
|
275
|
+
dnsOptions: ep.DnsOptions
|
|
276
|
+
? {
|
|
277
|
+
dnsRecordIpType: ep.DnsOptions.DnsRecordIpType,
|
|
278
|
+
privateDnsOnlyForInboundResolverEndpoint:
|
|
279
|
+
ep.DnsOptions.PrivateDnsOnlyForInboundResolverEndpoint,
|
|
280
|
+
}
|
|
281
|
+
: undefined,
|
|
282
|
+
lastError: ep.LastError
|
|
283
|
+
? {
|
|
284
|
+
code: ep.LastError.Code,
|
|
285
|
+
message: ep.LastError.Message,
|
|
286
|
+
}
|
|
287
|
+
: undefined,
|
|
288
|
+
} satisfies VpcEndpoint["Attributes"];
|
|
289
289
|
});
|
|
290
290
|
|
|
291
291
|
return {
|
|
@@ -294,7 +294,7 @@ export const VpcEndpointProvider = () =>
|
|
|
294
294
|
read: Effect.fn(function* ({ output }) {
|
|
295
295
|
if (!output) return undefined;
|
|
296
296
|
const ep = yield* describeVpcEndpoint(output.vpcEndpointId);
|
|
297
|
-
return toAttrs(ep);
|
|
297
|
+
return yield* toAttrs(ep);
|
|
298
298
|
}),
|
|
299
299
|
|
|
300
300
|
diff: Effect.fn(function* ({ news, olds }) {
|
|
@@ -520,7 +520,7 @@ export const VpcEndpointProvider = () =>
|
|
|
520
520
|
|
|
521
521
|
// Re-read final state.
|
|
522
522
|
const final = yield* describeVpcEndpoint(vpcEndpointId);
|
|
523
|
-
return toAttrs(final);
|
|
523
|
+
return yield* toAttrs(final);
|
|
524
524
|
}),
|
|
525
525
|
|
|
526
526
|
delete: Effect.fn(function* ({ output, session }) {
|
package/src/AWS/EC2/hosted.ts
CHANGED
|
@@ -16,6 +16,7 @@ import { createInternalTags, createTagsList, hasTags } from "../../Tags.ts";
|
|
|
16
16
|
import { sha256 } from "../../Util/sha256.ts";
|
|
17
17
|
import { zipCode } from "../../Util/zip.ts";
|
|
18
18
|
import { Assets } from "../Assets.ts";
|
|
19
|
+
import { AWSEnvironment } from "../Environment.ts";
|
|
19
20
|
import type { PolicyStatement } from "../IAM/Policy.ts";
|
|
20
21
|
|
|
21
22
|
export interface Ec2HostedBinding {
|
|
@@ -122,24 +123,18 @@ export const createEc2HostRuntimeContext =
|
|
|
122
123
|
};
|
|
123
124
|
|
|
124
125
|
export const createEc2HostedSupport = ({
|
|
125
|
-
accountId,
|
|
126
|
-
region,
|
|
127
126
|
stackName,
|
|
128
127
|
stage,
|
|
129
128
|
fs,
|
|
130
129
|
virtualEntryPlugin,
|
|
131
|
-
assets,
|
|
132
130
|
resourceType,
|
|
133
131
|
}: {
|
|
134
|
-
accountId: string;
|
|
135
|
-
region: string;
|
|
136
132
|
stackName: string;
|
|
137
133
|
stage: string;
|
|
138
134
|
fs: FileSystem.FileSystem;
|
|
139
135
|
virtualEntryPlugin: (
|
|
140
136
|
content: (importPath: string) => string,
|
|
141
137
|
) => rolldown.Plugin;
|
|
142
|
-
assets: typeof Assets.Service | undefined;
|
|
143
138
|
resourceType: string;
|
|
144
139
|
}) => {
|
|
145
140
|
const alchemyEnv = {
|
|
@@ -297,15 +292,17 @@ await Effect.runPromise(program);
|
|
|
297
292
|
.map(([key, value]) => `${key}=${quoteEnvValue(value)}`)
|
|
298
293
|
.join("\n");
|
|
299
294
|
|
|
300
|
-
const renderHostedUserData = ({
|
|
295
|
+
const renderHostedUserData = Effect.fnUntraced(function* ({
|
|
301
296
|
unitName,
|
|
302
297
|
bundleKey,
|
|
303
298
|
envKey,
|
|
299
|
+
region,
|
|
304
300
|
}: {
|
|
305
301
|
unitName: string;
|
|
306
302
|
bundleKey: string;
|
|
307
303
|
envKey: string;
|
|
308
|
-
|
|
304
|
+
region: string;
|
|
305
|
+
}) {
|
|
309
306
|
const appDir = `/opt/${unitName}`;
|
|
310
307
|
return `#!/bin/bash
|
|
311
308
|
set -euo pipefail
|
|
@@ -332,8 +329,8 @@ cat >/usr/local/bin/${unitName}-sync.sh <<'EOF'
|
|
|
332
329
|
#!/bin/bash
|
|
333
330
|
set -euo pipefail
|
|
334
331
|
mkdir -p "${appDir}"
|
|
335
|
-
aws s3 cp "s3://${
|
|
336
|
-
aws s3 cp "s3://${
|
|
332
|
+
aws s3 cp "s3://${yield* Assets.BucketName}/${bundleKey}" "${appDir}/bundle.zip" --region "${region}"
|
|
333
|
+
aws s3 cp "s3://${yield* Assets.BucketName}/${envKey}" "${appDir}/env" --region "${region}"
|
|
337
334
|
rm -f "${appDir}/index.mjs"
|
|
338
335
|
unzip -o "${appDir}/bundle.zip" -d "${appDir}"
|
|
339
336
|
EOF
|
|
@@ -362,7 +359,7 @@ EOF
|
|
|
362
359
|
systemctl daemon-reload
|
|
363
360
|
systemctl enable --now ${unitName}.service
|
|
364
361
|
`;
|
|
365
|
-
};
|
|
362
|
+
});
|
|
366
363
|
|
|
367
364
|
const mergeUserData = (hosted: string, userData?: string) => {
|
|
368
365
|
if (!userData) {
|
|
@@ -414,6 +411,7 @@ systemctl enable --now ${unitName}.service
|
|
|
414
411
|
roleName: string;
|
|
415
412
|
managedPolicyArns: string[];
|
|
416
413
|
}) {
|
|
414
|
+
const { accountId } = yield* AWSEnvironment.current;
|
|
417
415
|
const tags = yield* createInternalTags(id);
|
|
418
416
|
const role = yield* iam
|
|
419
417
|
.createRole({
|
|
@@ -533,7 +531,7 @@ systemctl enable --now ${unitName}.service
|
|
|
533
531
|
Sid: undefined,
|
|
534
532
|
Effect: "Allow",
|
|
535
533
|
Action: ["s3:GetObject"],
|
|
536
|
-
Resource: [`arn:aws:s3:::${
|
|
534
|
+
Resource: [`arn:aws:s3:::${yield* Assets.BucketName}/${assetPrefix}/*`],
|
|
537
535
|
});
|
|
538
536
|
|
|
539
537
|
yield* iam.putRolePolicy({
|
|
@@ -559,23 +557,16 @@ systemctl enable --now ${unitName}.service
|
|
|
559
557
|
archive: Uint8Array<ArrayBufferLike>;
|
|
560
558
|
env: Record<string, any>;
|
|
561
559
|
}) {
|
|
562
|
-
|
|
563
|
-
return yield* Effect.fail(
|
|
564
|
-
new Error(
|
|
565
|
-
`${resourceType} host mode requires the AWS assets bucket. Run bootstrap first.`,
|
|
566
|
-
),
|
|
567
|
-
);
|
|
568
|
-
}
|
|
569
|
-
|
|
560
|
+
const assets = yield* Assets;
|
|
570
561
|
const contentHash = yield* sha256(archive);
|
|
571
562
|
const uploadedAssetKey = yield* assets.uploadAsset(contentHash, archive);
|
|
572
563
|
yield* s3.copyObject({
|
|
573
|
-
Bucket: assets.bucketName,
|
|
564
|
+
Bucket: yield* assets.bucketName,
|
|
574
565
|
Key: bundleKey,
|
|
575
|
-
CopySource: `${assets.bucketName}/${uploadedAssetKey}`,
|
|
566
|
+
CopySource: `${yield* assets.bucketName}/${uploadedAssetKey}`,
|
|
576
567
|
});
|
|
577
568
|
yield* s3.putObject({
|
|
578
|
-
Bucket: assets.bucketName,
|
|
569
|
+
Bucket: yield* assets.bucketName,
|
|
579
570
|
Key: envKey,
|
|
580
571
|
Body: renderEnvFile(env),
|
|
581
572
|
ContentType: "text/plain; charset=utf-8",
|
|
@@ -619,14 +610,8 @@ systemctl enable --now ${unitName}.service
|
|
|
619
610
|
),
|
|
620
611
|
);
|
|
621
612
|
}
|
|
622
|
-
if (!assets) {
|
|
623
|
-
return yield* Effect.fail(
|
|
624
|
-
new Error(
|
|
625
|
-
`${resourceType} host mode requires the AWS assets bucket. Run bootstrap first.`,
|
|
626
|
-
),
|
|
627
|
-
);
|
|
628
|
-
}
|
|
629
613
|
|
|
614
|
+
const { region } = yield* AWSEnvironment.current;
|
|
630
615
|
const runtimeUnitName =
|
|
631
616
|
output?.runtimeUnitName ?? (yield* createRuntimeUnitName(id));
|
|
632
617
|
const assetPrefix = output?.assetPrefix ?? `ec2/${runtimeUnitName}`;
|
|
@@ -697,10 +682,11 @@ systemctl enable --now ${unitName}.service
|
|
|
697
682
|
env,
|
|
698
683
|
});
|
|
699
684
|
|
|
700
|
-
const hostedUserData = renderHostedUserData({
|
|
685
|
+
const hostedUserData = yield* renderHostedUserData({
|
|
701
686
|
unitName: runtimeUnitName,
|
|
702
687
|
bundleKey,
|
|
703
688
|
envKey,
|
|
689
|
+
region,
|
|
704
690
|
});
|
|
705
691
|
|
|
706
692
|
return {
|
|
@@ -765,14 +751,14 @@ systemctl enable --now ${unitName}.service
|
|
|
765
751
|
.pipe(Effect.catchTag("NoSuchEntityException", () => Effect.void));
|
|
766
752
|
}
|
|
767
753
|
|
|
768
|
-
if (
|
|
754
|
+
if (output.assetPrefix) {
|
|
769
755
|
for (const key of [
|
|
770
756
|
`${output.assetPrefix}/bundle.zip`,
|
|
771
757
|
`${output.assetPrefix}/env`,
|
|
772
758
|
]) {
|
|
773
759
|
yield* s3
|
|
774
760
|
.deleteObject({
|
|
775
|
-
Bucket:
|
|
761
|
+
Bucket: yield* Assets.BucketName,
|
|
776
762
|
Key: key,
|
|
777
763
|
})
|
|
778
764
|
.pipe(Effect.catchTag("NotFound", () => Effect.void));
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as ecs from "@distilled.cloud/aws/ecs";
|
|
2
|
-
import { Region } from "@distilled.cloud/aws/Region";
|
|
3
2
|
import * as Effect from "effect/Effect";
|
|
4
3
|
import { Unowned } from "../../AdoptPolicy.ts";
|
|
5
4
|
import { isResolved } from "../../Diff.ts";
|
|
@@ -200,8 +199,7 @@ export const CapacityProviderProvider = () =>
|
|
|
200
199
|
}),
|
|
201
200
|
|
|
202
201
|
reconcile: Effect.fn(function* ({ id, news, session }) {
|
|
203
|
-
const region = yield*
|
|
204
|
-
const { accountId } = yield* AWSEnvironment;
|
|
202
|
+
const { accountId, region } = yield* AWSEnvironment.current;
|
|
205
203
|
const name = yield* toName(id, news);
|
|
206
204
|
const internalTags = yield* createInternalTags(id);
|
|
207
205
|
const desiredTags = { ...internalTags, ...news.tags };
|
package/src/AWS/ECS/Cluster.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import * as ecs from "@distilled.cloud/aws/ecs";
|
|
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 { AWSEnvironment, type AccountID } from "../Environment.ts";
|
|
9
|
+
import type { Providers } from "../Providers.ts";
|
|
11
10
|
import type { RegionID } from "../Region.ts";
|
|
12
11
|
|
|
13
12
|
export type ClusterName = string;
|
|
@@ -78,9 +77,6 @@ export const ClusterProvider = () =>
|
|
|
78
77
|
Provider.effect(
|
|
79
78
|
Cluster,
|
|
80
79
|
Effect.gen(function* () {
|
|
81
|
-
const region = yield* Region;
|
|
82
|
-
const { accountId } = yield* AWSEnvironment;
|
|
83
|
-
|
|
84
80
|
const toEcsTags = (tags: Record<string, string>): ecs.Tag[] =>
|
|
85
81
|
Object.entries(tags).map(([key, value]) => ({
|
|
86
82
|
key,
|
|
@@ -155,6 +151,7 @@ export const ClusterProvider = () =>
|
|
|
155
151
|
};
|
|
156
152
|
}),
|
|
157
153
|
reconcile: Effect.fn(function* ({ id, news, session }) {
|
|
154
|
+
const { accountId, region } = yield* AWSEnvironment.current;
|
|
158
155
|
const clusterName = yield* toClusterName(id, news);
|
|
159
156
|
const clusterArn =
|
|
160
157
|
`arn:aws:ecs:${region}:${accountId}:cluster/${clusterName}` as ClusterArn;
|
package/src/AWS/ECS/Task.ts
CHANGED
|
@@ -164,7 +164,7 @@ export interface Task extends Resource<
|
|
|
164
164
|
Providers
|
|
165
165
|
> {}
|
|
166
166
|
|
|
167
|
-
export type TaskServices = Credentials | Region | ServerHost;
|
|
167
|
+
export type TaskServices = Credentials | Region | ServerHost | AWSEnvironment;
|
|
168
168
|
|
|
169
169
|
export type TaskShape = Main<TaskServices>;
|
|
170
170
|
|
|
@@ -219,8 +219,7 @@ export const TaskProvider = () =>
|
|
|
219
219
|
Task,
|
|
220
220
|
Effect.gen(function* () {
|
|
221
221
|
const stack = yield* Stack;
|
|
222
|
-
|
|
223
|
-
const region = yield* Region;
|
|
222
|
+
|
|
224
223
|
const { dotAlchemy } = yield* AlchemyContext;
|
|
225
224
|
const fs = yield* FileSystem.FileSystem;
|
|
226
225
|
const virtualEntryPlugin = yield* Bundle.virtualEntryPlugin;
|
|
@@ -380,6 +379,7 @@ export const TaskProvider = () =>
|
|
|
380
379
|
id: string;
|
|
381
380
|
logGroupName: string;
|
|
382
381
|
}) {
|
|
382
|
+
const { accountId, region } = yield* AWSEnvironment.current;
|
|
383
383
|
const tags = yield* createInternalTags(id);
|
|
384
384
|
yield* logs
|
|
385
385
|
.createLogGroup({
|
|
@@ -630,6 +630,7 @@ await Effect.runPromise(program);
|
|
|
630
630
|
executionRoleArn: string;
|
|
631
631
|
logGroupName: string;
|
|
632
632
|
}) {
|
|
633
|
+
const { region } = yield* AWSEnvironment.current;
|
|
633
634
|
const containerName = props.container?.name ?? family;
|
|
634
635
|
const response = yield* ecs.registerTaskDefinition({
|
|
635
636
|
family,
|
package/src/AWS/Endpoint.ts
CHANGED
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
import { Endpoint } from "@distilled.cloud/aws";
|
|
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 const of = (endpoint: string) =>
|
|
6
|
-
Layer.succeed(Endpoint.Endpoint, endpoint);
|
|
7
|
+
Layer.succeed(Endpoint.Endpoint, Effect.succeed(endpoint));
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Derive a custom endpoint (if any) from the surrounding
|
|
10
11
|
* {@link AWSEnvironment}. If the environment has no `endpoint` set, this
|
|
11
12
|
* Layer is empty (the SDK uses its default endpoint resolver).
|
|
12
13
|
*/
|
|
13
|
-
export const fromEnvironment
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
export const fromEnvironment: Layer.Layer<never, never, AWSEnvironment> =
|
|
15
|
+
Layer.effect(
|
|
16
|
+
Endpoint.Endpoint,
|
|
17
|
+
Effect.gen(function* () {
|
|
18
|
+
return Effect.map(
|
|
19
|
+
yield* AWSEnvironment,
|
|
20
|
+
(env) => env.endpoint ?? undefined!,
|
|
21
|
+
);
|
|
22
|
+
}),
|
|
23
|
+
);
|
package/src/AWS/Environment.ts
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import * as Auth from "@distilled.cloud/aws/Auth";
|
|
2
1
|
import {
|
|
3
|
-
fromAwsCredentialIdentity,
|
|
4
2
|
type CredentialsError,
|
|
5
3
|
type ResolvedCredentials,
|
|
6
4
|
} from "@distilled.cloud/aws/Credentials";
|
|
7
|
-
import type { AwsCredentialIdentity } from "@smithy/types";
|
|
8
5
|
import * as Config from "effect/Config";
|
|
9
6
|
import * as Context from "effect/Context";
|
|
10
7
|
import * as Data from "effect/Data";
|
|
11
8
|
import * as Effect from "effect/Effect";
|
|
12
9
|
import * as Layer from "effect/Layer";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
10
|
+
import { getAuthProvider } from "../Auth/AuthProvider.ts";
|
|
11
|
+
import { ALCHEMY_PROFILE, AlchemyProfile } from "../Auth/Profile.ts";
|
|
12
|
+
import {
|
|
13
|
+
AWS_AUTH_PROVIDER_NAME,
|
|
14
|
+
type AwsAuthConfig,
|
|
15
|
+
type AwsResolvedCredentials,
|
|
16
|
+
} from "./AuthProvider.ts";
|
|
15
17
|
|
|
16
18
|
export const AWS_PROFILE = Config.string("AWS_PROFILE").pipe(
|
|
17
19
|
Config.withDefault("default"),
|
|
@@ -53,125 +55,25 @@ export interface AWSEnvironmentShape {
|
|
|
53
55
|
|
|
54
56
|
export class AWSEnvironment extends Context.Service<
|
|
55
57
|
AWSEnvironment,
|
|
56
|
-
AWSEnvironmentShape
|
|
57
|
-
>()("AWS::Environment") {
|
|
58
|
+
Effect.Effect<AWSEnvironmentShape>
|
|
59
|
+
>()("AWS::Environment") {
|
|
60
|
+
static current = AWSEnvironment.use((env) => env);
|
|
61
|
+
}
|
|
58
62
|
|
|
59
|
-
/**
|
|
60
|
-
* Build an `AWSEnvironment` from one of two sources, in priority order:
|
|
61
|
-
*
|
|
62
|
-
* 1. **Environment variables** — used when `AWS_ACCESS_KEY_ID` is set, as
|
|
63
|
-
* it is on GitHub Actions runners after `aws-actions/configure-aws-credentials`
|
|
64
|
-
* runs (OIDC), or whenever the user has exported static creds. Requires
|
|
65
|
-
* `AWS_SECRET_ACCESS_KEY`, `AWS_REGION`, and `AWS_ACCOUNT_ID`. The role
|
|
66
|
-
* ARN's account ID is exported by `configure-aws-credentials` as
|
|
67
|
-
* `AWS_ACCOUNT_ID` when invoked with `output-credentials: true`.
|
|
68
|
-
* 2. **SSO profile** (`AWS_PROFILE`, default `"default"`) — used locally
|
|
69
|
-
* when no static creds are exported. Reads the profile's
|
|
70
|
-
* `sso_account_id` / `region` from `~/.aws/config` and refreshes
|
|
71
|
-
* credentials lazily via `aws sso login`.
|
|
72
|
-
*/
|
|
73
63
|
export const Default = Layer.effect(
|
|
74
64
|
AWSEnvironment,
|
|
75
|
-
Effect.suspend(() => loadDefault()),
|
|
76
|
-
).pipe(Layer.orDie);
|
|
77
|
-
|
|
78
|
-
export const loadDefault = () =>
|
|
79
65
|
Effect.gen(function* () {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
66
|
+
const profile = yield* AlchemyProfile;
|
|
67
|
+
const auth = yield* getAuthProvider<AwsAuthConfig, AwsResolvedCredentials>(
|
|
68
|
+
AWS_AUTH_PROVIDER_NAME,
|
|
69
|
+
);
|
|
70
|
+
const profileName = yield* ALCHEMY_PROFILE;
|
|
85
71
|
const ci = yield* Config.boolean("CI").pipe(Config.withDefault(false));
|
|
86
|
-
if (ci) {
|
|
87
|
-
const accessKeyId = yield* AWS_ACCESS_KEY_ID.pipe(
|
|
88
|
-
Config.option,
|
|
89
|
-
Config.map(Option.getOrUndefined),
|
|
90
|
-
);
|
|
91
|
-
if (accessKeyId) {
|
|
92
|
-
return yield* loadFromEnv(accessKeyId);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return yield* loadFromSso();
|
|
96
|
-
});
|
|
97
72
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
Config.option,
|
|
103
|
-
Config.map(Option.getOrUndefined),
|
|
73
|
+
return yield* profile.loadOrConfigure(auth, profileName, { ci }).pipe(
|
|
74
|
+
Effect.flatMap((config) => auth.read(profileName, config)),
|
|
75
|
+
Effect.orDie,
|
|
76
|
+
Effect.cached,
|
|
104
77
|
);
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
return {
|
|
108
|
-
accountId,
|
|
109
|
-
region,
|
|
110
|
-
credentials: Effect.succeed({
|
|
111
|
-
accessKeyId: Redacted.make(accessKeyId),
|
|
112
|
-
secretAccessKey,
|
|
113
|
-
sessionToken,
|
|
114
|
-
} satisfies ResolvedCredentials),
|
|
115
|
-
} satisfies AWSEnvironmentShape;
|
|
116
|
-
});
|
|
117
|
-
|
|
118
|
-
const loadFromSso = () =>
|
|
119
|
-
Effect.gen(function* () {
|
|
120
|
-
const profileName = yield* AWS_PROFILE;
|
|
121
|
-
const auth = yield* Auth.Default;
|
|
122
|
-
const profile = yield* auth.loadProfile(profileName);
|
|
123
|
-
if (!profile.sso_account_id) {
|
|
124
|
-
return yield* Effect.die(
|
|
125
|
-
`AWS SSO profile '${profileName}' is missing sso_account_id`,
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
const region =
|
|
129
|
-
profile.region ??
|
|
130
|
-
(yield* AWS_REGION.pipe(
|
|
131
|
-
Config.option,
|
|
132
|
-
Config.map(Option.getOrElse(() => "us-east-1")),
|
|
133
|
-
));
|
|
134
|
-
return {
|
|
135
|
-
profile: profileName,
|
|
136
|
-
accountId: profile.sso_account_id,
|
|
137
|
-
region,
|
|
138
|
-
credentials: auth.loadProfileCredentials(profileName),
|
|
139
|
-
} satisfies AWSEnvironmentShape;
|
|
140
|
-
});
|
|
141
|
-
|
|
142
|
-
export interface AWSEnvironmentStaticInput {
|
|
143
|
-
accountId: AccountID;
|
|
144
|
-
region: RegionID;
|
|
145
|
-
credentials: AwsCredentialIdentity;
|
|
146
|
-
endpoint?: string;
|
|
147
|
-
profile?: string;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
const isStatic = (
|
|
151
|
-
shape: AWSEnvironmentShape | AWSEnvironmentStaticInput,
|
|
152
|
-
): shape is AWSEnvironmentStaticInput =>
|
|
153
|
-
shape.credentials != null &&
|
|
154
|
-
typeof (shape.credentials as AwsCredentialIdentity).accessKeyId === "string";
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Build an `AWSEnvironment` Layer directly from values — useful for
|
|
158
|
-
* static credentials in CI or tests.
|
|
159
|
-
*
|
|
160
|
-
* Named `makeEnvironment` rather than `of` because `Context.Service.of`
|
|
161
|
-
* already exists with different semantics (builds the service value, not
|
|
162
|
-
* a Layer); putting both on `AWSEnvironment` would be confusing.
|
|
163
|
-
*/
|
|
164
|
-
export const makeEnvironment = (
|
|
165
|
-
shape: AWSEnvironmentShape | AWSEnvironmentStaticInput,
|
|
166
|
-
) =>
|
|
167
|
-
Layer.succeed(
|
|
168
|
-
AWSEnvironment,
|
|
169
|
-
isStatic(shape)
|
|
170
|
-
? {
|
|
171
|
-
...shape,
|
|
172
|
-
credentials: Effect.succeed(
|
|
173
|
-
fromAwsCredentialIdentity(shape.credentials),
|
|
174
|
-
),
|
|
175
|
-
}
|
|
176
|
-
: shape,
|
|
177
|
-
);
|
|
78
|
+
}),
|
|
79
|
+
).pipe(Layer.orDie);
|
|
@@ -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
|
|
|
@@ -7,7 +6,6 @@ import { 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 {
|
|
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
|
import type { QueueArn } from "../SQS/Queue.ts";
|
|
20
19
|
|
|
@@ -121,9 +120,6 @@ export const EventBusProvider = () =>
|
|
|
121
120
|
Provider.effect(
|
|
122
121
|
EventBus,
|
|
123
122
|
Effect.gen(function* () {
|
|
124
|
-
const region = yield* Region;
|
|
125
|
-
const { accountId } = yield* AWSEnvironment;
|
|
126
|
-
|
|
127
123
|
const createEventBusName = (id: string, props: { name?: string } = {}) =>
|
|
128
124
|
Effect.gen(function* () {
|
|
129
125
|
if (props.name) {
|
|
@@ -178,6 +174,7 @@ export const EventBusProvider = () =>
|
|
|
178
174
|
: Unowned(attrs);
|
|
179
175
|
}),
|
|
180
176
|
reconcile: Effect.fn(function* ({ id, news = {}, output, session }) {
|
|
177
|
+
const { accountId, region } = yield* AWSEnvironment.current;
|
|
181
178
|
const eventBusName =
|
|
182
179
|
output?.eventBusName ?? (yield* createEventBusName(id, news));
|
|
183
180
|
const eventBusArn = (output?.eventBusArn ??
|
|
@@ -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";
|
|
@@ -32,7 +31,6 @@ export const ListRulesLive = Layer.effect(
|
|
|
32
31
|
Effect.gen(function* () {
|
|
33
32
|
const Policy = yield* ListRulesPolicy;
|
|
34
33
|
const listRules = yield* eventbridge.listRules;
|
|
35
|
-
|
|
36
34
|
return Effect.fn(function* (bus?: EventBus) {
|
|
37
35
|
const EventBusName = bus ? yield* bus.eventBusName : undefined;
|
|
38
36
|
yield* Policy(bus);
|
|
@@ -57,10 +55,9 @@ export class ListRulesPolicy extends Binding.Policy<
|
|
|
57
55
|
|
|
58
56
|
export const ListRulesPolicyLive = ListRulesPolicy.layer.effect(
|
|
59
57
|
Effect.gen(function* () {
|
|
60
|
-
const
|
|
61
|
-
const { accountId } = yield* AWSEnvironment;
|
|
62
|
-
|
|
58
|
+
const env = yield* AWSEnvironment;
|
|
63
59
|
return Effect.fn(function* (host, bus?: EventBus) {
|
|
60
|
+
const { accountId, region } = yield* env;
|
|
64
61
|
if (isFunction(host)) {
|
|
65
62
|
const resource = bus
|
|
66
63
|
? Output.interpolate`${bus.eventBusArn}`
|