agent-claw: automated task changes

This commit is contained in:
daniel
2026-05-06 18:55:16 -05:00
parent 38905bb1e9
commit 732b00fb66
8494 changed files with 2018127 additions and 4 deletions

View File

@@ -0,0 +1,6 @@
import * as api from 'aws-cdk-lib/aws-apigateway';
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
import { InjectionContext, IPropertyInjector, PropertyInjectors, Resource } from 'aws-cdk-lib/core';
import { App, Stack } from 'aws-cdk-lib';
/// here

View File

@@ -0,0 +1,38 @@
import * as api from 'aws-cdk-lib/aws-apigateway';
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
import { InjectionContext, IPropertyInjector, PropertyInjectors } from 'aws-cdk-lib/core';
import { App, Stack } from 'aws-cdk-lib';
class ApiKeyPropsInjector implements IPropertyInjector {
readonly constructUniqueId: string;
constructor() {
this.constructUniqueId = api.ApiKey.PROPERTY_INJECTION_ID;
}
inject(originalProps: api.ApiKeyProps, context: InjectionContext): api.ApiKeyProps {
return {
enabled: false,
...originalProps,
};
}
}
class AnotherApiKeyPropsInjector implements IPropertyInjector {
readonly constructUniqueId: string;
constructor() {
this.constructUniqueId = api.ApiKey.PROPERTY_INJECTION_ID;
}
inject(originalProps: api.ApiKeyProps, context: InjectionContext): api.ApiKeyProps {
return {
enabled: true,
...originalProps,
};
}
}
const app = new App({});
/// here

View File

@@ -0,0 +1,19 @@
import { CfnOutput, Token } from 'aws-cdk-lib';
import { Construct } from 'constructs';
declare interface SumProps {
readonly lhs: number;
readonly rhs: number;
}
declare class Sum extends Construct {
public readonly result: number;
constructor(scope: Construct, id: string, props: SumProps);
}
class fixture$construct extends Construct {
public constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,44 @@
import { Construct, IConstruct } from 'constructs';
import { Stack, App } from 'aws-cdk-lib/core';
import * as s3 from 'aws-cdk-lib/aws-s3';
import * as logs from 'aws-cdk-lib/aws-logs';
import * as lambda from 'aws-cdk-lib/aws-lambda';
import * as dynamodb from 'aws-cdk-lib/aws-dynamodb';
import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
import * as origins from 'aws-cdk-lib/aws-cloudfront-origins';
import * as iam from 'aws-cdk-lib/aws-iam';
import { Mixins, Mixin, IConstructSelector, Shims, Aspects } from 'aws-cdk-lib/core';
import { IMixin } from 'constructs';
import { IAspect } from 'aws-cdk-lib/core';
import { BucketAutoDeleteObjects, BucketBlockPublicAccess } from 'aws-cdk-lib/aws-s3/mixins';
declare const scope: Construct;
declare const stack: Stack;
declare const selector: IConstructSelector;
class CustomProdSecurityConfig extends Mixin {
supports(_construct: any): boolean { return true; }
applyTo(_construct: any): void { }
}
class CustomBucket extends Construct {}
class EnableBucketVersioning implements IAspect {
visit(node: IConstruct): void {}
}
declare const bucketAccessLogsMixin: IMixin;
declare const bucket: s3.CfnBucket;
declare const queue: Construct;
interface MyEncryptionAtRestProps {
bucketKey?: string;
algorithm?: string;
}
function isKmsEncrypted(x: any): boolean {
return true;
}
/// here

View File

@@ -0,0 +1,6 @@
import { Construct } from "constructs";
class MyConstruct extends Construct {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
} }

View File

@@ -0,0 +1,21 @@
import { Construct } from 'constructs';
import { Aspects, CfnResource, Stack } from 'aws-cdk-lib';
import { Annotations, Capture, Match, Tags, Template } from 'aws-cdk-lib/assertions';
interface Expect {
toEqual(what: any): void;
toThrow(what?: any): void;
}
declare function expect(what: any): Expect;
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
const stack = new Stack();
const template = Template.fromStack(stack);
/// here
}
}

View File

@@ -0,0 +1,3 @@
import { Template } from 'aws-cdk-lib/assertions';
/// here

View File

