Skip to content
v2.278.0

WebContentFilteringPolicyProperty Struct ​

The policy that specifies which URLs end users are allowed to access or which URLs or domain categories they are restricted from accessing for enhanced security.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_workspacesweb as workspacesweb } from 'aws-cdk-lib';
const webContentFilteringPolicyProperty: workspacesweb.CfnBrowserSettings.WebContentFilteringPolicyProperty = {
  allowedUrls: ['allowedUrls'],
  blockedCategories: ['blockedCategories'],
  blockedUrls: ['blockedUrls'],
};
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_workspacesweb as workspacesweb

web_content_filtering_policy_property = workspacesweb.CfnBrowserSettings.WebContentFilteringPolicyProperty(
    allowed_urls=["allowedUrls"],
    blocked_categories=["blockedCategories"],
    blocked_urls=["blockedUrls"]
)
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.workspacesweb.*;

WebContentFilteringPolicyProperty webContentFilteringPolicyProperty = WebContentFilteringPolicyProperty.builder()
        .allowedUrls(List.of("allowedUrls"))
        .blockedCategories(List.of("blockedCategories"))
        .blockedUrls(List.of("blockedUrls"))
        .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.WorkSpacesWeb;

var webContentFilteringPolicyProperty = new WebContentFilteringPolicyProperty {
    AllowedUrls = new [] { "allowedUrls" },
    BlockedCategories = new [] { "blockedCategories" },
    BlockedUrls = new [] { "blockedUrls" }
};
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"

webContentFilteringPolicyProperty := &WebContentFilteringPolicyProperty{
	AllowedUrls: []*string{
		jsii.String("allowedUrls"),
	},
	BlockedCategories: []*string{
		jsii.String("blockedCategories"),
	},
	BlockedUrls: []*string{
		jsii.String("blockedUrls"),
	},
}

Properties ​

allowedUrlsoptionalstring[]allowed_urlsoptionaltyping.List[str]allowedUrlsoptionalList<String>AllowedUrlsoptionalstring[]AllowedUrlsoptional*[]*string #
URLs and domains that are always accessible to end users.
blockedCategoriesoptionalstring[]blocked_categoriesoptionaltyping.List[str]blockedCategoriesoptionalList<String>BlockedCategoriesoptionalstring[]BlockedCategoriesoptional*[]*string #
Categories of websites that are blocked on the end user's browsers.
blockedUrlsoptionalstring[]blocked_urlsoptionaltyping.List[str]blockedUrlsoptionalList<String>BlockedUrlsoptionalstring[]BlockedUrlsoptional*[]*string #
URLs and domains that end users cannot access.