EndpointOptions Struct
properties for creating a domain name endpoint.
| Source | aws-apigatewayv2/lib/common/domain-name.ts |
|---|---|
| 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_apigatewayv2 as apigatewayv2 } from 'aws-cdk-lib';
import { aws_certificatemanager as interfaces_certificatemanager } from 'aws-cdk-lib/interfaces';
declare const certificateRef: interfaces_certificatemanager.ICertificateRef;
const endpointOptions: apigatewayv2.EndpointOptions = {
certificate: certificateRef,
// the properties below are optional
certificateName: 'certificateName',
endpointType: apigatewayv2.EndpointType.EDGE,
ipAddressType: apigatewayv2.IpAddressType.IPV4,
ownershipCertificate: certificateRef,
securityPolicy: apigatewayv2.SecurityPolicy.TLS_1_0,
};
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_apigatewayv2 as apigatewayv2
from aws_cdk.interfaces import aws_certificatemanager as interfaces_certificatemanager
# certificate_ref: interfaces_certificatemanager.ICertificateRef
endpoint_options = apigatewayv2.EndpointOptions(
certificate=certificate_ref,
# the properties below are optional
certificate_name="certificateName",
endpoint_type=apigatewayv2.EndpointType.EDGE,
ip_address_type=apigatewayv2.IpAddressType.IPV4,
ownership_certificate=certificate_ref,
security_policy=apigatewayv2.SecurityPolicy.TLS_1_0
)
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.apigatewayv2.*;
import software.amazon.awscdk.interfaces.certificatemanager.*;
ICertificateRef certificateRef;
EndpointOptions endpointOptions = EndpointOptions.builder()
.certificate(certificateRef)
// the properties below are optional
.certificateName("certificateName")
.endpointType(EndpointType.EDGE)
.ipAddressType(IpAddressType.IPV4)
.ownershipCertificate(certificateRef)
.securityPolicy(SecurityPolicy.TLS_1_0)
.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.Apigatewayv2;
using Amazon.CDK.Interfaces.CertificateManager;
ICertificateRef certificateRef;
var endpointOptions = new EndpointOptions {
Certificate = certificateRef,
// the properties below are optional
CertificateName = "certificateName",
EndpointType = EndpointType.EDGE,
IpAddressType = IpAddressType.IPV4,
OwnershipCertificate = certificateRef,
SecurityPolicy = SecurityPolicy.TLS_1_0
};
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"
import "github.com/aws/aws-cdk-go/awscdk"
var certificateRef ICertificateRef
endpointOptions := &EndpointOptions{
Certificate: certificateRef,
// the properties below are optional
CertificateName: jsii.String("certificateName"),
EndpointType: awscdk.Aws_apigatewayv2.EndpointType_EDGE,
IpAddressType: awscdk.*Aws_apigatewayv2.IpAddressType_IPV4,
OwnershipCertificate: certificateRef,
SecurityPolicy: awscdk.*Aws_apigatewayv2.SecurityPolicy_TLS_1_0,
}
Properties
certificateICertificateRefcertificateICertificateRefcertificateICertificateRefCertificateICertificateRefCertificateICertificateRef required #The ACM certificate for this domain name.
Certificate can be both ACM issued or imported.
certificateNameoptionalstringcertificate_nameoptionalstrcertificateNameoptionalStringCertificateNameoptionalstringCertificateNameoptional*string #The user-friendly name of the certificate that will be used by the endpoint for this domain name.
Default: No friendly certificate name
endpointTypeoptionalEndpointTypeendpoint_typeoptionalEndpointTypeendpointTypeoptionalEndpointTypeEndpointTypeoptionalEndpointTypeEndpointTypeoptionalEndpointType = EndpointType.REGIONAL #The type of endpoint for this DomainName.
ipAddressTypeoptionalIpAddressTypeip_address_typeoptionalIpAddressTypeipAddressTypeoptionalIpAddressTypeIpAddressTypeoptionalIpAddressTypeIpAddressTypeoptionalIpAddressType #The IP address types that can invoke the API.
Default: undefined - AWS default is IPV4
ownershipCertificateoptionalICertificateRefownership_certificateoptionalICertificateRefownershipCertificateoptionalICertificateRefOwnershipCertificateoptionalICertificateRefOwnershipCertificateoptionalICertificateRef #A public certificate issued by ACM to validate that you own a custom domain.
Default: only required when configuring mTLS
This parameter is required only when you configure mutual TLS authentication and you specify an ACM imported or private CA certificate for certificate. The ownership certificate validates that you have permissions to use the domain name.
securityPolicyoptionalSecurityPolicysecurity_policyoptionalSecurityPolicysecurityPolicyoptionalSecurityPolicySecurityPolicyoptionalSecurityPolicySecurityPolicyoptionalSecurityPolicy = SecurityPolicy.TLS_1_2 #The Transport Layer Security (TLS) version + cipher suite for this domain name.