Skip to content
v2.278.0

CfnBrowserCustomProps Struct ​

Properties for defining a CfnBrowserCustom.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const cfnBrowserCustomProps: bedrockagentcore.CfnBrowserCustomProps = {
  name: 'name',
  networkConfiguration: {
    networkMode: 'networkMode',

    // the properties below are optional
    vpcConfig: {
      securityGroups: ['securityGroups'],
      subnets: ['subnets'],
    },
  },

  // the properties below are optional
  browserSigning: {
    enabled: false,
  },
  certificates: [{
    certificateLocation: {
      secretArn: 'secretArn',
    },
  }],
  description: 'description',
  enterprisePolicies: [{
    location: {
      bucket: 'bucket',
      prefix: 'prefix',
    },
    type: 'type',
  }],
  executionRoleArn: 'executionRoleArn',
  recordingConfig: {
    enabled: false,
    s3Location: {
      bucket: 'bucket',
      prefix: 'prefix',
    },
  },
  tags: {
    tagsKey: 'tags',
  },
};
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_bedrockagentcore as bedrockagentcore

cfn_browser_custom_props = bedrockagentcore.CfnBrowserCustomProps(
    name="name",
    network_configuration=bedrockagentcore.CfnBrowserCustom.BrowserNetworkConfigurationProperty(
        network_mode="networkMode",

        # the properties below are optional
        vpc_config=bedrockagentcore.CfnBrowserCustom.VpcConfigProperty(
            security_groups=["securityGroups"],
            subnets=["subnets"]
        )
    ),

    # the properties below are optional
    browser_signing=bedrockagentcore.CfnBrowserCustom.BrowserSigningProperty(
        enabled=False
    ),
    certificates=[bedrockagentcore.CfnBrowserCustom.CertificateProperty(
        certificate_location=bedrockagentcore.CfnBrowserCustom.CertificateLocationProperty(
            secret_arn="secretArn"
        )
    )],
    description="description",
    enterprise_policies=[bedrockagentcore.CfnBrowserCustom.BrowserEnterprisePolicyProperty(
        location=bedrockagentcore.CfnBrowserCustom.S3LocationProperty(
            bucket="bucket",
            prefix="prefix"
        ),
        type="type"
    )],
    execution_role_arn="executionRoleArn",
    recording_config=bedrockagentcore.CfnBrowserCustom.RecordingConfigProperty(
        enabled=False,
        s3_location=bedrockagentcore.CfnBrowserCustom.S3LocationProperty(
            bucket="bucket",
            prefix="prefix"
        )
    ),
    tags={
        "tags_key": "tags"
    }
)
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.bedrockagentcore.*;

CfnBrowserCustomProps cfnBrowserCustomProps = CfnBrowserCustomProps.builder()
        .name("name")
        .networkConfiguration(BrowserNetworkConfigurationProperty.builder()
                .networkMode("networkMode")

                // the properties below are optional
                .vpcConfig(VpcConfigProperty.builder()
                        .securityGroups(List.of("securityGroups"))
                        .subnets(List.of("subnets"))
                        .build())
                .build())

        // the properties below are optional
        .browserSigning(BrowserSigningProperty.builder()
                .enabled(false)
                .build())
        .certificates(List.of(CertificateProperty.builder()
                .certificateLocation(CertificateLocationProperty.builder()
                        .secretArn("secretArn")
                        .build())
                .build()))
        .description("description")
        .enterprisePolicies(List.of(BrowserEnterprisePolicyProperty.builder()
                .location(S3LocationProperty.builder()
                        .bucket("bucket")
                        .prefix("prefix")
                        .build())
                .type("type")
                .build()))
        .executionRoleArn("executionRoleArn")
        .recordingConfig(RecordingConfigProperty.builder()
                .enabled(false)
                .s3Location(S3LocationProperty.builder()
                        .bucket("bucket")
                        .prefix("prefix")
                        .build())
                .build())
        .tags(Map.of(
                "tagsKey", "tags"))
        .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.BedrockAgentCore;

