# ContentRedirectionProperty

The content redirection settings for the stack.

- Source: Generated at build time
- Type last changed: v2.260.0 · 16 Jun 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_appstream as appstream } from 'aws-cdk-lib';
const contentRedirectionProperty: appstream.CfnStack.ContentRedirectionProperty = {
  hostToClient: {
    enabled: false,

    // the properties below are optional
    allowedUrls: ['allowedUrls'],
    deniedUrls: ['deniedUrls'],
  },
};
```

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_appstream as appstream

content_redirection_property = appstream.CfnStack.ContentRedirectionProperty(
    host_to_client=appstream.CfnStack.UrlRedirectionConfigProperty(
        enabled=False,

        # the properties below are optional
        allowed_urls=["allowedUrls"],
        denied_urls=["deniedUrls"]
    )
)
```

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

ContentRedirectionProperty contentRedirectionProperty = ContentRedirectionProperty.builder()
        .hostToClient(UrlRedirectionConfigProperty.builder()
                .enabled(false)

                // the properties below are optional
                .allowedUrls(List.of("allowedUrls"))
                .deniedUrls(List.of("deniedUrls"))
                .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.AppStream;

var contentRedirectionProperty = new ContentRedirectionProperty {
    HostToClient = new UrlRedirectionConfigProperty {
        Enabled = false,

        // the properties below are optional
        AllowedUrls = new [] { "allowedUrls" },
        DeniedUrls = new [] { "deniedUrls" }
    }
};
```

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"

contentRedirectionProperty := &ContentRedirectionProperty{
	HostToClient: &UrlRedirectionConfigProperty{
		Enabled: jsii.Boolean(false),

		// the properties below are optional
		AllowedUrls: []*string{
			jsii.String("allowedUrls"),
		},
		DeniedUrls: []*string{
			jsii.String("deniedUrls"),
		},
	},
}
```

## Properties

- `hostToClient`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnStack.UrlRedirectionConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_appstream.CfnStack.UrlRedirectionConfigProperty.html) — The configuration for URL redirection.
