Skip to content
v2.274.0

IntegManifest Struct ​

Definitions for the integration testing manifest.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { cloud_assembly_schema } from 'aws-cdk-lib';
const integManifest: cloud_assembly_schema.IntegManifest = {
  testCases: {
    testCasesKey: {
      stacks: ['stacks'],

      // the properties below are optional
      allowDeleteFailures: false,
      allowDestroy: ['allowDestroy'],
      assertionStack: 'assertionStack',
      assertionStackName: 'assertionStackName',
      cdkCommandOptions: {
        deploy: {
          args: {
            all: false,
            app: 'app',
            assetMetadata: false,
            caBundlePath: 'caBundlePath',
            changeSetName: 'changeSetName',
            ci: false,
            color: false,
            concurrency: 123,
            context: {
              contextKey: 'context',
            },
            debug: false,
            ec2Creds: false,
            exclusively: false,
            execute: false,
            force: false,
            ignoreErrors: false,
            json: false,
            lookups: false,
            notices: false,
            notificationArns: ['notificationArns'],
            output: 'output',
            outputsFile: 'outputsFile',
            parameters: {
              parametersKey: 'parameters',
            },
            pathMetadata: false,
            profile: 'profile',
            proxy: 'proxy',
            requireApproval: cloud_assembly_schema.RequireApproval.NEVER,
            reuseAssets: ['reuseAssets'],
            roleArn: 'roleArn',
            rollback: false,
            stacks: ['stacks'],
            staging: false,
            strict: false,
            toolkitStackName: 'toolkitStackName',
            trace: false,
            usePreviousParameters: false,
            verbose: false,
            versionReporting: false,
          },
          enabled: false,
          expectedMessage: 'expectedMessage',
          expectError: false,
        },
        destroy: {
          args: {
            all: false,
            app: 'app',
            assetMetadata: false,
            caBundlePath: 'caBundlePath',
            color: false,
            context: {
              contextKey: 'context',
            },
            debug: false,
            ec2Creds: false,
            exclusively: false,
            force: false,
            ignoreErrors: false,
            json: false,
            lookups: false,
            notices: false,
            output: 'output',
            pathMetadata: false,
            profile: 'profile',
            proxy: 'proxy',
            roleArn: 'roleArn',
            stacks: ['stacks'],
            staging: false,
            strict: false,
            trace: false,
            verbose: false,
            versionReporting: false,
          },
          enabled: false,
          expectedMessage: 'expectedMessage',
          expectError: false,
        },
      },
      diffAssets: false,
      hooks: {
        postDeploy: ['postDeploy'],
        postDestroy: ['postDestroy'],
        preDeploy: ['preDeploy'],
        preDestroy: ['preDestroy'],
      },
      regions: ['regions'],
      stackUpdateWorkflow: false,
    },
  },
  version: 'version',

  // the properties below are optional
  enableLookups: false,
  synthContext: {
    synthContextKey: 'synthContext',
  },
};

Properties ​

enableLookupsbooleanenable_lookupsboolenableLookupsBooleanEnableLookupsboolEnableLookups*bool= false#
Enable lookups for this test.

If lookups are enabled then stackUpdateWorkflow must be set to false. Lookups should only be enabled when you are explicitly testing lookups.

synthContext{ [key: string]: string }synth_contexttyping.Mapping[str, str]synthContextMap<String, String>SynthContextIDictionary<string, string>SynthContext*map[string]*string= no additional context#
Additional context to use when performing a synth.

Any context provided here will override any default context

testCases{ [key: string]: TestCase }test_casestyping.Mapping[str, TestCase]testCasesMap<String, TestCase>TestCasesIDictionary<string, TestCase>TestCases*map[string]TestCaserequired#
test cases.
versionstringversionstrversionStringVersionstringVersion*stringrequired#
Version of the manifest.