# CfnUserPoolUICustomizationAttachmentProps

Properties for defining a `CfnUserPoolUICustomizationAttachment`.

Used as props by: [CfnUserPoolUICustomizationAttachment](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.CfnUserPoolUICustomizationAttachment.html)

- Source: Generated at build time
- Type last changed: v2.227.0 · 21 Nov 2025

## 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 cfnUserPoolUICustomizationAttachmentProps: cognito.CfnUserPoolUICustomizationAttachmentProps = {
  clientId: 'clientId',
  userPoolId: 'userPoolId',

  // the properties below are optional
  css: 'css',
};
```

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

cfn_user_pool_ui_customization_attachment_props = cognito.CfnUserPoolUICustomizationAttachmentProps(
    client_id="clientId",
    user_pool_id="userPoolId",

    # the properties below are optional
    css="css"
)
```

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

CfnUserPoolUICustomizationAttachmentProps cfnUserPoolUICustomizationAttachmentProps = CfnUserPoolUICustomizationAttachmentProps.builder()
        .clientId("clientId")
        .userPoolId("userPoolId")

        // the properties below are optional
        .css("css")
        .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 cfnUserPoolUICustomizationAttachmentProps = new CfnUserPoolUICustomizationAttachmentProps {
    ClientId = "clientId",
    UserPoolId = "userPoolId",

    // the properties below are optional
    Css = "css"
};
```

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"

cfnUserPoolUICustomizationAttachmentProps := &CfnUserPoolUICustomizationAttachmentProps{
	ClientId: jsii.String("clientId"),
	UserPoolId: jsii.String("userPoolId"),

	// the properties below are optional
	Css: jsii.String("css"),
}
```

## Properties

- `clientId`: string (required) — The app client ID for your UI customization.

  When this value isn't present, the customization applies to all user pool app clients that don't have client-level settings..

- `css`: string — A plaintext CSS file that contains the custom fields that you want to apply to your user pool or app client.

  To download a template, go to the Amazon Cognito console. Navigate to your user pool *App clients* tab, select *Login pages* , edit *Hosted UI (classic) style* , and select the link to `CSS template.css` .

- `userPoolId`: string | [IUserPoolRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_cognito.IUserPoolRef.html) (required) — The ID of the user pool where you want to apply branding to the classic hosted UI.
