# CfnInstanceProps

Properties for defining a `CfnInstance`.

Used as props by: [CfnInstance](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_scn.CfnInstance.html)

- Source: Generated at build time
- Type last changed: v2.274.0 · 20 Oct 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_scn as scn } from 'aws-cdk-lib';
const cfnInstanceProps: scn.CfnInstanceProps = {
  instanceDescription: 'instanceDescription',
  instanceName: 'instanceName',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  webAppDnsDomain: 'webAppDnsDomain',
};
```

Python:

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

cfn_instance_props = scn.CfnInstanceProps(
    instance_description="instanceDescription",
    instance_name="instanceName",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    web_app_dns_domain="webAppDnsDomain"
)
```

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

CfnInstanceProps cfnInstanceProps = CfnInstanceProps.builder()
        .instanceDescription("instanceDescription")
        .instanceName("instanceName")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .webAppDnsDomain("webAppDnsDomain")
        .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.AWS.SCN;

var cfnInstanceProps = new CfnInstanceProps {
    InstanceDescription = "instanceDescription",
    InstanceName = "instanceName",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    WebAppDnsDomain = "webAppDnsDomain"
};
```

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"

cfnInstanceProps := &CfnInstanceProps{
	InstanceDescription: jsii.String("instanceDescription"),
	InstanceName: jsii.String("instanceName"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	WebAppDnsDomain: jsii.String("webAppDnsDomain"),
}
```

## Properties

- `instanceDescription`: string — The instance description.

- `instanceName`: string — The instance name.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Tags for the instance.

- `webAppDnsDomain`: string — The WebApp DNS domain name of the instance.
