# ServiceManagedProperty

The configuration for a service-managed private connection, where the service manages the resource gateway lifecycle.

- 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_securityagent as securityagent } from 'aws-cdk-lib';
const serviceManagedProperty: securityagent.CfnPrivateConnection.ServiceManagedProperty = {
  hostAddress: 'hostAddress',
  subnetIds: ['subnetIds'],
  vpcId: 'vpcId',

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

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_securityagent as securityagent

service_managed_property = securityagent.CfnPrivateConnection.ServiceManagedProperty(
    host_address="hostAddress",
    subnet_ids=["subnetIds"],
    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"]
)
```

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

ServiceManagedProperty serviceManagedProperty = ServiceManagedProperty.builder()
        .hostAddress("hostAddress")
        .subnetIds(List.of("subnetIds"))
        .vpcId("vpcId")

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

var serviceManagedProperty = new ServiceManagedProperty {
    HostAddress = "hostAddress",
    SubnetIds = new [] { "subnetIds" },
    VpcId = "vpcId",

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

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"

serviceManagedProperty := &ServiceManagedProperty{
	HostAddress: jsii.String("hostAddress"),
	SubnetIds: []*string{
		jsii.String("subnetIds"),
	},
	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"),
	},
}
```

## Properties

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

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

- `ipAddressType`: string — The IP address type of the service-managed resource gateway.

- `ipv4AddressesPerEni`: number — The number of IPv4 addresses in each elastic network interface for the service-managed resource gateway.

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

- `securityGroupIds`: string[] — The security groups to attach to the service-managed resource gateway.

- `subnetIds`: string[] (required) — The subnets that the service-managed resource gateway spans.

- `vpcId`: string (required) — The VPC to create the service-managed resource gateway in.
