Skip to content
v2.277.0

UrlRedirectionConfigProperty Struct ​

The configuration for URL redirection.

Example ​

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
# 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
// 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();
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" }
};
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 ​

allowedUrlsoptionalstring[]allowed_urlsoptionaltyping.List[str]allowedUrlsoptionalList<String>AllowedUrlsoptionalstring[]AllowedUrlsoptional*[]*string #
The URLs that are allowed for redirection.
deniedUrlsoptionalstring[]denied_urlsoptionaltyping.List[str]deniedUrlsoptionalList<String>DeniedUrlsoptionalstring[]DeniedUrlsoptional*[]*string #
The URLs that are denied for redirection.
enabledboolean | IResolvableenabledtyping.Union[bool, IResolvable]enabledBooleanEnabledboolEnabledinterface{} required #
Specifies whether URL redirection is enabled or disabled.