# CustomContentConfigurationProperty

The configuration of a `CustomContentVisual` .

- Source: Generated at build time
- Type last changed: v2.183.0 · 12 Mar 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_quicksight as quicksight } from 'aws-cdk-lib';
const customContentConfigurationProperty: quicksight.CfnAnalysis.CustomContentConfigurationProperty = {
  contentType: 'contentType',
  contentUrl: 'contentUrl',
  imageScaling: 'imageScaling',
  interactions: {
    contextMenuOption: {
      availabilityStatus: 'availabilityStatus',
    },
    visualMenuOption: {
      availabilityStatus: 'availabilityStatus',
    },
  },
};
```

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

custom_content_configuration_property = quicksight.CfnAnalysis.CustomContentConfigurationProperty(
    content_type="contentType",
    content_url="contentUrl",
    image_scaling="imageScaling",
    interactions=quicksight.CfnAnalysis.VisualInteractionOptionsProperty(
        context_menu_option=quicksight.CfnAnalysis.ContextMenuOptionProperty(
            availability_status="availabilityStatus"
        ),
        visual_menu_option=quicksight.CfnAnalysis.VisualMenuOptionProperty(
            availability_status="availabilityStatus"
        )
    )
)
```

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

CustomContentConfigurationProperty customContentConfigurationProperty = CustomContentConfigurationProperty.builder()
        .contentType("contentType")
        .contentUrl("contentUrl")
        .imageScaling("imageScaling")
        .interactions(VisualInteractionOptionsProperty.builder()
                .contextMenuOption(ContextMenuOptionProperty.builder()
                        .availabilityStatus("availabilityStatus")
                        .build())
                .visualMenuOption(VisualMenuOptionProperty.builder()
                        .availabilityStatus("availabilityStatus")
                        .build())
                .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 customContentConfigurationProperty = new CustomContentConfigurationProperty {
    ContentType = "contentType",
    ContentUrl = "contentUrl",
    ImageScaling = "imageScaling",
    Interactions = new VisualInteractionOptionsProperty {
        ContextMenuOption = new ContextMenuOptionProperty {
            AvailabilityStatus = "availabilityStatus"
        },
        VisualMenuOption = new VisualMenuOptionProperty {
            AvailabilityStatus = "availabilityStatus"
        }
    }
};
```

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"

customContentConfigurationProperty := &CustomContentConfigurationProperty{
	ContentType: jsii.String("contentType"),
	ContentUrl: jsii.String("contentUrl"),
	ImageScaling: jsii.String("imageScaling"),
	Interactions: &VisualInteractionOptionsProperty{
		ContextMenuOption: &ContextMenuOptionProperty{
			AvailabilityStatus: jsii.String("availabilityStatus"),
		},
		VisualMenuOption: &VisualMenuOptionProperty{
			AvailabilityStatus: jsii.String("availabilityStatus"),
		},
	},
}
```

## Properties

- `contentType`: string — The content type of the custom content visual.

  You can use this to have the visual render as an image.

- `contentUrl`: string — The input URL that links to the custom content that you want in the custom visual.

- `imageScaling`: string — The sizing options for the size of the custom content visual.

  This structure is required when the `ContentType` of the visual is `'IMAGE'` .

- `interactions`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.VisualInteractionOptionsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.VisualInteractionOptionsProperty.html) — The general visual interactions setup for a visual.
