Class CfnConnectionPropsMixin

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.glue.CfnConnectionPropsMixin
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IMixin

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:19:59.667Z") @Stability(Stable) public class CfnConnectionPropsMixin extends Mixin implements software.constructs.IMixin
The AWS::Glue::Connection resource specifies an AWS Glue connection to a data source.

For more information, see Adding a Connection to Your Data Store and Connection Structure in the AWS Glue Developer Guide .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.cfnpropertymixins.services.glue.*;
 import software.amazon.awscdk.*;
 Object athenaProperties;
 Object connectionProperties;
 Object customAuthenticationCredentials;
 IMergeStrategy mergeStrategy;
 Object pythonProperties;
 Object sparkProperties;
 Object tokenUrlParametersMap;
 CfnConnectionPropsMixin cfnConnectionPropsMixin = CfnConnectionPropsMixin.Builder.create(CfnConnectionMixinProps.builder()
         .catalogId("catalogId")
         .connectionInput(ConnectionInputProperty.builder()
                 .athenaProperties(athenaProperties)
                 .authenticationConfiguration(AuthenticationConfigurationInputProperty.builder()
                         .authenticationType("authenticationType")
                         .basicAuthenticationCredentials(BasicAuthenticationCredentialsProperty.builder()
                                 .password("password")
                                 .username("username")
                                 .build())
                         .customAuthenticationCredentials(customAuthenticationCredentials)
                         .kmsKeyArn("kmsKeyArn")
                         .oAuth2Properties(OAuth2PropertiesInputProperty.builder()
                                 .authorizationCodeProperties(AuthorizationCodePropertiesProperty.builder()
                                         .authorizationCode("authorizationCode")
                                         .redirectUri("redirectUri")
                                         .build())
                                 .oAuth2ClientApplication(OAuth2ClientApplicationProperty.builder()
                                         .awsManagedClientApplicationReference("awsManagedClientApplicationReference")
                                         .userManagedClientApplicationClientId("userManagedClientApplicationClientId")
                                         .build())
                                 .oAuth2Credentials(OAuth2CredentialsProperty.builder()
                                         .accessToken("accessToken")
                                         .jwtToken("jwtToken")
                                         .refreshToken("refreshToken")
                                         .userManagedClientApplicationClientSecret("userManagedClientApplicationClientSecret")
                                         .build())
                                 .oAuth2GrantType("oAuth2GrantType")
                                 .tokenUrl("tokenUrl")
                                 .tokenUrlParametersMap(tokenUrlParametersMap)
                                 .build())
                         .secretArn("secretArn")
                         .build())
                 .connectionProperties(connectionProperties)
                 .connectionType("connectionType")
                 .description("description")
                 .matchCriteria(List.of("matchCriteria"))
                 .name("name")
                 .physicalConnectionRequirements(PhysicalConnectionRequirementsProperty.builder()
                         .availabilityZone("availabilityZone")
                         .securityGroupIdList(List.of("securityGroupIdList"))
                         .subnetId("subnetId")
                         .build())
                 .pythonProperties(pythonProperties)
                 .sparkProperties(sparkProperties)
                 .validateCredentials(false)
                 .validateForComputeEnvironments(List.of("validateForComputeEnvironments"))
                 .build())
         .build())
 .strategy(mergeStrategy)
 .build();
 

See Also:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> CFN_PROPERTY_KEYS
  • Constructor Details

    • CfnConnectionPropsMixin

      protected CfnConnectionPropsMixin(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnConnectionPropsMixin

      protected CfnConnectionPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnConnectionPropsMixin

      @Stability(Stable) public CfnConnectionPropsMixin(@NotNull CfnConnectionMixinProps props, @Nullable CfnPropertyMixinOptions options)
      Create a mixin to apply properties to AWS::Glue::Connection.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnConnectionPropsMixin

      @Stability(Stable) public CfnConnectionPropsMixin(@NotNull CfnConnectionMixinProps props)
      Create a mixin to apply properties to AWS::Glue::Connection.

      Parameters:
      props - L1 properties to apply. This parameter is required.
  • Method Details

    • applyTo

      @Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct)
      Apply the mixin properties to the construct.

      Specified by:
      applyTo in interface software.constructs.IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface software.constructs.IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnConnectionMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()