Skip to content
v2.277.0

ServiceManagedModeProperty Struct ​

Configuration for a service-managed Private Connection.

Example ​

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
# 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
// 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();
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" }
};
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 ​

dnsResolutionoptionalstringdns_resolutionoptionalstrdnsResolutionoptionalStringDnsResolutionoptionalstringDnsResolutionoptional*string #
DNS resolution mode for the resource gateway.

Defaults to PUBLIC when not set.

hostAddressstringhost_addressstrhostAddressStringHostAddressstringHostAddress*string required #
IP address or DNS name of the target resource.
ipAddressTypeoptionalstringip_address_typeoptionalstripAddressTypeoptionalStringIpAddressTypeoptionalstringIpAddressTypeoptional*string #
IP address type of the service-managed Resource Gateway.
ipv4AddressesPerEnioptionalnumberipv4_addresses_per_enioptionalint | floatipv4AddressesPerEnioptionalNumberIpv4AddressesPerEnioptionaldoubleIpv4AddressesPerEnioptional*float64 #
Number of IPv4 addresses in each ENI for the service-managed Resource Gateway.
portRangesoptionalstring[]port_rangesoptionaltyping.List[str]portRangesoptionalList<String>PortRangesoptionalstring[]PortRangesoptional*[]*string #
TCP port ranges that a consumer can use to access the resource.
securityGroupIdsoptionalstring[]security_group_idsoptionaltyping.List[str]securityGroupIdsoptionalList<String>SecurityGroupIdsoptionalstring[]SecurityGroupIdsoptional*[]*string #
Security groups to attach to the service-managed Resource Gateway.
subnetIdsoptionalstring[]subnet_idsoptionaltyping.List[str]subnetIdsoptionalList<String>SubnetIdsoptionalstring[]SubnetIdsoptional*[]*string #
Subnets that the service-managed Resource Gateway will span.
vpcIdstringvpc_idstrvpcIdStringVpcIdstringVpcId*string required #
VPC to create the service-managed Resource Gateway in.