# GetContextKeyResult

Obtainable from: [ContextProvider.getKey](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.ContextProvider.html#getkey)

- Source: [`core/lib/context-provider.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/core/lib/context-provider.ts#L113)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';

declare const props: any;
const getContextKeyResult: cdk.GetContextKeyResult = {
  key: 'key',
  props: {
    propsKey: props,
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk

# props: Any

get_context_key_result = cdk.GetContextKeyResult(
    key="key",
    props={
        "props_key": props
    }
)
```

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.*;

Object props;

GetContextKeyResult getContextKeyResult = GetContextKeyResult.builder()
        .key("key")
        .props(Map.of(
                "propsKey", props))
        .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;

var props;

var getContextKeyResult = new GetContextKeyResult {
    Key = "key",
    Props = new Dictionary<string, object> {
        { "propsKey", props }
    }
};
```

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 cdk "github.com/aws/aws-cdk-go/awscdk"

var props interface{}

getContextKeyResult := &GetContextKeyResult{
	Key: jsii.String("key"),
	Props: map[string]interface{}{
		"propsKey": props,
	},
}
```

## Properties

- `key`: string (required)

- `props`: { [key: string]: any } (required)
