agent-claw: automated task changes
This commit is contained in:
30
cdk/node_modules/aws-cdk-lib/aws-cloudfront/test/example.default-cert-alias.lit.ts
generated
vendored
Normal file
30
cdk/node_modules/aws-cdk-lib/aws-cloudfront/test/example.default-cert-alias.lit.ts
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import * as s3 from '../../aws-s3';
|
||||
import { App, Stack } from '../../core';
|
||||
import * as cloudfront from '../lib';
|
||||
|
||||
class AcmCertificateAliasStack extends Stack {
|
||||
constructor(scope: Construct, id: string) {
|
||||
super(scope, id);
|
||||
/// !show
|
||||
const s3BucketSource = new s3.Bucket(this, 'Bucket');
|
||||
|
||||
const distribution = new cloudfront.CloudFrontWebDistribution(this, 'AnAmazingWebsiteProbably', {
|
||||
originConfigs: [{
|
||||
s3OriginSource: { s3BucketSource },
|
||||
behaviors: [{ isDefaultBehavior: true }],
|
||||
}],
|
||||
viewerCertificate: cloudfront.ViewerCertificate.fromCloudFrontDefaultCertificate(
|
||||
'www.example.com',
|
||||
),
|
||||
});
|
||||
/// !hide
|
||||
|
||||
Array.isArray(s3BucketSource);
|
||||
Array.isArray(distribution);
|
||||
}
|
||||
}
|
||||
|
||||
const app = new App();
|
||||
new AcmCertificateAliasStack(app, 'AcmCertificateAliasStack');
|
||||
app.synth();
|
||||
Reference in New Issue
Block a user