agent-claw: automated task changes
This commit is contained in:
13
cdk/node_modules/aws-cdk-lib/aws-route53-patterns/.jsiirc.json
generated
vendored
Normal file
13
cdk/node_modules/aws-cdk-lib/aws-route53-patterns/.jsiirc.json
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"targets": {
|
||||
"java": {
|
||||
"package": "software.amazon.awscdk.services.route53.patterns"
|
||||
},
|
||||
"dotnet": {
|
||||
"namespace": "Amazon.CDK.AWS.Route53.Patterns"
|
||||
},
|
||||
"python": {
|
||||
"module": "aws_cdk.aws_route53_patterns"
|
||||
}
|
||||
}
|
||||
}
|
||||
80
cdk/node_modules/aws-cdk-lib/aws-route53-patterns/README.md
generated
vendored
Normal file
80
cdk/node_modules/aws-cdk-lib/aws-route53-patterns/README.md
generated
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
# CDK Construct library for higher-level Route 53 Constructs
|
||||
|
||||
|
||||
This library provides higher-level Amazon Route 53 constructs which follow common
|
||||
architectural patterns.
|
||||
|
||||
## HTTPS Redirect
|
||||
|
||||
If you want to speed up delivery of your web content, you can use Amazon CloudFront,
|
||||
the AWS content delivery network (CDN). CloudFront can deliver your entire website
|
||||
—including dynamic, static, streaming, and interactive content—by using a global
|
||||
network of edge locations. Requests for your content are automatically routed to the
|
||||
edge location that gives your users the lowest latency.
|
||||
|
||||
This construct allows creating a redirect from domainA to domainB using Amazon
|
||||
CloudFront and Amazon S3. You can specify multiple domains to be redirected.
|
||||
[Learn more](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-cloudfront-distribution.html) about routing traffic to a CloudFront web distribution.
|
||||
|
||||
The `HttpsRedirect` constructs creates:
|
||||
|
||||
* Amazon CloudFront distribution - makes website available from data centres
|
||||
around the world
|
||||
* Amazon S3 bucket - empty bucket used for website hosting redirect (`websiteRedirect`) capabilities.
|
||||
* Amazon Route 53 A/AAAA Alias records - routes traffic to the CloudFront distribution
|
||||
* AWS Certificate Manager certificate - SSL/TLS certificate used by
|
||||
CloudFront for your domain
|
||||
|
||||
⚠️ The stack/construct can be used in any region for configuring an HTTPS redirect.
|
||||
The certificate created in Amazon Certificate Manager (ACM) will be in US East (N. Virginia)
|
||||
region. If you use an existing certificate, the AWS region of the certificate
|
||||
must be in US East (N. Virginia).
|
||||
|
||||
The following example creates an HTTPS redirect from `foo.example.com` to `bar.example.com`
|
||||
As an existing certificate is not provided, one will be created in `us-east-1` by the CDK.
|
||||
|
||||
```ts
|
||||
new patterns.HttpsRedirect(this, 'Redirect', {
|
||||
recordNames: ['foo.example.com'],
|
||||
targetDomain: 'bar.example.com',
|
||||
zone: route53.HostedZone.fromHostedZoneAttributes(this, 'HostedZone', {
|
||||
hostedZoneId: 'ID',
|
||||
zoneName: 'example.com',
|
||||
}),
|
||||
});
|
||||
```
|
||||
|
||||
To have `HttpsRedirect` use the `Certificate` construct as the default
|
||||
created certificate instead of the deprecated `DnsValidatedCertificate`
|
||||
construct, enable the `@aws-cdk/aws-route53-patters:useCertificate`
|
||||
feature flag. If you are creating the stack in a region other than `us-east-1`
|
||||
you must also enable `crossRegionReferences` on the stack.
|
||||
|
||||
```ts
|
||||
declare const app: App;
|
||||
const stack = new Stack(app, 'Stack', {
|
||||
crossRegionReferences: true,
|
||||
env: {
|
||||
region: 'us-east-2',
|
||||
},
|
||||
});
|
||||
|
||||
new patterns.HttpsRedirect(this, 'Redirect', {
|
||||
recordNames: ['foo.example.com'],
|
||||
targetDomain: 'bar.example.com',
|
||||
zone: route53.HostedZone.fromHostedZoneAttributes(this, 'HostedZone', {
|
||||
hostedZoneId: 'ID',
|
||||
zoneName: 'example.com',
|
||||
}),
|
||||
});
|
||||
```
|
||||
|
||||
It is safe to upgrade to `@aws-cdk/aws-route53-patterns:useCertificate` since
|
||||
the new certificate will be created and updated on the CloudFront distribution
|
||||
before the old certificate is deleted.
|
||||
|
||||
To have `HttpsRedirect` use the `Distribution` construct as the default
|
||||
created CloudFront distribution instead of the deprecated `CloudFrontWebDistribution`
|
||||
construct, enable the `@aws-cdk/aws-route53-patterns:useDistribution` [feature flag].
|
||||
|
||||
[feature flag]: https://docs.aws.amazon.com/cdk/latest/guide/featureflags.html
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-route53-patterns/index.d.ts
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-route53-patterns/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from './lib';
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-route53-patterns/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-route53-patterns/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.HttpsRedirect=void 0,Object.defineProperty(exports,_noFold="HttpsRedirect",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").HttpsRedirect;return Object.defineProperty(exports,_noFold="HttpsRedirect",{enumerable:!0,configurable:!0,value}),value}});
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-route53-patterns/lib/index.d.ts
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-route53-patterns/lib/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from './website-redirect';
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-route53-patterns/lib/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-route53-patterns/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.HttpsRedirect=void 0,Object.defineProperty(exports,_noFold="HttpsRedirect",{enumerable:!0,configurable:!0,get:()=>{var value=require("./website-redirect").HttpsRedirect;return Object.defineProperty(exports,_noFold="HttpsRedirect",{enumerable:!0,configurable:!0,value}),value}});
|
||||
74
cdk/node_modules/aws-cdk-lib/aws-route53-patterns/lib/website-redirect.d.ts
generated
vendored
Normal file
74
cdk/node_modules/aws-cdk-lib/aws-route53-patterns/lib/website-redirect.d.ts
generated
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
import { Construct } from 'constructs';
|
||||
import type { IHostedZone } from '../../aws-route53';
|
||||
import type { ICertificateRef } from '../../interfaces/generated/aws-certificatemanager-interfaces.generated';
|
||||
/**
|
||||
* Properties to configure an HTTPS Redirect
|
||||
*/
|
||||
export interface HttpsRedirectProps {
|
||||
/**
|
||||
* Hosted zone of the domain which will be used to create alias record(s) from
|
||||
* domain names in the hosted zone to the target domain. The hosted zone must
|
||||
* contain entries for the domain name(s) supplied through `recordNames` that
|
||||
* will redirect to the target domain.
|
||||
*
|
||||
* Domain names in the hosted zone can include a specific domain (example.com)
|
||||
* and its subdomains (acme.example.com, zenith.example.com).
|
||||
*
|
||||
*/
|
||||
readonly zone: IHostedZone;
|
||||
/**
|
||||
* The redirect target fully qualified domain name (FQDN). An alias record
|
||||
* will be created that points to your CloudFront distribution. Root domain
|
||||
* or sub-domain can be supplied.
|
||||
*/
|
||||
readonly targetDomain: string;
|
||||
/**
|
||||
* The domain names that will redirect to `targetDomain`
|
||||
*
|
||||
* @default - the domain name of the hosted zone
|
||||
*/
|
||||
readonly recordNames?: string[];
|
||||
/**
|
||||
* The AWS Certificate Manager (ACM) certificate that will be associated with
|
||||
* the CloudFront distribution that will be created. If provided, the certificate must be
|
||||
* stored in us-east-1 (N. Virginia)
|
||||
*
|
||||
* @default - A new certificate is created in us-east-1 (N. Virginia)
|
||||
*/
|
||||
readonly certificate?: ICertificateRef;
|
||||
}
|
||||
/**
|
||||
* Allows creating a domainA -> domainB redirect using CloudFront and S3.
|
||||
* You can specify multiple domains to be redirected.
|
||||
*/
|
||||
export declare class HttpsRedirect extends Construct {
|
||||
constructor(scope: Construct, id: string, props: HttpsRedirectProps);
|
||||
/**
|
||||
* Gets the stack to use for creating the Certificate
|
||||
* If the current stack is not in `us-east-1` then this
|
||||
* will create a new `us-east-1` stack.
|
||||
*
|
||||
* CloudFront is a global resource which you can create (via CloudFormation) from
|
||||
* _any_ region. So I could create a CloudFront distribution in `us-east-2` if I wanted
|
||||
* to (maybe the rest of my application lives there). The problem is that some supporting resources
|
||||
* that CloudFront uses (i.e. ACM Certificates) are required to exist in `us-east-1`. This means
|
||||
* that if I want to create a CloudFront distribution in `us-east-2` I still need to create a ACM certificate in
|
||||
* `us-east-1`.
|
||||
*
|
||||
* In order to do this correctly we need to know which region the CloudFront distribution is being created in.
|
||||
* We have two options, either require the user to specify the region or make an assumption if they do not.
|
||||
* This implementation requires the user specify the region.
|
||||
*/
|
||||
private certificateScope;
|
||||
/**
|
||||
* Creates a certificate.
|
||||
*
|
||||
* If the `ROUTE53_PATTERNS_USE_CERTIFICATE` feature flag is set then
|
||||
* this will use the `Certificate` class otherwise it will use the
|
||||
* `DnsValidatedCertificate` class
|
||||
*
|
||||
* This is also safe to upgrade since the new certificate will be created and updated
|
||||
* on the CloudFront distribution before the old one is deleted.
|
||||
*/
|
||||
private createCertificate;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-route53-patterns/lib/website-redirect.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-route53-patterns/lib/website-redirect.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user