# SftpPortWithOptionsProperty

- Source: Generated at build time
- Type last changed: v2.276.0 · 10 Nov 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_transfer as transfer } from 'aws-cdk-lib';
const sftpPortWithOptionsProperty: transfer.CfnServer.SftpPortWithOptionsProperty = {
  sftpPort: 123,

  // the properties below are optional
  communicationMode: 'communicationMode',
};
```

Python:

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

sftp_port_with_options_property = transfer.CfnServer.SftpPortWithOptionsProperty(
    sftp_port=123,

    # the properties below are optional
    communication_mode="communicationMode"
)
```

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

SftpPortWithOptionsProperty sftpPortWithOptionsProperty = SftpPortWithOptionsProperty.builder()
        .sftpPort(123)

        // the properties below are optional
        .communicationMode("communicationMode")
        .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.Transfer;

var sftpPortWithOptionsProperty = new SftpPortWithOptionsProperty {
    SftpPort = 123,

    // the properties below are optional
    CommunicationMode = "communicationMode"
};
```

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"

sftpPortWithOptionsProperty := &SftpPortWithOptionsProperty{
	SftpPort: jsii.Number(123),

	// the properties below are optional
	CommunicationMode: jsii.String("communicationMode"),
}
```

## Properties

- `communicationMode`: string

- `sftpPort`: number (required)
