CfnConnectionProps
- class aws_cdk.aws_glue.CfnConnectionProps(*, catalog_id, connection_input)
Bases:
object
Properties for defining a
CfnConnection
.- Parameters:
catalog_id (
str
) – The ID of the data catalog to create the catalog object in. Currently, this should be the AWS account ID. .. epigraph:: To specify the account ID, you can use theRef
intrinsic function with theAWS::AccountId
pseudo parameter. For example:!Ref AWS::AccountId
.connection_input (
Union
[IResolvable
,ConnectionInputProperty
,Dict
[str
,Any
]]) – The connection that you want to create.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-connection.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_glue as glue # athena_properties: Any # connection_properties: Any # custom_authentication_credentials: Any # python_properties: Any # spark_properties: Any # token_url_parameters_map: Any cfn_connection_props = glue.CfnConnectionProps( catalog_id="catalogId", connection_input=glue.CfnConnection.ConnectionInputProperty( connection_type="connectionType", # the properties below are optional athena_properties=athena_properties, authentication_configuration=glue.CfnConnection.AuthenticationConfigurationInputProperty( authentication_type="authenticationType", # the properties below are optional basic_authentication_credentials=glue.CfnConnection.BasicAuthenticationCredentialsProperty( password="password", username="username" ), custom_authentication_credentials=custom_authentication_credentials, kms_key_arn="kmsKeyArn", o_auth2_properties=glue.CfnConnection.OAuth2PropertiesInputProperty( authorization_code_properties=glue.CfnConnection.AuthorizationCodePropertiesProperty( authorization_code="authorizationCode", redirect_uri="redirectUri" ), o_auth2_client_application=glue.CfnConnection.OAuth2ClientApplicationProperty( aws_managed_client_application_reference="awsManagedClientApplicationReference", user_managed_client_application_client_id="userManagedClientApplicationClientId" ), o_auth2_credentials=glue.CfnConnection.OAuth2CredentialsProperty( access_token="accessToken", jwt_token="jwtToken", refresh_token="refreshToken", user_managed_client_application_client_secret="userManagedClientApplicationClientSecret" ), o_auth2_grant_type="oAuth2GrantType", token_url="tokenUrl", token_url_parameters_map=token_url_parameters_map ), secret_arn="secretArn" ), connection_properties=connection_properties, description="description", match_criteria=["matchCriteria"], name="name", physical_connection_requirements=glue.CfnConnection.PhysicalConnectionRequirementsProperty( availability_zone="availabilityZone", security_group_id_list=["securityGroupIdList"], subnet_id="subnetId" ), python_properties=python_properties, spark_properties=spark_properties, validate_credentials=False, validate_for_compute_environments=["validateForComputeEnvironments"] ) )
Attributes
- catalog_id
The ID of the data catalog to create the catalog object in.
Currently, this should be the AWS account ID. .. epigraph:
To specify the account ID, you can use the ``Ref`` intrinsic function with the ``AWS::AccountId`` pseudo parameter. For example: ``!Ref AWS::AccountId`` .
- connection_input
The connection that you want to create.