@aws-solutions-constructs/aws-route53-apigateway 2.5.0 → 2.6.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.
Files changed (4) hide show
  1. package/.jsii +32 -6
  2. package/README.md +82 -18
  3. package/lib/index.js +1 -1
  4. package/package.json +6 -6
package/.jsii CHANGED
@@ -8,8 +8,8 @@
8
8
  "url": "https://aws.amazon.com"
9
9
  },
10
10
  "dependencies": {
11
- "@aws-solutions-constructs/core": "2.5.0",
12
- "aws-cdk-lib": "^2.15.0",
11
+ "@aws-solutions-constructs/core": "2.6.0",
12
+ "aws-cdk-lib": "^2.20.0",
13
13
  "constructs": "^10.0.0"
14
14
  },
15
15
  "dependencyClosure": {
@@ -403,6 +403,19 @@
403
403
  }
404
404
  }
405
405
  },
406
+ "aws-cdk-lib.aws_billingconductor": {
407
+ "targets": {
408
+ "dotnet": {
409
+ "namespace": "Amazon.CDK.AWS.BillingConductor"
410
+ },
411
+ "java": {
412
+ "package": "software.amazon.awscdk.services.billingconductor"
413
+ },
414
+ "python": {
415
+ "module": "aws_cdk.aws_billingconductor"
416
+ }
417
+ }
418
+ },
406
419
  "aws-cdk-lib.aws_budgets": {
407
420
  "targets": {
408
421
  "dotnet": {
@@ -2068,6 +2081,19 @@
2068
2081
  }
2069
2082
  }
2070
2083
  },
