# CustomDomainConfigTypeProperty

The configuration for a hosted UI custom domain.

- Source: Generated at build time
- Type last changed: v2.264.0 · 10 Aug 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_cognito as cognito } from 'aws-cdk-lib';
const customDomainConfigTypeProperty: cognito.CfnUserPoolDomain.CustomDomainConfigTypeProperty = {
  certificateArn: 'certificateArn',
  securityPolicy: 'securityPolicy',
};
```

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_cognito as cognito

custom_domain_config_type_property = cognito.CfnUserPoolDomain.CustomDomainConfigTypeProperty(
    certificate_arn="certificateArn",
    security_policy="securityPolicy"
)
```

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.cognito.*;

CustomDomainConfigTypeProperty customDomainConfigTypeProperty = CustomDomainConfigTypeProperty.builder()
        .certificateArn("certificateArn")
        .securityPolicy("securityPolicy")
        .build();
```

C# / .NET:

```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.Cognito;

var customDomainConfigTypeProperty = new CustomDomainConfigTypeProperty {
    CertificateArn = "certificateArn",
    SecurityPolicy = "securityPolicy"
};
```

Golang:

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

customDomainConfigTypeProperty := &CustomDomainConfigTypeProperty{
	CertificateArn: jsii.String("certificateArn"),
	SecurityPolicy: jsii.String("securityPolicy"),
}
```

## Properties

- `certificateArn`: string — The Amazon Resource Name (ARN) of an Certificate Manager SSL certificate.

  You use this certificate for the subdomain of your custom domain.

- `securityPolicy`: string
