interface CfnConnectionProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Glue.CfnConnectionProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsglue#CfnConnectionProps |
Java | software.amazon.awscdk.services.glue.CfnConnectionProps |
Python | aws_cdk.aws_glue.CfnConnectionProps |
TypeScript | aws-cdk-lib » aws_glue » CfnConnectionProps |
Properties for defining a CfnConnection.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-connection.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
declare const athenaProperties: any;
declare const connectionProperties: any;
declare const customAuthenticationCredentials: any;
declare const pythonProperties: any;
declare const sparkProperties: any;
declare const tokenUrlParametersMap: any;
const cfnConnectionProps: glue.CfnConnectionProps = {
catalogId: 'catalogId',
connectionInput: {
connectionType: 'connectionType',
// the properties below are optional
athenaProperties: athenaProperties,
authenticationConfiguration: {
authenticationType: 'authenticationType',
// the properties below are optional
basicAuthenticationCredentials: {
password: 'password',
username: 'username',
},
customAuthenticationCredentials: customAuthenticationCredentials,
kmsKeyArn: 'kmsKeyArn',
oAuth2Properties: {
authorizationCodeProperties: {
authorizationCode: 'authorizationCode',
redirectUri: 'redirectUri',
},
oAuth2ClientApplication: {
awsManagedClientApplicationReference: 'awsManagedClientApplicationReference',
userManagedClientApplicationClientId: 'userManagedClientApplicationClientId',
},
oAuth2Credentials: {
accessToken: 'accessToken',
jwtToken: 'jwtToken',
refreshToken: 'refreshToken',
userManagedClientApplicationClientSecret: 'userManagedClientApplicationClientSecret',
},
oAuth2GrantType: 'oAuth2GrantType',
tokenUrl: 'tokenUrl',
tokenUrlParametersMap: tokenUrlParametersMap,
},
secretArn: 'secretArn',
},
connectionProperties: connectionProperties,
description: 'description',
matchCriteria: ['matchCriteria'],
name: 'name',
physicalConnectionRequirements: {
availabilityZone: 'availabilityZone',
securityGroupIdList: ['securityGroupIdList'],
subnetId: 'subnetId',
},
pythonProperties: pythonProperties,
sparkProperties: sparkProperties,
validateCredentials: false,
validateForComputeEnvironments: ['validateForComputeEnvironments'],
},
};
Properties
| Name | Type | Description |
|---|---|---|
| catalog | string | The ID of the data catalog to create the catalog object in. |
| connection | IResolvable | Connection | The connection that you want to create. |
catalogId
Type:
string
The ID of the data catalog to create the catalog object in.
Currently, this should be the AWS account ID.
To specify the account ID, you can use the
Refintrinsic function with theAWS::AccountIdpseudo parameter. For example:!Ref AWS::AccountId.
connectionInput
Type:
IResolvable | Connection
The connection that you want to create.

.NET
Go
Java
Python
TypeScript