# UrlRedirectionConfigProperty

The configuration for URL redirection.

- 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 urlRedirectionConfigProperty: appstream.CfnStack.UrlRedirectionConfigProperty = {
  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

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

UrlRedirectionConfigProperty urlRedirectionConfigProperty = UrlRedirectionConfigProperty.builder()
        .enabled(false)

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

urlRedirectionConfigProperty := &UrlRedirectionConfigProperty{
	Enabled: jsii.Boolean(false),

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

## Properties

- `allowedUrls`: string[] — The URLs that are allowed for redirection.

- `deniedUrls`: string[] — The URLs that are denied for redirection.

- `enabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — Specifies whether URL redirection is enabled or disabled.
