@vyriy/stack 0.4.10 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  import { Construct } from 'constructs';
2
- import { AwsIntegration, AwsIntegrationProps, BasePathMapping, BasePathMappingProps, DomainName, DomainNameProps, EndpointType, LambdaIntegration, LambdaIntegrationOptions, Model, RestApi, RestApiProps } from 'aws-cdk-lib/aws-apigateway';
2
+ import { AwsIntegration, AwsIntegrationProps, BasePathMapping, BasePathMappingProps, DomainName, DomainNameProps, LambdaIntegration, LambdaIntegrationOptions, RestApi, RestApiProps } from 'aws-cdk-lib/aws-apigateway';
3
3
  import { IFunction } from 'aws-cdk-lib/aws-lambda';
4
- export { RestApi, EndpointType, Model };
5
- export type { RestApiProps };
4
+ export { RestApi, EndpointType, Model } from 'aws-cdk-lib/aws-apigateway';
5
+ export type { RestApiProps } from 'aws-cdk-lib/aws-apigateway';
6
6
  export declare const createApiGateway: (scope: Construct, id: string, props: RestApiProps) => RestApi;
7
7
  export declare const createIntegration: (lambda: IFunction, options: LambdaIntegrationOptions) => LambdaIntegration;
8
8
  export declare const createDomainName: (scope: Construct, id: string, props: DomainNameProps) => DomainName;
