Class CfnPrivateConnection
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.devopsagent.CfnPrivateConnection
- All Implemented Interfaces:
IInspectable,IPrivateConnectionRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-04-24T20:29:26.152Z")
@Stability(Stable)
public class CfnPrivateConnection
extends CfnResource
implements IInspectable, IPrivateConnectionRef, ITaggableV2
Resource Type definition for AWS::DevOpsAgent::PrivateConnection.
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.devopsagent.*;
CfnPrivateConnection cfnPrivateConnection = CfnPrivateConnection.Builder.create(this, "MyCfnPrivateConnection")
.connectionConfiguration(ConnectionConfigurationProperty.builder()
.selfManaged(SelfManagedModeProperty.builder()
.resourceConfigurationId("resourceConfigurationId")
.build())
.serviceManaged(ServiceManagedModeProperty.builder()
.hostAddress("hostAddress")
.vpcId("vpcId")
// the properties below are optional
.ipAddressType("ipAddressType")
.ipv4AddressesPerEni(123)
.portRanges(List.of("portRanges"))
.securityGroupIds(List.of("securityGroupIds"))
.subnetIds(List.of("subnetIds"))
.build())
.build())
.name("name")
// the properties below are optional
.certificate("certificate")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnPrivateConnection.static interfaceExample:static interfaceConfiguration for a self-managed Private Connection.static interfaceConfiguration for a service-managed Private Connection.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.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.devopsagent.IPrivateConnectionRef
IPrivateConnectionRef.Jsii$Default, IPrivateConnectionRef.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
ConstructorsModifierConstructorDescriptionprotectedCfnPrivateConnection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPrivateConnection(software.amazon.jsii.JsiiObjectRef objRef) CfnPrivateConnection(software.constructs.Construct scope, String id, CfnPrivateConnectionProps props) Create a newAWS::DevOpsAgent::PrivateConnection. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForPrivateConnection(IPrivateConnectionRef resource) The Amazon Resource Name (ARN) of the Private Connection.The expiry time of the certificate associated with the Private Connection.The status of the Private Connection.Tag Manager which manages the tags for this resource.Certificate for the Private Connection.The connection configuration, either SelfManaged or ServiceManaged.getName()Unique name for this Private Connection within the account.A reference to a PrivateConnection resource.getTags()An array of key-value pairs to apply to this resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnPrivateConnection.renderProperties(Map<String, Object> props) voidsetCertificate(String value) Certificate for the Private Connection.voidThe connection configuration, either SelfManaged or ServiceManaged.voidThe connection configuration, either SelfManaged or ServiceManaged.voidUnique name for this Private Connection within the account.voidAn array of key-value pairs to apply to this resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, 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
-
CfnPrivateConnection
protected CfnPrivateConnection(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPrivateConnection
protected CfnPrivateConnection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPrivateConnection
@Stability(Stable) public CfnPrivateConnection(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnPrivateConnectionProps props) Create a newAWS::DevOpsAgent::PrivateConnection.- 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
-
arnForPrivateConnection
@Stability(Stable) @NotNull public static String arnForPrivateConnection(@NotNull IPrivateConnectionRef resource) - Parameters:
resource- This parameter is required.
-
isCfnPrivateConnection
Checks whether the given object is a CfnPrivateConnection.- 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.
-
getAttrArn
The Amazon Resource Name (ARN) of the Private Connection. -
getAttrCertificateExpiryTime
The expiry time of the certificate associated with the Private Connection. -
getAttrStatus
The status of the Private Connection. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getPrivateConnectionRef
A reference to a PrivateConnection resource.- Specified by:
getPrivateConnectionRefin interfaceIPrivateConnectionRef
-
getConnectionConfiguration
The connection configuration, either SelfManaged or ServiceManaged.Returns union: either
IResolvableorCfnPrivateConnection.ConnectionConfigurationProperty -
setConnectionConfiguration
The connection configuration, either SelfManaged or ServiceManaged. -
setConnectionConfiguration
@Stability(Stable) public void setConnectionConfiguration(@NotNull CfnPrivateConnection.ConnectionConfigurationProperty value) The connection configuration, either SelfManaged or ServiceManaged. -
getName
Unique name for this Private Connection within the account. -
setName
Unique name for this Private Connection within the account. -
getCertificate
Certificate for the Private Connection. -
setCertificate
Certificate for the Private Connection. -
getTags
An array of key-value pairs to apply to this resource. -
setTags
An array of key-value pairs to apply to this resource.
-