# AssemblyManifest

A manifest which describes the cloud assembly.

Obtainable from: [Manifest.loadAssemblyManifest](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.cloud_assembly_schema.Manifest.html#loadassemblymanifest)
Used as argument in: [Manifest.saveAssemblyManifest](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.cloud_assembly_schema.Manifest.html#saveassemblymanifest)

- Source: [`lib/cloud-assembly/schema.ts`](https://github.com/aws/aws-cdk-cli/blob/HEAD/packages/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/schema.ts)
- Type last changed: v2.174.0 · 4 Jan 2025

## Example

TypeScript:

```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';

declare const assumeRoleAdditionalOptions: any;
const assemblyManifest: cloud_assembly_schema.AssemblyManifest = {
  version: 'version',

  // the properties below are optional
  artifacts: {
    artifactsKey: {
      type: cloud_assembly_schema.ArtifactType.NONE,

      // the properties below are optional
      additionalMetadataFile: 'additionalMetadataFile',
      dependencies: ['dependencies'],
      displayName: 'displayName',
      environment: 'environment',
      metadata: {
        metadataKey: [{
          type: 'type',

          // the properties below are optional
          data: 'data',
          trace: ['trace'],
        }],
      },
      properties: {
        templateFile: 'templateFile',

        // the properties below are optional
        assumeRoleAdditionalOptions: {
          assumeRoleAdditionalOptionsKey: assumeRoleAdditionalOptions,
        },
        assumeRoleArn: 'assumeRoleArn',
        assumeRoleExternalId: 'assumeRoleExternalId',
        bootstrapStackVersionSsmParameter: 'bootstrapStackVersionSsmParameter',
        cloudFormationExecutionRoleArn: 'cloudFormationExecutionRoleArn',
        lookupRole: {
          arn: 'arn',

          // the properties below are optional
          assumeRoleAdditionalOptions: {
            assumeRoleAdditionalOptionsKey: assumeRoleAdditionalOptions,
          },
          assumeRoleExternalId: 'assumeRoleExternalId',
          bootstrapStackVersionSsmParameter: 'bootstrapStackVersionSsmParameter',
          requiresBootstrapStackVersion: 123,
        },
        notificationArns: ['notificationArns'],
        parameters: {
          parametersKey: 'parameters',
        },
        requiresBootstrapStackVersion: 123,
        stackName: 'stackName',
        stackTemplateAssetObjectUrl: 'stackTemplateAssetObjectUrl',
        tags: {
          tagsKey: 'tags',
        },
        terminationProtection: false,
        validateOnSynth: false,
      },
    },
  },
  minimumCliVersion: 'minimumCliVersion',
  missing: [{
    key: 'key',
    props: {
      account: 'account',
      filters: {
        filtersKey: ['filters'],
      },
      region: 'region',

      // the properties below are optional
      assumeRoleAdditionalOptions: {
        assumeRoleAdditionalOptionsKey: assumeRoleAdditionalOptions,
      },
      lookupRoleArn: 'lookupRoleArn',
      lookupRoleExternalId: 'lookupRoleExternalId',
      owners: ['owners'],
    },
    provider: cloud_assembly_schema.ContextProvider.AMI_PROVIDER,
  }],
  runtime: {
    libraries: {
      librariesKey: 'libraries',
    },
  },
};
```

Python:

```python
from aws_cdk.cloud_assembly_schema import AssemblyManifest, ArtifactManifest, MetadataEntry, AwsCloudFormationStackProperties, BootstrapRole, MissingContext, AmiContextQuery, RuntimeInfo
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import cloud_assembly_schema

# assume_role_additional_options: Any

assembly_manifest = AssemblyManifest(
    version="version",

    # the properties below are optional
    artifacts={
        "artifacts_key": ArtifactManifest(
            type=cloud_assembly_schema.ArtifactType.NONE,

            # the properties below are optional
            additional_metadata_file="additionalMetadataFile",
            dependencies=["dependencies"],
            display_name="displayName",
            environment="environment",
            metadata={
                "metadata_key": [MetadataEntry(
                    type="type",

                    # the properties below are optional
                    data="data",
                    trace=["trace"]
                )]
            },
            properties=AwsCloudFormationStackProperties(
                template_file="templateFile",

                # the properties below are optional
                assume_role_additional_options={
                    "assume_role_additional_options_key": assume_role_additional_options
                },
                assume_role_arn="assumeRoleArn",
                assume_role_external_id="assumeRoleExternalId",
                bootstrap_stack_version_ssm_parameter="bootstrapStackVersionSsmParameter",
                cloud_formation_execution_role_arn="cloudFormationExecutionRoleArn",
                lookup_role=BootstrapRole(
                    arn="arn",

                    # the properties below are optional
                    assume_role_additional_options={
                        "assume_role_additional_options_key": assume_role_additional_options
                    },
                    assume_role_external_id="assumeRoleExternalId",
                    bootstrap_stack_version_ssm_parameter="bootstrapStackVersionSsmParameter",
                    requires_bootstrap_stack_version=123
                ),
                notification_arns=["notificationArns"],
                parameters={
                    "parameters_key": "parameters"
                },
                requires_bootstrap_stack_version=123,
                stack_name="stackName",
                stack_template_asset_object_url="stackTemplateAssetObjectUrl",
                tags={
                    "tags_key": "tags"
                },
                termination_protection=False,
                validate_on_synth=False
            )
        )
    },
    minimum_cli_version="minimumCliVersion",
    missing=[MissingContext(
        key="key",
        props=AmiContextQuery(
            account="account",
            filters={
                "filters_key": ["filters"]
            },
            region="region",

            # the properties below are optional
            assume_role_additional_options={
                "assume_role_additional_options_key": assume_role_additional_options
            },
            lookup_role_arn="lookupRoleArn",
            lookup_role_external_id="lookupRoleExternalId",
            owners=["owners"]
        ),
        provider=cloud_assembly_schema.ContextProvider.AMI_PROVIDER
    )],
    runtime=RuntimeInfo(
        libraries={
            "libraries_key": "libraries"
        }
    )
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cloud_assembly_schema.*;

Object assumeRoleAdditionalOptions;

AssemblyManifest assemblyManifest = AssemblyManifest.builder()
        .version("version")

        // the properties below are optional
        .artifacts(Map.of(
                "artifactsKey", ArtifactManifest.builder()
                        .type(ArtifactType.NONE)

                        // the properties below are optional
                        .additionalMetadataFile("additionalMetadataFile")
                        .dependencies(List.of("dependencies"))
                        .displayName("displayName")
                        .environment("environment")
                        .metadata(Map.of(
                                "metadataKey", List.of(MetadataEntry.builder()
                                        .type("type")

                                        // the properties below are optional
                                        .data("data")
                                        .trace(List.of("trace"))
                                        .build())))
                        .properties(AwsCloudFormationStackProperties.builder()
                                .templateFile("templateFile")

                                // the properties below are optional
                                .assumeRoleAdditionalOptions(Map.of(
                                        "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions))
                                .assumeRoleArn("assumeRoleArn")
                                .assumeRoleExternalId("assumeRoleExternalId")
                                .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter")
                                .cloudFormationExecutionRoleArn("cloudFormationExecutionRoleArn")
                                .lookupRole(BootstrapRole.builder()
                                        .arn("arn")

                                        // the properties below are optional
                                        .assumeRoleAdditionalOptions(Map.of(
                                                "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions))
                                        .assumeRoleExternalId("assumeRoleExternalId")
                                        .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter")
                                        .requiresBootstrapStackVersion(123)
                                        .build())
                                .notificationArns(List.of("notificationArns"))
                                .parameters(Map.of(
                                        "parametersKey", "parameters"))
                                .requiresBootstrapStackVersion(123)
                                .stackName("stackName")
                                .stackTemplateAssetObjectUrl("stackTemplateAssetObjectUrl")
                                .tags(Map.of(
                                        "tagsKey", "tags"))
                                .terminationProtection(false)
                                .validateOnSynth(false)
                                .build())
                        .build()))
        .minimumCliVersion("minimumCliVersion")
        .missing(List.of(MissingContext.builder()
                .key("key")
                .props(AmiContextQuery.builder()
                        .account("account")
                        .filters(Map.of(
                                "filtersKey", List.of("filters")))
                        .region("region")

                        // the properties below are optional
                        .assumeRoleAdditionalOptions(Map.of(
                                "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions))
                        .lookupRoleArn("lookupRoleArn")
                        .lookupRoleExternalId("lookupRoleExternalId")
                        .owners(List.of("owners"))
                        .build())
                .provider(ContextProvider.AMI_PROVIDER)
                .build()))
        .runtime(RuntimeInfo.builder()
                .libraries(Map.of(
                        "librariesKey", "libraries"))
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Cloud_assembly_schema;

var assumeRoleAdditionalOptions;

var assemblyManifest = new AssemblyManifest {
    Version = "version",

    // the properties below are optional
    Artifacts = new Dictionary<string, ArtifactManifest> {
        { "artifactsKey", new ArtifactManifest {
            Type = ArtifactType.NONE,

            // the properties below are optional
            AdditionalMetadataFile = "additionalMetadataFile",
            Dependencies = new [] { "dependencies" },
            DisplayName = "displayName",
            Environment = "environment",
            Metadata = new Dictionary<string, MetadataEntry[]> {
                { "metadataKey", new [] { new MetadataEntry {
                    Type = "type",

                    // the properties below are optional
                    Data = "data",
                    Trace = new [] { "trace" }
                } } }
            },
            Properties = new AwsCloudFormationStackProperties {
                TemplateFile = "templateFile",

                // the properties below are optional
                AssumeRoleAdditionalOptions = new Dictionary<string, object> {
                    { "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions }
                },
                AssumeRoleArn = "assumeRoleArn",
                AssumeRoleExternalId = "assumeRoleExternalId",
                BootstrapStackVersionSsmParameter = "bootstrapStackVersionSsmParameter",
                CloudFormationExecutionRoleArn = "cloudFormationExecutionRoleArn",
                LookupRole = new BootstrapRole {
                    Arn = "arn",

                    // the properties below are optional
                    AssumeRoleAdditionalOptions = new Dictionary<string, object> {
                        { "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions }
                    },
                    AssumeRoleExternalId = "assumeRoleExternalId",
                    BootstrapStackVersionSsmParameter = "bootstrapStackVersionSsmParameter",
                    RequiresBootstrapStackVersion = 123
                },
                NotificationArns = new [] { "notificationArns" },
                Parameters = new Dictionary<string, string> {
                    { "parametersKey", "parameters" }
                },
                RequiresBootstrapStackVersion = 123,
                StackName = "stackName",
                StackTemplateAssetObjectUrl = "stackTemplateAssetObjectUrl",
                Tags = new Dictionary<string, string> {
                    { "tagsKey", "tags" }
                },
                TerminationProtection = false,
                ValidateOnSynth = false
            }
        } }
    },
    MinimumCliVersion = "minimumCliVersion",
    Missing = new [] { new MissingContext {
        Key = "key",
        Props = new AmiContextQuery {
            Account = "account",
            Filters = new Dictionary<string, string[]> {
                { "filtersKey", new [] { "filters" } }
            },
            Region = "region",

            // the properties below are optional
            AssumeRoleAdditionalOptions = new Dictionary<string, object> {
                { "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions }
            },
            LookupRoleArn = "lookupRoleArn",
            LookupRoleExternalId = "lookupRoleExternalId",
            Owners = new [] { "owners" }
        },
        Provider = ContextProvider.AMI_PROVIDER
    } },
    Runtime = new RuntimeInfo {
        Libraries = new Dictionary<string, string> {
            { "librariesKey", "libraries" }
        }
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var assumeRoleAdditionalOptions interface{}

assemblyManifest := &AssemblyManifest{
	Version: jsii.String("version"),

	// the properties below are optional
	Artifacts: map[string]ArtifactManifest{
		"artifactsKey": &ArtifactManifest{
			"type": awscdk.cloud_assembly_schema.ArtifactType_NONE,

			// the properties below are optional
			"additionalMetadataFile": jsii.String("additionalMetadataFile"),
			"dependencies": []*string{
				jsii.String("dependencies"),
			},
			"displayName": jsii.String("displayName"),
			"environment": jsii.String("environment"),
			"metadata": map[string][]MetadataEntry{
				"metadataKey": []MetadataEntry{
					&MetadataEntry{
						"type": jsii.String("type"),

						// the properties below are optional
						"data": jsii.String("data"),
						"trace": []*string{
							jsii.String("trace"),
						},
					},
				},
			},
			"properties": &AwsCloudFormationStackProperties{
				"templateFile": jsii.String("templateFile"),

				// the properties below are optional
				"assumeRoleAdditionalOptions": map[string]interface{}{
					"assumeRoleAdditionalOptionsKey": assumeRoleAdditionalOptions,
				},
				"assumeRoleArn": jsii.String("assumeRoleArn"),
				"assumeRoleExternalId": jsii.String("assumeRoleExternalId"),
				"bootstrapStackVersionSsmParameter": jsii.String("bootstrapStackVersionSsmParameter"),
				"cloudFormationExecutionRoleArn": jsii.String("cloudFormationExecutionRoleArn"),
				"lookupRole": &BootstrapRole{
					"arn": jsii.String("arn"),

					// the properties below are optional
					"assumeRoleAdditionalOptions": map[string]interface{}{
						"assumeRoleAdditionalOptionsKey": assumeRoleAdditionalOptions,
					},
					"assumeRoleExternalId": jsii.String("assumeRoleExternalId"),
					"bootstrapStackVersionSsmParameter": jsii.String("bootstrapStackVersionSsmParameter"),
					"requiresBootstrapStackVersion": jsii.Number(123),
				},
				"notificationArns": []*string{
					jsii.String("notificationArns"),
				},
				"parameters": map[string]*string{
					"parametersKey": jsii.String("parameters"),
				},
				"requiresBootstrapStackVersion": jsii.Number(123),
				"stackName": jsii.String("stackName"),
				"stackTemplateAssetObjectUrl": jsii.String("stackTemplateAssetObjectUrl"),
				"tags": map[string]*string{
					"tagsKey": jsii.String("tags"),
				},
				"terminationProtection": jsii.Boolean(false),
				"validateOnSynth": jsii.Boolean(false),
			},
		},
	},
	MinimumCliVersion: jsii.String("minimumCliVersion"),
	Missing: []MissingContext{
		&MissingContext{
			Key: jsii.String("key"),
			Props: &AmiContextQuery{
				Account: jsii.String("account"),
				Filters: map[string][]*string{
					"filtersKey": []*string{
						jsii.String("filters"),
					},
				},
				Region: jsii.String("region"),

				// the properties below are optional
				AssumeRoleAdditionalOptions: map[string]interface{}{
					"assumeRoleAdditionalOptionsKey": assumeRoleAdditionalOptions,
				},
				LookupRoleArn: jsii.String("lookupRoleArn"),
				LookupRoleExternalId: jsii.String("lookupRoleExternalId"),
				Owners: []interface{}{
					jsii.String("owners"),
				},
			},
			Provider: awscdk.Cloud_assembly_schema.ContextProvider_AMI_PROVIDER,
		},
	},
	Runtime: &RuntimeInfo{
		Libraries: map[string]*string{
			"librariesKey": jsii.String("libraries"),
		},
	},
}
```

## Properties

- `artifacts`: { [key: string]: [ArtifactManifest](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.cloud_assembly_schema.ArtifactManifest.html) } — The set of artifacts in this assembly.

  **Default:** no artifacts.

- `minimumCliVersion`: string — Required CLI version, if available.

  **Default:** Minimum CLI version unknown

  If the manifest producer knows, it can put the minimum version of the CLI
  here that supports reading this assembly.

  If set, it can be used to show a more informative error message to users.

- `missing`: [MissingContext](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.cloud_assembly_schema.MissingContext.html)[] — Missing context information.

  **Default:** no missing context.

  If this field has values, it means that the
  cloud assembly is not complete and should not be deployed.

- `runtime`: [RuntimeInfo](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.cloud_assembly_schema.RuntimeInfo.html) — Runtime information.

  **Default:** no info.

- `version`: string (required) — Protocol version.