2084
+ "aws-cdk-lib.aws_personalize": {
2085
+ "targets": {
2086
+ "dotnet": {
2087
+ "namespace": "Amazon.CDK.AWS.Personalize"
2088
+ },
2089
+ "java": {
2090
+ "package": "software.amazon.awscdk.services.personalize"
2091
+ },
2092
+ "python": {
2093
+ "module": "aws_cdk.aws_personalize"
2094
+ }
2095
+ }
2096
+ },
2071
2097
  "aws-cdk-lib.aws_pinpoint": {
2072
2098
  "targets": {
2073
2099
  "dotnet": {
@@ -2955,7 +2981,7 @@
2955
2981
  },
2956
2982
  "description": "CDK constructs for connecting an Amazon Route53 domain to an API Gateway.",
2957
2983
  "homepage": "https://github.com/awslabs/aws-solutions-constructs.git",
2958
- "jsiiVersion": "1.55.1 (build 07d2d90)",
2984
+ "jsiiVersion": "1.58.0 (build f8ba112)",
2959
2985
  "keywords": [
2960
2986
  "aws",
2961
2987
  "cdk",
@@ -2974,7 +3000,7 @@
2974
3000
  },
2975
3001
  "name": "@aws-solutions-constructs/aws-route53-apigateway",
2976
3002
  "readme": {
2977
- "markdown": "# aws-route53-apigateway module\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n![Stability: Experimental](https://img.shields.io/badge/stability-Experimental-important.svg?style=for-the-badge)\n\n> All classes are under active development and subject to non-backward compatible changes or removal in any\n> future version. These are not subject to the [Semantic Versioning](https://semver.org/) model.\n> This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.\n\n---\n<!--END STABILITY BANNER-->\n\n| **Reference Documentation**:| <span style=\"font-weight: normal\">https://docs.aws.amazon.com/solutions/latest/constructs/</span>|\n|:-------------|:-------------|\n<div style=\"height:8px\"></div>\n\n| **Language** | **Package** |\n|:-------------|-----------------|\n|![Python Logo](https://docs.aws.amazon.com/cdk/api/latest/img/python32.png) Python|`aws_solutions_constructs.aws_route53_apigateway`|\n|![Typescript Logo](https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png) Typescript|`@aws-solutions-constructs/aws-route53-apigateway`|\n|![Java Logo](https://docs.aws.amazon.com/cdk/api/latest/img/java32.png) Java|`software.amazon.awsconstructs.services.route53apigateway`|\n\n## Overview\n\nThis AWS Solutions Construct implements an Amazon Route 53 connected to a configured Amazon API Gateway REST API.\n\nHere is a minimal deployable pattern definition in Typescript:\n\n``` typescript\nimport * as api from '@aws-cdk/aws-apigateway';\nimport * as lambda from \"@aws-cdk/aws-lambda\";\nimport * as route53 from \"@aws-cdk/aws-route53\";\nimport { Route53ToApigateway } from '@aws-solutions-constructs/aws-route53-apigateway';\n\n// The construct requires an existing REST API, this can be created in raw CDK or extracted\n// from a previously instantiated construct that created an API Gateway REST API\nconst existingRestApi = previouslyCreatedApigatewayToLambdaConstruct.apiGateway;\n\nconst ourHostedZone = route53.HostedZone.fromLookup(this, 'HostedZone', {\n domainName: \"example.com\",\n });\n\nconst certificate = acm.Certificate.fromCertificateArn(\n stack,\n \"fake-cert\",\n \"arn:aws:acm:us-east-1:123456789012:certificate/11112222-3333-1234-1234-123456789012\"\n );\n\n// This construct can only be attached to a configured API Gateway.\nnew Route53ToApigateway(this, 'Route53ToApigatewayPattern', {\n existingApiGatewayObj: existingRestApi,\n existingHostedZoneInterface: ourHostedZone,\n publicApi: true,\n existingCertificateInterface: certificate\n});\n\n```\n\n## Initializer\n\n``` text\nnew Route53ToApigateway(scope: Construct, id: string, props: Route53ToApigatewayProps);\n```\n\n_Parameters_\n\n* scope [`Construct`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_core.Construct.html)\n* id `string`\n* props [`Route53ToApigatewayProps`](#pattern-construct-props)\n\n## Pattern Construct Props\n\nThis construct cannot create a new Public Hosted Zone, if you are creating a public API you must supply an existing Public Hosted Zone that will be reconfigured with a new Alias record. Public Hosted Zones are configured with public domain names and are not well suited to be launched and torn down dynamically, so this construct will only reconfigure existing Public Hosted Zones.\n\nThis construct can create Private Hosted Zones. If you want a Private Hosted Zone, then you can either provide an existing Private Hosted Zone or a privateHostedZoneProps value with at least the Domain Name defined. If you are using privateHostedZoneProps, an existing wildcard certificate (*.example.com) must be issued from a previous domain to be used in the newly created Private Hosted Zone. New certificate creation and validation do not take place in this construct. A private Rest API already exists in a VPC, so that VPC must be provided in the existingVpc prop. There is no scenario where this construct can create a new VPC (since it can't create a new API), so the vpcProps property is not supported on this construct.\n\n| **Name** | **Type** | **Description** |\n|:-------------|:----------------|-----------------|\n| publicApi | boolean | Whether the construct is deploying a private or public API. This has implications for the Hosted Zone and VPC. |\n| privateHostedZoneProps? | [route53.PrivateHostedZoneProps](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-route53.PrivateHostedZoneProps.html) | Optional custom properties for a new Private Hosted Zone. Cannot be specified for a public API. Cannot specify a VPC, it will use the VPC in existingVpc or the VPC created by the construct. Providing both this and existingHostedZoneInterface is an error. |\n| existingHostedZoneInterface? | [route53.IHostedZone](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-route53.IHostedZone.html) | Existing Public or Private Hosted Zone (type must match publicApi setting). Specifying both this and privateHostedZoneProps is an error. If this is a Private Hosted Zone, the associated VPC must be provided as the existingVpc property.|\n| existingVpc? | [ec2.IVpc](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-ec2.IVpc.html) | An existing VPC in which to deploy the construct.|\n|existingApiGatewayInterface|[api.IRestApi](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-apigateway.IRestApi.html)|The existing API Gateway instance that will be connected to the Route 53 hosted zone. *Note that Route 53 can only be connected to a configured API Gateway, so this construct only accepts an existing IRestApi and does not accept apiGatewayProps.*|\n| existingCertificateInterface |[certificatemanager.ICertificate](https://docs.aws.amazon.com/cdk/api/v1/docs/@aws-cdk_aws-certificatemanager.ICertificate.html)| An existing AWS Certificate Manager certificate for your custom domain name.|\n\n## Pattern Properties\n\n| **Name** | **Type** | **Description** |\n|:-------------|:----------------|-----------------|\n|hostedZone|[route53.IHostedZone](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-route53.IHostedZone.html)|The hosted zone used by the construct (whether created by the construct or provided by the client) |\n| vpc? | [ec2.IVpc](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-ec2.IVpc.html) | The VPC used by the construct. |\n|apiGateway|[api.RestApi](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-apigateway.RestApi.html)|Returns an instance of the API Gateway REST API created by the pattern.|\n|certificate|[certificatemanager.ICertificate](https://docs.aws.amazon.com/cdk/api/v1/docs/@aws-cdk_aws-certificatemanager.ICertificate.html)| THe certificate used by the construct (whether create by the construct or provided by the client)\n\n## Default settings\nOut of the box implementation of the Construct without any override will set the following defaults:\n\n### Amazon Route53\n* Adds an ALIAS record to the new or provided Hosted Zone that routes to the construct's API Gateway\n\n### Amazon API Gateway\n* User provided API Gateway object is used as-is\n* Sets up custom domain name mapping to API\n\n## Architecture\n\n![Architecture Diagram](architecture.png)\n\n***\n&copy; Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n"
3003
+ "markdown": "# aws-route53-apigateway module\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n![Stability: Experimental](https://img.shields.io/badge/stability-Experimental-important.svg?style=for-the-badge)\n\n> All classes are under active development and subject to non-backward compatible changes or removal in any\n> future version. These are not subject to the [Semantic Versioning](https://semver.org/) model.\n> This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.\n\n---\n<!--END STABILITY BANNER-->\n\n| **Reference Documentation**:| <span style=\"font-weight: normal\">https://docs.aws.amazon.com/solutions/latest/constructs/</span>|\n|:-------------|:-------------|\n<div style=\"height:8px\"></div>\n\n| **Language** | **Package** |\n|:-------------|-----------------|\n|![Python Logo](https://docs.aws.amazon.com/cdk/api/latest/img/python32.png) Python|`aws_solutions_constructs.aws_route53_apigateway`|\n|![Typescript Logo](https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png) Typescript|`@aws-solutions-constructs/aws-route53-apigateway`|\n|![Java Logo](https://docs.aws.amazon.com/cdk/api/latest/img/java32.png) Java|`software.amazon.awsconstructs.services.route53apigateway`|\n\n## Overview\n\nThis AWS Solutions Construct implements an Amazon Route 53 connected to a configured Amazon API Gateway REST API.\n\nHere is a minimal deployable pattern definition:\n\nTypescript\n``` typescript\nimport { Construct } from 'constructs';\nimport { Stack, StackProps } from 'aws-cdk-lib';\nimport * as route53 from \"aws-cdk-lib/aws-route53\";\nimport * as acm from \"aws-cdk-lib/aws-certificatemanager\";\nimport { Route53ToApiGateway } from '@aws-solutions-constructs/aws-route53-apigateway';\n\n// The construct requires an existing REST API, this can be created in raw CDK or extracted\n// from a previously instantiated construct that created an API Gateway REST API\nconst existingRestApi = previouslyCreatedApigatewayToLambdaConstruct.apiGateway;\n\n// domainName must match existing hosted zone in your account and the existing certificate\nconst ourHostedZone = route53.HostedZone.fromLookup(this, 'HostedZone', {\n domainName: \"example.com\",\n});\n\nconst certificate = acm.Certificate.fromCertificateArn(\n this,\n \"fake-cert\",\n \"arn:aws:acm:us-east-1:123456789012:certificate/11112222-3333-1234-1234-123456789012\"\n);\n\n// This construct can only be attached to a configured API Gateway.\nnew Route53ToApiGateway(this, 'Route53ToApiGatewayPattern', {\n existingApiGatewayInterface: existingRestApi,\n existingHostedZoneInterface: ourHostedZone,\n publicApi: true,\n existingCertificateInterface: certificate\n});\n```\n\nPython\n```python\nfrom aws_solutions_constructs.aws_route53_apigateway import Route53ToApiGateway\nfrom aws_cdk import (\n aws_route53 as route53,\n aws_certificatemanager as acm,\n Stack\n)\nfrom constructs import Construct\n\n# The construct requires an existing REST API, this can be created in raw CDK or extracted\n# from a previously instantiated construct that created an API Gateway REST API\nexistingRestApi = previouslyCreatedApigatewayToLambdaConstruct.apiGateway\n\n# domain_name must match existing hosted zone in your account and the existing certificate\nourHostedZone = route53.HostedZone.from_lookup(self, 'HostedZone',\n domain_name=\"example.com\",\n )\n\n# Obtain a pre-existing certificate from your account\ncertificate = acm.Certificate.from_certificate_arn(\n self,\n 'existing-cert',\n \"arn:aws:acm:us-east-1:123456789012:certificate/11112222-3333-1234-1234-123456789012\"\n)\n\n# This construct can only be attached to a configured API Gateway.\nRoute53ToApiGateway(self, 'Route53ToApigatewayPattern',\n existing_api_gateway_interface=existingRestApi,\n existing_hosted_zone_interface=ourHostedZone,\n public_api=True,\n existing_certificate_interface=certificate\n )\n\n```\n\nJava\n``` java\nimport software.constructs.Construct;\n\nimport software.amazon.awscdk.Stack;\nimport software.amazon.awscdk.StackProps;\nimport software.amazon.awscdk.services.route53.*;\nimport software.amazon.awscdk.services.apigateway.*;\nimport software.amazon.awscdk.services.certificatemanager.*;\nimport software.amazon.awsconstructs.services.route53apigateway.*;\n\n// The construct requires an existing REST API, this can be created in raw CDK\n// or extracted from a previously instantiated construct that created an API\n// Gateway REST API\nfinal IRestApi existingRestApi = previouslyCreatedApigatewayToLambdaConstruct.getApiGateway();\n\n// domainName must match existing hosted zone in your account and the existing certificate\nfinal IHostedZone ourHostedZone = HostedZone.fromLookup(this, \"HostedZone\",\n new HostedZoneProviderProps.Builder()\n .domainName(\"example.com\")\n .build());\n\n// Obtain a pre-existing certificate from your account\nfinal ICertificate certificate = Certificate.fromCertificateArn(\n this,\n \"existing-cert\",\n \"arn:aws:acm:us-east-1:123456789012:certificate/11112222-3333-1234-1234-123456789012\");\n\n// This construct can only be attached to a configured API Gateway.\nnew Route53ToApiGateway(this, \"Route53ToApiGatewayPattern\",\n new Route53ToApiGatewayProps.Builder()\n .existingApiGatewayInterface(existingRestApi)\n .existingHostedZoneInterface(ourHostedZone)\n .publicApi(true)\n .existingCertificateInterface(certificate)\n .build());\n```\n\n## Pattern Construct Props\n\nThis construct cannot create a new Public Hosted Zone, if you are creating a public API you must supply an existing Public Hosted Zone that will be reconfigured with a new Alias record. Public Hosted Zones are configured with public domain names and are not well suited to be launched and torn down dynamically, so this construct will only reconfigure existing Public Hosted Zones.\n\nThis construct can create Private Hosted Zones. If you want a Private Hosted Zone, then you can either provide an existing Private Hosted Zone or a privateHostedZoneProps value with at least the Domain Name defined. If you are using privateHostedZoneProps, an existing wildcard certificate (*.example.com) must be issued from a previous domain to be used in the newly created Private Hosted Zone. New certificate creation and validation do not take place in this construct. A private Rest API already exists in a VPC, so that VPC must be provided in the existingVpc prop. There is no scenario where this construct can create a new VPC (since it can't create a new API), so the vpcProps property is not supported on this construct.\n\n| **Name** | **Type** | **Description** |\n|:-------------|:----------------|-----------------|\n| publicApi | boolean | Whether the construct is deploying a private or public API. This has implications for the Hosted Zone and VPC. |\n| privateHostedZoneProps? | [route53.PrivateHostedZoneProps](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-route53.PrivateHostedZoneProps.html) | Optional custom properties for a new Private Hosted Zone. Cannot be specified for a public API. Cannot specify a VPC, it will use the VPC in existingVpc or the VPC created by the construct. Providing both this and existingHostedZoneInterface is an error. |\n| existingHostedZoneInterface? | [route53.IHostedZone](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-route53.IHostedZone.html) | Existing Public or Private Hosted Zone (type must match publicApi setting). Specifying both this and privateHostedZoneProps is an error. If this is a Private Hosted Zone, the associated VPC must be provided as the existingVpc property.|\n| existingVpc? | [ec2.IVpc](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-ec2.IVpc.html) | An existing VPC in which to deploy the construct.|\n|existingApiGatewayInterface|[api.IRestApi](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-apigateway.IRestApi.html)|The existing API Gateway instance that will be connected to the Route 53 hosted zone. *Note that Route 53 can only be connected to a configured API Gateway, so this construct only accepts an existing IRestApi and does not accept apiGatewayProps.*|\n| existingCertificateInterface |[certificatemanager.ICertificate](https://docs.aws.amazon.com/cdk/api/v1/docs/@aws-cdk_aws-certificatemanager.ICertificate.html)| An existing AWS Certificate Manager certificate for your custom domain name.|\n\n## Pattern Properties\n\n| **Name** | **Type** | **Description** |\n|:-------------|:----------------|-----------------|\n|hostedZone|[route53.IHostedZone](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-route53.IHostedZone.html)|The hosted zone used by the construct (whether created by the construct or provided by the client) |\n| vpc? | [ec2.IVpc](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-ec2.IVpc.html) | The VPC used by the construct. |\n|apiGateway|[api.RestApi](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-apigateway.RestApi.html)|Returns an instance of the API Gateway REST API created by the pattern.|\n|certificate|[certificatemanager.ICertificate](https://docs.aws.amazon.com/cdk/api/v1/docs/@aws-cdk_aws-certificatemanager.ICertificate.html)| THe certificate used by the construct (whether create by the construct or provided by the client)\n\n## Default settings\nOut of the box implementation of the Construct without any override will set the following defaults:\n\n### Amazon Route53\n* Adds an ALIAS record to the new or provided Hosted Zone that routes to the construct's API Gateway\n\n### Amazon API Gateway\n* User provided API Gateway object is used as-is\n* Sets up custom domain name mapping to API\n\n## Architecture\n\n![Architecture Diagram](architecture.png)\n\n***\n&copy; Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n"
2978
3004
  },
2979
3005
  "repository": {
2980
3006
  "directory": "source/patterns/@aws-solutions-constructs/aws-route53-apigateway",
@@ -3234,6 +3260,6 @@
3234
3260
  "symbolId": "lib/index:Route53ToApiGatewayProps"
3235
3261
  }
3236
3262
  },
3237
- "version": "2.5.0",
3238
- "fingerprint": "l3EVGAxVR6p5xhWDLr2pWQ80KJTNSSjVR0Bmpvrr0zI="
3263
+ "version": "2.6.0",
3264
+ "fingerprint": "IJb49M2/fufnaH1/J0fXymyD/K+7KCYeBZ55xPXX0p8="
3239
3265
  }
