# ServiceManagedModeProperty

Configuration for a service-managed Private Connection.

- Source: Generated at build time
- Type last changed: v2.264.0 · 10 Aug 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_devopsagent as devopsagent } from 'aws-cdk-lib';
const serviceManagedModeProperty: devopsagent.CfnPrivateConnection.ServiceManagedModeProperty = {
  hostAddress: 'hostAddress',
  vpcId: 'vpcId',

  // the properties below are optional
  dnsResolution: 'dnsResolution',
  ipAddressType: 'ipAddressType',
  ipv4AddressesPerEni: 123,
  portRanges: ['portRanges'],
  securityGroupIds: ['securityGroupIds'],
  subnetIds: ['subnetIds'],
};
```

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_devopsagent as devopsagent

service_managed_mode_property = devopsagent.CfnPrivateConnection.ServiceManagedModeProperty(
    host_address="hostAddress",
    vpc_id="vpcId",

    # the properties below are optional
    dns_resolution="dnsResolution",
    ip_address_type="ipAddressType",
    ipv4_addresses_per_eni=123,
    port_ranges=["portRanges"],
    security_group_ids=["securityGroupIds"],
    subnet_ids=["subnetIds"]
)
```

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

ServiceManagedModeProperty serviceManagedModeProperty = ServiceManagedModeProperty.builder()
        .hostAddress("hostAddress")
        .vpcId("vpcId")

        // the properties below are optional
        .dnsResolution("dnsResolution")
        .ipAddressType("ipAddressType")
        .ipv4AddressesPerEni(123)
        .portRanges(List.of("portRanges"))
        .securityGroupIds(List.of("securityGroupIds"))
        .subnetIds(List.of("subnetIds"))
        .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.DevOpsAgent;

var serviceManagedModeProperty = new ServiceManagedModeProperty {
    HostAddress = "hostAddress",
    VpcId = "vpcId",

    // the properties below are optional
    DnsResolution = "dnsResolution",
    IpAddressType = "ipAddressType",
    Ipv4AddressesPerEni = 123,
    PortRanges = new [] { "portRanges" },
    SecurityGroupIds = new [] { "securityGroupIds" },
    SubnetIds = new [] { "subnetIds" }
};
```

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"

serviceManagedModeProperty := &ServiceManagedModeProperty{
	HostAddress: jsii.String("hostAddress"),
	VpcId: jsii.String("vpcId"),

	// the properties below are optional
	DnsResolution: jsii.String("dnsResolution"),
	IpAddressType: jsii.String("ipAddressType"),
	Ipv4AddressesPerEni: jsii.Number(123),
	PortRanges: []*string{
		jsii.String("portRanges"),
	},
	SecurityGroupIds: []*string{
		jsii.String("securityGroupIds"),
	},
	SubnetIds: []*string{
		jsii.String("subnetIds"),
	},
}
```

## Properties

- `dnsResolution`: string — DNS resolution mode for the resource gateway.

  Defaults to PUBLIC when not set.

- `hostAddress`: string (required) — IP address or DNS name of the target resource.

- `ipAddressType`: string — IP address type of the service-managed Resource Gateway.

- `ipv4AddressesPerEni`: number — Number of IPv4 addresses in each ENI for the service-managed Resource Gateway.

- `portRanges`: string[] — TCP port ranges that a consumer can use to access the resource.

- `securityGroupIds`: string[] — Security groups to attach to the service-managed Resource Gateway.

- `subnetIds`: string[] — Subnets that the service-managed Resource Gateway will span.

- `vpcId`: string (required) — VPC to create the service-managed Resource Gateway in.
