# EndpointOptions

Struct · Stable

properties for creating a domain name endpoint.

Used as argument in: [DomainName.addEndpoint](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigatewayv2.DomainName.html#addendpoint)

- Source: [`aws-apigatewayv2/lib/common/domain-name.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-apigatewayv2/lib/common/domain-name.ts#L106)
- Type last changed: v2.235.0 · 15 Jan 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C#:

```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:

```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

- `certificate`: [ICertificateRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_certificatemanager.ICertificateRef.html) (required) — The ACM certificate for this domain name.

  Certificate can be both ACM issued or imported.

- `certificateName`: string — The user-friendly name of the certificate that will be used by the endpoint for this domain name.

  **Default:** No friendly certificate name

- `endpointType`: [EndpointType](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigatewayv2.EndpointType.html) = EndpointType.REGIONAL — The type of endpoint for this DomainName.

- `ipAddressType`: [IpAddressType](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigatewayv2.IpAddressType.html) — The IP address types that can invoke the API.

  **Default:** undefined - AWS default is IPV4

- `ownershipCertificate`: [ICertificateRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_certificatemanager.ICertificateRef.html) — 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.

- `securityPolicy`: [SecurityPolicy](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigatewayv2.SecurityPolicy.html) = SecurityPolicy.TLS_1_2 — The Transport Layer Security (TLS) version + cipher suite for this domain name.
