CfnHostProps Struct
Properties for defining a CfnHost.
| 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_codeconnections as codeconnections } from 'aws-cdk-lib';
const cfnHostProps: codeconnections.CfnHostProps = {
name: 'name',
providerEndpoint: 'providerEndpoint',
providerType: 'providerType',
// the properties below are optional
tags: [{
key: 'key',
value: 'value',
}],
vpcConfiguration: {
securityGroupIds: ['securityGroupIds'],
subnetIds: ['subnetIds'],
vpcId: 'vpcId',
// the properties below are optional
tlsCertificate: 'tlsCertificate',
},
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codeconnections as codeconnections
cfn_host_props = codeconnections.CfnHostProps(
name="name",
provider_endpoint="providerEndpoint",
provider_type="providerType",
# the properties below are optional
tags=[CfnTag(
key="key",
value="value"
)],
vpc_configuration=codeconnections.CfnHost.VpcConfigurationProperty(
security_group_ids=["securityGroupIds"],
subnet_ids=["subnetIds"],
vpc_id="vpcId",
# the properties below are optional
tls_certificate="tlsCertificate"
)
)
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.codeconnections.*;
CfnHostProps cfnHostProps = CfnHostProps.builder()
.name("name")
.providerEndpoint("providerEndpoint")
.providerType("providerType")
// the properties below are optional
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.vpcConfiguration(VpcConfigurationProperty.builder()
.securityGroupIds(List.of("securityGroupIds"))
.subnetIds(List.of("subnetIds"))
.vpcId("vpcId")
// the properties below are optional
.tlsCertificate("tlsCertificate")
.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.CodeConnections;
var cfnHostProps = new CfnHostProps {
Name = "name",
ProviderEndpoint = "providerEndpoint",
ProviderType = "providerType",
// the properties below are optional
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VpcConfiguration = new VpcConfigurationProperty {
SecurityGroupIds = new [] { "securityGroupIds" },
SubnetIds = new [] { "subnetIds" },
VpcId = "vpcId",
// the properties below are optional
TlsCertificate = "tlsCertificate"
}
};
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"
cfnHostProps := &CfnHostProps{
Name: jsii.String("name"),
ProviderEndpoint: jsii.String("providerEndpoint"),
ProviderType: jsii.String("providerType"),
// the properties below are optional
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
VpcConfiguration: &VpcConfigurationProperty{
SecurityGroupIds: []*string{
jsii.String("securityGroupIds"),
},
SubnetIds: []*string{
jsii.String("subnetIds"),
},
VpcId: jsii.String("vpcId"),
// the properties below are optional
TlsCertificate: jsii.String("tlsCertificate"),
},
}
Properties
The name of the host.
providerEndpointstringprovider_endpointstrproviderEndpointStringProviderEndpointstringProviderEndpoint*string required #The endpoint of the infrastructure where your provider type is installed.
providerTypestringprovider_typestrproviderTypeStringProviderTypestringProviderType*string required #The name of the installed provider to be associated with your connection.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #Tags to apply to the host.
vpcConfigurationoptionalIResolvable | CfnHost.VpcConfigurationPropertyvpc_configurationoptionaltyping.Union[IResolvable, VpcConfigurationProperty]vpcConfigurationoptionalIResolvableVpcConfigurationoptionalIResolvableVpcConfigurationoptionalinterface{} #The VPC configuration provisioned for the host.