Skip to content
v2.277.0

ConnectionConfigurationProperty Struct ​

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 connectionConfigurationProperty: devopsagent.CfnPrivateConnection.ConnectionConfigurationProperty = {
  selfManaged: {
    resourceConfigurationId: 'resourceConfigurationId',
  },
  serviceManaged: {
    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

connection_configuration_property = devopsagent.CfnPrivateConnection.ConnectionConfigurationProperty(
    self_managed=devopsagent.CfnPrivateConnection.SelfManagedModeProperty(
        resource_configuration_id="resourceConfigurationId"
    ),
    service_managed=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.*;

ConnectionConfigurationProperty connectionConfigurationProperty = ConnectionConfigurationProperty.builder()
        .selfManaged(SelfManagedModeProperty.builder()
                .resourceConfigurationId("resourceConfigurationId")
                .build())
        .serviceManaged(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())
        .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 connectionConfigurationProperty = new ConnectionConfigurationProperty {
    SelfManaged = new SelfManagedModeProperty {
        ResourceConfigurationId = "resourceConfigurationId"
    },
    ServiceManaged = 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"

connectionConfigurationProperty := &ConnectionConfigurationProperty{
	SelfManaged: &SelfManagedModeProperty{
		ResourceConfigurationId: jsii.String("resourceConfigurationId"),
	},
	ServiceManaged: &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 ​

selfManagedoptionalIResolvable | CfnPrivateConnection.SelfManagedModePropertyself_managedoptionaltyping.Union[IResolvable, SelfManagedModeProperty]selfManagedoptionalIResolvableSelfManagedoptionalIResolvableSelfManagedoptionalinterface{} #
Configuration for a self-managed Private Connection.
serviceManagedoptionalIResolvable | CfnPrivateConnection.ServiceManagedModePropertyservice_managedoptionaltyping.Union[IResolvable, ServiceManagedModeProperty]serviceManagedoptionalIResolvableServiceManagedoptionalIResolvableServiceManagedoptionalinterface{} #
Configuration for a service-managed Private Connection.