ServiceManagedProperty Struct Added in v2.276.0
The configuration for a service-managed private connection, where the service manages the resource gateway lifecycle.
Example
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
# 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
// 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();
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" }
};
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
dnsResolutionoptionalstringdns_resolutionoptionalstrdnsResolutionoptionalStringDnsResolutionoptionalstringDnsResolutionoptional*string#The DNS resolution mode for the resource gateway.
The IP address or DNS name of the target resource.
ipAddressTypeoptionalstringip_address_typeoptionalstripAddressTypeoptionalStringIpAddressTypeoptionalstringIpAddressTypeoptional*string#The IP address type of the service-managed resource gateway.
ipv4AddressesPerEnioptionalnumberipv4_addresses_per_enioptionalint | floatipv4AddressesPerEnioptionalNumberIpv4AddressesPerEnioptionaldoubleIpv4AddressesPerEnioptional*float64#The number of IPv4 addresses in each elastic network interface for the service-managed resource gateway.
portRangesoptionalstring[]port_rangesoptionaltyping.List[str]portRangesoptionalList<String>PortRangesoptionalstring[]PortRangesoptional*[]*string#The TCP port ranges that a consumer can use to access the resource.
securityGroupIdsoptionalstring[]security_group_idsoptionaltyping.List[str]securityGroupIdsoptionalList<String>SecurityGroupIdsoptionalstring[]SecurityGroupIdsoptional*[]*string#The security groups to attach to the service-managed resource gateway.
subnetIdsstring[]subnet_idstyping.List[str]subnetIdsList<String>SubnetIdsstring[]SubnetIds*[]*stringrequired#The subnets that the service-managed resource gateway spans.
The VPC to create the service-managed resource gateway in.