@@ -0,0 +1,11 @@
// Fixture with packages imported, but nothing else
import { Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as acmpca from 'aws-cdk-lib/aws-acmpca';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,11 @@
// Fixture with packages imported, but nothing else
import { SecretValue, Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as amplify from 'aws-cdk-lib/aws-amplify';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,8 @@
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
class MyStack extends Stack {
constructor(scope: Construct, id: string) {
/// here
}
}

View File

@@ -0,0 +1,21 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { Duration, Stack } from 'aws-cdk-lib';
import * as apigateway from 'aws-cdk-lib/aws-apigateway';
import * as cognito from 'aws-cdk-lib/aws-cognito';
import * as lambda from 'aws-cdk-lib/aws-lambda';
import * as iam from 'aws-cdk-lib/aws-iam';
import * as s3 from 'aws-cdk-lib/aws-s3';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as firehose from 'aws-cdk-lib/aws-kinesisfirehose';
import * as logs from 'aws-cdk-lib/aws-logs';
import * as stepfunctions from 'aws-cdk-lib/aws-stepfunctions';
import * as sagemaker from 'aws-cdk-lib/aws-sagemaker';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,17 @@
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
import * as apigateway from 'aws-cdk-lib/aws-apigateway';
import * as stepfunctions from 'aws-cdk-lib/aws-stepfunctions';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
const machine: stepfunctions.IStateMachine = new stepfunctions.StateMachine(this, 'StateMachine', {
definition: new stepfunctions.Pass(this, 'PassState'),
stateMachineType: stepfunctions.StateMachineType.EXPRESS,
});
/// here
}
}

View File

