Skip to content
v2.277.0

MissingContext Struct ​

Represents a missing piece of context.

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

declare const assumeRoleAdditionalOptions: any;
const missingContext: cloud_assembly_schema.MissingContext = {
  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,
};
python
from aws_cdk.cloud_assembly_schema import MissingContext, AmiContextQuery
# 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

missing_context = 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
)
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;

MissingContext missingContext = 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();
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 missingContext = 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
};
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{}

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,
}

Properties ​