package/README.md CHANGED
@@ -26,49 +26,113 @@
26
26
 
27
27
  This AWS Solutions Construct implements an Amazon Route 53 connected to a configured Amazon API Gateway REST API.
28
28
 
29
- Here is a minimal deployable pattern definition in Typescript:
29
+ Here is a minimal deployable pattern definition:
30
30
 
31
+ Typescript
31
32
  ``` typescript
32
- import * as api from '@aws-cdk/aws-apigateway';
33
- import * as lambda from "@aws-cdk/aws-lambda";
34
- import * as route53 from "@aws-cdk/aws-route53";
35
- import { Route53ToApigateway } from '@aws-solutions-constructs/aws-route53-apigateway';
33
+ import { Construct } from 'constructs';
34
+ import { Stack, StackProps } from 'aws-cdk-lib';
35
+ import * as route53 from "aws-cdk-lib/aws-route53";
36
+ import * as acm from "aws-cdk-lib/aws-certificatemanager";
37
+ import { Route53ToApiGateway } from '@aws-solutions-constructs/aws-route53-apigateway';
36
38
 
37
39
  // The construct requires an existing REST API, this can be created in raw CDK or extracted
38
40
  // from a previously instantiated construct that created an API Gateway REST API
39
41
  const existingRestApi = previouslyCreatedApigatewayToLambdaConstruct.apiGateway;
40
42
 
43
+ // domainName must match existing hosted zone in your account and the existing certificate
41
44
  const ourHostedZone = route53.HostedZone.fromLookup(this, 'HostedZone', {
42
45
  domainName: "example.com",
43
- });
46
+ });
44
47
 
45
48
  const certificate = acm.Certificate.fromCertificateArn(
46
- stack,
49
+ this,
47
50
  "fake-cert",
48
51
  "arn:aws:acm:us-east-1:123456789012:certificate/11112222-3333-1234-1234-123456789012"
49
- );
52
+ );
50
53
 
51
54
  // This construct can only be attached to a configured API Gateway.
52
- new Route53ToApigateway(this, 'Route53ToApigatewayPattern', {
53
- existingApiGatewayObj: existingRestApi,
55
+ new Route53ToApiGateway(this, 'Route53ToApiGatewayPattern', {
56
+ existingApiGatewayInterface: existingRestApi,
54
57
  existingHostedZoneInterface: ourHostedZone,
55
58
  publicApi: true,
56
59
  existingCertificateInterface: certificate
57
60
  });
58
-
59
61
  ```
