ContentRedirectionProperty Struct
The content redirection settings for the stack.
| Source | |
|---|---|
| Type last changed |
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 contentRedirectionProperty: appstream.CfnStack.ContentRedirectionProperty = {
hostToClient: {
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
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
// 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();
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" }
}
};
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
hostToClientoptionalIResolvable | CfnStack.host_to_clientoptionaltyping.Union[IResolvable, UrlRedirectionConfigProperty]hostToClientoptionalIResolvableHostToClientoptionalIResolvableHostToClientoptionalinterface{} #The configuration for URL redirection.