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,IEnvironmentAware,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-12T17:54:10.835Z")
@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")
.name("name")
// the properties below are optional
.awsLocation(AwsLocationProperty.builder()
.accessRole("accessRole")
.awsAccountId("awsAccountId")
.awsRegion("awsRegion")
.iamConnectionId("iamConnectionId")
.build())
.description("description")
.enableTrustedIdentityPropagation(false)
.environmentIdentifier("environmentIdentifier")
.projectIdentifier("projectIdentifier")
.props(ConnectionPropertiesInputProperty.builder()
.amazonQProperties(AmazonQPropertiesInputProperty.builder()
.authMode("authMode")
.isEnabled(false)
.profileArn("profileArn")
.build())
.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())
.s3Properties(S3PropertiesInputProperty.builder()
.s3Uri("s3Uri")
// the properties below are optional
.s3AccessGrantLocationId("s3AccessGrantLocationId")
.build())
.sparkEmrProperties(SparkEmrPropertiesInputProperty.builder()
.computeArn("computeArn")
.instanceProfileArn("instanceProfileArn")
.javaVirtualEnv("javaVirtualEnv")
.logUri("logUri")
.managedEndpointArn("managedEndpointArn")
.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())
.scope("scope")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAmazon Q properties of the connection.static 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 interfaceS3 Properties Input.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.interfaces.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) Create a newAWS::DataZone::Connection. -
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.Specifies whether the trusted identity propagation is enabled.The ID of the environment where the connection is created.getName()The name of the connection.The identifier of the project in which the connection should be created.getProps()Connection props.getScope()The scope of the connection.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnConnection.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.voidSpecifies whether the trusted identity propagation is enabled.voidSpecifies whether the trusted identity propagation is enabled.voidsetEnvironmentIdentifier(String value) The ID of the environment where the connection is created.voidThe name of the connection.voidsetProjectIdentifier(String value) The identifier of the project in which the connection should be created.voidsetProps(IResolvable value) Connection props.voidConnection props.voidThe scope of the connection.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, 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.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
-
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) Create a newAWS::DataZone::Connection.- 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
-
isCfnConnection
Checks whether the given object is a CfnConnection.- 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.
-
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. -
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. -
getEnableTrustedIdentityPropagation
Specifies whether the trusted identity propagation is enabled.Returns union: either
BooleanorIResolvable -
setEnableTrustedIdentityPropagation
Specifies whether the trusted identity propagation is enabled. -
setEnableTrustedIdentityPropagation
Specifies whether the trusted identity propagation is enabled. -
getEnvironmentIdentifier
The ID of the environment where the connection is created. -
setEnvironmentIdentifier
The ID of the environment where the connection is created. -
getProjectIdentifier
The identifier of the project in which the connection should be created. -
setProjectIdentifier
The identifier of the project in which the connection should be created. -
getProps
Connection props.Returns union: either
IResolvableorCfnConnection.ConnectionPropertiesInputProperty -
setProps
Connection props. -
setProps
@Stability(Stable) public void setProps(@Nullable CfnConnection.ConnectionPropertiesInputProperty value) Connection props. -
getScope
The scope of the connection. -
setScope
The scope of the connection.
-