NetworkInterfaceProperty Struct
Describes a network interface.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_redshift as redshift } from 'aws-cdk-lib';
const networkInterfaceProperty: redshift.CfnEndpointAccess.NetworkInterfaceProperty = {
availabilityZone: 'availabilityZone',
networkInterfaceId: 'networkInterfaceId',
privateIpAddress: 'privateIpAddress',
subnetId: 'subnetId',
};
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_redshift as redshift
network_interface_property = redshift.CfnEndpointAccess.NetworkInterfaceProperty(
availability_zone="availabilityZone",
network_interface_id="networkInterfaceId",
private_ip_address="privateIpAddress",
subnet_id="subnetId"
)
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.redshift.*;
NetworkInterfaceProperty networkInterfaceProperty = NetworkInterfaceProperty.builder()
.availabilityZone("availabilityZone")
.networkInterfaceId("networkInterfaceId")
.privateIpAddress("privateIpAddress")
.subnetId("subnetId")
.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.Redshift;
var networkInterfaceProperty = new NetworkInterfaceProperty {
AvailabilityZone = "availabilityZone",
NetworkInterfaceId = "networkInterfaceId",
PrivateIpAddress = "privateIpAddress",
SubnetId = "subnetId"
};
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"
networkInterfaceProperty := &NetworkInterfaceProperty{
AvailabilityZone: jsii.String("availabilityZone"),
NetworkInterfaceId: jsii.String("networkInterfaceId"),
PrivateIpAddress: jsii.String("privateIpAddress"),
SubnetId: jsii.String("subnetId"),
}
Properties
availabilityZoneoptionalstringavailability_zoneoptionalstravailabilityZoneoptionalStringAvailabilityZoneoptionalstringAvailabilityZoneoptional*string #The Availability Zone.
networkInterfaceIdoptionalstringnetwork_interface_idoptionalstrnetworkInterfaceIdoptionalStringNetworkInterfaceIdoptionalstringNetworkInterfaceIdoptional*string #The network interface identifier.
privateIpAddressoptionalstringprivate_ip_addressoptionalstrprivateIpAddressoptionalStringPrivateIpAddressoptionalstringPrivateIpAddressoptional*string #The IPv4 address of the network interface within the subnet.
subnetIdoptionalstringsubnet_idoptionalstrsubnetIdoptionalStringSubnetIdoptionalstringSubnetIdoptional*string #The subnet identifier.