CidrOptionsProperty Struct
Describes the CIDR options for a Verified Access endpoint.
| 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_ec2 as ec2 } from 'aws-cdk-lib';
const cidrOptionsProperty: ec2.CfnVerifiedAccessEndpoint.CidrOptionsProperty = {
cidr: 'cidr',
portRanges: [{
fromPort: 123,
toPort: 123,
}],
protocol: 'protocol',
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_ec2 as ec2
cidr_options_property = ec2.CfnVerifiedAccessEndpoint.CidrOptionsProperty(
cidr="cidr",
port_ranges=[ec2.CfnVerifiedAccessEndpoint.PortRangeProperty(
from_port=123,
to_port=123
)],
protocol="protocol",
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.ec2.*;
CidrOptionsProperty cidrOptionsProperty = CidrOptionsProperty.builder()
.cidr("cidr")
.portRanges(List.of(PortRangeProperty.builder()
.fromPort(123)
.toPort(123)
.build()))
.protocol("protocol")
.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.EC2;
var cidrOptionsProperty = new CidrOptionsProperty {
Cidr = "cidr",
PortRanges = new [] { new PortRangeProperty {
FromPort = 123,
ToPort = 123
} },
Protocol = "protocol",
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"
cidrOptionsProperty := &CidrOptionsProperty{
Cidr: jsii.String("cidr"),
PortRanges: []interface{}{
&PortRangeProperty{
FromPort: jsii.Number(123),
ToPort: jsii.Number(123),
},
},
Protocol: jsii.String("protocol"),
SubnetIds: []*string{
jsii.String("subnetIds"),
},
}
Properties
The CIDR.
portRangesoptionalIResolvable | IResolvable | CfnVerifiedAccessEndpoint.port_rangesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, PortRangeProperty]]]portRangesoptionalIResolvablePortRangesoptionalIResolvablePortRangesoptionalinterface{} #The port ranges.
protocoloptionalstringprotocoloptionalstrprotocoloptionalStringProtocoloptionalstringProtocoloptional*string #The protocol.
subnetIdsoptionalstring[]subnet_idsoptionaltyping.List[str]subnetIdsoptionalList<String>SubnetIdsoptionalstring[]SubnetIdsoptional*[]*string #The IDs of the subnets.