60
62
 
61
- ## Initializer
63
+ Python
64
+ ```python
65
+ from aws_solutions_constructs.aws_route53_apigateway import Route53ToApiGateway
66
+ from aws_cdk import (
67
+ aws_route53 as route53,
68
+ aws_certificatemanager as acm,
69
+ Stack
70
+ )
71
+ from constructs import Construct
72
+
73
+ # The construct requires an existing REST API, this can be created in raw CDK or extracted
74
+ # from a previously instantiated construct that created an API Gateway REST API
75
+ existingRestApi = previouslyCreatedApigatewayToLambdaConstruct.apiGateway
76
+
77
+ # domain_name must match existing hosted zone in your account and the existing certificate
78
+ ourHostedZone = route53.HostedZone.from_lookup(self, 'HostedZone',
79
+ domain_name="example.com",
80
+ )
81
+
82
+ # Obtain a pre-existing certificate from your account
83
+ certificate = acm.Certificate.from_certificate_arn(
84
+ self,
85
+ 'existing-cert',
86
+ "arn:aws:acm:us-east-1:123456789012:certificate/11112222-3333-1234-1234-123456789012"
87
+ )
88
+
89
+ # This construct can only be attached to a configured API Gateway.
90
+ Route53ToApiGateway(self, 'Route53ToApigatewayPattern',
91
+ existing_api_gateway_interface=existingRestApi,
92
+ existing_hosted_zone_interface=ourHostedZone,
93
+ public_api=True,
94
+ existing_certificate_interface=certificate
95
+ )
62
96
 
63
- ``` text
64
- new Route53ToApigateway(scope: Construct, id: string, props: Route53ToApigatewayProps);
65
97
  ```
66
98
 
67
- _Parameters_
99
+ Java
100
+ ``` java
101
+ import software.constructs.Construct;
102
+
103
+ import software.amazon.awscdk.Stack;
104
+ import software.amazon.awscdk.StackProps;
105
+ import software.amazon.awscdk.services.route53.*;
106
+ import software.amazon.awscdk.services.apigateway.*;
107
+ import software.amazon.awscdk.services.certificatemanager.*;
108
+ import software.amazon.awsconstructs.services.route53apigateway.*;
109
+
110
+ // The construct requires an existing REST API, this can be created in raw CDK
111
+ // or extracted from a previously instantiated construct that created an API
112
+ // Gateway REST API
113
+ final IRestApi existingRestApi = previouslyCreatedApigatewayToLambdaConstruct.getApiGateway();
114
+
115
+ // domainName must match existing hosted zone in your account and the existing certificate
116
+ final IHostedZone ourHostedZone = HostedZone.fromLookup(this, "HostedZone",
117
+ new HostedZoneProviderProps.Builder()
118
+ .domainName("example.com")
119
+ .build());
120
+
121
+ // Obtain a pre-existing certificate from your account
122
+ final ICertificate certificate = Certificate.fromCertificateArn(
123
+ this,
124
+ "existing-cert",
125
+ "arn:aws:acm:us-east-1:123456789012:certificate/11112222-3333-1234-1234-123456789012");
68
126
 