@@ -0,0 +1,13 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { Duration, Stack } from 'aws-cdk-lib';
import * as apigwv2 from 'aws-cdk-lib/aws-apigatewayv2';
import * as lambda from 'aws-cdk-lib/aws-lambda';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,14 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { Duration, Stack } from 'aws-cdk-lib';
import * as apigwv2 from 'aws-cdk-lib/aws-apigatewayv2';
import * as iam from 'aws-cdk-lib/aws-iam';
import * as lambda from 'aws-cdk-lib/aws-lambda';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,15 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { Duration, Stack } from 'aws-cdk-lib';
import * as apigwv2 from 'aws-cdk-lib/aws-apigatewayv2';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2';
import * as lambda from 'aws-cdk-lib/aws-lambda';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,22 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { Stack, Duration } from 'aws-cdk-lib';
import * as lambda from 'aws-cdk-lib/aws-lambda';
import * as appconfig from 'aws-cdk-lib/aws-appconfig';
import * as s3 from 'aws-cdk-lib/aws-s3';
import * as kms from 'aws-cdk-lib/aws-kms';
import * as ssm from 'aws-cdk-lib/aws-ssm';
import * as secrets from 'aws-cdk-lib/aws-secretsmanager';
import * as sqs from 'aws-cdk-lib/aws-sqs';
import * as sns from 'aws-cdk-lib/aws-sns';
import * as codepipeline from 'aws-cdk-lib/aws-codepipeline';
import * as events from 'aws-cdk-lib/aws-events';
import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,48 @@
// Fixture with packages imported, but nothing else
import { Construct, Node } from 'constructs';
import { Aspects, CfnOutput, Stack, Duration, Resource, SecretValue } from 'aws-cdk-lib';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as appscaling from 'aws-cdk-lib/aws-applicationautoscaling';
import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch';
import * as iam from 'aws-cdk-lib/aws-iam';
interface UtilizationScalingProps {
readonly targetUtilizationPercent: number;
}
class ScalableAttribute {
public scaleOnSchedule(id: string, action: appscaling.ScalingSchedule) {
Array.isArray(id);
Array.isArray(action);
}
public scaleOnUtilization(props: UtilizationScalingProps) {
Array.isArray(props);
}
public scaleOnMetric(id: string, props: appscaling.BasicStepScalingPolicyProps) {
Array.isArray(id);
Array.isArray(props);
}
}
interface Caps {
readonly minCapacity: number;
readonly maxCapacity: number;
}
class SomeScalableResource {
public autoScaleCapacity(caps: Caps) {
return new ScalableAttribute();
}
}
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,18 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import cdk = require('aws-cdk-lib');
import acmpca = require('aws-cdk-lib/aws-acmpca');
import appmesh = require('aws-cdk-lib/aws-appmesh');
import certificatemanager = require('aws-cdk-lib/aws-certificatemanager');
import cloudmap = require('aws-cdk-lib/aws-servicediscovery');
import ec2 = require('aws-cdk-lib/aws-ec2');
import iam = require('aws-cdk-lib/aws-iam');
import { Duration } from 'aws-cdk-lib';
class Fixture extends cdk.Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,12 @@
// Fixture with packages imported, but nothing else
import { Stack, SecretValue } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as apprunner from 'aws-cdk-lib/aws-apprunner';
import * as path from 'path';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,17 @@
// Fixture with packages imported, but nothing else
import { Duration, RemovalPolicy, Stack, CfnOutput } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import appsync = require('aws-cdk-lib/aws-appsync');
import ec2 = require('aws-cdk-lib/aws-ec2');
import dynamodb = require('aws-cdk-lib/aws-dynamodb');
import iam = require('aws-cdk-lib/aws-iam');
import rds = require('aws-cdk-lib/aws-rds');
import * as wafv2 from 'aws-cdk-lib/aws-wafv2';
import path = require('path');
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,18 @@
// Fixture with packages imported, but nothing else
import { Construct, Node } from 'constructs';
import { Aspects, CfnOutput, Stack, Duration, Resource, SecretValue } from 'aws-cdk-lib';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as autoscaling from 'aws-cdk-lib/aws-autoscaling';
import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch';
import * as iam from 'aws-cdk-lib/aws-iam';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,19 @@
// Fixture with packages imported, but nothing else
import { Duration, RemovalPolicy, Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as backup from 'aws-cdk-lib/aws-backup';
import * as iam from 'aws-cdk-lib/aws-iam';
import * as dynamodb from 'aws-cdk-lib/aws-dynamodb';
import * as events from 'aws-cdk-lib/aws-events';
import * as kms from 'aws-cdk-lib/aws-kms';
import * as sns from 'aws-cdk-lib/aws-sns';
import * as rds from 'aws-cdk-lib/aws-rds';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,18 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { Stack, Tags } from 'aws-cdk-lib';
import * as cdk from 'aws-cdk-lib';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as iam from 'aws-cdk-lib/aws-iam';
import * as efs from 'aws-cdk-lib/aws-efs';
import * as batch from 'aws-cdk-lib/aws-batch';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,8 @@
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
class MyStack extends Stack {
constructor(scope: Construct, id: string) {
/// here
}
}

View File

@@ -0,0 +1,15 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import * as acm from 'aws-cdk-lib/aws-certificatemanager';
import * as route53 from 'aws-cdk-lib/aws-route53';
import { PublicHostedZone } from 'aws-cdk-lib/aws-route53';
import { StringParameter } from 'aws-cdk-lib/aws-ssm';
import { App, Stack, Names } from 'aws-cdk-lib';
import { AwsCustomResource, PhysicalResourceId, AwsCustomResourcePolicy } from 'aws-cdk-lib/custom-resources';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,10 @@
// Fixture with packages imported, but nothing else
import { Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,12 @@
// Fixture with packages imported, but nothing else
import { CfnOutput, Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as cloud9 from 'aws-cdk-lib/aws-cloud9';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,18 @@
import { Construct } from 'constructs';
import { App, Duration, Stack, CfnOutput } from 'aws-cdk-lib';
import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
import * as origins from 'aws-cdk-lib/aws-cloudfront-origins';
import * as s3 from 'aws-cdk-lib/aws-s3';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2';
import * as lambda from 'aws-cdk-lib/aws-lambda';
import * as wafv2 from 'aws-cdk-lib/aws-wafv2';
import * as path from 'path';
class Context extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,18 @@
// Fixture with packages imported, but nothing else
import { Duration, Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as apigateway from 'aws-cdk-lib/aws-apigateway';
import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
import * as origins from 'aws-cdk-lib/aws-cloudfront-origins';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2';
import * as s3 from 'aws-cdk-lib/aws-s3';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,14 @@
// Fixture with packages imported, but nothing else
import { Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as cloudtrail from 'aws-cdk-lib/aws-cloudtrail';
import * as sns from 'aws-cdk-lib/aws-sns';
import * as lambda from 'aws-cdk-lib/aws-lambda';
import * as targets from 'aws-cdk-lib/aws-events-targets';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,18 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { Stack, Duration } from 'aws-cdk-lib';
import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch';
import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2';
import * as route53 from 'aws-cdk-lib/aws-route53';
import * as sns from 'aws-cdk-lib/aws-sns';
import * as lambda from 'aws-cdk-lib/aws-lambda';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,12 @@
// Fixture with packages imported, but nothing else
import { Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as actions from 'aws-cdk-lib/aws-cloudwatch-actions';
import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,19 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { Stack, Duration, SecretValue } from 'aws-cdk-lib';
import codebuild = require('aws-cdk-lib/aws-codebuild');
import iam = require('aws-cdk-lib/aws-iam');
import ec2 = require('aws-cdk-lib/aws-ec2');
import lambda = require('aws-cdk-lib/aws-lambda');
import * as s3 from 'aws-cdk-lib/aws-s3';
import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2';
import * as ecr from 'aws-cdk-lib/aws-ecr';
import * as logs from 'aws-cdk-lib/aws-logs';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,13 @@
// Fixture with packages imported, but nothing else
import { Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as codecommit from 'aws-cdk-lib/aws-codecommit';
import * as codebuild from 'aws-cdk-lib/aws-codebuild';
import * as path from 'path';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,20 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { Duration, Stack } from 'aws-cdk-lib';
import * as codedeploy from 'aws-cdk-lib/aws-codedeploy';
import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import * as lambda from 'aws-cdk-lib/aws-lambda';
declare class EcsDeployment {
constructor(params: any);
}
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,15 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { Duration, Stack } from 'aws-cdk-lib';
import * as codedeploy from 'aws-cdk-lib/aws-codedeploy';
import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import * as lambda from 'aws-cdk-lib/aws-lambda';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,12 @@
// Fixture with packages imported, but nothing else
import { Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as codeguruprofiler from 'aws-cdk-lib/aws-codeguruprofiler';
import * as iam from 'aws-cdk-lib/aws-iam';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,61 @@
import { Construct } from 'constructs';
import { Duration, Stack } from 'aws-cdk-lib';
import * as codepipeline from 'aws-cdk-lib/aws-codepipeline';
interface MyActionProps {
variablesNamespace?: string;
actionName: string;
}
class MyAction extends codepipeline.Action {
public variables: { [key: string]: string };
protected readonly providedActionProperties: codepipeline.ActionProperties;
constructor(props: MyActionProps) {
super();
this.providedActionProperties = {
...props,
category: codepipeline.ActionCategory.SOURCE,
provider: 'Fake',
artifactBounds: { minInputs: 0, maxInputs: 0, minOutputs: 1, maxOutputs: 4 },
};
this.variables = { 'myVariable': 'var' };
}
public bound(_scope: Construct, _stage: codepipeline.IStage, _options: codepipeline.ActionBindOptions):
codepipeline.ActionConfig {
return {};
}
}
interface OtherActionProps {
config: string;
actionName: string;
}
class OtherAction extends codepipeline.Action {
protected readonly providedActionProperties: codepipeline.ActionProperties;
constructor(props: OtherActionProps) {
super();
this.providedActionProperties = {
...props,
category: codepipeline.ActionCategory.SOURCE,
provider: 'Fake',
artifactBounds: { minInputs: 0, maxInputs: 0, minOutputs: 1, maxOutputs: 4 },
};
}
public bound(_scope: Construct, _stage: codepipeline.IStage, _options: codepipeline.ActionBindOptions):
codepipeline.ActionConfig {
return {};
}
}
class Context extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,15 @@
import { Construct } from 'constructs';
import { App, Duration, PhysicalName, Stack } from 'aws-cdk-lib';
import * as codepipeline from 'aws-cdk-lib/aws-codepipeline';
import * as codepipeline_actions from 'aws-cdk-lib/aws-codepipeline-actions';
import * as s3 from 'aws-cdk-lib/aws-s3';
import * as iam from 'aws-cdk-lib/aws-iam';
import * as kms from 'aws-cdk-lib/aws-kms';
class Context extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,19 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { Arn, Duration, SecretValue, Stack } from 'aws-cdk-lib';
import codebuild = require('aws-cdk-lib/aws-codebuild');
import codedeploy = require('aws-cdk-lib/aws-codedeploy');
import codepipeline = require('aws-cdk-lib/aws-codepipeline');
import codepipeline_actions = require('aws-cdk-lib/aws-codepipeline-actions');
import codecommit = require('aws-cdk-lib/aws-codecommit');
import iam = require('aws-cdk-lib/aws-iam');
import lambda = require('aws-cdk-lib/aws-lambda');
import targets = require('aws-cdk-lib/aws-events-targets');
import s3 = require('aws-cdk-lib/aws-s3');
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,10 @@
// Fixture with packages imported, but nothing else
import { SecretValue, Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,10 @@
// Fixture with packages imported, but nothing else
import { Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,17 @@
// Fixture with packages imported, but nothing else
import { CfnOutput, Duration, Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as certificatemanager from 'aws-cdk-lib/aws-certificatemanager';
import * as cognito from 'aws-cdk-lib/aws-cognito';
import * as iam from 'aws-cdk-lib/aws-iam';
import * as lambda from 'aws-cdk-lib/aws-lambda';
import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';
import * as path from 'path';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,13 @@
// Fixture with packages imported, but nothing else
import { Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as cognito from 'aws-cdk-lib/aws-cognito';
import * as iam from 'aws-cdk-lib/aws-iam';
import { IdentityPool, UserPoolAuthenticationProvider } from 'aws-cdk-lib/aws-cognito-identitypool';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,8 @@
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
class MyStack extends Stack {
constructor(scope: Construct, id: string) {
/// here
}
}

View File

@@ -0,0 +1,14 @@
// Fixture with packages imported, but nothing else
import { Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as config from 'aws-cdk-lib/aws-config';
import * as targets from 'aws-cdk-lib/aws-events-targets';
import * as sns from 'aws-cdk-lib/aws-sns';
import * as lambda from 'aws-cdk-lib/aws-lambda';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,8 @@
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
class MyStack extends Stack {
constructor(scope: Construct, id: string) {
/// here
}
}

View File

@@ -0,0 +1,8 @@
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
class MyStack extends Stack {
constructor(scope: Construct, id: string) {
/// here
}
}

View File

@@ -0,0 +1,8 @@
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
class MyStack extends Stack {
constructor(scope: Construct, id: string) {
/// here
}
}

View File

@@ -0,0 +1,12 @@
// Fixture with packages imported, but nothing else
import { RemovalPolicy, Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as docdb from 'aws-cdk-lib/aws-docdb';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,8 @@
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
class MyStack extends Stack {
constructor(scope: Construct, id: string) {
/// here
}
}

View File

@@ -0,0 +1,13 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { Duration, Stack } from 'aws-cdk-lib';
import dynamodb = require('aws-cdk-lib/aws-dynamodb');
import iam = require('aws-cdk-lib/aws-iam');
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,18 @@
// Fixture with packages imported and a VPC created
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
import iam = require('aws-cdk-lib/aws-iam');
import ec2 = require('aws-cdk-lib/aws-ec2');
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
const vpc = new ec2.Vpc(this, 'VPC');
const samlProvider = new iam.SamlProvider(this, 'Provider', {
metadataDocument: iam.SamlMetadataDocument.fromXml('xml'),
})
/// here
}
}

View File

@@ -0,0 +1,19 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { Aspects, Duration, Fn, Size, Stack, StackProps } from 'aws-cdk-lib';
import ec2 = require('aws-cdk-lib/aws-ec2');
import s3 = require('aws-cdk-lib/aws-s3');
import iam = require('aws-cdk-lib/aws-iam');
import logs = require('aws-cdk-lib/aws-logs');
import ssm = require('aws-cdk-lib/aws-ssm');
import autoscaling = require('aws-cdk-lib/aws-autoscaling');
import elbv2 = require('aws-cdk-lib/aws-elasticloadbalancingv2');
import rds = require('aws-cdk-lib/aws-rds');
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,14 @@
// Fixture with packages imported and a VPC created
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
import ec2 = require('aws-cdk-lib/aws-ec2');
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
const vpc = new ec2.Vpc(this, 'VPC');
/// here
}
}

View File

@@ -0,0 +1,23 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { Duration, Stack, RemovalPolicy } from 'aws-cdk-lib';
import * as ecr from 'aws-cdk-lib/aws-ecr';
import * as events from 'aws-cdk-lib/aws-events';
import * as iam from 'aws-cdk-lib/aws-iam';
class SomeTarget implements events.IRuleTarget {
public bind(): events.RuleTargetConfig {
return {
arn: 'ARN1',
};
}
}
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,12 @@
// Fixture with packages imported, but nothing else
import { Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as path from 'path';
import * as ecr_assets from 'aws-cdk-lib/aws-ecr-assets';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,26 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { SecretValue, Stack, Size, Duration } from 'aws-cdk-lib';
import * as autoscaling from 'aws-cdk-lib/aws-autoscaling';
import * as cloudmap from 'aws-cdk-lib/aws-servicediscovery';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as elb from 'aws-cdk-lib/aws-elasticloadbalancing';
import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2';
import * as events from 'aws-cdk-lib/aws-events';
import * as kms from 'aws-cdk-lib/aws-kms';
import * as logs from 'aws-cdk-lib/aws-logs';
import * as s3 from 'aws-cdk-lib/aws-s3';
import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';
import * as ssm from 'aws-cdk-lib/aws-ssm';
import * as targets from 'aws-cdk-lib/aws-events-targets';
import * as iam from 'aws-cdk-lib/aws-iam';
import * as path from 'path';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,17 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { Duration, Stack } from 'aws-cdk-lib';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import * as ecsPatterns from 'aws-cdk-lib/aws-ecs-patterns';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as appscaling from 'aws-cdk-lib/aws-applicationautoscaling';
import * as cxapi from 'aws-cdk-lib/cx-api';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,13 @@
// Fixture with packages imported, but nothing else
import { Duration, RemovalPolicy, Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as efs from 'aws-cdk-lib/aws-efs';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,31 @@
// Fixture with file system and an EC2 instance created in a VPC
import { Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as efs from 'aws-cdk-lib/aws-efs';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as iam from 'aws-cdk-lib/aws-iam';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
const vpc = new ec2.Vpc(this, 'VPC');
const fileSystem = new efs.FileSystem(this, 'FileSystem', {
vpc,
});
const instance = new ec2.Instance(this, 'instance', {
instanceType: ec2.InstanceType.of(ec2.InstanceClass.T2, ec2.InstanceSize.LARGE),
machineImage: new ec2.AmazonLinuxImage({
generation: ec2.AmazonLinuxGeneration.AMAZON_LINUX_2
}),
vpc,
vpcSubnets: {
subnetType: ec2.SubnetType.PUBLIC,
}
});
/// here
}
}

View File

@@ -0,0 +1,35 @@
import { Construct } from 'constructs';
import { CfnOutput, Fn, Size, Stack } from 'aws-cdk-lib';
import * as eks from 'aws-cdk-lib/aws-eks';
import * as s3 from 'aws-cdk-lib/aws-s3';
import * as cdk8s from 'cdk8s';
import * as kplus from 'cdk8s-plus-25';
interface MyChartProps {
readonly bucket: s3.Bucket;
}
class MyChart extends cdk8s.Chart {
constructor(scope: Construct, id: string, props: MyChartProps) {
super(scope, id);
new kplus.Pod(this, 'Pod', {
containers: [
new kplus.Container({
image: 'my-image',
envVariables: {
BUCKET_NAME: kplus.EnvValue.fromValue(props.bucket.bucketName),
},
}),
],
});
}
}
class Context extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,17 @@
import { Construct } from 'constructs';
import { CfnOutput, Fn, Size, Stack } from 'aws-cdk-lib';
import * as eks from 'aws-cdk-lib/aws-eks';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as lambda from 'aws-cdk-lib/aws-lambda';
import * as iam from 'aws-cdk-lib/aws-iam';
import * as kms from 'aws-cdk-lib/aws-kms';
import * as s3 from 'aws-cdk-lib/aws-s3';
import * as autoscaling from 'aws-cdk-lib/aws-autoscaling';
class Context extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,16 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { CfnOutput, Fn, Size, Stack } from 'aws-cdk-lib';
import * as eks from 'aws-cdk-lib/aws-eks-v2';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as lambda from 'aws-cdk-lib/aws-lambda';
import * as iam from 'aws-cdk-lib/aws-iam';
import * as kms from 'aws-cdk-lib/aws-kms';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,13 @@
// Fixture with packages imported, but nothing else
import { Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as elb from 'aws-cdk-lib/aws-elasticloadbalancing';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as autoscaling from 'aws-cdk-lib/aws-autoscaling';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,19 @@
// Fixture with packages imported, but nothing else
import { Construct, Node } from 'constructs';
import { CfnOutput, Stack, Duration, Resource, SecretValue, Fn } from 'aws-cdk-lib';
import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as autoscaling from 'aws-cdk-lib/aws-autoscaling';
import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch';
import * as s3 from 'aws-cdk-lib/aws-s3';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,17 @@
// Fixture with packages imported, but nothing else
import { Construct, Node } from 'constructs';
import { CfnOutput, Stack, Duration, Resource, SecretValue, Fn } from 'aws-cdk-lib';
import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2';
import * as actions from 'aws-cdk-lib/aws-elasticloadbalancingv2-actions';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as autoscaling from 'aws-cdk-lib/aws-autoscaling';
import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch';
import { aws_cognito as cognito } from 'aws-cdk-lib';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,15 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { RemovalPolicy, Stack } from 'aws-cdk-lib';
import * as es from 'aws-cdk-lib/aws-elasticsearch';
import * as lambda from 'aws-cdk-lib/aws-lambda';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as iam from 'aws-cdk-lib/aws-iam';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,17 @@
import { Construct } from 'constructs';
import * as cdk from 'aws-cdk-lib';
import * as es from 'aws-cdk-lib/aws-elasticsearch';
import * as iam from 'aws-cdk-lib/aws-iam';
import * as opensearch from 'aws-cdk-lib/aws-opensearchservice';
declare const role: iam.IRole;
declare const elasticsearchVersion: es.ElasticsearchVersion;
declare const openSearchVersion: opensearch.EngineVersion;
class Fixture extends Construct {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,8 @@
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
class MyStack extends Stack {
constructor(scope: Construct, id: string) {
/// here
}
}

View File

@@ -0,0 +1,12 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { Stack, Duration } from 'aws-cdk-lib';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,20 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { Stack, Duration } from 'aws-cdk-lib';
import * as events from 'aws-cdk-lib/aws-events';
import * as targets from 'aws-cdk-lib/aws-events-targets';
import * as codecommit from 'aws-cdk-lib/aws-codecommit';
import * as codebuild from 'aws-cdk-lib/aws-codebuild';
import * as sns from 'aws-cdk-lib/aws-sns';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import * as iam from 'aws-cdk-lib/aws-iam';
import * as lambda from 'aws-cdk-lib/aws-lambda';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,16 @@
// Fixture with packages imported, but nothing else
import { Duration, RemovalPolicy, SecretValue, Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as targets from 'aws-cdk-lib/aws-events-targets';
import * as events from 'aws-cdk-lib/aws-events';
import * as sqs from 'aws-cdk-lib/aws-sqs';
import * as cdk from 'aws-cdk-lib';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,23 @@
// Fixture with packages imported, but nothing else
import { Duration, RemovalPolicy, Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as targets from 'aws-cdk-lib/aws-events-targets';
import * as events from 'aws-cdk-lib/aws-events';
import * as kinesis from 'aws-cdk-lib/aws-kinesis';
import * as codecommit from 'aws-cdk-lib/aws-codecommit';
import * as cdk from 'aws-cdk-lib';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
const repository = new codecommit.Repository(this, 'MyRepo', {
repositoryName: 'aws-cdk-events',
});
const stream = new kinesis.Stream(this, 'MyStream');
/// here
}
}

View File

@@ -0,0 +1,23 @@
// Fixture with packages imported, but nothing else
import { Duration, RemovalPolicy, Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as targets from 'aws-cdk-lib/aws-events-targets';
import * as events from 'aws-cdk-lib/aws-events';
import * as sqs from 'aws-cdk-lib/aws-sqs';
import * as codecommit from 'aws-cdk-lib/aws-codecommit';
import * as cdk from 'aws-cdk-lib';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
const repository = new codecommit.Repository(this, 'MyRepo', {
repositoryName: 'aws-cdk-events',
});
const queue = new sqs.Queue(this, 'MyQueue');
/// here
}
}

View File

@@ -0,0 +1,23 @@
// Fixture with packages imported, but nothing else
import { Duration, RemovalPolicy, Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as targets from 'aws-cdk-lib/aws-events-targets';
import * as events from 'aws-cdk-lib/aws-events';
import * as sns from 'aws-cdk-lib/aws-sns';
import * as codecommit from 'aws-cdk-lib/aws-codecommit';
import * as cdk from 'aws-cdk-lib';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
const repository = new codecommit.Repository(this, 'MyRepo', {
repositoryName: 'aws-cdk-events',
});
const topic = new sns.Topic(this, 'MyTopic');
/// here
}
}

View File

@@ -0,0 +1,8 @@
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
class MyStack extends Stack {
constructor(scope: Construct, id: string) {
/// here
}
}

View File

@@ -0,0 +1,8 @@
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
class MyStack extends Stack {
constructor(scope: Construct, id: string) {
/// here
}
}

View File

@@ -0,0 +1,12 @@
// Fixture with packages imported, but nothing else
import { Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as fsx from 'aws-cdk-lib/aws-fsx';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,18 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { Duration, Size, Stack, CfnOutput } from 'aws-cdk-lib';
import * as gamelift from 'aws-cdk-lib/aws-gamelift';
import * as s3 from 'aws-cdk-lib/aws-s3';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as sns from 'aws-cdk-lib/aws-sns';
import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch';
import * as iam from 'aws-cdk-lib/aws-iam';
import * as path from 'path';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,14 @@
// Fixture with packages imported, but nothing else
import { Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as globalaccelerator from 'aws-cdk-lib/aws-globalaccelerator';
import * as ga_endpoints from 'aws-cdk-lib/aws-globalaccelerator-endpoints';
import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,17 @@
// Fixture with packages imported, but nothing else
import * as path from 'path';
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
import * as glue from 'aws-cdk-lib/aws-glue';
import * as s3 from 'aws-cdk-lib/aws-s3';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as kms from 'aws-cdk-lib/aws-kms';
import * as rds from 'aws-cdk-lib/aws-rds';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,8 @@
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
class MyStack extends Stack {
constructor(scope: Construct, id: string) {
/// here
}
}

View File

@@ -0,0 +1,23 @@
import { Construct } from 'constructs';
import {
CustomResource,
Stack,
App,
DefaultStackSynthesizer,
Stage,
PermissionsBoundary,
PERMISSIONS_BOUNDARY_CONTEXT_KEY,
} from 'aws-cdk-lib';
import * as codepipeline from 'aws-cdk-lib/aws-codepipeline';
import * as s3 from 'aws-cdk-lib/aws-s3';
import * as dynamodb from 'aws-cdk-lib/aws-dynamodb';
import * as lambda from 'aws-cdk-lib/aws-lambda';
import * as iam from 'aws-cdk-lib/aws-iam';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,8 @@
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
class MyStack extends Stack {
constructor(scope: Construct, id: string) {
/// here
}
}

View File

@@ -0,0 +1,8 @@
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
class MyStack extends Stack {
constructor(scope: Construct, id: string) {
/// here
}
}

View File

@@ -0,0 +1,8 @@
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
class MyStack extends Stack {
constructor(scope: Construct, id: string) {
/// here
}
}

View File

@@ -0,0 +1,14 @@
// Fixture with packages imported, but nothing else
import { Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as actions from 'aws-cdk-lib/aws-iot-actions';
import * as iot from 'aws-cdk-lib/aws-iot';
import * as lambda from 'aws-cdk-lib/aws-lambda';
import * as s3 from 'aws-cdk-lib/aws-s3';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,14 @@
// Fixture with packages imported, but nothing else
import { Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as actions from 'aws-cdk-lib/aws-iot-actions';
import * as iot from 'aws-cdk-lib/aws-iot';
import * as lambda from 'aws-cdk-lib/aws-lambda';
import * as s3 from 'aws-cdk-lib/aws-s3';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,10 @@
// Fixture with packages imported, but nothing else
import { Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,8 @@
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
class MyStack extends Stack {
constructor(scope: Construct, id: string) {
/// here
}
}

View File

@@ -0,0 +1,8 @@
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
class MyStack extends Stack {
constructor(scope: Construct, id: string) {
/// here
}
}

View File

@@ -0,0 +1,19 @@
// Fixture with packages imported, but nothing else
import { Duration, Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as ivs from 'aws-cdk-lib/aws-ivs';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
const myChannelArn = 'arn:aws:ivs:us-west-2:123456789012:channel/abcdABCDefgh';
const myPublicKeyPemString = `-----BEGIN PUBLIC KEY-----
MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEmL8CBtm6KLUegSd5IJexniN8LItJiDwg
zlYiti/ZTP/JPoUMb0fjqBDKZRhGbA6gSHdcm5YkdbGzIsQRnIqfhYy52kO13miR
d2/EL+sn3x1/ziRhvZ2elvpaZAN68QiM
-----END PUBLIC KEY-----`;
/// here
}
}

View File

@@ -0,0 +1,15 @@
// Fixture with packages imported, but nothing else
import { Duration, Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as ivs from 'aws-cdk-lib/aws-ivs';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
const myChannelArn = 'arn:aws:ivs:us-west-2:123456789012:channel/abcdABCDefgh';
const myChannel = ivs.Channel.fromChannelArn(this, 'Channel', myChannelArn);
/// here
}
}

View File

@@ -0,0 +1,8 @@
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
class MyStack extends Stack {
constructor(scope: Construct, id: string) {
/// here
}
}

View File

@@ -0,0 +1,8 @@
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
class MyStack extends Stack {
constructor(scope: Construct, id: string) {
/// here
}
}

View File

@@ -0,0 +1,8 @@
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
class MyStack extends Stack {
constructor(scope: Construct, id: string) {
/// here
}
}

View File

@@ -0,0 +1,14 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { Duration, Stack } from 'aws-cdk-lib';
import * as kinesis from 'aws-cdk-lib/aws-kinesis';
import * as kms from 'aws-cdk-lib/aws-kms';
import * as iam from 'aws-cdk-lib/aws-iam';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,15 @@
// Fixture with packages imported, but nothing else
import { Construct } from 'constructs';
import { Duration, Stack } from 'aws-cdk-lib';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as flink from 'aws-cdk-lib/aws-kinesisanalytics-flink';
import * as logs from 'aws-cdk-lib/aws-logs';
import * as s3 from 'aws-cdk-lib/aws-s3';
class Fixture extends Stack {
constructor(scope: Construct, id: string) {
super(scope, id);
/// here
}
}

View File

@@ -0,0 +1,8 @@
import { Construct } from 'constructs';
import { Stack } from 'aws-cdk-lib';
class MyStack extends Stack {
constructor(scope: Construct, id: string) {
/// here
}
}

Some files were not shown because too many files have changed in this diff Show More