# ConditionalFormattingCustomIconConditionProperty

Determines the custom condition for an icon set.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const conditionalFormattingCustomIconConditionProperty: quicksight.CfnAnalysis.ConditionalFormattingCustomIconConditionProperty = {
  expression: 'expression',
  iconOptions: {
    icon: 'icon',
    unicodeIcon: 'unicodeIcon',
  },

  // the properties below are optional
  color: 'color',
  displayConfiguration: {
    iconDisplayOption: 'iconDisplayOption',
  },
};
```

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_quicksight as quicksight

conditional_formatting_custom_icon_condition_property = quicksight.CfnAnalysis.ConditionalFormattingCustomIconConditionProperty(
    expression="expression",
    icon_options=quicksight.CfnAnalysis.ConditionalFormattingCustomIconOptionsProperty(
        icon="icon",
        unicode_icon="unicodeIcon"
    ),

    # the properties below are optional
    color="color",
    display_configuration=quicksight.CfnAnalysis.ConditionalFormattingIconDisplayConfigurationProperty(
        icon_display_option="iconDisplayOption"
    )
)
```

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

ConditionalFormattingCustomIconConditionProperty conditionalFormattingCustomIconConditionProperty = ConditionalFormattingCustomIconConditionProperty.builder()
        .expression("expression")
        .iconOptions(ConditionalFormattingCustomIconOptionsProperty.builder()
                .icon("icon")
                .unicodeIcon("unicodeIcon")
                .build())

        // the properties below are optional
        .color("color")
        .displayConfiguration(ConditionalFormattingIconDisplayConfigurationProperty.builder()
                .iconDisplayOption("iconDisplayOption")
                .build())
        .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.QuickSight;

var conditionalFormattingCustomIconConditionProperty = new ConditionalFormattingCustomIconConditionProperty {
    Expression = "expression",
    IconOptions = new ConditionalFormattingCustomIconOptionsProperty {
        Icon = "icon",
        UnicodeIcon = "unicodeIcon"
    },

    // the properties below are optional
    Color = "color",
    DisplayConfiguration = new ConditionalFormattingIconDisplayConfigurationProperty {
        IconDisplayOption = "iconDisplayOption"
    }
};
```

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"

conditionalFormattingCustomIconConditionProperty := &ConditionalFormattingCustomIconConditionProperty{
	Expression: jsii.String("expression"),
	IconOptions: &ConditionalFormattingCustomIconOptionsProperty{
		Icon: jsii.String("icon"),
		UnicodeIcon: jsii.String("unicodeIcon"),
	},

	// the properties below are optional
	Color: jsii.String("color"),
	DisplayConfiguration: &ConditionalFormattingIconDisplayConfigurationProperty{
		IconDisplayOption: jsii.String("iconDisplayOption"),
	},
}
```

## Properties

- `color`: string — Determines the color of the icon.

- `displayConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.ConditionalFormattingIconDisplayConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.ConditionalFormattingIconDisplayConfigurationProperty.html) — Determines the icon display configuration.

- `expression`: string (required) — The expression that determines the condition of the icon set.

- `iconOptions`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.ConditionalFormattingCustomIconOptionsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.ConditionalFormattingCustomIconOptionsProperty.html) (required) — Custom icon options for an icon set.