69
- * scope [`Construct`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_core.Construct.html)
70
- * id `string`
71
- * props [`Route53ToApigatewayProps`](#pattern-construct-props)
127
+ // This construct can only be attached to a configured API Gateway.
128
+ new Route53ToApiGateway(this, "Route53ToApiGatewayPattern",
129
+ new Route53ToApiGatewayProps.Builder()
130
+ .existingApiGatewayInterface(existingRestApi)
131
+ .existingHostedZoneInterface(ourHostedZone)
132
+ .publicApi(true)
133
+ .existingCertificateInterface(certificate)
134
+ .build());
135
+ ```
72
136
 
73
137
  ## Pattern Construct Props
74
138
 
package/lib/index.js CHANGED
@@ -74,5 +74,5 @@ class Route53ToApiGateway extends constructs_1.Construct {
74
74
  }
75
75
  exports.Route53ToApiGateway = Route53ToApiGateway;
76
76
  _a = JSII_RTTI_SYMBOL_1;
77
- Route53ToApiGateway[_a] = { fqn: "@aws-solutions-constructs/aws-route53-apigateway.Route53ToApiGateway", version: "2.5.0" };
77
+ Route53ToApiGateway[_a] = { fqn: "@aws-solutions-constructs/aws-route53-apigateway.Route53ToApiGateway", version: "2.6.0" };
78
78
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQWVBLG1EQUFtRDtBQUNuRCwyREFBMkQ7QUFFM0QsMkRBQTJEO0FBRTNELHdGQUF3RjtBQUN4RiwyQ0FBdUM7QUFpRHZDOztHQUVHO0FBQ0gsTUFBYSxtQkFBb0IsU0FBUSxzQkFBUztJQUtoRDs7Ozs7OztPQU9HO0lBQ0gsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxLQUErQjtRQUN2RSxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBQ2pCLFFBQVEsQ0FBQyxVQUFVLENBQUMsS0FBSyxDQUFDLENBQUM7UUFFM0IsSUFBSSxDQUFDLFdBQVcsR0FBRyxLQUFLLENBQUMsNEJBQTRCLENBQUM7UUFFdEQsSUFBSSxLQUFLLENBQUMsV0FBVyxFQUFFO1lBQ3JCLElBQUksQ0FBQyxHQUFHLEdBQUcsS0FBSyxDQUFDLFdBQVcsQ0FBQztTQUM5QjtRQUVELHlDQUF5QztRQUN6QyxJQUFJLEtBQUssQ0FBQywyQkFBMkIsRUFBRTtZQUNyQyxJQUFJLENBQUMsVUFBVSxHQUFHLEtBQUssQ0FBQywyQkFBMkIsQ0FBQztZQUVwRCxJQUFJLEtBQUssQ0FBQyxXQUFXLEVBQUU7Z0JBQ3JCLE1BQU0sSUFBSS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b252ZXJ0IElSZXN0QXBpIHRvIFJlc3RBcGlcbiAgICB0aGlzLmFwaUdhdGV3YXkgPSBwcm9wcy5leGlzdGluZ0FwaUdhdGV3YXlJbnRlcmZhY2UgYXMgYXBpLlJlc3RBcGk7XG5cbiAgICAvLyBBZGQgY3VzdG9tIGRvbWFpbiBuYW1lIGluIEFQSSBHYXRld2F5XG4gICAgdGhpcy5hcGlHYXRld2F5LmFkZERvbWFpbk5hbWUoJ0N1c3RvbURvbWFpbk5hbWUnLCB7XG4gICAgICBkb21haW5OYW1lOiB0aGlzLmhvc3RlZFpvbmUuem9uZU5hbWUsXG4gICAgICBjZXJ0aWZpY2F0ZTogdGhpcy5jZXJ0aWZpY2F0ZVxuICAgIH0pO1xuXG4gICAgLy8gQ3JlYXRlIEEgUmVjb3JkIGluIGN1c3RvbSBkb21haW4gdG8gcm91dGUgdHJhZmZpYyB0byBBUEkgR2F0ZXdheVxuICAgIG5ldyByb3V0ZTUzLkFSZWNvcmQodGhpcywgJ0N1c3RvbURvbWFpbkFsaWFzUmVjb3JkJywge1xuICAgICAgem9uZTogdGhpcy5ob3N0ZWRab25lLFxuICAgICAgdGFyZ2V0OiByb3V0ZTUzLlJlY29yZFRhcmdldC5mcm9tQWxpYXMobmV3IHRhcmdldHMuQXBpR2F0ZXdheSh0aGlzLmFwaUdhdGV3YXkpKVxuICAgIH0pO1xuICB9XG59Il19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-solutions-constructs/aws-route53-apigateway",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "description": "CDK constructs for connecting an Amazon Route53 domain to an API Gateway.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -53,14 +53,14 @@
53
53
  }
54
54
  },
55
55
  "dependencies": {
56
- "@aws-solutions-constructs/core": "2.5.0"
56
+ "@aws-solutions-constructs/core": "2.6.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-cdk/assert": "2.15.0",
59
+ "@aws-cdk/assert": "2.20.0",
60
60
  "@types/jest": "^26.0.22",
61
61
  "@types/node": "^10.3.0",
62
62
  "prettier": "^2.5.1",
63
- "aws-cdk-lib": "2.15.0",
63
+ "aws-cdk-lib": "2.20.0",
64
64
  "constructs": "^10.0.0"
65
65
  },
66
66
  "jest": {
@@ -78,8 +78,8 @@
78
78
  ]
79
79
  },
80
80
  "peerDependencies": {
81
- "@aws-solutions-constructs/core": "2.5.0",
82
- "aws-cdk-lib": "^2.15.0",
81
+ "@aws-solutions-constructs/core": "2.6.0",
82
+ "aws-cdk-lib": "^2.20.0",
83
83
  "constructs": "^10.0.0"
84
84
  },
85
85
  "keywords": [