RawEndpointProps
Struct Stable
Properties for RawEndpoint.
| Source | aws-globalaccelerator/lib/endpoint.ts |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_globalaccelerator as globalaccelerator } from 'aws-cdk-lib';
const rawEndpointProps: globalaccelerator.RawEndpointProps = {
endpointId: 'endpointId',
// the properties below are optional
preserveClientIp: false,
region: 'region',
weight: 123,
};
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_globalaccelerator as globalaccelerator
raw_endpoint_props = globalaccelerator.RawEndpointProps(
endpoint_id="endpointId",
# the properties below are optional
preserve_client_ip=False,
region="region",
weight=123
)
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.globalaccelerator.*;
RawEndpointProps rawEndpointProps = RawEndpointProps.builder()
.endpointId("endpointId")
// the properties below are optional
.preserveClientIp(false)
.region("region")
.weight(123)
.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.GlobalAccelerator;
var rawEndpointProps = new RawEndpointProps {
EndpointId = "endpointId",
// the properties below are optional
PreserveClientIp = false,
Region = "region",
Weight = 123
};
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"
rawEndpointProps := &RawEndpointProps{
EndpointId: jsii.String("endpointId"),
// the properties below are optional
PreserveClientIp: jsii.Boolean(false),
Region: jsii.String("region"),
Weight: jsii.Number(123),
}
Properties
Identifier of the endpoint.
Load balancer ARN, instance ID or EIP allocation ID.
preserveClientIpoptionalbooleanpreserve_client_ipoptionalboolpreserveClientIpoptionalBooleanPreserveClientIpoptionalboolPreserveClientIpoptional*bool #Forward the client IP address.
Default: true if possible and available
notes
GlobalAccelerator will create Network Interfaces in your VPC in order to preserve the client IP address.
Only applies to Application Load Balancers and EC2 instances.
Client IP address preservation is supported only in specific AWS Regions. See the GlobalAccelerator Developer Guide for a list.
regionoptionalstringregionoptionalstrregionoptionalStringRegionoptionalstringRegionoptional*string #The region where this endpoint is located.
Default: Unknown what region this endpoint is located
weightoptionalnumberweightoptionalint | floatweightoptionalNumberWeightoptionaldoubleWeightoptional*float64 = 128 #Endpoint weight across all endpoints in the group.
Must be a value between 0 and 255.