Class CfnHost
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.codeconnections.CfnHost
- All Implemented Interfaces:
IInspectable,IHostRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:06.118Z")
@Stability(Stable)
public class CfnHost
extends CfnResource
implements IInspectable, IHostRef, ITaggableV2
A resource that represents the infrastructure where a third-party provider is installed.
You create one host for all connections to that provider.
Example:
// 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.*;
CfnHost cfnHost = CfnHost.Builder.create(this, "MyCfnHost")
.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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnHost.static interfaceThe VPC configuration provisioned for the host.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.codeconnections.IHostRef
IHostRef.Jsii$Default, IHostRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnHost(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnHost(software.amazon.jsii.JsiiObjectRef objRef) CfnHost(software.constructs.Construct scope, String id, CfnHostProps props) Create a newAWS::CodeConnections::Host. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForHost(IHostRef resource) The Amazon Resource Name (ARN) of the host.The server-generated unique identifier for the host.The status of the host.Tag Manager which manages the tags for this resource.A reference to a Host resource.getName()The name of the host.The endpoint of the infrastructure where your provider type is installed.The name of the installed provider to be associated with your connection.getTags()Tags to apply to the host.The VPC configuration provisioned for the host.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnHost.renderProperties(Map<String, Object> props) voidThe name of the host.voidsetProviderEndpoint(String value) The endpoint of the infrastructure where your provider type is installed.voidsetProviderType(String value) The name of the installed provider to be associated with your connection.voidTags to apply to the host.voidsetVpcConfiguration(IResolvable value) The VPC configuration provisioned for the host.voidThe VPC configuration provisioned for the host.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnHost
protected CfnHost(software.amazon.jsii.JsiiObjectRef objRef) -
CfnHost
protected CfnHost(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnHost
@Stability(Stable) public CfnHost(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnHostProps props) Create a newAWS::CodeConnections::Host.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForHost
- Parameters:
resource- This parameter is required.
-
isCfnHost
Checks whether the given object is a CfnHost.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrHostArn
The Amazon Resource Name (ARN) of the host. -
getAttrHostId
The server-generated unique identifier for the host. -
getAttrStatus
The status of the host. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getHostRef
A reference to a Host resource.- Specified by:
getHostRefin interfaceIHostRef
-
getName
The name of the host. -
setName
The name of the host. -
getProviderEndpoint
The endpoint of the infrastructure where your provider type is installed. -
setProviderEndpoint
The endpoint of the infrastructure where your provider type is installed. -
getProviderType
The name of the installed provider to be associated with your connection. -
setProviderType
The name of the installed provider to be associated with your connection. -
getTags
Tags to apply to the host. -
setTags
Tags to apply to the host. -
getVpcConfiguration
The VPC configuration provisioned for the host.Returns union: either
IResolvableorCfnHost.VpcConfigurationProperty -
setVpcConfiguration
The VPC configuration provisioned for the host. -
setVpcConfiguration
@Stability(Stable) public void setVpcConfiguration(@Nullable CfnHost.VpcConfigurationProperty value) The VPC configuration provisioned for the host.
-