# CfnDynamicReferenceProps

Properties for a Dynamic Reference.

- Source: [`core/lib/cfn-dynamic-reference.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/core/lib/cfn-dynamic-reference.ts#L6)

## 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';
const cfnDynamicReferenceProps: cdk.CfnDynamicReferenceProps = {
  referenceKey: 'referenceKey',
  service: cdk.CfnDynamicReferenceService.SSM,
};
```

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

cfn_dynamic_reference_props = cdk.CfnDynamicReferenceProps(
    reference_key="referenceKey",
    service=cdk.CfnDynamicReferenceService.SSM
)
```

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

CfnDynamicReferenceProps cfnDynamicReferenceProps = CfnDynamicReferenceProps.builder()
        .referenceKey("referenceKey")
        .service(CfnDynamicReferenceService.SSM)
        .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 cfnDynamicReferenceProps = new CfnDynamicReferenceProps {
    ReferenceKey = "referenceKey",
    Service = CfnDynamicReferenceService.SSM
};
```

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"

cfnDynamicReferenceProps := &CfnDynamicReferenceProps{
	ReferenceKey: jsii.String("referenceKey"),
	Service: cdk.CfnDynamicReferenceService_SSM,
}
```

## Properties

- `referenceKey`: string (required) — The reference key of the dynamic reference.

- `service`: [CfnDynamicReferenceService](/cdk/api/v2/docs/aws-cdk-lib.CfnDynamicReferenceService.html) (required) — The service to retrieve the dynamic reference from.
