distilled-aws 0.0.7 → 0.0.9
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/lib/region.d.ts +1 -1
- package/lib/region.d.ts.map +1 -1
- package/lib/region.js +1 -1
- package/lib/region.js.map +1 -1
- package/lib/services/ec2.d.ts +64 -64
- package/lib/services/ec2.js +32 -32
- package/lib/services/ec2.js.map +1 -1
- package/package.json +3 -2
- package/src/region.ts +7 -6
- package/src/services/ec2.ts +32 -32
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "distilled-aws",
|
|
3
3
|
"module": "index.ts",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.9",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"scripts": {
|
|
15
15
|
"aws:clean": "bun run scripts/aws-clean.ts",
|
|
16
16
|
"build:clean": "bun run install:clean && bun run build",
|
|
17
|
+
"bump": "bun run ./scripts/bump.ts",
|
|
17
18
|
"build": "bun generate && bun oxfmt ./src/services/* && tsgo -b",
|
|
18
19
|
"bundle:report": "bun run scripts/bundle-size-report.ts",
|
|
19
20
|
"clean": "git clean -fqdx -e .env",
|
|
@@ -110,4 +111,4 @@
|
|
|
110
111
|
"pathe": "^2.0.3",
|
|
111
112
|
"typescript": "^5"
|
|
112
113
|
}
|
|
113
|
-
}
|
|
114
|
+
}
|
package/src/region.ts
CHANGED
|
@@ -7,12 +7,13 @@ export class Region extends Context.Tag("distilled-aws/Region")<
|
|
|
7
7
|
RegionName
|
|
8
8
|
>() {}
|
|
9
9
|
|
|
10
|
-
export const fromEnv =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Config.
|
|
14
|
-
|
|
15
|
-
)
|
|
10
|
+
export const fromEnv = () =>
|
|
11
|
+
Layer.effect(
|
|
12
|
+
Region,
|
|
13
|
+
Config.string("AWS_REGION").pipe(
|
|
14
|
+
Config.orElse(() => Config.string("AWS_DEFAULT_REGION")),
|
|
15
|
+
),
|
|
16
|
+
);
|
|
16
17
|
|
|
17
18
|
export type RegionName =
|
|
18
19
|
| "us-east-1"
|
package/src/services/ec2.ts
CHANGED
|
@@ -71648,31 +71648,31 @@ export const ModifySpotFleetRequestResponse = S.suspend(() =>
|
|
|
71648
71648
|
|
|
71649
71649
|
//# Errors
|
|
71650
71650
|
export class InvalidVpcIDNotFound extends S.TaggedError<InvalidVpcIDNotFound>()(
|
|
71651
|
-
"
|
|
71651
|
+
"InvalidVpcID.NotFound",
|
|
71652
71652
|
{},
|
|
71653
71653
|
) {}
|
|
71654
71654
|
export class InvalidInternetGatewayIDNotFound extends S.TaggedError<InvalidInternetGatewayIDNotFound>()(
|
|
71655
|
-
"
|
|
71655
|
+
"InvalidInternetGatewayID.NotFound",
|
|
71656
71656
|
{},
|
|
71657
71657
|
) {}
|
|
71658
71658
|
export class InvalidCustomerGatewayIDNotFound extends S.TaggedError<InvalidCustomerGatewayIDNotFound>()(
|
|
71659
|
-
"
|
|
71659
|
+
"InvalidCustomerGatewayID.NotFound",
|
|
71660
71660
|
{},
|
|
71661
71661
|
) {}
|
|
71662
71662
|
export class InvalidDhcpOptionIDNotFound extends S.TaggedError<InvalidDhcpOptionIDNotFound>()(
|
|
71663
|
-
"
|
|
71663
|
+
"InvalidDhcpOptionID.NotFound",
|
|
71664
71664
|
{},
|
|
71665
71665
|
) {}
|
|
71666
71666
|
export class InvalidNetworkAclIDNotFound extends S.TaggedError<InvalidNetworkAclIDNotFound>()(
|
|
71667
|
-
"
|
|
71667
|
+
"InvalidNetworkAclID.NotFound",
|
|
71668
71668
|
{},
|
|
71669
71669
|
) {}
|
|
71670
71670
|
export class InvalidNetworkInterfaceIDNotFound extends S.TaggedError<InvalidNetworkInterfaceIDNotFound>()(
|
|
71671
|
-
"
|
|
71671
|
+
"InvalidNetworkInterfaceID.NotFound",
|
|
71672
71672
|
{},
|
|
71673
71673
|
) {}
|
|
71674
71674
|
export class InvalidRouteTableIDNotFound extends S.TaggedError<InvalidRouteTableIDNotFound>()(
|
|
71675
|
-
"
|
|
71675
|
+
"InvalidRouteTableID.NotFound",
|
|
71676
71676
|
{},
|
|
71677
71677
|
) {}
|
|
71678
71678
|
export class DependencyViolation extends S.TaggedError<DependencyViolation>()(
|
|
@@ -71680,52 +71680,52 @@ export class DependencyViolation extends S.TaggedError<DependencyViolation>()(
|
|
|
71680
71680
|
{},
|
|
71681
71681
|
) {}
|
|
71682
71682
|
export class InvalidSnapshotNotFound extends S.TaggedError<InvalidSnapshotNotFound>()(
|
|
71683
|
-
"
|
|
71683
|
+
"InvalidSnapshot.NotFound",
|
|
71684
71684
|
{},
|
|
71685
71685
|
) {}
|
|
71686
71686
|
export class InvalidSubnetIDNotFound extends S.TaggedError<InvalidSubnetIDNotFound>()(
|
|
71687
|
-
"
|
|
71687
|
+
"InvalidSubnetID.NotFound",
|
|
71688
71688
|
{},
|
|
71689
71689
|
) {}
|
|
71690
71690
|
export class InvalidID extends S.TaggedError<InvalidID>()("InvalidID", {}) {}
|
|
71691
71691
|
export class InvalidVolumeNotFound extends S.TaggedError<InvalidVolumeNotFound>()(
|
|
71692
|
-
"
|
|
71692
|
+
"InvalidVolume.NotFound",
|
|
71693
71693
|
{},
|
|
71694
71694
|
) {}
|
|
71695
71695
|
export class InvalidVpnConnectionIDNotFound extends S.TaggedError<InvalidVpnConnectionIDNotFound>()(
|
|
71696
|
-
"
|
|
71696
|
+
"InvalidVpnConnectionID.NotFound",
|
|
71697
71697
|
{},
|
|
71698
71698
|
) {}
|
|
71699
71699
|
export class InvalidVpnGatewayIDNotFound extends S.TaggedError<InvalidVpnGatewayIDNotFound>()(
|
|
71700
|
-
"
|
|
71700
|
+
"InvalidVpnGatewayID.NotFound",
|
|
71701
71701
|
{},
|
|
71702
71702
|
) {}
|
|
71703
71703
|
export class InvalidAttachmentIDNotFound extends S.TaggedError<InvalidAttachmentIDNotFound>()(
|
|
71704
|
-
"
|
|
71704
|
+
"InvalidAttachmentID.NotFound",
|
|
71705
71705
|
{},
|
|
71706
71706
|
) {}
|
|
71707
71707
|
export class InvalidAssociationIDNotFound extends S.TaggedError<InvalidAssociationIDNotFound>()(
|
|
71708
|
-
"
|
|
71708
|
+
"InvalidAssociationID.NotFound",
|
|
71709
71709
|
{},
|
|
71710
71710
|
) {}
|
|
71711
71711
|
export class InvalidInstanceIDNotFound extends S.TaggedError<InvalidInstanceIDNotFound>()(
|
|
71712
|
-
"
|
|
71712
|
+
"InvalidInstanceID.NotFound",
|
|
71713
71713
|
{},
|
|
71714
71714
|
) {}
|
|
71715
71715
|
export class InvalidAllocationIDNotFound extends S.TaggedError<InvalidAllocationIDNotFound>()(
|
|
71716
|
-
"
|
|
71716
|
+
"InvalidAllocationID.NotFound",
|
|
71717
71717
|
{},
|
|
71718
71718
|
) {}
|
|
71719
71719
|
export class InvalidAMIIDNotFound extends S.TaggedError<InvalidAMIIDNotFound>()(
|
|
71720
|
-
"
|
|
71720
|
+
"InvalidAMIID.NotFound",
|
|
71721
71721
|
{},
|
|
71722
71722
|
) {}
|
|
71723
71723
|
export class InvalidKeyPairDuplicate extends S.TaggedError<InvalidKeyPairDuplicate>()(
|
|
71724
|
-
"
|
|
71724
|
+
"InvalidKeyPair.Duplicate",
|
|
71725
71725
|
{},
|
|
71726
71726
|
) {}
|
|
71727
71727
|
export class InvalidGroupDuplicate extends S.TaggedError<InvalidGroupDuplicate>()(
|
|
71728
|
-
"
|
|
71728
|
+
"InvalidGroup.Duplicate",
|
|
71729
71729
|
{},
|
|
71730
71730
|
) {}
|
|
71731
71731
|
export class MissingParameter extends S.TaggedError<MissingParameter>()(
|
|
@@ -71734,43 +71734,43 @@ export class MissingParameter extends S.TaggedError<MissingParameter>()(
|
|
|
71734
71734
|
) {}
|
|
71735
71735
|
export class ParseError extends S.TaggedError<ParseError>()("ParseError", {}) {}
|
|
71736
71736
|
export class InvalidCarrierGatewayIDNotFound extends S.TaggedError<InvalidCarrierGatewayIDNotFound>()(
|
|
71737
|
-
"
|
|
71737
|
+
"InvalidCarrierGatewayID.NotFound",
|
|
71738
71738
|
{},
|
|
71739
71739
|
) {}
|
|
71740
71740
|
export class InvalidGatewayIDNotFound extends S.TaggedError<InvalidGatewayIDNotFound>()(
|
|
71741
|
-
"
|
|
71741
|
+
"InvalidGatewayID.NotFound",
|
|
71742
71742
|
{},
|
|
71743
71743
|
) {}
|
|
71744
71744
|
export class InvalidFlowLogIdNotFound extends S.TaggedError<InvalidFlowLogIdNotFound>()(
|
|
71745
|
-
"
|
|
71745
|
+
"InvalidFlowLogId.NotFound",
|
|
71746
71746
|
{},
|
|
71747
71747
|
) {}
|
|
71748
71748
|
export class InvalidGroupNotFound extends S.TaggedError<InvalidGroupNotFound>()(
|
|
71749
|
-
"
|
|
71749
|
+
"InvalidGroup.NotFound",
|
|
71750
71750
|
{},
|
|
71751
71751
|
) {}
|
|
71752
71752
|
export class InvalidVpcPeeringConnectionIdNotFound extends S.TaggedError<InvalidVpcPeeringConnectionIdNotFound>()(
|
|
71753
|
-
"
|
|
71753
|
+
"InvalidVpcPeeringConnectionId.NotFound",
|
|
71754
71754
|
{},
|
|
71755
71755
|
) {}
|
|
71756
71756
|
export class InvalidSecurityGroupRuleIdNotFound extends S.TaggedError<InvalidSecurityGroupRuleIdNotFound>()(
|
|
71757
|
-
"
|
|
71757
|
+
"InvalidSecurityGroupRuleId.NotFound",
|
|
71758
71758
|
{},
|
|
71759
71759
|
) {}
|
|
71760
71760
|
export class InvalidVpcEndpointServiceIdNotFound extends S.TaggedError<InvalidVpcEndpointServiceIdNotFound>()(
|
|
71761
|
-
"
|
|
71761
|
+
"InvalidVpcEndpointServiceId.NotFound",
|
|
71762
71762
|
{},
|
|
71763
71763
|
) {}
|
|
71764
71764
|
export class InvalidSubnetCidrBlockAssociationIDNotFound extends S.TaggedError<InvalidSubnetCidrBlockAssociationIDNotFound>()(
|
|
71765
|
-
"
|
|
71765
|
+
"InvalidSubnetCidrBlockAssociationID.NotFound",
|
|
71766
71766
|
{},
|
|
71767
71767
|
) {}
|
|
71768
71768
|
export class InvalidVpcCidrBlockAssociationIdErrorNotFound extends S.TaggedError<InvalidVpcCidrBlockAssociationIdErrorNotFound>()(
|
|
71769
|
-
"
|
|
71769
|
+
"InvalidVpcCidrBlockAssociationIdError.NotFound",
|
|
71770
71770
|
{},
|
|
71771
71771
|
) {}
|
|
71772
71772
|
export class InvalidVpcEndpointIdNotFound extends S.TaggedError<InvalidVpcEndpointIdNotFound>()(
|
|
71773
|
-
"
|
|
71773
|
+
"InvalidVpcEndpointId.NotFound",
|
|
71774
71774
|
{},
|
|
71775
71775
|
) {}
|
|
71776
71776
|
export class DefaultVpcAlreadyExists extends S.TaggedError<DefaultVpcAlreadyExists>()(
|
|
@@ -71778,7 +71778,7 @@ export class DefaultVpcAlreadyExists extends S.TaggedError<DefaultVpcAlreadyExis
|
|
|
71778
71778
|
{},
|
|
71779
71779
|
) {}
|
|
71780
71780
|
export class InvalidTransitGatewayIDNotFound extends S.TaggedError<InvalidTransitGatewayIDNotFound>()(
|
|
71781
|
-
"
|
|
71781
|
+
"InvalidTransitGatewayID.NotFound",
|
|
71782
71782
|
{},
|
|
71783
71783
|
) {}
|
|
71784
71784
|
export class InvalidParameterValue extends S.TaggedError<InvalidParameterValue>()(
|
|
@@ -71786,11 +71786,11 @@ export class InvalidParameterValue extends S.TaggedError<InvalidParameterValue>(
|
|
|
71786
71786
|
{},
|
|
71787
71787
|
) {}
|
|
71788
71788
|
export class InvalidLaunchTemplateNameNotFoundException extends S.TaggedError<InvalidLaunchTemplateNameNotFoundException>()(
|
|
71789
|
-
"
|
|
71789
|
+
"InvalidLaunchTemplateName.NotFoundException",
|
|
71790
71790
|
{},
|
|
71791
71791
|
) {}
|
|
71792
71792
|
export class InvalidKeyPairNotFound extends S.TaggedError<InvalidKeyPairNotFound>()(
|
|
71793
|
-
"
|
|
71793
|
+
"InvalidKeyPair.NotFound",
|
|
71794
71794
|
{},
|
|
71795
71795
|
) {}
|
|
71796
71796
|
export class DefaultSubnetAlreadyExistsInAvailabilityZone extends S.TaggedError<DefaultSubnetAlreadyExistsInAvailabilityZone>()(
|