Skip to content
v2.277.0

CfnPrivateConnectionProps Struct ​

Properties for defining a CfnPrivateConnection.

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 cfnPrivateConnectionProps: devopsagent.CfnPrivateConnectionProps = {
  connectionConfiguration: {
    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'],
    },
  },
  name: 'name',

  // the properties below are optional
  certificate: 'certificate',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# 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

cfn_private_connection_props = devopsagent.CfnPrivateConnectionProps(
    connection_configuration=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"]
        )
    ),
    name="name",

    # the properties below are optional
    certificate="certificate",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
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.*;

CfnPrivateConnectionProps cfnPrivateConnectionProps = CfnPrivateConnectionProps.builder()
        .connectionConfiguration(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())
        .name("name")

        // the properties below are optional
        .certificate("certificate")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .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 cfnPrivateConnectionProps = new CfnPrivateConnectionProps {
    ConnectionConfiguration = 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" }
        }
    },
    Name = "name",

    // the properties below are optional
    Certificate = "certificate",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
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"

cfnPrivateConnectionProps := &CfnPrivateConnectionProps{
	ConnectionConfiguration: &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"),
			},
		},
	},
	Name: jsii.String("name"),

	// the properties below are optional
	Certificate: jsii.String("certificate"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

certificateoptionalstringcertificateoptionalstrcertificateoptionalStringCertificateoptionalstringCertificateoptional*string #
Certificate for the Private Connection.
connectionConfigurationIResolvable | CfnPrivateConnection.ConnectionConfigurationPropertyconnection_configurationtyping.Union[IResolvable, ConnectionConfigurationProperty]connectionConfigurationIResolvableConnectionConfigurationIResolvableConnectionConfigurationinterface{} required #
The connection configuration, either SelfManaged or ServiceManaged.
namestringnamestrnameStringNamestringName*string required #
Unique name for this Private Connection within the account.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
An array of key-value pairs to apply to this resource.