@@ -1,5 +1,5 @@
1
- import { AwsIntegration, BasePathMapping, DomainName, EndpointType, LambdaIntegration, Model, RestApi, } from 'aws-cdk-lib/aws-apigateway';
2
- export { RestApi, EndpointType, Model };
1
+ import { AwsIntegration, BasePathMapping, DomainName, EndpointType, LambdaIntegration, RestApi, } from 'aws-cdk-lib/aws-apigateway';
2
+ export { RestApi, EndpointType, Model } from 'aws-cdk-lib/aws-apigateway';
3
3
  export const createApiGateway = (scope, id, props) => {
4
4
  const { defaultIntegration, ...rest } = props;
5
5
  const apiProps = {
@@ -1,4 +1,4 @@
1
1
  import { Construct } from 'constructs';
2
- import { Certificate, CertificateProps, CertificateValidation } from 'aws-cdk-lib/aws-certificatemanager';
3
- export { CertificateValidation };
2
+ import { Certificate, CertificateProps } from 'aws-cdk-lib/aws-certificatemanager';
3
+ export { CertificateValidation } from 'aws-cdk-lib/aws-certificatemanager';
4
4
  export declare const createCertificate: (scope: Construct, id: string, props: CertificateProps) => Certificate;
@@ -1,3 +1,3 @@
1
- import { Certificate, CertificateValidation } from 'aws-cdk-lib/aws-certificatemanager';
2
- export { CertificateValidation };
1
+ import { Certificate } from 'aws-cdk-lib/aws-certificatemanager';
2
+ export { CertificateValidation } from 'aws-cdk-lib/aws-certificatemanager';
3
3
  export const createCertificate = (scope, id, props) => new Certificate(scope, id, props);
@@ -1,8 +1,8 @@
1
1
  import { Construct } from 'constructs';
2
- import { AddBehaviorOptions, Distribution, DistributionProps, Function as CloudFrontFunction, FunctionAssociation, FunctionEventType, FunctionProps, OriginProtocolPolicy, ViewerProtocolPolicy } from 'aws-cdk-lib/aws-cloudfront';
2
+ import { AddBehaviorOptions, Distribution, DistributionProps, Function as CloudFrontFunction, FunctionAssociation, FunctionProps, ViewerProtocolPolicy } from 'aws-cdk-lib/aws-cloudfront';
3
3
  import { HttpOrigin } from 'aws-cdk-lib/aws-cloudfront-origins';
4
4
  import { Bucket } from 'aws-cdk-lib/aws-s3';
5
- export { FunctionEventType, OriginProtocolPolicy, ViewerProtocolPolicy };
5
+ export { FunctionEventType, OriginProtocolPolicy, ViewerProtocolPolicy } from 'aws-cdk-lib/aws-cloudfront';
6
6
  export interface CreateCloudFrontFunctionProps extends Omit<FunctionProps, 'code'> {
7
7
  readonly code: string;
8
8
  }
@@ -1,6 +1,6 @@
1
1
  import { Distribution, Function as CloudFrontFunction, FunctionCode, FunctionEventType, OriginProtocolPolicy, ViewerProtocolPolicy, } from 'aws-cdk-lib/aws-cloudfront';
2
2
  import { HttpOrigin, S3BucketOrigin } from 'aws-cdk-lib/aws-cloudfront-origins';
3
- export { FunctionEventType, OriginProtocolPolicy, ViewerProtocolPolicy };
3
+ export { FunctionEventType, OriginProtocolPolicy, ViewerProtocolPolicy } from 'aws-cdk-lib/aws-cloudfront';
4
4
  export const createDistribution = (scope, id, props) => new Distribution(scope, id, props);
5
5
  export const createCloudFrontFunction = (scope, id, props) => new CloudFrontFunction(scope, id, {
6
6
  ...props,
@@ -1,6 +1,6 @@
1
1
  import { Construct } from 'constructs';
2
- import { BucketDeployment, BucketDeploymentProps, CacheControl, Source } from 'aws-cdk-lib/aws-s3-deployment';
3
- export { Source, CacheControl };
2
+ import { BucketDeployment, BucketDeploymentProps, CacheControl } from 'aws-cdk-lib/aws-s3-deployment';
3
+ export { Source, CacheControl } from 'aws-cdk-lib/aws-s3-deployment';
4
4
  export declare const createBucketDeployment: (scope: Construct, id: string, props: BucketDeploymentProps) => BucketDeployment;
5
5
  export declare const createImmutableCacheControl: (days?: number) => CacheControl[];
6
6
  export declare const createHtmlCacheControl: () => CacheControl[];
@@ -1,6 +1,6 @@
1
1
  import { Duration } from 'aws-cdk-lib';
2
- import { BucketDeployment, CacheControl, Source } from 'aws-cdk-lib/aws-s3-deployment';
3
- export { Source, CacheControl };
2
+ import { BucketDeployment, CacheControl } from 'aws-cdk-lib/aws-s3-deployment';
3
+ export { Source, CacheControl } from 'aws-cdk-lib/aws-s3-deployment';
4
4
  export const createBucketDeployment = (scope, id, props) => new BucketDeployment(scope, id, {
5
5
  memoryLimit: 512,
6
6
  ...props,
@@ -1,4 +1,4 @@
1
1
  import { Construct } from 'constructs';
2
- import { AttributeType, Table, TableProps } from 'aws-cdk-lib/aws-dynamodb';
3
- export { AttributeType };
2
+ import { Table, TableProps } from 'aws-cdk-lib/aws-dynamodb';
3
+ export { AttributeType } from 'aws-cdk-lib/aws-dynamodb';
4
4
  export declare const createTable: (scope: Construct, id: string, props: TableProps) => Table;
package/dynamodb/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { RemovalPolicy } from 'aws-cdk-lib';
2
- import { AttributeType, BillingMode, Table } from 'aws-cdk-lib/aws-dynamodb';
3
- export { AttributeType };
2
+ import { BillingMode, Table } from 'aws-cdk-lib/aws-dynamodb';
3
+ export { AttributeType } from 'aws-cdk-lib/aws-dynamodb';
4
4
  export const createTable = (scope, id, props) => new Table(scope, id, {
5
5
  billingMode: BillingMode.PAY_PER_REQUEST,
6
6
  removalPolicy: RemovalPolicy.DESTROY,
package/ec2/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Construct } from 'constructs';
2
- import { IVpc, InterfaceVpcEndpoint, InterfaceVpcEndpointProps, SecurityGroup, SecurityGroupProps, SubnetType, Vpc, VpcLookupOptions } from 'aws-cdk-lib/aws-ec2';
3
- export { SubnetType };
4
- export type { IVpc, SecurityGroup };
5
- export declare const findVpc: (scope: Construct, id: string, props: VpcLookupOptions) => IVpc;
2
+ import { InterfaceVpcEndpoint, InterfaceVpcEndpointProps, SecurityGroup, SecurityGroupProps, Vpc, VpcLookupOptions } from 'aws-cdk-lib/aws-ec2';
3
+ export { SubnetType } from 'aws-cdk-lib/aws-ec2';
4
+ export type { IVpc, SecurityGroup } from 'aws-cdk-lib/aws-ec2';
5
+ export declare const findVpc: (scope: Construct, id: string, props: VpcLookupOptions) => import("aws-cdk-lib/aws-ec2").IVpc;
6
6
  export declare const createSecurityGroup: (scope: Construct, id: string, props: SecurityGroupProps) => SecurityGroup;
7
7
  export declare const createVpcEndpoint: (scope: Construct, id: string, props: InterfaceVpcEndpointProps) => InterfaceVpcEndpoint;
8
8
  export declare const createVpc: (scope: Construct, id: string, props?: Omit<Vpc, "subnetConfiguration">) => Vpc;
package/ec2/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { InterfaceVpcEndpoint, SecurityGroup, SubnetType, Vpc, } from 'aws-cdk-lib/aws-ec2';
2
- export { SubnetType };
2
+ export { SubnetType } from 'aws-cdk-lib/aws-ec2';
3
3
  export const findVpc = (scope, id, props) => Vpc.fromLookup(scope, id, props);
4
4
  export const createSecurityGroup = (scope, id, props) => new SecurityGroup(scope, id, props);
5
5
  export const createVpcEndpoint = (scope, id, props) => new InterfaceVpcEndpoint(scope, id, props);
package/lambda/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Construct } from 'constructs';
2
- import { Code, FunctionProps, FunctionUrl, FunctionUrlProps, Function as LambdaFunction, LayerVersion, Runtime } from 'aws-cdk-lib/aws-lambda';
2
+ import { FunctionProps, FunctionUrl, FunctionUrlProps, Function as LambdaFunction, Runtime } from 'aws-cdk-lib/aws-lambda';
3
3
  export { SqsEventSource } from 'aws-cdk-lib/aws-lambda-event-sources';
4
- export { Code, Runtime, LayerVersion };
5
- export type { LambdaFunction, FunctionProps };
4
+ export { Code, Runtime, LayerVersion } from 'aws-cdk-lib/aws-lambda';
5
+ export type { Function as LambdaFunction, FunctionProps } from 'aws-cdk-lib/aws-lambda';
6
6
  export declare const createLambda: (scope: Construct, id: string, props: Omit<FunctionProps, "runtime"> & {
7
7
  runtime?: Runtime;
8
8
  }) => LambdaFunction;
package/lambda/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Duration, RemovalPolicy } from 'aws-cdk-lib';
2
- import { Code, FunctionUrl, Function as LambdaFunction, LayerVersion, Runtime, } from 'aws-cdk-lib/aws-lambda';
2
+ import { FunctionUrl, Function as LambdaFunction, Runtime, } from 'aws-cdk-lib/aws-lambda';
3
3
  import { LogGroup, RetentionDays } from 'aws-cdk-lib/aws-logs';
4
4
  export { SqsEventSource } from 'aws-cdk-lib/aws-lambda-event-sources';
5
- export { Code, Runtime, LayerVersion };
5
+ export { Code, Runtime, LayerVersion } from 'aws-cdk-lib/aws-lambda';
6
6
  export const createLambda = (scope, id, props) => {
7
7
  const { functionName, code, handler, runtime = Runtime.NODEJS_24_X, timeout = Duration.seconds(29), memorySize = 128, environment = {}, ...rest } = props;
8
8
  const lambdaFunction = new LambdaFunction(scope, id, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vyriy/stack",
3
- "version": "0.4.10",
3
+ "version": "0.5.0",
4
4
  "description": "AWS CDK stack helpers for Vyriy infrastructure",
5
5
  "type": "module",
6
6
  "dependencies": {
@@ -1,7 +1,7 @@
1
1
  import { Construct } from 'constructs';
2
2
  import { Distribution } from 'aws-cdk-lib/aws-cloudfront';
3
3
  import { HostedZoneProviderProps, ARecord, ARecordProps, RecordTarget } from 'aws-cdk-lib/aws-route53';
4
- export { RecordTarget };
4
+ export { RecordTarget } from 'aws-cdk-lib/aws-route53';
5
5
  export declare const getHostedZone: (scope: Construct, id: string, props: HostedZoneProviderProps) => import("aws-cdk-lib/aws-route53").IHostedZone;
6
6
  export declare const createARecord: (scope: Construct, id: string, props: ARecordProps) => ARecord;
7
7
  export declare const createCloudFrontTarget: (distribution: Distribution) => RecordTarget;
package/route53/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { HostedZone, ARecord, RecordTarget } from 'aws-cdk-lib/aws-route53';
2
2
  import { CloudFrontTarget } from 'aws-cdk-lib/aws-route53-targets';
3
- export { RecordTarget };
3
+ export { RecordTarget } from 'aws-cdk-lib/aws-route53';
4
4
  export const getHostedZone = (scope, id, props) => HostedZone.fromLookup(scope, id, props);
5
5
  export const createARecord = (scope, id, props) => new ARecord(scope, id, props);
6
6
  export const createCloudFrontTarget = (distribution) => RecordTarget.fromAlias(new CloudFrontTarget(distribution));
package/s3/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import { Construct } from 'constructs';
2
- import { Bucket, BucketProps, RedirectProtocol } from 'aws-cdk-lib/aws-s3';
3
- export { RedirectProtocol };
2
+ import { Bucket, BucketProps } from 'aws-cdk-lib/aws-s3';
3
+ export { RedirectProtocol } from 'aws-cdk-lib/aws-s3';
4
4
  export declare const createBucket: (scope: Construct, id: string, props?: BucketProps) => Bucket;
package/s3/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { RemovalPolicy } from 'aws-cdk-lib';
2
- import { BlockPublicAccess, Bucket, HttpMethods, BucketEncryption, RedirectProtocol, } from 'aws-cdk-lib/aws-s3';
3
- export { RedirectProtocol };
2
+ import { BlockPublicAccess, Bucket, HttpMethods, BucketEncryption } from 'aws-cdk-lib/aws-s3';
3
+ export { RedirectProtocol } from 'aws-cdk-lib/aws-s3';
4
4
  export const createBucket = (scope, id, props = {}) => {
5
5
  const bucketProps = {
6
6
  removalPolicy: RemovalPolicy.DESTROY,
package/ssm/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Construct } from 'constructs';
2
- import { ParameterValueType, SecureStringParameterAttributes, StringParameterAttributes } from 'aws-cdk-lib/aws-ssm';
3
- export type { ParameterValueType };
2
+ import { SecureStringParameterAttributes, StringParameterAttributes } from 'aws-cdk-lib/aws-ssm';
3
+ export type { ParameterValueType } from 'aws-cdk-lib/aws-ssm';
4
4
  export declare const fromStringParameterName: (scope: Construct, id: string, stringParameterName: string) => import("aws-cdk-lib/aws-ssm").IStringParameter;
5
5
  export declare const fromStringParameterAttributes: (scope: Construct, id: string, attrs: StringParameterAttributes) => import("aws-cdk-lib/aws-ssm").IStringParameter;
6
6
  export declare const fromSecureStringParameterAttributes: (scope: Construct, id: string, attrs: SecureStringParameterAttributes) => import("aws-cdk-lib/aws-ssm").IStringParameter;
package/ssm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { StringParameter, } from 'aws-cdk-lib/aws-ssm';
1
+ import { StringParameter } from 'aws-cdk-lib/aws-ssm';
2
2
  export const fromStringParameterName = (scope, id, stringParameterName) => StringParameter.fromStringParameterName(scope, id, stringParameterName);
3
3
  export const fromStringParameterAttributes = (scope, id, attrs) => StringParameter.fromStringParameterAttributes(scope, id, attrs);
4
4
  export const fromSecureStringParameterAttributes = (scope, id, attrs) => StringParameter.fromSecureStringParameterAttributes(scope, id, attrs);