Class CfnConnection
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.datazone.CfnConnection
- All Implemented Interfaces:
IInspectable,IConnectionRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:34.732Z")
@Stability(Stable)
public class CfnConnection
extends CfnResource
implements IInspectable, IConnectionRef
In Amazon DataZone, a connection enables you to connect your resources (domains, projects, and environments) to external resources and services.
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.datazone.*;
CfnConnection cfnConnection = CfnConnection.Builder.create(this, "MyCfnConnection")
.domainIdentifier("domainIdentifier")
.environmentIdentifier("environmentIdentifier")
.name("name")
// the properties below are optional
.awsLocation(AwsLocationProperty.builder()
.accessRole("accessRole")
.awsAccountId("awsAccountId")
.awsRegion("awsRegion")
.iamConnectionId("iamConnectionId")
.build())
.description("description")
.props(ConnectionPropertiesInputProperty.builder()
.athenaProperties(AthenaPropertiesInputProperty.builder()
.workgroupName("workgroupName")
.build())
.glueProperties(GluePropertiesInputProperty.builder()
.glueConnectionInput(GlueConnectionInputProperty.builder()
.athenaProperties(Map.of(
"athenaPropertiesKey", "athenaProperties"))
.authenticationConfiguration(AuthenticationConfigurationInputProperty.builder()
.authenticationType("authenticationType")
.basicAuthenticationCredentials(BasicAuthenticationCredentialsProperty.builder()
.password("password")
.userName("userName")
.build())
.customAuthenticationCredentials(Map.of(
"customAuthenticationCredentialsKey", "customAuthenticationCredentials"))
.kmsKeyArn("kmsKeyArn")
.oAuth2Properties(OAuth2PropertiesProperty.builder()
.authorizationCodeProperties(AuthorizationCodePropertiesProperty.builder()
.authorizationCode("authorizationCode")
.redirectUri("redirectUri")
.build())
.oAuth2ClientApplication(OAuth2ClientApplicationProperty.builder()
.awsManagedClientApplicationReference("awsManagedClientApplicationReference")
.userManagedClientApplicationClientId("userManagedClientApplicationClientId")
.build())
.oAuth2Credentials(GlueOAuth2CredentialsProperty.builder()
.accessToken("accessToken")
.jwtToken("jwtToken")
.refreshToken("refreshToken")
.userManagedClientApplicationClientSecret("userManagedClientApplicationClientSecret")
.build())
.oAuth2GrantType("oAuth2GrantType")
.tokenUrl("tokenUrl")
.tokenUrlParametersMap(Map.of(
"tokenUrlParametersMapKey", "tokenUrlParametersMap"))
.build())
.secretArn("secretArn")
.build())
.connectionProperties(Map.of(
"connectionPropertiesKey", "connectionProperties"))
.connectionType("connectionType")
.description("description")
.matchCriteria("matchCriteria")
.name("name")
.physicalConnectionRequirements(PhysicalConnectionRequirementsProperty.builder()
.availabilityZone("availabilityZone")
.securityGroupIdList(List.of("securityGroupIdList"))
.subnetId("subnetId")
.subnetIdList(List.of("subnetIdList"))
.build())
.pythonProperties(Map.of(
"pythonPropertiesKey", "pythonProperties"))
.sparkProperties(Map.of(
"sparkPropertiesKey", "sparkProperties"))
.validateCredentials(false)
.validateForComputeEnvironments(List.of("validateForComputeEnvironments"))
.build())
.build())
.hyperPodProperties(HyperPodPropertiesInputProperty.builder()
.clusterName("clusterName")
.build())
.iamProperties(IamPropertiesInputProperty.builder()
.glueLineageSyncEnabled(false)
.build())
.redshiftProperties(RedshiftPropertiesInputProperty.builder()
.credentials(RedshiftCredentialsProperty.builder()
.secretArn("secretArn")
.usernamePassword(UsernamePasswordProperty.builder()
.password("password")
.username("username")
.build())
.build())
.databaseName("databaseName")
.host("host")
.lineageSync(RedshiftLineageSyncConfigurationInputProperty.builder()
.enabled(false)
.schedule(LineageSyncScheduleProperty.builder()
.schedule("schedule")
.build())
.build())
.port(123)
.storage(RedshiftStoragePropertiesProperty.builder()
.clusterName("clusterName")
.workgroupName("workgroupName")
.build())
.build())
.sparkEmrProperties(SparkEmrPropertiesInputProperty.builder()
.computeArn("computeArn")
.instanceProfileArn("instanceProfileArn")
.javaVirtualEnv("javaVirtualEnv")
.logUri("logUri")
.pythonVirtualEnv("pythonVirtualEnv")
.runtimeRole("runtimeRole")
.trustedCertificatesS3Uri("trustedCertificatesS3Uri")
.build())
.sparkGlueProperties(SparkGluePropertiesInputProperty.builder()
.additionalArgs(SparkGlueArgsProperty.builder()
.connection("connection")
.build())
.glueConnectionName("glueConnectionName")
.glueVersion("glueVersion")
.idleTimeout(123)
.javaVirtualEnv("javaVirtualEnv")
.numberOfWorkers(123)
.pythonVirtualEnv("pythonVirtualEnv")
.workerType("workerType")
.build())
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe Amazon Athena properties of a connection.static interfaceThe authentication configuration of a connection.static interfaceThe authorization code properties of a connection.static interfaceThe location of a project.static interfaceThe basic authentication credentials of a connection.static final classA fluent builder forCfnConnection.static interfaceThe properties of a connection.static interfaceThe AWS Glue connecton input.static interfaceThe GlueOAuth2 credentials of a connection.static interfaceThe AWS Glue properties of a connection.static interfaceThe hyper pod properties of a AWS Glue properties patch.static interfaceThe IAM properties of a connection.static interfaceThe lineage sync schedule.static interfaceThe OAuth2Client application.static interfaceThe OAuth2 properties.static interfacePhysical connection requirements of a connection.static interfaceAmazon Redshift credentials of a connection.static interfaceThe Amaon Redshift lineage sync configuration.static interfaceThe Amazon Redshift properties.static interfaceThe Amazon Redshift storage properties.static interfaceThe Spark EMR properties.static interfaceThe Spark AWS Glue args.static interfaceThe Spark AWS Glue properties.static interfaceThe username and password of a connection.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.datazone.IConnectionRef
IConnectionRef.Jsii$Default, IConnectionRef.Jsii$ProxyNested 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$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnConnection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnConnection(software.amazon.jsii.JsiiObjectRef objRef) CfnConnection(software.constructs.Construct scope, String id, CfnConnectionProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe ID of the connection.The domain ID of the connection.The domain unit ID of the connection.The ID of the environment.The environment user role.The ID of the project.The type of the connection.The location where the connection is created.A reference to a Connection resource.Connection description.The ID of the domain where the connection is created.The ID of the environment where the connection is created.getName()The name of the connection.getProps()Connection props.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAwsLocation(IResolvable value) The location where the connection is created.voidThe location where the connection is created.voidsetDescription(String value) Connection description.voidsetDomainIdentifier(String value) The ID of the domain where the connection is created.voidsetEnvironmentIdentifier(String value) The ID of the environment where the connection is created.voidThe name of the connection.voidsetProps(IResolvable value) Connection props.voidConnection props.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, 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, overrideLogicalIdMethods 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
getNodeMethods 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
-
CfnConnection
protected CfnConnection(software.amazon.jsii.JsiiObjectRef objRef) -
CfnConnection
protected CfnConnection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnConnection
@Stability(Stable) public CfnConnection(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnConnectionProps props) - 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
-
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.
-
getAttrConnectionId
The ID of the connection. -
getAttrDomainId
The domain ID of the connection. -
getAttrDomainUnitId
The domain unit ID of the connection. -
getAttrEnvironmentId
The ID of the environment. -
getAttrEnvironmentUserRole
The environment user role. -
getAttrProjectId
The ID of the project. -
getAttrType
The type of the connection. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getConnectionRef
A reference to a Connection resource.- Specified by:
getConnectionRefin interfaceIConnectionRef
-
getDomainIdentifier
The ID of the domain where the connection is created. -
setDomainIdentifier
The ID of the domain where the connection is created. -
getEnvironmentIdentifier
The ID of the environment where the connection is created. -
setEnvironmentIdentifier
The ID of the environment where the connection is created. -
getName
The name of the connection. -
setName
The name of the connection. -
getAwsLocation
The location where the connection is created.Returns union: either
IResolvableorCfnConnection.AwsLocationProperty -
setAwsLocation
The location where the connection is created. -
setAwsLocation
The location where the connection is created. -
getDescription
Connection description. -
setDescription
Connection description. -
getProps
Connection props.Returns union: either
IResolvableorCfnConnection.ConnectionPropertiesInputProperty -
setProps
Connection props. -
setProps
@Stability(Stable) public void setProps(@Nullable CfnConnection.ConnectionPropertiesInputProperty value) Connection props.
-