var cfnBrowserCustomProps = new CfnBrowserCustomProps {
    Name = "name",
    NetworkConfiguration = new BrowserNetworkConfigurationProperty {
        NetworkMode = "networkMode",

        // the properties below are optional
        VpcConfig = new VpcConfigProperty {
            SecurityGroups = new [] { "securityGroups" },
            Subnets = new [] { "subnets" }
        }
    },

    // the properties below are optional
    BrowserSigning = new BrowserSigningProperty {
        Enabled = false
    },
    Certificates = new [] { new CertificateProperty {
        CertificateLocation = new CertificateLocationProperty {
            SecretArn = "secretArn"
        }
    } },
    Description = "description",
    EnterprisePolicies = new [] { new BrowserEnterprisePolicyProperty {
        Location = new S3LocationProperty {
            Bucket = "bucket",
            Prefix = "prefix"
        },
        Type = "type"
    } },
    ExecutionRoleArn = "executionRoleArn",
    RecordingConfig = new RecordingConfigProperty {
        Enabled = false,
        S3Location = new S3LocationProperty {
            Bucket = "bucket",
            Prefix = "prefix"
        }
    },
    Tags = new Dictionary<string, string> {
        { "tagsKey", "tags" }
    }
};
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"

cfnBrowserCustomProps := &CfnBrowserCustomProps{
	Name: jsii.String("name"),
	NetworkConfiguration: &BrowserNetworkConfigurationProperty{
		NetworkMode: jsii.String("networkMode"),

		// the properties below are optional
		VpcConfig: &VpcConfigProperty{
			SecurityGroups: []*string{
				jsii.String("securityGroups"),
			},
			Subnets: []*string{
				jsii.String("subnets"),
			},
		},
	},

	// the properties below are optional
	BrowserSigning: &BrowserSigningProperty{
		Enabled: jsii.Boolean(false),
	},
	Certificates: []interface{}{
		&CertificateProperty{
			CertificateLocation: &CertificateLocationProperty{
				SecretArn: jsii.String("secretArn"),
			},
		},
	},
	Description: jsii.String("description"),
	EnterprisePolicies: []interface{}{
		&BrowserEnterprisePolicyProperty{
			Location: &S3LocationProperty{
				Bucket: jsii.String("bucket"),
				Prefix: jsii.String("prefix"),
			},
			Type: jsii.String("type"),
		},
	},
	ExecutionRoleArn: jsii.String("executionRoleArn"),
	RecordingConfig: &RecordingConfigProperty{
		Enabled: jsii.Boolean(false),
		S3Location: &S3LocationProperty{
			Bucket: jsii.String("bucket"),
			Prefix: jsii.String("prefix"),
		},
	},
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
}

Properties ​

browserSigningoptionalIResolvable | CfnBrowserCustom.BrowserSigningPropertybrowser_signingoptionaltyping.Union[IResolvable, BrowserSigningProperty]browserSigningoptionalIResolvableBrowserSigningoptionalIResolvableBrowserSigningoptionalinterface{} #
Browser signing configuration.
certificatesoptionalIResolvable | IResolvable | CfnBrowserCustom.CertificateProperty[]certificatesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CertificateProperty]]]certificatesoptionalIResolvableCertificatesoptionalIResolvableCertificatesoptionalinterface{} #
List of root CA certificates.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The custom browser.
enterprisePoliciesoptionalIResolvable | IResolvable | CfnBrowserCustom.BrowserEnterprisePolicyProperty[]enterprise_policiesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, BrowserEnterprisePolicyProperty]]]enterprisePoliciesoptionalIResolvableEnterprisePoliciesoptionalIResolvableEnterprisePoliciesoptionalinterface{} #
List of browser enterprise policies.
executionRoleArnoptionalstringexecution_role_arnoptionalstrexecutionRoleArnoptionalStringExecutionRoleArnoptionalstringExecutionRoleArnoptional*string #
The Amazon Resource Name (ARN) of the execution role.
namestringnamestrnameStringNamestringName*string required #
The name of the custom browser.
networkConfigurationIResolvable | CfnBrowserCustom.BrowserNetworkConfigurationPropertynetwork_configurationtyping.Union[IResolvable, BrowserNetworkConfigurationProperty]networkConfigurationIResolvableNetworkConfigurationIResolvableNetworkConfigurationinterface{} required #
The network configuration for a code interpreter.

This structure defines how the code interpreter connects to the network.

recordingConfigoptionalIResolvable | CfnBrowserCustom.RecordingConfigPropertyrecording_configoptionaltyping.Union[IResolvable, RecordingConfigProperty]recordingConfigoptionalIResolvableRecordingConfigoptionalIResolvableRecordingConfigoptionalinterface{} #
THe custom browser configuration.
tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string #
The tags for the custom browser.